revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-pc / boot / grub / configure
blobe754cc06a2a32ebedfabaa57f3c5cdec338142c8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GRUB 0.97.
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
18 emulate sh
19 NULLCMD=:
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+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
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
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
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.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
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
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
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
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
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 \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
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 ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
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
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
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
243 emulate sh
244 NULLCMD=:
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+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
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+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
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; }
335 _ASEOF
336 }; then
337 break
342 done
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
347 done
348 export CONFIG_SHELL
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 () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
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
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
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
436 # case at line end.
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. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
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).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
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 ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
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
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
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
556 # Name of the host.
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`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='GRUB'
576 PACKAGE_TARNAME='grub'
577 PACKAGE_VERSION='0.97'
578 PACKAGE_STRING='GRUB 0.97'
579 PACKAGE_BUGREPORT='bug-grub@gnu.org'
581 ac_unique_file="stage2/stage2.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 INSTALL_PROGRAM
656 INSTALL_SCRIPT
657 INSTALL_DATA
658 CYGPATH_W
659 PACKAGE
660 VERSION
661 ACLOCAL
662 AUTOCONF
663 AUTOMAKE
664 AUTOHEADER
665 MAKEINFO
666 install_sh
667 STRIP
668 INSTALL_STRIP_PROGRAM
669 mkdir_p
671 SET_MAKE
672 am__leading_dot
673 AMTAR
674 am__tar
675 am__untar
676 build
677 build_cpu
678 build_vendor
679 build_os
680 host
681 host_cpu
682 host_vendor
683 host_os
684 MAINTAINER_MODE_TRUE
685 MAINTAINER_MODE_FALSE
686 MAINT
687 PERL
689 CFLAGS
690 LDFLAGS
691 CPPFLAGS
692 ac_ct_CC
693 EXEEXT
694 OBJEXT
695 DEPDIR
696 am__include
697 am__quote
698 AMDEP_TRUE
699 AMDEP_FALSE
700 AMDEPBACKSLASH
701 CCDEPMODE
702 am__fastdepCC_TRUE
703 am__fastdepCC_FALSE
704 CCAS
705 RANLIB
706 STAGE1_CFLAGS
707 STAGE2_CFLAGS
708 GRUB_CFLAGS
709 OBJCOPY
710 GRUB_LIBS
712 GREP
713 EGREP
714 NETBOOT_SUPPORT_TRUE
715 NETBOOT_SUPPORT_FALSE
716 DISKLESS_SUPPORT_TRUE
717 DISKLESS_SUPPORT_FALSE
718 HERCULES_SUPPORT_TRUE
719 HERCULES_SUPPORT_FALSE
720 SERIAL_SUPPORT_TRUE
721 SERIAL_SUPPORT_FALSE
722 SERIAL_SPEED_SIMULATION_TRUE
723 SERIAL_SPEED_SIMULATION_FALSE
724 BUILD_EXAMPLE_KERNEL_TRUE
725 BUILD_EXAMPLE_KERNEL_FALSE
726 FSYS_CFLAGS
727 NET_CFLAGS
728 NET_EXTRAFLAGS
729 NETBOOT_DRIVERS
730 CCASFLAGS
731 LIBOBJS
732 LTLIBOBJS'
733 ac_subst_files=''
734 ac_precious_vars='build_alias
735 host_alias
736 target_alias
738 CFLAGS
739 LDFLAGS
740 LIBS
741 CPPFLAGS
742 CPP'
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
791 ac_prev=
792 ac_dashdash=
793 for ac_option
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
811 ac_dashdash=yes ;;
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
830 --config-cache | -C)
831 cache_file=config.cache ;;
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
845 -disable-* | --disable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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=no ;;
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
864 -enable-* | --enable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=\$ac_optarg ;;
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir=$ac_optarg ;;
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1061 -with-* | --with-*)
1062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=\$ac_optarg ;;
1070 -without-* | --without-*)
1071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=no ;;
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\$ac_optarg
1109 export $ac_envvar ;;
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1119 esac
1120 done
1122 if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1128 # Be sure to have absolute directory names.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1134 eval ac_val=\$$ac_var
1135 case $ac_val in
1136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1138 esac
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1141 done
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1146 build=$build_alias
1147 host=$host_alias
1148 target=$target_alias
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1161 ac_tool_prefix=
1162 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1164 test "$silent" = yes && exec 6>/dev/null
1167 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di=`ls -di .` &&
1169 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186 echo X"$0" |
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1195 /^X\(\/\/\)$/{
1196 s//\1/
1199 /^X\(\/\).*/{
1200 s//\1/
1203 s/.*/./; q'`
1204 srcdir=$ac_confdir
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 srcdir=..
1208 else
1209 ac_srcdir_defaulted=no
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1216 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217 ac_abs_confdir=`(
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1220 pwd)`
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1228 case $srcdir in
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 esac
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236 done
1239 # Report the --help message.
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245 \`configure' configures GRUB 0.97 to adapt to many kinds of systems.
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1252 Defaults for the options are specified in brackets.
1254 Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1276 For better control, use the options below.
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1298 _ACEOF
1300 cat <<\_ACEOF
1302 Program names:
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1307 System types:
1308 --build=BUILD configure for building on BUILD [guessed]
1309 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1310 _ACEOF
1313 if test -n "$ac_init_help"; then
1314 case $ac_init_help in
1315 short | recursive ) echo "Configuration of GRUB 0.97:";;
1316 esac
1317 cat <<\_ACEOF
1319 Optional Features:
1320 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1321 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1322 --enable-maintainer-mode enable make rules and dependencies not useful
1323 (and sometimes confusing) to the casual installer
1324 --disable-dependency-tracking speeds up one-time build
1325 --enable-dependency-tracking do not reject slow dependency extractors
1326 --disable-ext2fs disable ext2fs support in Stage 2
1327 --disable-fat disable FAT support in Stage 2
1328 --disable-ffs disable FFS support in Stage 2
1329 --disable-ufs2 disable UFS2 support in Stage 2
1330 --disable-minix disable Minix fs support in Stage 2
1331 --disable-reiserfs disable ReiserFS support in Stage 2
1332 --disable-vstafs disable VSTa FS support in Stage 2
1333 --disable-jfs disable IBM JFS support in Stage 2
1334 --disable-xfs disable SGI XFS support in Stage 2
1335 --disable-iso9660 disable ISO9660 support in Stage 2
1336 --disable-affs disable AFFS support in Stage 2
1337 --disable-gunzip disable decompression in Stage 2
1338 --disable-md5-password disable MD5 password support in Stage 2
1339 --disable-packet-retransmission
1340 turn off packet retransmission
1341 --enable-pci-direct access PCI directly instead of using BIOS
1342 --enable-3c509 enable 3Com509 driver
1343 --enable-3c529 enable 3Com529 driver
1344 --enable-3c595 enable 3Com595 driver
1345 --enable-3c90x enable 3Com90x driver
1346 --enable-cs89x0 enable CS89x0 driver
1347 --enable-davicom enable Davicom driver
1348 --enable-depca enable DEPCA and EtherWORKS driver
1349 --enable-eepro enable Etherexpress Pro/10 driver
1350 --enable-eepro100 enable Etherexpress Pro/100 driver
1351 --enable-epic100 enable SMC 83c170 EPIC/100 driver
1352 --enable-3c507 enable 3Com507 driver
1353 --enable-exos205 enable EXOS205 driver
1354 --enable-ni5210 enable Racal-Interlan NI5210 driver
1355 --enable-lance enable Lance PCI PCNet/32 driver
1356 --enable-ne2100 enable Novell NE2100 driver
1357 --enable-ni6510 enable Racal-Interlan NI6510 driver
1358 --enable-natsemi enable NatSemi DP8381x driver
1359 --enable-ni5010 enable Racal-Interlan NI5010 driver
1360 --enable-3c503 enable 3Com503 driver
1361 --enable-ne enable NE1000/2000 ISA driver
1362 --enable-ns8390 enable NE2000 PCI driver
1363 --enable-wd enable WD8003/8013, SMC8216/8416 driver
1364 --enable-otulip enable old Tulip driver
1365 --enable-rtl8139 enable Realtek 8139 driver
1366 --enable-sis900 enable SIS 900 and SIS 7016 driver
1367 --enable-sk-g16 enable Schneider and Koch G16 driver
1368 --enable-smc9000 enable SMC9000 driver
1369 --enable-tiara enable Tiara driver
1370 --enable-tulip enable Tulip driver
1371 --enable-via-rhine enable Rhine-I/II driver
1372 --enable-w89c840 enable Winbond W89c840, Compex RL100-ATX driver
1373 --enable-3c503-shmem use 3c503 shared memory mode
1374 --enable-3c503-aui use AUI by default on 3c503 cards
1375 --enable-compex-rl2000-fix
1376 specify this if you have a Compex RL2000 PCI
1377 --enable-smc9000-scan=LIST
1378 probe for SMC9000 I/O addresses using LIST
1379 --enable-ne-scan=LIST probe for NE base address using LIST
1380 --enable-wd-default-mem=MEM
1381 set the default memory location for WD/SMC
1382 --enable-cs-scan=LIST probe for CS89x0 base address using LIST
1383 --enable-diskless enable diskless support
1384 --disable-hercules disable hercules terminal support
1385 --disable-serial disable serial terminal support
1386 --enable-serial-speed-simulation
1387 simulate the slowness of a serial device
1388 --enable-preset-menu=FILE
1389 preset a menu file FILE in Stage 2
1390 --enable-example-kernel
1391 build the example Multiboot kernel
1392 --disable-auto-linux-mem-opt
1393 don't pass Linux mem= option automatically
1395 Optional Packages:
1396 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1397 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1398 --with-binutils=DIR search the directory DIR to find binutils
1399 --without-curses do not use curses
1401 Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
1409 CPP C preprocessor
1411 Use these variables to override the choices made by `configure' or to help
1412 it to find libraries and programs with nonstandard names/locations.
1414 Report bugs to <bug-grub@gnu.org>.
1415 _ACEOF
1416 ac_status=$?
1419 if test "$ac_init_help" = "recursive"; then
1420 # If there are subdirs, report their specific --help.
1421 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1422 test -d "$ac_dir" || continue
1423 ac_builddir=.
1425 case "$ac_dir" in
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434 esac ;;
1435 esac
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1441 case $srcdir in
1442 .) # We are building in place.
1443 ac_srcdir=.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1450 *) # Relative name.
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 esac
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1460 echo &&
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1465 else
1466 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 fi || ac_status=$?
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1469 done
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1474 cat <<\_ACEOF
1475 GRUB configure 0.97
1476 generated by GNU Autoconf 2.61
1478 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1479 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1480 This configure script is free software; the Free Software Foundation
1481 gives unlimited permission to copy, distribute and modify it.
1482 _ACEOF
1483 exit
1485 cat >config.log <<_ACEOF
1486 This file contains any messages produced by compilers while
1487 running configure, to aid debugging if configure makes a mistake.
1489 It was created by GRUB $as_me 0.97, which was
1490 generated by GNU Autoconf 2.61. Invocation command line was
1492 $ $0 $@
1494 _ACEOF
1495 exec 5>>config.log
1497 cat <<_ASUNAME
1498 ## --------- ##
1499 ## Platform. ##
1500 ## --------- ##
1502 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1503 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1504 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1505 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1506 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1509 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1511 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1512 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1513 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1514 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1515 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1516 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1517 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1519 _ASUNAME
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1524 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=.
1526 echo "PATH: $as_dir"
1527 done
1528 IFS=$as_save_IFS
1530 } >&5
1532 cat >&5 <<_ACEOF
1535 ## ----------- ##
1536 ## Core tests. ##
1537 ## ----------- ##
1539 _ACEOF
1542 # Keep a trace of the command line.
1543 # Strip out --no-create and --no-recursion so they do not pile up.
1544 # Strip out --silent because we don't want to record it for future runs.
1545 # Also quote any args containing shell meta-characters.
1546 # Make two passes to allow for proper duplicate-argument suppression.
1547 ac_configure_args=
1548 ac_configure_args0=
1549 ac_configure_args1=
1550 ac_must_keep_next=false
1551 for ac_pass in 1 2
1553 for ac_arg
1555 case $ac_arg in
1556 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1558 | -silent | --silent | --silen | --sile | --sil)
1559 continue ;;
1560 *\'*)
1561 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1562 esac
1563 case $ac_pass in
1564 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1566 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1567 if test $ac_must_keep_next = true; then
1568 ac_must_keep_next=false # Got value, back to normal.
1569 else
1570 case $ac_arg in
1571 *=* | --config-cache | -C | -disable-* | --disable-* \
1572 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1573 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1574 | -with-* | --with-* | -without-* | --without-* | --x)
1575 case "$ac_configure_args0 " in
1576 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1577 esac
1579 -* ) ac_must_keep_next=true ;;
1580 esac
1582 ac_configure_args="$ac_configure_args '$ac_arg'"
1584 esac
1585 done
1586 done
1587 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1588 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1590 # When interrupted or exit'd, cleanup temporary files, and complete
1591 # config.log. We remove comments because anyway the quotes in there
1592 # would cause problems or look ugly.
1593 # WARNING: Use '\'' to represent an apostrophe within the trap.
1594 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1595 trap 'exit_status=$?
1596 # Save into config.log some information that might help in debugging.
1598 echo
1600 cat <<\_ASBOX
1601 ## ---------------- ##
1602 ## Cache variables. ##
1603 ## ---------------- ##
1604 _ASBOX
1605 echo
1606 # The following way of writing the cache mishandles newlines in values,
1608 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1609 eval ac_val=\$$ac_var
1610 case $ac_val in #(
1611 *${as_nl}*)
1612 case $ac_var in #(
1613 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1614 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1615 esac
1616 case $ac_var in #(
1617 _ | IFS | as_nl) ;; #(
1618 *) $as_unset $ac_var ;;
1619 esac ;;
1620 esac
1621 done
1622 (set) 2>&1 |
1623 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1624 *${as_nl}ac_space=\ *)
1625 sed -n \
1626 "s/'\''/'\''\\\\'\'''\''/g;
1627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1628 ;; #(
1630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1632 esac |
1633 sort
1635 echo
1637 cat <<\_ASBOX
1638 ## ----------------- ##
1639 ## Output variables. ##
1640 ## ----------------- ##
1641 _ASBOX
1642 echo
1643 for ac_var in $ac_subst_vars
1645 eval ac_val=\$$ac_var
1646 case $ac_val in
1647 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648 esac
1649 echo "$ac_var='\''$ac_val'\''"
1650 done | sort
1651 echo
1653 if test -n "$ac_subst_files"; then
1654 cat <<\_ASBOX
1655 ## ------------------- ##
1656 ## File substitutions. ##
1657 ## ------------------- ##
1658 _ASBOX
1659 echo
1660 for ac_var in $ac_subst_files
1662 eval ac_val=\$$ac_var
1663 case $ac_val in
1664 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1665 esac
1666 echo "$ac_var='\''$ac_val'\''"
1667 done | sort
1668 echo
1671 if test -s confdefs.h; then
1672 cat <<\_ASBOX
1673 ## ----------- ##
1674 ## confdefs.h. ##
1675 ## ----------- ##
1676 _ASBOX
1677 echo
1678 cat confdefs.h
1679 echo
1681 test "$ac_signal" != 0 &&
1682 echo "$as_me: caught signal $ac_signal"
1683 echo "$as_me: exit $exit_status"
1684 } >&5
1685 rm -f core *.core core.conftest.* &&
1686 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1687 exit $exit_status
1689 for ac_signal in 1 2 13 15; do
1690 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1691 done
1692 ac_signal=0
1694 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1695 rm -f -r conftest* confdefs.h
1697 # Predefined preprocessor variables.
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_NAME "$PACKAGE_NAME"
1701 _ACEOF
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1706 _ACEOF
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1711 _ACEOF
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_STRING "$PACKAGE_STRING"
1716 _ACEOF
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1721 _ACEOF
1724 # Let the site file select an alternate cache file if it wants to.
1725 # Prefer explicitly selected file to automatically selected ones.
1726 if test -n "$CONFIG_SITE"; then
1727 set x "$CONFIG_SITE"
1728 elif test "x$prefix" != xNONE; then
1729 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1730 else
1731 set x "$ac_default_prefix/share/config.site" \
1732 "$ac_default_prefix/etc/config.site"
1734 shift
1735 for ac_site_file
1737 if test -r "$ac_site_file"; then
1738 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1739 echo "$as_me: loading site script $ac_site_file" >&6;}
1740 sed 's/^/| /' "$ac_site_file" >&5
1741 . "$ac_site_file"
1743 done
1745 if test -r "$cache_file"; then
1746 # Some versions of bash will fail to source /dev/null (special
1747 # files actually), so we avoid doing that.
1748 if test -f "$cache_file"; then
1749 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1750 echo "$as_me: loading cache $cache_file" >&6;}
1751 case $cache_file in
1752 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1753 *) . "./$cache_file";;
1754 esac
1756 else
1757 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1758 echo "$as_me: creating cache $cache_file" >&6;}
1759 >$cache_file
1762 # Check that the precious variables saved in the cache have kept the same
1763 # value.
1764 ac_cache_corrupted=false
1765 for ac_var in $ac_precious_vars; do
1766 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1767 eval ac_new_set=\$ac_env_${ac_var}_set
1768 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1769 eval ac_new_val=\$ac_env_${ac_var}_value
1770 case $ac_old_set,$ac_new_set in
1771 set,)
1772 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1773 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1774 ac_cache_corrupted=: ;;
1775 ,set)
1776 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1777 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1778 ac_cache_corrupted=: ;;
1779 ,);;
1781 if test "x$ac_old_val" != "x$ac_new_val"; then
1782 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1783 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1784 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1785 echo "$as_me: former value: $ac_old_val" >&2;}
1786 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1787 echo "$as_me: current value: $ac_new_val" >&2;}
1788 ac_cache_corrupted=:
1789 fi;;
1790 esac
1791 # Pass precious variables to config.status.
1792 if test "$ac_new_set" = set; then
1793 case $ac_new_val in
1794 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1795 *) ac_arg=$ac_var=$ac_new_val ;;
1796 esac
1797 case " $ac_configure_args " in
1798 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1799 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1800 esac
1802 done
1803 if $ac_cache_corrupted; then
1804 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1805 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1806 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1807 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1808 { (exit 1); exit 1; }; }
1835 ac_ext=c
1836 ac_cpp='$CPP $CPPFLAGS'
1837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1843 ac_config_headers="$ac_config_headers config.h"
1845 am__api_version="1.9"
1846 ac_aux_dir=
1847 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1848 if test -f "$ac_dir/install-sh"; then
1849 ac_aux_dir=$ac_dir
1850 ac_install_sh="$ac_aux_dir/install-sh -c"
1851 break
1852 elif test -f "$ac_dir/install.sh"; then
1853 ac_aux_dir=$ac_dir
1854 ac_install_sh="$ac_aux_dir/install.sh -c"
1855 break
1856 elif test -f "$ac_dir/shtool"; then
1857 ac_aux_dir=$ac_dir
1858 ac_install_sh="$ac_aux_dir/shtool install -c"
1859 break
1861 done
1862 if test -z "$ac_aux_dir"; then
1863 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1864 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1865 { (exit 1); exit 1; }; }
1868 # These three variables are undocumented and unsupported,
1869 # and are intended to be withdrawn in a future Autoconf release.
1870 # They can cause serious problems if a builder's source tree is in a directory
1871 # whose full name contains unusual characters.
1872 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1873 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1874 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1877 # Find a good install program. We prefer a C program (faster),
1878 # so one script is as good as another. But avoid the broken or
1879 # incompatible versions:
1880 # SysV /etc/install, /usr/sbin/install
1881 # SunOS /usr/etc/install
1882 # IRIX /sbin/install
1883 # AIX /bin/install
1884 # AmigaOS /C/install, which installs bootblocks on floppy discs
1885 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1886 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1887 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1888 # OS/2's system install, which has a completely different semantic
1889 # ./install, which can be erroneously created by make from ./install.sh.
1890 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1891 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1892 if test -z "$INSTALL"; then
1893 if test "${ac_cv_path_install+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1899 IFS=$as_save_IFS
1900 test -z "$as_dir" && as_dir=.
1901 # Account for people who put trailing slashes in PATH elements.
1902 case $as_dir/ in
1903 ./ | .// | /cC/* | \
1904 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1905 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1906 /usr/ucb/* ) ;;
1908 # OSF1 and SCO ODT 3.0 have their own names for install.
1909 # Don't use installbsd from OSF since it installs stuff as root
1910 # by default.
1911 for ac_prog in ginstall scoinst install; do
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1914 if test $ac_prog = install &&
1915 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1916 # AIX install. It has an incompatible calling convention.
1918 elif test $ac_prog = install &&
1919 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1920 # program-specific install script used by HP pwplus--don't use.
1922 else
1923 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1924 break 3
1927 done
1928 done
1930 esac
1931 done
1932 IFS=$as_save_IFS
1936 if test "${ac_cv_path_install+set}" = set; then
1937 INSTALL=$ac_cv_path_install
1938 else
1939 # As a last resort, use the slow shell script. Don't cache a
1940 # value for INSTALL within a source directory, because that will
1941 # break other packages using the cache if that directory is
1942 # removed, or if the value is a relative name.
1943 INSTALL=$ac_install_sh
1946 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1947 echo "${ECHO_T}$INSTALL" >&6; }
1949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1950 # It thinks the first close brace ends the variable substitution.
1951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1955 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1957 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1958 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1959 # Just in case
1960 sleep 1
1961 echo timestamp > conftest.file
1962 # Do `set' in a subshell so we don't clobber the current shell's
1963 # arguments. Must try -L first in case configure is actually a
1964 # symlink; some systems play weird games with the mod time of symlinks
1965 # (eg FreeBSD returns the mod time of the symlink's containing
1966 # directory).
1967 if (
1968 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1969 if test "$*" = "X"; then
1970 # -L didn't work.
1971 set X `ls -t $srcdir/configure conftest.file`
1973 rm -f conftest.file
1974 if test "$*" != "X $srcdir/configure conftest.file" \
1975 && test "$*" != "X conftest.file $srcdir/configure"; then
1977 # If neither matched, then we have a broken ls. This can happen
1978 # if, for instance, CONFIG_SHELL is bash and it inherits a
1979 # broken ls alias from the environment. This has actually
1980 # happened. Such a system could not be considered "sane".
1981 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1982 alias in your environment" >&5
1983 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1984 alias in your environment" >&2;}
1985 { (exit 1); exit 1; }; }
1988 test "$2" = conftest.file
1990 then
1991 # Ok.
1993 else
1994 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1995 Check your system clock" >&5
1996 echo "$as_me: error: newly created file is older than distributed files!
1997 Check your system clock" >&2;}
1998 { (exit 1); exit 1; }; }
2000 { echo "$as_me:$LINENO: result: yes" >&5
2001 echo "${ECHO_T}yes" >&6; }
2002 test "$program_prefix" != NONE &&
2003 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2004 # Use a double $ so make ignores it.
2005 test "$program_suffix" != NONE &&
2006 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2007 # Double any \ or $. echo might interpret backslashes.
2008 # By default was `s,x,x', remove it if useless.
2009 cat <<\_ACEOF >conftest.sed
2010 s/[\\$]/&&/g;s/;s,x,x,$//
2011 _ACEOF
2012 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2013 rm -f conftest.sed
2015 # expand $ac_aux_dir to an absolute path
2016 am_aux_dir=`cd $ac_aux_dir && pwd`
2018 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2019 # Use eval to expand $SHELL
2020 if eval "$MISSING --run true"; then
2021 am_missing_run="$MISSING --run "
2022 else
2023 am_missing_run=
2024 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2025 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2028 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2029 # We used to keeping the `.' as first argument, in order to
2030 # allow $(mkdir_p) to be used without argument. As in
2031 # $(mkdir_p) $(somedir)
2032 # where $(somedir) is conditionally defined. However this is wrong
2033 # for two reasons:
2034 # 1. if the package is installed by a user who cannot write `.'
2035 # make install will fail,
2036 # 2. the above comment should most certainly read
2037 # $(mkdir_p) $(DESTDIR)$(somedir)
2038 # so it does not work when $(somedir) is undefined and
2039 # $(DESTDIR) is not.
2040 # To support the latter case, we have to write
2041 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2042 # so the `.' trick is pointless.
2043 mkdir_p='mkdir -p --'
2044 else
2045 # On NextStep and OpenStep, the `mkdir' command does not
2046 # recognize any option. It will interpret all options as
2047 # directories to create, and then abort because `.' already
2048 # exists.
2049 for d in ./-p ./--version;
2051 test -d $d && rmdir $d
2052 done
2053 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2054 if test -f "$ac_aux_dir/mkinstalldirs"; then
2055 mkdir_p='$(mkinstalldirs)'
2056 else
2057 mkdir_p='$(install_sh) -d'
2061 for ac_prog in gawk mawk nawk awk
2063 # Extract the first word of "$ac_prog", so it can be a program name with args.
2064 set dummy $ac_prog; ac_word=$2
2065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2067 if test "${ac_cv_prog_AWK+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 else
2070 if test -n "$AWK"; then
2071 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2072 else
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2080 ac_cv_prog_AWK="$ac_prog"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 break 2
2084 done
2085 done
2086 IFS=$as_save_IFS
2090 AWK=$ac_cv_prog_AWK
2091 if test -n "$AWK"; then
2092 { echo "$as_me:$LINENO: result: $AWK" >&5
2093 echo "${ECHO_T}$AWK" >&6; }
2094 else
2095 { echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6; }
2100 test -n "$AWK" && break
2101 done
2103 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2104 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2105 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2106 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109 cat >conftest.make <<\_ACEOF
2110 SHELL = /bin/sh
2111 all:
2112 @echo '@@@%%%=$(MAKE)=@@@%%%'
2113 _ACEOF
2114 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2115 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2116 *@@@%%%=?*=@@@%%%*)
2117 eval ac_cv_prog_make_${ac_make}_set=yes;;
2119 eval ac_cv_prog_make_${ac_make}_set=no;;
2120 esac
2121 rm -f conftest.make
2123 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2124 { echo "$as_me:$LINENO: result: yes" >&5
2125 echo "${ECHO_T}yes" >&6; }
2126 SET_MAKE=
2127 else
2128 { echo "$as_me:$LINENO: result: no" >&5
2129 echo "${ECHO_T}no" >&6; }
2130 SET_MAKE="MAKE=${MAKE-make}"
2133 rm -rf .tst 2>/dev/null
2134 mkdir .tst 2>/dev/null
2135 if test -d .tst; then
2136 am__leading_dot=.
2137 else
2138 am__leading_dot=_
2140 rmdir .tst 2>/dev/null
2142 # test to see if srcdir already configured
2143 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2144 test -f $srcdir/config.status; then
2145 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2146 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2147 { (exit 1); exit 1; }; }
2150 # test whether we have cygpath
2151 if test -z "$CYGPATH_W"; then
2152 if (cygpath --version) >/dev/null 2>/dev/null; then
2153 CYGPATH_W='cygpath -w'
2154 else
2155 CYGPATH_W=echo
2160 # Define the identity of the package.
2161 PACKAGE='grub'
2162 VERSION='0.97'
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE "$PACKAGE"
2167 _ACEOF
2170 cat >>confdefs.h <<_ACEOF
2171 #define VERSION "$VERSION"
2172 _ACEOF
2174 # Some tools Automake needs.
2176 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2179 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2182 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2185 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2188 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2190 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2192 # Installed binaries are usually stripped using `strip' when the user
2193 # run `make install-strip'. However `strip' might not be the right
2194 # tool to use in cross-compilation environments, therefore Automake
2195 # will honor the `STRIP' environment variable to overrule this program.
2196 if test "$cross_compiling" != no; then
2197 if test -n "$ac_tool_prefix"; then
2198 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2199 set dummy ${ac_tool_prefix}strip; ac_word=$2
2200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2202 if test "${ac_cv_prog_STRIP+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205 if test -n "$STRIP"; then
2206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2215 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 break 2
2219 done
2220 done
2221 IFS=$as_save_IFS
2225 STRIP=$ac_cv_prog_STRIP
2226 if test -n "$STRIP"; then
2227 { echo "$as_me:$LINENO: result: $STRIP" >&5
2228 echo "${ECHO_T}$STRIP" >&6; }
2229 else
2230 { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2236 if test -z "$ac_cv_prog_STRIP"; then
2237 ac_ct_STRIP=$STRIP
2238 # Extract the first word of "strip", so it can be a program name with args.
2239 set dummy strip; ac_word=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 if test -n "$ac_ct_STRIP"; then
2246 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_ac_ct_STRIP="strip"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2259 done
2260 done
2261 IFS=$as_save_IFS
2265 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2266 if test -n "$ac_ct_STRIP"; then
2267 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2268 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2269 else
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2274 if test "x$ac_ct_STRIP" = x; then
2275 STRIP=":"
2276 else
2277 case $cross_compiling:$ac_tool_warned in
2278 yes:)
2279 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2280 whose name does not start with the host triplet. If you think this
2281 configuration is useful to you, please write to autoconf@gnu.org." >&5
2282 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2283 whose name does not start with the host triplet. If you think this
2284 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2285 ac_tool_warned=yes ;;
2286 esac
2287 STRIP=$ac_ct_STRIP
2289 else
2290 STRIP="$ac_cv_prog_STRIP"
2294 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2296 # We need awk for the "check" target. The system "awk" is bad on
2297 # some platforms.
2298 # Always define AMTAR for backward compatibility.
2300 AMTAR=${AMTAR-"${am_missing_run}tar"}
2302 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2309 # Make sure we can run config.sub.
2310 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2311 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2312 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2313 { (exit 1); exit 1; }; }
2315 { echo "$as_me:$LINENO: checking build system type" >&5
2316 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2317 if test "${ac_cv_build+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320 ac_build_alias=$build_alias
2321 test "x$ac_build_alias" = x &&
2322 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2323 test "x$ac_build_alias" = x &&
2324 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2325 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2326 { (exit 1); exit 1; }; }
2327 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2328 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2329 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2330 { (exit 1); exit 1; }; }
2333 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2334 echo "${ECHO_T}$ac_cv_build" >&6; }
2335 case $ac_cv_build in
2336 *-*-*) ;;
2337 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2338 echo "$as_me: error: invalid value of canonical build" >&2;}
2339 { (exit 1); exit 1; }; };;
2340 esac
2341 build=$ac_cv_build
2342 ac_save_IFS=$IFS; IFS='-'
2343 set x $ac_cv_build
2344 shift
2345 build_cpu=$1
2346 build_vendor=$2
2347 shift; shift
2348 # Remember, the first character of IFS is used to create $*,
2349 # except with old shells:
2350 build_os=$*
2351 IFS=$ac_save_IFS
2352 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2355 { echo "$as_me:$LINENO: checking host system type" >&5
2356 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2357 if test "${ac_cv_host+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360 if test "x$host_alias" = x; then
2361 ac_cv_host=$ac_cv_build
2362 else
2363 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2364 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2365 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2366 { (exit 1); exit 1; }; }
2370 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2371 echo "${ECHO_T}$ac_cv_host" >&6; }
2372 case $ac_cv_host in
2373 *-*-*) ;;
2374 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2375 echo "$as_me: error: invalid value of canonical host" >&2;}
2376 { (exit 1); exit 1; }; };;
2377 esac
2378 host=$ac_cv_host
2379 ac_save_IFS=$IFS; IFS='-'
2380 set x $ac_cv_host
2381 shift
2382 host_cpu=$1
2383 host_vendor=$2
2384 shift; shift
2385 # Remember, the first character of IFS is used to create $*,
2386 # except with old shells:
2387 host_os=$*
2388 IFS=$ac_save_IFS
2389 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2393 case "$host_cpu" in
2394 i[3456]86) host_cpu=i386 ;;
2395 x86_64) host_cpu=x86_64 ;;
2396 *) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5
2397 echo "$as_me: error: unsupported CPU type" >&2;}
2398 { (exit 1); exit 1; }; } ;;
2399 esac
2405 # Options
2408 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2409 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2410 # Check whether --enable-maintainer-mode was given.
2411 if test "${enable_maintainer_mode+set}" = set; then
2412 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2413 else
2414 USE_MAINTAINER_MODE=no
2417 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2418 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2421 if test $USE_MAINTAINER_MODE = yes; then
2422 MAINTAINER_MODE_TRUE=
2423 MAINTAINER_MODE_FALSE='#'
2424 else
2425 MAINTAINER_MODE_TRUE='#'
2426 MAINTAINER_MODE_FALSE=
2429 MAINT=$MAINTAINER_MODE_TRUE
2432 if test "x$enable_maintainer_mode" = xyes; then
2433 # Extract the first word of "perl", so it can be a program name with args.
2434 set dummy perl; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_path_PERL+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440 case $PERL in
2441 [\\/]* | ?:[\\/]*)
2442 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2456 done
2457 done
2458 IFS=$as_save_IFS
2461 esac
2463 PERL=$ac_cv_path_PERL
2464 if test -n "$PERL"; then
2465 { echo "$as_me:$LINENO: result: $PERL" >&5
2466 echo "${ECHO_T}$PERL" >&6; }
2467 else
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2473 if test -z "$PERL"; then
2474 { { echo "$as_me:$LINENO: error: perl not found" >&5
2475 echo "$as_me: error: perl not found" >&2;}
2476 { (exit 1); exit 1; }; }
2480 # This should be checked before AC_PROG_CC
2481 if test "x$CFLAGS" = x; then
2482 default_CFLAGS=yes
2485 if test "x$host_cpu" = xx86_64; then
2486 CFLAGS="-m32 $CFLAGS"
2490 # Programs
2493 if test -n "$ac_tool_prefix"; then
2494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2495 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2515 done
2516 done
2517 IFS=$as_save_IFS
2521 CC=$ac_cv_prog_CC
2522 if test -n "$CC"; then
2523 { echo "$as_me:$LINENO: result: $CC" >&5
2524 echo "${ECHO_T}$CC" >&6; }
2525 else
2526 { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2532 if test -z "$ac_cv_prog_CC"; then
2533 ac_ct_CC=$CC
2534 # Extract the first word of "gcc", so it can be a program name with args.
2535 set dummy gcc; ac_word=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541 if test -n "$ac_ct_CC"; then
2542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2543 else
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 for as_dir in $PATH
2547 IFS=$as_save_IFS
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551 ac_cv_prog_ac_ct_CC="gcc"
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 break 2
2555 done
2556 done
2557 IFS=$as_save_IFS
2561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2562 if test -n "$ac_ct_CC"; then
2563 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2564 echo "${ECHO_T}$ac_ct_CC" >&6; }
2565 else
2566 { echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6; }
2570 if test "x$ac_ct_CC" = x; then
2571 CC=""
2572 else
2573 case $cross_compiling:$ac_tool_warned in
2574 yes:)
2575 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2576 whose name does not start with the host triplet. If you think this
2577 configuration is useful to you, please write to autoconf@gnu.org." >&5
2578 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2579 whose name does not start with the host triplet. If you think this
2580 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2581 ac_tool_warned=yes ;;
2582 esac
2583 CC=$ac_ct_CC
2585 else
2586 CC="$ac_cv_prog_CC"
2589 ac_ext=c
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594 if test -n "$ac_tool_prefix"; then
2595 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2596 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_CC+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC="$CC" # Let the user override the test.
2604 else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 break 2
2616 done
2617 done
2618 IFS=$as_save_IFS
2622 CC=$ac_cv_prog_CC
2623 if test -n "$CC"; then
2624 { echo "$as_me:$LINENO: result: $CC" >&5
2625 echo "${ECHO_T}$CC" >&6; }
2626 else
2627 { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2633 if test -z "$ac_cv_prog_CC"; then
2634 ac_ct_CC=$CC
2635 # Extract the first word of "gcc", so it can be a program name with args.
2636 set dummy gcc; ac_word=$2
2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642 if test -n "$ac_ct_CC"; then
2643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 ac_cv_prog_ac_ct_CC="gcc"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2656 done
2657 done
2658 IFS=$as_save_IFS
2662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663 if test -n "$ac_ct_CC"; then
2664 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2665 echo "${ECHO_T}$ac_ct_CC" >&6; }
2666 else
2667 { echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6; }
2671 if test "x$ac_ct_CC" = x; then
2672 CC=""
2673 else
2674 case $cross_compiling:$ac_tool_warned in
2675 yes:)
2676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&5
2679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet. If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2682 ac_tool_warned=yes ;;
2683 esac
2684 CC=$ac_ct_CC
2686 else
2687 CC="$ac_cv_prog_CC"
2690 if test -z "$CC"; then
2691 if test -n "$ac_tool_prefix"; then
2692 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2693 set dummy ${ac_tool_prefix}cc; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_CC+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_CC="${ac_tool_prefix}cc"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2713 done
2714 done
2715 IFS=$as_save_IFS
2719 CC=$ac_cv_prog_CC
2720 if test -n "$CC"; then
2721 { echo "$as_me:$LINENO: result: $CC" >&5
2722 echo "${ECHO_T}$CC" >&6; }
2723 else
2724 { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2731 if test -z "$CC"; then
2732 # Extract the first word of "cc", so it can be a program name with args.
2733 set dummy cc; ac_word=$2
2734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2736 if test "${ac_cv_prog_CC+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 else
2742 ac_prog_rejected=no
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2751 ac_prog_rejected=yes
2752 continue
2754 ac_cv_prog_CC="cc"
2755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2758 done
2759 done
2760 IFS=$as_save_IFS
2762 if test $ac_prog_rejected = yes; then
2763 # We found a bogon in the path, so make sure we never use it.
2764 set dummy $ac_cv_prog_CC
2765 shift
2766 if test $# != 0; then
2767 # We chose a different compiler from the bogus one.
2768 # However, it has the same basename, so the bogon will be chosen
2769 # first if we set CC to just the basename; use the full file name.
2770 shift
2771 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2776 CC=$ac_cv_prog_CC
2777 if test -n "$CC"; then
2778 { echo "$as_me:$LINENO: result: $CC" >&5
2779 echo "${ECHO_T}$CC" >&6; }
2780 else
2781 { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2787 if test -z "$CC"; then
2788 if test -n "$ac_tool_prefix"; then
2789 for ac_prog in cl.exe
2791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2792 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2795 if test "${ac_cv_prog_CC+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798 if test -n "$CC"; then
2799 ac_cv_prog_CC="$CC" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2812 done
2813 done
2814 IFS=$as_save_IFS
2818 CC=$ac_cv_prog_CC
2819 if test -n "$CC"; then
2820 { echo "$as_me:$LINENO: result: $CC" >&5
2821 echo "${ECHO_T}$CC" >&6; }
2822 else
2823 { echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6; }
2828 test -n "$CC" && break
2829 done
2831 if test -z "$CC"; then
2832 ac_ct_CC=$CC
2833 for ac_prog in cl.exe
2835 # Extract the first word of "$ac_prog", so it can be a program name with args.
2836 set dummy $ac_prog; ac_word=$2
2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842 if test -n "$ac_ct_CC"; then
2843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_ac_ct_CC="$ac_prog"
2853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2856 done
2857 done
2858 IFS=$as_save_IFS
2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863 if test -n "$ac_ct_CC"; then
2864 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2865 echo "${ECHO_T}$ac_ct_CC" >&6; }
2866 else
2867 { echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6; }
2872 test -n "$ac_ct_CC" && break
2873 done
2875 if test "x$ac_ct_CC" = x; then
2876 CC=""
2877 else
2878 case $cross_compiling:$ac_tool_warned in
2879 yes:)
2880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2881 whose name does not start with the host triplet. If you think this
2882 configuration is useful to you, please write to autoconf@gnu.org." >&5
2883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2884 whose name does not start with the host triplet. If you think this
2885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2886 ac_tool_warned=yes ;;
2887 esac
2888 CC=$ac_ct_CC
2895 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: no acceptable C compiler found in \$PATH
2898 See \`config.log' for more details." >&2;}
2899 { (exit 1); exit 1; }; }
2901 # Provide some information about the compiler.
2902 echo "$as_me:$LINENO: checking for C compiler version" >&5
2903 ac_compiler=`set X $ac_compile; echo $2`
2904 { (ac_try="$ac_compiler --version >&5"
2905 case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compiler --version >&5") 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2914 { (ac_try="$ac_compiler -v >&5"
2915 case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918 esac
2919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920 (eval "$ac_compiler -v >&5") 2>&5
2921 ac_status=$?
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }
2924 { (ac_try="$ac_compiler -V >&5"
2925 case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_compiler -V >&5") 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }
2935 cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h. */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2943 main ()
2947 return 0;
2949 _ACEOF
2950 ac_clean_files_save=$ac_clean_files
2951 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2952 # Try to create an executable without -o first, disregard a.out.
2953 # It will help us diagnose broken compilers, and finding out an intuition
2954 # of exeext.
2955 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2956 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2957 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2959 # List of possible output files, starting from the most likely.
2960 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2961 # only as a last resort. b.out is created by i960 compilers.
2962 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2964 # The IRIX 6 linker writes into existing files which may not be
2965 # executable, retaining their permissions. Remove them first so a
2966 # subsequent execution test works.
2967 ac_rmfiles=
2968 for ac_file in $ac_files
2970 case $ac_file in
2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2972 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2973 esac
2974 done
2975 rm -f $ac_rmfiles
2977 if { (ac_try="$ac_link_default"
2978 case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_link_default") 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
2987 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2988 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2989 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2990 # so that the user can short-circuit this test for compilers unknown to
2991 # Autoconf.
2992 for ac_file in $ac_files ''
2994 test -f "$ac_file" || continue
2995 case $ac_file in
2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2998 [ab].out )
2999 # We found the default executable, but exeext='' is most
3000 # certainly right.
3001 break;;
3002 *.* )
3003 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3004 then :; else
3005 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3007 # We set ac_cv_exeext here because the later test for it is not
3008 # safe: cross compilers may not add the suffix if given an `-o'
3009 # argument, so we may need to know it at that point already.
3010 # Even if this section looks crufty: it has the advantage of
3011 # actually working.
3012 break;;
3014 break;;
3015 esac
3016 done
3017 test "$ac_cv_exeext" = no && ac_cv_exeext=
3019 else
3020 ac_file=''
3023 { echo "$as_me:$LINENO: result: $ac_file" >&5
3024 echo "${ECHO_T}$ac_file" >&6; }
3025 if test -z "$ac_file"; then
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3029 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3030 See \`config.log' for more details." >&5
3031 echo "$as_me: error: C compiler cannot create executables
3032 See \`config.log' for more details." >&2;}
3033 { (exit 77); exit 77; }; }
3036 ac_exeext=$ac_cv_exeext
3038 # Check that the compiler produces executables we can run. If not, either
3039 # the compiler is broken, or we cross compile.
3040 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3041 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3042 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3043 # If not cross compiling, check that we can run a simple program.
3044 if test "$cross_compiling" != yes; then
3045 if { ac_try='./$ac_file'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 cross_compiling=no
3056 else
3057 if test "$cross_compiling" = maybe; then
3058 cross_compiling=yes
3059 else
3060 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3061 If you meant to cross compile, use \`--host'.
3062 See \`config.log' for more details." >&5
3063 echo "$as_me: error: cannot run C compiled programs.
3064 If you meant to cross compile, use \`--host'.
3065 See \`config.log' for more details." >&2;}
3066 { (exit 1); exit 1; }; }
3070 { echo "$as_me:$LINENO: result: yes" >&5
3071 echo "${ECHO_T}yes" >&6; }
3073 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3074 ac_clean_files=$ac_clean_files_save
3075 # Check that the compiler produces executables we can run. If not, either
3076 # the compiler is broken, or we cross compile.
3077 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3078 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3079 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3080 echo "${ECHO_T}$cross_compiling" >&6; }
3082 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3083 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3084 if { (ac_try="$ac_link"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_link") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; then
3094 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3095 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3096 # work properly (i.e., refer to `conftest.exe'), while it won't with
3097 # `rm'.
3098 for ac_file in conftest.exe conftest conftest.*; do
3099 test -f "$ac_file" || continue
3100 case $ac_file in
3101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3102 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103 break;;
3104 * ) break;;
3105 esac
3106 done
3107 else
3108 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3109 See \`config.log' for more details." >&5
3110 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3111 See \`config.log' for more details." >&2;}
3112 { (exit 1); exit 1; }; }
3115 rm -f conftest$ac_cv_exeext
3116 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3117 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3119 rm -f conftest.$ac_ext
3120 EXEEXT=$ac_cv_exeext
3121 ac_exeext=$EXEEXT
3122 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3123 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3124 if test "${ac_cv_objext+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h. */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3135 main ()
3139 return 0;
3141 _ACEOF
3142 rm -f conftest.o conftest.obj
3143 if { (ac_try="$ac_compile"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compile") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; then
3153 for ac_file in conftest.o conftest.obj conftest.*; do
3154 test -f "$ac_file" || continue;
3155 case $ac_file in
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3157 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3158 break;;
3159 esac
3160 done
3161 else
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3166 See \`config.log' for more details." >&5
3167 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3168 See \`config.log' for more details." >&2;}
3169 { (exit 1); exit 1; }; }
3172 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3174 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3175 echo "${ECHO_T}$ac_cv_objext" >&6; }
3176 OBJEXT=$ac_cv_objext
3177 ac_objext=$OBJEXT
3178 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3179 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3180 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3191 main ()
3193 #ifndef __GNUC__
3194 choke me
3195 #endif
3198 return 0;
3200 _ACEOF
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3209 ac_status=$?
3210 grep -v '^ *+' conftest.er1 >conftest.err
3211 rm -f conftest.er1
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } && {
3215 test -z "$ac_c_werror_flag" ||
3216 test ! -s conftest.err
3217 } && test -s conftest.$ac_objext; then
3218 ac_compiler_gnu=yes
3219 else
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3223 ac_compiler_gnu=no
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3230 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3231 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3232 GCC=`test $ac_compiler_gnu = yes && echo yes`
3233 ac_test_CFLAGS=${CFLAGS+set}
3234 ac_save_CFLAGS=$CFLAGS
3235 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3236 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3237 if test "${ac_cv_prog_cc_g+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240 ac_save_c_werror_flag=$ac_c_werror_flag
3241 ac_c_werror_flag=yes
3242 ac_cv_prog_cc_g=no
3243 CFLAGS="-g"
3244 cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h. */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3252 main ()
3256 return 0;
3258 _ACEOF
3259 rm -f conftest.$ac_objext
3260 if { (ac_try="$ac_compile"
3261 case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_compile") 2>conftest.er1
3267 ac_status=$?
3268 grep -v '^ *+' conftest.er1 >conftest.err
3269 rm -f conftest.er1
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } && {
3273 test -z "$ac_c_werror_flag" ||
3274 test ! -s conftest.err
3275 } && test -s conftest.$ac_objext; then
3276 ac_cv_prog_cc_g=yes
3277 else
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 CFLAGS=""
3282 cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h. */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3290 main ()
3294 return 0;
3296 _ACEOF
3297 rm -f conftest.$ac_objext
3298 if { (ac_try="$ac_compile"
3299 case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_compile") 2>conftest.er1
3305 ac_status=$?
3306 grep -v '^ *+' conftest.er1 >conftest.err
3307 rm -f conftest.er1
3308 cat conftest.err >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } && {
3311 test -z "$ac_c_werror_flag" ||
3312 test ! -s conftest.err
3313 } && test -s conftest.$ac_objext; then
3315 else
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 ac_c_werror_flag=$ac_save_c_werror_flag
3320 CFLAGS="-g"
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3329 main ()
3333 return 0;
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3338 case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_compile") 2>conftest.er1
3344 ac_status=$?
3345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
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
3353 ac_cv_prog_cc_g=yes
3354 else
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_c_werror_flag=$ac_save_c_werror_flag
3370 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3371 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3372 if test "$ac_test_CFLAGS" = set; then
3373 CFLAGS=$ac_save_CFLAGS
3374 elif test $ac_cv_prog_cc_g = yes; then
3375 if test "$GCC" = yes; then
3376 CFLAGS="-g -O2"
3377 else
3378 CFLAGS="-g"
3380 else
3381 if test "$GCC" = yes; then
3382 CFLAGS="-O2"
3383 else
3384 CFLAGS=
3387 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3388 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3389 if test "${ac_cv_prog_cc_c89+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392 ac_cv_prog_cc_c89=no
3393 ac_save_CC=$CC
3394 cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h. */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3400 #include <stdarg.h>
3401 #include <stdio.h>
3402 #include <sys/types.h>
3403 #include <sys/stat.h>
3404 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3405 struct buf { int x; };
3406 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3407 static char *e (p, i)
3408 char **p;
3409 int i;
3411 return p[i];
3413 static char *f (char * (*g) (char **, int), char **p, ...)
3415 char *s;
3416 va_list v;
3417 va_start (v,p);
3418 s = g (p, va_arg (v,int));
3419 va_end (v);
3420 return s;
3423 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3424 function prototypes and stuff, but not '\xHH' hex character constants.
3425 These don't provoke an error unfortunately, instead are silently treated
3426 as 'x'. The following induces an error, until -std is added to get
3427 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3428 array size at least. It's necessary to write '\x00'==0 to get something
3429 that's true only with -std. */
3430 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3432 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3433 inside strings and character constants. */
3434 #define FOO(x) 'x'
3435 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3437 int test (int i, double x);
3438 struct s1 {int (*f) (int a);};
3439 struct s2 {int (*f) (double a);};
3440 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3441 int argc;
3442 char **argv;
3444 main ()
3446 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3448 return 0;
3450 _ACEOF
3451 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3452 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3454 CC="$ac_save_CC $ac_arg"
3455 rm -f conftest.$ac_objext
3456 if { (ac_try="$ac_compile"
3457 case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_compile") 2>conftest.er1
3463 ac_status=$?
3464 grep -v '^ *+' conftest.er1 >conftest.err
3465 rm -f conftest.er1
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } && {
3469 test -z "$ac_c_werror_flag" ||
3470 test ! -s conftest.err
3471 } && test -s conftest.$ac_objext; then
3472 ac_cv_prog_cc_c89=$ac_arg
3473 else
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3480 rm -f core conftest.err conftest.$ac_objext
3481 test "x$ac_cv_prog_cc_c89" != "xno" && break
3482 done
3483 rm -f conftest.$ac_ext
3484 CC=$ac_save_CC
3487 # AC_CACHE_VAL
3488 case "x$ac_cv_prog_cc_c89" in
3490 { echo "$as_me:$LINENO: result: none needed" >&5
3491 echo "${ECHO_T}none needed" >&6; } ;;
3492 xno)
3493 { echo "$as_me:$LINENO: result: unsupported" >&5
3494 echo "${ECHO_T}unsupported" >&6; } ;;
3496 CC="$CC $ac_cv_prog_cc_c89"
3497 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3498 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3499 esac
3502 ac_ext=c
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 DEPDIR="${am__leading_dot}deps"
3509 ac_config_commands="$ac_config_commands depfiles"
3512 am_make=${MAKE-make}
3513 cat > confinc << 'END'
3514 am__doit:
3515 @echo done
3516 .PHONY: am__doit
3518 # If we don't find an include directive, just comment out the code.
3519 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3520 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3521 am__include="#"
3522 am__quote=
3523 _am_result=none
3524 # First try GNU make style include.
3525 echo "include confinc" > confmf
3526 # We grep out `Entering directory' and `Leaving directory'
3527 # messages which can occur if `w' ends up in MAKEFLAGS.
3528 # In particular we don't look at `^make:' because GNU make might
3529 # be invoked under some other name (usually "gmake"), in which
3530 # case it prints its new name instead of `make'.
3531 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3532 am__include=include
3533 am__quote=
3534 _am_result=GNU
3536 # Now try BSD make style include.
3537 if test "$am__include" = "#"; then
3538 echo '.include "confinc"' > confmf
3539 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3540 am__include=.include
3541 am__quote="\""
3542 _am_result=BSD
3547 { echo "$as_me:$LINENO: result: $_am_result" >&5
3548 echo "${ECHO_T}$_am_result" >&6; }
3549 rm -f confinc confmf
3551 # Check whether --enable-dependency-tracking was given.
3552 if test "${enable_dependency_tracking+set}" = set; then
3553 enableval=$enable_dependency_tracking;
3556 if test "x$enable_dependency_tracking" != xno; then
3557 am_depcomp="$ac_aux_dir/depcomp"
3558 AMDEPBACKSLASH='\'
3562 if test "x$enable_dependency_tracking" != xno; then
3563 AMDEP_TRUE=
3564 AMDEP_FALSE='#'
3565 else
3566 AMDEP_TRUE='#'
3567 AMDEP_FALSE=
3573 depcc="$CC" am_compiler_list=
3575 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3576 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3577 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3581 # We make a subdir and do the tests there. Otherwise we can end up
3582 # making bogus files that we don't know about and never remove. For
3583 # instance it was reported that on HP-UX the gcc test will end up
3584 # making a dummy file named `D' -- because `-MD' means `put the output
3585 # in D'.
3586 mkdir conftest.dir
3587 # Copy depcomp to subdir because otherwise we won't find it if we're
3588 # using a relative directory.
3589 cp "$am_depcomp" conftest.dir
3590 cd conftest.dir
3591 # We will build objects and dependencies in a subdirectory because
3592 # it helps to detect inapplicable dependency modes. For instance
3593 # both Tru64's cc and ICC support -MD to output dependencies as a
3594 # side effect of compilation, but ICC will put the dependencies in
3595 # the current directory while Tru64 will put them in the object
3596 # directory.
3597 mkdir sub
3599 am_cv_CC_dependencies_compiler_type=none
3600 if test "$am_compiler_list" = ""; then
3601 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3603 for depmode in $am_compiler_list; do
3604 # Setup a source with many dependencies, because some compilers
3605 # like to wrap large dependency lists on column 80 (with \), and
3606 # we should not choose a depcomp mode which is confused by this.
3608 # We need to recreate these files for each test, as the compiler may
3609 # overwrite some of them when testing with obscure command lines.
3610 # This happens at least with the AIX C compiler.
3611 : > sub/conftest.c
3612 for i in 1 2 3 4 5 6; do
3613 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3614 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615 # Solaris 8's {/usr,}/bin/sh.
3616 touch sub/conftst$i.h
3617 done
3618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3620 case $depmode in
3621 nosideeffect)
3622 # after this tag, mechanisms are not by side-effect, so they'll
3623 # only be used when explicitly requested
3624 if test "x$enable_dependency_tracking" = xyes; then
3625 continue
3626 else
3627 break
3630 none) break ;;
3631 esac
3632 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3633 # mode. It turns out that the SunPro C++ compiler does not properly
3634 # handle `-M -o', and we need to detect this.
3635 if depmode=$depmode \
3636 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3638 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3639 >/dev/null 2>conftest.err &&
3640 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3641 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3642 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3643 # icc doesn't choke on unknown options, it will just issue warnings
3644 # or remarks (even with -Werror). So we grep stderr for any message
3645 # that says an option was ignored or not supported.
3646 # When given -MP, icc 7.0 and 7.1 complain thusly:
3647 # icc: Command line warning: ignoring option '-M'; no argument required
3648 # The diagnosis changed in icc 8.0:
3649 # icc: Command line remark: option '-MP' not supported
3650 if (grep 'ignoring option' conftest.err ||
3651 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3652 am_cv_CC_dependencies_compiler_type=$depmode
3653 break
3656 done
3658 cd ..
3659 rm -rf conftest.dir
3660 else
3661 am_cv_CC_dependencies_compiler_type=none
3665 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3666 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3667 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3672 test "x$enable_dependency_tracking" != xno \
3673 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3674 am__fastdepCC_TRUE=
3675 am__fastdepCC_FALSE='#'
3676 else
3677 am__fastdepCC_TRUE='#'
3678 am__fastdepCC_FALSE=
3682 # We need this for older versions of Autoconf.
3684 depcc="$CC" am_compiler_list=
3686 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3687 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3688 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3692 # We make a subdir and do the tests there. Otherwise we can end up
3693 # making bogus files that we don't know about and never remove. For
3694 # instance it was reported that on HP-UX the gcc test will end up
3695 # making a dummy file named `D' -- because `-MD' means `put the output
3696 # in D'.
3697 mkdir conftest.dir
3698 # Copy depcomp to subdir because otherwise we won't find it if we're
3699 # using a relative directory.
3700 cp "$am_depcomp" conftest.dir
3701 cd conftest.dir
3702 # We will build objects and dependencies in a subdirectory because
3703 # it helps to detect inapplicable dependency modes. For instance
3704 # both Tru64's cc and ICC support -MD to output dependencies as a
3705 # side effect of compilation, but ICC will put the dependencies in
3706 # the current directory while Tru64 will put them in the object
3707 # directory.
3708 mkdir sub
3710 am_cv_CC_dependencies_compiler_type=none
3711 if test "$am_compiler_list" = ""; then
3712 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3714 for depmode in $am_compiler_list; do
3715 # Setup a source with many dependencies, because some compilers
3716 # like to wrap large dependency lists on column 80 (with \), and
3717 # we should not choose a depcomp mode which is confused by this.
3719 # We need to recreate these files for each test, as the compiler may
3720 # overwrite some of them when testing with obscure command lines.
3721 # This happens at least with the AIX C compiler.
3722 : > sub/conftest.c
3723 for i in 1 2 3 4 5 6; do
3724 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3725 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3726 # Solaris 8's {/usr,}/bin/sh.
3727 touch sub/conftst$i.h
3728 done
3729 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3731 case $depmode in
3732 nosideeffect)
3733 # after this tag, mechanisms are not by side-effect, so they'll
3734 # only be used when explicitly requested
3735 if test "x$enable_dependency_tracking" = xyes; then
3736 continue
3737 else
3738 break
3741 none) break ;;
3742 esac
3743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3744 # mode. It turns out that the SunPro C++ compiler does not properly
3745 # handle `-M -o', and we need to detect this.
3746 if depmode=$depmode \
3747 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3748 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3749 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3750 >/dev/null 2>conftest.err &&
3751 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3752 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3753 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3754 # icc doesn't choke on unknown options, it will just issue warnings
3755 # or remarks (even with -Werror). So we grep stderr for any message
3756 # that says an option was ignored or not supported.
3757 # When given -MP, icc 7.0 and 7.1 complain thusly:
3758 # icc: Command line warning: ignoring option '-M'; no argument required
3759 # The diagnosis changed in icc 8.0:
3760 # icc: Command line remark: option '-MP' not supported
3761 if (grep 'ignoring option' conftest.err ||
3762 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3763 am_cv_CC_dependencies_compiler_type=$depmode
3764 break
3767 done
3769 cd ..
3770 rm -rf conftest.dir
3771 else
3772 am_cv_CC_dependencies_compiler_type=none
3776 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3777 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3778 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3783 test "x$enable_dependency_tracking" != xno \
3784 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3785 am__fastdepCC_TRUE=
3786 am__fastdepCC_FALSE='#'
3787 else
3788 am__fastdepCC_TRUE='#'
3789 am__fastdepCC_FALSE=
3794 CCAS="$CC"
3798 # Check whether --with-binutils was given.
3799 if test "${with_binutils+set}" = set; then
3800 withval=$with_binutils;
3804 if test "x$with_binutils" != x; then
3805 # Extract the first word of "ranlib", so it can be a program name with args.
3806 set dummy ranlib; ac_word=$2
3807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3809 if test "${ac_cv_path_RANLIB+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812 case $RANLIB in
3813 [\\/]* | ?:[\\/]*)
3814 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 as_dummy=""$with_binutils:$PATH""
3819 for as_dir in $as_dummy
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 break 2
3829 done
3830 done
3831 IFS=$as_save_IFS
3833 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB=":"
3835 esac
3837 RANLIB=$ac_cv_path_RANLIB
3838 if test -n "$RANLIB"; then
3839 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3840 echo "${ECHO_T}$RANLIB" >&6; }
3841 else
3842 { echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6; }
3847 else
3848 if test -n "$ac_tool_prefix"; then
3849 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3850 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3853 if test "${ac_cv_prog_RANLIB+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 if test -n "$RANLIB"; then
3857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3866 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3870 done
3871 done
3872 IFS=$as_save_IFS
3876 RANLIB=$ac_cv_prog_RANLIB
3877 if test -n "$RANLIB"; then
3878 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3879 echo "${ECHO_T}$RANLIB" >&6; }
3880 else
3881 { echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6; }
3887 if test -z "$ac_cv_prog_RANLIB"; then
3888 ac_ct_RANLIB=$RANLIB
3889 # Extract the first word of "ranlib", so it can be a program name with args.
3890 set dummy ranlib; ac_word=$2
3891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3893 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896 if test -n "$ac_ct_RANLIB"; then
3897 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 ac_cv_prog_ac_ct_RANLIB="ranlib"
3907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 break 2
3910 done
3911 done
3912 IFS=$as_save_IFS
3916 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3917 if test -n "$ac_ct_RANLIB"; then
3918 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3919 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3920 else
3921 { echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6; }
3925 if test "x$ac_ct_RANLIB" = x; then
3926 RANLIB=":"
3927 else
3928 case $cross_compiling:$ac_tool_warned in
3929 yes:)
3930 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3931 whose name does not start with the host triplet. If you think this
3932 configuration is useful to you, please write to autoconf@gnu.org." >&5
3933 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3934 whose name does not start with the host triplet. If you think this
3935 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3936 ac_tool_warned=yes ;;
3937 esac
3938 RANLIB=$ac_ct_RANLIB
3940 else
3941 RANLIB="$ac_cv_prog_RANLIB"
3946 # optimization flags
3947 if test "x$ac_cv_c_compiler_gnu" = xyes; then
3948 if test "x$default_CFLAGS" = xyes; then
3949 # Autoconf may set CFLAGS to -O2 and/or -g. So eliminate them.
3950 CFLAGS="`echo $CFLAGS | sed -e 's/-g//g' -e 's/-O[0-9]//g'` -g"
3951 # If the user specify the directory for binutils, add the option `-B'.
3952 if test "x$with_binutils" != x; then
3953 CFLAGS="-B$with_binutils/ $CFLAGS"
3955 STAGE1_CFLAGS="-O2"
3956 GRUB_CFLAGS="-O2"
3958 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
3959 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
3960 if test "${size_flag+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3964 saved_CFLAGS=$CFLAGS
3965 CFLAGS="-Os -g"
3966 cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h. */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3974 main ()
3978 return 0;
3980 _ACEOF
3981 rm -f conftest.$ac_objext
3982 if { (ac_try="$ac_compile"
3983 case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3986 esac
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_compile") 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && {
3995 test -z "$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 } && test -s conftest.$ac_objext; then
3998 size_flag=yes
3999 else
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4003 size_flag=no
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 CFLAGS=$saved_CFLAGS
4010 { echo "$as_me:$LINENO: result: $size_flag" >&5
4011 echo "${ECHO_T}$size_flag" >&6; }
4012 if test "x$size_flag" = xyes; then
4013 STAGE2_CFLAGS="-Os"
4014 else
4015 STAGE2_CFLAGS="-O2 -fno-strength-reduce -fno-unroll-loops"
4017 # OpenBSD has a GCC extension for protecting applications from
4018 # stack smashing attacks, but GRUB doesn't want this feature.
4019 { echo "$as_me:$LINENO: checking whether gcc has -fno-stack-protector" >&5
4020 echo $ECHO_N "checking whether gcc has -fno-stack-protector... $ECHO_C" >&6; }
4021 if test "${no_stack_protector_flag+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4025 saved_CFLAGS=$CFLAGS
4026 CFLAGS="-fno-stack-protector"
4027 cat >conftest.$ac_ext <<_ACEOF
4028 /* confdefs.h. */
4029 _ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4035 main ()
4039 return 0;
4041 _ACEOF
4042 rm -f conftest.$ac_objext
4043 if { (ac_try="$ac_compile"
4044 case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_compile") 2>conftest.er1
4050 ac_status=$?
4051 grep -v '^ *+' conftest.er1 >conftest.err
4052 rm -f conftest.er1
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } && {
4056 test -z "$ac_c_werror_flag" ||
4057 test ! -s conftest.err
4058 } && test -s conftest.$ac_objext; then
4059 no_stack_protector_flag=yes
4060 else
4061 echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4064 no_stack_protector_flag=no
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 CFLAGS=$saved_CFLAGS
4071 { echo "$as_me:$LINENO: result: $no_stack_protector_flag" >&5
4072 echo "${ECHO_T}$no_stack_protector_flag" >&6; }
4073 if test "x$no_stack_protector_flag" = xyes; then
4074 STAGE2_CFLAGS="$STAGE2_CFLAGS -fno-stack-protector"
4076 STAGE2_CFLAGS="$STAGE2_CFLAGS -fno-strict-aliasing -fno-reorder-functions"
4084 # Enforce coding standards.
4085 CPPFLAGS="$CPPFLAGS -Wall -Wmissing-prototypes -Wunused -Wshadow"
4086 CPPFLAGS="$CPPFLAGS -Wpointer-arith"
4088 { echo "$as_me:$LINENO: checking whether -Wundef works" >&5
4089 echo $ECHO_N "checking whether -Wundef works... $ECHO_C" >&6; }
4090 if test "${undef_flag+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4094 saved_CPPFLAGS="$CPPFLAGS"
4095 CPPFLAGS="-Wundef"
4096 cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h. */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4104 main ()
4108 return 0;
4110 _ACEOF
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && {
4125 test -z "$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 } && test -s conftest.$ac_objext; then
4128 undef_flag=yes
4129 else
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 undef_flag=no
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 CPPFLAGS="$saved_CPPFLAGS"
4140 { echo "$as_me:$LINENO: result: $undef_flag" >&5
4141 echo "${ECHO_T}$undef_flag" >&6; }
4143 # The options `-falign-*' are supported by gcc 3.0 or later.
4144 # Probably it is sufficient to only check for -falign-loops.
4145 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
4146 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
4147 if test "${falign_loop_flag+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4151 saved_CPPFLAGS="$CPPFLAGS"
4152 CPPFLAGS="-falign-loops=1"
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4161 main ()
4165 return 0;
4167 _ACEOF
4168 rm -f conftest.$ac_objext
4169 if { (ac_try="$ac_compile"
4170 case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_compile") 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } && {
4182 test -z "$ac_c_werror_flag" ||
4183 test ! -s conftest.err
4184 } && test -s conftest.$ac_objext; then
4185 falign_loop_flag=yes
4186 else
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 falign_loop_flag=no
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 CPPFLAGS="$saved_CPPFLAGS"
4197 { echo "$as_me:$LINENO: result: $falign_loop_flag" >&5
4198 echo "${ECHO_T}$falign_loop_flag" >&6; }
4200 # Force no alignment to save space.
4201 if test "x$falign_loop_flag" = xyes; then
4202 CPPFLAGS="$CPPFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
4203 else
4204 CPPFLAGS="$CPPFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
4207 if test "x$undef_flag" = xyes; then
4208 CPPFLAGS="$CPPFLAGS -Wundef"
4211 if test "x$with_binutils" != x; then
4212 # Extract the first word of "objcopy", so it can be a program name with args.
4213 set dummy objcopy; ac_word=$2
4214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4216 if test "${ac_cv_path_OBJCOPY+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 case $OBJCOPY in
4220 [\\/]* | ?:[\\/]*)
4221 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 as_dummy=""$with_binutils:$PATH""
4226 for as_dir in $as_dummy
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext"
4233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4236 done
4237 done
4238 IFS=$as_save_IFS
4241 esac
4243 OBJCOPY=$ac_cv_path_OBJCOPY
4244 if test -n "$OBJCOPY"; then
4245 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
4246 echo "${ECHO_T}$OBJCOPY" >&6; }
4247 else
4248 { echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6; }
4253 else
4254 if test -n "$ac_tool_prefix"; then
4255 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4256 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4259 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262 if test -n "$OBJCOPY"; then
4263 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4276 done
4277 done
4278 IFS=$as_save_IFS
4282 OBJCOPY=$ac_cv_prog_OBJCOPY
4283 if test -n "$OBJCOPY"; then
4284 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
4285 echo "${ECHO_T}$OBJCOPY" >&6; }
4286 else
4287 { echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6; }
4293 if test -z "$ac_cv_prog_OBJCOPY"; then
4294 ac_ct_OBJCOPY=$OBJCOPY
4295 # Extract the first word of "objcopy", so it can be a program name with args.
4296 set dummy objcopy; ac_word=$2
4297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4299 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302 if test -n "$ac_ct_OBJCOPY"; then
4303 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4316 done
4317 done
4318 IFS=$as_save_IFS
4322 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4323 if test -n "$ac_ct_OBJCOPY"; then
4324 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
4325 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
4326 else
4327 { echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6; }
4331 if test "x$ac_ct_OBJCOPY" = x; then
4332 OBJCOPY=""
4333 else
4334 case $cross_compiling:$ac_tool_warned in
4335 yes:)
4336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4337 whose name does not start with the host triplet. If you think this
4338 configuration is useful to you, please write to autoconf@gnu.org." >&5
4339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4340 whose name does not start with the host triplet. If you think this
4341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4342 ac_tool_warned=yes ;;
4343 esac
4344 OBJCOPY=$ac_ct_OBJCOPY
4346 else
4347 OBJCOPY="$ac_cv_prog_OBJCOPY"
4352 # Defined in acinclude.m4.
4354 { echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
4355 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6; }
4356 if test "${grub_cv_asm_uscore+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359 cat > conftest.c <<\EOF
4361 func (int *list)
4363 *list = 0;
4364 return *list;
4368 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 (eval $ac_try) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } && test -s conftest.s; then
4374 true
4375 else
4376 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
4377 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
4378 { (exit 1); exit 1; }; }
4381 if grep _func conftest.s >/dev/null 2>&1; then
4382 grub_cv_asm_uscore=yes
4383 else
4384 grub_cv_asm_uscore=no
4387 rm -f conftest*
4391 if test "x$grub_cv_asm_uscore" = xyes; then
4393 cat >>confdefs.h <<_ACEOF
4394 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
4395 _ACEOF
4399 { echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
4400 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
4402 { echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
4403 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6; }
4404 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407 cat > conftest.c <<\EOF
4408 void
4409 cmain (void)
4411 *((int *) 0x1000) = 2;
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416 (eval $ac_compile) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } && test -s conftest.o; then :
4420 else
4421 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
4422 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
4423 { (exit 1); exit 1; }; }
4425 grub_cv_prog_objcopy_absolute=yes
4426 for link_addr in 2000 8000 7C00; do
4427 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 (eval $ac_try) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then :
4433 else
4434 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
4435 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
4436 { (exit 1); exit 1; }; }
4438 if { ac_try='${OBJCOPY-objcopy} -O binary conftest.exec conftest'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 (eval $ac_try) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; }; then :
4444 else
4445 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
4446 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
4447 { (exit 1); exit 1; }; }
4449 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 (eval $ac_try) 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; }; then
4455 mv -f conftest conftest.old
4456 else
4457 grub_cv_prog_objcopy_absolute=no
4458 break
4460 done
4461 rm -f conftest*
4464 { echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
4465 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
4466 if test "x$grub_cv_prog_objcopy_absolute" != xyes; then
4467 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
4468 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
4469 { (exit 1); exit 1; }; }
4473 { echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
4474 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6; }
4475 if test "${grub_cv_asm_prefix_requirement+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478 cat > conftest.s <<\EOF
4479 .code16
4480 l1: addr32 movb %al, l1
4483 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } && test -s conftest.o; then
4489 grub_cv_asm_prefix_requirement=yes
4490 else
4491 grub_cv_asm_prefix_requirement=no
4494 rm -f conftest*
4498 if test "x$grub_cv_asm_prefix_requirement" = xyes; then
4499 grub_tmp_addr32="addr32"
4500 grub_tmp_data32="data32"
4501 else
4502 grub_tmp_addr32="addr32;"
4503 grub_tmp_data32="data32;"
4507 cat >>confdefs.h <<_ACEOF
4508 #define ADDR32 $grub_tmp_addr32
4509 _ACEOF
4512 cat >>confdefs.h <<_ACEOF
4513 #define DATA32 $grub_tmp_data32
4514 _ACEOF
4517 { echo "$as_me:$LINENO: result: $grub_cv_asm_prefix_requirement" >&5
4518 echo "${ECHO_T}$grub_cv_asm_prefix_requirement" >&6; }
4522 { echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
4523 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6; }
4524 if test "${grub_cv_asm_addr32+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527 cat > conftest.s.in <<\EOF
4528 .code16
4529 l1: @ADDR32@ movb %al, l1
4532 if test "x$grub_cv_asm_prefix_requirement" = xyes; then
4533 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
4534 else
4535 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
4538 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } && test -s conftest.o; then
4544 grub_cv_asm_addr32=yes
4545 else
4546 grub_cv_asm_addr32=no
4549 rm -f conftest*
4553 { echo "$as_me:$LINENO: result: $grub_cv_asm_addr32" >&5
4554 echo "${ECHO_T}$grub_cv_asm_addr32" >&6; }
4555 if test "x$grub_cv_asm_addr32" != xyes; then
4556 { { echo "$as_me:$LINENO: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils" >&5
4557 echo "$as_me: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils" >&2;}
4558 { (exit 1); exit 1; }; }
4562 { echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
4563 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6; }
4564 if test "${grub_cv_asm_absolute_without_asterisk+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567 cat > conftest.s <<\EOF
4568 lcall *(offset)
4569 offset:
4570 .long 0
4571 .word 0
4574 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 (eval $ac_try) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; } && test -s conftest.o; then
4580 grub_cv_asm_absolute_without_asterisk=no
4581 else
4582 grub_cv_asm_absolute_without_asterisk=yes
4585 rm -f conftest*
4589 if test "x$grub_cv_asm_absolute_without_asterisk" = xyes; then
4591 cat >>confdefs.h <<\_ACEOF
4592 #define ABSOLUTE_WITHOUT_ASTERISK 1
4593 _ACEOF
4597 { echo "$as_me:$LINENO: result: $grub_cv_asm_absolute_without_asterisk" >&5
4598 echo "${ECHO_T}$grub_cv_asm_absolute_without_asterisk" >&6; }
4601 { echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
4602 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6; }
4603 if test "${grub_cv_check_start_symbol+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606 cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h. */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4614 main ()
4616 asm ("incl start")
4618 return 0;
4620 _ACEOF
4621 rm -f conftest.$ac_objext conftest$ac_exeext
4622 if { (ac_try="$ac_link"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628 (eval "$ac_link") 2>conftest.er1
4629 ac_status=$?
4630 grep -v '^ *+' conftest.er1 >conftest.err
4631 rm -f conftest.er1
4632 cat conftest.err >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } && {
4635 test -z "$ac_c_werror_flag" ||
4636 test ! -s conftest.err
4637 } && test -s conftest$ac_exeext &&
4638 $as_test_x conftest$ac_exeext; then
4639 grub_cv_check_start_symbol=yes
4640 else
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4644 grub_cv_check_start_symbol=no
4647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4648 conftest$ac_exeext conftest.$ac_ext
4652 if test "x$grub_cv_check_start_symbol" = xyes; then
4654 cat >>confdefs.h <<\_ACEOF
4655 #define HAVE_START_SYMBOL 1
4656 _ACEOF
4660 { echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
4661 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6; }
4664 { echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
4665 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6; }
4666 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h. */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4677 main ()
4679 asm ("incl _start")
4681 return 0;
4683 _ACEOF
4684 rm -f conftest.$ac_objext conftest$ac_exeext
4685 if { (ac_try="$ac_link"
4686 case "(($ac_try" in
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4689 esac
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_link") 2>conftest.er1
4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } && {
4698 test -z "$ac_c_werror_flag" ||
4699 test ! -s conftest.err
4700 } && test -s conftest$ac_exeext &&
4701 $as_test_x conftest$ac_exeext; then
4702 grub_cv_check_uscore_start_symbol=yes
4703 else
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4707 grub_cv_check_uscore_start_symbol=no
4710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4711 conftest$ac_exeext conftest.$ac_ext
4715 if test "x$grub_cv_check_uscore_start_symbol" = xyes; then
4717 cat >>confdefs.h <<\_ACEOF
4718 #define HAVE_USCORE_START_SYMBOL 1
4719 _ACEOF
4723 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
4724 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6; }
4726 if test "x$grub_cv_check_start_symbol" != "xyes" \
4727 -a "x$grub_cv_check_uscore_start_symbol" != "xyes"; then
4728 { { echo "$as_me:$LINENO: error: Neither start nor _start is defined" >&5
4729 echo "$as_me: error: Neither start nor _start is defined" >&2;}
4730 { (exit 1); exit 1; }; }
4734 { echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
4735 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6; }
4736 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739 cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h. */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4747 main ()
4749 asm ("incl __bss_start")
4751 return 0;
4753 _ACEOF
4754 rm -f conftest.$ac_objext conftest$ac_exeext
4755 if { (ac_try="$ac_link"
4756 case "(($ac_try" in
4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4759 esac
4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761 (eval "$ac_link") 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } && {
4768 test -z "$ac_c_werror_flag" ||
4769 test ! -s conftest.err
4770 } && test -s conftest$ac_exeext &&
4771 $as_test_x conftest$ac_exeext; then
4772 grub_cv_check_uscore_uscore_bss_start_symbol=yes
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 grub_cv_check_uscore_uscore_bss_start_symbol=no
4780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4781 conftest$ac_exeext conftest.$ac_ext
4785 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
4787 cat >>confdefs.h <<\_ACEOF
4788 #define HAVE_USCORE_USCORE_BSS_START_SYMBOL 1
4789 _ACEOF
4793 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
4794 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
4797 { echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
4798 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6; }
4799 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 else
4802 cat >conftest.$ac_ext <<_ACEOF
4803 /* confdefs.h. */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4810 main ()
4812 asm ("incl _edata")
4814 return 0;
4816 _ACEOF
4817 rm -f conftest.$ac_objext conftest$ac_exeext
4818 if { (ac_try="$ac_link"
4819 case "(($ac_try" in
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4822 esac
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_link") 2>conftest.er1
4825 ac_status=$?
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } && {
4831 test -z "$ac_c_werror_flag" ||
4832 test ! -s conftest.err
4833 } && test -s conftest$ac_exeext &&
4834 $as_test_x conftest$ac_exeext; then
4835 grub_cv_check_uscore_edata_symbol=yes
4836 else
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4840 grub_cv_check_uscore_edata_symbol=no
4843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4844 conftest$ac_exeext conftest.$ac_ext
4848 if test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
4850 cat >>confdefs.h <<\_ACEOF
4851 #define HAVE_USCORE_EDATA_SYMBOL 1
4852 _ACEOF
4856 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
4857 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
4860 { echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
4861 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6; }
4862 if test "${grub_cv_check_edata_symbol+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865 cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h. */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4873 main ()
4875 asm ("incl edata")
4877 return 0;
4879 _ACEOF
4880 rm -f conftest.$ac_objext conftest$ac_exeext
4881 if { (ac_try="$ac_link"
4882 case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885 esac
4886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4887 (eval "$ac_link") 2>conftest.er1
4888 ac_status=$?
4889 grep -v '^ *+' conftest.er1 >conftest.err
4890 rm -f conftest.er1
4891 cat conftest.err >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } && {
4894 test -z "$ac_c_werror_flag" ||
4895 test ! -s conftest.err
4896 } && test -s conftest$ac_exeext &&
4897 $as_test_x conftest$ac_exeext; then
4898 grub_cv_check_edata_symbol=yes
4899 else
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4903 grub_cv_check_edata_symbol=no
4906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4907 conftest$ac_exeext conftest.$ac_ext
4911 if test "x$grub_cv_check_edata_symbol" = xyes; then
4913 cat >>confdefs.h <<\_ACEOF
4914 #define HAVE_EDATA_SYMBOL 1
4915 _ACEOF
4919 { echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
4920 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
4922 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" != "xyes" \
4923 -a "x$grub_cv_check_uscore_edata_symbol" != "xyes" \
4924 -a "x$grub_cv_check_edata_symbol" != "xyes"; then
4925 { { echo "$as_me:$LINENO: error: None of __bss_start, _edata, edata defined" >&5
4926 echo "$as_me: error: None of __bss_start, _edata, edata defined" >&2;}
4927 { (exit 1); exit 1; }; }
4931 { echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
4932 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6; }
4933 if test "${grub_cv_check_end_symbol+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4944 main ()
4946 asm ("incl end")
4948 return 0;
4950 _ACEOF
4951 rm -f conftest.$ac_objext conftest$ac_exeext
4952 if { (ac_try="$ac_link"
4953 case "(($ac_try" in
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4956 esac
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_link") 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } && {
4965 test -z "$ac_c_werror_flag" ||
4966 test ! -s conftest.err
4967 } && test -s conftest$ac_exeext &&
4968 $as_test_x conftest$ac_exeext; then
4969 grub_cv_check_end_symbol=yes
4970 else
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4974 grub_cv_check_end_symbol=no
4977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4978 conftest$ac_exeext conftest.$ac_ext
4982 if test "x$grub_cv_check_end_symbol" = xyes; then
4984 cat >>confdefs.h <<\_ACEOF
4985 #define HAVE_END_SYMBOL 1
4986 _ACEOF
4990 { echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
4991 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
4994 { echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
4995 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6; }
4996 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999 cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h. */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5007 main ()
5009 asm ("incl _end")
5011 return 0;
5013 _ACEOF
5014 rm -f conftest.$ac_objext conftest$ac_exeext
5015 if { (ac_try="$ac_link"
5016 case "(($ac_try" in
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5019 esac
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021 (eval "$ac_link") 2>conftest.er1
5022 ac_status=$?
5023 grep -v '^ *+' conftest.er1 >conftest.err
5024 rm -f conftest.er1
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } && {
5028 test -z "$ac_c_werror_flag" ||
5029 test ! -s conftest.err
5030 } && test -s conftest$ac_exeext &&
5031 $as_test_x conftest$ac_exeext; then
5032 grub_cv_check_uscore_end_symbol=yes
5033 else
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5037 grub_cv_check_uscore_end_symbol=no
5040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5041 conftest$ac_exeext conftest.$ac_ext
5045 if test "x$grub_cv_check_uscore_end_symbol" = xyes; then
5047 cat >>confdefs.h <<\_ACEOF
5048 #define HAVE_USCORE_END_SYMBOL 1
5049 _ACEOF
5053 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
5054 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
5056 if test "x$grub_cv_check_end_symbol" != "xyes" \
5057 -a "x$grub_cv_check_uscore_end_symbol" != "xyes"; then
5058 { { echo "$as_me:$LINENO: error: Neither end nor _end is defined" >&5
5059 echo "$as_me: error: Neither end nor _end is defined" >&2;}
5060 { (exit 1); exit 1; }; }
5063 # Check for curses libraries.
5065 # Check whether --with-curses was given.
5066 if test "${with_curses+set}" = set; then
5067 withval=$with_curses;
5071 # Get the filename or the whole disk and open it.
5072 # Known to work on NetBSD.
5073 { echo "$as_me:$LINENO: checking for opendisk in -lutil" >&5
5074 echo $ECHO_N "checking for opendisk in -lutil... $ECHO_C" >&6; }
5075 if test "${ac_cv_lib_util_opendisk+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078 ac_check_lib_save_LIBS=$LIBS
5079 LIBS="-lutil $LIBS"
5080 cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h. */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5087 /* Override any GCC internal prototype to avoid an error.
5088 Use char because int might match the return type of a GCC
5089 builtin and then its argument prototype would still apply. */
5090 #ifdef __cplusplus
5091 extern "C"
5092 #endif
5093 char opendisk ();
5095 main ()
5097 return opendisk ();
5099 return 0;
5101 _ACEOF
5102 rm -f conftest.$ac_objext conftest$ac_exeext
5103 if { (ac_try="$ac_link"
5104 case "(($ac_try" in
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5107 esac
5108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5109 (eval "$ac_link") 2>conftest.er1
5110 ac_status=$?
5111 grep -v '^ *+' conftest.er1 >conftest.err
5112 rm -f conftest.er1
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } && {
5116 test -z "$ac_c_werror_flag" ||
5117 test ! -s conftest.err
5118 } && test -s conftest$ac_exeext &&
5119 $as_test_x conftest$ac_exeext; then
5120 ac_cv_lib_util_opendisk=yes
5121 else
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5125 ac_cv_lib_util_opendisk=no
5128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5129 conftest$ac_exeext conftest.$ac_ext
5130 LIBS=$ac_check_lib_save_LIBS
5132 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_opendisk" >&5
5133 echo "${ECHO_T}$ac_cv_lib_util_opendisk" >&6; }
5134 if test $ac_cv_lib_util_opendisk = yes; then
5135 GRUB_LIBS="$GRUB_LIBS -lutil"
5137 cat >>confdefs.h <<\_ACEOF
5138 #define HAVE_OPENDISK 1
5139 _ACEOF
5144 # Unless the user specify --without-curses, check for curses.
5145 if test "x$with_curses" != "xno"; then
5146 { echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
5147 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6; }
5148 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151 ac_check_lib_save_LIBS=$LIBS
5152 LIBS="-lncurses $LIBS"
5153 cat >conftest.$ac_ext <<_ACEOF
5154 /* confdefs.h. */
5155 _ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5160 /* Override any GCC internal prototype to avoid an error.
5161 Use char because int might match the return type of a GCC
5162 builtin and then its argument prototype would still apply. */
5163 #ifdef __cplusplus
5164 extern "C"
5165 #endif
5166 char wgetch ();
5168 main ()
5170 return wgetch ();
5172 return 0;
5174 _ACEOF
5175 rm -f conftest.$ac_objext conftest$ac_exeext
5176 if { (ac_try="$ac_link"
5177 case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5180 esac
5181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182 (eval "$ac_link") 2>conftest.er1
5183 ac_status=$?
5184 grep -v '^ *+' conftest.er1 >conftest.err
5185 rm -f conftest.er1
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } && {
5189 test -z "$ac_c_werror_flag" ||
5190 test ! -s conftest.err
5191 } && test -s conftest$ac_exeext &&
5192 $as_test_x conftest$ac_exeext; then
5193 ac_cv_lib_ncurses_wgetch=yes
5194 else
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5198 ac_cv_lib_ncurses_wgetch=no
5201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5202 conftest$ac_exeext conftest.$ac_ext
5203 LIBS=$ac_check_lib_save_LIBS
5205 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
5206 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
5207 if test $ac_cv_lib_ncurses_wgetch = yes; then
5208 GRUB_LIBS="$GRUB_LIBS -lncurses"
5210 cat >>confdefs.h <<\_ACEOF
5211 #define HAVE_LIBCURSES 1
5212 _ACEOF
5214 else
5215 { echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
5216 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6; }
5217 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220 ac_check_lib_save_LIBS=$LIBS
5221 LIBS="-lcurses $LIBS"
5222 cat >conftest.$ac_ext <<_ACEOF
5223 /* confdefs.h. */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5229 /* Override any GCC internal prototype to avoid an error.
5230 Use char because int might match the return type of a GCC
5231 builtin and then its argument prototype would still apply. */
5232 #ifdef __cplusplus
5233 extern "C"
5234 #endif
5235 char wgetch ();
5237 main ()
5239 return wgetch ();
5241 return 0;
5243 _ACEOF
5244 rm -f conftest.$ac_objext conftest$ac_exeext
5245 if { (ac_try="$ac_link"
5246 case "(($ac_try" in
5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248 *) ac_try_echo=$ac_try;;
5249 esac
5250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5251 (eval "$ac_link") 2>conftest.er1
5252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } && {
5258 test -z "$ac_c_werror_flag" ||
5259 test ! -s conftest.err
5260 } && test -s conftest$ac_exeext &&
5261 $as_test_x conftest$ac_exeext; then
5262 ac_cv_lib_curses_wgetch=yes
5263 else
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5267 ac_cv_lib_curses_wgetch=no
5270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5271 conftest$ac_exeext conftest.$ac_ext
5272 LIBS=$ac_check_lib_save_LIBS
5274 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
5275 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
5276 if test $ac_cv_lib_curses_wgetch = yes; then
5277 GRUB_LIBS="$GRUB_LIBS -lcurses"
5279 cat >>confdefs.h <<\_ACEOF
5280 #define HAVE_LIBCURSES 1
5281 _ACEOF
5291 # Check for headers.
5292 ac_ext=c
5293 ac_cpp='$CPP $CPPFLAGS'
5294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5297 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5298 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5299 # On Suns, sometimes $CPP names a directory.
5300 if test -n "$CPP" && test -d "$CPP"; then
5301 CPP=
5303 if test -z "$CPP"; then
5304 if test "${ac_cv_prog_CPP+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 # Double quotes because CPP needs to be expanded
5308 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5310 ac_preproc_ok=false
5311 for ac_c_preproc_warn_flag in '' yes
5313 # Use a header file that comes with gcc, so configuring glibc
5314 # with a fresh cross-compiler works.
5315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316 # <limits.h> exists even on freestanding compilers.
5317 # On the NeXT, cc -E runs the code through the compiler's parser,
5318 # not just through cpp. "Syntax error" is here to catch this case.
5319 cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h. */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 #ifdef __STDC__
5326 # include <limits.h>
5327 #else
5328 # include <assert.h>
5329 #endif
5330 Syntax error
5331 _ACEOF
5332 if { (ac_try="$ac_cpp conftest.$ac_ext"
5333 case "(($ac_try" in
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5336 esac
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } >/dev/null && {
5345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5346 test ! -s conftest.err
5347 }; then
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 # Broken: fails on valid input.
5354 continue
5357 rm -f conftest.err conftest.$ac_ext
5359 # OK, works on sane cases. Now check whether nonexistent headers
5360 # can be detected and how.
5361 cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h. */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 #include <ac_nonexistent.h>
5368 _ACEOF
5369 if { (ac_try="$ac_cpp conftest.$ac_ext"
5370 case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373 esac
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5376 ac_status=$?
5377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } >/dev/null && {
5382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5383 test ! -s conftest.err
5384 }; then
5385 # Broken: success on invalid input.
5386 continue
5387 else
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 # Passes both tests.
5392 ac_preproc_ok=:
5393 break
5396 rm -f conftest.err conftest.$ac_ext
5398 done
5399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5400 rm -f conftest.err conftest.$ac_ext
5401 if $ac_preproc_ok; then
5402 break
5405 done
5406 ac_cv_prog_CPP=$CPP
5409 CPP=$ac_cv_prog_CPP
5410 else
5411 ac_cv_prog_CPP=$CPP
5413 { echo "$as_me:$LINENO: result: $CPP" >&5
5414 echo "${ECHO_T}$CPP" >&6; }
5415 ac_preproc_ok=false
5416 for ac_c_preproc_warn_flag in '' yes
5418 # Use a header file that comes with gcc, so configuring glibc
5419 # with a fresh cross-compiler works.
5420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5421 # <limits.h> exists even on freestanding compilers.
5422 # On the NeXT, cc -E runs the code through the compiler's parser,
5423 # not just through cpp. "Syntax error" is here to catch this case.
5424 cat >conftest.$ac_ext <<_ACEOF
5425 /* confdefs.h. */
5426 _ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 #ifdef __STDC__
5431 # include <limits.h>
5432 #else
5433 # include <assert.h>
5434 #endif
5435 Syntax error
5436 _ACEOF
5437 if { (ac_try="$ac_cpp conftest.$ac_ext"
5438 case "(($ac_try" in
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5441 esac
5442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } >/dev/null && {
5450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5451 test ! -s conftest.err
5452 }; then
5454 else
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 # Broken: fails on valid input.
5459 continue
5462 rm -f conftest.err conftest.$ac_ext
5464 # OK, works on sane cases. Now check whether nonexistent headers
5465 # can be detected and how.
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 #include <ac_nonexistent.h>
5473 _ACEOF
5474 if { (ac_try="$ac_cpp conftest.$ac_ext"
5475 case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478 esac
5479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } >/dev/null && {
5487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5488 test ! -s conftest.err
5489 }; then
5490 # Broken: success on invalid input.
5491 continue
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 # Passes both tests.
5497 ac_preproc_ok=:
5498 break
5501 rm -f conftest.err conftest.$ac_ext
5503 done
5504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5505 rm -f conftest.err conftest.$ac_ext
5506 if $ac_preproc_ok; then
5508 else
5509 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5510 See \`config.log' for more details." >&5
5511 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5512 See \`config.log' for more details." >&2;}
5513 { (exit 1); exit 1; }; }
5516 ac_ext=c
5517 ac_cpp='$CPP $CPPFLAGS'
5518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5523 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5524 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5525 if test "${ac_cv_path_GREP+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528 # Extract the first word of "grep ggrep" to use in msg output
5529 if test -z "$GREP"; then
5530 set dummy grep ggrep; ac_prog_name=$2
5531 if test "${ac_cv_path_GREP+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534 ac_path_GREP_found=false
5535 # Loop through the user's path and test for each of PROGNAME-LIST
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_prog in grep ggrep; do
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5544 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5545 # Check for GNU ac_path_GREP and select it if it is found.
5546 # Check for GNU $ac_path_GREP
5547 case `"$ac_path_GREP" --version 2>&1` in
5548 *GNU*)
5549 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5551 ac_count=0
5552 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5553 while :
5555 cat "conftest.in" "conftest.in" >"conftest.tmp"
5556 mv "conftest.tmp" "conftest.in"
5557 cp "conftest.in" "conftest.nl"
5558 echo 'GREP' >> "conftest.nl"
5559 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5561 ac_count=`expr $ac_count + 1`
5562 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5563 # Best one so far, save it but keep looking for a better one
5564 ac_cv_path_GREP="$ac_path_GREP"
5565 ac_path_GREP_max=$ac_count
5567 # 10*(2^10) chars as input seems more than enough
5568 test $ac_count -gt 10 && break
5569 done
5570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5571 esac
5574 $ac_path_GREP_found && break 3
5575 done
5576 done
5578 done
5579 IFS=$as_save_IFS
5584 GREP="$ac_cv_path_GREP"
5585 if test -z "$GREP"; then
5586 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5587 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5588 { (exit 1); exit 1; }; }
5591 else
5592 ac_cv_path_GREP=$GREP
5597 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5598 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5599 GREP="$ac_cv_path_GREP"
5602 { echo "$as_me:$LINENO: checking for egrep" >&5
5603 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5604 if test "${ac_cv_path_EGREP+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5608 then ac_cv_path_EGREP="$GREP -E"
5609 else
5610 # Extract the first word of "egrep" to use in msg output
5611 if test -z "$EGREP"; then
5612 set dummy egrep; ac_prog_name=$2
5613 if test "${ac_cv_path_EGREP+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 ac_path_EGREP_found=false
5617 # Loop through the user's path and test for each of PROGNAME-LIST
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_prog in egrep; do
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5626 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5627 # Check for GNU ac_path_EGREP and select it if it is found.
5628 # Check for GNU $ac_path_EGREP
5629 case `"$ac_path_EGREP" --version 2>&1` in
5630 *GNU*)
5631 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5633 ac_count=0
5634 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5635 while :
5637 cat "conftest.in" "conftest.in" >"conftest.tmp"
5638 mv "conftest.tmp" "conftest.in"
5639 cp "conftest.in" "conftest.nl"
5640 echo 'EGREP' >> "conftest.nl"
5641 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5643 ac_count=`expr $ac_count + 1`
5644 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5645 # Best one so far, save it but keep looking for a better one
5646 ac_cv_path_EGREP="$ac_path_EGREP"
5647 ac_path_EGREP_max=$ac_count
5649 # 10*(2^10) chars as input seems more than enough
5650 test $ac_count -gt 10 && break
5651 done
5652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5653 esac
5656 $ac_path_EGREP_found && break 3
5657 done
5658 done
5660 done
5661 IFS=$as_save_IFS
5666 EGREP="$ac_cv_path_EGREP"
5667 if test -z "$EGREP"; then
5668 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5669 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5670 { (exit 1); exit 1; }; }
5673 else
5674 ac_cv_path_EGREP=$EGREP
5680 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5681 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5682 EGREP="$ac_cv_path_EGREP"
5685 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5686 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5687 if test "${ac_cv_header_stdc+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h. */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #include <stdlib.h>
5697 #include <stdarg.h>
5698 #include <string.h>
5699 #include <float.h>
5702 main ()
5706 return 0;
5708 _ACEOF
5709 rm -f conftest.$ac_objext
5710 if { (ac_try="$ac_compile"
5711 case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_compile") 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
5726 ac_cv_header_stdc=yes
5727 else
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ac_cv_header_stdc=no
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 if test $ac_cv_header_stdc = yes; then
5737 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5738 cat >conftest.$ac_ext <<_ACEOF
5739 /* confdefs.h. */
5740 _ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5744 #include <string.h>
5746 _ACEOF
5747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5748 $EGREP "memchr" >/dev/null 2>&1; then
5750 else
5751 ac_cv_header_stdc=no
5753 rm -f -r conftest*
5757 if test $ac_cv_header_stdc = yes; then
5758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5759 cat >conftest.$ac_ext <<_ACEOF
5760 /* confdefs.h. */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 #include <stdlib.h>
5767 _ACEOF
5768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5769 $EGREP "free" >/dev/null 2>&1; then
5771 else
5772 ac_cv_header_stdc=no
5774 rm -f -r conftest*
5778 if test $ac_cv_header_stdc = yes; then
5779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5780 if test "$cross_compiling" = yes; then
5782 else
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #include <ctype.h>
5790 #include <stdlib.h>
5791 #if ((' ' & 0x0FF) == 0x020)
5792 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5793 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5794 #else
5795 # define ISLOWER(c) \
5796 (('a' <= (c) && (c) <= 'i') \
5797 || ('j' <= (c) && (c) <= 'r') \
5798 || ('s' <= (c) && (c) <= 'z'))
5799 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5800 #endif
5802 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5804 main ()
5806 int i;
5807 for (i = 0; i < 256; i++)
5808 if (XOR (islower (i), ISLOWER (i))
5809 || toupper (i) != TOUPPER (i))
5810 return 2;
5811 return 0;
5813 _ACEOF
5814 rm -f conftest$ac_exeext
5815 if { (ac_try="$ac_link"
5816 case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_link") 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5825 { (case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828 esac
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_try") 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5835 else
5836 echo "$as_me: program exited with status $ac_status" >&5
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5840 ( exit $ac_status )
5841 ac_cv_header_stdc=no
5843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5849 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5850 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5851 if test $ac_cv_header_stdc = yes; then
5853 cat >>confdefs.h <<\_ACEOF
5854 #define STDC_HEADERS 1
5855 _ACEOF
5859 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5869 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5870 inttypes.h stdint.h unistd.h
5872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878 cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h. */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 $ac_includes_default
5886 #include <$ac_header>
5887 _ACEOF
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5890 case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893 esac
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_compile") 2>conftest.er1
5896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } && {
5902 test -z "$ac_c_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest.$ac_objext; then
5905 eval "$as_ac_Header=yes"
5906 else
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5910 eval "$as_ac_Header=no"
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 ac_res=`eval echo '${'$as_ac_Header'}'`
5916 { echo "$as_me:$LINENO: result: $ac_res" >&5
5917 echo "${ECHO_T}$ac_res" >&6; }
5918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5919 cat >>confdefs.h <<_ACEOF
5920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5921 _ACEOF
5925 done
5933 for ac_header in string.h strings.h ncurses/curses.h ncurses.h curses.h
5935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 ac_res=`eval echo '${'$as_ac_Header'}'`
5943 { echo "$as_me:$LINENO: result: $ac_res" >&5
5944 echo "${ECHO_T}$ac_res" >&6; }
5945 else
5946 # Is the header compilable?
5947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5949 cat >conftest.$ac_ext <<_ACEOF
5950 /* confdefs.h. */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5955 $ac_includes_default
5956 #include <$ac_header>
5957 _ACEOF
5958 rm -f conftest.$ac_objext
5959 if { (ac_try="$ac_compile"
5960 case "(($ac_try" in
5961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962 *) ac_try_echo=$ac_try;;
5963 esac
5964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 (eval "$ac_compile") 2>conftest.er1
5966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } && {
5972 test -z "$ac_c_werror_flag" ||
5973 test ! -s conftest.err
5974 } && test -s conftest.$ac_objext; then
5975 ac_header_compiler=yes
5976 else
5977 echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5980 ac_header_compiler=no
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5985 echo "${ECHO_T}$ac_header_compiler" >&6; }
5987 # Is the header present?
5988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5990 cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h. */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 #include <$ac_header>
5997 _ACEOF
5998 if { (ac_try="$ac_cpp conftest.$ac_ext"
5999 case "(($ac_try" in
6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6002 esac
6003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6005 ac_status=$?
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } >/dev/null && {
6011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6012 test ! -s conftest.err
6013 }; then
6014 ac_header_preproc=yes
6015 else
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6019 ac_header_preproc=no
6022 rm -f conftest.err conftest.$ac_ext
6023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6024 echo "${ECHO_T}$ac_header_preproc" >&6; }
6026 # So? What about this header?
6027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6028 yes:no: )
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6033 ac_header_preproc=yes
6035 no:yes:* )
6036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6048 ( cat <<\_ASBOX
6049 ## ------------------------------- ##
6050 ## Report this to bug-grub@gnu.org ##
6051 ## ------------------------------- ##
6052 _ASBOX
6053 ) | sed "s/^/$as_me: WARNING: /" >&2
6055 esac
6056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 eval "$as_ac_Header=\$ac_header_preproc"
6063 ac_res=`eval echo '${'$as_ac_Header'}'`
6064 { echo "$as_me:$LINENO: result: $ac_res" >&5
6065 echo "${ECHO_T}$ac_res" >&6; }
6068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6069 cat >>confdefs.h <<_ACEOF
6070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6071 _ACEOF
6075 done
6078 # Check for user options.
6080 # filesystems support.
6081 # Check whether --enable-ext2fs was given.
6082 if test "${enable_ext2fs+set}" = set; then
6083 enableval=$enable_ext2fs;
6087 if test x"$enable_ext2fs" != xno; then
6088 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_EXT2FS=1"
6091 # Check whether --enable-fat was given.
6092 if test "${enable_fat+set}" = set; then
6093 enableval=$enable_fat;
6097 if test x"$enable_fat" != xno; then
6098 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_FAT=1"
6101 # Check whether --enable-ffs was given.
6102 if test "${enable_ffs+set}" = set; then
6103 enableval=$enable_ffs;
6107 if test x"$enable_ffs" != xno; then
6108 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_FFS=1"
6111 # Check whether --enable-ufs2 was given.
6112 if test "${enable_ufs2+set}" = set; then
6113 enableval=$enable_ufs2;
6117 if test x"$enable_ufs2" != xno; then
6118 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_UFS2=1"
6121 # Check whether --enable-minix was given.
6122 if test "${enable_minix+set}" = set; then
6123 enableval=$enable_minix;
6127 if test x"$enable_minix" != xno; then
6128 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_MINIX=1"
6131 # Check whether --enable-reiserfs was given.
6132 if test "${enable_reiserfs+set}" = set; then
6133 enableval=$enable_reiserfs;
6137 if test x"$enable_reiserfs" != xno; then
6138 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_REISERFS=1"
6141 # Check whether --enable-vstafs was given.
6142 if test "${enable_vstafs+set}" = set; then
6143 enableval=$enable_vstafs;
6147 if test x"$enable_vstafs" != xno; then
6148 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_VSTAFS=1"
6151 # Check whether --enable-jfs was given.
6152 if test "${enable_jfs+set}" = set; then
6153 enableval=$enable_jfs;
6157 if test x"$enable_jfs" != xno; then
6158 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_JFS=1"
6161 # Check whether --enable-xfs was given.
6162 if test "${enable_xfs+set}" = set; then
6163 enableval=$enable_xfs;
6167 if test x"$enable_xfs" != xno; then
6168 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_XFS=1"
6171 # Check whether --enable-iso9660 was given.
6172 if test "${enable_iso9660+set}" = set; then
6173 enableval=$enable_iso9660;
6177 if test x"$enable_iso9660" != xno; then
6178 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_ISO9660=1"
6181 # Check whether --enable-affs was given.
6182 if test "${enable_affs+set}" = set; then
6183 enableval=$enable_affs;
6187 if test x"$enable_affs" != xno; then
6188 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_AFFS=1"
6192 # Check whether --enable-gunzip was given.
6193 if test "${enable_gunzip+set}" = set; then
6194 enableval=$enable_gunzip;
6198 if test x"$enable_gunzip" = xno; then
6199 FSYS_CFLAGS="$FSYS_CFLAGS -DNO_DECOMPRESSION=1"
6202 # Check whether --enable-md5-password was given.
6203 if test "${enable_md5_password+set}" = set; then
6204 enableval=$enable_md5_password;
6207 if test "x$enable_md5_password" != xno; then
6208 FSYS_CFLAGS="$FSYS_CFLAGS -DUSE_MD5_PASSWORDS=1"
6211 # Check whether --enable-packet-retransmission was given.
6212 if test "${enable_packet_retransmission+set}" = set; then
6213 enableval=$enable_packet_retransmission;
6216 if test "x$enable_packet_retransmission" != xno; then
6217 NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCONGESTED=1"
6220 # Check whether --enable-pci-direct was given.
6221 if test "${enable_pci_direct+set}" = set; then
6222 enableval=$enable_pci_direct;
6225 if test "x$enable_pci_direct" = xyes; then
6226 NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCONFIG_PCI_DIRECT=1"
6229 # Check whether --enable-3c509 was given.
6230 if test "${enable_3c509+set}" = set; then
6231 enableval=$enable_3c509;
6234 if test "x$enable_3c509" = xyes; then
6235 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C509"
6236 NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c509.o"
6239 # Check whether --enable-3c529 was given.
6240 if test "${enable_3c529+set}" = set; then
6241 enableval=$enable_3c529;
6244 if test "x$enable_3c529" = xyes; then
6245 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C529=1"
6246 NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c529.o"
6249 # Check whether --enable-3c595 was given.
6250 if test "${enable_3c595+set}" = set; then
6251 enableval=$enable_3c595;
6254 if test "x$enable_3c595" = xyes; then
6255 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C595=1"
6256 NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c595.o"
6259 # Check whether --enable-3c90x was given.
6260 if test "${enable_3c90x+set}" = set; then
6261 enableval=$enable_3c90x;
6264 if test "x$enable_3c90x" = xyes; then
6265 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C90X=1"
6266 NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c90x.o"
6269 # Check whether --enable-cs89x0 was given.
6270 if test "${enable_cs89x0+set}" = set; then
6271 enableval=$enable_cs89x0;
6274 if test "x$enable_cs89x0" = xyes; then
6275 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_CS89X0=1"
6276 NETBOOT_DRIVERS="$NETBOOT_DRIVERS cs89x0.o"
6279 # Check whether --enable-davicom was given.
6280 if test "${enable_davicom+set}" = set; then
6281 enableval=$enable_davicom;
6284 if test "x$enable_davicom" = xyes; then
6285 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_DAVICOM=1"
6286 NETBOOT_DRIVERS="$NETBOOT_DRIVERS davicom.o"
6289 # Check whether --enable-depca was given.
6290 if test "${enable_depca+set}" = set; then
6291 enableval=$enable_depca;
6294 if test "x$enable_depca" = xyes; then
6295 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_DEPCA=1"
6296 NETBOOT_DRIVERS="$NETBOOT_DRIVERS depca.o"
6299 # Check whether --enable-eepro was given.
6300 if test "${enable_eepro+set}" = set; then
6301 enableval=$enable_eepro;
6304 if test "x$enable_eepro" = xyes; then
6305 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EEPRO=1"
6306 NETBOOT_DRIVERS="$NETBOOT_DRIVERS eepro.o"
6309 # Check whether --enable-eepro100 was given.
6310 if test "${enable_eepro100+set}" = set; then
6311 enableval=$enable_eepro100;
6314 if test "x$enable_eepro100" = xyes; then
6315 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EEPRO100=1"
6316 NETBOOT_DRIVERS="$NETBOOT_DRIVERS eepro100.o"
6319 # Check whether --enable-epic100 was given.
6320 if test "${enable_epic100+set}" = set; then
6321 enableval=$enable_epic100;
6324 if test "x$enable_epic100" = xyes; then
6325 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EPIC100=1"
6326 NETBOOT_DRIVERS="$NETBOOT_DRIVERS epic100.o"
6329 # Check whether --enable-3c507 was given.
6330 if test "${enable_3c507+set}" = set; then
6331 enableval=$enable_3c507;
6334 if test "x$enable_3c507" = xyes; then
6335 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C507=1"
6336 NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c507.o"
6339 # Check whether --enable-exos205 was given.
6340 if test "${enable_exos205+set}" = set; then
6341 enableval=$enable_exos205;
6344 if test "x$enable_exos205" = xyes; then
6345 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EXOS205=1"
6346 NETBOOT_DRIVERS="$NETBOOT_DRIVERS exos205.o"
6349 # Check whether --enable-ni5210 was given.
6350 if test "${enable_ni5210+set}" = set; then
6351 enableval=$enable_ni5210;
6354 if test "x$enable_ni5210" = xyes; then
6355 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NI5210=1"
6356 NETBOOT_DRIVERS="$NETBOOT_DRIVERS ni5210.o"
6359 # Check whether --enable-lance was given.
6360 if test "${enable_lance+set}" = set; then
6361 enableval=$enable_lance;
6364 if test "x$enable_lance" = xyes; then
6365 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_LANCE=1"
6366 NETBOOT_DRIVERS="$NETBOOT_DRIVERS lance.o"
6369 # Check whether --enable-ne2100 was given.
6370 if test "${enable_ne2100+set}" = set; then
6371 enableval=$enable_ne2100;
6374 if test "x$enable_ne2100" = xyes; then
6375 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NE2100=1"
6376 NETBOOT_DRIVERS="$NETBOOT_DRIVERS ne2100.o"
6379 # Check whether --enable-ni6510 was given.
6380 if test "${enable_ni6510+set}" = set; then
6381 enableval=$enable_ni6510;
6384 if test "x$enable_ni6510" = xyes; then
6385 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NI6510=1"
6386 NETBOOT_DRIVERS="$NETBOOT_DRIVERS ni6510.o"
6389 # Check whether --enable-natsemi was given.
6390 if test "${enable_natsemi+set}" = set; then
6391 enableval=$enable_natsemi;
6394 if test "x$enable_natsemi" = xyes; then
6395 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NATSEMI=1"
6396 NETBOOT_DRIVERS="$NETBOOT_DRIVERS natsemi.o"
6399 # Check whether --enable-ni5010 was given.
6400 if test "${enable_ni5010+set}" = set; then
6401 enableval=$enable_ni5010;
6404 if test "x$enable_ni5010" = xyes; then
6405 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NI5010=1"
6406 NETBOOT_DRIVERS="$NETBOOT_DRIVERS ni5010.o"
6409 # Check whether --enable-3c503 was given.
6410 if test "${enable_3c503+set}" = set; then
6411 enableval=$enable_3c503;
6414 if test "x$enable_3c503" = xyes; then
6415 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C503=1"
6416 NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c503.o"
6419 # Check whether --enable-ne was given.
6420 if test "${enable_ne+set}" = set; then
6421 enableval=$enable_ne;
6424 if test "x$enable_ne" = xyes; then
6425 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NE=1"
6426 NETBOOT_DRIVERS="$NETBOOT_DRIVERS ne.o"
6429 # Check whether --enable-ns8390 was given.
6430 if test "${enable_ns8390+set}" = set; then
6431 enableval=$enable_ns8390;
6434 if test "x$enable_ns8390" = xyes; then
6435 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NS8390=1"
6436 NETBOOT_DRIVERS="$NETBOOT_DRIVERS ns8390.o"
6439 # Check whether --enable-wd was given.
6440 if test "${enable_wd+set}" = set; then
6441 enableval=$enable_wd;
6444 if test "x$enable_wd" = xyes; then
6445 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_WD=1"
6446 NETBOOT_DRIVERS="$NETBOOT_DRIVERS wd.o"
6449 # Check whether --enable-otulip was given.
6450 if test "${enable_otulip+set}" = set; then
6451 enableval=$enable_otulip;
6454 if test "x$enable_otulip" = xyes; then
6455 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_OTULIP=1"
6456 NETBOOT_DRIVERS="$NETBOOT_DRIVERS otulip.o"
6459 # Check whether --enable-rtl8139 was given.
6460 if test "${enable_rtl8139+set}" = set; then
6461 enableval=$enable_rtl8139;
6464 if test "x$enable_rtl8139" = xyes; then
6465 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_RTL8139=1"
6466 NETBOOT_DRIVERS="$NETBOOT_DRIVERS rtl8139.o"
6469 # Check whether --enable-sis900 was given.
6470 if test "${enable_sis900+set}" = set; then
6471 enableval=$enable_sis900;
6474 if test "x$enable_sis900" = xyes; then
6475 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SIS900=1"
6476 NETBOOT_DRIVERS="$NETBOOT_DRIVERS sis900.o"
6479 # Check whether --enable-sk-g16 was given.
6480 if test "${enable_sk_g16+set}" = set; then
6481 enableval=$enable_sk_g16;
6484 if test "x$enable_sk_g16" = xyes; then
6485 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SK_G16=1"
6486 NETBOOT_DRIVERS="$NETBOOT_DRIVERS sk_g16.o"
6489 # Check whether --enable-smc9000 was given.
6490 if test "${enable_smc9000+set}" = set; then
6491 enableval=$enable_smc9000;
6494 if test "x$enable_smc9000" = xyes; then
6495 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SMC9000=1"
6496 NETBOOT_DRIVERS="$NETBOOT_DRIVERS smc9000.o"
6499 # Check whether --enable-tiara was given.
6500 if test "${enable_tiara+set}" = set; then
6501 enableval=$enable_tiara;
6504 if test "x$enable_tiara" = xyes; then
6505 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TIARA=1"
6506 NETBOOT_DRIVERS="$NETBOOT_DRIVERS tiara.o"
6509 # Check whether --enable-tulip was given.
6510 if test "${enable_tulip+set}" = set; then
6511 enableval=$enable_tulip;
6514 if test "x$enable_tulip" = xyes; then
6515 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TULIP=1"
6516 NETBOOT_DRIVERS="$NETBOOT_DRIVERS tulip.o"
6519 # Check whether --enable-via-rhine was given.
6520 if test "${enable_via_rhine+set}" = set; then
6521 enableval=$enable_via_rhine;
6524 if test "x$enable_via_rhine" = xyes; then
6525 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_VIA_RHINE=1"
6526 NETBOOT_DRIVERS="$NETBOOT_DRIVERS via_rhine.o"
6529 # Check whether --enable-w89c840 was given.
6530 if test "${enable_w89c840+set}" = set; then
6531 enableval=$enable_w89c840;
6534 if test "x$enable_w89c840" = xyes; then
6535 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_W89C840=1"
6536 NETBOOT_DRIVERS="$NETBOOT_DRIVERS w89c840.o"
6541 if test "x$NET_CFLAGS" != x; then
6542 NETBOOT_SUPPORT_TRUE=
6543 NETBOOT_SUPPORT_FALSE='#'
6544 else
6545 NETBOOT_SUPPORT_TRUE='#'
6546 NETBOOT_SUPPORT_FALSE=
6549 if test "x$NET_CFLAGS" != x; then
6550 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_TFTP=1"
6553 # Check whether --enable-3c503-shmem was given.
6554 if test "${enable_3c503_shmem+set}" = set; then
6555 enableval=$enable_3c503_shmem;
6558 if test "x$enable_3c503_shmem" = xyes; then
6559 NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DT503_SHMEM=1"
6562 # Check whether --enable-3c503-aui was given.
6563 if test "${enable_3c503_aui+set}" = set; then
6564 enableval=$enable_3c503_aui;
6567 if test "x$enable_3c503_aui" = xyes; then
6568 NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DT503_AUI=1"
6571 # Check whether --enable-compex-rl2000-fix was given.
6572 if test "${enable_compex_rl2000_fix+set}" = set; then
6573 enableval=$enable_compex_rl2000_fix;
6576 if test "x$enable_compex_rl2000_fix" = xyes; then
6577 NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCOMPEX_RL2000_FIX=1"
6580 # Check whether --enable-smc9000-scan was given.
6581 if test "${enable_smc9000_scan+set}" = set; then
6582 enableval=$enable_smc9000_scan; NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DSMC9000_SCAN=$enable_smc9000_scan"
6586 # Check whether --enable-ne-scan was given.
6587 if test "${enable_ne_scan+set}" = set; then
6588 enableval=$enable_ne_scan; NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNE_SCAN=$enable_ne_scan"
6589 else
6590 NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNE_SCAN=0x280,0x300,0x320,0x340"
6594 # Check whether --enable-wd-default-mem was given.
6595 if test "${enable_wd_default_mem+set}" = set; then
6596 enableval=$enable_wd_default_mem; NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=$enable_wd_default_mem"
6597 else
6598 NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=0xCC000"
6602 # Check whether --enable-cs-scan was given.
6603 if test "${enable_cs_scan+set}" = set; then
6604 enableval=$enable_cs_scan; NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCS_SCAN=$enable_cs_scan"
6608 # Check whether --enable-diskless was given.
6609 if test "${enable_diskless+set}" = set; then
6610 enableval=$enable_diskless;
6615 if test "x$enable_diskless" = xyes; then
6616 DISKLESS_SUPPORT_TRUE=
6617 DISKLESS_SUPPORT_FALSE='#'
6618 else
6619 DISKLESS_SUPPORT_TRUE='#'
6620 DISKLESS_SUPPORT_FALSE=
6624 # Check whether --enable-hercules was given.
6625 if test "${enable_hercules+set}" = set; then
6626 enableval=$enable_hercules;
6631 if test "x$enable_hercules" != xno; then
6632 HERCULES_SUPPORT_TRUE=
6633 HERCULES_SUPPORT_FALSE='#'
6634 else
6635 HERCULES_SUPPORT_TRUE='#'
6636 HERCULES_SUPPORT_FALSE=
6640 # Check whether --enable-serial was given.
6641 if test "${enable_serial+set}" = set; then
6642 enableval=$enable_serial;
6647 if test "x$enable_serial" != xno; then
6648 SERIAL_SUPPORT_TRUE=
6649 SERIAL_SUPPORT_FALSE='#'
6650 else
6651 SERIAL_SUPPORT_TRUE='#'
6652 SERIAL_SUPPORT_FALSE=
6656 # Check whether --enable-serial-speed-simulation was given.
6657 if test "${enable_serial_speed_simulation+set}" = set; then
6658 enableval=$enable_serial_speed_simulation;
6663 if test "x$enable_serial_speed_simulation" = xyes; then
6664 SERIAL_SPEED_SIMULATION_TRUE=
6665 SERIAL_SPEED_SIMULATION_FALSE='#'
6666 else
6667 SERIAL_SPEED_SIMULATION_TRUE='#'
6668 SERIAL_SPEED_SIMULATION_FALSE=
6672 # Sanity check.
6673 if test "x$enable_diskless" = xyes; then
6674 if test "x$NET_CFLAGS" = x; then
6675 { { echo "$as_me:$LINENO: error: You must enable at least one network driver" >&5
6676 echo "$as_me: error: You must enable at least one network driver" >&2;}
6677 { (exit 1); exit 1; }; }
6681 # Check whether --enable-preset-menu was given.
6682 if test "${enable_preset_menu+set}" = set; then
6683 enableval=$enable_preset_menu;
6686 if test "x$enable_preset_menu" = x; then
6688 else
6689 if test -r $enable_preset_menu; then
6691 # Because early versions of GNU sed 3.x are too buggy, use a C program
6692 # instead of shell commands. *sigh*
6693 cat >conftest.c <<\EOF
6694 #include <stdio.h>
6697 main (void)
6699 int c;
6701 while ((c = getchar ()) != EOF)
6703 switch (c)
6705 case '\n':
6706 fputs ("\\n", stdout);
6707 break;
6708 case '\r':
6709 fputs ("\\r", stdout);
6710 break;
6711 case '\\':
6712 fputs ("\\\\", stdout);
6713 break;
6714 case '"':
6715 fputs ("\\\"", stdout);
6716 break;
6717 default:
6718 putchar (c);
6722 return 0;
6726 if { ac_try='${CC_FOR_BUILD-cc} ${CFLAGS} conftest.c -o conftest'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 (eval $ac_try) 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; } && test -s conftest; then
6732 grub_tmp_value=`./conftest < "$enable_preset_menu"`
6733 else
6734 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce an executable file" >&5
6735 echo "$as_me: error: ${CC-cc} failed to produce an executable file" >&2;}
6736 { (exit 1); exit 1; }; }
6740 cat >>confdefs.h <<_ACEOF
6741 #define PRESET_MENU_STRING "$grub_tmp_value"
6742 _ACEOF
6744 rm -f conftest*
6746 else
6747 { { echo "$as_me:$LINENO: error: Cannot read the preset menu file $enable_preset_menu" >&5
6748 echo "$as_me: error: Cannot read the preset menu file $enable_preset_menu" >&2;}
6749 { (exit 1); exit 1; }; }
6753 # Check whether --enable-example-kernel was given.
6754 if test "${enable_example_kernel+set}" = set; then
6755 enableval=$enable_example_kernel;
6760 if test "x$enable_example_kernel" = xyes; then
6761 BUILD_EXAMPLE_KERNEL_TRUE=
6762 BUILD_EXAMPLE_KERNEL_FALSE='#'
6763 else
6764 BUILD_EXAMPLE_KERNEL_TRUE='#'
6765 BUILD_EXAMPLE_KERNEL_FALSE=
6769 # Check whether --enable-auto-linux-mem-opt was given.
6770 if test "${enable_auto_linux_mem_opt+set}" = set; then
6771 enableval=$enable_auto_linux_mem_opt;
6774 if test "x$enable_auto_linux_mem_opt" = xno; then
6776 else
6778 cat >>confdefs.h <<\_ACEOF
6779 #define AUTO_LINUX_MEM_OPT 1
6780 _ACEOF
6789 CCASFLAGS='$(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)'
6793 ac_config_files="$ac_config_files Makefile stage1/Makefile stage2/Makefile docs/Makefile lib/Makefile util/Makefile grub/Makefile netboot/Makefile util/grub-image util/grub-install util/grub-md5-crypt util/grub-terminfo util/grub-set-default"
6795 cat >confcache <<\_ACEOF
6796 # This file is a shell script that caches the results of configure
6797 # tests run on this system so they can be shared between configure
6798 # scripts and configure runs, see configure's option --config-cache.
6799 # It is not useful on other systems. If it contains results you don't
6800 # want to keep, you may remove or edit it.
6802 # config.status only pays attention to the cache file if you give it
6803 # the --recheck option to rerun configure.
6805 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6806 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6807 # following values.
6809 _ACEOF
6811 # The following way of writing the cache mishandles newlines in values,
6812 # but we know of no workaround that is simple, portable, and efficient.
6813 # So, we kill variables containing newlines.
6814 # Ultrix sh set writes to stderr and can't be redirected directly,
6815 # and sets the high bit in the cache file unless we assign to the vars.
6817 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6818 eval ac_val=\$$ac_var
6819 case $ac_val in #(
6820 *${as_nl}*)
6821 case $ac_var in #(
6822 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6823 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6824 esac
6825 case $ac_var in #(
6826 _ | IFS | as_nl) ;; #(
6827 *) $as_unset $ac_var ;;
6828 esac ;;
6829 esac
6830 done
6832 (set) 2>&1 |
6833 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6834 *${as_nl}ac_space=\ *)
6835 # `set' does not quote correctly, so add quotes (double-quote
6836 # substitution turns \\\\ into \\, and sed turns \\ into \).
6837 sed -n \
6838 "s/'/'\\\\''/g;
6839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6840 ;; #(
6842 # `set' quotes correctly as required by POSIX, so do not add quotes.
6843 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6845 esac |
6846 sort
6848 sed '
6849 /^ac_cv_env_/b end
6850 t clear
6851 :clear
6852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6853 t end
6854 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6855 :end' >>confcache
6856 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6857 if test -w "$cache_file"; then
6858 test "x$cache_file" != "x/dev/null" &&
6859 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6860 echo "$as_me: updating cache $cache_file" >&6;}
6861 cat confcache >$cache_file
6862 else
6863 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6864 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6867 rm -f confcache
6869 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6870 # Let make expand exec_prefix.
6871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6873 DEFS=-DHAVE_CONFIG_H
6875 ac_libobjs=
6876 ac_ltlibobjs=
6877 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6878 # 1. Remove the extension, and $U if already installed.
6879 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6880 ac_i=`echo "$ac_i" | sed "$ac_script"`
6881 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6882 # will be set to the directory where LIBOBJS objects are built.
6883 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6884 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6885 done
6886 LIBOBJS=$ac_libobjs
6888 LTLIBOBJS=$ac_ltlibobjs
6891 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6892 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6893 Usually this means the macro was only invoked conditionally." >&5
6894 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6895 Usually this means the macro was only invoked conditionally." >&2;}
6896 { (exit 1); exit 1; }; }
6898 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6899 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6900 Usually this means the macro was only invoked conditionally." >&5
6901 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6902 Usually this means the macro was only invoked conditionally." >&2;}
6903 { (exit 1); exit 1; }; }
6905 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6906 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6907 Usually this means the macro was only invoked conditionally." >&5
6908 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6909 Usually this means the macro was only invoked conditionally." >&2;}
6910 { (exit 1); exit 1; }; }
6912 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6913 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6914 Usually this means the macro was only invoked conditionally." >&5
6915 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6916 Usually this means the macro was only invoked conditionally." >&2;}
6917 { (exit 1); exit 1; }; }
6919 if test -z "${NETBOOT_SUPPORT_TRUE}" && test -z "${NETBOOT_SUPPORT_FALSE}"; then
6920 { { echo "$as_me:$LINENO: error: conditional \"NETBOOT_SUPPORT\" was never defined.
6921 Usually this means the macro was only invoked conditionally." >&5
6922 echo "$as_me: error: conditional \"NETBOOT_SUPPORT\" was never defined.
6923 Usually this means the macro was only invoked conditionally." >&2;}
6924 { (exit 1); exit 1; }; }
6926 if test -z "${DISKLESS_SUPPORT_TRUE}" && test -z "${DISKLESS_SUPPORT_FALSE}"; then
6927 { { echo "$as_me:$LINENO: error: conditional \"DISKLESS_SUPPORT\" was never defined.
6928 Usually this means the macro was only invoked conditionally." >&5
6929 echo "$as_me: error: conditional \"DISKLESS_SUPPORT\" was never defined.
6930 Usually this means the macro was only invoked conditionally." >&2;}
6931 { (exit 1); exit 1; }; }
6933 if test -z "${HERCULES_SUPPORT_TRUE}" && test -z "${HERCULES_SUPPORT_FALSE}"; then
6934 { { echo "$as_me:$LINENO: error: conditional \"HERCULES_SUPPORT\" was never defined.
6935 Usually this means the macro was only invoked conditionally." >&5
6936 echo "$as_me: error: conditional \"HERCULES_SUPPORT\" was never defined.
6937 Usually this means the macro was only invoked conditionally." >&2;}
6938 { (exit 1); exit 1; }; }
6940 if test -z "${SERIAL_SUPPORT_TRUE}" && test -z "${SERIAL_SUPPORT_FALSE}"; then
6941 { { echo "$as_me:$LINENO: error: conditional \"SERIAL_SUPPORT\" was never defined.
6942 Usually this means the macro was only invoked conditionally." >&5
6943 echo "$as_me: error: conditional \"SERIAL_SUPPORT\" was never defined.
6944 Usually this means the macro was only invoked conditionally." >&2;}
6945 { (exit 1); exit 1; }; }
6947 if test -z "${SERIAL_SPEED_SIMULATION_TRUE}" && test -z "${SERIAL_SPEED_SIMULATION_FALSE}"; then
6948 { { echo "$as_me:$LINENO: error: conditional \"SERIAL_SPEED_SIMULATION\" was never defined.
6949 Usually this means the macro was only invoked conditionally." >&5
6950 echo "$as_me: error: conditional \"SERIAL_SPEED_SIMULATION\" was never defined.
6951 Usually this means the macro was only invoked conditionally." >&2;}
6952 { (exit 1); exit 1; }; }
6954 if test -z "${BUILD_EXAMPLE_KERNEL_TRUE}" && test -z "${BUILD_EXAMPLE_KERNEL_FALSE}"; then
6955 { { echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLE_KERNEL\" was never defined.
6956 Usually this means the macro was only invoked conditionally." >&5
6957 echo "$as_me: error: conditional \"BUILD_EXAMPLE_KERNEL\" was never defined.
6958 Usually this means the macro was only invoked conditionally." >&2;}
6959 { (exit 1); exit 1; }; }
6962 : ${CONFIG_STATUS=./config.status}
6963 ac_clean_files_save=$ac_clean_files
6964 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6965 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6966 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6967 cat >$CONFIG_STATUS <<_ACEOF
6968 #! $SHELL
6969 # Generated by $as_me.
6970 # Run this file to recreate the current configuration.
6971 # Compiler output produced by configure, useful for debugging
6972 # configure, is in config.log if it exists.
6974 debug=false
6975 ac_cs_recheck=false
6976 ac_cs_silent=false
6977 SHELL=\${CONFIG_SHELL-$SHELL}
6978 _ACEOF
6980 cat >>$CONFIG_STATUS <<\_ACEOF
6981 ## --------------------- ##
6982 ## M4sh Initialization. ##
6983 ## --------------------- ##
6985 # Be more Bourne compatible
6986 DUALCASE=1; export DUALCASE # for MKS sh
6987 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6988 emulate sh
6989 NULLCMD=:
6990 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6991 # is contrary to our usage. Disable this feature.
6992 alias -g '${1+"$@"}'='"$@"'
6993 setopt NO_GLOB_SUBST
6994 else
6995 case `(set -o) 2>/dev/null` in
6996 *posix*) set -o posix ;;
6997 esac
7004 # PATH needs CR
7005 # Avoid depending upon Character Ranges.
7006 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7007 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7008 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7009 as_cr_digits='0123456789'
7010 as_cr_alnum=$as_cr_Letters$as_cr_digits
7012 # The user is always right.
7013 if test "${PATH_SEPARATOR+set}" != set; then
7014 echo "#! /bin/sh" >conf$$.sh
7015 echo "exit 0" >>conf$$.sh
7016 chmod +x conf$$.sh
7017 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7018 PATH_SEPARATOR=';'
7019 else
7020 PATH_SEPARATOR=:
7022 rm -f conf$$.sh
7025 # Support unset when possible.
7026 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7027 as_unset=unset
7028 else
7029 as_unset=false
7033 # IFS
7034 # We need space, tab and new line, in precisely that order. Quoting is
7035 # there to prevent editors from complaining about space-tab.
7036 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7037 # splitting by setting IFS to empty value.)
7038 as_nl='
7040 IFS=" "" $as_nl"
7042 # Find who we are. Look in the path if we contain no directory separator.
7043 case $0 in
7044 *[\\/]* ) as_myself=$0 ;;
7045 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7051 done
7052 IFS=$as_save_IFS
7055 esac
7056 # We did not find ourselves, most probably we were run as `sh COMMAND'
7057 # in which case we are not to be found in the path.
7058 if test "x$as_myself" = x; then
7059 as_myself=$0
7061 if test ! -f "$as_myself"; then
7062 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7063 { (exit 1); exit 1; }
7066 # Work around bugs in pre-3.0 UWIN ksh.
7067 for as_var in ENV MAIL MAILPATH
7068 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7069 done
7070 PS1='$ '
7071 PS2='> '
7072 PS4='+ '
7074 # NLS nuisances.
7075 for as_var in \
7076 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7077 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7078 LC_TELEPHONE LC_TIME
7080 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7081 eval $as_var=C; export $as_var
7082 else
7083 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7085 done
7087 # Required to use basename.
7088 if expr a : '\(a\)' >/dev/null 2>&1 &&
7089 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7090 as_expr=expr
7091 else
7092 as_expr=false
7095 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7096 as_basename=basename
7097 else
7098 as_basename=false
7102 # Name of the executable.
7103 as_me=`$as_basename -- "$0" ||
7104 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7105 X"$0" : 'X\(//\)$' \| \
7106 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7107 echo X/"$0" |
7108 sed '/^.*\/\([^/][^/]*\)\/*$/{
7109 s//\1/
7112 /^X\/\(\/\/\)$/{
7113 s//\1/
7116 /^X\/\(\/\).*/{
7117 s//\1/
7120 s/.*/./; q'`
7122 # CDPATH.
7123 $as_unset CDPATH
7127 as_lineno_1=$LINENO
7128 as_lineno_2=$LINENO
7129 test "x$as_lineno_1" != "x$as_lineno_2" &&
7130 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7132 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7133 # uniformly replaced by the line number. The first 'sed' inserts a
7134 # line-number line after each line using $LINENO; the second 'sed'
7135 # does the real work. The second script uses 'N' to pair each
7136 # line-number line with the line containing $LINENO, and appends
7137 # trailing '-' during substitution so that $LINENO is not a special
7138 # case at line end.
7139 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7140 # scripts with optimization help from Paolo Bonzini. Blame Lee
7141 # E. McMahon (1931-1989) for sed's syntax. :-)
7142 sed -n '
7144 /[$]LINENO/=
7145 ' <$as_myself |
7146 sed '
7147 s/[$]LINENO.*/&-/
7148 t lineno
7150 :lineno
7152 :loop
7153 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7154 t loop
7155 s/-\n.*//
7156 ' >$as_me.lineno &&
7157 chmod +x "$as_me.lineno" ||
7158 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7159 { (exit 1); exit 1; }; }
7161 # Don't try to exec as it changes $[0], causing all sort of problems
7162 # (the dirname of $[0] is not the place where we might find the
7163 # original and so on. Autoconf is especially sensitive to this).
7164 . "./$as_me.lineno"
7165 # Exit status is that of the last command.
7166 exit
7170 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7171 as_dirname=dirname
7172 else
7173 as_dirname=false
7176 ECHO_C= ECHO_N= ECHO_T=
7177 case `echo -n x` in
7178 -n*)
7179 case `echo 'x\c'` in
7180 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7181 *) ECHO_C='\c';;
7182 esac;;
7184 ECHO_N='-n';;
7185 esac
7187 if expr a : '\(a\)' >/dev/null 2>&1 &&
7188 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7189 as_expr=expr
7190 else
7191 as_expr=false
7194 rm -f conf$$ conf$$.exe conf$$.file
7195 if test -d conf$$.dir; then
7196 rm -f conf$$.dir/conf$$.file
7197 else
7198 rm -f conf$$.dir
7199 mkdir conf$$.dir
7201 echo >conf$$.file
7202 if ln -s conf$$.file conf$$ 2>/dev/null; then
7203 as_ln_s='ln -s'
7204 # ... but there are two gotchas:
7205 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7206 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7207 # In both cases, we have to default to `cp -p'.
7208 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7209 as_ln_s='cp -p'
7210 elif ln conf$$.file conf$$ 2>/dev/null; then
7211 as_ln_s=ln
7212 else
7213 as_ln_s='cp -p'
7215 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7216 rmdir conf$$.dir 2>/dev/null
7218 if mkdir -p . 2>/dev/null; then
7219 as_mkdir_p=:
7220 else
7221 test -d ./-p && rmdir ./-p
7222 as_mkdir_p=false
7225 if test -x / >/dev/null 2>&1; then
7226 as_test_x='test -x'
7227 else
7228 if ls -dL / >/dev/null 2>&1; then
7229 as_ls_L_option=L
7230 else
7231 as_ls_L_option=
7233 as_test_x='
7234 eval sh -c '\''
7235 if test -d "$1"; then
7236 test -d "$1/.";
7237 else
7238 case $1 in
7239 -*)set "./$1";;
7240 esac;
7241 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7242 ???[sx]*):;;*)false;;esac;fi
7243 '\'' sh
7246 as_executable_p=$as_test_x
7248 # Sed expression to map a string onto a valid CPP name.
7249 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7251 # Sed expression to map a string onto a valid variable name.
7252 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7255 exec 6>&1
7257 # Save the log message, to keep $[0] and so on meaningful, and to
7258 # report actual input values of CONFIG_FILES etc. instead of their
7259 # values after options handling.
7260 ac_log="
7261 This file was extended by GRUB $as_me 0.97, which was
7262 generated by GNU Autoconf 2.61. Invocation command line was
7264 CONFIG_FILES = $CONFIG_FILES
7265 CONFIG_HEADERS = $CONFIG_HEADERS
7266 CONFIG_LINKS = $CONFIG_LINKS
7267 CONFIG_COMMANDS = $CONFIG_COMMANDS
7268 $ $0 $@
7270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7273 _ACEOF
7275 cat >>$CONFIG_STATUS <<_ACEOF
7276 # Files that config.status was made for.
7277 config_files="$ac_config_files"
7278 config_headers="$ac_config_headers"
7279 config_commands="$ac_config_commands"
7281 _ACEOF
7283 cat >>$CONFIG_STATUS <<\_ACEOF
7284 ac_cs_usage="\
7285 \`$as_me' instantiates files from templates according to the
7286 current configuration.
7288 Usage: $0 [OPTIONS] [FILE]...
7290 -h, --help print this help, then exit
7291 -V, --version print version number and configuration settings, then exit
7292 -q, --quiet do not print progress messages
7293 -d, --debug don't remove temporary files
7294 --recheck update $as_me by reconfiguring in the same conditions
7295 --file=FILE[:TEMPLATE]
7296 instantiate the configuration file FILE
7297 --header=FILE[:TEMPLATE]
7298 instantiate the configuration header FILE
7300 Configuration files:
7301 $config_files
7303 Configuration headers:
7304 $config_headers
7306 Configuration commands:
7307 $config_commands
7309 Report bugs to <bug-autoconf@gnu.org>."
7311 _ACEOF
7312 cat >>$CONFIG_STATUS <<_ACEOF
7313 ac_cs_version="\\
7314 GRUB config.status 0.97
7315 configured by $0, generated by GNU Autoconf 2.61,
7316 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7318 Copyright (C) 2006 Free Software Foundation, Inc.
7319 This config.status script is free software; the Free Software Foundation
7320 gives unlimited permission to copy, distribute and modify it."
7322 ac_pwd='$ac_pwd'
7323 srcdir='$srcdir'
7324 INSTALL='$INSTALL'
7325 _ACEOF
7327 cat >>$CONFIG_STATUS <<\_ACEOF
7328 # If no file are specified by the user, then we need to provide default
7329 # value. By we need to know if files were specified by the user.
7330 ac_need_defaults=:
7331 while test $# != 0
7333 case $1 in
7334 --*=*)
7335 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7336 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7337 ac_shift=:
7340 ac_option=$1
7341 ac_optarg=$2
7342 ac_shift=shift
7344 esac
7346 case $ac_option in
7347 # Handling of the options.
7348 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7349 ac_cs_recheck=: ;;
7350 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7351 echo "$ac_cs_version"; exit ;;
7352 --debug | --debu | --deb | --de | --d | -d )
7353 debug=: ;;
7354 --file | --fil | --fi | --f )
7355 $ac_shift
7356 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7357 ac_need_defaults=false;;
7358 --header | --heade | --head | --hea )
7359 $ac_shift
7360 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7361 ac_need_defaults=false;;
7362 --he | --h)
7363 # Conflict between --help and --header
7364 { echo "$as_me: error: ambiguous option: $1
7365 Try \`$0 --help' for more information." >&2
7366 { (exit 1); exit 1; }; };;
7367 --help | --hel | -h )
7368 echo "$ac_cs_usage"; exit ;;
7369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7370 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7371 ac_cs_silent=: ;;
7373 # This is an error.
7374 -*) { echo "$as_me: error: unrecognized option: $1
7375 Try \`$0 --help' for more information." >&2
7376 { (exit 1); exit 1; }; } ;;
7378 *) ac_config_targets="$ac_config_targets $1"
7379 ac_need_defaults=false ;;
7381 esac
7382 shift
7383 done
7385 ac_configure_extra_args=
7387 if $ac_cs_silent; then
7388 exec 6>/dev/null
7389 ac_configure_extra_args="$ac_configure_extra_args --silent"
7392 _ACEOF
7393 cat >>$CONFIG_STATUS <<_ACEOF
7394 if \$ac_cs_recheck; then
7395 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7396 CONFIG_SHELL=$SHELL
7397 export CONFIG_SHELL
7398 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7401 _ACEOF
7402 cat >>$CONFIG_STATUS <<\_ACEOF
7403 exec 5>>config.log
7405 echo
7406 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7407 ## Running $as_me. ##
7408 _ASBOX
7409 echo "$ac_log"
7410 } >&5
7412 _ACEOF
7413 cat >>$CONFIG_STATUS <<_ACEOF
7415 # INIT-COMMANDS
7417 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7419 _ACEOF
7421 cat >>$CONFIG_STATUS <<\_ACEOF
7423 # Handling of arguments.
7424 for ac_config_target in $ac_config_targets
7426 case $ac_config_target in
7427 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7428 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7429 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7430 "stage1/Makefile") CONFIG_FILES="$CONFIG_FILES stage1/Makefile" ;;
7431 "stage2/Makefile") CONFIG_FILES="$CONFIG_FILES stage2/Makefile" ;;
7432 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
7433 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7434 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
7435 "grub/Makefile") CONFIG_FILES="$CONFIG_FILES grub/Makefile" ;;
7436 "netboot/Makefile") CONFIG_FILES="$CONFIG_FILES netboot/Makefile" ;;
7437 "util/grub-image") CONFIG_FILES="$CONFIG_FILES util/grub-image" ;;
7438 "util/grub-install") CONFIG_FILES="$CONFIG_FILES util/grub-install" ;;
7439 "util/grub-md5-crypt") CONFIG_FILES="$CONFIG_FILES util/grub-md5-crypt" ;;
7440 "util/grub-terminfo") CONFIG_FILES="$CONFIG_FILES util/grub-terminfo" ;;
7441 "util/grub-set-default") CONFIG_FILES="$CONFIG_FILES util/grub-set-default" ;;
7443 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7444 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7445 { (exit 1); exit 1; }; };;
7446 esac
7447 done
7450 # If the user did not use the arguments to specify the items to instantiate,
7451 # then the envvar interface is used. Set only those that are not.
7452 # We use the long form for the default assignment because of an extremely
7453 # bizarre bug on SunOS 4.1.3.
7454 if $ac_need_defaults; then
7455 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7456 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7457 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7460 # Have a temporary directory for convenience. Make it in the build tree
7461 # simply because there is no reason against having it here, and in addition,
7462 # creating and moving files from /tmp can sometimes cause problems.
7463 # Hook for its removal unless debugging.
7464 # Note that there is a small window in which the directory will not be cleaned:
7465 # after its creation but before its name has been assigned to `$tmp'.
7466 $debug ||
7468 tmp=
7469 trap 'exit_status=$?
7470 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7472 trap '{ (exit 1); exit 1; }' 1 2 13 15
7474 # Create a (secure) tmp directory for tmp files.
7477 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7478 test -n "$tmp" && test -d "$tmp"
7479 } ||
7481 tmp=./conf$$-$RANDOM
7482 (umask 077 && mkdir "$tmp")
7483 } ||
7485 echo "$me: cannot create a temporary directory in ." >&2
7486 { (exit 1); exit 1; }
7490 # Set up the sed scripts for CONFIG_FILES section.
7493 # No need to generate the scripts if there are no CONFIG_FILES.
7494 # This happens for instance when ./config.status config.h
7495 if test -n "$CONFIG_FILES"; then
7497 _ACEOF
7501 ac_delim='%!_!# '
7502 for ac_last_try in false false false false false :; do
7503 cat >conf$$subs.sed <<_ACEOF
7504 SHELL!$SHELL$ac_delim
7505 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7506 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7507 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7508 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7509 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7510 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7511 exec_prefix!$exec_prefix$ac_delim
7512 prefix!$prefix$ac_delim
7513 program_transform_name!$program_transform_name$ac_delim
7514 bindir!$bindir$ac_delim
7515 sbindir!$sbindir$ac_delim
7516 libexecdir!$libexecdir$ac_delim
7517 datarootdir!$datarootdir$ac_delim
7518 datadir!$datadir$ac_delim
7519 sysconfdir!$sysconfdir$ac_delim
7520 sharedstatedir!$sharedstatedir$ac_delim
7521 localstatedir!$localstatedir$ac_delim
7522 includedir!$includedir$ac_delim
7523 oldincludedir!$oldincludedir$ac_delim
7524 docdir!$docdir$ac_delim
7525 infodir!$infodir$ac_delim
7526 htmldir!$htmldir$ac_delim
7527 dvidir!$dvidir$ac_delim
7528 pdfdir!$pdfdir$ac_delim
7529 psdir!$psdir$ac_delim
7530 libdir!$libdir$ac_delim
7531 localedir!$localedir$ac_delim
7532 mandir!$mandir$ac_delim
7533 DEFS!$DEFS$ac_delim
7534 ECHO_C!$ECHO_C$ac_delim
7535 ECHO_N!$ECHO_N$ac_delim
7536 ECHO_T!$ECHO_T$ac_delim
7537 LIBS!$LIBS$ac_delim
7538 build_alias!$build_alias$ac_delim
7539 host_alias!$host_alias$ac_delim
7540 target_alias!$target_alias$ac_delim
7541 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7542 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7543 INSTALL_DATA!$INSTALL_DATA$ac_delim
7544 CYGPATH_W!$CYGPATH_W$ac_delim
7545 PACKAGE!$PACKAGE$ac_delim
7546 VERSION!$VERSION$ac_delim
7547 ACLOCAL!$ACLOCAL$ac_delim
7548 AUTOCONF!$AUTOCONF$ac_delim
7549 AUTOMAKE!$AUTOMAKE$ac_delim
7550 AUTOHEADER!$AUTOHEADER$ac_delim
7551 MAKEINFO!$MAKEINFO$ac_delim
7552 install_sh!$install_sh$ac_delim
7553 STRIP!$STRIP$ac_delim
7554 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7555 mkdir_p!$mkdir_p$ac_delim
7556 AWK!$AWK$ac_delim
7557 SET_MAKE!$SET_MAKE$ac_delim
7558 am__leading_dot!$am__leading_dot$ac_delim
7559 AMTAR!$AMTAR$ac_delim
7560 am__tar!$am__tar$ac_delim
7561 am__untar!$am__untar$ac_delim
7562 build!$build$ac_delim
7563 build_cpu!$build_cpu$ac_delim
7564 build_vendor!$build_vendor$ac_delim
7565 build_os!$build_os$ac_delim
7566 host!$host$ac_delim
7567 host_cpu!$host_cpu$ac_delim
7568 host_vendor!$host_vendor$ac_delim
7569 host_os!$host_os$ac_delim
7570 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
7571 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
7572 MAINT!$MAINT$ac_delim
7573 PERL!$PERL$ac_delim
7574 CC!$CC$ac_delim
7575 CFLAGS!$CFLAGS$ac_delim
7576 LDFLAGS!$LDFLAGS$ac_delim
7577 CPPFLAGS!$CPPFLAGS$ac_delim
7578 ac_ct_CC!$ac_ct_CC$ac_delim
7579 EXEEXT!$EXEEXT$ac_delim
7580 OBJEXT!$OBJEXT$ac_delim
7581 DEPDIR!$DEPDIR$ac_delim
7582 am__include!$am__include$ac_delim
7583 am__quote!$am__quote$ac_delim
7584 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7585 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7586 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7587 CCDEPMODE!$CCDEPMODE$ac_delim
7588 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7589 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7590 CCAS!$CCAS$ac_delim
7591 RANLIB!$RANLIB$ac_delim
7592 STAGE1_CFLAGS!$STAGE1_CFLAGS$ac_delim
7593 STAGE2_CFLAGS!$STAGE2_CFLAGS$ac_delim
7594 GRUB_CFLAGS!$GRUB_CFLAGS$ac_delim
7595 OBJCOPY!$OBJCOPY$ac_delim
7596 GRUB_LIBS!$GRUB_LIBS$ac_delim
7597 CPP!$CPP$ac_delim
7598 GREP!$GREP$ac_delim
7599 EGREP!$EGREP$ac_delim
7600 NETBOOT_SUPPORT_TRUE!$NETBOOT_SUPPORT_TRUE$ac_delim
7601 _ACEOF
7603 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7604 break
7605 elif $ac_last_try; then
7606 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7607 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7608 { (exit 1); exit 1; }; }
7609 else
7610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7612 done
7614 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7615 if test -n "$ac_eof"; then
7616 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7617 ac_eof=`expr $ac_eof + 1`
7620 cat >>$CONFIG_STATUS <<_ACEOF
7621 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7623 _ACEOF
7624 sed '
7625 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7626 s/^/s,@/; s/!/@,|#_!!_#|/
7629 s/'"$ac_delim"'$/,g/; t
7630 s/$/\\/; p
7631 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7632 ' >>$CONFIG_STATUS <conf$$subs.sed
7633 rm -f conf$$subs.sed
7634 cat >>$CONFIG_STATUS <<_ACEOF
7635 CEOF$ac_eof
7636 _ACEOF
7639 ac_delim='%!_!# '
7640 for ac_last_try in false false false false false :; do
7641 cat >conf$$subs.sed <<_ACEOF
7642 NETBOOT_SUPPORT_FALSE!$NETBOOT_SUPPORT_FALSE$ac_delim
7643 DISKLESS_SUPPORT_TRUE!$DISKLESS_SUPPORT_TRUE$ac_delim
7644 DISKLESS_SUPPORT_FALSE!$DISKLESS_SUPPORT_FALSE$ac_delim
7645 HERCULES_SUPPORT_TRUE!$HERCULES_SUPPORT_TRUE$ac_delim
7646 HERCULES_SUPPORT_FALSE!$HERCULES_SUPPORT_FALSE$ac_delim
7647 SERIAL_SUPPORT_TRUE!$SERIAL_SUPPORT_TRUE$ac_delim
7648 SERIAL_SUPPORT_FALSE!$SERIAL_SUPPORT_FALSE$ac_delim
7649 SERIAL_SPEED_SIMULATION_TRUE!$SERIAL_SPEED_SIMULATION_TRUE$ac_delim
7650 SERIAL_SPEED_SIMULATION_FALSE!$SERIAL_SPEED_SIMULATION_FALSE$ac_delim
7651 BUILD_EXAMPLE_KERNEL_TRUE!$BUILD_EXAMPLE_KERNEL_TRUE$ac_delim
7652 BUILD_EXAMPLE_KERNEL_FALSE!$BUILD_EXAMPLE_KERNEL_FALSE$ac_delim
7653 FSYS_CFLAGS!$FSYS_CFLAGS$ac_delim
7654 NET_CFLAGS!$NET_CFLAGS$ac_delim
7655 NET_EXTRAFLAGS!$NET_EXTRAFLAGS$ac_delim
7656 NETBOOT_DRIVERS!$NETBOOT_DRIVERS$ac_delim
7657 CCASFLAGS!$CCASFLAGS$ac_delim
7658 LIBOBJS!$LIBOBJS$ac_delim
7659 LTLIBOBJS!$LTLIBOBJS$ac_delim
7660 _ACEOF
7662 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
7663 break
7664 elif $ac_last_try; then
7665 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7666 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7667 { (exit 1); exit 1; }; }
7668 else
7669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7671 done
7673 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7674 if test -n "$ac_eof"; then
7675 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7676 ac_eof=`expr $ac_eof + 1`
7679 cat >>$CONFIG_STATUS <<_ACEOF
7680 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
7681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7682 _ACEOF
7683 sed '
7684 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7685 s/^/s,@/; s/!/@,|#_!!_#|/
7688 s/'"$ac_delim"'$/,g/; t
7689 s/$/\\/; p
7690 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7691 ' >>$CONFIG_STATUS <conf$$subs.sed
7692 rm -f conf$$subs.sed
7693 cat >>$CONFIG_STATUS <<_ACEOF
7694 :end
7695 s/|#_!!_#|//g
7696 CEOF$ac_eof
7697 _ACEOF
7700 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7701 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7702 # trailing colons and then remove the whole line if VPATH becomes empty
7703 # (actually we leave an empty line to preserve line numbers).
7704 if test "x$srcdir" = x.; then
7705 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7706 s/:*\$(srcdir):*/:/
7707 s/:*\${srcdir}:*/:/
7708 s/:*@srcdir@:*/:/
7709 s/^\([^=]*=[ ]*\):*/\1/
7710 s/:*$//
7711 s/^[^=]*=[ ]*$//
7715 cat >>$CONFIG_STATUS <<\_ACEOF
7716 fi # test -n "$CONFIG_FILES"
7719 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
7721 case $ac_tag in
7722 :[FHLC]) ac_mode=$ac_tag; continue;;
7723 esac
7724 case $ac_mode$ac_tag in
7725 :[FHL]*:*);;
7726 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7727 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7728 { (exit 1); exit 1; }; };;
7729 :[FH]-) ac_tag=-:-;;
7730 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7731 esac
7732 ac_save_IFS=$IFS
7733 IFS=:
7734 set x $ac_tag
7735 IFS=$ac_save_IFS
7736 shift
7737 ac_file=$1
7738 shift
7740 case $ac_mode in
7741 :L) ac_source=$1;;
7742 :[FH])
7743 ac_file_inputs=
7744 for ac_f
7746 case $ac_f in
7747 -) ac_f="$tmp/stdin";;
7748 *) # Look for the file first in the build tree, then in the source tree
7749 # (if the path is not absolute). The absolute path cannot be DOS-style,
7750 # because $ac_f cannot contain `:'.
7751 test -f "$ac_f" ||
7752 case $ac_f in
7753 [\\/$]*) false;;
7754 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7755 esac ||
7756 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7757 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7758 { (exit 1); exit 1; }; };;
7759 esac
7760 ac_file_inputs="$ac_file_inputs $ac_f"
7761 done
7763 # Let's still pretend it is `configure' which instantiates (i.e., don't
7764 # use $as_me), people would be surprised to read:
7765 # /* config.h. Generated by config.status. */
7766 configure_input="Generated from "`IFS=:
7767 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7768 if test x"$ac_file" != x-; then
7769 configure_input="$ac_file. $configure_input"
7770 { echo "$as_me:$LINENO: creating $ac_file" >&5
7771 echo "$as_me: creating $ac_file" >&6;}
7774 case $ac_tag in
7775 *:-:* | *:-) cat >"$tmp/stdin";;
7776 esac
7778 esac
7780 ac_dir=`$as_dirname -- "$ac_file" ||
7781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7782 X"$ac_file" : 'X\(//\)[^/]' \| \
7783 X"$ac_file" : 'X\(//\)$' \| \
7784 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7785 echo X"$ac_file" |
7786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7787 s//\1/
7790 /^X\(\/\/\)[^/].*/{
7791 s//\1/
7794 /^X\(\/\/\)$/{
7795 s//\1/
7798 /^X\(\/\).*/{
7799 s//\1/
7802 s/.*/./; q'`
7803 { as_dir="$ac_dir"
7804 case $as_dir in #(
7805 -*) as_dir=./$as_dir;;
7806 esac
7807 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7808 as_dirs=
7809 while :; do
7810 case $as_dir in #(
7811 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7812 *) as_qdir=$as_dir;;
7813 esac
7814 as_dirs="'$as_qdir' $as_dirs"
7815 as_dir=`$as_dirname -- "$as_dir" ||
7816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7817 X"$as_dir" : 'X\(//\)[^/]' \| \
7818 X"$as_dir" : 'X\(//\)$' \| \
7819 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7820 echo X"$as_dir" |
7821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7822 s//\1/
7825 /^X\(\/\/\)[^/].*/{
7826 s//\1/
7829 /^X\(\/\/\)$/{
7830 s//\1/
7833 /^X\(\/\).*/{
7834 s//\1/
7837 s/.*/./; q'`
7838 test -d "$as_dir" && break
7839 done
7840 test -z "$as_dirs" || eval "mkdir $as_dirs"
7841 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7842 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7843 { (exit 1); exit 1; }; }; }
7844 ac_builddir=.
7846 case "$ac_dir" in
7847 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7849 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7850 # A ".." for each directory in $ac_dir_suffix.
7851 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7852 case $ac_top_builddir_sub in
7853 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7854 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7855 esac ;;
7856 esac
7857 ac_abs_top_builddir=$ac_pwd
7858 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7859 # for backward compatibility:
7860 ac_top_builddir=$ac_top_build_prefix
7862 case $srcdir in
7863 .) # We are building in place.
7864 ac_srcdir=.
7865 ac_top_srcdir=$ac_top_builddir_sub
7866 ac_abs_top_srcdir=$ac_pwd ;;
7867 [\\/]* | ?:[\\/]* ) # Absolute name.
7868 ac_srcdir=$srcdir$ac_dir_suffix;
7869 ac_top_srcdir=$srcdir
7870 ac_abs_top_srcdir=$srcdir ;;
7871 *) # Relative name.
7872 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7873 ac_top_srcdir=$ac_top_build_prefix$srcdir
7874 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7875 esac
7876 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7879 case $ac_mode in
7882 # CONFIG_FILE
7885 case $INSTALL in
7886 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7887 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7888 esac
7889 _ACEOF
7891 cat >>$CONFIG_STATUS <<\_ACEOF
7892 # If the template does not know about datarootdir, expand it.
7893 # FIXME: This hack should be removed a few years after 2.60.
7894 ac_datarootdir_hack=; ac_datarootdir_seen=
7896 case `sed -n '/datarootdir/ {
7900 /@datadir@/p
7901 /@docdir@/p
7902 /@infodir@/p
7903 /@localedir@/p
7904 /@mandir@/p
7905 ' $ac_file_inputs` in
7906 *datarootdir*) ac_datarootdir_seen=yes;;
7907 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7908 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7909 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7910 _ACEOF
7911 cat >>$CONFIG_STATUS <<_ACEOF
7912 ac_datarootdir_hack='
7913 s&@datadir@&$datadir&g
7914 s&@docdir@&$docdir&g
7915 s&@infodir@&$infodir&g
7916 s&@localedir@&$localedir&g
7917 s&@mandir@&$mandir&g
7918 s&\\\${datarootdir}&$datarootdir&g' ;;
7919 esac
7920 _ACEOF
7922 # Neutralize VPATH when `$srcdir' = `.'.
7923 # Shell code in configure.ac might set extrasub.
7924 # FIXME: do we really want to maintain this feature?
7925 cat >>$CONFIG_STATUS <<_ACEOF
7926 sed "$ac_vpsub
7927 $extrasub
7928 _ACEOF
7929 cat >>$CONFIG_STATUS <<\_ACEOF
7931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7932 s&@configure_input@&$configure_input&;t t
7933 s&@top_builddir@&$ac_top_builddir_sub&;t t
7934 s&@srcdir@&$ac_srcdir&;t t
7935 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7936 s&@top_srcdir@&$ac_top_srcdir&;t t
7937 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7938 s&@builddir@&$ac_builddir&;t t
7939 s&@abs_builddir@&$ac_abs_builddir&;t t
7940 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7941 s&@INSTALL@&$ac_INSTALL&;t t
7942 $ac_datarootdir_hack
7943 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7945 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7946 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7947 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7948 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7949 which seems to be undefined. Please make sure it is defined." >&5
7950 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7951 which seems to be undefined. Please make sure it is defined." >&2;}
7953 rm -f "$tmp/stdin"
7954 case $ac_file in
7955 -) cat "$tmp/out"; rm -f "$tmp/out";;
7956 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7957 esac
7961 # CONFIG_HEADER
7963 _ACEOF
7965 # Transform confdefs.h into a sed script `conftest.defines', that
7966 # substitutes the proper values into config.h.in to produce config.h.
7967 rm -f conftest.defines conftest.tail
7968 # First, append a space to every undef/define line, to ease matching.
7969 echo 's/$/ /' >conftest.defines
7970 # Then, protect against being on the right side of a sed subst, or in
7971 # an unquoted here document, in config.status. If some macros were
7972 # called several times there might be several #defines for the same
7973 # symbol, which is useless. But do not sort them, since the last
7974 # AC_DEFINE must be honored.
7975 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7976 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7977 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7978 # PARAMS is the parameter list in the macro definition--in most cases, it's
7979 # just an empty string.
7980 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7981 ac_dB='\\)[ (].*,\\1define\\2'
7982 ac_dC=' '
7983 ac_dD=' ,'
7985 uniq confdefs.h |
7986 sed -n '
7987 t rset
7988 :rset
7989 s/^[ ]*#[ ]*define[ ][ ]*//
7990 t ok
7993 s/[\\&,]/\\&/g
7994 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7995 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7996 ' >>conftest.defines
7998 # Remove the space that was appended to ease matching.
7999 # Then replace #undef with comments. This is necessary, for
8000 # example, in the case of _POSIX_SOURCE, which is predefined and required
8001 # on some systems where configure will not decide to define it.
8002 # (The regexp can be short, since the line contains either #define or #undef.)
8003 echo 's/ $//
8004 s,^[ #]*u.*,/* & */,' >>conftest.defines
8006 # Break up conftest.defines:
8007 ac_max_sed_lines=50
8009 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8010 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8011 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8012 # et cetera.
8013 ac_in='$ac_file_inputs'
8014 ac_out='"$tmp/out1"'
8015 ac_nxt='"$tmp/out2"'
8017 while :
8019 # Write a here document:
8020 cat >>$CONFIG_STATUS <<_ACEOF
8021 # First, check the format of the line:
8022 cat >"\$tmp/defines.sed" <<\\CEOF
8023 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8024 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8026 :def
8027 _ACEOF
8028 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8029 echo 'CEOF
8030 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8031 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8032 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8033 grep . conftest.tail >/dev/null || break
8034 rm -f conftest.defines
8035 mv conftest.tail conftest.defines
8036 done
8037 rm -f conftest.defines conftest.tail
8039 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8040 cat >>$CONFIG_STATUS <<\_ACEOF
8041 if test x"$ac_file" != x-; then
8042 echo "/* $configure_input */" >"$tmp/config.h"
8043 cat "$ac_result" >>"$tmp/config.h"
8044 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8045 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8046 echo "$as_me: $ac_file is unchanged" >&6;}
8047 else
8048 rm -f $ac_file
8049 mv "$tmp/config.h" $ac_file
8051 else
8052 echo "/* $configure_input */"
8053 cat "$ac_result"
8055 rm -f "$tmp/out12"
8056 # Compute $ac_file's index in $config_headers.
8057 _am_stamp_count=1
8058 for _am_header in $config_headers :; do
8059 case $_am_header in
8060 $ac_file | $ac_file:* )
8061 break ;;
8063 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8064 esac
8065 done
8066 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
8067 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8068 X$ac_file : 'X\(//\)[^/]' \| \
8069 X$ac_file : 'X\(//\)$' \| \
8070 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
8071 echo X$ac_file |
8072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8073 s//\1/
8076 /^X\(\/\/\)[^/].*/{
8077 s//\1/
8080 /^X\(\/\/\)$/{
8081 s//\1/
8084 /^X\(\/\).*/{
8085 s//\1/
8088 s/.*/./; q'`/stamp-h$_am_stamp_count
8091 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
8092 echo "$as_me: executing $ac_file commands" >&6;}
8094 esac
8097 case $ac_file$ac_mode in
8098 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8099 # Strip MF so we end up with the name of the file.
8100 mf=`echo "$mf" | sed -e 's/:.*$//'`
8101 # Check whether this is an Automake generated Makefile or not.
8102 # We used to match only the files named `Makefile.in', but
8103 # some people rename them; so instead we look at the file content.
8104 # Grep'ing the first line is not enough: some people post-process
8105 # each Makefile.in and add a new line on top of each file to say so.
8106 # So let's grep whole file.
8107 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8108 dirpart=`$as_dirname -- "$mf" ||
8109 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8110 X"$mf" : 'X\(//\)[^/]' \| \
8111 X"$mf" : 'X\(//\)$' \| \
8112 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8113 echo X"$mf" |
8114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8115 s//\1/
8118 /^X\(\/\/\)[^/].*/{
8119 s//\1/
8122 /^X\(\/\/\)$/{
8123 s//\1/
8126 /^X\(\/\).*/{
8127 s//\1/
8130 s/.*/./; q'`
8131 else
8132 continue
8134 # Extract the definition of DEPDIR, am__include, and am__quote
8135 # from the Makefile without running `make'.
8136 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8137 test -z "$DEPDIR" && continue
8138 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8139 test -z "am__include" && continue
8140 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8141 # When using ansi2knr, U may be empty or an underscore; expand it
8142 U=`sed -n 's/^U = //p' < "$mf"`
8143 # Find all dependency output files, they are included files with
8144 # $(DEPDIR) in their names. We invoke sed twice because it is the
8145 # simplest approach to changing $(DEPDIR) to its actual value in the
8146 # expansion.
8147 for file in `sed -n "
8148 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8149 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8150 # Make sure the directory exists.
8151 test -f "$dirpart/$file" && continue
8152 fdir=`$as_dirname -- "$file" ||
8153 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8154 X"$file" : 'X\(//\)[^/]' \| \
8155 X"$file" : 'X\(//\)$' \| \
8156 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8157 echo X"$file" |
8158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8159 s//\1/
8162 /^X\(\/\/\)[^/].*/{
8163 s//\1/
8166 /^X\(\/\/\)$/{
8167 s//\1/
8170 /^X\(\/\).*/{
8171 s//\1/
8174 s/.*/./; q'`
8175 { as_dir=$dirpart/$fdir
8176 case $as_dir in #(
8177 -*) as_dir=./$as_dir;;
8178 esac
8179 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8180 as_dirs=
8181 while :; do
8182 case $as_dir in #(
8183 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8184 *) as_qdir=$as_dir;;
8185 esac
8186 as_dirs="'$as_qdir' $as_dirs"
8187 as_dir=`$as_dirname -- "$as_dir" ||
8188 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8189 X"$as_dir" : 'X\(//\)[^/]' \| \
8190 X"$as_dir" : 'X\(//\)$' \| \
8191 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8192 echo X"$as_dir" |
8193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8194 s//\1/
8197 /^X\(\/\/\)[^/].*/{
8198 s//\1/
8201 /^X\(\/\/\)$/{
8202 s//\1/
8205 /^X\(\/\).*/{
8206 s//\1/
8209 s/.*/./; q'`
8210 test -d "$as_dir" && break
8211 done
8212 test -z "$as_dirs" || eval "mkdir $as_dirs"
8213 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8214 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8215 { (exit 1); exit 1; }; }; }
8216 # echo "creating $dirpart/$file"
8217 echo '# dummy' > "$dirpart/$file"
8218 done
8219 done
8222 esac
8223 done # for ac_tag
8226 { (exit 0); exit 0; }
8227 _ACEOF
8228 chmod +x $CONFIG_STATUS
8229 ac_clean_files=$ac_clean_files_save
8232 # configure is writing to config.log, and then calls config.status.
8233 # config.status does its own redirection, appending to config.log.
8234 # Unfortunately, on DOS this fails, as config.log is still kept open
8235 # by configure, so config.status won't be able to write to it; its
8236 # output is simply discarded. So we exec the FD to /dev/null,
8237 # effectively closing config.log, so it can be properly (re)opened and
8238 # appended to by config.status. When coming back to configure, we
8239 # need to make the FD available again.
8240 if test "$no_create" != yes; then
8241 ac_cs_success=:
8242 ac_config_status_args=
8243 test "$silent" = yes &&
8244 ac_config_status_args="$ac_config_status_args --quiet"
8245 exec 5>/dev/null
8246 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8247 exec 5>>config.log
8248 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8249 # would make configure fail if this is the last instruction.
8250 $ac_cs_success || { (exit 1); exit 1; }