changing mime-type of docs/*.texi and docs/texinfo.tex to text/plain
[grub2/phcoder.git] / configure
blob818204d8e87c3acae5c885a863d57556a21495cc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GRUB 1.96.
5 # Report bugs to <bug-grub@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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='1.96'
578 PACKAGE_STRING='GRUB 1.96'
579 PACKAGE_BUGREPORT='bug-grub@gnu.org'
581 ac_unique_file="include/grub/dl.h"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
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 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 target
664 target_cpu
665 target_vendor
666 target_os
667 platform
669 YACC
670 UNIFONT_HEX
671 INSTALL_PROGRAM
672 INSTALL_SCRIPT
673 INSTALL_DATA
675 SET_MAKE
676 RUBY
677 HELP2MAN
679 CFLAGS
680 LDFLAGS
681 CPPFLAGS
682 ac_ct_CC
683 EXEEXT
684 OBJEXT
686 GREP
687 EGREP
688 LIBLZO
689 enable_lzo
690 TARGET_IMG_LDSCRIPT
691 TARGET_IMG_LDFLAGS
692 TARGET_OBJ2ELF
693 TARGET_CC
694 ac_ct_TARGET_CC
695 OBJCOPY
696 STRIP
698 TARGET_CFLAGS
699 TARGET_CPPFLAGS
700 TARGET_LDFLAGS
701 MODULE_LDFLAGS
702 LIBCURSES
703 enable_grub_emu
704 enable_grub_fstest
705 enable_grub_pe2elf
706 LIBOBJS
707 LTLIBOBJS'
708 ac_subst_files=''
709 ac_precious_vars='build_alias
710 host_alias
711 target_alias
713 CFLAGS
714 LDFLAGS
715 LIBS
716 CPPFLAGS
717 CPP'
720 # Initialize some variables set by options.
721 ac_init_help=
722 ac_init_version=false
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
725 cache_file=/dev/null
726 exec_prefix=NONE
727 no_create=
728 no_recursion=
729 prefix=NONE
730 program_prefix=NONE
731 program_suffix=NONE
732 program_transform_name=s,x,x,
733 silent=
734 site=
735 srcdir=
736 verbose=
737 x_includes=NONE
738 x_libraries=NONE
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir='${exec_prefix}/bin'
747 sbindir='${exec_prefix}/sbin'
748 libexecdir='${exec_prefix}/libexec'
749 datarootdir='${prefix}/share'
750 datadir='${datarootdir}'
751 sysconfdir='${prefix}/etc'
752 sharedstatedir='${prefix}/com'
753 localstatedir='${prefix}/var'
754 includedir='${prefix}/include'
755 oldincludedir='/usr/include'
756 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
757 infodir='${datarootdir}/info'
758 htmldir='${docdir}'
759 dvidir='${docdir}'
760 pdfdir='${docdir}'
761 psdir='${docdir}'
762 libdir='${exec_prefix}/lib'
763 localedir='${datarootdir}/locale'
764 mandir='${datarootdir}/man'
766 ac_prev=
767 ac_dashdash=
768 for ac_option
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\$ac_option
773 ac_prev=
774 continue
777 case $ac_option in
778 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 *) ac_optarg=yes ;;
780 esac
782 # Accept the important Cygnus configure options, so we can diagnose typos.
784 case $ac_dashdash$ac_option in
786 ac_dashdash=yes ;;
788 -bindir | --bindir | --bindi | --bind | --bin | --bi)
789 ac_prev=bindir ;;
790 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
791 bindir=$ac_optarg ;;
793 -build | --build | --buil | --bui | --bu)
794 ac_prev=build_alias ;;
795 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
796 build_alias=$ac_optarg ;;
798 -cache-file | --cache-file | --cache-fil | --cache-fi \
799 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
800 ac_prev=cache_file ;;
801 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
802 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
803 cache_file=$ac_optarg ;;
805 --config-cache | -C)
806 cache_file=config.cache ;;
808 -datadir | --datadir | --datadi | --datad)
809 ac_prev=datadir ;;
810 -datadir=* | --datadir=* | --datadi=* | --datad=*)
811 datadir=$ac_optarg ;;
813 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
814 | --dataroo | --dataro | --datar)
815 ac_prev=datarootdir ;;
816 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
817 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
818 datarootdir=$ac_optarg ;;
820 -disable-* | --disable-*)
821 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_$ac_feature=no ;;
829 -docdir | --docdir | --docdi | --doc | --do)
830 ac_prev=docdir ;;
831 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
832 docdir=$ac_optarg ;;
834 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
835 ac_prev=dvidir ;;
836 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
837 dvidir=$ac_optarg ;;
839 -enable-* | --enable-*)
840 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844 { (exit 1); exit 1; }; }
845 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
846 eval enable_$ac_feature=\$ac_optarg ;;
848 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
849 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
850 | --exec | --exe | --ex)
851 ac_prev=exec_prefix ;;
852 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
853 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
854 | --exec=* | --exe=* | --ex=*)
855 exec_prefix=$ac_optarg ;;
857 -gas | --gas | --ga | --g)
858 # Obsolete; use --with-gas.
859 with_gas=yes ;;
861 -help | --help | --hel | --he | -h)
862 ac_init_help=long ;;
863 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
864 ac_init_help=recursive ;;
865 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
866 ac_init_help=short ;;
868 -host | --host | --hos | --ho)
869 ac_prev=host_alias ;;
870 -host=* | --host=* | --hos=* | --ho=*)
871 host_alias=$ac_optarg ;;
873 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
874 ac_prev=htmldir ;;
875 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
876 | --ht=*)
877 htmldir=$ac_optarg ;;
879 -includedir | --includedir | --includedi | --included | --include \
880 | --includ | --inclu | --incl | --inc)
881 ac_prev=includedir ;;
882 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
883 | --includ=* | --inclu=* | --incl=* | --inc=*)
884 includedir=$ac_optarg ;;
886 -infodir | --infodir | --infodi | --infod | --info | --inf)
887 ac_prev=infodir ;;
888 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
889 infodir=$ac_optarg ;;
891 -libdir | --libdir | --libdi | --libd)
892 ac_prev=libdir ;;
893 -libdir=* | --libdir=* | --libdi=* | --libd=*)
894 libdir=$ac_optarg ;;
896 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
897 | --libexe | --libex | --libe)
898 ac_prev=libexecdir ;;
899 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
900 | --libexe=* | --libex=* | --libe=*)
901 libexecdir=$ac_optarg ;;
903 -localedir | --localedir | --localedi | --localed | --locale)
904 ac_prev=localedir ;;
905 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
906 localedir=$ac_optarg ;;
908 -localstatedir | --localstatedir | --localstatedi | --localstated \
909 | --localstate | --localstat | --localsta | --localst | --locals)
910 ac_prev=localstatedir ;;
911 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
912 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
913 localstatedir=$ac_optarg ;;
915 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
916 ac_prev=mandir ;;
917 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
918 mandir=$ac_optarg ;;
920 -nfp | --nfp | --nf)
921 # Obsolete; use --without-fp.
922 with_fp=no ;;
924 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
925 | --no-cr | --no-c | -n)
926 no_create=yes ;;
928 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
929 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
930 no_recursion=yes ;;
932 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
933 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
934 | --oldin | --oldi | --old | --ol | --o)
935 ac_prev=oldincludedir ;;
936 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
937 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
938 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
939 oldincludedir=$ac_optarg ;;
941 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
942 ac_prev=prefix ;;
943 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
944 prefix=$ac_optarg ;;
946 -program-prefix | --program-prefix | --program-prefi | --program-pref \
947 | --program-pre | --program-pr | --program-p)
948 ac_prev=program_prefix ;;
949 -program-prefix=* | --program-prefix=* | --program-prefi=* \
950 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
951 program_prefix=$ac_optarg ;;
953 -program-suffix | --program-suffix | --program-suffi | --program-suff \
954 | --program-suf | --program-su | --program-s)
955 ac_prev=program_suffix ;;
956 -program-suffix=* | --program-suffix=* | --program-suffi=* \
957 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
958 program_suffix=$ac_optarg ;;
960 -program-transform-name | --program-transform-name \
961 | --program-transform-nam | --program-transform-na \
962 | --program-transform-n | --program-transform- \
963 | --program-transform | --program-transfor \
964 | --program-transfo | --program-transf \
965 | --program-trans | --program-tran \
966 | --progr-tra | --program-tr | --program-t)
967 ac_prev=program_transform_name ;;
968 -program-transform-name=* | --program-transform-name=* \
969 | --program-transform-nam=* | --program-transform-na=* \
970 | --program-transform-n=* | --program-transform-=* \
971 | --program-transform=* | --program-transfor=* \
972 | --program-transfo=* | --program-transf=* \
973 | --program-trans=* | --program-tran=* \
974 | --progr-tra=* | --program-tr=* | --program-t=*)
975 program_transform_name=$ac_optarg ;;
977 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
978 ac_prev=pdfdir ;;
979 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
980 pdfdir=$ac_optarg ;;
982 -psdir | --psdir | --psdi | --psd | --ps)
983 ac_prev=psdir ;;
984 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
985 psdir=$ac_optarg ;;
987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
988 | -silent | --silent | --silen | --sile | --sil)
989 silent=yes ;;
991 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
992 ac_prev=sbindir ;;
993 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
994 | --sbi=* | --sb=*)
995 sbindir=$ac_optarg ;;
997 -sharedstatedir | --sharedstatedir | --sharedstatedi \
998 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
999 | --sharedst | --shareds | --shared | --share | --shar \
1000 | --sha | --sh)
1001 ac_prev=sharedstatedir ;;
1002 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1003 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1004 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1005 | --sha=* | --sh=*)
1006 sharedstatedir=$ac_optarg ;;
1008 -site | --site | --sit)
1009 ac_prev=site ;;
1010 -site=* | --site=* | --sit=*)
1011 site=$ac_optarg ;;
1013 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1014 ac_prev=srcdir ;;
1015 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1016 srcdir=$ac_optarg ;;
1018 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1019 | --syscon | --sysco | --sysc | --sys | --sy)
1020 ac_prev=sysconfdir ;;
1021 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1022 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1023 sysconfdir=$ac_optarg ;;
1025 -target | --target | --targe | --targ | --tar | --ta | --t)
1026 ac_prev=target_alias ;;
1027 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1028 target_alias=$ac_optarg ;;
1030 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1031 verbose=yes ;;
1033 -version | --version | --versio | --versi | --vers | -V)
1034 ac_init_version=: ;;
1036 -with-* | --with-*)
1037 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040 { echo "$as_me: error: invalid package name: $ac_package" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1043 eval with_$ac_package=\$ac_optarg ;;
1045 -without-* | --without-*)
1046 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid package name: $ac_package" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1052 eval with_$ac_package=no ;;
1054 --x)
1055 # Obsolete; use --with-x.
1056 with_x=yes ;;
1058 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1059 | --x-incl | --x-inc | --x-in | --x-i)
1060 ac_prev=x_includes ;;
1061 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1062 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1063 x_includes=$ac_optarg ;;
1065 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1066 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1067 ac_prev=x_libraries ;;
1068 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1069 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1070 x_libraries=$ac_optarg ;;
1072 -*) { echo "$as_me: error: unrecognized option: $ac_option
1073 Try \`$0 --help' for more information." >&2
1074 { (exit 1); exit 1; }; }
1077 *=*)
1078 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1082 { (exit 1); exit 1; }; }
1083 eval $ac_envvar=\$ac_optarg
1084 export $ac_envvar ;;
1087 # FIXME: should be removed in autoconf 3.0.
1088 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1089 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1090 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1091 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1094 esac
1095 done
1097 if test -n "$ac_prev"; then
1098 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1099 { echo "$as_me: error: missing argument to $ac_option" >&2
1100 { (exit 1); exit 1; }; }
1103 # Be sure to have absolute directory names.
1104 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105 datadir sysconfdir sharedstatedir localstatedir includedir \
1106 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107 libdir localedir mandir
1109 eval ac_val=\$$ac_var
1110 case $ac_val in
1111 [\\/$]* | ?:[\\/]* ) continue;;
1112 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1113 esac
1114 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1115 { (exit 1); exit 1; }; }
1116 done
1118 # There might be people who depend on the old broken behavior: `$host'
1119 # used to hold the argument of --host etc.
1120 # FIXME: To remove some day.
1121 build=$build_alias
1122 host=$host_alias
1123 target=$target_alias
1125 # FIXME: To remove some day.
1126 if test "x$host_alias" != x; then
1127 if test "x$build_alias" = x; then
1128 cross_compiling=maybe
1129 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1130 If a cross compiler is detected then cross compile mode will be used." >&2
1131 elif test "x$build_alias" != "x$host_alias"; then
1132 cross_compiling=yes
1136 ac_tool_prefix=
1137 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1139 test "$silent" = yes && exec 6>/dev/null
1142 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1143 ac_ls_di=`ls -di .` &&
1144 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1145 { echo "$as_me: error: Working directory cannot be determined" >&2
1146 { (exit 1); exit 1; }; }
1147 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1148 { echo "$as_me: error: pwd does not report name of working directory" >&2
1149 { (exit 1); exit 1; }; }
1152 # Find the source files, if location was not specified.
1153 if test -z "$srcdir"; then
1154 ac_srcdir_defaulted=yes
1155 # Try the directory containing this script, then the parent directory.
1156 ac_confdir=`$as_dirname -- "$0" ||
1157 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158 X"$0" : 'X\(//\)[^/]' \| \
1159 X"$0" : 'X\(//\)$' \| \
1160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1161 echo X"$0" |
1162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1163 s//\1/
1166 /^X\(\/\/\)[^/].*/{
1167 s//\1/
1170 /^X\(\/\/\)$/{
1171 s//\1/
1174 /^X\(\/\).*/{
1175 s//\1/
1178 s/.*/./; q'`
1179 srcdir=$ac_confdir
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1181 srcdir=..
1183 else
1184 ac_srcdir_defaulted=no
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1188 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1189 { (exit 1); exit 1; }; }
1191 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1192 ac_abs_confdir=`(
1193 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1194 { (exit 1); exit 1; }; }
1195 pwd)`
1196 # When building in place, set srcdir=.
1197 if test "$ac_abs_confdir" = "$ac_pwd"; then
1198 srcdir=.
1200 # Remove unnecessary trailing slashes from srcdir.
1201 # Double slashes in file names in object file debugging info
1202 # mess up M-x gdb in Emacs.
1203 case $srcdir in
1204 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1205 esac
1206 for ac_var in $ac_precious_vars; do
1207 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_env_${ac_var}_value=\$${ac_var}
1209 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1210 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1211 done
1214 # Report the --help message.
1216 if test "$ac_init_help" = "long"; then
1217 # Omit some internal or obsolete options to make the list less imposing.
1218 # This message is too long to be a string in the A/UX 3.1 sh.
1219 cat <<_ACEOF
1220 \`configure' configures GRUB 1.96 to adapt to many kinds of systems.
1222 Usage: $0 [OPTION]... [VAR=VALUE]...
1224 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225 VAR=VALUE. See below for descriptions of some of the useful variables.
1227 Defaults for the options are specified in brackets.
1229 Configuration:
1230 -h, --help display this help and exit
1231 --help=short display options specific to this package
1232 --help=recursive display the short help of all the included packages
1233 -V, --version display version information and exit
1234 -q, --quiet, --silent do not print \`checking...' messages
1235 --cache-file=FILE cache test results in FILE [disabled]
1236 -C, --config-cache alias for \`--cache-file=config.cache'
1237 -n, --no-create do not create output files
1238 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1240 Installation directories:
1241 --prefix=PREFIX install architecture-independent files in PREFIX
1242 [$ac_default_prefix]
1243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1244 [PREFIX]
1246 By default, \`make install' will install all the files in
1247 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249 for instance \`--prefix=\$HOME'.
1251 For better control, use the options below.
1253 Fine tuning of the installation directories:
1254 --bindir=DIR user executables [EPREFIX/bin]
1255 --sbindir=DIR system admin executables [EPREFIX/sbin]
1256 --libexecdir=DIR program executables [EPREFIX/libexec]
1257 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260 --libdir=DIR object code libraries [EPREFIX/lib]
1261 --includedir=DIR C header files [PREFIX/include]
1262 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1263 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1264 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1265 --infodir=DIR info documentation [DATAROOTDIR/info]
1266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1267 --mandir=DIR man documentation [DATAROOTDIR/man]
1268 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1269 --htmldir=DIR html documentation [DOCDIR]
1270 --dvidir=DIR dvi documentation [DOCDIR]
1271 --pdfdir=DIR pdf documentation [DOCDIR]
1272 --psdir=DIR ps documentation [DOCDIR]
1273 _ACEOF
1275 cat <<\_ACEOF
1277 Program names:
1278 --program-prefix=PREFIX prepend PREFIX to installed program names
1279 --program-suffix=SUFFIX append SUFFIX to installed program names
1280 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1282 System types:
1283 --build=BUILD configure for building on BUILD [guessed]
1284 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1285 --target=TARGET configure for building compilers for TARGET [HOST]
1286 _ACEOF
1289 if test -n "$ac_init_help"; then
1290 case $ac_init_help in
1291 short | recursive ) echo "Configuration of GRUB 1.96:";;
1292 esac
1293 cat <<\_ACEOF
1295 Optional Features:
1296 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1297 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1298 --disable-largefile omit support for large files
1299 --enable-lzo use lzo to compress kernel (default is lzma)
1300 --enable-mm-debug include memory manager debugging
1301 --enable-grub-emu build and install the `grub-emu' debugging utility
1302 --enable-grub-fstest build and install the `grub-fstest' debugging
1303 utility
1304 --enable-grub-pe2elf build and install the `grub-pe2elf' conversion
1305 utility
1307 Optional Packages:
1308 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1309 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1310 --with-platform=PLATFORM
1311 select the host platform [guessed]
1313 Some influential environment variables:
1314 CC C compiler command
1315 CFLAGS C compiler flags
1316 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1317 nonstandard directory <lib dir>
1318 LIBS libraries to pass to the linker, e.g. -l<library>
1319 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1320 you have headers in a nonstandard directory <include dir>
1321 CPP C preprocessor
1323 Use these variables to override the choices made by `configure' or to help
1324 it to find libraries and programs with nonstandard names/locations.
1326 Report bugs to <bug-grub@gnu.org>.
1327 _ACEOF
1328 ac_status=$?
1331 if test "$ac_init_help" = "recursive"; then
1332 # If there are subdirs, report their specific --help.
1333 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1334 test -d "$ac_dir" || continue
1335 ac_builddir=.
1337 case "$ac_dir" in
1338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1341 # A ".." for each directory in $ac_dir_suffix.
1342 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1343 case $ac_top_builddir_sub in
1344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1346 esac ;;
1347 esac
1348 ac_abs_top_builddir=$ac_pwd
1349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1350 # for backward compatibility:
1351 ac_top_builddir=$ac_top_build_prefix
1353 case $srcdir in
1354 .) # We are building in place.
1355 ac_srcdir=.
1356 ac_top_srcdir=$ac_top_builddir_sub
1357 ac_abs_top_srcdir=$ac_pwd ;;
1358 [\\/]* | ?:[\\/]* ) # Absolute name.
1359 ac_srcdir=$srcdir$ac_dir_suffix;
1360 ac_top_srcdir=$srcdir
1361 ac_abs_top_srcdir=$srcdir ;;
1362 *) # Relative name.
1363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1364 ac_top_srcdir=$ac_top_build_prefix$srcdir
1365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1366 esac
1367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1369 cd "$ac_dir" || { ac_status=$?; continue; }
1370 # Check for guested configure.
1371 if test -f "$ac_srcdir/configure.gnu"; then
1372 echo &&
1373 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1374 elif test -f "$ac_srcdir/configure"; then
1375 echo &&
1376 $SHELL "$ac_srcdir/configure" --help=recursive
1377 else
1378 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1379 fi || ac_status=$?
1380 cd "$ac_pwd" || { ac_status=$?; break; }
1381 done
1384 test -n "$ac_init_help" && exit $ac_status
1385 if $ac_init_version; then
1386 cat <<\_ACEOF
1387 GRUB configure 1.96
1388 generated by GNU Autoconf 2.61
1390 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1391 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1392 This configure script is free software; the Free Software Foundation
1393 gives unlimited permission to copy, distribute and modify it.
1394 _ACEOF
1395 exit
1397 cat >config.log <<_ACEOF
1398 This file contains any messages produced by compilers while
1399 running configure, to aid debugging if configure makes a mistake.
1401 It was created by GRUB $as_me 1.96, which was
1402 generated by GNU Autoconf 2.61. Invocation command line was
1404 $ $0 $@
1406 _ACEOF
1407 exec 5>>config.log
1409 cat <<_ASUNAME
1410 ## --------- ##
1411 ## Platform. ##
1412 ## --------- ##
1414 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1415 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1416 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1417 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1418 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1420 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1421 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1423 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1424 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1425 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1426 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1427 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1428 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1429 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1431 _ASUNAME
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434 for as_dir in $PATH
1436 IFS=$as_save_IFS
1437 test -z "$as_dir" && as_dir=.
1438 echo "PATH: $as_dir"
1439 done
1440 IFS=$as_save_IFS
1442 } >&5
1444 cat >&5 <<_ACEOF
1447 ## ----------- ##
1448 ## Core tests. ##
1449 ## ----------- ##
1451 _ACEOF
1454 # Keep a trace of the command line.
1455 # Strip out --no-create and --no-recursion so they do not pile up.
1456 # Strip out --silent because we don't want to record it for future runs.
1457 # Also quote any args containing shell meta-characters.
1458 # Make two passes to allow for proper duplicate-argument suppression.
1459 ac_configure_args=
1460 ac_configure_args0=
1461 ac_configure_args1=
1462 ac_must_keep_next=false
1463 for ac_pass in 1 2
1465 for ac_arg
1467 case $ac_arg in
1468 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1470 | -silent | --silent | --silen | --sile | --sil)
1471 continue ;;
1472 *\'*)
1473 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1474 esac
1475 case $ac_pass in
1476 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1478 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1479 if test $ac_must_keep_next = true; then
1480 ac_must_keep_next=false # Got value, back to normal.
1481 else
1482 case $ac_arg in
1483 *=* | --config-cache | -C | -disable-* | --disable-* \
1484 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1485 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1486 | -with-* | --with-* | -without-* | --without-* | --x)
1487 case "$ac_configure_args0 " in
1488 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1489 esac
1491 -* ) ac_must_keep_next=true ;;
1492 esac
1494 ac_configure_args="$ac_configure_args '$ac_arg'"
1496 esac
1497 done
1498 done
1499 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1500 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1502 # When interrupted or exit'd, cleanup temporary files, and complete
1503 # config.log. We remove comments because anyway the quotes in there
1504 # would cause problems or look ugly.
1505 # WARNING: Use '\'' to represent an apostrophe within the trap.
1506 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1507 trap 'exit_status=$?
1508 # Save into config.log some information that might help in debugging.
1510 echo
1512 cat <<\_ASBOX
1513 ## ---------------- ##
1514 ## Cache variables. ##
1515 ## ---------------- ##
1516 _ASBOX
1517 echo
1518 # The following way of writing the cache mishandles newlines in values,
1520 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1521 eval ac_val=\$$ac_var
1522 case $ac_val in #(
1523 *${as_nl}*)
1524 case $ac_var in #(
1525 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1526 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1527 esac
1528 case $ac_var in #(
1529 _ | IFS | as_nl) ;; #(
1530 *) $as_unset $ac_var ;;
1531 esac ;;
1532 esac
1533 done
1534 (set) 2>&1 |
1535 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1536 *${as_nl}ac_space=\ *)
1537 sed -n \
1538 "s/'\''/'\''\\\\'\'''\''/g;
1539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1540 ;; #(
1542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1544 esac |
1545 sort
1547 echo
1549 cat <<\_ASBOX
1550 ## ----------------- ##
1551 ## Output variables. ##
1552 ## ----------------- ##
1553 _ASBOX
1554 echo
1555 for ac_var in $ac_subst_vars
1557 eval ac_val=\$$ac_var
1558 case $ac_val in
1559 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1560 esac
1561 echo "$ac_var='\''$ac_val'\''"
1562 done | sort
1563 echo
1565 if test -n "$ac_subst_files"; then
1566 cat <<\_ASBOX
1567 ## ------------------- ##
1568 ## File substitutions. ##
1569 ## ------------------- ##
1570 _ASBOX
1571 echo
1572 for ac_var in $ac_subst_files
1574 eval ac_val=\$$ac_var
1575 case $ac_val in
1576 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1577 esac
1578 echo "$ac_var='\''$ac_val'\''"
1579 done | sort
1580 echo
1583 if test -s confdefs.h; then
1584 cat <<\_ASBOX
1585 ## ----------- ##
1586 ## confdefs.h. ##
1587 ## ----------- ##
1588 _ASBOX
1589 echo
1590 cat confdefs.h
1591 echo
1593 test "$ac_signal" != 0 &&
1594 echo "$as_me: caught signal $ac_signal"
1595 echo "$as_me: exit $exit_status"
1596 } >&5
1597 rm -f core *.core core.conftest.* &&
1598 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1599 exit $exit_status
1601 for ac_signal in 1 2 13 15; do
1602 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1603 done
1604 ac_signal=0
1606 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1607 rm -f -r conftest* confdefs.h
1609 # Predefined preprocessor variables.
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE_NAME "$PACKAGE_NAME"
1613 _ACEOF
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1618 _ACEOF
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1623 _ACEOF
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_STRING "$PACKAGE_STRING"
1628 _ACEOF
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1633 _ACEOF
1636 # Let the site file select an alternate cache file if it wants to.
1637 # Prefer explicitly selected file to automatically selected ones.
1638 if test -n "$CONFIG_SITE"; then
1639 set x "$CONFIG_SITE"
1640 elif test "x$prefix" != xNONE; then
1641 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1642 else
1643 set x "$ac_default_prefix/share/config.site" \
1644 "$ac_default_prefix/etc/config.site"
1646 shift
1647 for ac_site_file
1649 if test -r "$ac_site_file"; then
1650 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1651 echo "$as_me: loading site script $ac_site_file" >&6;}
1652 sed 's/^/| /' "$ac_site_file" >&5
1653 . "$ac_site_file"
1655 done
1657 if test -r "$cache_file"; then
1658 # Some versions of bash will fail to source /dev/null (special
1659 # files actually), so we avoid doing that.
1660 if test -f "$cache_file"; then
1661 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1662 echo "$as_me: loading cache $cache_file" >&6;}
1663 case $cache_file in
1664 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1665 *) . "./$cache_file";;
1666 esac
1668 else
1669 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1670 echo "$as_me: creating cache $cache_file" >&6;}
1671 >$cache_file
1674 # Check that the precious variables saved in the cache have kept the same
1675 # value.
1676 ac_cache_corrupted=false
1677 for ac_var in $ac_precious_vars; do
1678 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1679 eval ac_new_set=\$ac_env_${ac_var}_set
1680 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1681 eval ac_new_val=\$ac_env_${ac_var}_value
1682 case $ac_old_set,$ac_new_set in
1683 set,)
1684 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1685 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1686 ac_cache_corrupted=: ;;
1687 ,set)
1688 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1689 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1690 ac_cache_corrupted=: ;;
1691 ,);;
1693 if test "x$ac_old_val" != "x$ac_new_val"; then
1694 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1695 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1696 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1697 echo "$as_me: former value: $ac_old_val" >&2;}
1698 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1699 echo "$as_me: current value: $ac_new_val" >&2;}
1700 ac_cache_corrupted=:
1701 fi;;
1702 esac
1703 # Pass precious variables to config.status.
1704 if test "$ac_new_set" = set; then
1705 case $ac_new_val in
1706 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1707 *) ac_arg=$ac_var=$ac_new_val ;;
1708 esac
1709 case " $ac_configure_args " in
1710 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1711 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1712 esac
1714 done
1715 if $ac_cache_corrupted; then
1716 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1717 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1718 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1719 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1720 { (exit 1); exit 1; }; }
1747 ac_ext=c
1748 ac_cpp='$CPP $CPPFLAGS'
1749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1756 ac_config_headers="$ac_config_headers config.h"
1759 # Checks for host and target systems.
1760 ac_aux_dir=
1761 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1762 if test -f "$ac_dir/install-sh"; then
1763 ac_aux_dir=$ac_dir
1764 ac_install_sh="$ac_aux_dir/install-sh -c"
1765 break
1766 elif test -f "$ac_dir/install.sh"; then
1767 ac_aux_dir=$ac_dir
1768 ac_install_sh="$ac_aux_dir/install.sh -c"
1769 break
1770 elif test -f "$ac_dir/shtool"; then
1771 ac_aux_dir=$ac_dir
1772 ac_install_sh="$ac_aux_dir/shtool install -c"
1773 break
1775 done
1776 if test -z "$ac_aux_dir"; then
1777 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1778 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1779 { (exit 1); exit 1; }; }
1782 # These three variables are undocumented and unsupported,
1783 # and are intended to be withdrawn in a future Autoconf release.
1784 # They can cause serious problems if a builder's source tree is in a directory
1785 # whose full name contains unusual characters.
1786 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1787 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1788 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1791 # Make sure we can run config.sub.
1792 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1793 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1794 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1795 { (exit 1); exit 1; }; }
1797 { echo "$as_me:$LINENO: checking build system type" >&5
1798 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1799 if test "${ac_cv_build+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 ac_build_alias=$build_alias
1803 test "x$ac_build_alias" = x &&
1804 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1805 test "x$ac_build_alias" = x &&
1806 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1807 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1808 { (exit 1); exit 1; }; }
1809 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1810 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1811 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1812 { (exit 1); exit 1; }; }
1815 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1816 echo "${ECHO_T}$ac_cv_build" >&6; }
1817 case $ac_cv_build in
1818 *-*-*) ;;
1819 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1820 echo "$as_me: error: invalid value of canonical build" >&2;}
1821 { (exit 1); exit 1; }; };;
1822 esac
1823 build=$ac_cv_build
1824 ac_save_IFS=$IFS; IFS='-'
1825 set x $ac_cv_build
1826 shift
1827 build_cpu=$1
1828 build_vendor=$2
1829 shift; shift
1830 # Remember, the first character of IFS is used to create $*,
1831 # except with old shells:
1832 build_os=$*
1833 IFS=$ac_save_IFS
1834 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1837 { echo "$as_me:$LINENO: checking host system type" >&5
1838 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1839 if test "${ac_cv_host+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842 if test "x$host_alias" = x; then
1843 ac_cv_host=$ac_cv_build
1844 else
1845 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1846 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1847 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1848 { (exit 1); exit 1; }; }
1852 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1853 echo "${ECHO_T}$ac_cv_host" >&6; }
1854 case $ac_cv_host in
1855 *-*-*) ;;
1856 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1857 echo "$as_me: error: invalid value of canonical host" >&2;}
1858 { (exit 1); exit 1; }; };;
1859 esac
1860 host=$ac_cv_host
1861 ac_save_IFS=$IFS; IFS='-'
1862 set x $ac_cv_host
1863 shift
1864 host_cpu=$1
1865 host_vendor=$2
1866 shift; shift
1867 # Remember, the first character of IFS is used to create $*,
1868 # except with old shells:
1869 host_os=$*
1870 IFS=$ac_save_IFS
1871 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1874 { echo "$as_me:$LINENO: checking target system type" >&5
1875 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1876 if test "${ac_cv_target+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879 if test "x$target_alias" = x; then
1880 ac_cv_target=$ac_cv_host
1881 else
1882 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1883 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1884 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1885 { (exit 1); exit 1; }; }
1889 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1890 echo "${ECHO_T}$ac_cv_target" >&6; }
1891 case $ac_cv_target in
1892 *-*-*) ;;
1893 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1894 echo "$as_me: error: invalid value of canonical target" >&2;}
1895 { (exit 1); exit 1; }; };;
1896 esac
1897 target=$ac_cv_target
1898 ac_save_IFS=$IFS; IFS='-'
1899 set x $ac_cv_target
1900 shift
1901 target_cpu=$1
1902 target_vendor=$2
1903 shift; shift
1904 # Remember, the first character of IFS is used to create $*,
1905 # except with old shells:
1906 target_os=$*
1907 IFS=$ac_save_IFS
1908 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1911 # The aliases save the names the user supplied, while $host etc.
1912 # will get canonicalized.
1913 test -n "$target_alias" &&
1914 test "$program_prefix$program_suffix$program_transform_name" = \
1915 NONENONEs,x,x, &&
1916 program_prefix=${target_alias}-
1918 # Program name transformations
1919 test "$program_prefix" != NONE &&
1920 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1921 # Use a double $ so make ignores it.
1922 test "$program_suffix" != NONE &&
1923 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1924 # Double any \ or $. echo might interpret backslashes.
1925 # By default was `s,x,x', remove it if useless.
1926 cat <<\_ACEOF >conftest.sed
1927 s/[\\$]/&&/g;s/;s,x,x,$//
1928 _ACEOF
1929 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1930 rm -f conftest.sed
1933 case "$host_cpu" in
1934 powerpc64) host_m32=1 ;;
1935 esac
1937 case "$target_cpu" in
1938 i[3456]86) target_cpu=i386 ;;
1939 esac
1941 # Specify the platform (such as firmware).
1943 # Check whether --with-platform was given.
1944 if test "${with_platform+set}" = set; then
1945 withval=$with_platform;
1949 # Guess the platform if not specified.
1950 if test "x$with_platform" = x; then
1951 case "$target_cpu"-"$target_vendor" in
1952 i386-apple) platform=efi ;;
1953 i386-*) platform=pc ;;
1954 x86_64-apple) platform=efi ;;
1955 x86_64-*) platform=pc ;;
1956 powerpc-*) platform=ieee1275 ;;
1957 powerpc64-*) platform=ieee1275 ;;
1958 sparc64-*) platform=ieee1275 ;;
1959 *) { { echo "$as_me:$LINENO: error: unsupported CPU: \"$target_cpu\"" >&5
1960 echo "$as_me: error: unsupported CPU: \"$target_cpu\"" >&2;}
1961 { (exit 1); exit 1; }; } ;;
1962 esac
1963 else
1964 platform="$with_platform"
1967 # Adjust CPU unless target was explicitly specified.
1968 if test -z "$target_alias"; then
1969 case "$target_cpu"-"$platform" in
1970 x86_64-efi) ;;
1971 x86_64-*) target_cpu=i386 ;;
1972 powerpc64-ieee1275) target_cpu=powerpc ;;
1973 esac
1976 # Check if the platform is supported, make final adjustments.
1977 case "$target_cpu"-"$platform" in
1978 i386-efi) ;;
1979 x86_64-efi) ;;
1980 i386-pc) ;;
1981 i386-coreboot) ;;
1982 i386-linuxbios) platform=coreboot ;;
1983 i386-ieee1275) ;;
1984 powerpc-ieee1275) ;;
1985 sparc64-ieee1275) ;;
1986 *) { { echo "$as_me:$LINENO: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&5
1987 echo "$as_me: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&2;}
1988 { (exit 1); exit 1; }; } ;;
1989 esac
1991 case "$target_cpu" in
1992 i386 | powerpc) target_m32=1 ;;
1993 x86_64 | sparc64) target_m64=1 ;;
1994 esac
1996 case "$host_os" in
1997 mingw32) host_os=cygwin ;;
1998 esac
2000 case "$target_os" in
2001 mingw32) target_os=cygwin ;;
2002 esac
2009 # Checks for build programs.
2012 # Although cmp is listed in the GNU Coding Standards as a command which
2013 # can used directly, OpenBSD lacks cmp in the default installation.
2014 for ac_prog in cmp
2016 # Extract the first word of "$ac_prog", so it can be a program name with args.
2017 set dummy $ac_prog; ac_word=$2
2018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020 if test "${ac_cv_prog_CMP+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023 if test -n "$CMP"; then
2024 ac_cv_prog_CMP="$CMP" # Let the user override the test.
2025 else
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033 ac_cv_prog_CMP="$ac_prog"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 break 2
2037 done
2038 done
2039 IFS=$as_save_IFS
2043 CMP=$ac_cv_prog_CMP
2044 if test -n "$CMP"; then
2045 { echo "$as_me:$LINENO: result: $CMP" >&5
2046 echo "${ECHO_T}$CMP" >&6; }
2047 else
2048 { echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6; }
2053 test -n "$CMP" && break
2054 done
2056 if test "x$CMP" = x; then
2057 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
2058 echo "$as_me: error: cmp is not found" >&2;}
2059 { (exit 1); exit 1; }; }
2062 for ac_prog in bison
2064 # Extract the first word of "$ac_prog", so it can be a program name with args.
2065 set dummy $ac_prog; ac_word=$2
2066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2068 if test "${ac_cv_prog_YACC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 if test -n "$YACC"; then
2072 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2081 ac_cv_prog_YACC="$ac_prog"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2085 done
2086 done
2087 IFS=$as_save_IFS
2091 YACC=$ac_cv_prog_YACC
2092 if test -n "$YACC"; then
2093 { echo "$as_me:$LINENO: result: $YACC" >&5
2094 echo "${ECHO_T}$YACC" >&6; }
2095 else
2096 { echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6; }
2101 test -n "$YACC" && break
2102 done
2104 if test "x$YACC" = x; then
2105 { { echo "$as_me:$LINENO: error: bison is not found" >&5
2106 echo "$as_me: error: bison is not found" >&2;}
2107 { (exit 1); exit 1; }; }
2110 for file in /usr/share/unifont/unifont.hex ; do
2111 if test -e $file ; then
2112 UNIFONT_HEX=$file
2114 break
2116 done
2118 # Find a good install program. We prefer a C program (faster),
2119 # so one script is as good as another. But avoid the broken or
2120 # incompatible versions:
2121 # SysV /etc/install, /usr/sbin/install
2122 # SunOS /usr/etc/install
2123 # IRIX /sbin/install
2124 # AIX /bin/install
2125 # AmigaOS /C/install, which installs bootblocks on floppy discs
2126 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2127 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2128 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2129 # OS/2's system install, which has a completely different semantic
2130 # ./install, which can be erroneously created by make from ./install.sh.
2131 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2132 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2133 if test -z "$INSTALL"; then
2134 if test "${ac_cv_path_install+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 # Account for people who put trailing slashes in PATH elements.
2143 case $as_dir/ in
2144 ./ | .// | /cC/* | \
2145 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2146 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2147 /usr/ucb/* ) ;;
2149 # OSF1 and SCO ODT 3.0 have their own names for install.
2150 # Don't use installbsd from OSF since it installs stuff as root
2151 # by default.
2152 for ac_prog in ginstall scoinst install; do
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2155 if test $ac_prog = install &&
2156 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157 # AIX install. It has an incompatible calling convention.
2159 elif test $ac_prog = install &&
2160 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161 # program-specific install script used by HP pwplus--don't use.
2163 else
2164 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2165 break 3
2168 done
2169 done
2171 esac
2172 done
2173 IFS=$as_save_IFS
2177 if test "${ac_cv_path_install+set}" = set; then
2178 INSTALL=$ac_cv_path_install
2179 else
2180 # As a last resort, use the slow shell script. Don't cache a
2181 # value for INSTALL within a source directory, because that will
2182 # break other packages using the cache if that directory is
2183 # removed, or if the value is a relative name.
2184 INSTALL=$ac_install_sh
2187 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2188 echo "${ECHO_T}$INSTALL" >&6; }
2190 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2191 # It thinks the first close brace ends the variable substitution.
2192 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2194 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2196 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2198 for ac_prog in gawk mawk nawk awk
2200 # Extract the first word of "$ac_prog", so it can be a program name with args.
2201 set dummy $ac_prog; ac_word=$2
2202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2204 if test "${ac_cv_prog_AWK+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 else
2207 if test -n "$AWK"; then
2208 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2209 else
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_prog_AWK="$ac_prog"
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 break 2
2221 done
2222 done
2223 IFS=$as_save_IFS
2227 AWK=$ac_cv_prog_AWK
2228 if test -n "$AWK"; then
2229 { echo "$as_me:$LINENO: result: $AWK" >&5
2230 echo "${ECHO_T}$AWK" >&6; }
2231 else
2232 { echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6; }
2237 test -n "$AWK" && break
2238 done
2240 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2241 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2242 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2243 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246 cat >conftest.make <<\_ACEOF
2247 SHELL = /bin/sh
2248 all:
2249 @echo '@@@%%%=$(MAKE)=@@@%%%'
2250 _ACEOF
2251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2253 *@@@%%%=?*=@@@%%%*)
2254 eval ac_cv_prog_make_${ac_make}_set=yes;;
2256 eval ac_cv_prog_make_${ac_make}_set=no;;
2257 esac
2258 rm -f conftest.make
2260 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2261 { echo "$as_me:$LINENO: result: yes" >&5
2262 echo "${ECHO_T}yes" >&6; }
2263 SET_MAKE=
2264 else
2265 { echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6; }
2267 SET_MAKE="MAKE=${MAKE-make}"
2271 # These are not a "must".
2272 # Extract the first word of "ruby", so it can be a program name with args.
2273 set dummy ruby; ac_word=$2
2274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276 if test "${ac_cv_path_RUBY+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 case $RUBY in
2280 [\\/]* | ?:[\\/]*)
2281 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2295 done
2296 done
2297 IFS=$as_save_IFS
2300 esac
2302 RUBY=$ac_cv_path_RUBY
2303 if test -n "$RUBY"; then
2304 { echo "$as_me:$LINENO: result: $RUBY" >&5
2305 echo "${ECHO_T}$RUBY" >&6; }
2306 else
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2312 # Extract the first word of "help2man", so it can be a program name with args.
2313 set dummy help2man; ac_word=$2
2314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2316 if test "${ac_cv_path_HELP2MAN+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 else
2319 case $HELP2MAN in
2320 [\\/]* | ?:[\\/]*)
2321 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2335 done
2336 done
2337 IFS=$as_save_IFS
2340 esac
2342 HELP2MAN=$ac_cv_path_HELP2MAN
2343 if test -n "$HELP2MAN"; then
2344 { echo "$as_me:$LINENO: result: $HELP2MAN" >&5
2345 echo "${ECHO_T}$HELP2MAN" >&6; }
2346 else
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2354 # Checks for host programs.
2357 ac_ext=c
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362 if test -n "$ac_tool_prefix"; then
2363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2384 done
2385 done
2386 IFS=$as_save_IFS
2390 CC=$ac_cv_prog_CC
2391 if test -n "$CC"; then
2392 { echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6; }
2394 else
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2401 if test -z "$ac_cv_prog_CC"; then
2402 ac_ct_CC=$CC
2403 # Extract the first word of "gcc", so it can be a program name with args.
2404 set dummy gcc; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410 if test -n "$ac_ct_CC"; then
2411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_ac_ct_CC="gcc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2424 done
2425 done
2426 IFS=$as_save_IFS
2430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2431 if test -n "$ac_ct_CC"; then
2432 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2433 echo "${ECHO_T}$ac_ct_CC" >&6; }
2434 else
2435 { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2439 if test "x$ac_ct_CC" = x; then
2440 CC=""
2441 else
2442 case $cross_compiling:$ac_tool_warned in
2443 yes:)
2444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet. If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&5
2447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2448 whose name does not start with the host triplet. If you think this
2449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2450 ac_tool_warned=yes ;;
2451 esac
2452 CC=$ac_ct_CC
2454 else
2455 CC="$ac_cv_prog_CC"
2458 if test -z "$CC"; then
2459 if test -n "$ac_tool_prefix"; then
2460 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2461 set dummy ${ac_tool_prefix}cc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_CC="${ac_tool_prefix}cc"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2481 done
2482 done
2483 IFS=$as_save_IFS
2487 CC=$ac_cv_prog_CC
2488 if test -n "$CC"; then
2489 { echo "$as_me:$LINENO: result: $CC" >&5
2490 echo "${ECHO_T}$CC" >&6; }
2491 else
2492 { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2499 if test -z "$CC"; then
2500 # Extract the first word of "cc", so it can be a program name with args.
2501 set dummy cc; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2509 else
2510 ac_prog_rejected=no
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2519 ac_prog_rejected=yes
2520 continue
2522 ac_cv_prog_CC="cc"
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2526 done
2527 done
2528 IFS=$as_save_IFS
2530 if test $ac_prog_rejected = yes; then
2531 # We found a bogon in the path, so make sure we never use it.
2532 set dummy $ac_cv_prog_CC
2533 shift
2534 if test $# != 0; then
2535 # We chose a different compiler from the bogus one.
2536 # However, it has the same basename, so the bogon will be chosen
2537 # first if we set CC to just the basename; use the full file name.
2538 shift
2539 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2544 CC=$ac_cv_prog_CC
2545 if test -n "$CC"; then
2546 { echo "$as_me:$LINENO: result: $CC" >&5
2547 echo "${ECHO_T}$CC" >&6; }
2548 else
2549 { echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6; }
2555 if test -z "$CC"; then
2556 if test -n "$ac_tool_prefix"; then
2557 for ac_prog in cl.exe
2559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2563 if test "${ac_cv_prog_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2568 else
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 break 2
2580 done
2581 done
2582 IFS=$as_save_IFS
2586 CC=$ac_cv_prog_CC
2587 if test -n "$CC"; then
2588 { echo "$as_me:$LINENO: result: $CC" >&5
2589 echo "${ECHO_T}$CC" >&6; }
2590 else
2591 { echo "$as_me:$LINENO: result: no" >&5
2592 echo "${ECHO_T}no" >&6; }
2596 test -n "$CC" && break
2597 done
2599 if test -z "$CC"; then
2600 ac_ct_CC=$CC
2601 for ac_prog in cl.exe
2603 # Extract the first word of "$ac_prog", so it can be a program name with args.
2604 set dummy $ac_prog; ac_word=$2
2605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2607 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610 if test -n "$ac_ct_CC"; then
2611 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_ac_ct_CC="$ac_prog"
2621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 break 2
2624 done
2625 done
2626 IFS=$as_save_IFS
2630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2631 if test -n "$ac_ct_CC"; then
2632 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2633 echo "${ECHO_T}$ac_ct_CC" >&6; }
2634 else
2635 { echo "$as_me:$LINENO: result: no" >&5
2636 echo "${ECHO_T}no" >&6; }
2640 test -n "$ac_ct_CC" && break
2641 done
2643 if test "x$ac_ct_CC" = x; then
2644 CC=""
2645 else
2646 case $cross_compiling:$ac_tool_warned in
2647 yes:)
2648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet. If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&5
2651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet. If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2654 ac_tool_warned=yes ;;
2655 esac
2656 CC=$ac_ct_CC
2663 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: no acceptable C compiler found in \$PATH
2666 See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }
2669 # Provide some information about the compiler.
2670 echo "$as_me:$LINENO: checking for C compiler version" >&5
2671 ac_compiler=`set X $ac_compile; echo $2`
2672 { (ac_try="$ac_compiler --version >&5"
2673 case "(($ac_try" in
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2676 esac
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678 (eval "$ac_compiler --version >&5") 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (ac_try="$ac_compiler -v >&5"
2683 case "(($ac_try" in
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2686 esac
2687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688 (eval "$ac_compiler -v >&5") 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }
2692 { (ac_try="$ac_compiler -V >&5"
2693 case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696 esac
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_compiler -V >&5") 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }
2703 cat >conftest.$ac_ext <<_ACEOF
2704 /* confdefs.h. */
2705 _ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2711 main ()
2715 return 0;
2717 _ACEOF
2718 ac_clean_files_save=$ac_clean_files
2719 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2720 # Try to create an executable without -o first, disregard a.out.
2721 # It will help us diagnose broken compilers, and finding out an intuition
2722 # of exeext.
2723 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2724 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2725 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2727 # List of possible output files, starting from the most likely.
2728 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2729 # only as a last resort. b.out is created by i960 compilers.
2730 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2732 # The IRIX 6 linker writes into existing files which may not be
2733 # executable, retaining their permissions. Remove them first so a
2734 # subsequent execution test works.
2735 ac_rmfiles=
2736 for ac_file in $ac_files
2738 case $ac_file in
2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2741 esac
2742 done
2743 rm -f $ac_rmfiles
2745 if { (ac_try="$ac_link_default"
2746 case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_link_default") 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; then
2755 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2756 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2757 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2758 # so that the user can short-circuit this test for compilers unknown to
2759 # Autoconf.
2760 for ac_file in $ac_files ''
2762 test -f "$ac_file" || continue
2763 case $ac_file in
2764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2766 [ab].out )
2767 # We found the default executable, but exeext='' is most
2768 # certainly right.
2769 break;;
2770 *.* )
2771 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2772 then :; else
2773 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2775 # We set ac_cv_exeext here because the later test for it is not
2776 # safe: cross compilers may not add the suffix if given an `-o'
2777 # argument, so we may need to know it at that point already.
2778 # Even if this section looks crufty: it has the advantage of
2779 # actually working.
2780 break;;
2782 break;;
2783 esac
2784 done
2785 test "$ac_cv_exeext" = no && ac_cv_exeext=
2787 else
2788 ac_file=''
2791 { echo "$as_me:$LINENO: result: $ac_file" >&5
2792 echo "${ECHO_T}$ac_file" >&6; }
2793 if test -z "$ac_file"; then
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2798 See \`config.log' for more details." >&5
2799 echo "$as_me: error: C compiler cannot create executables
2800 See \`config.log' for more details." >&2;}
2801 { (exit 77); exit 77; }; }
2804 ac_exeext=$ac_cv_exeext
2806 # Check that the compiler produces executables we can run. If not, either
2807 # the compiler is broken, or we cross compile.
2808 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2809 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2810 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2811 # If not cross compiling, check that we can run a simple program.
2812 if test "$cross_compiling" != yes; then
2813 if { ac_try='./$ac_file'
2814 { (case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817 esac
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_try") 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; }; then
2823 cross_compiling=no
2824 else
2825 if test "$cross_compiling" = maybe; then
2826 cross_compiling=yes
2827 else
2828 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2829 If you meant to cross compile, use \`--host'.
2830 See \`config.log' for more details." >&5
2831 echo "$as_me: error: cannot run C compiled programs.
2832 If you meant to cross compile, use \`--host'.
2833 See \`config.log' for more details." >&2;}
2834 { (exit 1); exit 1; }; }
2838 { echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6; }
2841 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2842 ac_clean_files=$ac_clean_files_save
2843 # Check that the compiler produces executables we can run. If not, either
2844 # the compiler is broken, or we cross compile.
2845 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2846 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2847 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2848 echo "${ECHO_T}$cross_compiling" >&6; }
2850 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2851 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2852 if { (ac_try="$ac_link"
2853 case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856 esac
2857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_link") 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; then
2862 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2863 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2864 # work properly (i.e., refer to `conftest.exe'), while it won't with
2865 # `rm'.
2866 for ac_file in conftest.exe conftest conftest.*; do
2867 test -f "$ac_file" || continue
2868 case $ac_file in
2869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2870 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2871 break;;
2872 * ) break;;
2873 esac
2874 done
2875 else
2876 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2877 See \`config.log' for more details." >&5
2878 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2879 See \`config.log' for more details." >&2;}
2880 { (exit 1); exit 1; }; }
2883 rm -f conftest$ac_cv_exeext
2884 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2885 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2887 rm -f conftest.$ac_ext
2888 EXEEXT=$ac_cv_exeext
2889 ac_exeext=$EXEEXT
2890 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2891 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2892 if test "${ac_cv_objext+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h. */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2903 main ()
2907 return 0;
2909 _ACEOF
2910 rm -f conftest.o conftest.obj
2911 if { (ac_try="$ac_compile"
2912 case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compile") 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; then
2921 for ac_file in conftest.o conftest.obj conftest.*; do
2922 test -f "$ac_file" || continue;
2923 case $ac_file in
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2925 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2926 break;;
2927 esac
2928 done
2929 else
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2933 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2934 See \`config.log' for more details." >&5
2935 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2936 See \`config.log' for more details." >&2;}
2937 { (exit 1); exit 1; }; }
2940 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2942 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2943 echo "${ECHO_T}$ac_cv_objext" >&6; }
2944 OBJEXT=$ac_cv_objext
2945 ac_objext=$OBJEXT
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951 cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h. */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2959 main ()
2961 #ifndef __GNUC__
2962 choke me
2963 #endif
2966 return 0;
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>conftest.er1
2977 ac_status=$?
2978 grep -v '^ *+' conftest.er1 >conftest.err
2979 rm -f conftest.er1
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } && {
2983 test -z "$ac_c_werror_flag" ||
2984 test ! -s conftest.err
2985 } && test -s conftest.$ac_objext; then
2986 ac_compiler_gnu=yes
2987 else
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2991 ac_compiler_gnu=no
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2998 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2999 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3000 GCC=`test $ac_compiler_gnu = yes && echo yes`
3001 ac_test_CFLAGS=${CFLAGS+set}
3002 ac_save_CFLAGS=$CFLAGS
3003 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3004 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3005 if test "${ac_cv_prog_cc_g+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008 ac_save_c_werror_flag=$ac_c_werror_flag
3009 ac_c_werror_flag=yes
3010 ac_cv_prog_cc_g=no
3011 CFLAGS="-g"
3012 cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h. */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3020 main ()
3024 return 0;
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } && {
3041 test -z "$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3043 } && test -s conftest.$ac_objext; then
3044 ac_cv_prog_cc_g=yes
3045 else
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 CFLAGS=""
3050 cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h. */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3058 main ()
3062 return 0;
3064 _ACEOF
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3067 case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3073 ac_status=$?
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
3083 else
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 ac_c_werror_flag=$ac_save_c_werror_flag
3088 CFLAGS="-g"
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h. */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3097 main ()
3101 return 0;
3103 _ACEOF
3104 rm -f conftest.$ac_objext
3105 if { (ac_try="$ac_compile"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_compile") 2>conftest.er1
3112 ac_status=$?
3113 grep -v '^ *+' conftest.er1 >conftest.err
3114 rm -f conftest.er1
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } && {
3118 test -z "$ac_c_werror_flag" ||
3119 test ! -s conftest.err
3120 } && test -s conftest.$ac_objext; then
3121 ac_cv_prog_cc_g=yes
3122 else
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136 ac_c_werror_flag=$ac_save_c_werror_flag
3138 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3139 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3140 if test "$ac_test_CFLAGS" = set; then
3141 CFLAGS=$ac_save_CFLAGS
3142 elif test $ac_cv_prog_cc_g = yes; then
3143 if test "$GCC" = yes; then
3144 CFLAGS="-g -O2"
3145 else
3146 CFLAGS="-g"
3148 else
3149 if test "$GCC" = yes; then
3150 CFLAGS="-O2"
3151 else
3152 CFLAGS=
3155 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3156 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3157 if test "${ac_cv_prog_cc_c89+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160 ac_cv_prog_cc_c89=no
3161 ac_save_CC=$CC
3162 cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h. */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168 #include <stdarg.h>
3169 #include <stdio.h>
3170 #include <sys/types.h>
3171 #include <sys/stat.h>
3172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3173 struct buf { int x; };
3174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3175 static char *e (p, i)
3176 char **p;
3177 int i;
3179 return p[i];
3181 static char *f (char * (*g) (char **, int), char **p, ...)
3183 char *s;
3184 va_list v;
3185 va_start (v,p);
3186 s = g (p, va_arg (v,int));
3187 va_end (v);
3188 return s;
3191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3192 function prototypes and stuff, but not '\xHH' hex character constants.
3193 These don't provoke an error unfortunately, instead are silently treated
3194 as 'x'. The following induces an error, until -std is added to get
3195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3196 array size at least. It's necessary to write '\x00'==0 to get something
3197 that's true only with -std. */
3198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3201 inside strings and character constants. */
3202 #define FOO(x) 'x'
3203 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3205 int test (int i, double x);
3206 struct s1 {int (*f) (int a);};
3207 struct s2 {int (*f) (double a);};
3208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3209 int argc;
3210 char **argv;
3212 main ()
3214 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3216 return 0;
3218 _ACEOF
3219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3220 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3222 CC="$ac_save_CC $ac_arg"
3223 rm -f conftest.$ac_objext
3224 if { (ac_try="$ac_compile"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } && {
3237 test -z "$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 } && test -s conftest.$ac_objext; then
3240 ac_cv_prog_cc_c89=$ac_arg
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -f core conftest.err conftest.$ac_objext
3249 test "x$ac_cv_prog_cc_c89" != "xno" && break
3250 done
3251 rm -f conftest.$ac_ext
3252 CC=$ac_save_CC
3255 # AC_CACHE_VAL
3256 case "x$ac_cv_prog_cc_c89" in
3258 { echo "$as_me:$LINENO: result: none needed" >&5
3259 echo "${ECHO_T}none needed" >&6; } ;;
3260 xno)
3261 { echo "$as_me:$LINENO: result: unsupported" >&5
3262 echo "${ECHO_T}unsupported" >&6; } ;;
3264 CC="$CC $ac_cv_prog_cc_c89"
3265 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3266 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3267 esac
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 # Must be GCC.
3277 test "x$GCC" = xyes || { { echo "$as_me:$LINENO: error: GCC is required" >&5
3278 echo "$as_me: error: GCC is required" >&2;}
3279 { (exit 1); exit 1; }; }
3282 cat >>confdefs.h <<\_ACEOF
3283 #define _GNU_SOURCE 1
3284 _ACEOF
3288 # Check whether --enable-largefile was given.
3289 if test "${enable_largefile+set}" = set; then
3290 enableval=$enable_largefile;
3293 if test "$enable_largefile" != no; then
3295 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3296 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3297 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300 ac_cv_sys_largefile_CC=no
3301 if test "$GCC" != yes; then
3302 ac_save_CC=$CC
3303 while :; do
3304 # IRIX 6.2 and later do not support large files by default,
3305 # so use the C compiler's -n32 option if that helps.
3306 cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h. */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 #include <sys/types.h>
3313 /* Check that off_t can represent 2**63 - 1 correctly.
3314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3315 since some C++ compilers masquerading as C compilers
3316 incorrectly reject 9223372036854775807. */
3317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3319 && LARGE_OFF_T % 2147483647 == 1)
3320 ? 1 : -1];
3322 main ()
3326 return 0;
3328 _ACEOF
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3331 case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_compile") 2>conftest.er1
3337 ac_status=$?
3338 grep -v '^ *+' conftest.er1 >conftest.err
3339 rm -f conftest.er1
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } && {
3343 test -z "$ac_c_werror_flag" ||
3344 test ! -s conftest.err
3345 } && test -s conftest.$ac_objext; then
3346 break
3347 else
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3354 rm -f core conftest.err conftest.$ac_objext
3355 CC="$CC -n32"
3356 rm -f conftest.$ac_objext
3357 if { (ac_try="$ac_compile"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_compile") 2>conftest.er1
3364 ac_status=$?
3365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } && {
3370 test -z "$ac_c_werror_flag" ||
3371 test ! -s conftest.err
3372 } && test -s conftest.$ac_objext; then
3373 ac_cv_sys_largefile_CC=' -n32'; break
3374 else
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3381 rm -f core conftest.err conftest.$ac_objext
3382 break
3383 done
3384 CC=$ac_save_CC
3385 rm -f conftest.$ac_ext
3388 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3389 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3390 if test "$ac_cv_sys_largefile_CC" != no; then
3391 CC=$CC$ac_cv_sys_largefile_CC
3394 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3395 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3396 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 while :; do
3400 cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <sys/types.h>
3407 /* Check that off_t can represent 2**63 - 1 correctly.
3408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3409 since some C++ compilers masquerading as C compilers
3410 incorrectly reject 9223372036854775807. */
3411 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3413 && LARGE_OFF_T % 2147483647 == 1)
3414 ? 1 : -1];
3416 main ()
3420 return 0;
3422 _ACEOF
3423 rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3425 case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_compile") 2>conftest.er1
3431 ac_status=$?
3432 grep -v '^ *+' conftest.er1 >conftest.err
3433 rm -f conftest.er1
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } && {
3437 test -z "$ac_c_werror_flag" ||
3438 test ! -s conftest.err
3439 } && test -s conftest.$ac_objext; then
3440 ac_cv_sys_file_offset_bits=no; break
3441 else
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 #define _FILE_OFFSET_BITS 64
3456 #include <sys/types.h>
3457 /* Check that off_t can represent 2**63 - 1 correctly.
3458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3459 since some C++ compilers masquerading as C compilers
3460 incorrectly reject 9223372036854775807. */
3461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3463 && LARGE_OFF_T % 2147483647 == 1)
3464 ? 1 : -1];
3466 main ()
3470 return 0;
3472 _ACEOF
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.$ac_objext; then
3490 ac_cv_sys_file_offset_bits=64; break
3491 else
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_sys_file_offset_bits=unknown
3500 break
3501 done
3503 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3504 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3505 case $ac_cv_sys_file_offset_bits in #(
3506 no | unknown) ;;
3508 cat >>confdefs.h <<_ACEOF
3509 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3510 _ACEOF
3512 esac
3513 rm -f conftest*
3514 if test $ac_cv_sys_file_offset_bits = unknown; then
3515 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3516 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3517 if test "${ac_cv_sys_large_files+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520 while :; do
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #include <sys/types.h>
3528 /* Check that off_t can represent 2**63 - 1 correctly.
3529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3530 since some C++ compilers masquerading as C compilers
3531 incorrectly reject 9223372036854775807. */
3532 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3534 && LARGE_OFF_T % 2147483647 == 1)
3535 ? 1 : -1];
3537 main ()
3541 return 0;
3543 _ACEOF
3544 rm -f conftest.$ac_objext
3545 if { (ac_try="$ac_compile"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_compile") 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } && {
3558 test -z "$ac_c_werror_flag" ||
3559 test ! -s conftest.err
3560 } && test -s conftest.$ac_objext; then
3561 ac_cv_sys_large_files=no; break
3562 else
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #define _LARGE_FILES 1
3577 #include <sys/types.h>
3578 /* Check that off_t can represent 2**63 - 1 correctly.
3579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3580 since some C++ compilers masquerading as C compilers
3581 incorrectly reject 9223372036854775807. */
3582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3584 && LARGE_OFF_T % 2147483647 == 1)
3585 ? 1 : -1];
3587 main ()
3591 return 0;
3593 _ACEOF
3594 rm -f conftest.$ac_objext
3595 if { (ac_try="$ac_compile"
3596 case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_compile") 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } && {
3608 test -z "$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3610 } && test -s conftest.$ac_objext; then
3611 ac_cv_sys_large_files=1; break
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 ac_cv_sys_large_files=unknown
3621 break
3622 done
3624 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3625 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3626 case $ac_cv_sys_large_files in #(
3627 no | unknown) ;;
3629 cat >>confdefs.h <<_ACEOF
3630 #define _LARGE_FILES $ac_cv_sys_large_files
3631 _ACEOF
3633 esac
3634 rm -f conftest*
3639 # Identify characteristics of the host architecture.
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3646 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3647 # On Suns, sometimes $CPP names a directory.
3648 if test -n "$CPP" && test -d "$CPP"; then
3649 CPP=
3651 if test -z "$CPP"; then
3652 if test "${ac_cv_prog_CPP+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 # Double quotes because CPP needs to be expanded
3656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3658 ac_preproc_ok=false
3659 for ac_c_preproc_warn_flag in '' yes
3661 # Use a header file that comes with gcc, so configuring glibc
3662 # with a fresh cross-compiler works.
3663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664 # <limits.h> exists even on freestanding compilers.
3665 # On the NeXT, cc -E runs the code through the compiler's parser,
3666 # not just through cpp. "Syntax error" is here to catch this case.
3667 cat >conftest.$ac_ext <<_ACEOF
3668 /* confdefs.h. */
3669 _ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3673 #ifdef __STDC__
3674 # include <limits.h>
3675 #else
3676 # include <assert.h>
3677 #endif
3678 Syntax error
3679 _ACEOF
3680 if { (ac_try="$ac_cpp conftest.$ac_ext"
3681 case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3687 ac_status=$?
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } >/dev/null && {
3693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3694 test ! -s conftest.err
3695 }; then
3697 else
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3701 # Broken: fails on valid input.
3702 continue
3705 rm -f conftest.err conftest.$ac_ext
3707 # OK, works on sane cases. Now check whether nonexistent headers
3708 # can be detected and how.
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 #include <ac_nonexistent.h>
3716 _ACEOF
3717 if { (ac_try="$ac_cpp conftest.$ac_ext"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3724 ac_status=$?
3725 grep -v '^ *+' conftest.er1 >conftest.err
3726 rm -f conftest.er1
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } >/dev/null && {
3730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3731 test ! -s conftest.err
3732 }; then
3733 # Broken: success on invalid input.
3734 continue
3735 else
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 # Passes both tests.
3740 ac_preproc_ok=:
3741 break
3744 rm -f conftest.err conftest.$ac_ext
3746 done
3747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3748 rm -f conftest.err conftest.$ac_ext
3749 if $ac_preproc_ok; then
3750 break
3753 done
3754 ac_cv_prog_CPP=$CPP
3757 CPP=$ac_cv_prog_CPP
3758 else
3759 ac_cv_prog_CPP=$CPP
3761 { echo "$as_me:$LINENO: result: $CPP" >&5
3762 echo "${ECHO_T}$CPP" >&6; }
3763 ac_preproc_ok=false
3764 for ac_c_preproc_warn_flag in '' yes
3766 # Use a header file that comes with gcc, so configuring glibc
3767 # with a fresh cross-compiler works.
3768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769 # <limits.h> exists even on freestanding compilers.
3770 # On the NeXT, cc -E runs the code through the compiler's parser,
3771 # not just through cpp. "Syntax error" is here to catch this case.
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 #ifdef __STDC__
3779 # include <limits.h>
3780 #else
3781 # include <assert.h>
3782 #endif
3783 Syntax error
3784 _ACEOF
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3786 case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789 esac
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3792 ac_status=$?
3793 grep -v '^ *+' conftest.er1 >conftest.err
3794 rm -f conftest.er1
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } >/dev/null && {
3798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3799 test ! -s conftest.err
3800 }; then
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 # Broken: fails on valid input.
3807 continue
3810 rm -f conftest.err conftest.$ac_ext
3812 # OK, works on sane cases. Now check whether nonexistent headers
3813 # can be detected and how.
3814 cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h. */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820 #include <ac_nonexistent.h>
3821 _ACEOF
3822 if { (ac_try="$ac_cpp conftest.$ac_ext"
3823 case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3826 esac
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } >/dev/null && {
3835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3837 }; then
3838 # Broken: success on invalid input.
3839 continue
3840 else
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 # Passes both tests.
3845 ac_preproc_ok=:
3846 break
3849 rm -f conftest.err conftest.$ac_ext
3851 done
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3856 else
3857 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3858 See \`config.log' for more details." >&5
3859 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3860 See \`config.log' for more details." >&2;}
3861 { (exit 1); exit 1; }; }
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3872 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3873 if test "${ac_cv_path_GREP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 # Extract the first word of "grep ggrep" to use in msg output
3877 if test -z "$GREP"; then
3878 set dummy grep ggrep; ac_prog_name=$2
3879 if test "${ac_cv_path_GREP+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882 ac_path_GREP_found=false
3883 # Loop through the user's path and test for each of PROGNAME-LIST
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_prog in grep ggrep; do
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3892 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3893 # Check for GNU ac_path_GREP and select it if it is found.
3894 # Check for GNU $ac_path_GREP
3895 case `"$ac_path_GREP" --version 2>&1` in
3896 *GNU*)
3897 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3899 ac_count=0
3900 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3901 while :
3903 cat "conftest.in" "conftest.in" >"conftest.tmp"
3904 mv "conftest.tmp" "conftest.in"
3905 cp "conftest.in" "conftest.nl"
3906 echo 'GREP' >> "conftest.nl"
3907 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3908 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3909 ac_count=`expr $ac_count + 1`
3910 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3911 # Best one so far, save it but keep looking for a better one
3912 ac_cv_path_GREP="$ac_path_GREP"
3913 ac_path_GREP_max=$ac_count
3915 # 10*(2^10) chars as input seems more than enough
3916 test $ac_count -gt 10 && break
3917 done
3918 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3919 esac
3922 $ac_path_GREP_found && break 3
3923 done
3924 done
3926 done
3927 IFS=$as_save_IFS
3932 GREP="$ac_cv_path_GREP"
3933 if test -z "$GREP"; then
3934 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3935 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3936 { (exit 1); exit 1; }; }
3939 else
3940 ac_cv_path_GREP=$GREP
3945 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3946 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3947 GREP="$ac_cv_path_GREP"
3950 { echo "$as_me:$LINENO: checking for egrep" >&5
3951 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3952 if test "${ac_cv_path_EGREP+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3956 then ac_cv_path_EGREP="$GREP -E"
3957 else
3958 # Extract the first word of "egrep" to use in msg output
3959 if test -z "$EGREP"; then
3960 set dummy egrep; ac_prog_name=$2
3961 if test "${ac_cv_path_EGREP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964 ac_path_EGREP_found=false
3965 # Loop through the user's path and test for each of PROGNAME-LIST
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_prog in egrep; do
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3974 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3975 # Check for GNU ac_path_EGREP and select it if it is found.
3976 # Check for GNU $ac_path_EGREP
3977 case `"$ac_path_EGREP" --version 2>&1` in
3978 *GNU*)
3979 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3981 ac_count=0
3982 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3983 while :
3985 cat "conftest.in" "conftest.in" >"conftest.tmp"
3986 mv "conftest.tmp" "conftest.in"
3987 cp "conftest.in" "conftest.nl"
3988 echo 'EGREP' >> "conftest.nl"
3989 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3991 ac_count=`expr $ac_count + 1`
3992 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3993 # Best one so far, save it but keep looking for a better one
3994 ac_cv_path_EGREP="$ac_path_EGREP"
3995 ac_path_EGREP_max=$ac_count
3997 # 10*(2^10) chars as input seems more than enough
3998 test $ac_count -gt 10 && break
3999 done
4000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4001 esac
4004 $ac_path_EGREP_found && break 3
4005 done
4006 done
4008 done
4009 IFS=$as_save_IFS
4014 EGREP="$ac_cv_path_EGREP"
4015 if test -z "$EGREP"; then
4016 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4017 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4018 { (exit 1); exit 1; }; }
4021 else
4022 ac_cv_path_EGREP=$EGREP
4028 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4029 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4030 EGREP="$ac_cv_path_EGREP"
4033 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4034 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4035 if test "${ac_cv_header_stdc+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038 cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h. */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4044 #include <stdlib.h>
4045 #include <stdarg.h>
4046 #include <string.h>
4047 #include <float.h>
4050 main ()
4054 return 0;
4056 _ACEOF
4057 rm -f conftest.$ac_objext
4058 if { (ac_try="$ac_compile"
4059 case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_compile") 2>conftest.er1
4065 ac_status=$?
4066 grep -v '^ *+' conftest.er1 >conftest.err
4067 rm -f conftest.er1
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && {
4071 test -z "$ac_c_werror_flag" ||
4072 test ! -s conftest.err
4073 } && test -s conftest.$ac_objext; then
4074 ac_cv_header_stdc=yes
4075 else
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 ac_cv_header_stdc=no
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 if test $ac_cv_header_stdc = yes; then
4085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4086 cat >conftest.$ac_ext <<_ACEOF
4087 /* confdefs.h. */
4088 _ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4092 #include <string.h>
4094 _ACEOF
4095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4096 $EGREP "memchr" >/dev/null 2>&1; then
4098 else
4099 ac_cv_header_stdc=no
4101 rm -f conftest*
4105 if test $ac_cv_header_stdc = yes; then
4106 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4107 cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h. */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 #include <stdlib.h>
4115 _ACEOF
4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 $EGREP "free" >/dev/null 2>&1; then
4119 else
4120 ac_cv_header_stdc=no
4122 rm -f conftest*
4126 if test $ac_cv_header_stdc = yes; then
4127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4128 if test "$cross_compiling" = yes; then
4130 else
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h. */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 #include <ctype.h>
4138 #include <stdlib.h>
4139 #if ((' ' & 0x0FF) == 0x020)
4140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4142 #else
4143 # define ISLOWER(c) \
4144 (('a' <= (c) && (c) <= 'i') \
4145 || ('j' <= (c) && (c) <= 'r') \
4146 || ('s' <= (c) && (c) <= 'z'))
4147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4148 #endif
4150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4152 main ()
4154 int i;
4155 for (i = 0; i < 256; i++)
4156 if (XOR (islower (i), ISLOWER (i))
4157 || toupper (i) != TOUPPER (i))
4158 return 2;
4159 return 0;
4161 _ACEOF
4162 rm -f conftest$ac_exeext
4163 if { (ac_try="$ac_link"
4164 case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4167 esac
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_link") 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4173 { (case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176 esac
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_try") 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4183 else
4184 echo "$as_me: program exited with status $ac_status" >&5
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 ( exit $ac_status )
4189 ac_cv_header_stdc=no
4191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4197 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4198 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4199 if test $ac_cv_header_stdc = yes; then
4201 cat >>confdefs.h <<\_ACEOF
4202 #define STDC_HEADERS 1
4203 _ACEOF
4207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4217 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4218 inttypes.h stdint.h unistd.h
4220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 $ac_includes_default
4234 #include <$ac_header>
4235 _ACEOF
4236 rm -f conftest.$ac_objext
4237 if { (ac_try="$ac_compile"
4238 case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241 esac
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_compile") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } && {
4250 test -z "$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4252 } && test -s conftest.$ac_objext; then
4253 eval "$as_ac_Header=yes"
4254 else
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 eval "$as_ac_Header=no"
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263 ac_res=`eval echo '${'$as_ac_Header'}'`
4264 { echo "$as_me:$LINENO: result: $ac_res" >&5
4265 echo "${ECHO_T}$ac_res" >&6; }
4266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4267 cat >>confdefs.h <<_ACEOF
4268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4269 _ACEOF
4273 done
4276 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4277 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4278 if test "${ac_cv_c_bigendian+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281 # See if sys/param.h defines the BYTE_ORDER macro.
4282 cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h. */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 #include <sys/types.h>
4289 #include <sys/param.h>
4292 main ()
4294 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4295 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4296 bogus endian macros
4297 #endif
4300 return 0;
4302 _ACEOF
4303 rm -f conftest.$ac_objext
4304 if { (ac_try="$ac_compile"
4305 case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_compile") 2>conftest.er1
4311 ac_status=$?
4312 grep -v '^ *+' conftest.er1 >conftest.err
4313 rm -f conftest.er1
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } && {
4317 test -z "$ac_c_werror_flag" ||
4318 test ! -s conftest.err
4319 } && test -s conftest.$ac_objext; then
4320 # It does; now see whether it defined to BIG_ENDIAN or not.
4321 cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h. */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 #include <sys/types.h>
4328 #include <sys/param.h>
4331 main ()
4333 #if BYTE_ORDER != BIG_ENDIAN
4334 not big endian
4335 #endif
4338 return 0;
4340 _ACEOF
4341 rm -f conftest.$ac_objext
4342 if { (ac_try="$ac_compile"
4343 case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } && {
4355 test -z "$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4357 } && test -s conftest.$ac_objext; then
4358 ac_cv_c_bigendian=yes
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 ac_cv_c_bigendian=no
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367 else
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4371 # It does not; compile a test program.
4372 if test "$cross_compiling" = yes; then
4373 # try to guess the endianness by grepping values into an object file
4374 ac_cv_c_bigendian=unknown
4375 cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h. */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4382 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4383 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4384 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4385 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4386 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4388 main ()
4390 _ascii (); _ebcdic ();
4392 return 0;
4394 _ACEOF
4395 rm -f conftest.$ac_objext
4396 if { (ac_try="$ac_compile"
4397 case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_compile") 2>conftest.er1
4403 ac_status=$?
4404 grep -v '^ *+' conftest.er1 >conftest.err
4405 rm -f conftest.er1
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } && {
4409 test -z "$ac_c_werror_flag" ||
4410 test ! -s conftest.err
4411 } && test -s conftest.$ac_objext; then
4412 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4413 ac_cv_c_bigendian=yes
4415 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4416 if test "$ac_cv_c_bigendian" = unknown; then
4417 ac_cv_c_bigendian=no
4418 else
4419 # finding both strings is unlikely to happen, but who knows?
4420 ac_cv_c_bigendian=unknown
4423 else
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 else
4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h. */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 $ac_includes_default
4440 main ()
4443 /* Are we little or big endian? From Harbison&Steele. */
4444 union
4446 long int l;
4447 char c[sizeof (long int)];
4448 } u;
4449 u.l = 1;
4450 return u.c[sizeof (long int) - 1] == 1;
4453 return 0;
4455 _ACEOF
4456 rm -f conftest$ac_exeext
4457 if { (ac_try="$ac_link"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_link") 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4467 { (case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470 esac
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_try") 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 ac_cv_c_bigendian=no
4477 else
4478 echo "$as_me: program exited with status $ac_status" >&5
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 ( exit $ac_status )
4483 ac_cv_c_bigendian=yes
4485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4494 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4495 case $ac_cv_c_bigendian in
4496 yes)
4498 cat >>confdefs.h <<\_ACEOF
4499 #define WORDS_BIGENDIAN 1
4500 _ACEOF
4505 { { echo "$as_me:$LINENO: error: unknown endianness
4506 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4507 echo "$as_me: error: unknown endianness
4508 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4509 { (exit 1); exit 1; }; } ;;
4510 esac
4512 { echo "$as_me:$LINENO: checking for void *" >&5
4513 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4514 if test "${ac_cv_type_void_p+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 cat >conftest.$ac_ext <<_ACEOF
4518 /* confdefs.h. */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 $ac_includes_default
4524 typedef void * ac__type_new_;
4526 main ()
4528 if ((ac__type_new_ *) 0)
4529 return 0;
4530 if (sizeof (ac__type_new_))
4531 return 0;
4533 return 0;
4535 _ACEOF
4536 rm -f conftest.$ac_objext
4537 if { (ac_try="$ac_compile"
4538 case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4541 esac
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_compile") 2>conftest.er1
4544 ac_status=$?
4545 grep -v '^ *+' conftest.er1 >conftest.err
4546 rm -f conftest.er1
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } && {
4550 test -z "$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4552 } && test -s conftest.$ac_objext; then
4553 ac_cv_type_void_p=yes
4554 else
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 ac_cv_type_void_p=no
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4564 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4566 # The cast to long int works around a bug in the HP C Compiler
4567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4569 # This bug is HP SR number 8606223364.
4570 { echo "$as_me:$LINENO: checking size of void *" >&5
4571 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4572 if test "${ac_cv_sizeof_void_p+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 if test "$cross_compiling" = yes; then
4576 # Depending upon the size, compute the lo and hi bounds.
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h. */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 $ac_includes_default
4584 typedef void * ac__type_sizeof_;
4586 main ()
4588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4589 test_array [0] = 0
4592 return 0;
4594 _ACEOF
4595 rm -f conftest.$ac_objext
4596 if { (ac_try="$ac_compile"
4597 case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_compile") 2>conftest.er1
4603 ac_status=$?
4604 grep -v '^ *+' conftest.er1 >conftest.err
4605 rm -f conftest.er1
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && {
4609 test -z "$ac_c_werror_flag" ||
4610 test ! -s conftest.err
4611 } && test -s conftest.$ac_objext; then
4612 ac_lo=0 ac_mid=0
4613 while :; do
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h. */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 $ac_includes_default
4621 typedef void * ac__type_sizeof_;
4623 main ()
4625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4626 test_array [0] = 0
4629 return 0;
4631 _ACEOF
4632 rm -f conftest.$ac_objext
4633 if { (ac_try="$ac_compile"
4634 case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637 esac
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_compile") 2>conftest.er1
4640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } && {
4646 test -z "$ac_c_werror_flag" ||
4647 test ! -s conftest.err
4648 } && test -s conftest.$ac_objext; then
4649 ac_hi=$ac_mid; break
4650 else
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 ac_lo=`expr $ac_mid + 1`
4655 if test $ac_lo -le $ac_mid; then
4656 ac_lo= ac_hi=
4657 break
4659 ac_mid=`expr 2 '*' $ac_mid + 1`
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 done
4664 else
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 $ac_includes_default
4675 typedef void * ac__type_sizeof_;
4677 main ()
4679 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4680 test_array [0] = 0
4683 return 0;
4685 _ACEOF
4686 rm -f conftest.$ac_objext
4687 if { (ac_try="$ac_compile"
4688 case "(($ac_try" in
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4691 esac
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693 (eval "$ac_compile") 2>conftest.er1
4694 ac_status=$?
4695 grep -v '^ *+' conftest.er1 >conftest.err
4696 rm -f conftest.er1
4697 cat conftest.err >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } && {
4700 test -z "$ac_c_werror_flag" ||
4701 test ! -s conftest.err
4702 } && test -s conftest.$ac_objext; then
4703 ac_hi=-1 ac_mid=-1
4704 while :; do
4705 cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h. */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 $ac_includes_default
4712 typedef void * ac__type_sizeof_;
4714 main ()
4716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4717 test_array [0] = 0
4720 return 0;
4722 _ACEOF
4723 rm -f conftest.$ac_objext
4724 if { (ac_try="$ac_compile"
4725 case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_compile") 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && {
4737 test -z "$ac_c_werror_flag" ||
4738 test ! -s conftest.err
4739 } && test -s conftest.$ac_objext; then
4740 ac_lo=$ac_mid; break
4741 else
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4745 ac_hi=`expr '(' $ac_mid ')' - 1`
4746 if test $ac_mid -le $ac_hi; then
4747 ac_lo= ac_hi=
4748 break
4750 ac_mid=`expr 2 '*' $ac_mid`
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 done
4755 else
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 ac_lo= ac_hi=
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 # Binary search between lo and hi bounds.
4767 while test "x$ac_lo" != "x$ac_hi"; do
4768 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h. */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 $ac_includes_default
4776 typedef void * ac__type_sizeof_;
4778 main ()
4780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4781 test_array [0] = 0
4784 return 0;
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (ac_try="$ac_compile"
4789 case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792 esac
4793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794 (eval "$ac_compile") 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } && {
4801 test -z "$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 } && test -s conftest.$ac_objext; then
4804 ac_hi=$ac_mid
4805 else
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4809 ac_lo=`expr '(' $ac_mid ')' + 1`
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 done
4814 case $ac_lo in
4815 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4816 '') if test "$ac_cv_type_void_p" = yes; then
4817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4818 See \`config.log' for more details." >&5
4819 echo "$as_me: error: cannot compute sizeof (void *)
4820 See \`config.log' for more details." >&2;}
4821 { (exit 77); exit 77; }; }
4822 else
4823 ac_cv_sizeof_void_p=0
4824 fi ;;
4825 esac
4826 else
4827 cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h. */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 $ac_includes_default
4834 typedef void * ac__type_sizeof_;
4835 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4836 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4837 #include <stdio.h>
4838 #include <stdlib.h>
4840 main ()
4843 FILE *f = fopen ("conftest.val", "w");
4844 if (! f)
4845 return 1;
4846 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4848 long int i = longval ();
4849 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4850 return 1;
4851 fprintf (f, "%ld\n", i);
4853 else
4855 unsigned long int i = ulongval ();
4856 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4857 return 1;
4858 fprintf (f, "%lu\n", i);
4860 return ferror (f) || fclose (f) != 0;
4863 return 0;
4865 _ACEOF
4866 rm -f conftest$ac_exeext
4867 if { (ac_try="$ac_link"
4868 case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_link") 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4877 { (case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880 esac
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_try") 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_sizeof_void_p=`cat conftest.val`
4887 else
4888 echo "$as_me: program exited with status $ac_status" >&5
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4892 ( exit $ac_status )
4893 if test "$ac_cv_type_void_p" = yes; then
4894 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4895 See \`config.log' for more details." >&5
4896 echo "$as_me: error: cannot compute sizeof (void *)
4897 See \`config.log' for more details." >&2;}
4898 { (exit 77); exit 77; }; }
4899 else
4900 ac_cv_sizeof_void_p=0
4903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4905 rm -f conftest.val
4907 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4908 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4912 cat >>confdefs.h <<_ACEOF
4913 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4914 _ACEOF
4917 { echo "$as_me:$LINENO: checking for long" >&5
4918 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4919 if test "${ac_cv_type_long+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 $ac_includes_default
4929 typedef long ac__type_new_;
4931 main ()
4933 if ((ac__type_new_ *) 0)
4934 return 0;
4935 if (sizeof (ac__type_new_))
4936 return 0;
4938 return 0;
4940 _ACEOF
4941 rm -f conftest.$ac_objext
4942 if { (ac_try="$ac_compile"
4943 case "(($ac_try" in
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4946 esac
4947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948 (eval "$ac_compile") 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.$ac_objext; then
4958 ac_cv_type_long=yes
4959 else
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 ac_cv_type_long=no
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4969 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4971 # The cast to long int works around a bug in the HP C Compiler
4972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4974 # This bug is HP SR number 8606223364.
4975 { echo "$as_me:$LINENO: checking size of long" >&5
4976 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4977 if test "${ac_cv_sizeof_long+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 if test "$cross_compiling" = yes; then
4981 # Depending upon the size, compute the lo and hi bounds.
4982 cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h. */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988 $ac_includes_default
4989 typedef long ac__type_sizeof_;
4991 main ()
4993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4994 test_array [0] = 0
4997 return 0;
4999 _ACEOF
5000 rm -f conftest.$ac_objext
5001 if { (ac_try="$ac_compile"
5002 case "(($ac_try" in
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5005 esac
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_compile") 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } && {
5014 test -z "$ac_c_werror_flag" ||
5015 test ! -s conftest.err
5016 } && test -s conftest.$ac_objext; then
5017 ac_lo=0 ac_mid=0
5018 while :; do
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5026 typedef long ac__type_sizeof_;
5028 main ()
5030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5031 test_array [0] = 0
5034 return 0;
5036 _ACEOF
5037 rm -f conftest.$ac_objext
5038 if { (ac_try="$ac_compile"
5039 case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042 esac
5043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_compile") 2>conftest.er1
5045 ac_status=$?
5046 grep -v '^ *+' conftest.er1 >conftest.err
5047 rm -f conftest.er1
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && {
5051 test -z "$ac_c_werror_flag" ||
5052 test ! -s conftest.err
5053 } && test -s conftest.$ac_objext; then
5054 ac_hi=$ac_mid; break
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 ac_lo=`expr $ac_mid + 1`
5060 if test $ac_lo -le $ac_mid; then
5061 ac_lo= ac_hi=
5062 break
5064 ac_mid=`expr 2 '*' $ac_mid + 1`
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 done
5069 else
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5073 cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h. */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 $ac_includes_default
5080 typedef long ac__type_sizeof_;
5082 main ()
5084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5085 test_array [0] = 0
5088 return 0;
5090 _ACEOF
5091 rm -f conftest.$ac_objext
5092 if { (ac_try="$ac_compile"
5093 case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096 esac
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_compile") 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && {
5105 test -z "$ac_c_werror_flag" ||
5106 test ! -s conftest.err
5107 } && test -s conftest.$ac_objext; then
5108 ac_hi=-1 ac_mid=-1
5109 while :; do
5110 cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h. */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 $ac_includes_default
5117 typedef long ac__type_sizeof_;
5119 main ()
5121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5122 test_array [0] = 0
5125 return 0;
5127 _ACEOF
5128 rm -f conftest.$ac_objext
5129 if { (ac_try="$ac_compile"
5130 case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133 esac
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compile") 2>conftest.er1
5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && {
5142 test -z "$ac_c_werror_flag" ||
5143 test ! -s conftest.err
5144 } && test -s conftest.$ac_objext; then
5145 ac_lo=$ac_mid; break
5146 else
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5150 ac_hi=`expr '(' $ac_mid ')' - 1`
5151 if test $ac_mid -le $ac_hi; then
5152 ac_lo= ac_hi=
5153 break
5155 ac_mid=`expr 2 '*' $ac_mid`
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 done
5160 else
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5164 ac_lo= ac_hi=
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 # Binary search between lo and hi bounds.
5172 while test "x$ac_lo" != "x$ac_hi"; do
5173 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5174 cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h. */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 $ac_includes_default
5181 typedef long ac__type_sizeof_;
5183 main ()
5185 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5186 test_array [0] = 0
5189 return 0;
5191 _ACEOF
5192 rm -f conftest.$ac_objext
5193 if { (ac_try="$ac_compile"
5194 case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197 esac
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compile") 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest.$ac_objext; then
5209 ac_hi=$ac_mid
5210 else
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5214 ac_lo=`expr '(' $ac_mid ')' + 1`
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 done
5219 case $ac_lo in
5220 ?*) ac_cv_sizeof_long=$ac_lo;;
5221 '') if test "$ac_cv_type_long" = yes; then
5222 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5223 See \`config.log' for more details." >&5
5224 echo "$as_me: error: cannot compute sizeof (long)
5225 See \`config.log' for more details." >&2;}
5226 { (exit 77); exit 77; }; }
5227 else
5228 ac_cv_sizeof_long=0
5229 fi ;;
5230 esac
5231 else
5232 cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5239 typedef long ac__type_sizeof_;
5240 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5241 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5242 #include <stdio.h>
5243 #include <stdlib.h>
5245 main ()
5248 FILE *f = fopen ("conftest.val", "w");
5249 if (! f)
5250 return 1;
5251 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5253 long int i = longval ();
5254 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5255 return 1;
5256 fprintf (f, "%ld\n", i);
5258 else
5260 unsigned long int i = ulongval ();
5261 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5262 return 1;
5263 fprintf (f, "%lu\n", i);
5265 return ferror (f) || fclose (f) != 0;
5268 return 0;
5270 _ACEOF
5271 rm -f conftest$ac_exeext
5272 if { (ac_try="$ac_link"
5273 case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5276 esac
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_link") 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5282 { (case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_try") 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 ac_cv_sizeof_long=`cat conftest.val`
5292 else
5293 echo "$as_me: program exited with status $ac_status" >&5
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5297 ( exit $ac_status )
5298 if test "$ac_cv_type_long" = yes; then
5299 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5300 See \`config.log' for more details." >&5
5301 echo "$as_me: error: cannot compute sizeof (long)
5302 See \`config.log' for more details." >&2;}
5303 { (exit 77); exit 77; }; }
5304 else
5305 ac_cv_sizeof_long=0
5308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5310 rm -f conftest.val
5312 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5313 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5317 cat >>confdefs.h <<_ACEOF
5318 #define SIZEOF_LONG $ac_cv_sizeof_long
5319 _ACEOF
5323 if test "x$host_m32" = x1; then
5324 # Force 32-bit mode.
5325 CFLAGS="$CFLAGS -m32"
5326 LDFLAGS="$LDFLAGS -m32"
5329 # Check LZO when compiling for the i386-pc.
5330 if test "$target_cpu"-"$platform" = i386-pc; then
5331 # Check whether --enable-lzo was given.
5332 if test "${enable_lzo+set}" = set; then
5333 enableval=$enable_lzo;
5336 if [ x"$enable_lzo" = xyes ]; then
5337 # There are three possibilities. LZO version 2 installed with the name
5338 # liblzo2, with the name liblzo, and LZO version 1.
5340 cat >>confdefs.h <<\_ACEOF
5341 #define ENABLE_LZO 1
5342 _ACEOF
5344 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5345 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
5346 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349 ac_check_lib_save_LIBS=$LIBS
5350 LIBS="-llzo2 $LIBS"
5351 cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h. */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5358 /* Override any GCC internal prototype to avoid an error.
5359 Use char because int might match the return type of a GCC
5360 builtin and then its argument prototype would still apply. */
5361 #ifdef __cplusplus
5362 extern "C"
5363 #endif
5364 char __lzo_init_v2 ();
5366 main ()
5368 return __lzo_init_v2 ();
5370 return 0;
5372 _ACEOF
5373 rm -f conftest.$ac_objext conftest$ac_exeext
5374 if { (ac_try="$ac_link"
5375 case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378 esac
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_link") 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && {
5387 test -z "$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5389 } && test -s conftest$ac_exeext &&
5390 $as_test_x conftest$ac_exeext; then
5391 ac_cv_lib_lzo2___lzo_init_v2=yes
5392 else
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5396 ac_cv_lib_lzo2___lzo_init_v2=no
5399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5400 conftest$ac_exeext conftest.$ac_ext
5401 LIBS=$ac_check_lib_save_LIBS
5403 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5404 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
5405 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5406 LIBLZO="-llzo2"
5407 else
5408 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5409 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
5410 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 ac_check_lib_save_LIBS=$LIBS
5414 LIBS="-llzo $LIBS"
5415 cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h. */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5422 /* Override any GCC internal prototype to avoid an error.
5423 Use char because int might match the return type of a GCC
5424 builtin and then its argument prototype would still apply. */
5425 #ifdef __cplusplus
5426 extern "C"
5427 #endif
5428 char __lzo_init_v2 ();
5430 main ()
5432 return __lzo_init_v2 ();
5434 return 0;
5436 _ACEOF
5437 rm -f conftest.$ac_objext conftest$ac_exeext
5438 if { (ac_try="$ac_link"
5439 case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_link") 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } && {
5451 test -z "$ac_c_werror_flag" ||
5452 test ! -s conftest.err
5453 } && test -s conftest$ac_exeext &&
5454 $as_test_x conftest$ac_exeext; then
5455 ac_cv_lib_lzo___lzo_init_v2=yes
5456 else
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 ac_cv_lib_lzo___lzo_init_v2=no
5463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5464 conftest$ac_exeext conftest.$ac_ext
5465 LIBS=$ac_check_lib_save_LIBS
5467 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5468 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
5469 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5470 LIBLZO="-llzo"
5471 else
5472 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5473 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
5474 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477 ac_check_lib_save_LIBS=$LIBS
5478 LIBS="-llzo $LIBS"
5479 cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h. */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5486 /* Override any GCC internal prototype to avoid an error.
5487 Use char because int might match the return type of a GCC
5488 builtin and then its argument prototype would still apply. */
5489 #ifdef __cplusplus
5490 extern "C"
5491 #endif
5492 char __lzo_init2 ();
5494 main ()
5496 return __lzo_init2 ();
5498 return 0;
5500 _ACEOF
5501 rm -f conftest.$ac_objext conftest$ac_exeext
5502 if { (ac_try="$ac_link"
5503 case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_link") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest$ac_exeext &&
5518 $as_test_x conftest$ac_exeext; then
5519 ac_cv_lib_lzo___lzo_init2=yes
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 ac_cv_lib_lzo___lzo_init2=no
5527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5528 conftest$ac_exeext conftest.$ac_ext
5529 LIBS=$ac_check_lib_save_LIBS
5531 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5532 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
5533 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
5534 LIBLZO="-llzo"
5535 else
5536 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
5537 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
5538 { (exit 1); exit 1; }; }
5546 LIBS="$LIBS $LIBLZO"
5547 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
5548 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
5549 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552 cat >conftest.$ac_ext <<_ACEOF
5553 /* confdefs.h. */
5554 _ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
5559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5560 #define lzo1x_999_compress innocuous_lzo1x_999_compress
5562 /* System header to define __stub macros and hopefully few prototypes,
5563 which can conflict with char lzo1x_999_compress (); below.
5564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5565 <limits.h> exists even on freestanding compilers. */
5567 #ifdef __STDC__
5568 # include <limits.h>
5569 #else
5570 # include <assert.h>
5571 #endif
5573 #undef lzo1x_999_compress
5575 /* Override any GCC internal prototype to avoid an error.
5576 Use char because int might match the return type of a GCC
5577 builtin and then its argument prototype would still apply. */
5578 #ifdef __cplusplus
5579 extern "C"
5580 #endif
5581 char lzo1x_999_compress ();
5582 /* The GNU C library defines this for functions which it implements
5583 to always fail with ENOSYS. Some functions are actually named
5584 something starting with __ and the normal name is an alias. */
5585 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
5586 choke me
5587 #endif
5590 main ()
5592 return lzo1x_999_compress ();
5594 return 0;
5596 _ACEOF
5597 rm -f conftest.$ac_objext conftest$ac_exeext
5598 if { (ac_try="$ac_link"
5599 case "(($ac_try" in
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5602 esac
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_link") 2>conftest.er1
5605 ac_status=$?
5606 grep -v '^ *+' conftest.er1 >conftest.err
5607 rm -f conftest.er1
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest$ac_exeext &&
5614 $as_test_x conftest$ac_exeext; then
5615 ac_cv_func_lzo1x_999_compress=yes
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5620 ac_cv_func_lzo1x_999_compress=no
5623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5624 conftest$ac_exeext conftest.$ac_ext
5626 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
5627 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
5628 if test $ac_cv_func_lzo1x_999_compress = yes; then
5630 else
5631 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
5632 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
5633 { (exit 1); exit 1; }; }
5637 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
5640 for ac_header in lzo/lzo1x.h lzo1x.h
5642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 ac_res=`eval echo '${'$as_ac_Header'}'`
5650 { echo "$as_me:$LINENO: result: $ac_res" >&5
5651 echo "${ECHO_T}$ac_res" >&6; }
5652 else
5653 # Is the header compilable?
5654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5656 cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h. */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 $ac_includes_default
5663 #include <$ac_header>
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5667 case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && {
5679 test -z "$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5681 } && test -s conftest.$ac_objext; then
5682 ac_header_compiler=yes
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5687 ac_header_compiler=no
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5692 echo "${ECHO_T}$ac_header_compiler" >&6; }
5694 # Is the header present?
5695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5697 cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h. */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 #include <$ac_header>
5704 _ACEOF
5705 if { (ac_try="$ac_cpp conftest.$ac_ext"
5706 case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5712 ac_status=$?
5713 grep -v '^ *+' conftest.er1 >conftest.err
5714 rm -f conftest.er1
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } >/dev/null && {
5718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5719 test ! -s conftest.err
5720 }; then
5721 ac_header_preproc=yes
5722 else
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5726 ac_header_preproc=no
5729 rm -f conftest.err conftest.$ac_ext
5730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5731 echo "${ECHO_T}$ac_header_preproc" >&6; }
5733 # So? What about this header?
5734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5735 yes:no: )
5736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5740 ac_header_preproc=yes
5742 no:yes:* )
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5755 ( cat <<\_ASBOX
5756 ## ------------------------------- ##
5757 ## Report this to bug-grub@gnu.org ##
5758 ## ------------------------------- ##
5759 _ASBOX
5760 ) | sed "s/^/$as_me: WARNING: /" >&2
5762 esac
5763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768 eval "$as_ac_Header=\$ac_header_preproc"
5770 ac_res=`eval echo '${'$as_ac_Header'}'`
5771 { echo "$as_me:$LINENO: result: $ac_res" >&5
5772 echo "${ECHO_T}$ac_res" >&6; }
5775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5776 cat >>confdefs.h <<_ACEOF
5777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5778 _ACEOF
5782 done
5784 else
5786 cat >>confdefs.h <<\_ACEOF
5787 #define ENABLE_LZMA 1
5788 _ACEOF
5794 # Check for functions.
5798 for ac_func in posix_memalign memalign asprintf
5800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806 cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h. */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5814 #define $ac_func innocuous_$ac_func
5816 /* System header to define __stub macros and hopefully few prototypes,
5817 which can conflict with char $ac_func (); below.
5818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5819 <limits.h> exists even on freestanding compilers. */
5821 #ifdef __STDC__
5822 # include <limits.h>
5823 #else
5824 # include <assert.h>
5825 #endif
5827 #undef $ac_func
5829 /* Override any GCC internal prototype to avoid an error.
5830 Use char because int might match the return type of a GCC
5831 builtin and then its argument prototype would still apply. */
5832 #ifdef __cplusplus
5833 extern "C"
5834 #endif
5835 char $ac_func ();
5836 /* The GNU C library defines this for functions which it implements
5837 to always fail with ENOSYS. Some functions are actually named
5838 something starting with __ and the normal name is an alias. */
5839 #if defined __stub_$ac_func || defined __stub___$ac_func
5840 choke me
5841 #endif
5844 main ()
5846 return $ac_func ();
5848 return 0;
5850 _ACEOF
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (ac_try="$ac_link"
5853 case "(($ac_try" in
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5856 esac
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_link") 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } && {
5865 test -z "$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5867 } && test -s conftest$ac_exeext &&
5868 $as_test_x conftest$ac_exeext; then
5869 eval "$as_ac_var=yes"
5870 else
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 eval "$as_ac_var=no"
5877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5878 conftest$ac_exeext conftest.$ac_ext
5880 ac_res=`eval echo '${'$as_ac_var'}'`
5881 { echo "$as_me:$LINENO: result: $ac_res" >&5
5882 echo "${ECHO_T}$ac_res" >&6; }
5883 if test `eval echo '${'$as_ac_var'}'` = yes; then
5884 cat >>confdefs.h <<_ACEOF
5885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5886 _ACEOF
5889 done
5893 # Check for target programs.
5897 # Use linker script if present, otherwise use builtin -N script.
5898 { echo "$as_me:$LINENO: checking for option to link raw image" >&5
5899 echo $ECHO_N "checking for option to link raw image... $ECHO_C" >&6; }
5900 if test -f "${srcdir}/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"; then
5901 TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"
5902 TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
5903 TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"
5904 else
5905 TARGET_IMG_LDSCRIPT=
5906 TARGET_IMG_LDFLAGS='-Wl,-N'
5907 TARGET_IMG_LDFLAGS_AC='-Wl,-N'
5911 { echo "$as_me:$LINENO: result: $TARGET_IMG_LDFLAGS_AC" >&5
5912 echo "${ECHO_T}$TARGET_IMG_LDFLAGS_AC" >&6; }
5914 # For platforms where ELF is not the default link format.
5915 { echo "$as_me:$LINENO: checking for command to convert module to ELF format" >&5
5916 echo $ECHO_N "checking for command to convert module to ELF format... $ECHO_C" >&6; }
5917 case "${host_os}:${target_os}" in
5918 cygwin:cygwin) TARGET_OBJ2ELF='grub-pe2elf' ;;
5919 *) ;;
5920 esac
5922 { echo "$as_me:$LINENO: result: $TARGET_OBJ2ELF" >&5
5923 echo "${ECHO_T}$TARGET_OBJ2ELF" >&6; }
5925 # For cross-compiling.
5926 if test "x$target" != "x$host"; then
5927 # XXX this depends on the implementation of autoconf!
5928 tmp_ac_tool_prefix="$ac_tool_prefix"
5929 ac_tool_prefix=$target_alias-
5931 if test -n "$ac_tool_prefix"; then
5932 for ac_prog in gcc egcs cc
5934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5938 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941 if test -n "$TARGET_CC"; then
5942 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5955 done
5956 done
5957 IFS=$as_save_IFS
5961 TARGET_CC=$ac_cv_prog_TARGET_CC
5962 if test -n "$TARGET_CC"; then
5963 { echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5964 echo "${ECHO_T}$TARGET_CC" >&6; }
5965 else
5966 { echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6; }
5971 test -n "$TARGET_CC" && break
5972 done
5974 if test -z "$TARGET_CC"; then
5975 ac_ct_TARGET_CC=$TARGET_CC
5976 for ac_prog in gcc egcs cc
5978 # Extract the first word of "$ac_prog", so it can be a program name with args.
5979 set dummy $ac_prog; ac_word=$2
5980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5982 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985 if test -n "$ac_ct_TARGET_CC"; then
5986 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
5987 else
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 break 2
5999 done
6000 done
6001 IFS=$as_save_IFS
6005 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
6006 if test -n "$ac_ct_TARGET_CC"; then
6007 { echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
6008 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6; }
6009 else
6010 { echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6; }
6015 test -n "$ac_ct_TARGET_CC" && break
6016 done
6018 if test "x$ac_ct_TARGET_CC" = x; then
6019 TARGET_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
6020 echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
6021 { (exit 1); exit 1; }; }"
6022 else
6023 case $cross_compiling:$ac_tool_warned in
6024 yes:)
6025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6026 whose name does not start with the host triplet. If you think this
6027 configuration is useful to you, please write to autoconf@gnu.org." >&5
6028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6029 whose name does not start with the host triplet. If you think this
6030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6031 ac_tool_warned=yes ;;
6032 esac
6033 TARGET_CC=$ac_ct_TARGET_CC
6037 if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045 if test -n "$OBJCOPY"; then
6046 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6059 done
6060 done
6061 IFS=$as_save_IFS
6065 OBJCOPY=$ac_cv_prog_OBJCOPY
6066 if test -n "$OBJCOPY"; then
6067 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6068 echo "${ECHO_T}$OBJCOPY" >&6; }
6069 else
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6076 if test -z "$ac_cv_prog_OBJCOPY"; then
6077 ac_ct_OBJCOPY=$OBJCOPY
6078 # Extract the first word of "objcopy", so it can be a program name with args.
6079 set dummy objcopy; ac_word=$2
6080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085 if test -n "$ac_ct_OBJCOPY"; then
6086 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6099 done
6100 done
6101 IFS=$as_save_IFS
6105 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6106 if test -n "$ac_ct_OBJCOPY"; then
6107 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6108 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6109 else
6110 { echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6; }
6114 if test "x$ac_ct_OBJCOPY" = x; then
6115 OBJCOPY=""
6116 else
6117 case $cross_compiling:$ac_tool_warned in
6118 yes:)
6119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6120 whose name does not start with the host triplet. If you think this
6121 configuration is useful to you, please write to autoconf@gnu.org." >&5
6122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6123 whose name does not start with the host triplet. If you think this
6124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6125 ac_tool_warned=yes ;;
6126 esac
6127 OBJCOPY=$ac_ct_OBJCOPY
6129 else
6130 OBJCOPY="$ac_cv_prog_OBJCOPY"
6133 if test -n "$ac_tool_prefix"; then
6134 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}strip; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_STRIP+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141 if test -n "$STRIP"; then
6142 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6155 done
6156 done
6157 IFS=$as_save_IFS
6161 STRIP=$ac_cv_prog_STRIP
6162 if test -n "$STRIP"; then
6163 { echo "$as_me:$LINENO: result: $STRIP" >&5
6164 echo "${ECHO_T}$STRIP" >&6; }
6165 else
6166 { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6172 if test -z "$ac_cv_prog_STRIP"; then
6173 ac_ct_STRIP=$STRIP
6174 # Extract the first word of "strip", so it can be a program name with args.
6175 set dummy strip; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181 if test -n "$ac_ct_STRIP"; then
6182 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6191 ac_cv_prog_ac_ct_STRIP="strip"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6195 done
6196 done
6197 IFS=$as_save_IFS
6201 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6202 if test -n "$ac_ct_STRIP"; then
6203 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6204 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6205 else
6206 { echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6; }
6210 if test "x$ac_ct_STRIP" = x; then
6211 STRIP=""
6212 else
6213 case $cross_compiling:$ac_tool_warned in
6214 yes:)
6215 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6216 whose name does not start with the host triplet. If you think this
6217 configuration is useful to you, please write to autoconf@gnu.org." >&5
6218 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6219 whose name does not start with the host triplet. If you think this
6220 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223 STRIP=$ac_ct_STRIP
6225 else
6226 STRIP="$ac_cv_prog_STRIP"
6229 if test -n "$ac_tool_prefix"; then
6230 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6231 set dummy ${ac_tool_prefix}nm; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_prog_NM+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237 if test -n "$NM"; then
6238 ac_cv_prog_NM="$NM" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_NM="${ac_tool_prefix}nm"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
6251 done
6252 done
6253 IFS=$as_save_IFS
6257 NM=$ac_cv_prog_NM
6258 if test -n "$NM"; then
6259 { echo "$as_me:$LINENO: result: $NM" >&5
6260 echo "${ECHO_T}$NM" >&6; }
6261 else
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6268 if test -z "$ac_cv_prog_NM"; then
6269 ac_ct_NM=$NM
6270 # Extract the first word of "nm", so it can be a program name with args.
6271 set dummy nm; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277 if test -n "$ac_ct_NM"; then
6278 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_ac_ct_NM="nm"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6291 done
6292 done
6293 IFS=$as_save_IFS
6297 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6298 if test -n "$ac_ct_NM"; then
6299 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6300 echo "${ECHO_T}$ac_ct_NM" >&6; }
6301 else
6302 { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6306 if test "x$ac_ct_NM" = x; then
6307 NM=""
6308 else
6309 case $cross_compiling:$ac_tool_warned in
6310 yes:)
6311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6312 whose name does not start with the host triplet. If you think this
6313 configuration is useful to you, please write to autoconf@gnu.org." >&5
6314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6315 whose name does not start with the host triplet. If you think this
6316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6317 ac_tool_warned=yes ;;
6318 esac
6319 NM=$ac_ct_NM
6321 else
6322 NM="$ac_cv_prog_NM"
6326 ac_tool_prefix="$tmp_ac_tool_prefix"
6327 else
6328 if test "x$TARGET_CC" = x; then
6329 TARGET_CC=$CC
6331 if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6336 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339 if test -n "$OBJCOPY"; then
6340 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6353 done
6354 done
6355 IFS=$as_save_IFS
6359 OBJCOPY=$ac_cv_prog_OBJCOPY
6360 if test -n "$OBJCOPY"; then
6361 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6362 echo "${ECHO_T}$OBJCOPY" >&6; }
6363 else
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6370 if test -z "$ac_cv_prog_OBJCOPY"; then
6371 ac_ct_OBJCOPY=$OBJCOPY
6372 # Extract the first word of "objcopy", so it can be a program name with args.
6373 set dummy objcopy; ac_word=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 if test -n "$ac_ct_OBJCOPY"; then
6380 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6393 done
6394 done
6395 IFS=$as_save_IFS
6399 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6400 if test -n "$ac_ct_OBJCOPY"; then
6401 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6402 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6403 else
6404 { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6408 if test "x$ac_ct_OBJCOPY" = x; then
6409 OBJCOPY=""
6410 else
6411 case $cross_compiling:$ac_tool_warned in
6412 yes:)
6413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6414 whose name does not start with the host triplet. If you think this
6415 configuration is useful to you, please write to autoconf@gnu.org." >&5
6416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6417 whose name does not start with the host triplet. If you think this
6418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6419 ac_tool_warned=yes ;;
6420 esac
6421 OBJCOPY=$ac_ct_OBJCOPY
6423 else
6424 OBJCOPY="$ac_cv_prog_OBJCOPY"
6427 if test -n "$ac_tool_prefix"; then
6428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6429 set dummy ${ac_tool_prefix}strip; ac_word=$2
6430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432 if test "${ac_cv_prog_STRIP+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 if test -n "$STRIP"; then
6436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6449 done
6450 done
6451 IFS=$as_save_IFS
6455 STRIP=$ac_cv_prog_STRIP
6456 if test -n "$STRIP"; then
6457 { echo "$as_me:$LINENO: result: $STRIP" >&5
6458 echo "${ECHO_T}$STRIP" >&6; }
6459 else
6460 { echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6; }
6466 if test -z "$ac_cv_prog_STRIP"; then
6467 ac_ct_STRIP=$STRIP
6468 # Extract the first word of "strip", so it can be a program name with args.
6469 set dummy strip; ac_word=$2
6470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475 if test -n "$ac_ct_STRIP"; then
6476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_ac_ct_STRIP="strip"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6489 done
6490 done
6491 IFS=$as_save_IFS
6495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6496 if test -n "$ac_ct_STRIP"; then
6497 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6498 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6499 else
6500 { echo "$as_me:$LINENO: result: no" >&5
6501 echo "${ECHO_T}no" >&6; }
6504 if test "x$ac_ct_STRIP" = x; then
6505 STRIP=""
6506 else
6507 case $cross_compiling:$ac_tool_warned in
6508 yes:)
6509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6510 whose name does not start with the host triplet. If you think this
6511 configuration is useful to you, please write to autoconf@gnu.org." >&5
6512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6513 whose name does not start with the host triplet. If you think this
6514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6515 ac_tool_warned=yes ;;
6516 esac
6517 STRIP=$ac_ct_STRIP
6519 else
6520 STRIP="$ac_cv_prog_STRIP"
6523 if test -n "$ac_tool_prefix"; then
6524 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6525 set dummy ${ac_tool_prefix}nm; ac_word=$2
6526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6528 if test "${ac_cv_prog_NM+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531 if test -n "$NM"; then
6532 ac_cv_prog_NM="$NM" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_prog_NM="${ac_tool_prefix}nm"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6545 done
6546 done
6547 IFS=$as_save_IFS
6551 NM=$ac_cv_prog_NM
6552 if test -n "$NM"; then
6553 { echo "$as_me:$LINENO: result: $NM" >&5
6554 echo "${ECHO_T}$NM" >&6; }
6555 else
6556 { echo "$as_me:$LINENO: result: no" >&5
6557 echo "${ECHO_T}no" >&6; }
6562 if test -z "$ac_cv_prog_NM"; then
6563 ac_ct_NM=$NM
6564 # Extract the first word of "nm", so it can be a program name with args.
6565 set dummy nm; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571 if test -n "$ac_ct_NM"; then
6572 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_ac_ct_NM="nm"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6585 done
6586 done
6587 IFS=$as_save_IFS
6591 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6592 if test -n "$ac_ct_NM"; then
6593 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6594 echo "${ECHO_T}$ac_ct_NM" >&6; }
6595 else
6596 { echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6; }
6600 if test "x$ac_ct_NM" = x; then
6601 NM=""
6602 else
6603 case $cross_compiling:$ac_tool_warned in
6604 yes:)
6605 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6606 whose name does not start with the host triplet. If you think this
6607 configuration is useful to you, please write to autoconf@gnu.org." >&5
6608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6609 whose name does not start with the host triplet. If you think this
6610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6611 ac_tool_warned=yes ;;
6612 esac
6613 NM=$ac_ct_NM
6615 else
6616 NM="$ac_cv_prog_NM"
6623 # Test the C compiler for the target environment.
6624 tmp_CC="$CC"
6625 tmp_CFLAGS="$CFLAGS"
6626 tmp_LDFLAGS="$LDFLAGS"
6627 tmp_CPPFLAGS="$CPPFLAGS"
6628 tmp_LIBS="$LIBS"
6629 CC="$TARGET_CC"
6630 CFLAGS="$TARGET_CFLAGS"
6631 CPPFLAGS="$TARGET_CPPFLAGS"
6632 LDFLAGS="$TARGET_LDFLAGS"
6633 LIBS=""
6635 if test "x$TARGET_CFLAGS" = x; then
6636 # debug flags.
6637 TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
6638 -Wundef -Wstrict-prototypes -g"
6640 # optimization flags.
6641 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
6642 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
6643 if test "${grub_cv_cc_Os+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6647 CFLAGS=-Os
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6656 main ()
6660 return 0;
6662 _ACEOF
6663 rm -f conftest.$ac_objext
6664 if { (ac_try="$ac_compile"
6665 case "(($ac_try" in
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6668 esac
6669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670 (eval "$ac_compile") 2>conftest.er1
6671 ac_status=$?
6672 grep -v '^ *+' conftest.er1 >conftest.err
6673 rm -f conftest.er1
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && {
6677 test -z "$ac_c_werror_flag" ||
6678 test ! -s conftest.err
6679 } && test -s conftest.$ac_objext; then
6680 grub_cv_cc_Os=yes
6681 else
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6685 grub_cv_cc_Os=no
6688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 { echo "$as_me:$LINENO: result: $grub_cv_cc_Os" >&5
6692 echo "${ECHO_T}$grub_cv_cc_Os" >&6; }
6693 if test "x$grub_cv_cc_Os" = xyes; then
6694 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
6695 else
6696 TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
6699 # Force no alignment to save space on i386.
6700 if test "x$target_cpu" = xi386; then
6701 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
6702 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
6703 if test "${grub_cv_cc_falign_loop+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6707 CFLAGS="-falign-loops=1"
6708 cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h. */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6716 main ()
6720 return 0;
6722 _ACEOF
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6725 case "(($ac_try" in
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6728 esac
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_compile") 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest.$ac_objext; then
6740 grub_cv_cc_falign_loop=yes
6741 else
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 grub_cv_cc_falign_loop=no
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 { echo "$as_me:$LINENO: result: $grub_cv_cc_falign_loop" >&5
6752 echo "${ECHO_T}$grub_cv_cc_falign_loop" >&6; }
6754 if test "x$grub_cv_cc_falign_loop" = xyes; then
6755 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
6756 else
6757 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
6762 if test "x$target_m32" = x1; then
6763 # Force 32-bit mode.
6764 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
6765 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
6768 if test "x$target_m64" = x1; then
6769 # Force 64-bit mode.
6770 TARGET_CFLAGS="$TARGET_CFLAGS -m64"
6771 TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
6775 # Compiler features.
6778 # Smashing stack protector.
6780 # Smashing stack protector.
6781 ssp_possible=yes
6782 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-fstack-protector'" >&5
6783 echo $ECHO_N "checking whether \`$CC' accepts \`-fstack-protector'... $ECHO_C" >&6; }
6784 # Is this a reliable test case?
6785 cat >conftest.$ac_ext <<_ACEOF
6786 void foo (void) { volatile char a[8]; a[3]; }
6787 _ACEOF
6788 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
6789 # `ac_compile' like this correct, after all?
6790 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
6791 { echo "$as_me:$LINENO: result: yes" >&5
6792 echo "${ECHO_T}yes" >&6; }
6793 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6794 rm -f conftest.s
6795 else
6796 ssp_possible=no
6797 { echo "$as_me:$LINENO: result: no" >&5
6798 echo "${ECHO_T}no" >&6; }
6801 # Need that, because some distributions ship compilers that include
6802 # `-fstack-protector' in the default specs.
6803 if test "x$ssp_possible" = xyes; then
6804 TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
6807 # Smashing stack arg probe.
6808 sap_possible=yes
6809 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
6810 echo $ECHO_N "checking whether \`$CC' accepts \`-mstack-arg-probe'... $ECHO_C" >&6; }
6811 cat >conftest.$ac_ext <<_ACEOF
6812 void foo (void) { volatile char a[8]; a[3]; }
6813 _ACEOF
6814 if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then
6815 { echo "$as_me:$LINENO: result: yes" >&5
6816 echo "${ECHO_T}yes" >&6; }
6817 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6818 rm -f conftest.s
6819 else
6820 sap_possible=no
6821 { echo "$as_me:$LINENO: result: no" >&5
6822 echo "${ECHO_T}no" >&6; }
6825 # Cygwin's GCC uses alloca() to probe the stackframe on static
6826 # stack allocations above some threshold.
6827 if test x"$sap_possible" = xyes; then
6828 TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
6836 # Set them to their new values for the tests below.
6837 CC="$TARGET_CC"
6838 CFLAGS="$TARGET_CFLAGS"
6839 CPPFLAGS="$TARGET_CPPFLAGS"
6840 LDFLAGS="$TARGET_LDFLAGS"
6842 # Defined in aclocal.m4.
6843 { echo "$as_me:$LINENO: checking whether target compiler is working" >&5
6844 echo $ECHO_N "checking whether target compiler is working... $ECHO_C" >&6; }
6845 if test "${grub_cv_prog_target_cc+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848 cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h. */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6856 main ()
6860 return 0;
6862 _ACEOF
6863 rm -f conftest.$ac_objext conftest$ac_exeext
6864 if { (ac_try="$ac_link"
6865 case "(($ac_try" in
6866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867 *) ac_try_echo=$ac_try;;
6868 esac
6869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6870 (eval "$ac_link") 2>conftest.er1
6871 ac_status=$?
6872 grep -v '^ *+' conftest.er1 >conftest.err
6873 rm -f conftest.er1
6874 cat conftest.err >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } && {
6877 test -z "$ac_c_werror_flag" ||
6878 test ! -s conftest.err
6879 } && test -s conftest$ac_exeext &&
6880 $as_test_x conftest$ac_exeext; then
6881 grub_cv_prog_target_cc=yes
6882 else
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6886 grub_cv_prog_target_cc=no
6889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6890 conftest$ac_exeext conftest.$ac_ext
6894 { echo "$as_me:$LINENO: result: $grub_cv_prog_target_cc" >&5
6895 echo "${ECHO_T}$grub_cv_prog_target_cc" >&6; }
6897 if test "x$grub_cv_prog_target_cc" = xno; then
6898 { { echo "$as_me:$LINENO: error: cannot compile for the target" >&5
6899 echo "$as_me: error: cannot compile for the target" >&2;}
6900 { (exit 1); exit 1; }; }
6903 { echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
6904 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6; }
6905 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 else
6908 cat > conftest.c <<\EOF
6909 void
6910 cmain (void)
6912 *((int *) 0x1000) = 2;
6916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6917 (eval $ac_compile) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } && test -s conftest.o; then :
6921 else
6922 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
6923 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
6924 { (exit 1); exit 1; }; }
6926 grub_cv_prog_objcopy_absolute=yes
6927 for link_addr in 2000 8000 7C00; do
6928 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 (eval $ac_try) 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then :
6934 else
6935 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
6936 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
6937 { (exit 1); exit 1; }; }
6939 if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then :
6945 else
6946 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
6947 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
6948 { (exit 1); exit 1; }; }
6950 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6956 mv -f conftest conftest.old
6957 else
6958 grub_cv_prog_objcopy_absolute=no
6959 break
6961 done
6962 rm -f conftest*
6965 { echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
6966 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
6968 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
6969 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
6970 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
6971 { (exit 1); exit 1; }; }
6974 { echo "$as_me:$LINENO: checking whether linker accepts --build-id=none" >&5
6975 echo $ECHO_N "checking whether linker accepts --build-id=none... $ECHO_C" >&6; }
6976 if test "${grub_cv_prog_ld_build_id_none+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979 save_LDFLAGS="$LDFLAGS"
6980 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6989 main ()
6993 return 0;
6995 _ACEOF
6996 rm -f conftest.$ac_objext conftest$ac_exeext
6997 if { (ac_try="$ac_link"
6998 case "(($ac_try" in
6999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000 *) ac_try_echo=$ac_try;;
7001 esac
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003 (eval "$ac_link") 2>conftest.er1
7004 ac_status=$?
7005 grep -v '^ *+' conftest.er1 >conftest.err
7006 rm -f conftest.er1
7007 cat conftest.err >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } && {
7010 test -z "$ac_c_werror_flag" ||
7011 test ! -s conftest.err
7012 } && test -s conftest$ac_exeext &&
7013 $as_test_x conftest$ac_exeext; then
7014 grub_cv_prog_ld_build_id_none=yes
7015 else
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7019 grub_cv_prog_ld_build_id_none=no
7022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7023 conftest$ac_exeext conftest.$ac_ext
7024 LDFLAGS="$save_LDFLAGS"
7028 { echo "$as_me:$LINENO: result: $grub_cv_prog_ld_build_id_none" >&5
7029 echo "${ECHO_T}$grub_cv_prog_ld_build_id_none" >&6; }
7031 if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
7032 MODULE_LDFLAGS="$MODULE_LDFLAGS -Wl,--build-id=none"
7036 { echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
7037 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6; }
7038 if test "${grub_cv_asm_uscore+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041 cat > conftest.c <<\EOF
7043 func (int *list)
7045 *list = 0;
7046 return *list;
7050 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 (eval $ac_try) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } && test -s conftest.s; then
7056 true
7057 else
7058 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
7059 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
7060 { (exit 1); exit 1; }; }
7063 if grep _func conftest.s >/dev/null 2>&1; then
7064 grub_cv_asm_uscore=yes
7065 else
7066 grub_cv_asm_uscore=no
7069 rm -f conftest*
7073 if test "x$grub_cv_asm_uscore" = xyes; then
7075 cat >>confdefs.h <<_ACEOF
7076 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
7077 _ACEOF
7081 { echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
7082 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
7084 if test "x$target_cpu" = xi386; then
7085 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
7086 # Check symbols provided by linker script.
7087 CFLAGS="$TARGET_CFLAGS -nostdlib $TARGET_IMG_LDFLAGS_AC -Wl,-Ttext,8000,--defsym,___main=0x8100"
7089 if test "x$platform" = xpc; then
7091 { echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
7092 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6; }
7093 if test "${grub_cv_check_start_symbol+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096 cat >conftest.$ac_ext <<_ACEOF
7097 /* confdefs.h. */
7098 _ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7104 main ()
7106 asm ("incl start")
7108 return 0;
7110 _ACEOF
7111 rm -f conftest.$ac_objext conftest$ac_exeext
7112 if { (ac_try="$ac_link"
7113 case "(($ac_try" in
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7116 esac
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_link") 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest$ac_exeext &&
7128 $as_test_x conftest$ac_exeext; then
7129 grub_cv_check_start_symbol=yes
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 grub_cv_check_start_symbol=no
7137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7138 conftest$ac_exeext conftest.$ac_ext
7142 { echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
7143 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6; }
7145 { echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
7146 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6; }
7147 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h. */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7158 main ()
7160 asm ("incl _start")
7162 return 0;
7164 _ACEOF
7165 rm -f conftest.$ac_objext conftest$ac_exeext
7166 if { (ac_try="$ac_link"
7167 case "(($ac_try" in
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7170 esac
7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_link") 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest$ac_exeext &&
7182 $as_test_x conftest$ac_exeext; then
7183 grub_cv_check_uscore_start_symbol=yes
7184 else
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7188 grub_cv_check_uscore_start_symbol=no
7191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7192 conftest$ac_exeext conftest.$ac_ext
7196 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
7197 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6; }
7202 if test "x$grub_cv_check_start_symbol" = xyes; then
7203 cat >>confdefs.h <<\_ACEOF
7204 #define START_SYMBOL start
7205 _ACEOF
7207 elif test "x$grub_cv_check_uscore_start_symbol" = xyes; then
7208 cat >>confdefs.h <<\_ACEOF
7209 #define START_SYMBOL _start
7210 _ACEOF
7212 else
7213 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
7214 echo "$as_me: error: neither start nor _start is defined" >&2;}
7215 { (exit 1); exit 1; }; }
7219 { echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
7220 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6; }
7221 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224 cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h. */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7232 main ()
7234 asm ("incl __bss_start")
7236 return 0;
7238 _ACEOF
7239 rm -f conftest.$ac_objext conftest$ac_exeext
7240 if { (ac_try="$ac_link"
7241 case "(($ac_try" in
7242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243 *) ac_try_echo=$ac_try;;
7244 esac
7245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246 (eval "$ac_link") 2>conftest.er1
7247 ac_status=$?
7248 grep -v '^ *+' conftest.er1 >conftest.err
7249 rm -f conftest.er1
7250 cat conftest.err >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } && {
7253 test -z "$ac_c_werror_flag" ||
7254 test ! -s conftest.err
7255 } && test -s conftest$ac_exeext &&
7256 $as_test_x conftest$ac_exeext; then
7257 grub_cv_check_uscore_uscore_bss_start_symbol=yes
7258 else
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7262 grub_cv_check_uscore_uscore_bss_start_symbol=no
7265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7266 conftest$ac_exeext conftest.$ac_ext
7270 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
7271 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
7273 { echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
7274 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6; }
7275 if test "${grub_cv_check_edata_symbol+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278 cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h. */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7286 main ()
7288 asm ("incl edata")
7290 return 0;
7292 _ACEOF
7293 rm -f conftest.$ac_objext conftest$ac_exeext
7294 if { (ac_try="$ac_link"
7295 case "(($ac_try" in
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7298 esac
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_link") 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest$ac_exeext &&
7310 $as_test_x conftest$ac_exeext; then
7311 grub_cv_check_edata_symbol=yes
7312 else
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7316 grub_cv_check_edata_symbol=no
7319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7320 conftest$ac_exeext conftest.$ac_ext
7324 { echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
7325 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
7327 { echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
7328 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6; }
7329 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7340 main ()
7342 asm ("incl _edata")
7344 return 0;
7346 _ACEOF
7347 rm -f conftest.$ac_objext conftest$ac_exeext
7348 if { (ac_try="$ac_link"
7349 case "(($ac_try" in
7350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7352 esac
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354 (eval "$ac_link") 2>conftest.er1
7355 ac_status=$?
7356 grep -v '^ *+' conftest.er1 >conftest.err
7357 rm -f conftest.er1
7358 cat conftest.err >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest$ac_exeext &&
7364 $as_test_x conftest$ac_exeext; then
7365 grub_cv_check_uscore_edata_symbol=yes
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 grub_cv_check_uscore_edata_symbol=no
7373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7374 conftest$ac_exeext conftest.$ac_ext
7378 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
7379 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
7384 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
7385 cat >>confdefs.h <<\_ACEOF
7386 #define BSS_START_SYMBOL __bss_start
7387 _ACEOF
7389 elif test "x$grub_cv_check_edata_symbol" = xyes; then
7390 cat >>confdefs.h <<\_ACEOF
7391 #define BSS_START_SYMBOL edata
7392 _ACEOF
7394 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
7395 cat >>confdefs.h <<\_ACEOF
7396 #define BSS_START_SYMBOL _edata
7397 _ACEOF
7399 else
7400 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
7401 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
7402 { (exit 1); exit 1; }; }
7406 { echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
7407 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6; }
7408 if test "${grub_cv_check_end_symbol+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411 cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h. */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7419 main ()
7421 asm ("incl end")
7423 return 0;
7425 _ACEOF
7426 rm -f conftest.$ac_objext conftest$ac_exeext
7427 if { (ac_try="$ac_link"
7428 case "(($ac_try" in
7429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7431 esac
7432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7433 (eval "$ac_link") 2>conftest.er1
7434 ac_status=$?
7435 grep -v '^ *+' conftest.er1 >conftest.err
7436 rm -f conftest.er1
7437 cat conftest.err >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest$ac_exeext &&
7443 $as_test_x conftest$ac_exeext; then
7444 grub_cv_check_end_symbol=yes
7445 else
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 grub_cv_check_end_symbol=no
7452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7453 conftest$ac_exeext conftest.$ac_ext
7457 { echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
7458 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
7460 { echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
7461 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6; }
7462 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465 cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h. */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7473 main ()
7475 asm ("incl _end")
7477 return 0;
7479 _ACEOF
7480 rm -f conftest.$ac_objext conftest$ac_exeext
7481 if { (ac_try="$ac_link"
7482 case "(($ac_try" in
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7485 esac
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487 (eval "$ac_link") 2>conftest.er1
7488 ac_status=$?
7489 grep -v '^ *+' conftest.er1 >conftest.err
7490 rm -f conftest.er1
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest$ac_exeext &&
7497 $as_test_x conftest$ac_exeext; then
7498 grub_cv_check_uscore_end_symbol=yes
7499 else
7500 echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7503 grub_cv_check_uscore_end_symbol=no
7506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7507 conftest$ac_exeext conftest.$ac_ext
7511 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
7512 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
7517 if test "x$grub_cv_check_end_symbol" = xyes; then
7518 cat >>confdefs.h <<\_ACEOF
7519 #define END_SYMBOL end
7520 _ACEOF
7522 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
7523 cat >>confdefs.h <<\_ACEOF
7524 #define END_SYMBOL _end
7525 _ACEOF
7527 else
7528 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
7529 echo "$as_me: error: neither end nor _end is defined" >&2;}
7530 { (exit 1); exit 1; }; }
7534 CFLAGS="$TARGET_CFLAGS"
7536 { echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
7537 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6; }
7538 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541 cat > conftest.s <<\EOF
7542 .code16
7543 l1: addr32 movb %al, l1
7546 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 (eval $ac_try) 2>&5
7549 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; } && test -s conftest.o; then
7552 grub_cv_i386_asm_prefix_requirement=yes
7553 else
7554 grub_cv_i386_asm_prefix_requirement=no
7557 rm -f conftest*
7561 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7562 grub_tmp_addr32="addr32"
7563 grub_tmp_data32="data32"
7564 else
7565 grub_tmp_addr32="addr32;"
7566 grub_tmp_data32="data32;"
7570 cat >>confdefs.h <<_ACEOF
7571 #define ADDR32 $grub_tmp_addr32
7572 _ACEOF
7575 cat >>confdefs.h <<_ACEOF
7576 #define DATA32 $grub_tmp_data32
7577 _ACEOF
7580 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
7581 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6; }
7584 { echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
7585 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6; }
7586 if test "${grub_cv_i386_asm_addr32+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 cat > conftest.s.in <<\EOF
7590 .code16
7591 l1: @ADDR32@ movb %al, l1
7594 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7595 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
7596 else
7597 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
7600 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; } && test -s conftest.o; then
7606 grub_cv_i386_asm_addr32=yes
7607 else
7608 grub_cv_i386_asm_addr32=no
7611 rm -f conftest*
7615 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
7616 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6; }
7618 { echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
7619 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6; }
7620 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623 cat > conftest.s <<\EOF
7624 lcall *(offset)
7625 offset:
7626 .long 0
7627 .word 0
7630 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 (eval $ac_try) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; } && test -s conftest.o; then
7636 grub_cv_i386_asm_absolute_without_asterisk=no
7637 else
7638 grub_cv_i386_asm_absolute_without_asterisk=yes
7641 rm -f conftest*
7645 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
7647 cat >>confdefs.h <<\_ACEOF
7648 #define ABSOLUTE_WITHOUT_ASTERISK 1
7649 _ACEOF
7653 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
7654 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
7656 { echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
7657 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6; }
7658 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661 if test "$cross_compiling" = yes; then
7662 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7663 See \`config.log' for more details." >&5
7664 echo "$as_me: error: cannot run test program while cross compiling
7665 See \`config.log' for more details." >&2;}
7666 { (exit 1); exit 1; }; }
7667 else
7668 cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h. */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7675 static int
7676 test (int *n)
7678 return *n == -1;
7681 static int
7682 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
7684 int a = 0;
7685 int b = 0;
7686 int c = -1;
7687 return hook (a, b, &c);
7691 main (void)
7693 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
7695 return a == b && test (c);
7697 return testfunc (nestedfunc) ? 0 : 1;
7700 _ACEOF
7701 rm -f conftest$ac_exeext
7702 if { (ac_try="$ac_link"
7703 case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706 esac
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_link") 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7712 { (case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7715 esac
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_try") 2>&5
7718 ac_status=$?
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; }; then
7721 grub_cv_i386_check_nested_functions=no
7722 else
7723 echo "$as_me: program exited with status $ac_status" >&5
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7727 ( exit $ac_status )
7728 grub_cv_i386_check_nested_functions=yes
7730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7737 { echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5
7738 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6; }
7740 if test "x$grub_cv_i386_check_nested_functions" = xyes; then
7742 cat >>confdefs.h <<\_ACEOF
7743 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7744 _ACEOF
7746 else
7748 cat >>confdefs.h <<\_ACEOF
7749 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7750 _ACEOF
7754 else
7756 cat >>confdefs.h <<\_ACEOF
7757 #define NESTED_FUNC_ATTR
7758 _ACEOF
7762 # Restore the flags.
7763 CC="$tmp_CC"
7764 CFLAGS="$tmp_CFLAGS"
7765 CPPFLAGS="$tmp_CPPFLAGS"
7766 LDFLAGS="$tmp_LDFLAGS"
7767 LIBS="$tmp_LIBS"
7770 # Check for options.
7773 # Memory manager debugging.
7774 # Check whether --enable-mm-debug was given.
7775 if test "${enable_mm_debug+set}" = set; then
7776 enableval=$enable_mm_debug;
7777 cat >>confdefs.h <<\_ACEOF
7778 #define MM_DEBUG 1
7779 _ACEOF
7784 # Check whether --enable-grub-emu was given.
7785 if test "${enable_grub_emu+set}" = set; then
7786 enableval=$enable_grub_emu;
7789 if [ x"$enable_grub_emu" = xyes ]; then
7790 # Check for curses libraries.
7791 { echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
7792 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6; }
7793 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796 ac_check_lib_save_LIBS=$LIBS
7797 LIBS="-lncurses $LIBS"
7798 cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h. */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7805 /* Override any GCC internal prototype to avoid an error.
7806 Use char because int might match the return type of a GCC
7807 builtin and then its argument prototype would still apply. */
7808 #ifdef __cplusplus
7809 extern "C"
7810 #endif
7811 char wgetch ();
7813 main ()
7815 return wgetch ();
7817 return 0;
7819 _ACEOF
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (ac_try="$ac_link"
7822 case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_link") 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest$ac_exeext &&
7837 $as_test_x conftest$ac_exeext; then
7838 ac_cv_lib_ncurses_wgetch=yes
7839 else
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 ac_cv_lib_ncurses_wgetch=no
7846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7847 conftest$ac_exeext conftest.$ac_ext
7848 LIBS=$ac_check_lib_save_LIBS
7850 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
7851 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
7852 if test $ac_cv_lib_ncurses_wgetch = yes; then
7853 LIBCURSES="-lncurses"
7854 else
7855 { echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
7856 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6; }
7857 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860 ac_check_lib_save_LIBS=$LIBS
7861 LIBS="-lcurses $LIBS"
7862 cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h. */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7869 /* Override any GCC internal prototype to avoid an error.
7870 Use char because int might match the return type of a GCC
7871 builtin and then its argument prototype would still apply. */
7872 #ifdef __cplusplus
7873 extern "C"
7874 #endif
7875 char wgetch ();
7877 main ()
7879 return wgetch ();
7881 return 0;
7883 _ACEOF
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (ac_try="$ac_link"
7886 case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889 esac
7890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891 (eval "$ac_link") 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest$ac_exeext &&
7901 $as_test_x conftest$ac_exeext; then
7902 ac_cv_lib_curses_wgetch=yes
7903 else
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 ac_cv_lib_curses_wgetch=no
7910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7911 conftest$ac_exeext conftest.$ac_ext
7912 LIBS=$ac_check_lib_save_LIBS
7914 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
7915 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
7916 if test $ac_cv_lib_curses_wgetch = yes; then
7917 LIBCURSES="-lcurses"
7918 else
7919 { { echo "$as_me:$LINENO: error: (n)curses libraries are required to build \`grub-emu'" >&5
7920 echo "$as_me: error: (n)curses libraries are required to build \`grub-emu'" >&2;}
7921 { (exit 1); exit 1; }; }
7928 # Check for headers.
7930 for ac_header in ncurses/curses.h
7932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 ac_res=`eval echo '${'$as_ac_Header'}'`
7940 { echo "$as_me:$LINENO: result: $ac_res" >&5
7941 echo "${ECHO_T}$ac_res" >&6; }
7942 else
7943 # Is the header compilable?
7944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7946 cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h. */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7952 $ac_includes_default
7953 #include <$ac_header>
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.$ac_objext; then
7972 ac_header_compiler=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 ac_header_compiler=no
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7982 echo "${ECHO_T}$ac_header_compiler" >&6; }
7984 # Is the header present?
7985 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7987 cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h. */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 #include <$ac_header>
7994 _ACEOF
7995 if { (ac_try="$ac_cpp conftest.$ac_ext"
7996 case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999 esac
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } >/dev/null && {
8008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 }; then
8011 ac_header_preproc=yes
8012 else
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8016 ac_header_preproc=no
8019 rm -f conftest.err conftest.$ac_ext
8020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8021 echo "${ECHO_T}$ac_header_preproc" >&6; }
8023 # So? What about this header?
8024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8025 yes:no: )
8026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8030 ac_header_preproc=yes
8032 no:yes:* )
8033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8045 ( cat <<\_ASBOX
8046 ## ------------------------------- ##
8047 ## Report this to bug-grub@gnu.org ##
8048 ## ------------------------------- ##
8049 _ASBOX
8050 ) | sed "s/^/$as_me: WARNING: /" >&2
8052 esac
8053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058 eval "$as_ac_Header=\$ac_header_preproc"
8060 ac_res=`eval echo '${'$as_ac_Header'}'`
8061 { echo "$as_me:$LINENO: result: $ac_res" >&5
8062 echo "${ECHO_T}$ac_res" >&6; }
8065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8066 cat >>confdefs.h <<_ACEOF
8067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8068 _ACEOF
8070 else
8072 for ac_header in ncurses.h
8074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 ac_res=`eval echo '${'$as_ac_Header'}'`
8082 { echo "$as_me:$LINENO: result: $ac_res" >&5
8083 echo "${ECHO_T}$ac_res" >&6; }
8084 else
8085 # Is the header compilable?
8086 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8088 cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h. */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 $ac_includes_default
8095 #include <$ac_header>
8096 _ACEOF
8097 rm -f conftest.$ac_objext
8098 if { (ac_try="$ac_compile"
8099 case "(($ac_try" in
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8102 esac
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_compile") 2>conftest.er1
8105 ac_status=$?
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } && {
8111 test -z "$ac_c_werror_flag" ||
8112 test ! -s conftest.err
8113 } && test -s conftest.$ac_objext; then
8114 ac_header_compiler=yes
8115 else
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 ac_header_compiler=no
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8124 echo "${ECHO_T}$ac_header_compiler" >&6; }
8126 # Is the header present?
8127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8129 cat >conftest.$ac_ext <<_ACEOF
8130 /* confdefs.h. */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8135 #include <$ac_header>
8136 _ACEOF
8137 if { (ac_try="$ac_cpp conftest.$ac_ext"
8138 case "(($ac_try" in
8139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140 *) ac_try_echo=$ac_try;;
8141 esac
8142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8144 ac_status=$?
8145 grep -v '^ *+' conftest.er1 >conftest.err
8146 rm -f conftest.er1
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } >/dev/null && {
8150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8151 test ! -s conftest.err
8152 }; then
8153 ac_header_preproc=yes
8154 else
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8158 ac_header_preproc=no
8161 rm -f conftest.err conftest.$ac_ext
8162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8163 echo "${ECHO_T}$ac_header_preproc" >&6; }
8165 # So? What about this header?
8166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8167 yes:no: )
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8172 ac_header_preproc=yes
8174 no:yes:* )
8175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8187 ( cat <<\_ASBOX
8188 ## ------------------------------- ##
8189 ## Report this to bug-grub@gnu.org ##
8190 ## ------------------------------- ##
8191 _ASBOX
8192 ) | sed "s/^/$as_me: WARNING: /" >&2
8194 esac
8195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 else
8200 eval "$as_ac_Header=\$ac_header_preproc"
8202 ac_res=`eval echo '${'$as_ac_Header'}'`
8203 { echo "$as_me:$LINENO: result: $ac_res" >&5
8204 echo "${ECHO_T}$ac_res" >&6; }
8207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8208 cat >>confdefs.h <<_ACEOF
8209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8210 _ACEOF
8212 else
8214 for ac_header in curses.h
8216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 ac_res=`eval echo '${'$as_ac_Header'}'`
8224 { echo "$as_me:$LINENO: result: $ac_res" >&5
8225 echo "${ECHO_T}$ac_res" >&6; }
8226 else
8227 # Is the header compilable?
8228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8230 cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 $ac_includes_default
8237 #include <$ac_header>
8238 _ACEOF
8239 rm -f conftest.$ac_objext
8240 if { (ac_try="$ac_compile"
8241 case "(($ac_try" in
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8244 esac
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_compile") 2>conftest.er1
8247 ac_status=$?
8248 grep -v '^ *+' conftest.er1 >conftest.err
8249 rm -f conftest.er1
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && {
8253 test -z "$ac_c_werror_flag" ||
8254 test ! -s conftest.err
8255 } && test -s conftest.$ac_objext; then
8256 ac_header_compiler=yes
8257 else
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8261 ac_header_compiler=no
8264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8266 echo "${ECHO_T}$ac_header_compiler" >&6; }
8268 # Is the header present?
8269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h. */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 #include <$ac_header>
8278 _ACEOF
8279 if { (ac_try="$ac_cpp conftest.$ac_ext"
8280 case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8283 esac
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } >/dev/null && {
8292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8293 test ! -s conftest.err
8294 }; then
8295 ac_header_preproc=yes
8296 else
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8300 ac_header_preproc=no
8303 rm -f conftest.err conftest.$ac_ext
8304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8305 echo "${ECHO_T}$ac_header_preproc" >&6; }
8307 # So? What about this header?
8308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8309 yes:no: )
8310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8314 ac_header_preproc=yes
8316 no:yes:* )
8317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8329 ( cat <<\_ASBOX
8330 ## ------------------------------- ##
8331 ## Report this to bug-grub@gnu.org ##
8332 ## ------------------------------- ##
8333 _ASBOX
8334 ) | sed "s/^/$as_me: WARNING: /" >&2
8336 esac
8337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342 eval "$as_ac_Header=\$ac_header_preproc"
8344 ac_res=`eval echo '${'$as_ac_Header'}'`
8345 { echo "$as_me:$LINENO: result: $ac_res" >&5
8346 echo "${ECHO_T}$ac_res" >&6; }
8349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8350 cat >>confdefs.h <<_ACEOF
8351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8352 _ACEOF
8354 else
8355 { { echo "$as_me:$LINENO: error: (n)curses header files are required to build \`grub-emu'" >&5
8356 echo "$as_me: error: (n)curses header files are required to build \`grub-emu'" >&2;}
8357 { (exit 1); exit 1; }; }
8360 done
8364 done
8368 done
8373 # Check whether --enable-grub-fstest was given.
8374 if test "${enable_grub_fstest+set}" = set; then
8375 enableval=$enable_grub_fstest;
8380 # Check whether --enable-grub-pe2elf was given.
8381 if test "${enable_grub_pe2elf+set}" = set; then
8382 enableval=$enable_grub_pe2elf;
8387 # Output files.
8388 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu include/grub/machine:include/grub/$target_cpu/$platform"
8390 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
8392 ac_config_files="$ac_config_files stamp-h"
8394 cat >confcache <<\_ACEOF
8395 # This file is a shell script that caches the results of configure
8396 # tests run on this system so they can be shared between configure
8397 # scripts and configure runs, see configure's option --config-cache.
8398 # It is not useful on other systems. If it contains results you don't
8399 # want to keep, you may remove or edit it.
8401 # config.status only pays attention to the cache file if you give it
8402 # the --recheck option to rerun configure.
8404 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8405 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8406 # following values.
8408 _ACEOF
8410 # The following way of writing the cache mishandles newlines in values,
8411 # but we know of no workaround that is simple, portable, and efficient.
8412 # So, we kill variables containing newlines.
8413 # Ultrix sh set writes to stderr and can't be redirected directly,
8414 # and sets the high bit in the cache file unless we assign to the vars.
8416 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8417 eval ac_val=\$$ac_var
8418 case $ac_val in #(
8419 *${as_nl}*)
8420 case $ac_var in #(
8421 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8422 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8423 esac
8424 case $ac_var in #(
8425 _ | IFS | as_nl) ;; #(
8426 *) $as_unset $ac_var ;;
8427 esac ;;
8428 esac
8429 done
8431 (set) 2>&1 |
8432 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8433 *${as_nl}ac_space=\ *)
8434 # `set' does not quote correctly, so add quotes (double-quote
8435 # substitution turns \\\\ into \\, and sed turns \\ into \).
8436 sed -n \
8437 "s/'/'\\\\''/g;
8438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8439 ;; #(
8441 # `set' quotes correctly as required by POSIX, so do not add quotes.
8442 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8444 esac |
8445 sort
8447 sed '
8448 /^ac_cv_env_/b end
8449 t clear
8450 :clear
8451 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8452 t end
8453 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8454 :end' >>confcache
8455 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8456 if test -w "$cache_file"; then
8457 test "x$cache_file" != "x/dev/null" &&
8458 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8459 echo "$as_me: updating cache $cache_file" >&6;}
8460 cat confcache >$cache_file
8461 else
8462 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8463 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8466 rm -f confcache
8468 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8469 # Let make expand exec_prefix.
8470 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8472 DEFS=-DHAVE_CONFIG_H
8474 ac_libobjs=
8475 ac_ltlibobjs=
8476 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8477 # 1. Remove the extension, and $U if already installed.
8478 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8479 ac_i=`echo "$ac_i" | sed "$ac_script"`
8480 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8481 # will be set to the directory where LIBOBJS objects are built.
8482 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8483 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8484 done
8485 LIBOBJS=$ac_libobjs
8487 LTLIBOBJS=$ac_ltlibobjs
8491 : ${CONFIG_STATUS=./config.status}
8492 ac_clean_files_save=$ac_clean_files
8493 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8494 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8495 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8496 cat >$CONFIG_STATUS <<_ACEOF
8497 #! $SHELL
8498 # Generated by $as_me.
8499 # Run this file to recreate the current configuration.
8500 # Compiler output produced by configure, useful for debugging
8501 # configure, is in config.log if it exists.
8503 debug=false
8504 ac_cs_recheck=false
8505 ac_cs_silent=false
8506 SHELL=\${CONFIG_SHELL-$SHELL}
8507 _ACEOF
8509 cat >>$CONFIG_STATUS <<\_ACEOF
8510 ## --------------------- ##
8511 ## M4sh Initialization. ##
8512 ## --------------------- ##
8514 # Be more Bourne compatible
8515 DUALCASE=1; export DUALCASE # for MKS sh
8516 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8517 emulate sh
8518 NULLCMD=:
8519 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8520 # is contrary to our usage. Disable this feature.
8521 alias -g '${1+"$@"}'='"$@"'
8522 setopt NO_GLOB_SUBST
8523 else
8524 case `(set -o) 2>/dev/null` in
8525 *posix*) set -o posix ;;
8526 esac
8533 # PATH needs CR
8534 # Avoid depending upon Character Ranges.
8535 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8536 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8537 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8538 as_cr_digits='0123456789'
8539 as_cr_alnum=$as_cr_Letters$as_cr_digits
8541 # The user is always right.
8542 if test "${PATH_SEPARATOR+set}" != set; then
8543 echo "#! /bin/sh" >conf$$.sh
8544 echo "exit 0" >>conf$$.sh
8545 chmod +x conf$$.sh
8546 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8547 PATH_SEPARATOR=';'
8548 else
8549 PATH_SEPARATOR=:
8551 rm -f conf$$.sh
8554 # Support unset when possible.
8555 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8556 as_unset=unset
8557 else
8558 as_unset=false
8562 # IFS
8563 # We need space, tab and new line, in precisely that order. Quoting is
8564 # there to prevent editors from complaining about space-tab.
8565 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8566 # splitting by setting IFS to empty value.)
8567 as_nl='
8569 IFS=" "" $as_nl"
8571 # Find who we are. Look in the path if we contain no directory separator.
8572 case $0 in
8573 *[\\/]* ) as_myself=$0 ;;
8574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 for as_dir in $PATH
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8580 done
8581 IFS=$as_save_IFS
8584 esac
8585 # We did not find ourselves, most probably we were run as `sh COMMAND'
8586 # in which case we are not to be found in the path.
8587 if test "x$as_myself" = x; then
8588 as_myself=$0
8590 if test ! -f "$as_myself"; then
8591 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8592 { (exit 1); exit 1; }
8595 # Work around bugs in pre-3.0 UWIN ksh.
8596 for as_var in ENV MAIL MAILPATH
8597 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8598 done
8599 PS1='$ '
8600 PS2='> '
8601 PS4='+ '
8603 # NLS nuisances.
8604 for as_var in \
8605 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8606 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8607 LC_TELEPHONE LC_TIME
8609 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8610 eval $as_var=C; export $as_var
8611 else
8612 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8614 done
8616 # Required to use basename.
8617 if expr a : '\(a\)' >/dev/null 2>&1 &&
8618 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8619 as_expr=expr
8620 else
8621 as_expr=false
8624 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8625 as_basename=basename
8626 else
8627 as_basename=false
8631 # Name of the executable.
8632 as_me=`$as_basename -- "$0" ||
8633 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8634 X"$0" : 'X\(//\)$' \| \
8635 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8636 echo X/"$0" |
8637 sed '/^.*\/\([^/][^/]*\)\/*$/{
8638 s//\1/
8641 /^X\/\(\/\/\)$/{
8642 s//\1/
8645 /^X\/\(\/\).*/{
8646 s//\1/
8649 s/.*/./; q'`
8651 # CDPATH.
8652 $as_unset CDPATH
8656 as_lineno_1=$LINENO
8657 as_lineno_2=$LINENO
8658 test "x$as_lineno_1" != "x$as_lineno_2" &&
8659 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8661 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8662 # uniformly replaced by the line number. The first 'sed' inserts a
8663 # line-number line after each line using $LINENO; the second 'sed'
8664 # does the real work. The second script uses 'N' to pair each
8665 # line-number line with the line containing $LINENO, and appends
8666 # trailing '-' during substitution so that $LINENO is not a special
8667 # case at line end.
8668 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8669 # scripts with optimization help from Paolo Bonzini. Blame Lee
8670 # E. McMahon (1931-1989) for sed's syntax. :-)
8671 sed -n '
8673 /[$]LINENO/=
8674 ' <$as_myself |
8675 sed '
8676 s/[$]LINENO.*/&-/
8677 t lineno
8679 :lineno
8681 :loop
8682 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8683 t loop
8684 s/-\n.*//
8685 ' >$as_me.lineno &&
8686 chmod +x "$as_me.lineno" ||
8687 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8688 { (exit 1); exit 1; }; }
8690 # Don't try to exec as it changes $[0], causing all sort of problems
8691 # (the dirname of $[0] is not the place where we might find the
8692 # original and so on. Autoconf is especially sensitive to this).
8693 . "./$as_me.lineno"
8694 # Exit status is that of the last command.
8695 exit
8699 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8700 as_dirname=dirname
8701 else
8702 as_dirname=false
8705 ECHO_C= ECHO_N= ECHO_T=
8706 case `echo -n x` in
8707 -n*)
8708 case `echo 'x\c'` in
8709 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8710 *) ECHO_C='\c';;
8711 esac;;
8713 ECHO_N='-n';;
8714 esac
8716 if expr a : '\(a\)' >/dev/null 2>&1 &&
8717 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8718 as_expr=expr
8719 else
8720 as_expr=false
8723 rm -f conf$$ conf$$.exe conf$$.file
8724 if test -d conf$$.dir; then
8725 rm -f conf$$.dir/conf$$.file
8726 else
8727 rm -f conf$$.dir
8728 mkdir conf$$.dir
8730 echo >conf$$.file
8731 if ln -s conf$$.file conf$$ 2>/dev/null; then
8732 as_ln_s='ln -s'
8733 # ... but there are two gotchas:
8734 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8735 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8736 # In both cases, we have to default to `cp -p'.
8737 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8738 as_ln_s='cp -p'
8739 elif ln conf$$.file conf$$ 2>/dev/null; then
8740 as_ln_s=ln
8741 else
8742 as_ln_s='cp -p'
8744 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8745 rmdir conf$$.dir 2>/dev/null
8747 if mkdir -p . 2>/dev/null; then
8748 as_mkdir_p=:
8749 else
8750 test -d ./-p && rmdir ./-p
8751 as_mkdir_p=false
8754 if test -x / >/dev/null 2>&1; then
8755 as_test_x='test -x'
8756 else
8757 if ls -dL / >/dev/null 2>&1; then
8758 as_ls_L_option=L
8759 else
8760 as_ls_L_option=
8762 as_test_x='
8763 eval sh -c '\''
8764 if test -d "$1"; then
8765 test -d "$1/.";
8766 else
8767 case $1 in
8768 -*)set "./$1";;
8769 esac;
8770 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8771 ???[sx]*):;;*)false;;esac;fi
8772 '\'' sh
8775 as_executable_p=$as_test_x
8777 # Sed expression to map a string onto a valid CPP name.
8778 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8780 # Sed expression to map a string onto a valid variable name.
8781 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8784 exec 6>&1
8786 # Save the log message, to keep $[0] and so on meaningful, and to
8787 # report actual input values of CONFIG_FILES etc. instead of their
8788 # values after options handling.
8789 ac_log="
8790 This file was extended by GRUB $as_me 1.96, which was
8791 generated by GNU Autoconf 2.61. Invocation command line was
8793 CONFIG_FILES = $CONFIG_FILES
8794 CONFIG_HEADERS = $CONFIG_HEADERS
8795 CONFIG_LINKS = $CONFIG_LINKS
8796 CONFIG_COMMANDS = $CONFIG_COMMANDS
8797 $ $0 $@
8799 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8802 _ACEOF
8804 cat >>$CONFIG_STATUS <<_ACEOF
8805 # Files that config.status was made for.
8806 config_files="$ac_config_files"
8807 config_headers="$ac_config_headers"
8808 config_links="$ac_config_links"
8810 _ACEOF
8812 cat >>$CONFIG_STATUS <<\_ACEOF
8813 ac_cs_usage="\
8814 \`$as_me' instantiates files from templates according to the
8815 current configuration.
8817 Usage: $0 [OPTIONS] [FILE]...
8819 -h, --help print this help, then exit
8820 -V, --version print version number and configuration settings, then exit
8821 -q, --quiet do not print progress messages
8822 -d, --debug don't remove temporary files
8823 --recheck update $as_me by reconfiguring in the same conditions
8824 --file=FILE[:TEMPLATE]
8825 instantiate the configuration file FILE
8826 --header=FILE[:TEMPLATE]
8827 instantiate the configuration header FILE
8829 Configuration files:
8830 $config_files
8832 Configuration headers:
8833 $config_headers
8835 Configuration links:
8836 $config_links
8838 Report bugs to <bug-autoconf@gnu.org>."
8840 _ACEOF
8841 cat >>$CONFIG_STATUS <<_ACEOF
8842 ac_cs_version="\\
8843 GRUB config.status 1.96
8844 configured by $0, generated by GNU Autoconf 2.61,
8845 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8847 Copyright (C) 2006 Free Software Foundation, Inc.
8848 This config.status script is free software; the Free Software Foundation
8849 gives unlimited permission to copy, distribute and modify it."
8851 ac_pwd='$ac_pwd'
8852 srcdir='$srcdir'
8853 INSTALL='$INSTALL'
8854 _ACEOF
8856 cat >>$CONFIG_STATUS <<\_ACEOF
8857 # If no file are specified by the user, then we need to provide default
8858 # value. By we need to know if files were specified by the user.
8859 ac_need_defaults=:
8860 while test $# != 0
8862 case $1 in
8863 --*=*)
8864 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8865 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8866 ac_shift=:
8869 ac_option=$1
8870 ac_optarg=$2
8871 ac_shift=shift
8873 esac
8875 case $ac_option in
8876 # Handling of the options.
8877 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8878 ac_cs_recheck=: ;;
8879 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8880 echo "$ac_cs_version"; exit ;;
8881 --debug | --debu | --deb | --de | --d | -d )
8882 debug=: ;;
8883 --file | --fil | --fi | --f )
8884 $ac_shift
8885 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8886 ac_need_defaults=false;;
8887 --header | --heade | --head | --hea )
8888 $ac_shift
8889 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8890 ac_need_defaults=false;;
8891 --he | --h)
8892 # Conflict between --help and --header
8893 { echo "$as_me: error: ambiguous option: $1
8894 Try \`$0 --help' for more information." >&2
8895 { (exit 1); exit 1; }; };;
8896 --help | --hel | -h )
8897 echo "$ac_cs_usage"; exit ;;
8898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8899 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8900 ac_cs_silent=: ;;
8902 # This is an error.
8903 -*) { echo "$as_me: error: unrecognized option: $1
8904 Try \`$0 --help' for more information." >&2
8905 { (exit 1); exit 1; }; } ;;
8907 *) ac_config_targets="$ac_config_targets $1"
8908 ac_need_defaults=false ;;
8910 esac
8911 shift
8912 done
8914 ac_configure_extra_args=
8916 if $ac_cs_silent; then
8917 exec 6>/dev/null
8918 ac_configure_extra_args="$ac_configure_extra_args --silent"
8921 _ACEOF
8922 cat >>$CONFIG_STATUS <<_ACEOF
8923 if \$ac_cs_recheck; then
8924 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8925 CONFIG_SHELL=$SHELL
8926 export CONFIG_SHELL
8927 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8930 _ACEOF
8931 cat >>$CONFIG_STATUS <<\_ACEOF
8932 exec 5>>config.log
8934 echo
8935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8936 ## Running $as_me. ##
8937 _ASBOX
8938 echo "$ac_log"
8939 } >&5
8941 _ACEOF
8942 cat >>$CONFIG_STATUS <<_ACEOF
8943 _ACEOF
8945 cat >>$CONFIG_STATUS <<\_ACEOF
8947 # Handling of arguments.
8948 for ac_config_target in $ac_config_targets
8950 case $ac_config_target in
8951 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8952 "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
8953 "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
8954 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8955 "gensymlist.sh") CONFIG_FILES="$CONFIG_FILES gensymlist.sh" ;;
8956 "genkernsyms.sh") CONFIG_FILES="$CONFIG_FILES genkernsyms.sh" ;;
8957 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
8959 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8960 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8961 { (exit 1); exit 1; }; };;
8962 esac
8963 done
8966 # If the user did not use the arguments to specify the items to instantiate,
8967 # then the envvar interface is used. Set only those that are not.
8968 # We use the long form for the default assignment because of an extremely
8969 # bizarre bug on SunOS 4.1.3.
8970 if $ac_need_defaults; then
8971 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8972 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8973 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8976 # Have a temporary directory for convenience. Make it in the build tree
8977 # simply because there is no reason against having it here, and in addition,
8978 # creating and moving files from /tmp can sometimes cause problems.
8979 # Hook for its removal unless debugging.
8980 # Note that there is a small window in which the directory will not be cleaned:
8981 # after its creation but before its name has been assigned to `$tmp'.
8982 $debug ||
8984 tmp=
8985 trap 'exit_status=$?
8986 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8988 trap '{ (exit 1); exit 1; }' 1 2 13 15
8990 # Create a (secure) tmp directory for tmp files.
8993 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8994 test -n "$tmp" && test -d "$tmp"
8995 } ||
8997 tmp=./conf$$-$RANDOM
8998 (umask 077 && mkdir "$tmp")
8999 } ||
9001 echo "$me: cannot create a temporary directory in ." >&2
9002 { (exit 1); exit 1; }
9006 # Set up the sed scripts for CONFIG_FILES section.
9009 # No need to generate the scripts if there are no CONFIG_FILES.
9010 # This happens for instance when ./config.status config.h
9011 if test -n "$CONFIG_FILES"; then
9013 _ACEOF
9017 ac_delim='%!_!# '
9018 for ac_last_try in false false false false false :; do
9019 cat >conf$$subs.sed <<_ACEOF
9020 SHELL!$SHELL$ac_delim
9021 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9022 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9023 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9024 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9025 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9026 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9027 exec_prefix!$exec_prefix$ac_delim
9028 prefix!$prefix$ac_delim
9029 program_transform_name!$program_transform_name$ac_delim
9030 bindir!$bindir$ac_delim
9031 sbindir!$sbindir$ac_delim
9032 libexecdir!$libexecdir$ac_delim
9033 datarootdir!$datarootdir$ac_delim
9034 datadir!$datadir$ac_delim
9035 sysconfdir!$sysconfdir$ac_delim
9036 sharedstatedir!$sharedstatedir$ac_delim
9037 localstatedir!$localstatedir$ac_delim
9038 includedir!$includedir$ac_delim
9039 oldincludedir!$oldincludedir$ac_delim
9040 docdir!$docdir$ac_delim
9041 infodir!$infodir$ac_delim
9042 htmldir!$htmldir$ac_delim
9043 dvidir!$dvidir$ac_delim
9044 pdfdir!$pdfdir$ac_delim
9045 psdir!$psdir$ac_delim
9046 libdir!$libdir$ac_delim
9047 localedir!$localedir$ac_delim
9048 mandir!$mandir$ac_delim
9049 DEFS!$DEFS$ac_delim
9050 ECHO_C!$ECHO_C$ac_delim
9051 ECHO_N!$ECHO_N$ac_delim
9052 ECHO_T!$ECHO_T$ac_delim
9053 LIBS!$LIBS$ac_delim
9054 build_alias!$build_alias$ac_delim
9055 host_alias!$host_alias$ac_delim
9056 target_alias!$target_alias$ac_delim
9057 build!$build$ac_delim
9058 build_cpu!$build_cpu$ac_delim
9059 build_vendor!$build_vendor$ac_delim
9060 build_os!$build_os$ac_delim
9061 host!$host$ac_delim
9062 host_cpu!$host_cpu$ac_delim
9063 host_vendor!$host_vendor$ac_delim
9064 host_os!$host_os$ac_delim
9065 target!$target$ac_delim
9066 target_cpu!$target_cpu$ac_delim
9067 target_vendor!$target_vendor$ac_delim
9068 target_os!$target_os$ac_delim
9069 platform!$platform$ac_delim
9070 CMP!$CMP$ac_delim
9071 YACC!$YACC$ac_delim
9072 UNIFONT_HEX!$UNIFONT_HEX$ac_delim
9073 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9074 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9075 INSTALL_DATA!$INSTALL_DATA$ac_delim
9076 AWK!$AWK$ac_delim
9077 SET_MAKE!$SET_MAKE$ac_delim
9078 RUBY!$RUBY$ac_delim
9079 HELP2MAN!$HELP2MAN$ac_delim
9080 CC!$CC$ac_delim
9081 CFLAGS!$CFLAGS$ac_delim
9082 LDFLAGS!$LDFLAGS$ac_delim
9083 CPPFLAGS!$CPPFLAGS$ac_delim
9084 ac_ct_CC!$ac_ct_CC$ac_delim
9085 EXEEXT!$EXEEXT$ac_delim
9086 OBJEXT!$OBJEXT$ac_delim
9087 CPP!$CPP$ac_delim
9088 GREP!$GREP$ac_delim
9089 EGREP!$EGREP$ac_delim
9090 LIBLZO!$LIBLZO$ac_delim
9091 enable_lzo!$enable_lzo$ac_delim
9092 TARGET_IMG_LDSCRIPT!$TARGET_IMG_LDSCRIPT$ac_delim
9093 TARGET_IMG_LDFLAGS!$TARGET_IMG_LDFLAGS$ac_delim
9094 TARGET_OBJ2ELF!$TARGET_OBJ2ELF$ac_delim
9095 TARGET_CC!$TARGET_CC$ac_delim
9096 ac_ct_TARGET_CC!$ac_ct_TARGET_CC$ac_delim
9097 OBJCOPY!$OBJCOPY$ac_delim
9098 STRIP!$STRIP$ac_delim
9099 NM!$NM$ac_delim
9100 TARGET_CFLAGS!$TARGET_CFLAGS$ac_delim
9101 TARGET_CPPFLAGS!$TARGET_CPPFLAGS$ac_delim
9102 TARGET_LDFLAGS!$TARGET_LDFLAGS$ac_delim
9103 MODULE_LDFLAGS!$MODULE_LDFLAGS$ac_delim
9104 LIBCURSES!$LIBCURSES$ac_delim
9105 enable_grub_emu!$enable_grub_emu$ac_delim
9106 enable_grub_fstest!$enable_grub_fstest$ac_delim
9107 enable_grub_pe2elf!$enable_grub_pe2elf$ac_delim
9108 LIBOBJS!$LIBOBJS$ac_delim
9109 LTLIBOBJS!$LTLIBOBJS$ac_delim
9110 _ACEOF
9112 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
9113 break
9114 elif $ac_last_try; then
9115 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9116 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9117 { (exit 1); exit 1; }; }
9118 else
9119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9121 done
9123 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9124 if test -n "$ac_eof"; then
9125 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9126 ac_eof=`expr $ac_eof + 1`
9129 cat >>$CONFIG_STATUS <<_ACEOF
9130 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9131 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9132 _ACEOF
9133 sed '
9134 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9135 s/^/s,@/; s/!/@,|#_!!_#|/
9138 s/'"$ac_delim"'$/,g/; t
9139 s/$/\\/; p
9140 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9141 ' >>$CONFIG_STATUS <conf$$subs.sed
9142 rm -f conf$$subs.sed
9143 cat >>$CONFIG_STATUS <<_ACEOF
9144 :end
9145 s/|#_!!_#|//g
9146 CEOF$ac_eof
9147 _ACEOF
9150 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9151 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9152 # trailing colons and then remove the whole line if VPATH becomes empty
9153 # (actually we leave an empty line to preserve line numbers).
9154 if test "x$srcdir" = x.; then
9155 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9156 s/:*\$(srcdir):*/:/
9157 s/:*\${srcdir}:*/:/
9158 s/:*@srcdir@:*/:/
9159 s/^\([^=]*=[ ]*\):*/\1/
9160 s/:*$//
9161 s/^[^=]*=[ ]*$//
9165 cat >>$CONFIG_STATUS <<\_ACEOF
9166 fi # test -n "$CONFIG_FILES"
9169 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS
9171 case $ac_tag in
9172 :[FHLC]) ac_mode=$ac_tag; continue;;
9173 esac
9174 case $ac_mode$ac_tag in
9175 :[FHL]*:*);;
9176 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9177 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9178 { (exit 1); exit 1; }; };;
9179 :[FH]-) ac_tag=-:-;;
9180 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9181 esac
9182 ac_save_IFS=$IFS
9183 IFS=:
9184 set x $ac_tag
9185 IFS=$ac_save_IFS
9186 shift
9187 ac_file=$1
9188 shift
9190 case $ac_mode in
9191 :L) ac_source=$1;;
9192 :[FH])
9193 ac_file_inputs=
9194 for ac_f
9196 case $ac_f in
9197 -) ac_f="$tmp/stdin";;
9198 *) # Look for the file first in the build tree, then in the source tree
9199 # (if the path is not absolute). The absolute path cannot be DOS-style,
9200 # because $ac_f cannot contain `:'.
9201 test -f "$ac_f" ||
9202 case $ac_f in
9203 [\\/$]*) false;;
9204 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9205 esac ||
9206 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9207 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9208 { (exit 1); exit 1; }; };;
9209 esac
9210 ac_file_inputs="$ac_file_inputs $ac_f"
9211 done
9213 # Let's still pretend it is `configure' which instantiates (i.e., don't
9214 # use $as_me), people would be surprised to read:
9215 # /* config.h. Generated by config.status. */
9216 configure_input="Generated from "`IFS=:
9217 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9218 if test x"$ac_file" != x-; then
9219 configure_input="$ac_file. $configure_input"
9220 { echo "$as_me:$LINENO: creating $ac_file" >&5
9221 echo "$as_me: creating $ac_file" >&6;}
9224 case $ac_tag in
9225 *:-:* | *:-) cat >"$tmp/stdin";;
9226 esac
9228 esac
9230 ac_dir=`$as_dirname -- "$ac_file" ||
9231 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9232 X"$ac_file" : 'X\(//\)[^/]' \| \
9233 X"$ac_file" : 'X\(//\)$' \| \
9234 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9235 echo X"$ac_file" |
9236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9237 s//\1/
9240 /^X\(\/\/\)[^/].*/{
9241 s//\1/
9244 /^X\(\/\/\)$/{
9245 s//\1/
9248 /^X\(\/\).*/{
9249 s//\1/
9252 s/.*/./; q'`
9253 { as_dir="$ac_dir"
9254 case $as_dir in #(
9255 -*) as_dir=./$as_dir;;
9256 esac
9257 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9258 as_dirs=
9259 while :; do
9260 case $as_dir in #(
9261 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9262 *) as_qdir=$as_dir;;
9263 esac
9264 as_dirs="'$as_qdir' $as_dirs"
9265 as_dir=`$as_dirname -- "$as_dir" ||
9266 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9267 X"$as_dir" : 'X\(//\)[^/]' \| \
9268 X"$as_dir" : 'X\(//\)$' \| \
9269 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9270 echo X"$as_dir" |
9271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9272 s//\1/
9275 /^X\(\/\/\)[^/].*/{
9276 s//\1/
9279 /^X\(\/\/\)$/{
9280 s//\1/
9283 /^X\(\/\).*/{
9284 s//\1/
9287 s/.*/./; q'`
9288 test -d "$as_dir" && break
9289 done
9290 test -z "$as_dirs" || eval "mkdir $as_dirs"
9291 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9292 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9293 { (exit 1); exit 1; }; }; }
9294 ac_builddir=.
9296 case "$ac_dir" in
9297 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9299 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9300 # A ".." for each directory in $ac_dir_suffix.
9301 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9302 case $ac_top_builddir_sub in
9303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9305 esac ;;
9306 esac
9307 ac_abs_top_builddir=$ac_pwd
9308 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9309 # for backward compatibility:
9310 ac_top_builddir=$ac_top_build_prefix
9312 case $srcdir in
9313 .) # We are building in place.
9314 ac_srcdir=.
9315 ac_top_srcdir=$ac_top_builddir_sub
9316 ac_abs_top_srcdir=$ac_pwd ;;
9317 [\\/]* | ?:[\\/]* ) # Absolute name.
9318 ac_srcdir=$srcdir$ac_dir_suffix;
9319 ac_top_srcdir=$srcdir
9320 ac_abs_top_srcdir=$srcdir ;;
9321 *) # Relative name.
9322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9323 ac_top_srcdir=$ac_top_build_prefix$srcdir
9324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9325 esac
9326 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9329 case $ac_mode in
9332 # CONFIG_FILE
9335 case $INSTALL in
9336 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9337 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9338 esac
9339 _ACEOF
9341 cat >>$CONFIG_STATUS <<\_ACEOF
9342 # If the template does not know about datarootdir, expand it.
9343 # FIXME: This hack should be removed a few years after 2.60.
9344 ac_datarootdir_hack=; ac_datarootdir_seen=
9346 case `sed -n '/datarootdir/ {
9350 /@datadir@/p
9351 /@docdir@/p
9352 /@infodir@/p
9353 /@localedir@/p
9354 /@mandir@/p
9355 ' $ac_file_inputs` in
9356 *datarootdir*) ac_datarootdir_seen=yes;;
9357 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9358 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9359 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9360 _ACEOF
9361 cat >>$CONFIG_STATUS <<_ACEOF
9362 ac_datarootdir_hack='
9363 s&@datadir@&$datadir&g
9364 s&@docdir@&$docdir&g
9365 s&@infodir@&$infodir&g
9366 s&@localedir@&$localedir&g
9367 s&@mandir@&$mandir&g
9368 s&\\\${datarootdir}&$datarootdir&g' ;;
9369 esac
9370 _ACEOF
9372 # Neutralize VPATH when `$srcdir' = `.'.
9373 # Shell code in configure.ac might set extrasub.
9374 # FIXME: do we really want to maintain this feature?
9375 cat >>$CONFIG_STATUS <<_ACEOF
9376 sed "$ac_vpsub
9377 $extrasub
9378 _ACEOF
9379 cat >>$CONFIG_STATUS <<\_ACEOF
9381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9382 s&@configure_input@&$configure_input&;t t
9383 s&@top_builddir@&$ac_top_builddir_sub&;t t
9384 s&@srcdir@&$ac_srcdir&;t t
9385 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9386 s&@top_srcdir@&$ac_top_srcdir&;t t
9387 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9388 s&@builddir@&$ac_builddir&;t t
9389 s&@abs_builddir@&$ac_abs_builddir&;t t
9390 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9391 s&@INSTALL@&$ac_INSTALL&;t t
9392 $ac_datarootdir_hack
9393 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
9395 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9396 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9397 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9398 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9399 which seems to be undefined. Please make sure it is defined." >&5
9400 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9401 which seems to be undefined. Please make sure it is defined." >&2;}
9403 rm -f "$tmp/stdin"
9404 case $ac_file in
9405 -) cat "$tmp/out"; rm -f "$tmp/out";;
9406 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9407 esac
9411 # CONFIG_HEADER
9413 _ACEOF
9415 # Transform confdefs.h into a sed script `conftest.defines', that
9416 # substitutes the proper values into config.h.in to produce config.h.
9417 rm -f conftest.defines conftest.tail
9418 # First, append a space to every undef/define line, to ease matching.
9419 echo 's/$/ /' >conftest.defines
9420 # Then, protect against being on the right side of a sed subst, or in
9421 # an unquoted here document, in config.status. If some macros were
9422 # called several times there might be several #defines for the same
9423 # symbol, which is useless. But do not sort them, since the last
9424 # AC_DEFINE must be honored.
9425 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9426 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9427 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9428 # PARAMS is the parameter list in the macro definition--in most cases, it's
9429 # just an empty string.
9430 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9431 ac_dB='\\)[ (].*,\\1define\\2'
9432 ac_dC=' '
9433 ac_dD=' ,'
9435 uniq confdefs.h |
9436 sed -n '
9437 t rset
9438 :rset
9439 s/^[ ]*#[ ]*define[ ][ ]*//
9440 t ok
9443 s/[\\&,]/\\&/g
9444 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9445 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9446 ' >>conftest.defines
9448 # Remove the space that was appended to ease matching.
9449 # Then replace #undef with comments. This is necessary, for
9450 # example, in the case of _POSIX_SOURCE, which is predefined and required
9451 # on some systems where configure will not decide to define it.
9452 # (The regexp can be short, since the line contains either #define or #undef.)
9453 echo 's/ $//
9454 s,^[ #]*u.*,/* & */,' >>conftest.defines
9456 # Break up conftest.defines:
9457 ac_max_sed_lines=50
9459 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9460 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9461 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9462 # et cetera.
9463 ac_in='$ac_file_inputs'
9464 ac_out='"$tmp/out1"'
9465 ac_nxt='"$tmp/out2"'
9467 while :
9469 # Write a here document:
9470 cat >>$CONFIG_STATUS <<_ACEOF
9471 # First, check the format of the line:
9472 cat >"\$tmp/defines.sed" <<\\CEOF
9473 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9474 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9476 :def
9477 _ACEOF
9478 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9479 echo 'CEOF
9480 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9481 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9482 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9483 grep . conftest.tail >/dev/null || break
9484 rm -f conftest.defines
9485 mv conftest.tail conftest.defines
9486 done
9487 rm -f conftest.defines conftest.tail
9489 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9490 cat >>$CONFIG_STATUS <<\_ACEOF
9491 if test x"$ac_file" != x-; then
9492 echo "/* $configure_input */" >"$tmp/config.h"
9493 cat "$ac_result" >>"$tmp/config.h"
9494 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9495 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9496 echo "$as_me: $ac_file is unchanged" >&6;}
9497 else
9498 rm -f $ac_file
9499 mv "$tmp/config.h" $ac_file
9501 else
9502 echo "/* $configure_input */"
9503 cat "$ac_result"
9505 rm -f "$tmp/out12"
9509 # CONFIG_LINK
9512 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
9513 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
9515 if test ! -r "$srcdir/$ac_source"; then
9516 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9517 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9518 { (exit 1); exit 1; }; }
9520 rm -f "$ac_file"
9522 # Try a relative symlink, then a hard link, then a copy.
9523 case $srcdir in
9524 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9525 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
9526 esac
9527 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
9528 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
9529 cp -p "$srcdir/$ac_source" "$ac_file" ||
9530 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
9531 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
9532 { (exit 1); exit 1; }; }
9535 esac
9538 case $ac_file$ac_mode in
9539 "stamp-h":F) echo timestamp > stamp-h ;;
9541 esac
9542 done # for ac_tag
9545 { (exit 0); exit 0; }
9546 _ACEOF
9547 chmod +x $CONFIG_STATUS
9548 ac_clean_files=$ac_clean_files_save
9551 # configure is writing to config.log, and then calls config.status.
9552 # config.status does its own redirection, appending to config.log.
9553 # Unfortunately, on DOS this fails, as config.log is still kept open
9554 # by configure, so config.status won't be able to write to it; its
9555 # output is simply discarded. So we exec the FD to /dev/null,
9556 # effectively closing config.log, so it can be properly (re)opened and
9557 # appended to by config.status. When coming back to configure, we
9558 # need to make the FD available again.
9559 if test "$no_create" != yes; then
9560 ac_cs_success=:
9561 ac_config_status_args=
9562 test "$silent" = yes &&
9563 ac_config_status_args="$ac_config_status_args --quiet"
9564 exec 5>/dev/null
9565 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9566 exec 5>>config.log
9567 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9568 # would make configure fail if this is the last instruction.
9569 $ac_cs_success || { (exit 1); exit 1; }