2009-02-10 Felix Zielcke <fzielcke@z-51.de>
[grub2/phcoder.git] / configure
blobc82ee244d1e1bc9bc6883a161c489ea22dcf7253
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_BDF
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 LIBUSB
704 enable_grub_emu
705 enable_grub_emu_usb
706 enable_grub_fstest
707 enable_grub_pe2elf
708 FREETYPE
709 enable_grub_mkfont
710 freetype_cflags
711 freetype_libs
712 LIBOBJS
713 LTLIBOBJS'
714 ac_subst_files=''
715 ac_precious_vars='build_alias
716 host_alias
717 target_alias
719 CFLAGS
720 LDFLAGS
721 LIBS
722 CPPFLAGS
723 CPP'
726 # Initialize some variables set by options.
727 ac_init_help=
728 ac_init_version=false
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
731 cache_file=/dev/null
732 exec_prefix=NONE
733 no_create=
734 no_recursion=
735 prefix=NONE
736 program_prefix=NONE
737 program_suffix=NONE
738 program_transform_name=s,x,x,
739 silent=
740 site=
741 srcdir=
742 verbose=
743 x_includes=NONE
744 x_libraries=NONE
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir='${exec_prefix}/bin'
753 sbindir='${exec_prefix}/sbin'
754 libexecdir='${exec_prefix}/libexec'
755 datarootdir='${prefix}/share'
756 datadir='${datarootdir}'
757 sysconfdir='${prefix}/etc'
758 sharedstatedir='${prefix}/com'
759 localstatedir='${prefix}/var'
760 includedir='${prefix}/include'
761 oldincludedir='/usr/include'
762 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
763 infodir='${datarootdir}/info'
764 htmldir='${docdir}'
765 dvidir='${docdir}'
766 pdfdir='${docdir}'
767 psdir='${docdir}'
768 libdir='${exec_prefix}/lib'
769 localedir='${datarootdir}/locale'
770 mandir='${datarootdir}/man'
772 ac_prev=
773 ac_dashdash=
774 for ac_option
776 # If the previous option needs an argument, assign it.
777 if test -n "$ac_prev"; then
778 eval $ac_prev=\$ac_option
779 ac_prev=
780 continue
783 case $ac_option in
784 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
785 *) ac_optarg=yes ;;
786 esac
788 # Accept the important Cygnus configure options, so we can diagnose typos.
790 case $ac_dashdash$ac_option in
792 ac_dashdash=yes ;;
794 -bindir | --bindir | --bindi | --bind | --bin | --bi)
795 ac_prev=bindir ;;
796 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797 bindir=$ac_optarg ;;
799 -build | --build | --buil | --bui | --bu)
800 ac_prev=build_alias ;;
801 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802 build_alias=$ac_optarg ;;
804 -cache-file | --cache-file | --cache-fil | --cache-fi \
805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806 ac_prev=cache_file ;;
807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809 cache_file=$ac_optarg ;;
811 --config-cache | -C)
812 cache_file=config.cache ;;
814 -datadir | --datadir | --datadi | --datad)
815 ac_prev=datadir ;;
816 -datadir=* | --datadir=* | --datadi=* | --datad=*)
817 datadir=$ac_optarg ;;
819 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820 | --dataroo | --dataro | --datar)
821 ac_prev=datarootdir ;;
822 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824 datarootdir=$ac_optarg ;;
826 -disable-* | --disable-*)
827 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
830 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
831 { (exit 1); exit 1; }; }
832 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
833 eval enable_$ac_feature=no ;;
835 -docdir | --docdir | --docdi | --doc | --do)
836 ac_prev=docdir ;;
837 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
838 docdir=$ac_optarg ;;
840 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
841 ac_prev=dvidir ;;
842 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
843 dvidir=$ac_optarg ;;
845 -enable-* | --enable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=\$ac_optarg ;;
854 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
855 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
856 | --exec | --exe | --ex)
857 ac_prev=exec_prefix ;;
858 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
859 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
860 | --exec=* | --exe=* | --ex=*)
861 exec_prefix=$ac_optarg ;;
863 -gas | --gas | --ga | --g)
864 # Obsolete; use --with-gas.
865 with_gas=yes ;;
867 -help | --help | --hel | --he | -h)
868 ac_init_help=long ;;
869 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
870 ac_init_help=recursive ;;
871 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
872 ac_init_help=short ;;
874 -host | --host | --hos | --ho)
875 ac_prev=host_alias ;;
876 -host=* | --host=* | --hos=* | --ho=*)
877 host_alias=$ac_optarg ;;
879 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
880 ac_prev=htmldir ;;
881 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
882 | --ht=*)
883 htmldir=$ac_optarg ;;
885 -includedir | --includedir | --includedi | --included | --include \
886 | --includ | --inclu | --incl | --inc)
887 ac_prev=includedir ;;
888 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
889 | --includ=* | --inclu=* | --incl=* | --inc=*)
890 includedir=$ac_optarg ;;
892 -infodir | --infodir | --infodi | --infod | --info | --inf)
893 ac_prev=infodir ;;
894 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
895 infodir=$ac_optarg ;;
897 -libdir | --libdir | --libdi | --libd)
898 ac_prev=libdir ;;
899 -libdir=* | --libdir=* | --libdi=* | --libd=*)
900 libdir=$ac_optarg ;;
902 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
903 | --libexe | --libex | --libe)
904 ac_prev=libexecdir ;;
905 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
906 | --libexe=* | --libex=* | --libe=*)
907 libexecdir=$ac_optarg ;;
909 -localedir | --localedir | --localedi | --localed | --locale)
910 ac_prev=localedir ;;
911 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
912 localedir=$ac_optarg ;;
914 -localstatedir | --localstatedir | --localstatedi | --localstated \
915 | --localstate | --localstat | --localsta | --localst | --locals)
916 ac_prev=localstatedir ;;
917 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
918 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
919 localstatedir=$ac_optarg ;;
921 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
922 ac_prev=mandir ;;
923 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
924 mandir=$ac_optarg ;;
926 -nfp | --nfp | --nf)
927 # Obsolete; use --without-fp.
928 with_fp=no ;;
930 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
931 | --no-cr | --no-c | -n)
932 no_create=yes ;;
934 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936 no_recursion=yes ;;
938 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
939 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
940 | --oldin | --oldi | --old | --ol | --o)
941 ac_prev=oldincludedir ;;
942 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
943 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
944 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
945 oldincludedir=$ac_optarg ;;
947 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
948 ac_prev=prefix ;;
949 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950 prefix=$ac_optarg ;;
952 -program-prefix | --program-prefix | --program-prefi | --program-pref \
953 | --program-pre | --program-pr | --program-p)
954 ac_prev=program_prefix ;;
955 -program-prefix=* | --program-prefix=* | --program-prefi=* \
956 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
957 program_prefix=$ac_optarg ;;
959 -program-suffix | --program-suffix | --program-suffi | --program-suff \
960 | --program-suf | --program-su | --program-s)
961 ac_prev=program_suffix ;;
962 -program-suffix=* | --program-suffix=* | --program-suffi=* \
963 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
964 program_suffix=$ac_optarg ;;
966 -program-transform-name | --program-transform-name \
967 | --program-transform-nam | --program-transform-na \
968 | --program-transform-n | --program-transform- \
969 | --program-transform | --program-transfor \
970 | --program-transfo | --program-transf \
971 | --program-trans | --program-tran \
972 | --progr-tra | --program-tr | --program-t)
973 ac_prev=program_transform_name ;;
974 -program-transform-name=* | --program-transform-name=* \
975 | --program-transform-nam=* | --program-transform-na=* \
976 | --program-transform-n=* | --program-transform-=* \
977 | --program-transform=* | --program-transfor=* \
978 | --program-transfo=* | --program-transf=* \
979 | --program-trans=* | --program-tran=* \
980 | --progr-tra=* | --program-tr=* | --program-t=*)
981 program_transform_name=$ac_optarg ;;
983 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
984 ac_prev=pdfdir ;;
985 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986 pdfdir=$ac_optarg ;;
988 -psdir | --psdir | --psdi | --psd | --ps)
989 ac_prev=psdir ;;
990 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991 psdir=$ac_optarg ;;
993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994 | -silent | --silent | --silen | --sile | --sil)
995 silent=yes ;;
997 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
998 ac_prev=sbindir ;;
999 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1000 | --sbi=* | --sb=*)
1001 sbindir=$ac_optarg ;;
1003 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1004 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1005 | --sharedst | --shareds | --shared | --share | --shar \
1006 | --sha | --sh)
1007 ac_prev=sharedstatedir ;;
1008 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1009 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1010 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1011 | --sha=* | --sh=*)
1012 sharedstatedir=$ac_optarg ;;
1014 -site | --site | --sit)
1015 ac_prev=site ;;
1016 -site=* | --site=* | --sit=*)
1017 site=$ac_optarg ;;
1019 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1020 ac_prev=srcdir ;;
1021 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1022 srcdir=$ac_optarg ;;
1024 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1025 | --syscon | --sysco | --sysc | --sys | --sy)
1026 ac_prev=sysconfdir ;;
1027 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1028 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1029 sysconfdir=$ac_optarg ;;
1031 -target | --target | --targe | --targ | --tar | --ta | --t)
1032 ac_prev=target_alias ;;
1033 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1034 target_alias=$ac_optarg ;;
1036 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037 verbose=yes ;;
1039 -version | --version | --versio | --versi | --vers | -V)
1040 ac_init_version=: ;;
1042 -with-* | --with-*)
1043 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1049 eval with_$ac_package=\$ac_optarg ;;
1051 -without-* | --without-*)
1052 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid package name: $ac_package" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058 eval with_$ac_package=no ;;
1060 --x)
1061 # Obsolete; use --with-x.
1062 with_x=yes ;;
1064 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065 | --x-incl | --x-inc | --x-in | --x-i)
1066 ac_prev=x_includes ;;
1067 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069 x_includes=$ac_optarg ;;
1071 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073 ac_prev=x_libraries ;;
1074 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076 x_libraries=$ac_optarg ;;
1078 -*) { echo "$as_me: error: unrecognized option: $ac_option
1079 Try \`$0 --help' for more information." >&2
1080 { (exit 1); exit 1; }; }
1083 *=*)
1084 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1087 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1088 { (exit 1); exit 1; }; }
1089 eval $ac_envvar=\$ac_optarg
1090 export $ac_envvar ;;
1093 # FIXME: should be removed in autoconf 3.0.
1094 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1100 esac
1101 done
1103 if test -n "$ac_prev"; then
1104 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105 { echo "$as_me: error: missing argument to $ac_option" >&2
1106 { (exit 1); exit 1; }; }
1109 # Be sure to have absolute directory names.
1110 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1111 datadir sysconfdir sharedstatedir localstatedir includedir \
1112 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1113 libdir localedir mandir
1115 eval ac_val=\$$ac_var
1116 case $ac_val in
1117 [\\/$]* | ?:[\\/]* ) continue;;
1118 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1119 esac
1120 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1121 { (exit 1); exit 1; }; }
1122 done
1124 # There might be people who depend on the old broken behavior: `$host'
1125 # used to hold the argument of --host etc.
1126 # FIXME: To remove some day.
1127 build=$build_alias
1128 host=$host_alias
1129 target=$target_alias
1131 # FIXME: To remove some day.
1132 if test "x$host_alias" != x; then
1133 if test "x$build_alias" = x; then
1134 cross_compiling=maybe
1135 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1136 If a cross compiler is detected then cross compile mode will be used." >&2
1137 elif test "x$build_alias" != "x$host_alias"; then
1138 cross_compiling=yes
1142 ac_tool_prefix=
1143 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1145 test "$silent" = yes && exec 6>/dev/null
1148 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1149 ac_ls_di=`ls -di .` &&
1150 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1151 { echo "$as_me: error: Working directory cannot be determined" >&2
1152 { (exit 1); exit 1; }; }
1153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1154 { echo "$as_me: error: pwd does not report name of working directory" >&2
1155 { (exit 1); exit 1; }; }
1158 # Find the source files, if location was not specified.
1159 if test -z "$srcdir"; then
1160 ac_srcdir_defaulted=yes
1161 # Try the directory containing this script, then the parent directory.
1162 ac_confdir=`$as_dirname -- "$0" ||
1163 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164 X"$0" : 'X\(//\)[^/]' \| \
1165 X"$0" : 'X\(//\)$' \| \
1166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1167 echo X"$0" |
1168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1169 s//\1/
1172 /^X\(\/\/\)[^/].*/{
1173 s//\1/
1176 /^X\(\/\/\)$/{
1177 s//\1/
1180 /^X\(\/\).*/{
1181 s//\1/
1184 s/.*/./; q'`
1185 srcdir=$ac_confdir
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 srcdir=..
1189 else
1190 ac_srcdir_defaulted=no
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1194 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1195 { (exit 1); exit 1; }; }
1197 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1198 ac_abs_confdir=`(
1199 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1200 { (exit 1); exit 1; }; }
1201 pwd)`
1202 # When building in place, set srcdir=.
1203 if test "$ac_abs_confdir" = "$ac_pwd"; then
1204 srcdir=.
1206 # Remove unnecessary trailing slashes from srcdir.
1207 # Double slashes in file names in object file debugging info
1208 # mess up M-x gdb in Emacs.
1209 case $srcdir in
1210 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1211 esac
1212 for ac_var in $ac_precious_vars; do
1213 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_env_${ac_var}_value=\$${ac_var}
1215 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1216 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1217 done
1220 # Report the --help message.
1222 if test "$ac_init_help" = "long"; then
1223 # Omit some internal or obsolete options to make the list less imposing.
1224 # This message is too long to be a string in the A/UX 3.1 sh.
1225 cat <<_ACEOF
1226 \`configure' configures GRUB 1.96 to adapt to many kinds of systems.
1228 Usage: $0 [OPTION]... [VAR=VALUE]...
1230 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1231 VAR=VALUE. See below for descriptions of some of the useful variables.
1233 Defaults for the options are specified in brackets.
1235 Configuration:
1236 -h, --help display this help and exit
1237 --help=short display options specific to this package
1238 --help=recursive display the short help of all the included packages
1239 -V, --version display version information and exit
1240 -q, --quiet, --silent do not print \`checking...' messages
1241 --cache-file=FILE cache test results in FILE [disabled]
1242 -C, --config-cache alias for \`--cache-file=config.cache'
1243 -n, --no-create do not create output files
1244 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1246 Installation directories:
1247 --prefix=PREFIX install architecture-independent files in PREFIX
1248 [$ac_default_prefix]
1249 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1250 [PREFIX]
1252 By default, \`make install' will install all the files in
1253 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1254 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1255 for instance \`--prefix=\$HOME'.
1257 For better control, use the options below.
1259 Fine tuning of the installation directories:
1260 --bindir=DIR user executables [EPREFIX/bin]
1261 --sbindir=DIR system admin executables [EPREFIX/sbin]
1262 --libexecdir=DIR program executables [EPREFIX/libexec]
1263 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1264 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1265 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1266 --libdir=DIR object code libraries [EPREFIX/lib]
1267 --includedir=DIR C header files [PREFIX/include]
1268 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1269 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1270 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1271 --infodir=DIR info documentation [DATAROOTDIR/info]
1272 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1273 --mandir=DIR man documentation [DATAROOTDIR/man]
1274 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1275 --htmldir=DIR html documentation [DOCDIR]
1276 --dvidir=DIR dvi documentation [DOCDIR]
1277 --pdfdir=DIR pdf documentation [DOCDIR]
1278 --psdir=DIR ps documentation [DOCDIR]
1279 _ACEOF
1281 cat <<\_ACEOF
1283 Program names:
1284 --program-prefix=PREFIX prepend PREFIX to installed program names
1285 --program-suffix=SUFFIX append SUFFIX to installed program names
1286 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1288 System types:
1289 --build=BUILD configure for building on BUILD [guessed]
1290 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1291 --target=TARGET configure for building compilers for TARGET [HOST]
1292 _ACEOF
1295 if test -n "$ac_init_help"; then
1296 case $ac_init_help in
1297 short | recursive ) echo "Configuration of GRUB 1.96:";;
1298 esac
1299 cat <<\_ACEOF
1301 Optional Features:
1302 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1303 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1304 --disable-largefile omit support for large files
1305 --enable-lzo use lzo to compress kernel (default is lzma)
1306 --enable-mm-debug include memory manager debugging
1307 --enable-grub-emu build and install the `grub-emu' debugging utility
1308 --enable-grub-emu-usb build and install the `grub-emu' debugging utility
1309 with USB support
1310 --enable-grub-fstest build and install the `grub-fstest' debugging
1311 utility
1312 --enable-grub-pe2elf build and install the `grub-pe2elf' conversion
1313 utility
1314 --enable-grub-mkfont build and install the `grub-mkfont' utility
1316 Optional Packages:
1317 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1318 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1319 --with-platform=PLATFORM
1320 select the host platform [guessed]
1322 Some influential environment variables:
1323 CC C compiler command
1324 CFLAGS C compiler flags
1325 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1326 nonstandard directory <lib dir>
1327 LIBS libraries to pass to the linker, e.g. -l<library>
1328 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1329 you have headers in a nonstandard directory <include dir>
1330 CPP C preprocessor
1332 Use these variables to override the choices made by `configure' or to help
1333 it to find libraries and programs with nonstandard names/locations.
1335 Report bugs to <bug-grub@gnu.org>.
1336 _ACEOF
1337 ac_status=$?
1340 if test "$ac_init_help" = "recursive"; then
1341 # If there are subdirs, report their specific --help.
1342 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1343 test -d "$ac_dir" || continue
1344 ac_builddir=.
1346 case "$ac_dir" in
1347 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1349 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1350 # A ".." for each directory in $ac_dir_suffix.
1351 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1352 case $ac_top_builddir_sub in
1353 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1354 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1355 esac ;;
1356 esac
1357 ac_abs_top_builddir=$ac_pwd
1358 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1359 # for backward compatibility:
1360 ac_top_builddir=$ac_top_build_prefix
1362 case $srcdir in
1363 .) # We are building in place.
1364 ac_srcdir=.
1365 ac_top_srcdir=$ac_top_builddir_sub
1366 ac_abs_top_srcdir=$ac_pwd ;;
1367 [\\/]* | ?:[\\/]* ) # Absolute name.
1368 ac_srcdir=$srcdir$ac_dir_suffix;
1369 ac_top_srcdir=$srcdir
1370 ac_abs_top_srcdir=$srcdir ;;
1371 *) # Relative name.
1372 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1373 ac_top_srcdir=$ac_top_build_prefix$srcdir
1374 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1375 esac
1376 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1378 cd "$ac_dir" || { ac_status=$?; continue; }
1379 # Check for guested configure.
1380 if test -f "$ac_srcdir/configure.gnu"; then
1381 echo &&
1382 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1383 elif test -f "$ac_srcdir/configure"; then
1384 echo &&
1385 $SHELL "$ac_srcdir/configure" --help=recursive
1386 else
1387 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1388 fi || ac_status=$?
1389 cd "$ac_pwd" || { ac_status=$?; break; }
1390 done
1393 test -n "$ac_init_help" && exit $ac_status
1394 if $ac_init_version; then
1395 cat <<\_ACEOF
1396 GRUB configure 1.96
1397 generated by GNU Autoconf 2.61
1399 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1400 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1401 This configure script is free software; the Free Software Foundation
1402 gives unlimited permission to copy, distribute and modify it.
1403 _ACEOF
1404 exit
1406 cat >config.log <<_ACEOF
1407 This file contains any messages produced by compilers while
1408 running configure, to aid debugging if configure makes a mistake.
1410 It was created by GRUB $as_me 1.96, which was
1411 generated by GNU Autoconf 2.61. Invocation command line was
1413 $ $0 $@
1415 _ACEOF
1416 exec 5>>config.log
1418 cat <<_ASUNAME
1419 ## --------- ##
1420 ## Platform. ##
1421 ## --------- ##
1423 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1424 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1425 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1426 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1427 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1429 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1430 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1432 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1433 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1434 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1435 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1436 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1437 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1438 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1440 _ASUNAME
1442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1443 for as_dir in $PATH
1445 IFS=$as_save_IFS
1446 test -z "$as_dir" && as_dir=.
1447 echo "PATH: $as_dir"
1448 done
1449 IFS=$as_save_IFS
1451 } >&5
1453 cat >&5 <<_ACEOF
1456 ## ----------- ##
1457 ## Core tests. ##
1458 ## ----------- ##
1460 _ACEOF
1463 # Keep a trace of the command line.
1464 # Strip out --no-create and --no-recursion so they do not pile up.
1465 # Strip out --silent because we don't want to record it for future runs.
1466 # Also quote any args containing shell meta-characters.
1467 # Make two passes to allow for proper duplicate-argument suppression.
1468 ac_configure_args=
1469 ac_configure_args0=
1470 ac_configure_args1=
1471 ac_must_keep_next=false
1472 for ac_pass in 1 2
1474 for ac_arg
1476 case $ac_arg in
1477 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1479 | -silent | --silent | --silen | --sile | --sil)
1480 continue ;;
1481 *\'*)
1482 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 esac
1484 case $ac_pass in
1485 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1487 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1488 if test $ac_must_keep_next = true; then
1489 ac_must_keep_next=false # Got value, back to normal.
1490 else
1491 case $ac_arg in
1492 *=* | --config-cache | -C | -disable-* | --disable-* \
1493 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1494 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1495 | -with-* | --with-* | -without-* | --without-* | --x)
1496 case "$ac_configure_args0 " in
1497 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1498 esac
1500 -* ) ac_must_keep_next=true ;;
1501 esac
1503 ac_configure_args="$ac_configure_args '$ac_arg'"
1505 esac
1506 done
1507 done
1508 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1509 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1511 # When interrupted or exit'd, cleanup temporary files, and complete
1512 # config.log. We remove comments because anyway the quotes in there
1513 # would cause problems or look ugly.
1514 # WARNING: Use '\'' to represent an apostrophe within the trap.
1515 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1516 trap 'exit_status=$?
1517 # Save into config.log some information that might help in debugging.
1519 echo
1521 cat <<\_ASBOX
1522 ## ---------------- ##
1523 ## Cache variables. ##
1524 ## ---------------- ##
1525 _ASBOX
1526 echo
1527 # The following way of writing the cache mishandles newlines in values,
1529 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1530 eval ac_val=\$$ac_var
1531 case $ac_val in #(
1532 *${as_nl}*)
1533 case $ac_var in #(
1534 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1535 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1536 esac
1537 case $ac_var in #(
1538 _ | IFS | as_nl) ;; #(
1539 *) $as_unset $ac_var ;;
1540 esac ;;
1541 esac
1542 done
1543 (set) 2>&1 |
1544 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1545 *${as_nl}ac_space=\ *)
1546 sed -n \
1547 "s/'\''/'\''\\\\'\'''\''/g;
1548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1549 ;; #(
1551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1553 esac |
1554 sort
1556 echo
1558 cat <<\_ASBOX
1559 ## ----------------- ##
1560 ## Output variables. ##
1561 ## ----------------- ##
1562 _ASBOX
1563 echo
1564 for ac_var in $ac_subst_vars
1566 eval ac_val=\$$ac_var
1567 case $ac_val in
1568 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1569 esac
1570 echo "$ac_var='\''$ac_val'\''"
1571 done | sort
1572 echo
1574 if test -n "$ac_subst_files"; then
1575 cat <<\_ASBOX
1576 ## ------------------- ##
1577 ## File substitutions. ##
1578 ## ------------------- ##
1579 _ASBOX
1580 echo
1581 for ac_var in $ac_subst_files
1583 eval ac_val=\$$ac_var
1584 case $ac_val in
1585 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1586 esac
1587 echo "$ac_var='\''$ac_val'\''"
1588 done | sort
1589 echo
1592 if test -s confdefs.h; then
1593 cat <<\_ASBOX
1594 ## ----------- ##
1595 ## confdefs.h. ##
1596 ## ----------- ##
1597 _ASBOX
1598 echo
1599 cat confdefs.h
1600 echo
1602 test "$ac_signal" != 0 &&
1603 echo "$as_me: caught signal $ac_signal"
1604 echo "$as_me: exit $exit_status"
1605 } >&5
1606 rm -f core *.core core.conftest.* &&
1607 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1608 exit $exit_status
1610 for ac_signal in 1 2 13 15; do
1611 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1612 done
1613 ac_signal=0
1615 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1616 rm -f -r conftest* confdefs.h
1618 # Predefined preprocessor variables.
1620 cat >>confdefs.h <<_ACEOF
1621 #define PACKAGE_NAME "$PACKAGE_NAME"
1622 _ACEOF
1625 cat >>confdefs.h <<_ACEOF
1626 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1627 _ACEOF
1630 cat >>confdefs.h <<_ACEOF
1631 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1632 _ACEOF
1635 cat >>confdefs.h <<_ACEOF
1636 #define PACKAGE_STRING "$PACKAGE_STRING"
1637 _ACEOF
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1642 _ACEOF
1645 # Let the site file select an alternate cache file if it wants to.
1646 # Prefer explicitly selected file to automatically selected ones.
1647 if test -n "$CONFIG_SITE"; then
1648 set x "$CONFIG_SITE"
1649 elif test "x$prefix" != xNONE; then
1650 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1651 else
1652 set x "$ac_default_prefix/share/config.site" \
1653 "$ac_default_prefix/etc/config.site"
1655 shift
1656 for ac_site_file
1658 if test -r "$ac_site_file"; then
1659 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1660 echo "$as_me: loading site script $ac_site_file" >&6;}
1661 sed 's/^/| /' "$ac_site_file" >&5
1662 . "$ac_site_file"
1664 done
1666 if test -r "$cache_file"; then
1667 # Some versions of bash will fail to source /dev/null (special
1668 # files actually), so we avoid doing that.
1669 if test -f "$cache_file"; then
1670 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1671 echo "$as_me: loading cache $cache_file" >&6;}
1672 case $cache_file in
1673 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1674 *) . "./$cache_file";;
1675 esac
1677 else
1678 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1679 echo "$as_me: creating cache $cache_file" >&6;}
1680 >$cache_file
1683 # Check that the precious variables saved in the cache have kept the same
1684 # value.
1685 ac_cache_corrupted=false
1686 for ac_var in $ac_precious_vars; do
1687 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1688 eval ac_new_set=\$ac_env_${ac_var}_set
1689 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1690 eval ac_new_val=\$ac_env_${ac_var}_value
1691 case $ac_old_set,$ac_new_set in
1692 set,)
1693 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1694 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1695 ac_cache_corrupted=: ;;
1696 ,set)
1697 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1698 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1699 ac_cache_corrupted=: ;;
1700 ,);;
1702 if test "x$ac_old_val" != "x$ac_new_val"; then
1703 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1704 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1705 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1706 echo "$as_me: former value: $ac_old_val" >&2;}
1707 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1708 echo "$as_me: current value: $ac_new_val" >&2;}
1709 ac_cache_corrupted=:
1710 fi;;
1711 esac
1712 # Pass precious variables to config.status.
1713 if test "$ac_new_set" = set; then
1714 case $ac_new_val in
1715 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1716 *) ac_arg=$ac_var=$ac_new_val ;;
1717 esac
1718 case " $ac_configure_args " in
1719 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1720 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1721 esac
1723 done
1724 if $ac_cache_corrupted; then
1725 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1726 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1727 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1728 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1729 { (exit 1); exit 1; }; }
1756 ac_ext=c
1757 ac_cpp='$CPP $CPPFLAGS'
1758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1765 ac_config_headers="$ac_config_headers config.h"
1768 # Checks for host and target systems.
1769 ac_aux_dir=
1770 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1771 if test -f "$ac_dir/install-sh"; then
1772 ac_aux_dir=$ac_dir
1773 ac_install_sh="$ac_aux_dir/install-sh -c"
1774 break
1775 elif test -f "$ac_dir/install.sh"; then
1776 ac_aux_dir=$ac_dir
1777 ac_install_sh="$ac_aux_dir/install.sh -c"
1778 break
1779 elif test -f "$ac_dir/shtool"; then
1780 ac_aux_dir=$ac_dir
1781 ac_install_sh="$ac_aux_dir/shtool install -c"
1782 break
1784 done
1785 if test -z "$ac_aux_dir"; then
1786 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1787 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1788 { (exit 1); exit 1; }; }
1791 # These three variables are undocumented and unsupported,
1792 # and are intended to be withdrawn in a future Autoconf release.
1793 # They can cause serious problems if a builder's source tree is in a directory
1794 # whose full name contains unusual characters.
1795 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1796 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1797 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1800 # Make sure we can run config.sub.
1801 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1802 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1803 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1804 { (exit 1); exit 1; }; }
1806 { echo "$as_me:$LINENO: checking build system type" >&5
1807 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1808 if test "${ac_cv_build+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811 ac_build_alias=$build_alias
1812 test "x$ac_build_alias" = x &&
1813 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1814 test "x$ac_build_alias" = x &&
1815 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1816 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1817 { (exit 1); exit 1; }; }
1818 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1819 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1820 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1821 { (exit 1); exit 1; }; }
1824 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1825 echo "${ECHO_T}$ac_cv_build" >&6; }
1826 case $ac_cv_build in
1827 *-*-*) ;;
1828 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1829 echo "$as_me: error: invalid value of canonical build" >&2;}
1830 { (exit 1); exit 1; }; };;
1831 esac
1832 build=$ac_cv_build
1833 ac_save_IFS=$IFS; IFS='-'
1834 set x $ac_cv_build
1835 shift
1836 build_cpu=$1
1837 build_vendor=$2
1838 shift; shift
1839 # Remember, the first character of IFS is used to create $*,
1840 # except with old shells:
1841 build_os=$*
1842 IFS=$ac_save_IFS
1843 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1846 { echo "$as_me:$LINENO: checking host system type" >&5
1847 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1848 if test "${ac_cv_host+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851 if test "x$host_alias" = x; then
1852 ac_cv_host=$ac_cv_build
1853 else
1854 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1855 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1856 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1857 { (exit 1); exit 1; }; }
1861 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1862 echo "${ECHO_T}$ac_cv_host" >&6; }
1863 case $ac_cv_host in
1864 *-*-*) ;;
1865 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1866 echo "$as_me: error: invalid value of canonical host" >&2;}
1867 { (exit 1); exit 1; }; };;
1868 esac
1869 host=$ac_cv_host
1870 ac_save_IFS=$IFS; IFS='-'
1871 set x $ac_cv_host
1872 shift
1873 host_cpu=$1
1874 host_vendor=$2
1875 shift; shift
1876 # Remember, the first character of IFS is used to create $*,
1877 # except with old shells:
1878 host_os=$*
1879 IFS=$ac_save_IFS
1880 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1883 { echo "$as_me:$LINENO: checking target system type" >&5
1884 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1885 if test "${ac_cv_target+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 if test "x$target_alias" = x; then
1889 ac_cv_target=$ac_cv_host
1890 else
1891 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1892 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1893 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1894 { (exit 1); exit 1; }; }
1898 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1899 echo "${ECHO_T}$ac_cv_target" >&6; }
1900 case $ac_cv_target in
1901 *-*-*) ;;
1902 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1903 echo "$as_me: error: invalid value of canonical target" >&2;}
1904 { (exit 1); exit 1; }; };;
1905 esac
1906 target=$ac_cv_target
1907 ac_save_IFS=$IFS; IFS='-'
1908 set x $ac_cv_target
1909 shift
1910 target_cpu=$1
1911 target_vendor=$2
1912 shift; shift
1913 # Remember, the first character of IFS is used to create $*,
1914 # except with old shells:
1915 target_os=$*
1916 IFS=$ac_save_IFS
1917 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1920 # The aliases save the names the user supplied, while $host etc.
1921 # will get canonicalized.
1922 test -n "$target_alias" &&
1923 test "$program_prefix$program_suffix$program_transform_name" = \
1924 NONENONEs,x,x, &&
1925 program_prefix=${target_alias}-
1927 # Program name transformations
1928 test "$program_prefix" != NONE &&
1929 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1930 # Use a double $ so make ignores it.
1931 test "$program_suffix" != NONE &&
1932 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1933 # Double any \ or $. echo might interpret backslashes.
1934 # By default was `s,x,x', remove it if useless.
1935 cat <<\_ACEOF >conftest.sed
1936 s/[\\$]/&&/g;s/;s,x,x,$//
1937 _ACEOF
1938 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1939 rm -f conftest.sed
1942 case "$host_cpu" in
1943 powerpc64) host_m32=1 ;;
1944 esac
1946 case "$target_cpu" in
1947 i[3456]86) target_cpu=i386 ;;
1948 esac
1950 # Specify the platform (such as firmware).
1952 # Check whether --with-platform was given.
1953 if test "${with_platform+set}" = set; then
1954 withval=$with_platform;
1958 # Guess the platform if not specified.
1959 if test "x$with_platform" = x; then
1960 case "$target_cpu"-"$target_vendor" in
1961 i386-apple) platform=efi ;;
1962 i386-*) platform=pc ;;
1963 x86_64-apple) platform=efi ;;
1964 x86_64-*) platform=pc ;;
1965 powerpc-*) platform=ieee1275 ;;
1966 powerpc64-*) platform=ieee1275 ;;
1967 sparc64-*) platform=ieee1275 ;;
1968 *) { { echo "$as_me:$LINENO: error: unsupported CPU: \"$target_cpu\"" >&5
1969 echo "$as_me: error: unsupported CPU: \"$target_cpu\"" >&2;}
1970 { (exit 1); exit 1; }; } ;;
1971 esac
1972 else
1973 platform="$with_platform"
1976 # Adjust CPU unless target was explicitly specified.
1977 if test -z "$target_alias"; then
1978 case "$target_cpu"-"$platform" in
1979 x86_64-efi) ;;
1980 x86_64-*) target_cpu=i386 ;;
1981 powerpc64-ieee1275) target_cpu=powerpc ;;
1982 esac
1985 # Check if the platform is supported, make final adjustments.
1986 case "$target_cpu"-"$platform" in
1987 i386-efi) ;;
1988 x86_64-efi) ;;
1989 i386-pc) ;;
1990 i386-coreboot) ;;
1991 i386-linuxbios) platform=coreboot ;;
1992 i386-ieee1275) ;;
1993 powerpc-ieee1275) ;;
1994 sparc64-ieee1275) ;;
1995 *) { { echo "$as_me:$LINENO: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&5
1996 echo "$as_me: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&2;}
1997 { (exit 1); exit 1; }; } ;;
1998 esac
2000 case "$target_cpu" in
2001 i386 | powerpc) target_m32=1 ;;
2002 x86_64 | sparc64) target_m64=1 ;;
2003 esac
2005 case "$host_os" in
2006 mingw32) host_os=cygwin ;;
2007 esac
2016 # Checks for build programs.
2019 # Although cmp is listed in the GNU Coding Standards as a command which
2020 # can used directly, OpenBSD lacks cmp in the default installation.
2021 for ac_prog in cmp
2023 # Extract the first word of "$ac_prog", so it can be a program name with args.
2024 set dummy $ac_prog; ac_word=$2
2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027 if test "${ac_cv_prog_CMP+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030 if test -n "$CMP"; then
2031 ac_cv_prog_CMP="$CMP" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2040 ac_cv_prog_CMP="$ac_prog"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 break 2
2044 done
2045 done
2046 IFS=$as_save_IFS
2050 CMP=$ac_cv_prog_CMP
2051 if test -n "$CMP"; then
2052 { echo "$as_me:$LINENO: result: $CMP" >&5
2053 echo "${ECHO_T}$CMP" >&6; }
2054 else
2055 { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2060 test -n "$CMP" && break
2061 done
2063 if test "x$CMP" = x; then
2064 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
2065 echo "$as_me: error: cmp is not found" >&2;}
2066 { (exit 1); exit 1; }; }
2069 for ac_prog in bison
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2075 if test "${ac_cv_prog_YACC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 if test -n "$YACC"; then
2079 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2080 else
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2084 IFS=$as_save_IFS
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2088 ac_cv_prog_YACC="$ac_prog"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 break 2
2092 done
2093 done
2094 IFS=$as_save_IFS
2098 YACC=$ac_cv_prog_YACC
2099 if test -n "$YACC"; then
2100 { echo "$as_me:$LINENO: result: $YACC" >&5
2101 echo "${ECHO_T}$YACC" >&6; }
2102 else
2103 { echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6; }
2108 test -n "$YACC" && break
2109 done
2111 if test "x$YACC" = x; then
2112 { { echo "$as_me:$LINENO: error: bison is not found" >&5
2113 echo "$as_me: error: bison is not found" >&2;}
2114 { (exit 1); exit 1; }; }
2117 for file in /usr/src/unifont.bdf ; do
2118 if test -e $file ; then
2119 UNIFONT_BDF=$file
2121 break
2123 done
2125 # Find a good install program. We prefer a C program (faster),
2126 # so one script is as good as another. But avoid the broken or
2127 # incompatible versions:
2128 # SysV /etc/install, /usr/sbin/install
2129 # SunOS /usr/etc/install
2130 # IRIX /sbin/install
2131 # AIX /bin/install
2132 # AmigaOS /C/install, which installs bootblocks on floppy discs
2133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2136 # OS/2's system install, which has a completely different semantic
2137 # ./install, which can be erroneously created by make from ./install.sh.
2138 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2139 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2140 if test -z "$INSTALL"; then
2141 if test "${ac_cv_path_install+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 # Account for people who put trailing slashes in PATH elements.
2150 case $as_dir/ in
2151 ./ | .// | /cC/* | \
2152 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2153 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2154 /usr/ucb/* ) ;;
2156 # OSF1 and SCO ODT 3.0 have their own names for install.
2157 # Don't use installbsd from OSF since it installs stuff as root
2158 # by default.
2159 for ac_prog in ginstall scoinst install; do
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2162 if test $ac_prog = install &&
2163 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2164 # AIX install. It has an incompatible calling convention.
2166 elif test $ac_prog = install &&
2167 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168 # program-specific install script used by HP pwplus--don't use.
2170 else
2171 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2172 break 3
2175 done
2176 done
2178 esac
2179 done
2180 IFS=$as_save_IFS
2184 if test "${ac_cv_path_install+set}" = set; then
2185 INSTALL=$ac_cv_path_install
2186 else
2187 # As a last resort, use the slow shell script. Don't cache a
2188 # value for INSTALL within a source directory, because that will
2189 # break other packages using the cache if that directory is
2190 # removed, or if the value is a relative name.
2191 INSTALL=$ac_install_sh
2194 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2195 echo "${ECHO_T}$INSTALL" >&6; }
2197 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2198 # It thinks the first close brace ends the variable substitution.
2199 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2201 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2203 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2205 for ac_prog in gawk mawk nawk awk
2207 # Extract the first word of "$ac_prog", so it can be a program name with args.
2208 set dummy $ac_prog; ac_word=$2
2209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2211 if test "${ac_cv_prog_AWK+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214 if test -n "$AWK"; then
2215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2216 else
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2224 ac_cv_prog_AWK="$ac_prog"
2225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226 break 2
2228 done
2229 done
2230 IFS=$as_save_IFS
2234 AWK=$ac_cv_prog_AWK
2235 if test -n "$AWK"; then
2236 { echo "$as_me:$LINENO: result: $AWK" >&5
2237 echo "${ECHO_T}$AWK" >&6; }
2238 else
2239 { echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6; }
2244 test -n "$AWK" && break
2245 done
2247 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2248 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2249 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2250 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253 cat >conftest.make <<\_ACEOF
2254 SHELL = /bin/sh
2255 all:
2256 @echo '@@@%%%=$(MAKE)=@@@%%%'
2257 _ACEOF
2258 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2259 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2260 *@@@%%%=?*=@@@%%%*)
2261 eval ac_cv_prog_make_${ac_make}_set=yes;;
2263 eval ac_cv_prog_make_${ac_make}_set=no;;
2264 esac
2265 rm -f conftest.make
2267 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2268 { echo "$as_me:$LINENO: result: yes" >&5
2269 echo "${ECHO_T}yes" >&6; }
2270 SET_MAKE=
2271 else
2272 { echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6; }
2274 SET_MAKE="MAKE=${MAKE-make}"
2278 # These are not a "must".
2279 # Extract the first word of "ruby", so it can be a program name with args.
2280 set dummy ruby; ac_word=$2
2281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2283 if test "${ac_cv_path_RUBY+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286 case $RUBY in
2287 [\\/]* | ?:[\\/]*)
2288 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 break 2
2302 done
2303 done
2304 IFS=$as_save_IFS
2307 esac
2309 RUBY=$ac_cv_path_RUBY
2310 if test -n "$RUBY"; then
2311 { echo "$as_me:$LINENO: result: $RUBY" >&5
2312 echo "${ECHO_T}$RUBY" >&6; }
2313 else
2314 { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6; }
2319 # Extract the first word of "help2man", so it can be a program name with args.
2320 set dummy help2man; ac_word=$2
2321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2323 if test "${ac_cv_path_HELP2MAN+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 case $HELP2MAN in
2327 [\\/]* | ?:[\\/]*)
2328 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2334 IFS=$as_save_IFS
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 break 2
2342 done
2343 done
2344 IFS=$as_save_IFS
2347 esac
2349 HELP2MAN=$ac_cv_path_HELP2MAN
2350 if test -n "$HELP2MAN"; then
2351 { echo "$as_me:$LINENO: result: $HELP2MAN" >&5
2352 echo "${ECHO_T}$HELP2MAN" >&6; }
2353 else
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2361 # Checks for host programs.
2364 ac_ext=c
2365 ac_cpp='$CPP $CPPFLAGS'
2366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2369 if test -n "$ac_tool_prefix"; then
2370 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2371 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2374 if test "${ac_cv_prog_CC+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377 if test -n "$CC"; then
2378 ac_cv_prog_CC="$CC" # Let the user override the test.
2379 else
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 for as_dir in $PATH
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2387 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 break 2
2391 done
2392 done
2393 IFS=$as_save_IFS
2397 CC=$ac_cv_prog_CC
2398 if test -n "$CC"; then
2399 { echo "$as_me:$LINENO: result: $CC" >&5
2400 echo "${ECHO_T}$CC" >&6; }
2401 else
2402 { echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6; }
2408 if test -z "$ac_cv_prog_CC"; then
2409 ac_ct_CC=$CC
2410 # Extract the first word of "gcc", so it can be a program name with args.
2411 set dummy gcc; ac_word=$2
2412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2414 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417 if test -n "$ac_ct_CC"; then
2418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_ac_ct_CC="gcc"
2428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2431 done
2432 done
2433 IFS=$as_save_IFS
2437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2438 if test -n "$ac_ct_CC"; then
2439 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2440 echo "${ECHO_T}$ac_ct_CC" >&6; }
2441 else
2442 { echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6; }
2446 if test "x$ac_ct_CC" = x; then
2447 CC=""
2448 else
2449 case $cross_compiling:$ac_tool_warned in
2450 yes:)
2451 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2452 whose name does not start with the host triplet. If you think this
2453 configuration is useful to you, please write to autoconf@gnu.org." >&5
2454 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2455 whose name does not start with the host triplet. If you think this
2456 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2457 ac_tool_warned=yes ;;
2458 esac
2459 CC=$ac_ct_CC
2461 else
2462 CC="$ac_cv_prog_CC"
2465 if test -z "$CC"; then
2466 if test -n "$ac_tool_prefix"; then
2467 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2468 set dummy ${ac_tool_prefix}cc; ac_word=$2
2469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2471 if test "${ac_cv_prog_CC+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 else
2474 if test -n "$CC"; then
2475 ac_cv_prog_CC="$CC" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484 ac_cv_prog_CC="${ac_tool_prefix}cc"
2485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 break 2
2488 done
2489 done
2490 IFS=$as_save_IFS
2494 CC=$ac_cv_prog_CC
2495 if test -n "$CC"; then
2496 { echo "$as_me:$LINENO: result: $CC" >&5
2497 echo "${ECHO_T}$CC" >&6; }
2498 else
2499 { echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6; }
2506 if test -z "$CC"; then
2507 # Extract the first word of "cc", so it can be a program name with args.
2508 set dummy cc; ac_word=$2
2509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2511 if test "${ac_cv_prog_CC+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514 if test -n "$CC"; then
2515 ac_cv_prog_CC="$CC" # Let the user override the test.
2516 else
2517 ac_prog_rejected=no
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2526 ac_prog_rejected=yes
2527 continue
2529 ac_cv_prog_CC="cc"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2533 done
2534 done
2535 IFS=$as_save_IFS
2537 if test $ac_prog_rejected = yes; then
2538 # We found a bogon in the path, so make sure we never use it.
2539 set dummy $ac_cv_prog_CC
2540 shift
2541 if test $# != 0; then
2542 # We chose a different compiler from the bogus one.
2543 # However, it has the same basename, so the bogon will be chosen
2544 # first if we set CC to just the basename; use the full file name.
2545 shift
2546 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2551 CC=$ac_cv_prog_CC
2552 if test -n "$CC"; then
2553 { echo "$as_me:$LINENO: result: $CC" >&5
2554 echo "${ECHO_T}$CC" >&6; }
2555 else
2556 { echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6; }
2562 if test -z "$CC"; then
2563 if test -n "$ac_tool_prefix"; then
2564 for ac_prog in cl.exe
2566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570 if test "${ac_cv_prog_CC+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC="$CC" # Let the user override the test.
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 break 2
2587 done
2588 done
2589 IFS=$as_save_IFS
2593 CC=$ac_cv_prog_CC
2594 if test -n "$CC"; then
2595 { echo "$as_me:$LINENO: result: $CC" >&5
2596 echo "${ECHO_T}$CC" >&6; }
2597 else
2598 { echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6; }
2603 test -n "$CC" && break
2604 done
2606 if test -z "$CC"; then
2607 ac_ct_CC=$CC
2608 for ac_prog in cl.exe
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 if test -n "$ac_ct_CC"; then
2618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_ac_ct_CC="$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2631 done
2632 done
2633 IFS=$as_save_IFS
2637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2638 if test -n "$ac_ct_CC"; then
2639 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2640 echo "${ECHO_T}$ac_ct_CC" >&6; }
2641 else
2642 { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2647 test -n "$ac_ct_CC" && break
2648 done
2650 if test "x$ac_ct_CC" = x; then
2651 CC=""
2652 else
2653 case $cross_compiling:$ac_tool_warned in
2654 yes:)
2655 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2656 whose name does not start with the host triplet. If you think this
2657 configuration is useful to you, please write to autoconf@gnu.org." >&5
2658 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2659 whose name does not start with the host triplet. If you think this
2660 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2661 ac_tool_warned=yes ;;
2662 esac
2663 CC=$ac_ct_CC
2670 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2671 See \`config.log' for more details." >&5
2672 echo "$as_me: error: no acceptable C compiler found in \$PATH
2673 See \`config.log' for more details." >&2;}
2674 { (exit 1); exit 1; }; }
2676 # Provide some information about the compiler.
2677 echo "$as_me:$LINENO: checking for C compiler version" >&5
2678 ac_compiler=`set X $ac_compile; echo $2`
2679 { (ac_try="$ac_compiler --version >&5"
2680 case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2683 esac
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compiler --version >&5") 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }
2689 { (ac_try="$ac_compiler -v >&5"
2690 case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compiler -v >&5") 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2699 { (ac_try="$ac_compiler -V >&5"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compiler -V >&5") 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2718 main ()
2722 return 0;
2724 _ACEOF
2725 ac_clean_files_save=$ac_clean_files
2726 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2727 # Try to create an executable without -o first, disregard a.out.
2728 # It will help us diagnose broken compilers, and finding out an intuition
2729 # of exeext.
2730 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2731 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2732 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2734 # List of possible output files, starting from the most likely.
2735 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2736 # only as a last resort. b.out is created by i960 compilers.
2737 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2739 # The IRIX 6 linker writes into existing files which may not be
2740 # executable, retaining their permissions. Remove them first so a
2741 # subsequent execution test works.
2742 ac_rmfiles=
2743 for ac_file in $ac_files
2745 case $ac_file in
2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2747 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2748 esac
2749 done
2750 rm -f $ac_rmfiles
2752 if { (ac_try="$ac_link_default"
2753 case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756 esac
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_link_default") 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; then
2762 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2763 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2764 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2765 # so that the user can short-circuit this test for compilers unknown to
2766 # Autoconf.
2767 for ac_file in $ac_files ''
2769 test -f "$ac_file" || continue
2770 case $ac_file in
2771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2773 [ab].out )
2774 # We found the default executable, but exeext='' is most
2775 # certainly right.
2776 break;;
2777 *.* )
2778 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2779 then :; else
2780 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2782 # We set ac_cv_exeext here because the later test for it is not
2783 # safe: cross compilers may not add the suffix if given an `-o'
2784 # argument, so we may need to know it at that point already.
2785 # Even if this section looks crufty: it has the advantage of
2786 # actually working.
2787 break;;
2789 break;;
2790 esac
2791 done
2792 test "$ac_cv_exeext" = no && ac_cv_exeext=
2794 else
2795 ac_file=''
2798 { echo "$as_me:$LINENO: result: $ac_file" >&5
2799 echo "${ECHO_T}$ac_file" >&6; }
2800 if test -z "$ac_file"; then
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2805 See \`config.log' for more details." >&5
2806 echo "$as_me: error: C compiler cannot create executables
2807 See \`config.log' for more details." >&2;}
2808 { (exit 77); exit 77; }; }
2811 ac_exeext=$ac_cv_exeext
2813 # Check that the compiler produces executables we can run. If not, either
2814 # the compiler is broken, or we cross compile.
2815 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2816 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2817 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2818 # If not cross compiling, check that we can run a simple program.
2819 if test "$cross_compiling" != yes; then
2820 if { ac_try='./$ac_file'
2821 { (case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824 esac
2825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826 (eval "$ac_try") 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 cross_compiling=no
2831 else
2832 if test "$cross_compiling" = maybe; then
2833 cross_compiling=yes
2834 else
2835 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2836 If you meant to cross compile, use \`--host'.
2837 See \`config.log' for more details." >&5
2838 echo "$as_me: error: cannot run C compiled programs.
2839 If you meant to cross compile, use \`--host'.
2840 See \`config.log' for more details." >&2;}
2841 { (exit 1); exit 1; }; }
2845 { echo "$as_me:$LINENO: result: yes" >&5
2846 echo "${ECHO_T}yes" >&6; }
2848 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2849 ac_clean_files=$ac_clean_files_save
2850 # Check that the compiler produces executables we can run. If not, either
2851 # the compiler is broken, or we cross compile.
2852 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2853 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2854 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2855 echo "${ECHO_T}$cross_compiling" >&6; }
2857 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2858 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2859 if { (ac_try="$ac_link"
2860 case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_link") 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; then
2869 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2870 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2871 # work properly (i.e., refer to `conftest.exe'), while it won't with
2872 # `rm'.
2873 for ac_file in conftest.exe conftest conftest.*; do
2874 test -f "$ac_file" || continue
2875 case $ac_file in
2876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2877 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2878 break;;
2879 * ) break;;
2880 esac
2881 done
2882 else
2883 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2884 See \`config.log' for more details." >&5
2885 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2886 See \`config.log' for more details." >&2;}
2887 { (exit 1); exit 1; }; }
2890 rm -f conftest$ac_cv_exeext
2891 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2892 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2894 rm -f conftest.$ac_ext
2895 EXEEXT=$ac_cv_exeext
2896 ac_exeext=$EXEEXT
2897 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2898 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2899 if test "${ac_cv_objext+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h. */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2910 main ()
2914 return 0;
2916 _ACEOF
2917 rm -f conftest.o conftest.obj
2918 if { (ac_try="$ac_compile"
2919 case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compile") 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; then
2928 for ac_file in conftest.o conftest.obj conftest.*; do
2929 test -f "$ac_file" || continue;
2930 case $ac_file in
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2932 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2933 break;;
2934 esac
2935 done
2936 else
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2940 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2943 See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
2947 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2949 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2950 echo "${ECHO_T}$ac_cv_objext" >&6; }
2951 OBJEXT=$ac_cv_objext
2952 ac_objext=$OBJEXT
2953 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2954 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2955 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958 cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h. */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2966 main ()
2968 #ifndef __GNUC__
2969 choke me
2970 #endif
2973 return 0;
2975 _ACEOF
2976 rm -f conftest.$ac_objext
2977 if { (ac_try="$ac_compile"
2978 case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>conftest.er1
2984 ac_status=$?
2985 grep -v '^ *+' conftest.er1 >conftest.err
2986 rm -f conftest.er1
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } && {
2990 test -z "$ac_c_werror_flag" ||
2991 test ! -s conftest.err
2992 } && test -s conftest.$ac_objext; then
2993 ac_compiler_gnu=yes
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 ac_compiler_gnu=no
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3005 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3006 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3007 GCC=`test $ac_compiler_gnu = yes && echo yes`
3008 ac_test_CFLAGS=${CFLAGS+set}
3009 ac_save_CFLAGS=$CFLAGS
3010 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3011 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_cc_g+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 ac_save_c_werror_flag=$ac_c_werror_flag
3016 ac_c_werror_flag=yes
3017 ac_cv_prog_cc_g=no
3018 CFLAGS="-g"
3019 cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h. */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3027 main ()
3031 return 0;
3033 _ACEOF
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
3036 case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compile") 2>conftest.er1
3042 ac_status=$?
3043 grep -v '^ *+' conftest.er1 >conftest.err
3044 rm -f conftest.er1
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } && {
3048 test -z "$ac_c_werror_flag" ||
3049 test ! -s conftest.err
3050 } && test -s conftest.$ac_objext; then
3051 ac_cv_prog_cc_g=yes
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3056 CFLAGS=""
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3065 main ()
3069 return 0;
3071 _ACEOF
3072 rm -f conftest.$ac_objext
3073 if { (ac_try="$ac_compile"
3074 case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077 esac
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3080 ac_status=$?
3081 grep -v '^ *+' conftest.er1 >conftest.err
3082 rm -f conftest.er1
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } && {
3086 test -z "$ac_c_werror_flag" ||
3087 test ! -s conftest.err
3088 } && test -s conftest.$ac_objext; then
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 ac_c_werror_flag=$ac_save_c_werror_flag
3095 CFLAGS="-g"
3096 cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h. */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3104 main ()
3108 return 0;
3110 _ACEOF
3111 rm -f conftest.$ac_objext
3112 if { (ac_try="$ac_compile"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>conftest.er1
3119 ac_status=$?
3120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } && {
3125 test -z "$ac_c_werror_flag" ||
3126 test ! -s conftest.err
3127 } && test -s conftest.$ac_objext; then
3128 ac_cv_prog_cc_g=yes
3129 else
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 ac_c_werror_flag=$ac_save_c_werror_flag
3145 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3146 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3147 if test "$ac_test_CFLAGS" = set; then
3148 CFLAGS=$ac_save_CFLAGS
3149 elif test $ac_cv_prog_cc_g = yes; then
3150 if test "$GCC" = yes; then
3151 CFLAGS="-g -O2"
3152 else
3153 CFLAGS="-g"
3155 else
3156 if test "$GCC" = yes; then
3157 CFLAGS="-O2"
3158 else
3159 CFLAGS=
3162 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3163 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3164 if test "${ac_cv_prog_cc_c89+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 ac_cv_prog_cc_c89=no
3168 ac_save_CC=$CC
3169 cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h. */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3175 #include <stdarg.h>
3176 #include <stdio.h>
3177 #include <sys/types.h>
3178 #include <sys/stat.h>
3179 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3180 struct buf { int x; };
3181 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3182 static char *e (p, i)
3183 char **p;
3184 int i;
3186 return p[i];
3188 static char *f (char * (*g) (char **, int), char **p, ...)
3190 char *s;
3191 va_list v;
3192 va_start (v,p);
3193 s = g (p, va_arg (v,int));
3194 va_end (v);
3195 return s;
3198 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3199 function prototypes and stuff, but not '\xHH' hex character constants.
3200 These don't provoke an error unfortunately, instead are silently treated
3201 as 'x'. The following induces an error, until -std is added to get
3202 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3203 array size at least. It's necessary to write '\x00'==0 to get something
3204 that's true only with -std. */
3205 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3207 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3208 inside strings and character constants. */
3209 #define FOO(x) 'x'
3210 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3212 int test (int i, double x);
3213 struct s1 {int (*f) (int a);};
3214 struct s2 {int (*f) (double a);};
3215 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3216 int argc;
3217 char **argv;
3219 main ()
3221 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3223 return 0;
3225 _ACEOF
3226 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3227 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3229 CC="$ac_save_CC $ac_arg"
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } && {
3244 test -z "$ac_c_werror_flag" ||
3245 test ! -s conftest.err
3246 } && test -s conftest.$ac_objext; then
3247 ac_cv_prog_cc_c89=$ac_arg
3248 else
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3255 rm -f core conftest.err conftest.$ac_objext
3256 test "x$ac_cv_prog_cc_c89" != "xno" && break
3257 done
3258 rm -f conftest.$ac_ext
3259 CC=$ac_save_CC
3262 # AC_CACHE_VAL
3263 case "x$ac_cv_prog_cc_c89" in
3265 { echo "$as_me:$LINENO: result: none needed" >&5
3266 echo "${ECHO_T}none needed" >&6; } ;;
3267 xno)
3268 { echo "$as_me:$LINENO: result: unsupported" >&5
3269 echo "${ECHO_T}unsupported" >&6; } ;;
3271 CC="$CC $ac_cv_prog_cc_c89"
3272 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3274 esac
3277 ac_ext=c
3278 ac_cpp='$CPP $CPPFLAGS'
3279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283 # Must be GCC.
3284 test "x$GCC" = xyes || { { echo "$as_me:$LINENO: error: GCC is required" >&5
3285 echo "$as_me: error: GCC is required" >&2;}
3286 { (exit 1); exit 1; }; }
3289 cat >>confdefs.h <<\_ACEOF
3290 #define _GNU_SOURCE 1
3291 _ACEOF
3295 # Check whether --enable-largefile was given.
3296 if test "${enable_largefile+set}" = set; then
3297 enableval=$enable_largefile;
3300 if test "$enable_largefile" != no; then
3302 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3303 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3304 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 ac_cv_sys_largefile_CC=no
3308 if test "$GCC" != yes; then
3309 ac_save_CC=$CC
3310 while :; do
3311 # IRIX 6.2 and later do not support large files by default,
3312 # so use the C compiler's -n32 option if that helps.
3313 cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h. */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 #include <sys/types.h>
3320 /* Check that off_t can represent 2**63 - 1 correctly.
3321 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3322 since some C++ compilers masquerading as C compilers
3323 incorrectly reject 9223372036854775807. */
3324 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3326 && LARGE_OFF_T % 2147483647 == 1)
3327 ? 1 : -1];
3329 main ()
3333 return 0;
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3338 case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_compile") 2>conftest.er1
3344 ac_status=$?
3345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } && {
3350 test -z "$ac_c_werror_flag" ||
3351 test ! -s conftest.err
3352 } && test -s conftest.$ac_objext; then
3353 break
3354 else
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3361 rm -f core conftest.err conftest.$ac_objext
3362 CC="$CC -n32"
3363 rm -f conftest.$ac_objext
3364 if { (ac_try="$ac_compile"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_compile") 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } && {
3377 test -z "$ac_c_werror_flag" ||
3378 test ! -s conftest.err
3379 } && test -s conftest.$ac_objext; then
3380 ac_cv_sys_largefile_CC=' -n32'; break
3381 else
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3388 rm -f core conftest.err conftest.$ac_objext
3389 break
3390 done
3391 CC=$ac_save_CC
3392 rm -f conftest.$ac_ext
3395 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3396 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3397 if test "$ac_cv_sys_largefile_CC" != no; then
3398 CC=$CC$ac_cv_sys_largefile_CC
3401 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3402 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3403 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406 while :; do
3407 cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h. */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 #include <sys/types.h>
3414 /* Check that off_t can represent 2**63 - 1 correctly.
3415 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3416 since some C++ compilers masquerading as C compilers
3417 incorrectly reject 9223372036854775807. */
3418 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3419 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3420 && LARGE_OFF_T % 2147483647 == 1)
3421 ? 1 : -1];
3423 main ()
3427 return 0;
3429 _ACEOF
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest.$ac_objext; then
3447 ac_cv_sys_file_offset_bits=no; break
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 cat >conftest.$ac_ext <<_ACEOF
3457 /* confdefs.h. */
3458 _ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3462 #define _FILE_OFFSET_BITS 64
3463 #include <sys/types.h>
3464 /* Check that off_t can represent 2**63 - 1 correctly.
3465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3466 since some C++ compilers masquerading as C compilers
3467 incorrectly reject 9223372036854775807. */
3468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3470 && LARGE_OFF_T % 2147483647 == 1)
3471 ? 1 : -1];
3473 main ()
3477 return 0;
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
3497 ac_cv_sys_file_offset_bits=64; break
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_cv_sys_file_offset_bits=unknown
3507 break
3508 done
3510 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3511 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3512 case $ac_cv_sys_file_offset_bits in #(
3513 no | unknown) ;;
3515 cat >>confdefs.h <<_ACEOF
3516 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3517 _ACEOF
3519 esac
3520 rm -f conftest*
3521 if test $ac_cv_sys_file_offset_bits = unknown; then
3522 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3523 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3524 if test "${ac_cv_sys_large_files+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 while :; do
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h. */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 #include <sys/types.h>
3535 /* Check that off_t can represent 2**63 - 1 correctly.
3536 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3537 since some C++ compilers masquerading as C compilers
3538 incorrectly reject 9223372036854775807. */
3539 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3540 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3541 && LARGE_OFF_T % 2147483647 == 1)
3542 ? 1 : -1];
3544 main ()
3548 return 0;
3550 _ACEOF
3551 rm -f conftest.$ac_objext
3552 if { (ac_try="$ac_compile"
3553 case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556 esac
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_compile") 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } && {
3565 test -z "$ac_c_werror_flag" ||
3566 test ! -s conftest.err
3567 } && test -s conftest.$ac_objext; then
3568 ac_cv_sys_large_files=no; break
3569 else
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h. */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3583 #define _LARGE_FILES 1
3584 #include <sys/types.h>
3585 /* Check that off_t can represent 2**63 - 1 correctly.
3586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3587 since some C++ compilers masquerading as C compilers
3588 incorrectly reject 9223372036854775807. */
3589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3591 && LARGE_OFF_T % 2147483647 == 1)
3592 ? 1 : -1];
3594 main ()
3598 return 0;
3600 _ACEOF
3601 rm -f conftest.$ac_objext
3602 if { (ac_try="$ac_compile"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compile") 2>conftest.er1
3609 ac_status=$?
3610 grep -v '^ *+' conftest.er1 >conftest.err
3611 rm -f conftest.er1
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } && {
3615 test -z "$ac_c_werror_flag" ||
3616 test ! -s conftest.err
3617 } && test -s conftest.$ac_objext; then
3618 ac_cv_sys_large_files=1; break
3619 else
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 ac_cv_sys_large_files=unknown
3628 break
3629 done
3631 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3632 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3633 case $ac_cv_sys_large_files in #(
3634 no | unknown) ;;
3636 cat >>confdefs.h <<_ACEOF
3637 #define _LARGE_FILES $ac_cv_sys_large_files
3638 _ACEOF
3640 esac
3641 rm -f conftest*
3646 # Identify characteristics of the host architecture.
3647 ac_ext=c
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3653 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3654 # On Suns, sometimes $CPP names a directory.
3655 if test -n "$CPP" && test -d "$CPP"; then
3656 CPP=
3658 if test -z "$CPP"; then
3659 if test "${ac_cv_prog_CPP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662 # Double quotes because CPP needs to be expanded
3663 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3665 ac_preproc_ok=false
3666 for ac_c_preproc_warn_flag in '' yes
3668 # Use a header file that comes with gcc, so configuring glibc
3669 # with a fresh cross-compiler works.
3670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3671 # <limits.h> exists even on freestanding compilers.
3672 # On the NeXT, cc -E runs the code through the compiler's parser,
3673 # not just through cpp. "Syntax error" is here to catch this case.
3674 cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h. */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3680 #ifdef __STDC__
3681 # include <limits.h>
3682 #else
3683 # include <assert.h>
3684 #endif
3685 Syntax error
3686 _ACEOF
3687 if { (ac_try="$ac_cpp conftest.$ac_ext"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3694 ac_status=$?
3695 grep -v '^ *+' conftest.er1 >conftest.err
3696 rm -f conftest.er1
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } >/dev/null && {
3700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3701 test ! -s conftest.err
3702 }; then
3704 else
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 # Broken: fails on valid input.
3709 continue
3712 rm -f conftest.err conftest.$ac_ext
3714 # OK, works on sane cases. Now check whether nonexistent headers
3715 # can be detected and how.
3716 cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h. */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #include <ac_nonexistent.h>
3723 _ACEOF
3724 if { (ac_try="$ac_cpp conftest.$ac_ext"
3725 case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3731 ac_status=$?
3732 grep -v '^ *+' conftest.er1 >conftest.err
3733 rm -f conftest.er1
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } >/dev/null && {
3737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3738 test ! -s conftest.err
3739 }; then
3740 # Broken: success on invalid input.
3741 continue
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3746 # Passes both tests.
3747 ac_preproc_ok=:
3748 break
3751 rm -f conftest.err conftest.$ac_ext
3753 done
3754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755 rm -f conftest.err conftest.$ac_ext
3756 if $ac_preproc_ok; then
3757 break
3760 done
3761 ac_cv_prog_CPP=$CPP
3764 CPP=$ac_cv_prog_CPP
3765 else
3766 ac_cv_prog_CPP=$CPP
3768 { echo "$as_me:$LINENO: result: $CPP" >&5
3769 echo "${ECHO_T}$CPP" >&6; }
3770 ac_preproc_ok=false
3771 for ac_c_preproc_warn_flag in '' yes
3773 # Use a header file that comes with gcc, so configuring glibc
3774 # with a fresh cross-compiler works.
3775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3776 # <limits.h> exists even on freestanding compilers.
3777 # On the NeXT, cc -E runs the code through the compiler's parser,
3778 # not just through cpp. "Syntax error" is here to catch this case.
3779 cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h. */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3785 #ifdef __STDC__
3786 # include <limits.h>
3787 #else
3788 # include <assert.h>
3789 #endif
3790 Syntax error
3791 _ACEOF
3792 if { (ac_try="$ac_cpp conftest.$ac_ext"
3793 case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3799 ac_status=$?
3800 grep -v '^ *+' conftest.er1 >conftest.err
3801 rm -f conftest.er1
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } >/dev/null && {
3805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3806 test ! -s conftest.err
3807 }; then
3809 else
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3813 # Broken: fails on valid input.
3814 continue
3817 rm -f conftest.err conftest.$ac_ext
3819 # OK, works on sane cases. Now check whether nonexistent headers
3820 # can be detected and how.
3821 cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h. */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 #include <ac_nonexistent.h>
3828 _ACEOF
3829 if { (ac_try="$ac_cpp conftest.$ac_ext"
3830 case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833 esac
3834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3836 ac_status=$?
3837 grep -v '^ *+' conftest.er1 >conftest.err
3838 rm -f conftest.er1
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } >/dev/null && {
3842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3843 test ! -s conftest.err
3844 }; then
3845 # Broken: success on invalid input.
3846 continue
3847 else
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 # Passes both tests.
3852 ac_preproc_ok=:
3853 break
3856 rm -f conftest.err conftest.$ac_ext
3858 done
3859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3860 rm -f conftest.err conftest.$ac_ext
3861 if $ac_preproc_ok; then
3863 else
3864 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3865 See \`config.log' for more details." >&5
3866 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3867 See \`config.log' for more details." >&2;}
3868 { (exit 1); exit 1; }; }
3871 ac_ext=c
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3879 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3880 if test "${ac_cv_path_GREP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883 # Extract the first word of "grep ggrep" to use in msg output
3884 if test -z "$GREP"; then
3885 set dummy grep ggrep; ac_prog_name=$2
3886 if test "${ac_cv_path_GREP+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 ac_path_GREP_found=false
3890 # Loop through the user's path and test for each of PROGNAME-LIST
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_prog in grep ggrep; do
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3899 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3900 # Check for GNU ac_path_GREP and select it if it is found.
3901 # Check for GNU $ac_path_GREP
3902 case `"$ac_path_GREP" --version 2>&1` in
3903 *GNU*)
3904 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3906 ac_count=0
3907 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3908 while :
3910 cat "conftest.in" "conftest.in" >"conftest.tmp"
3911 mv "conftest.tmp" "conftest.in"
3912 cp "conftest.in" "conftest.nl"
3913 echo 'GREP' >> "conftest.nl"
3914 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3916 ac_count=`expr $ac_count + 1`
3917 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3918 # Best one so far, save it but keep looking for a better one
3919 ac_cv_path_GREP="$ac_path_GREP"
3920 ac_path_GREP_max=$ac_count
3922 # 10*(2^10) chars as input seems more than enough
3923 test $ac_count -gt 10 && break
3924 done
3925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3926 esac
3929 $ac_path_GREP_found && break 3
3930 done
3931 done
3933 done
3934 IFS=$as_save_IFS
3939 GREP="$ac_cv_path_GREP"
3940 if test -z "$GREP"; then
3941 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3942 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3943 { (exit 1); exit 1; }; }
3946 else
3947 ac_cv_path_GREP=$GREP
3952 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3953 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3954 GREP="$ac_cv_path_GREP"
3957 { echo "$as_me:$LINENO: checking for egrep" >&5
3958 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_EGREP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3963 then ac_cv_path_EGREP="$GREP -E"
3964 else
3965 # Extract the first word of "egrep" to use in msg output
3966 if test -z "$EGREP"; then
3967 set dummy egrep; ac_prog_name=$2
3968 if test "${ac_cv_path_EGREP+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971 ac_path_EGREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_prog in egrep; do
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3982 # Check for GNU ac_path_EGREP and select it if it is found.
3983 # Check for GNU $ac_path_EGREP
3984 case `"$ac_path_EGREP" --version 2>&1` in
3985 *GNU*)
3986 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3988 ac_count=0
3989 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3990 while :
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 echo 'EGREP' >> "conftest.nl"
3996 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998 ac_count=`expr $ac_count + 1`
3999 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_EGREP="$ac_path_EGREP"
4002 ac_path_EGREP_max=$ac_count
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4006 done
4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 esac
4011 $ac_path_EGREP_found && break 3
4012 done
4013 done
4015 done
4016 IFS=$as_save_IFS
4021 EGREP="$ac_cv_path_EGREP"
4022 if test -z "$EGREP"; then
4023 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4025 { (exit 1); exit 1; }; }
4028 else
4029 ac_cv_path_EGREP=$EGREP
4035 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4036 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4037 EGREP="$ac_cv_path_EGREP"
4040 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4042 if test "${ac_cv_header_stdc+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045 cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h. */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4051 #include <stdlib.h>
4052 #include <stdarg.h>
4053 #include <string.h>
4054 #include <float.h>
4057 main ()
4061 return 0;
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (ac_try="$ac_compile"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_compile") 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && {
4078 test -z "$ac_c_werror_flag" ||
4079 test ! -s conftest.err
4080 } && test -s conftest.$ac_objext; then
4081 ac_cv_header_stdc=yes
4082 else
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 ac_cv_header_stdc=no
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 if test $ac_cv_header_stdc = yes; then
4092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4093 cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h. */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 #include <string.h>
4101 _ACEOF
4102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4103 $EGREP "memchr" >/dev/null 2>&1; then
4105 else
4106 ac_cv_header_stdc=no
4108 rm -f conftest*
4112 if test $ac_cv_header_stdc = yes; then
4113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <stdlib.h>
4122 _ACEOF
4123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124 $EGREP "free" >/dev/null 2>&1; then
4126 else
4127 ac_cv_header_stdc=no
4129 rm -f conftest*
4133 if test $ac_cv_header_stdc = yes; then
4134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4135 if test "$cross_compiling" = yes; then
4137 else
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <ctype.h>
4145 #include <stdlib.h>
4146 #if ((' ' & 0x0FF) == 0x020)
4147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4149 #else
4150 # define ISLOWER(c) \
4151 (('a' <= (c) && (c) <= 'i') \
4152 || ('j' <= (c) && (c) <= 'r') \
4153 || ('s' <= (c) && (c) <= 'z'))
4154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4155 #endif
4157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4159 main ()
4161 int i;
4162 for (i = 0; i < 256; i++)
4163 if (XOR (islower (i), ISLOWER (i))
4164 || toupper (i) != TOUPPER (i))
4165 return 2;
4166 return 0;
4168 _ACEOF
4169 rm -f conftest$ac_exeext
4170 if { (ac_try="$ac_link"
4171 case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174 esac
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_link") 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4190 else
4191 echo "$as_me: program exited with status $ac_status" >&5
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 ( exit $ac_status )
4196 ac_cv_header_stdc=no
4198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4204 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4205 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4206 if test $ac_cv_header_stdc = yes; then
4208 cat >>confdefs.h <<\_ACEOF
4209 #define STDC_HEADERS 1
4210 _ACEOF
4214 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4224 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4225 inttypes.h stdint.h unistd.h
4227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h. */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 $ac_includes_default
4241 #include <$ac_header>
4242 _ACEOF
4243 rm -f conftest.$ac_objext
4244 if { (ac_try="$ac_compile"
4245 case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_compile") 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } && {
4257 test -z "$ac_c_werror_flag" ||
4258 test ! -s conftest.err
4259 } && test -s conftest.$ac_objext; then
4260 eval "$as_ac_Header=yes"
4261 else
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4265 eval "$as_ac_Header=no"
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 ac_res=`eval echo '${'$as_ac_Header'}'`
4271 { echo "$as_me:$LINENO: result: $ac_res" >&5
4272 echo "${ECHO_T}$ac_res" >&6; }
4273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4274 cat >>confdefs.h <<_ACEOF
4275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4276 _ACEOF
4280 done
4283 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4284 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4285 if test "${ac_cv_c_bigendian+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288 # See if sys/param.h defines the BYTE_ORDER macro.
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h. */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 #include <sys/types.h>
4296 #include <sys/param.h>
4299 main ()
4301 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4302 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4303 bogus endian macros
4304 #endif
4307 return 0;
4309 _ACEOF
4310 rm -f conftest.$ac_objext
4311 if { (ac_try="$ac_compile"
4312 case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315 esac
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_compile") 2>conftest.er1
4318 ac_status=$?
4319 grep -v '^ *+' conftest.er1 >conftest.err
4320 rm -f conftest.er1
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } && {
4324 test -z "$ac_c_werror_flag" ||
4325 test ! -s conftest.err
4326 } && test -s conftest.$ac_objext; then
4327 # It does; now see whether it defined to BIG_ENDIAN or not.
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h. */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 #include <sys/types.h>
4335 #include <sys/param.h>
4338 main ()
4340 #if BYTE_ORDER != BIG_ENDIAN
4341 not big endian
4342 #endif
4345 return 0;
4347 _ACEOF
4348 rm -f conftest.$ac_objext
4349 if { (ac_try="$ac_compile"
4350 case "(($ac_try" in
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4353 esac
4354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355 (eval "$ac_compile") 2>conftest.er1
4356 ac_status=$?
4357 grep -v '^ *+' conftest.er1 >conftest.err
4358 rm -f conftest.er1
4359 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } && {
4362 test -z "$ac_c_werror_flag" ||
4363 test ! -s conftest.err
4364 } && test -s conftest.$ac_objext; then
4365 ac_cv_c_bigendian=yes
4366 else
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 ac_cv_c_bigendian=no
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 else
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4378 # It does not; compile a test program.
4379 if test "$cross_compiling" = yes; then
4380 # try to guess the endianness by grepping values into an object file
4381 ac_cv_c_bigendian=unknown
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4389 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4390 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4391 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4392 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4393 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4395 main ()
4397 _ascii (); _ebcdic ();
4399 return 0;
4401 _ACEOF
4402 rm -f conftest.$ac_objext
4403 if { (ac_try="$ac_compile"
4404 case "(($ac_try" in
4405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4407 esac
4408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4409 (eval "$ac_compile") 2>conftest.er1
4410 ac_status=$?
4411 grep -v '^ *+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } && {
4416 test -z "$ac_c_werror_flag" ||
4417 test ! -s conftest.err
4418 } && test -s conftest.$ac_objext; then
4419 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4420 ac_cv_c_bigendian=yes
4422 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4423 if test "$ac_cv_c_bigendian" = unknown; then
4424 ac_cv_c_bigendian=no
4425 else
4426 # finding both strings is unlikely to happen, but who knows?
4427 ac_cv_c_bigendian=unknown
4430 else
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 else
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 $ac_includes_default
4447 main ()
4450 /* Are we little or big endian? From Harbison&Steele. */
4451 union
4453 long int l;
4454 char c[sizeof (long int)];
4455 } u;
4456 u.l = 1;
4457 return u.c[sizeof (long int) - 1] == 1;
4460 return 0;
4462 _ACEOF
4463 rm -f conftest$ac_exeext
4464 if { (ac_try="$ac_link"
4465 case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468 esac
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_link") 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4474 { (case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477 esac
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_try") 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_cv_c_bigendian=no
4484 else
4485 echo "$as_me: program exited with status $ac_status" >&5
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 ( exit $ac_status )
4490 ac_cv_c_bigendian=yes
4492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4501 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4502 case $ac_cv_c_bigendian in
4503 yes)
4505 cat >>confdefs.h <<\_ACEOF
4506 #define WORDS_BIGENDIAN 1
4507 _ACEOF
4512 { { echo "$as_me:$LINENO: error: unknown endianness
4513 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4514 echo "$as_me: error: unknown endianness
4515 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4516 { (exit 1); exit 1; }; } ;;
4517 esac
4519 { echo "$as_me:$LINENO: checking for void *" >&5
4520 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4521 if test "${ac_cv_type_void_p+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524 cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h. */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4531 typedef void * ac__type_new_;
4533 main ()
4535 if ((ac__type_new_ *) 0)
4536 return 0;
4537 if (sizeof (ac__type_new_))
4538 return 0;
4540 return 0;
4542 _ACEOF
4543 rm -f conftest.$ac_objext
4544 if { (ac_try="$ac_compile"
4545 case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_compile") 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && {
4557 test -z "$ac_c_werror_flag" ||
4558 test ! -s conftest.err
4559 } && test -s conftest.$ac_objext; then
4560 ac_cv_type_void_p=yes
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 ac_cv_type_void_p=no
4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4571 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4573 # The cast to long int works around a bug in the HP C Compiler
4574 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4575 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4576 # This bug is HP SR number 8606223364.
4577 { echo "$as_me:$LINENO: checking size of void *" >&5
4578 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4579 if test "${ac_cv_sizeof_void_p+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582 if test "$cross_compiling" = yes; then
4583 # Depending upon the size, compute the lo and hi bounds.
4584 cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 $ac_includes_default
4591 typedef void * ac__type_sizeof_;
4593 main ()
4595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4596 test_array [0] = 0
4599 return 0;
4601 _ACEOF
4602 rm -f conftest.$ac_objext
4603 if { (ac_try="$ac_compile"
4604 case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4607 esac
4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609 (eval "$ac_compile") 2>conftest.er1
4610 ac_status=$?
4611 grep -v '^ *+' conftest.er1 >conftest.err
4612 rm -f conftest.er1
4613 cat conftest.err >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } && {
4616 test -z "$ac_c_werror_flag" ||
4617 test ! -s conftest.err
4618 } && test -s conftest.$ac_objext; then
4619 ac_lo=0 ac_mid=0
4620 while :; do
4621 cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h. */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4627 $ac_includes_default
4628 typedef void * ac__type_sizeof_;
4630 main ()
4632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4633 test_array [0] = 0
4636 return 0;
4638 _ACEOF
4639 rm -f conftest.$ac_objext
4640 if { (ac_try="$ac_compile"
4641 case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644 esac
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_compile") 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest.$ac_objext; then
4656 ac_hi=$ac_mid; break
4657 else
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661 ac_lo=`expr $ac_mid + 1`
4662 if test $ac_lo -le $ac_mid; then
4663 ac_lo= ac_hi=
4664 break
4666 ac_mid=`expr 2 '*' $ac_mid + 1`
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 done
4671 else
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4675 cat >conftest.$ac_ext <<_ACEOF
4676 /* confdefs.h. */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 $ac_includes_default
4682 typedef void * ac__type_sizeof_;
4684 main ()
4686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4687 test_array [0] = 0
4690 return 0;
4692 _ACEOF
4693 rm -f conftest.$ac_objext
4694 if { (ac_try="$ac_compile"
4695 case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698 esac
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700 (eval "$ac_compile") 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } && {
4707 test -z "$ac_c_werror_flag" ||
4708 test ! -s conftest.err
4709 } && test -s conftest.$ac_objext; then
4710 ac_hi=-1 ac_mid=-1
4711 while :; do
4712 cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h. */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4718 $ac_includes_default
4719 typedef void * ac__type_sizeof_;
4721 main ()
4723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4724 test_array [0] = 0
4727 return 0;
4729 _ACEOF
4730 rm -f conftest.$ac_objext
4731 if { (ac_try="$ac_compile"
4732 case "(($ac_try" in
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4735 esac
4736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4737 (eval "$ac_compile") 2>conftest.er1
4738 ac_status=$?
4739 grep -v '^ *+' conftest.er1 >conftest.err
4740 rm -f conftest.er1
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } && {
4744 test -z "$ac_c_werror_flag" ||
4745 test ! -s conftest.err
4746 } && test -s conftest.$ac_objext; then
4747 ac_lo=$ac_mid; break
4748 else
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4752 ac_hi=`expr '(' $ac_mid ')' - 1`
4753 if test $ac_mid -le $ac_hi; then
4754 ac_lo= ac_hi=
4755 break
4757 ac_mid=`expr 2 '*' $ac_mid`
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 done
4762 else
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 ac_lo= ac_hi=
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 # Binary search between lo and hi bounds.
4774 while test "x$ac_lo" != "x$ac_hi"; do
4775 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h. */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 $ac_includes_default
4783 typedef void * ac__type_sizeof_;
4785 main ()
4787 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4788 test_array [0] = 0
4791 return 0;
4793 _ACEOF
4794 rm -f conftest.$ac_objext
4795 if { (ac_try="$ac_compile"
4796 case "(($ac_try" in
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4799 esac
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_compile") 2>conftest.er1
4802 ac_status=$?
4803 grep -v '^ *+' conftest.er1 >conftest.err
4804 rm -f conftest.er1
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } && {
4808 test -z "$ac_c_werror_flag" ||
4809 test ! -s conftest.err
4810 } && test -s conftest.$ac_objext; then
4811 ac_hi=$ac_mid
4812 else
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 ac_lo=`expr '(' $ac_mid ')' + 1`
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 done
4821 case $ac_lo in
4822 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4823 '') if test "$ac_cv_type_void_p" = yes; then
4824 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4825 See \`config.log' for more details." >&5
4826 echo "$as_me: error: cannot compute sizeof (void *)
4827 See \`config.log' for more details." >&2;}
4828 { (exit 77); exit 77; }; }
4829 else
4830 ac_cv_sizeof_void_p=0
4831 fi ;;
4832 esac
4833 else
4834 cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h. */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 $ac_includes_default
4841 typedef void * ac__type_sizeof_;
4842 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4843 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4844 #include <stdio.h>
4845 #include <stdlib.h>
4847 main ()
4850 FILE *f = fopen ("conftest.val", "w");
4851 if (! f)
4852 return 1;
4853 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4855 long int i = longval ();
4856 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4857 return 1;
4858 fprintf (f, "%ld\n", i);
4860 else
4862 unsigned long int i = ulongval ();
4863 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4864 return 1;
4865 fprintf (f, "%lu\n", i);
4867 return ferror (f) || fclose (f) != 0;
4870 return 0;
4872 _ACEOF
4873 rm -f conftest$ac_exeext
4874 if { (ac_try="$ac_link"
4875 case "(($ac_try" in
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4878 esac
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_link") 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4884 { (case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887 esac
4888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889 (eval "$ac_try") 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_cv_sizeof_void_p=`cat conftest.val`
4894 else
4895 echo "$as_me: program exited with status $ac_status" >&5
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4899 ( exit $ac_status )
4900 if test "$ac_cv_type_void_p" = yes; then
4901 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4902 See \`config.log' for more details." >&5
4903 echo "$as_me: error: cannot compute sizeof (void *)
4904 See \`config.log' for more details." >&2;}
4905 { (exit 77); exit 77; }; }
4906 else
4907 ac_cv_sizeof_void_p=0
4910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4912 rm -f conftest.val
4914 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4915 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4919 cat >>confdefs.h <<_ACEOF
4920 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4921 _ACEOF
4924 { echo "$as_me:$LINENO: checking for long" >&5
4925 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4926 if test "${ac_cv_type_long+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929 cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h. */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4935 $ac_includes_default
4936 typedef long ac__type_new_;
4938 main ()
4940 if ((ac__type_new_ *) 0)
4941 return 0;
4942 if (sizeof (ac__type_new_))
4943 return 0;
4945 return 0;
4947 _ACEOF
4948 rm -f conftest.$ac_objext
4949 if { (ac_try="$ac_compile"
4950 case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953 esac
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_compile") 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && {
4962 test -z "$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 } && test -s conftest.$ac_objext; then
4965 ac_cv_type_long=yes
4966 else
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 ac_cv_type_long=no
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4976 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4978 # The cast to long int works around a bug in the HP C Compiler
4979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4981 # This bug is HP SR number 8606223364.
4982 { echo "$as_me:$LINENO: checking size of long" >&5
4983 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4984 if test "${ac_cv_sizeof_long+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987 if test "$cross_compiling" = yes; then
4988 # Depending upon the size, compute the lo and hi bounds.
4989 cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h. */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 $ac_includes_default
4996 typedef long ac__type_sizeof_;
4998 main ()
5000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5001 test_array [0] = 0
5004 return 0;
5006 _ACEOF
5007 rm -f conftest.$ac_objext
5008 if { (ac_try="$ac_compile"
5009 case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012 esac
5013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014 (eval "$ac_compile") 2>conftest.er1
5015 ac_status=$?
5016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } && {
5021 test -z "$ac_c_werror_flag" ||
5022 test ! -s conftest.err
5023 } && test -s conftest.$ac_objext; then
5024 ac_lo=0 ac_mid=0
5025 while :; do
5026 cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h. */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5032 $ac_includes_default
5033 typedef long ac__type_sizeof_;
5035 main ()
5037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5038 test_array [0] = 0
5041 return 0;
5043 _ACEOF
5044 rm -f conftest.$ac_objext
5045 if { (ac_try="$ac_compile"
5046 case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049 esac
5050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051 (eval "$ac_compile") 2>conftest.er1
5052 ac_status=$?
5053 grep -v '^ *+' conftest.er1 >conftest.err
5054 rm -f conftest.er1
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } && {
5058 test -z "$ac_c_werror_flag" ||
5059 test ! -s conftest.err
5060 } && test -s conftest.$ac_objext; then
5061 ac_hi=$ac_mid; break
5062 else
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5066 ac_lo=`expr $ac_mid + 1`
5067 if test $ac_lo -le $ac_mid; then
5068 ac_lo= ac_hi=
5069 break
5071 ac_mid=`expr 2 '*' $ac_mid + 1`
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 done
5076 else
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080 cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h. */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 $ac_includes_default
5087 typedef long ac__type_sizeof_;
5089 main ()
5091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5092 test_array [0] = 0
5095 return 0;
5097 _ACEOF
5098 rm -f conftest.$ac_objext
5099 if { (ac_try="$ac_compile"
5100 case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103 esac
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_compile") 2>conftest.er1
5106 ac_status=$?
5107 grep -v '^ *+' conftest.er1 >conftest.err
5108 rm -f conftest.er1
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } && {
5112 test -z "$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5114 } && test -s conftest.$ac_objext; then
5115 ac_hi=-1 ac_mid=-1
5116 while :; do
5117 cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h. */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 $ac_includes_default
5124 typedef long ac__type_sizeof_;
5126 main ()
5128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5129 test_array [0] = 0
5132 return 0;
5134 _ACEOF
5135 rm -f conftest.$ac_objext
5136 if { (ac_try="$ac_compile"
5137 case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140 esac
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_compile") 2>conftest.er1
5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && {
5149 test -z "$ac_c_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest.$ac_objext; then
5152 ac_lo=$ac_mid; break
5153 else
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5157 ac_hi=`expr '(' $ac_mid ')' - 1`
5158 if test $ac_mid -le $ac_hi; then
5159 ac_lo= ac_hi=
5160 break
5162 ac_mid=`expr 2 '*' $ac_mid`
5165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166 done
5167 else
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5171 ac_lo= ac_hi=
5174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 # Binary search between lo and hi bounds.
5179 while test "x$ac_lo" != "x$ac_hi"; do
5180 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 $ac_includes_default
5188 typedef long ac__type_sizeof_;
5190 main ()
5192 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5193 test_array [0] = 0
5196 return 0;
5198 _ACEOF
5199 rm -f conftest.$ac_objext
5200 if { (ac_try="$ac_compile"
5201 case "(($ac_try" in
5202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203 *) ac_try_echo=$ac_try;;
5204 esac
5205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206 (eval "$ac_compile") 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } && {
5213 test -z "$ac_c_werror_flag" ||
5214 test ! -s conftest.err
5215 } && test -s conftest.$ac_objext; then
5216 ac_hi=$ac_mid
5217 else
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 ac_lo=`expr '(' $ac_mid ')' + 1`
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 done
5226 case $ac_lo in
5227 ?*) ac_cv_sizeof_long=$ac_lo;;
5228 '') if test "$ac_cv_type_long" = yes; then
5229 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5230 See \`config.log' for more details." >&5
5231 echo "$as_me: error: cannot compute sizeof (long)
5232 See \`config.log' for more details." >&2;}
5233 { (exit 77); exit 77; }; }
5234 else
5235 ac_cv_sizeof_long=0
5236 fi ;;
5237 esac
5238 else
5239 cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h. */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245 $ac_includes_default
5246 typedef long ac__type_sizeof_;
5247 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5248 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5249 #include <stdio.h>
5250 #include <stdlib.h>
5252 main ()
5255 FILE *f = fopen ("conftest.val", "w");
5256 if (! f)
5257 return 1;
5258 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5260 long int i = longval ();
5261 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5262 return 1;
5263 fprintf (f, "%ld\n", i);
5265 else
5267 unsigned long int i = ulongval ();
5268 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5269 return 1;
5270 fprintf (f, "%lu\n", i);
5272 return ferror (f) || fclose (f) != 0;
5275 return 0;
5277 _ACEOF
5278 rm -f conftest$ac_exeext
5279 if { (ac_try="$ac_link"
5280 case "(($ac_try" in
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5283 esac
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_link") 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5289 { (case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_try") 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5298 ac_cv_sizeof_long=`cat conftest.val`
5299 else
5300 echo "$as_me: program exited with status $ac_status" >&5
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5304 ( exit $ac_status )
5305 if test "$ac_cv_type_long" = yes; then
5306 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5307 See \`config.log' for more details." >&5
5308 echo "$as_me: error: cannot compute sizeof (long)
5309 See \`config.log' for more details." >&2;}
5310 { (exit 77); exit 77; }; }
5311 else
5312 ac_cv_sizeof_long=0
5315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5317 rm -f conftest.val
5319 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5320 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5324 cat >>confdefs.h <<_ACEOF
5325 #define SIZEOF_LONG $ac_cv_sizeof_long
5326 _ACEOF
5330 if test "x$host_m32" = x1; then
5331 # Force 32-bit mode.
5332 CFLAGS="$CFLAGS -m32"
5333 LDFLAGS="$LDFLAGS -m32"
5336 # Check LZO when compiling for the i386-pc.
5337 if test "$target_cpu"-"$platform" = i386-pc; then
5338 # Check whether --enable-lzo was given.
5339 if test "${enable_lzo+set}" = set; then
5340 enableval=$enable_lzo;
5343 if [ x"$enable_lzo" = xyes ]; then
5344 # There are three possibilities. LZO version 2 installed with the name
5345 # liblzo2, with the name liblzo, and LZO version 1.
5347 cat >>confdefs.h <<\_ACEOF
5348 #define ENABLE_LZO 1
5349 _ACEOF
5351 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5352 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
5353 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 ac_check_lib_save_LIBS=$LIBS
5357 LIBS="-llzo2 $LIBS"
5358 cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h. */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5365 /* Override any GCC internal prototype to avoid an error.
5366 Use char because int might match the return type of a GCC
5367 builtin and then its argument prototype would still apply. */
5368 #ifdef __cplusplus
5369 extern "C"
5370 #endif
5371 char __lzo_init_v2 ();
5373 main ()
5375 return __lzo_init_v2 ();
5377 return 0;
5379 _ACEOF
5380 rm -f conftest.$ac_objext conftest$ac_exeext
5381 if { (ac_try="$ac_link"
5382 case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_link") 2>conftest.er1
5388 ac_status=$?
5389 grep -v '^ *+' conftest.er1 >conftest.err
5390 rm -f conftest.er1
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } && {
5394 test -z "$ac_c_werror_flag" ||
5395 test ! -s conftest.err
5396 } && test -s conftest$ac_exeext &&
5397 $as_test_x conftest$ac_exeext; then
5398 ac_cv_lib_lzo2___lzo_init_v2=yes
5399 else
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ac_cv_lib_lzo2___lzo_init_v2=no
5406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5407 conftest$ac_exeext conftest.$ac_ext
5408 LIBS=$ac_check_lib_save_LIBS
5410 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5411 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
5412 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5413 LIBLZO="-llzo2"
5414 else
5415 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5416 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
5417 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 ac_check_lib_save_LIBS=$LIBS
5421 LIBS="-llzo $LIBS"
5422 cat >conftest.$ac_ext <<_ACEOF
5423 /* confdefs.h. */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5429 /* Override any GCC internal prototype to avoid an error.
5430 Use char because int might match the return type of a GCC
5431 builtin and then its argument prototype would still apply. */
5432 #ifdef __cplusplus
5433 extern "C"
5434 #endif
5435 char __lzo_init_v2 ();
5437 main ()
5439 return __lzo_init_v2 ();
5441 return 0;
5443 _ACEOF
5444 rm -f conftest.$ac_objext conftest$ac_exeext
5445 if { (ac_try="$ac_link"
5446 case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449 esac
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_link") 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest$ac_exeext &&
5461 $as_test_x conftest$ac_exeext; then
5462 ac_cv_lib_lzo___lzo_init_v2=yes
5463 else
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5467 ac_cv_lib_lzo___lzo_init_v2=no
5470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5471 conftest$ac_exeext conftest.$ac_ext
5472 LIBS=$ac_check_lib_save_LIBS
5474 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5475 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
5476 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5477 LIBLZO="-llzo"
5478 else
5479 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5480 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
5481 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484 ac_check_lib_save_LIBS=$LIBS
5485 LIBS="-llzo $LIBS"
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h. */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5493 /* Override any GCC internal prototype to avoid an error.
5494 Use char because int might match the return type of a GCC
5495 builtin and then its argument prototype would still apply. */
5496 #ifdef __cplusplus
5497 extern "C"
5498 #endif
5499 char __lzo_init2 ();
5501 main ()
5503 return __lzo_init2 ();
5505 return 0;
5507 _ACEOF
5508 rm -f conftest.$ac_objext conftest$ac_exeext
5509 if { (ac_try="$ac_link"
5510 case "(($ac_try" in
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5513 esac
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_link") 2>conftest.er1
5516 ac_status=$?
5517 grep -v '^ *+' conftest.er1 >conftest.err
5518 rm -f conftest.er1
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } && {
5522 test -z "$ac_c_werror_flag" ||
5523 test ! -s conftest.err
5524 } && test -s conftest$ac_exeext &&
5525 $as_test_x conftest$ac_exeext; then
5526 ac_cv_lib_lzo___lzo_init2=yes
5527 else
5528 echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5531 ac_cv_lib_lzo___lzo_init2=no
5534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5535 conftest$ac_exeext conftest.$ac_ext
5536 LIBS=$ac_check_lib_save_LIBS
5538 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5539 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
5540 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
5541 LIBLZO="-llzo"
5542 else
5543 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
5544 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
5545 { (exit 1); exit 1; }; }
5553 LIBS="$LIBS $LIBLZO"
5554 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
5555 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
5556 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h. */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
5566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5567 #define lzo1x_999_compress innocuous_lzo1x_999_compress
5569 /* System header to define __stub macros and hopefully few prototypes,
5570 which can conflict with char lzo1x_999_compress (); below.
5571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5572 <limits.h> exists even on freestanding compilers. */
5574 #ifdef __STDC__
5575 # include <limits.h>
5576 #else
5577 # include <assert.h>
5578 #endif
5580 #undef lzo1x_999_compress
5582 /* Override any GCC internal prototype to avoid an error.
5583 Use char because int might match the return type of a GCC
5584 builtin and then its argument prototype would still apply. */
5585 #ifdef __cplusplus
5586 extern "C"
5587 #endif
5588 char lzo1x_999_compress ();
5589 /* The GNU C library defines this for functions which it implements
5590 to always fail with ENOSYS. Some functions are actually named
5591 something starting with __ and the normal name is an alias. */
5592 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
5593 choke me
5594 #endif
5597 main ()
5599 return lzo1x_999_compress ();
5601 return 0;
5603 _ACEOF
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (ac_try="$ac_link"
5606 case "(($ac_try" in
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5609 esac
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_link") 2>conftest.er1
5612 ac_status=$?
5613 grep -v '^ *+' conftest.er1 >conftest.err
5614 rm -f conftest.er1
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } && {
5618 test -z "$ac_c_werror_flag" ||
5619 test ! -s conftest.err
5620 } && test -s conftest$ac_exeext &&
5621 $as_test_x conftest$ac_exeext; then
5622 ac_cv_func_lzo1x_999_compress=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 ac_cv_func_lzo1x_999_compress=no
5630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5631 conftest$ac_exeext conftest.$ac_ext
5633 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
5634 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
5635 if test $ac_cv_func_lzo1x_999_compress = yes; then
5637 else
5638 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
5639 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
5640 { (exit 1); exit 1; }; }
5644 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
5647 for ac_header in lzo/lzo1x.h lzo1x.h
5649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 ac_res=`eval echo '${'$as_ac_Header'}'`
5657 { echo "$as_me:$LINENO: result: $ac_res" >&5
5658 echo "${ECHO_T}$ac_res" >&6; }
5659 else
5660 # Is the header compilable?
5661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 $ac_includes_default
5670 #include <$ac_header>
5671 _ACEOF
5672 rm -f conftest.$ac_objext
5673 if { (ac_try="$ac_compile"
5674 case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5677 esac
5678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679 (eval "$ac_compile") 2>conftest.er1
5680 ac_status=$?
5681 grep -v '^ *+' conftest.er1 >conftest.err
5682 rm -f conftest.er1
5683 cat conftest.err >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } && {
5686 test -z "$ac_c_werror_flag" ||
5687 test ! -s conftest.err
5688 } && test -s conftest.$ac_objext; then
5689 ac_header_compiler=yes
5690 else
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5694 ac_header_compiler=no
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5699 echo "${ECHO_T}$ac_header_compiler" >&6; }
5701 # Is the header present?
5702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <$ac_header>
5711 _ACEOF
5712 if { (ac_try="$ac_cpp conftest.$ac_ext"
5713 case "(($ac_try" in
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5716 esac
5717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5719 ac_status=$?
5720 grep -v '^ *+' conftest.er1 >conftest.err
5721 rm -f conftest.er1
5722 cat conftest.err >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } >/dev/null && {
5725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5726 test ! -s conftest.err
5727 }; then
5728 ac_header_preproc=yes
5729 else
5730 echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5733 ac_header_preproc=no
5736 rm -f conftest.err conftest.$ac_ext
5737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5738 echo "${ECHO_T}$ac_header_preproc" >&6; }
5740 # So? What about this header?
5741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5742 yes:no: )
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5747 ac_header_preproc=yes
5749 no:yes:* )
5750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5762 ( cat <<\_ASBOX
5763 ## ------------------------------- ##
5764 ## Report this to bug-grub@gnu.org ##
5765 ## ------------------------------- ##
5766 _ASBOX
5767 ) | sed "s/^/$as_me: WARNING: /" >&2
5769 esac
5770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775 eval "$as_ac_Header=\$ac_header_preproc"
5777 ac_res=`eval echo '${'$as_ac_Header'}'`
5778 { echo "$as_me:$LINENO: result: $ac_res" >&5
5779 echo "${ECHO_T}$ac_res" >&6; }
5782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5783 cat >>confdefs.h <<_ACEOF
5784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5785 _ACEOF
5789 done
5791 else
5793 cat >>confdefs.h <<\_ACEOF
5794 #define ENABLE_LZMA 1
5795 _ACEOF
5801 # Check for functions.
5805 for ac_func in posix_memalign memalign asprintf
5807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813 cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h. */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5821 #define $ac_func innocuous_$ac_func
5823 /* System header to define __stub macros and hopefully few prototypes,
5824 which can conflict with char $ac_func (); below.
5825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5826 <limits.h> exists even on freestanding compilers. */
5828 #ifdef __STDC__
5829 # include <limits.h>
5830 #else
5831 # include <assert.h>
5832 #endif
5834 #undef $ac_func
5836 /* Override any GCC internal prototype to avoid an error.
5837 Use char because int might match the return type of a GCC
5838 builtin and then its argument prototype would still apply. */
5839 #ifdef __cplusplus
5840 extern "C"
5841 #endif
5842 char $ac_func ();
5843 /* The GNU C library defines this for functions which it implements
5844 to always fail with ENOSYS. Some functions are actually named
5845 something starting with __ and the normal name is an alias. */
5846 #if defined __stub_$ac_func || defined __stub___$ac_func
5847 choke me
5848 #endif
5851 main ()
5853 return $ac_func ();
5855 return 0;
5857 _ACEOF
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (ac_try="$ac_link"
5860 case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_link") 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest$ac_exeext &&
5875 $as_test_x conftest$ac_exeext; then
5876 eval "$as_ac_var=yes"
5877 else
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 eval "$as_ac_var=no"
5884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5885 conftest$ac_exeext conftest.$ac_ext
5887 ac_res=`eval echo '${'$as_ac_var'}'`
5888 { echo "$as_me:$LINENO: result: $ac_res" >&5
5889 echo "${ECHO_T}$ac_res" >&6; }
5890 if test `eval echo '${'$as_ac_var'}'` = yes; then
5891 cat >>confdefs.h <<_ACEOF
5892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5893 _ACEOF
5896 done
5900 # Check for target programs.
5904 # Use linker script if present, otherwise use builtin -N script.
5905 { echo "$as_me:$LINENO: checking for option to link raw image" >&5
5906 echo $ECHO_N "checking for option to link raw image... $ECHO_C" >&6; }
5907 if test -f "${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
5908 TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
5909 TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
5910 TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
5911 else
5912 TARGET_IMG_LDSCRIPT=
5913 TARGET_IMG_LDFLAGS='-Wl,-N'
5914 TARGET_IMG_LDFLAGS_AC='-Wl,-N'
5918 { echo "$as_me:$LINENO: result: $TARGET_IMG_LDFLAGS_AC" >&5
5919 echo "${ECHO_T}$TARGET_IMG_LDFLAGS_AC" >&6; }
5921 # For platforms where ELF is not the default link format.
5922 { echo "$as_me:$LINENO: checking for command to convert module to ELF format" >&5
5923 echo $ECHO_N "checking for command to convert module to ELF format... $ECHO_C" >&6; }
5924 case "${host_os}" in
5925 cygwin) TARGET_OBJ2ELF='grub-pe2elf' ;;
5926 *) ;;
5927 esac
5929 { echo "$as_me:$LINENO: result: $TARGET_OBJ2ELF" >&5
5930 echo "${ECHO_T}$TARGET_OBJ2ELF" >&6; }
5932 # For cross-compiling.
5933 if test "x$build" != "x$host"; then
5934 # XXX this depends on the implementation of autoconf!
5935 tmp_ac_tool_prefix="$ac_tool_prefix"
5936 ac_tool_prefix=$target_alias-
5938 if test -n "$ac_tool_prefix"; then
5939 for ac_prog in gcc egcs cc
5941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 if test -n "$TARGET_CC"; then
5949 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 break 2
5962 done
5963 done
5964 IFS=$as_save_IFS
5968 TARGET_CC=$ac_cv_prog_TARGET_CC
5969 if test -n "$TARGET_CC"; then
5970 { echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5971 echo "${ECHO_T}$TARGET_CC" >&6; }
5972 else
5973 { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5978 test -n "$TARGET_CC" && break
5979 done
5981 if test -z "$TARGET_CC"; then
5982 ac_ct_TARGET_CC=$TARGET_CC
5983 for ac_prog in gcc egcs cc
5985 # Extract the first word of "$ac_prog", so it can be a program name with args.
5986 set dummy $ac_prog; ac_word=$2
5987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5989 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992 if test -n "$ac_ct_TARGET_CC"; then
5993 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
5994 else
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6002 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
6003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6006 done
6007 done
6008 IFS=$as_save_IFS
6012 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
6013 if test -n "$ac_ct_TARGET_CC"; then
6014 { echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
6015 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6; }
6016 else
6017 { echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6; }
6022 test -n "$ac_ct_TARGET_CC" && break
6023 done
6025 if test "x$ac_ct_TARGET_CC" = x; then
6026 TARGET_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
6027 echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
6028 { (exit 1); exit 1; }; }"
6029 else
6030 case $cross_compiling:$ac_tool_warned in
6031 yes:)
6032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6033 whose name does not start with the host triplet. If you think this
6034 configuration is useful to you, please write to autoconf@gnu.org." >&5
6035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6036 whose name does not start with the host triplet. If you think this
6037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6038 ac_tool_warned=yes ;;
6039 esac
6040 TARGET_CC=$ac_ct_TARGET_CC
6044 if test -n "$ac_tool_prefix"; then
6045 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 if test -n "$OBJCOPY"; then
6053 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6062 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 break 2
6066 done
6067 done
6068 IFS=$as_save_IFS
6072 OBJCOPY=$ac_cv_prog_OBJCOPY
6073 if test -n "$OBJCOPY"; then
6074 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6075 echo "${ECHO_T}$OBJCOPY" >&6; }
6076 else
6077 { echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6; }
6083 if test -z "$ac_cv_prog_OBJCOPY"; then
6084 ac_ct_OBJCOPY=$OBJCOPY
6085 # Extract the first word of "objcopy", so it can be a program name with args.
6086 set dummy objcopy; ac_word=$2
6087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6089 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092 if test -n "$ac_ct_OBJCOPY"; then
6093 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6102 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6106 done
6107 done
6108 IFS=$as_save_IFS
6112 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6113 if test -n "$ac_ct_OBJCOPY"; then
6114 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6115 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6116 else
6117 { echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6; }
6121 if test "x$ac_ct_OBJCOPY" = x; then
6122 OBJCOPY=""
6123 else
6124 case $cross_compiling:$ac_tool_warned in
6125 yes:)
6126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6127 whose name does not start with the host triplet. If you think this
6128 configuration is useful to you, please write to autoconf@gnu.org." >&5
6129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6130 whose name does not start with the host triplet. If you think this
6131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6132 ac_tool_warned=yes ;;
6133 esac
6134 OBJCOPY=$ac_ct_OBJCOPY
6136 else
6137 OBJCOPY="$ac_cv_prog_OBJCOPY"
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}strip; ac_word=$2
6143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_STRIP+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148 if test -n "$STRIP"; then
6149 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6162 done
6163 done
6164 IFS=$as_save_IFS
6168 STRIP=$ac_cv_prog_STRIP
6169 if test -n "$STRIP"; then
6170 { echo "$as_me:$LINENO: result: $STRIP" >&5
6171 echo "${ECHO_T}$STRIP" >&6; }
6172 else
6173 { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6179 if test -z "$ac_cv_prog_STRIP"; then
6180 ac_ct_STRIP=$STRIP
6181 # Extract the first word of "strip", so it can be a program name with args.
6182 set dummy strip; ac_word=$2
6183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6185 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188 if test -n "$ac_ct_STRIP"; then
6189 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_STRIP="strip"
6199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6202 done
6203 done
6204 IFS=$as_save_IFS
6208 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6209 if test -n "$ac_ct_STRIP"; then
6210 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6211 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6212 else
6213 { echo "$as_me:$LINENO: result: no" >&5
6214 echo "${ECHO_T}no" >&6; }
6217 if test "x$ac_ct_STRIP" = x; then
6218 STRIP=""
6219 else
6220 case $cross_compiling:$ac_tool_warned in
6221 yes:)
6222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6223 whose name does not start with the host triplet. If you think this
6224 configuration is useful to you, please write to autoconf@gnu.org." >&5
6225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6226 whose name does not start with the host triplet. If you think this
6227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6228 ac_tool_warned=yes ;;
6229 esac
6230 STRIP=$ac_ct_STRIP
6232 else
6233 STRIP="$ac_cv_prog_STRIP"
6236 if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}nm; ac_word=$2
6239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6241 if test "${ac_cv_prog_NM+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244 if test -n "$NM"; then
6245 ac_cv_prog_NM="$NM" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254 ac_cv_prog_NM="${ac_tool_prefix}nm"
6255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6258 done
6259 done
6260 IFS=$as_save_IFS
6264 NM=$ac_cv_prog_NM
6265 if test -n "$NM"; then
6266 { echo "$as_me:$LINENO: result: $NM" >&5
6267 echo "${ECHO_T}$NM" >&6; }
6268 else
6269 { echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6; }
6275 if test -z "$ac_cv_prog_NM"; then
6276 ac_ct_NM=$NM
6277 # Extract the first word of "nm", so it can be a program name with args.
6278 set dummy nm; ac_word=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284 if test -n "$ac_ct_NM"; then
6285 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_ac_ct_NM="nm"
6295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6298 done
6299 done
6300 IFS=$as_save_IFS
6304 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6305 if test -n "$ac_ct_NM"; then
6306 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6307 echo "${ECHO_T}$ac_ct_NM" >&6; }
6308 else
6309 { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6313 if test "x$ac_ct_NM" = x; then
6314 NM=""
6315 else
6316 case $cross_compiling:$ac_tool_warned in
6317 yes:)
6318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6319 whose name does not start with the host triplet. If you think this
6320 configuration is useful to you, please write to autoconf@gnu.org." >&5
6321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6322 whose name does not start with the host triplet. If you think this
6323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6324 ac_tool_warned=yes ;;
6325 esac
6326 NM=$ac_ct_NM
6328 else
6329 NM="$ac_cv_prog_NM"
6333 ac_tool_prefix="$tmp_ac_tool_prefix"
6334 else
6335 if test "x$TARGET_CC" = x; then
6336 TARGET_CC=$CC
6338 if test -n "$ac_tool_prefix"; then
6339 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6340 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346 if test -n "$OBJCOPY"; then
6347 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6360 done
6361 done
6362 IFS=$as_save_IFS
6366 OBJCOPY=$ac_cv_prog_OBJCOPY
6367 if test -n "$OBJCOPY"; then
6368 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6369 echo "${ECHO_T}$OBJCOPY" >&6; }
6370 else
6371 { echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6; }
6377 if test -z "$ac_cv_prog_OBJCOPY"; then
6378 ac_ct_OBJCOPY=$OBJCOPY
6379 # Extract the first word of "objcopy", so it can be a program name with args.
6380 set dummy objcopy; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 if test -n "$ac_ct_OBJCOPY"; then
6387 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6400 done
6401 done
6402 IFS=$as_save_IFS
6406 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6407 if test -n "$ac_ct_OBJCOPY"; then
6408 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6409 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6410 else
6411 { echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6; }
6415 if test "x$ac_ct_OBJCOPY" = x; then
6416 OBJCOPY=""
6417 else
6418 case $cross_compiling:$ac_tool_warned in
6419 yes:)
6420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6421 whose name does not start with the host triplet. If you think this
6422 configuration is useful to you, please write to autoconf@gnu.org." >&5
6423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6424 whose name does not start with the host triplet. If you think this
6425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6426 ac_tool_warned=yes ;;
6427 esac
6428 OBJCOPY=$ac_ct_OBJCOPY
6430 else
6431 OBJCOPY="$ac_cv_prog_OBJCOPY"
6434 if test -n "$ac_tool_prefix"; then
6435 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6436 set dummy ${ac_tool_prefix}strip; ac_word=$2
6437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439 if test "${ac_cv_prog_STRIP+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442 if test -n "$STRIP"; then
6443 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6444 else
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6448 IFS=$as_save_IFS
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6452 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 break 2
6456 done
6457 done
6458 IFS=$as_save_IFS
6462 STRIP=$ac_cv_prog_STRIP
6463 if test -n "$STRIP"; then
6464 { echo "$as_me:$LINENO: result: $STRIP" >&5
6465 echo "${ECHO_T}$STRIP" >&6; }
6466 else
6467 { echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6; }
6473 if test -z "$ac_cv_prog_STRIP"; then
6474 ac_ct_STRIP=$STRIP
6475 # Extract the first word of "strip", so it can be a program name with args.
6476 set dummy strip; ac_word=$2
6477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6479 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 if test -n "$ac_ct_STRIP"; then
6483 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_prog_ac_ct_STRIP="strip"
6493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6496 done
6497 done
6498 IFS=$as_save_IFS
6502 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6503 if test -n "$ac_ct_STRIP"; then
6504 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6505 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6506 else
6507 { echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6; }
6511 if test "x$ac_ct_STRIP" = x; then
6512 STRIP=""
6513 else
6514 case $cross_compiling:$ac_tool_warned in
6515 yes:)
6516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6517 whose name does not start with the host triplet. If you think this
6518 configuration is useful to you, please write to autoconf@gnu.org." >&5
6519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6520 whose name does not start with the host triplet. If you think this
6521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6522 ac_tool_warned=yes ;;
6523 esac
6524 STRIP=$ac_ct_STRIP
6526 else
6527 STRIP="$ac_cv_prog_STRIP"
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}nm; ac_word=$2
6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535 if test "${ac_cv_prog_NM+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538 if test -n "$NM"; then
6539 ac_cv_prog_NM="$NM" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_prog_NM="${ac_tool_prefix}nm"
6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6552 done
6553 done
6554 IFS=$as_save_IFS
6558 NM=$ac_cv_prog_NM
6559 if test -n "$NM"; then
6560 { echo "$as_me:$LINENO: result: $NM" >&5
6561 echo "${ECHO_T}$NM" >&6; }
6562 else
6563 { echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6; }
6569 if test -z "$ac_cv_prog_NM"; then
6570 ac_ct_NM=$NM
6571 # Extract the first word of "nm", so it can be a program name with args.
6572 set dummy nm; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578 if test -n "$ac_ct_NM"; then
6579 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_ac_ct_NM="nm"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6592 done
6593 done
6594 IFS=$as_save_IFS
6598 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6599 if test -n "$ac_ct_NM"; then
6600 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6601 echo "${ECHO_T}$ac_ct_NM" >&6; }
6602 else
6603 { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6607 if test "x$ac_ct_NM" = x; then
6608 NM=""
6609 else
6610 case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6613 whose name does not start with the host triplet. If you think this
6614 configuration is useful to you, please write to autoconf@gnu.org." >&5
6615 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6616 whose name does not start with the host triplet. If you think this
6617 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620 NM=$ac_ct_NM
6622 else
6623 NM="$ac_cv_prog_NM"
6630 # Test the C compiler for the target environment.
6631 tmp_CC="$CC"
6632 tmp_CFLAGS="$CFLAGS"
6633 tmp_LDFLAGS="$LDFLAGS"
6634 tmp_CPPFLAGS="$CPPFLAGS"
6635 tmp_LIBS="$LIBS"
6636 CC="$TARGET_CC"
6637 CFLAGS="$TARGET_CFLAGS"
6638 CPPFLAGS="$TARGET_CPPFLAGS"
6639 LDFLAGS="$TARGET_LDFLAGS"
6640 LIBS=""
6642 if test "x$TARGET_CFLAGS" = x; then
6643 # debug flags.
6644 TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
6645 -Wundef -Wstrict-prototypes -g"
6647 # optimization flags.
6648 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
6649 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
6650 if test "${grub_cv_cc_Os+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6654 CFLAGS=-Os
6655 cat >conftest.$ac_ext <<_ACEOF
6656 /* confdefs.h. */
6657 _ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6663 main ()
6667 return 0;
6669 _ACEOF
6670 rm -f conftest.$ac_objext
6671 if { (ac_try="$ac_compile"
6672 case "(($ac_try" in
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6675 esac
6676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6677 (eval "$ac_compile") 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } && {
6684 test -z "$ac_c_werror_flag" ||
6685 test ! -s conftest.err
6686 } && test -s conftest.$ac_objext; then
6687 grub_cv_cc_Os=yes
6688 else
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6692 grub_cv_cc_Os=no
6695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 { echo "$as_me:$LINENO: result: $grub_cv_cc_Os" >&5
6699 echo "${ECHO_T}$grub_cv_cc_Os" >&6; }
6700 if test "x$grub_cv_cc_Os" = xyes; then
6701 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
6702 else
6703 TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
6706 # Force no alignment to save space on i386.
6707 if test "x$target_cpu" = xi386; then
6708 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
6709 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
6710 if test "${grub_cv_cc_falign_loop+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6714 CFLAGS="-falign-loops=1"
6715 cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h. */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6723 main ()
6727 return 0;
6729 _ACEOF
6730 rm -f conftest.$ac_objext
6731 if { (ac_try="$ac_compile"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_compile") 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest.$ac_objext; then
6747 grub_cv_cc_falign_loop=yes
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 grub_cv_cc_falign_loop=no
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 { echo "$as_me:$LINENO: result: $grub_cv_cc_falign_loop" >&5
6759 echo "${ECHO_T}$grub_cv_cc_falign_loop" >&6; }
6761 if test "x$grub_cv_cc_falign_loop" = xyes; then
6762 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
6763 else
6764 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
6769 if test "x$target_m32" = x1; then
6770 # Force 32-bit mode.
6771 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
6772 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
6775 if test "x$target_m64" = x1; then
6776 # Force 64-bit mode.
6777 TARGET_CFLAGS="$TARGET_CFLAGS -m64"
6778 TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
6782 # Compiler features.
6785 # Need __enable_execute_stack() for nested function trampolines?
6787 { echo "$as_me:$LINENO: checking whether \`$CC' generates calls to \`__enable_execute_stack()'" >&5
6788 echo $ECHO_N "checking whether \`$CC' generates calls to \`__enable_execute_stack()'... $ECHO_C" >&6; }
6789 cat >conftest.$ac_ext <<_ACEOF
6791 void f (int (*p) (void));
6792 void g (int i)
6794 int nestedfunc (void) { return i; }
6795 f (nestedfunc);
6798 _ACEOF
6799 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } && test -s conftest.s; then
6805 true
6806 else
6807 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
6808 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
6809 { (exit 1); exit 1; }; }
6811 if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
6813 cat >>confdefs.h <<\_ACEOF
6814 #define NEED_ENABLE_EXECUTE_STACK 1
6815 _ACEOF
6817 { echo "$as_me:$LINENO: result: yes" >&5
6818 echo "${ECHO_T}yes" >&6; }
6819 else
6820 { echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6; }
6823 rm -f conftest*
6826 # Smashing stack protector.
6828 # Smashing stack protector.
6829 ssp_possible=yes
6830 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-fstack-protector'" >&5
6831 echo $ECHO_N "checking whether \`$CC' accepts \`-fstack-protector'... $ECHO_C" >&6; }
6832 # Is this a reliable test case?
6833 cat >conftest.$ac_ext <<_ACEOF
6834 void foo (void) { volatile char a[8]; a[3]; }
6835 _ACEOF
6836 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
6837 # `ac_compile' like this correct, after all?
6838 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
6839 { echo "$as_me:$LINENO: result: yes" >&5
6840 echo "${ECHO_T}yes" >&6; }
6841 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6842 rm -f conftest.s
6843 else
6844 ssp_possible=no
6845 { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6849 # Need that, because some distributions ship compilers that include
6850 # `-fstack-protector' in the default specs.
6851 if test "x$ssp_possible" = xyes; then
6852 TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
6855 # Smashing stack arg probe.
6856 sap_possible=yes
6857 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
6858 echo $ECHO_N "checking whether \`$CC' accepts \`-mstack-arg-probe'... $ECHO_C" >&6; }
6859 cat >conftest.$ac_ext <<_ACEOF
6860 void foo (void) { volatile char a[8]; a[3]; }
6861 _ACEOF
6862 if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then
6863 { echo "$as_me:$LINENO: result: yes" >&5
6864 echo "${ECHO_T}yes" >&6; }
6865 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6866 rm -f conftest.s
6867 else
6868 sap_possible=no
6869 { echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6; }
6873 # Cygwin's GCC uses alloca() to probe the stackframe on static
6874 # stack allocations above some threshold.
6875 if test x"$sap_possible" = xyes; then
6876 TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
6884 # Set them to their new values for the tests below.
6885 CC="$TARGET_CC"
6886 CFLAGS="$TARGET_CFLAGS"
6887 CPPFLAGS="$TARGET_CPPFLAGS"
6888 LDFLAGS="$TARGET_LDFLAGS"
6890 # Defined in aclocal.m4.
6891 { echo "$as_me:$LINENO: checking whether target compiler is working" >&5
6892 echo $ECHO_N "checking whether target compiler is working... $ECHO_C" >&6; }
6893 if test "${grub_cv_prog_target_cc+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896 cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h. */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6904 main ()
6908 return 0;
6910 _ACEOF
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (ac_try="$ac_link"
6913 case "(($ac_try" in
6914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915 *) ac_try_echo=$ac_try;;
6916 esac
6917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918 (eval "$ac_link") 2>conftest.er1
6919 ac_status=$?
6920 grep -v '^ *+' conftest.er1 >conftest.err
6921 rm -f conftest.er1
6922 cat conftest.err >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && {
6925 test -z "$ac_c_werror_flag" ||
6926 test ! -s conftest.err
6927 } && test -s conftest$ac_exeext &&
6928 $as_test_x conftest$ac_exeext; then
6929 grub_cv_prog_target_cc=yes
6930 else
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6934 grub_cv_prog_target_cc=no
6937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6938 conftest$ac_exeext conftest.$ac_ext
6942 { echo "$as_me:$LINENO: result: $grub_cv_prog_target_cc" >&5
6943 echo "${ECHO_T}$grub_cv_prog_target_cc" >&6; }
6945 if test "x$grub_cv_prog_target_cc" = xno; then
6946 { { echo "$as_me:$LINENO: error: cannot compile for the target" >&5
6947 echo "$as_me: error: cannot compile for the target" >&2;}
6948 { (exit 1); exit 1; }; }
6951 { echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
6952 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6; }
6953 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956 cat > conftest.c <<\EOF
6957 void
6958 cmain (void)
6960 *((int *) 0x1000) = 2;
6964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6965 (eval $ac_compile) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && test -s conftest.o; then :
6969 else
6970 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
6971 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
6972 { (exit 1); exit 1; }; }
6974 grub_cv_prog_objcopy_absolute=yes
6975 for link_addr in 2000 8000 7C00; do
6976 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 (eval $ac_try) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then :
6982 else
6983 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
6984 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
6985 { (exit 1); exit 1; }; }
6987 if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then :
6993 else
6994 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
6995 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
6996 { (exit 1); exit 1; }; }
6998 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 mv -f conftest conftest.old
7005 else
7006 grub_cv_prog_objcopy_absolute=no
7007 break
7009 done
7010 rm -f conftest*
7013 { echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
7014 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
7016 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
7017 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
7018 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
7019 { (exit 1); exit 1; }; }
7022 { echo "$as_me:$LINENO: checking whether linker accepts --build-id=none" >&5
7023 echo $ECHO_N "checking whether linker accepts --build-id=none... $ECHO_C" >&6; }
7024 if test "${grub_cv_prog_ld_build_id_none+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027 save_LDFLAGS="$LDFLAGS"
7028 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7037 main ()
7041 return 0;
7043 _ACEOF
7044 rm -f conftest.$ac_objext conftest$ac_exeext
7045 if { (ac_try="$ac_link"
7046 case "(($ac_try" in
7047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048 *) ac_try_echo=$ac_try;;
7049 esac
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051 (eval "$ac_link") 2>conftest.er1
7052 ac_status=$?
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } && {
7058 test -z "$ac_c_werror_flag" ||
7059 test ! -s conftest.err
7060 } && test -s conftest$ac_exeext &&
7061 $as_test_x conftest$ac_exeext; then
7062 grub_cv_prog_ld_build_id_none=yes
7063 else
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7067 grub_cv_prog_ld_build_id_none=no
7070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7071 conftest$ac_exeext conftest.$ac_ext
7072 LDFLAGS="$save_LDFLAGS"
7076 { echo "$as_me:$LINENO: result: $grub_cv_prog_ld_build_id_none" >&5
7077 echo "${ECHO_T}$grub_cv_prog_ld_build_id_none" >&6; }
7079 if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
7080 MODULE_LDFLAGS="$MODULE_LDFLAGS -Wl,--build-id=none"
7084 { echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
7085 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6; }
7086 if test "${grub_cv_asm_uscore+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089 cat > conftest.c <<\EOF
7091 func (int *list)
7093 *list = 0;
7094 return *list;
7098 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 (eval $ac_try) 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; } && test -s conftest.s; then
7104 true
7105 else
7106 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
7107 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
7108 { (exit 1); exit 1; }; }
7111 if grep _func conftest.s >/dev/null 2>&1; then
7112 grub_cv_asm_uscore=yes
7113 else
7114 grub_cv_asm_uscore=no
7117 rm -f conftest*
7121 if test "x$grub_cv_asm_uscore" = xyes; then
7123 cat >>confdefs.h <<_ACEOF
7124 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
7125 _ACEOF
7129 { echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
7130 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
7132 if test "x$target_cpu" = xi386; then
7133 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
7134 # Check symbols provided by linker script.
7135 CFLAGS="$TARGET_CFLAGS -nostdlib $TARGET_IMG_LDFLAGS_AC -Wl,-Ttext,8000,--defsym,___main=0x8100"
7137 if test "x$platform" = xpc; then
7139 { echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
7140 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6; }
7141 if test "${grub_cv_check_start_symbol+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144 cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h. */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7152 main ()
7154 asm ("incl start")
7156 return 0;
7158 _ACEOF
7159 rm -f conftest.$ac_objext conftest$ac_exeext
7160 if { (ac_try="$ac_link"
7161 case "(($ac_try" in
7162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163 *) ac_try_echo=$ac_try;;
7164 esac
7165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166 (eval "$ac_link") 2>conftest.er1
7167 ac_status=$?
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } && {
7173 test -z "$ac_c_werror_flag" ||
7174 test ! -s conftest.err
7175 } && test -s conftest$ac_exeext &&
7176 $as_test_x conftest$ac_exeext; then
7177 grub_cv_check_start_symbol=yes
7178 else
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7182 grub_cv_check_start_symbol=no
7185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7186 conftest$ac_exeext conftest.$ac_ext
7190 { echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
7191 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6; }
7193 { echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
7194 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6; }
7195 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7206 main ()
7208 asm ("incl _start")
7210 return 0;
7212 _ACEOF
7213 rm -f conftest.$ac_objext conftest$ac_exeext
7214 if { (ac_try="$ac_link"
7215 case "(($ac_try" in
7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7218 esac
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220 (eval "$ac_link") 2>conftest.er1
7221 ac_status=$?
7222 grep -v '^ *+' conftest.er1 >conftest.err
7223 rm -f conftest.er1
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } && {
7227 test -z "$ac_c_werror_flag" ||
7228 test ! -s conftest.err
7229 } && test -s conftest$ac_exeext &&
7230 $as_test_x conftest$ac_exeext; then
7231 grub_cv_check_uscore_start_symbol=yes
7232 else
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7236 grub_cv_check_uscore_start_symbol=no
7239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7240 conftest$ac_exeext conftest.$ac_ext
7244 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
7245 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6; }
7250 if test "x$grub_cv_check_start_symbol" = xyes; then
7251 cat >>confdefs.h <<\_ACEOF
7252 #define START_SYMBOL start
7253 _ACEOF
7255 elif test "x$grub_cv_check_uscore_start_symbol" = xyes; then
7256 cat >>confdefs.h <<\_ACEOF
7257 #define START_SYMBOL _start
7258 _ACEOF
7260 else
7261 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
7262 echo "$as_me: error: neither start nor _start is defined" >&2;}
7263 { (exit 1); exit 1; }; }
7267 { echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
7268 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6; }
7269 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272 cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h. */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7280 main ()
7282 asm ("incl __bss_start")
7284 return 0;
7286 _ACEOF
7287 rm -f conftest.$ac_objext conftest$ac_exeext
7288 if { (ac_try="$ac_link"
7289 case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292 esac
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_link") 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest$ac_exeext &&
7304 $as_test_x conftest$ac_exeext; then
7305 grub_cv_check_uscore_uscore_bss_start_symbol=yes
7306 else
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 grub_cv_check_uscore_uscore_bss_start_symbol=no
7313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7314 conftest$ac_exeext conftest.$ac_ext
7318 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
7319 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
7321 { echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
7322 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6; }
7323 if test "${grub_cv_check_edata_symbol+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326 cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h. */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7334 main ()
7336 asm ("incl edata")
7338 return 0;
7340 _ACEOF
7341 rm -f conftest.$ac_objext conftest$ac_exeext
7342 if { (ac_try="$ac_link"
7343 case "(($ac_try" in
7344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345 *) ac_try_echo=$ac_try;;
7346 esac
7347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7348 (eval "$ac_link") 2>conftest.er1
7349 ac_status=$?
7350 grep -v '^ *+' conftest.er1 >conftest.err
7351 rm -f conftest.er1
7352 cat conftest.err >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } && {
7355 test -z "$ac_c_werror_flag" ||
7356 test ! -s conftest.err
7357 } && test -s conftest$ac_exeext &&
7358 $as_test_x conftest$ac_exeext; then
7359 grub_cv_check_edata_symbol=yes
7360 else
7361 echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7364 grub_cv_check_edata_symbol=no
7367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7368 conftest$ac_exeext conftest.$ac_ext
7372 { echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
7373 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
7375 { echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
7376 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6; }
7377 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7388 main ()
7390 asm ("incl _edata")
7392 return 0;
7394 _ACEOF
7395 rm -f conftest.$ac_objext conftest$ac_exeext
7396 if { (ac_try="$ac_link"
7397 case "(($ac_try" in
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7400 esac
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_link") 2>conftest.er1
7403 ac_status=$?
7404 grep -v '^ *+' conftest.er1 >conftest.err
7405 rm -f conftest.er1
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest$ac_exeext &&
7412 $as_test_x conftest$ac_exeext; then
7413 grub_cv_check_uscore_edata_symbol=yes
7414 else
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7418 grub_cv_check_uscore_edata_symbol=no
7421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7422 conftest$ac_exeext conftest.$ac_ext
7426 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
7427 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
7432 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
7433 cat >>confdefs.h <<\_ACEOF
7434 #define BSS_START_SYMBOL __bss_start
7435 _ACEOF
7437 elif test "x$grub_cv_check_edata_symbol" = xyes; then
7438 cat >>confdefs.h <<\_ACEOF
7439 #define BSS_START_SYMBOL edata
7440 _ACEOF
7442 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
7443 cat >>confdefs.h <<\_ACEOF
7444 #define BSS_START_SYMBOL _edata
7445 _ACEOF
7447 else
7448 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
7449 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
7450 { (exit 1); exit 1; }; }
7454 { echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
7455 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6; }
7456 if test "${grub_cv_check_end_symbol+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459 cat >conftest.$ac_ext <<_ACEOF
7460 /* confdefs.h. */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7467 main ()
7469 asm ("incl end")
7471 return 0;
7473 _ACEOF
7474 rm -f conftest.$ac_objext conftest$ac_exeext
7475 if { (ac_try="$ac_link"
7476 case "(($ac_try" in
7477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7478 *) ac_try_echo=$ac_try;;
7479 esac
7480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7481 (eval "$ac_link") 2>conftest.er1
7482 ac_status=$?
7483 grep -v '^ *+' conftest.er1 >conftest.err
7484 rm -f conftest.er1
7485 cat conftest.err >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } && {
7488 test -z "$ac_c_werror_flag" ||
7489 test ! -s conftest.err
7490 } && test -s conftest$ac_exeext &&
7491 $as_test_x conftest$ac_exeext; then
7492 grub_cv_check_end_symbol=yes
7493 else
7494 echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7497 grub_cv_check_end_symbol=no
7500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7501 conftest$ac_exeext conftest.$ac_ext
7505 { echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
7506 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
7508 { echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
7509 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6; }
7510 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7521 main ()
7523 asm ("incl _end")
7525 return 0;
7527 _ACEOF
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (ac_try="$ac_link"
7530 case "(($ac_try" in
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7533 esac
7534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535 (eval "$ac_link") 2>conftest.er1
7536 ac_status=$?
7537 grep -v '^ *+' conftest.er1 >conftest.err
7538 rm -f conftest.er1
7539 cat conftest.err >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest$ac_exeext &&
7545 $as_test_x conftest$ac_exeext; then
7546 grub_cv_check_uscore_end_symbol=yes
7547 else
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 grub_cv_check_uscore_end_symbol=no
7554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7555 conftest$ac_exeext conftest.$ac_ext
7559 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
7560 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
7565 if test "x$grub_cv_check_end_symbol" = xyes; then
7566 cat >>confdefs.h <<\_ACEOF
7567 #define END_SYMBOL end
7568 _ACEOF
7570 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
7571 cat >>confdefs.h <<\_ACEOF
7572 #define END_SYMBOL _end
7573 _ACEOF
7575 else
7576 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
7577 echo "$as_me: error: neither end nor _end is defined" >&2;}
7578 { (exit 1); exit 1; }; }
7582 CFLAGS="$TARGET_CFLAGS"
7584 { echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
7585 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6; }
7586 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 cat > conftest.s <<\EOF
7590 .code16
7591 l1: addr32 movb %al, l1
7594 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } && test -s conftest.o; then
7600 grub_cv_i386_asm_prefix_requirement=yes
7601 else
7602 grub_cv_i386_asm_prefix_requirement=no
7605 rm -f conftest*
7609 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7610 grub_tmp_addr32="addr32"
7611 grub_tmp_data32="data32"
7612 else
7613 grub_tmp_addr32="addr32;"
7614 grub_tmp_data32="data32;"
7618 cat >>confdefs.h <<_ACEOF
7619 #define ADDR32 $grub_tmp_addr32
7620 _ACEOF
7623 cat >>confdefs.h <<_ACEOF
7624 #define DATA32 $grub_tmp_data32
7625 _ACEOF
7628 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
7629 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6; }
7632 { echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
7633 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6; }
7634 if test "${grub_cv_i386_asm_addr32+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 cat > conftest.s.in <<\EOF
7638 .code16
7639 l1: @ADDR32@ movb %al, l1
7642 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7643 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
7644 else
7645 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
7648 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 (eval $ac_try) 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; } && test -s conftest.o; then
7654 grub_cv_i386_asm_addr32=yes
7655 else
7656 grub_cv_i386_asm_addr32=no
7659 rm -f conftest*
7663 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
7664 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6; }
7666 { echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
7667 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6; }
7668 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671 cat > conftest.s <<\EOF
7672 lcall *(offset)
7673 offset:
7674 .long 0
7675 .word 0
7678 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 (eval $ac_try) 2>&5
7681 ac_status=$?
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; } && test -s conftest.o; then
7684 grub_cv_i386_asm_absolute_without_asterisk=no
7685 else
7686 grub_cv_i386_asm_absolute_without_asterisk=yes
7689 rm -f conftest*
7693 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
7695 cat >>confdefs.h <<\_ACEOF
7696 #define ABSOLUTE_WITHOUT_ASTERISK 1
7697 _ACEOF
7701 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
7702 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
7704 { echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
7705 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6; }
7706 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709 if test "$cross_compiling" = yes; then
7710 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7711 See \`config.log' for more details." >&5
7712 echo "$as_me: error: cannot run test program while cross compiling
7713 See \`config.log' for more details." >&2;}
7714 { (exit 1); exit 1; }; }
7715 else
7716 cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h. */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7723 static int
7724 test (int *n)
7726 return *n == -1;
7729 static int
7730 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
7732 int a = 0;
7733 int b = 0;
7734 int c = -1;
7735 return hook (a, b, &c);
7739 main (void)
7741 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
7743 return a == b && test (c);
7745 return testfunc (nestedfunc) ? 0 : 1;
7748 _ACEOF
7749 rm -f conftest$ac_exeext
7750 if { (ac_try="$ac_link"
7751 case "(($ac_try" in
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7754 esac
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_link") 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7760 { (case "(($ac_try" in
7761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7763 esac
7764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7765 (eval "$ac_try") 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 grub_cv_i386_check_nested_functions=no
7770 else
7771 echo "$as_me: program exited with status $ac_status" >&5
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7775 ( exit $ac_status )
7776 grub_cv_i386_check_nested_functions=yes
7778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7785 { echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5
7786 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6; }
7788 if test "x$grub_cv_i386_check_nested_functions" = xyes; then
7790 cat >>confdefs.h <<\_ACEOF
7791 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7792 _ACEOF
7794 else
7796 cat >>confdefs.h <<\_ACEOF
7797 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7798 _ACEOF
7802 else
7804 cat >>confdefs.h <<\_ACEOF
7805 #define NESTED_FUNC_ATTR
7806 _ACEOF
7810 # Restore the flags.
7811 CC="$tmp_CC"
7812 CFLAGS="$tmp_CFLAGS"
7813 CPPFLAGS="$tmp_CPPFLAGS"
7814 LDFLAGS="$tmp_LDFLAGS"
7815 LIBS="$tmp_LIBS"
7818 # Check for options.
7821 # Memory manager debugging.
7822 # Check whether --enable-mm-debug was given.
7823 if test "${enable_mm_debug+set}" = set; then
7824 enableval=$enable_mm_debug;
7825 cat >>confdefs.h <<\_ACEOF
7826 #define MM_DEBUG 1
7827 _ACEOF
7832 # Check whether --enable-grub-emu was given.
7833 if test "${enable_grub_emu+set}" = set; then
7834 enableval=$enable_grub_emu;
7837 # Check whether --enable-grub-emu-usb was given.
7838 if test "${enable_grub_emu_usb+set}" = set; then
7839 enableval=$enable_grub_emu_usb;
7842 if [ x"$enable_grub_emu" = xyes ]; then
7843 # Check for curses libraries.
7844 { echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
7845 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6; }
7846 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 else
7849 ac_check_lib_save_LIBS=$LIBS
7850 LIBS="-lncurses $LIBS"
7851 cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h. */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7858 /* Override any GCC internal prototype to avoid an error.
7859 Use char because int might match the return type of a GCC
7860 builtin and then its argument prototype would still apply. */
7861 #ifdef __cplusplus
7862 extern "C"
7863 #endif
7864 char wgetch ();
7866 main ()
7868 return wgetch ();
7870 return 0;
7872 _ACEOF
7873 rm -f conftest.$ac_objext conftest$ac_exeext
7874 if { (ac_try="$ac_link"
7875 case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878 esac
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_link") 2>conftest.er1
7881 ac_status=$?
7882 grep -v '^ *+' conftest.er1 >conftest.err
7883 rm -f conftest.er1
7884 cat conftest.err >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } && {
7887 test -z "$ac_c_werror_flag" ||
7888 test ! -s conftest.err
7889 } && test -s conftest$ac_exeext &&
7890 $as_test_x conftest$ac_exeext; then
7891 ac_cv_lib_ncurses_wgetch=yes
7892 else
7893 echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 ac_cv_lib_ncurses_wgetch=no
7899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7900 conftest$ac_exeext conftest.$ac_ext
7901 LIBS=$ac_check_lib_save_LIBS
7903 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
7904 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
7905 if test $ac_cv_lib_ncurses_wgetch = yes; then
7906 LIBCURSES="-lncurses"
7907 else
7908 { echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
7909 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6; }
7910 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913 ac_check_lib_save_LIBS=$LIBS
7914 LIBS="-lcurses $LIBS"
7915 cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h. */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7922 /* Override any GCC internal prototype to avoid an error.
7923 Use char because int might match the return type of a GCC
7924 builtin and then its argument prototype would still apply. */
7925 #ifdef __cplusplus
7926 extern "C"
7927 #endif
7928 char wgetch ();
7930 main ()
7932 return wgetch ();
7934 return 0;
7936 _ACEOF
7937 rm -f conftest.$ac_objext conftest$ac_exeext
7938 if { (ac_try="$ac_link"
7939 case "(($ac_try" in
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7942 esac
7943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944 (eval "$ac_link") 2>conftest.er1
7945 ac_status=$?
7946 grep -v '^ *+' conftest.er1 >conftest.err
7947 rm -f conftest.er1
7948 cat conftest.err >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } && {
7951 test -z "$ac_c_werror_flag" ||
7952 test ! -s conftest.err
7953 } && test -s conftest$ac_exeext &&
7954 $as_test_x conftest$ac_exeext; then
7955 ac_cv_lib_curses_wgetch=yes
7956 else
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7960 ac_cv_lib_curses_wgetch=no
7963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7964 conftest$ac_exeext conftest.$ac_ext
7965 LIBS=$ac_check_lib_save_LIBS
7967 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
7968 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
7969 if test $ac_cv_lib_curses_wgetch = yes; then
7970 LIBCURSES="-lcurses"
7971 else
7972 { { echo "$as_me:$LINENO: error: (n)curses libraries are required to build \`grub-emu'" >&5
7973 echo "$as_me: error: (n)curses libraries are required to build \`grub-emu'" >&2;}
7974 { (exit 1); exit 1; }; }
7981 # Check for headers.
7983 for ac_header in ncurses/curses.h
7985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 ac_res=`eval echo '${'$as_ac_Header'}'`
7993 { echo "$as_me:$LINENO: result: $ac_res" >&5
7994 echo "${ECHO_T}$ac_res" >&6; }
7995 else
7996 # Is the header compilable?
7997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7999 cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h. */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8005 $ac_includes_default
8006 #include <$ac_header>
8007 _ACEOF
8008 rm -f conftest.$ac_objext
8009 if { (ac_try="$ac_compile"
8010 case "(($ac_try" in
8011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8012 *) ac_try_echo=$ac_try;;
8013 esac
8014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8015 (eval "$ac_compile") 2>conftest.er1
8016 ac_status=$?
8017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } && {
8022 test -z "$ac_c_werror_flag" ||
8023 test ! -s conftest.err
8024 } && test -s conftest.$ac_objext; then
8025 ac_header_compiler=yes
8026 else
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 ac_header_compiler=no
8033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8035 echo "${ECHO_T}$ac_header_compiler" >&6; }
8037 # Is the header present?
8038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8040 cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h. */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046 #include <$ac_header>
8047 _ACEOF
8048 if { (ac_try="$ac_cpp conftest.$ac_ext"
8049 case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8052 esac
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } >/dev/null && {
8061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 }; then
8064 ac_header_preproc=yes
8065 else
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 ac_header_preproc=no
8072 rm -f conftest.err conftest.$ac_ext
8073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8074 echo "${ECHO_T}$ac_header_preproc" >&6; }
8076 # So? What about this header?
8077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8078 yes:no: )
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8083 ac_header_preproc=yes
8085 no:yes:* )
8086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8098 ( cat <<\_ASBOX
8099 ## ------------------------------- ##
8100 ## Report this to bug-grub@gnu.org ##
8101 ## ------------------------------- ##
8102 _ASBOX
8103 ) | sed "s/^/$as_me: WARNING: /" >&2
8105 esac
8106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 else
8111 eval "$as_ac_Header=\$ac_header_preproc"
8113 ac_res=`eval echo '${'$as_ac_Header'}'`
8114 { echo "$as_me:$LINENO: result: $ac_res" >&5
8115 echo "${ECHO_T}$ac_res" >&6; }
8118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8119 cat >>confdefs.h <<_ACEOF
8120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8121 _ACEOF
8123 else
8125 for ac_header in ncurses.h
8127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 ac_res=`eval echo '${'$as_ac_Header'}'`
8135 { echo "$as_me:$LINENO: result: $ac_res" >&5
8136 echo "${ECHO_T}$ac_res" >&6; }
8137 else
8138 # Is the header compilable?
8139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8141 cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h. */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 $ac_includes_default
8148 #include <$ac_header>
8149 _ACEOF
8150 rm -f conftest.$ac_objext
8151 if { (ac_try="$ac_compile"
8152 case "(($ac_try" in
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8155 esac
8156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8157 (eval "$ac_compile") 2>conftest.er1
8158 ac_status=$?
8159 grep -v '^ *+' conftest.er1 >conftest.err
8160 rm -f conftest.er1
8161 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && {
8164 test -z "$ac_c_werror_flag" ||
8165 test ! -s conftest.err
8166 } && test -s conftest.$ac_objext; then
8167 ac_header_compiler=yes
8168 else
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8172 ac_header_compiler=no
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8177 echo "${ECHO_T}$ac_header_compiler" >&6; }
8179 # Is the header present?
8180 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8182 cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h. */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188 #include <$ac_header>
8189 _ACEOF
8190 if { (ac_try="$ac_cpp conftest.$ac_ext"
8191 case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194 esac
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8197 ac_status=$?
8198 grep -v '^ *+' conftest.er1 >conftest.err
8199 rm -f conftest.er1
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } >/dev/null && {
8203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8204 test ! -s conftest.err
8205 }; then
8206 ac_header_preproc=yes
8207 else
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8211 ac_header_preproc=no
8214 rm -f conftest.err conftest.$ac_ext
8215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8216 echo "${ECHO_T}$ac_header_preproc" >&6; }
8218 # So? What about this header?
8219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8220 yes:no: )
8221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8225 ac_header_preproc=yes
8227 no:yes:* )
8228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8240 ( cat <<\_ASBOX
8241 ## ------------------------------- ##
8242 ## Report this to bug-grub@gnu.org ##
8243 ## ------------------------------- ##
8244 _ASBOX
8245 ) | sed "s/^/$as_me: WARNING: /" >&2
8247 esac
8248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253 eval "$as_ac_Header=\$ac_header_preproc"
8255 ac_res=`eval echo '${'$as_ac_Header'}'`
8256 { echo "$as_me:$LINENO: result: $ac_res" >&5
8257 echo "${ECHO_T}$ac_res" >&6; }
8260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8261 cat >>confdefs.h <<_ACEOF
8262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8263 _ACEOF
8265 else
8267 for ac_header in curses.h
8269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 ac_res=`eval echo '${'$as_ac_Header'}'`
8277 { echo "$as_me:$LINENO: result: $ac_res" >&5
8278 echo "${ECHO_T}$ac_res" >&6; }
8279 else
8280 # Is the header compilable?
8281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8283 cat >conftest.$ac_ext <<_ACEOF
8284 /* confdefs.h. */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8290 #include <$ac_header>
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8294 case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
8309 ac_header_compiler=yes
8310 else
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 ac_header_compiler=no
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8319 echo "${ECHO_T}$ac_header_compiler" >&6; }
8321 # Is the header present?
8322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8324 cat >conftest.$ac_ext <<_ACEOF
8325 /* confdefs.h. */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8330 #include <$ac_header>
8331 _ACEOF
8332 if { (ac_try="$ac_cpp conftest.$ac_ext"
8333 case "(($ac_try" in
8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335 *) ac_try_echo=$ac_try;;
8336 esac
8337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } >/dev/null && {
8345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8346 test ! -s conftest.err
8347 }; then
8348 ac_header_preproc=yes
8349 else
8350 echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8353 ac_header_preproc=no
8356 rm -f conftest.err conftest.$ac_ext
8357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8358 echo "${ECHO_T}$ac_header_preproc" >&6; }
8360 # So? What about this header?
8361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8362 yes:no: )
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8367 ac_header_preproc=yes
8369 no:yes:* )
8370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8382 ( cat <<\_ASBOX
8383 ## ------------------------------- ##
8384 ## Report this to bug-grub@gnu.org ##
8385 ## ------------------------------- ##
8386 _ASBOX
8387 ) | sed "s/^/$as_me: WARNING: /" >&2
8389 esac
8390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 else
8395 eval "$as_ac_Header=\$ac_header_preproc"
8397 ac_res=`eval echo '${'$as_ac_Header'}'`
8398 { echo "$as_me:$LINENO: result: $ac_res" >&5
8399 echo "${ECHO_T}$ac_res" >&6; }
8402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8403 cat >>confdefs.h <<_ACEOF
8404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8405 _ACEOF
8407 else
8408 { { echo "$as_me:$LINENO: error: (n)curses header files are required to build \`grub-emu'" >&5
8409 echo "$as_me: error: (n)curses header files are required to build \`grub-emu'" >&2;}
8410 { (exit 1); exit 1; }; }
8413 done
8417 done
8421 done
8424 if [ x"$enable_grub_emu_usb" = xyes ]; then
8425 # Check for libusb libraries.
8426 { echo "$as_me:$LINENO: checking for usb_claim_interface in -lusb" >&5
8427 echo $ECHO_N "checking for usb_claim_interface in -lusb... $ECHO_C" >&6; }
8428 if test "${ac_cv_lib_usb_usb_claim_interface+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 else
8431 ac_check_lib_save_LIBS=$LIBS
8432 LIBS="-lusb $LIBS"
8433 cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h. */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8440 /* Override any GCC internal prototype to avoid an error.
8441 Use char because int might match the return type of a GCC
8442 builtin and then its argument prototype would still apply. */
8443 #ifdef __cplusplus
8444 extern "C"
8445 #endif
8446 char usb_claim_interface ();
8448 main ()
8450 return usb_claim_interface ();
8452 return 0;
8454 _ACEOF
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (ac_try="$ac_link"
8457 case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8460 esac
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_link") 2>conftest.er1
8463 ac_status=$?
8464 grep -v '^ *+' conftest.er1 >conftest.err
8465 rm -f conftest.er1
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } && {
8469 test -z "$ac_c_werror_flag" ||
8470 test ! -s conftest.err
8471 } && test -s conftest$ac_exeext &&
8472 $as_test_x conftest$ac_exeext; then
8473 ac_cv_lib_usb_usb_claim_interface=yes
8474 else
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8478 ac_cv_lib_usb_usb_claim_interface=no
8481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8482 conftest$ac_exeext conftest.$ac_ext
8483 LIBS=$ac_check_lib_save_LIBS
8485 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_claim_interface" >&5
8486 echo "${ECHO_T}$ac_cv_lib_usb_usb_claim_interface" >&6; }
8487 if test $ac_cv_lib_usb_usb_claim_interface = yes; then
8488 LIBUSB="-lusb"
8489 else
8490 { { echo "$as_me:$LINENO: error: libusb libraries are required to build \`grub-emu' with USB support" >&5
8491 echo "$as_me: error: libusb libraries are required to build \`grub-emu' with USB support" >&2;}
8492 { (exit 1); exit 1; }; }
8497 # Check for headers.
8499 for ac_header in usb.h
8501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 ac_res=`eval echo '${'$as_ac_Header'}'`
8509 { echo "$as_me:$LINENO: result: $ac_res" >&5
8510 echo "${ECHO_T}$ac_res" >&6; }
8511 else
8512 # Is the header compilable?
8513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8515 cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h. */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8521 $ac_includes_default
8522 #include <$ac_header>
8523 _ACEOF
8524 rm -f conftest.$ac_objext
8525 if { (ac_try="$ac_compile"
8526 case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_compile") 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && {
8538 test -z "$ac_c_werror_flag" ||
8539 test ! -s conftest.err
8540 } && test -s conftest.$ac_objext; then
8541 ac_header_compiler=yes
8542 else
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 ac_header_compiler=no
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8551 echo "${ECHO_T}$ac_header_compiler" >&6; }
8553 # Is the header present?
8554 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8556 cat >conftest.$ac_ext <<_ACEOF
8557 /* confdefs.h. */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8562 #include <$ac_header>
8563 _ACEOF
8564 if { (ac_try="$ac_cpp conftest.$ac_ext"
8565 case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568 esac
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } >/dev/null && {
8577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8579 }; then
8580 ac_header_preproc=yes
8581 else
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_header_preproc=no
8588 rm -f conftest.err conftest.$ac_ext
8589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8590 echo "${ECHO_T}$ac_header_preproc" >&6; }
8592 # So? What about this header?
8593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8594 yes:no: )
8595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8599 ac_header_preproc=yes
8601 no:yes:* )
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8614 ( cat <<\_ASBOX
8615 ## ------------------------------- ##
8616 ## Report this to bug-grub@gnu.org ##
8617 ## ------------------------------- ##
8618 _ASBOX
8619 ) | sed "s/^/$as_me: WARNING: /" >&2
8621 esac
8622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627 eval "$as_ac_Header=\$ac_header_preproc"
8629 ac_res=`eval echo '${'$as_ac_Header'}'`
8630 { echo "$as_me:$LINENO: result: $ac_res" >&5
8631 echo "${ECHO_T}$ac_res" >&6; }
8634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8635 cat >>confdefs.h <<_ACEOF
8636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8637 _ACEOF
8639 else
8640 { { echo "$as_me:$LINENO: error: libusb header file is required to build \`grub-emu' with USB support" >&5
8641 echo "$as_me: error: libusb header file is required to build \`grub-emu' with USB support" >&2;}
8642 { (exit 1); exit 1; }; }
8645 done
8652 # Check whether --enable-grub-fstest was given.
8653 if test "${enable_grub_fstest+set}" = set; then
8654 enableval=$enable_grub_fstest;
8659 # Check whether --enable-grub-pe2elf was given.
8660 if test "${enable_grub_pe2elf+set}" = set; then
8661 enableval=$enable_grub_pe2elf;
8666 # Check whether --enable-grub-mkfont was given.
8667 if test "${enable_grub_mkfont+set}" = set; then
8668 enableval=$enable_grub_mkfont;
8671 if test x"$enable_grub_mkfont" = xyes ; then
8672 # Check for freetype libraries.
8673 for ac_prog in freetype-config
8675 # Extract the first word of "$ac_prog", so it can be a program name with args.
8676 set dummy $ac_prog; ac_word=$2
8677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8679 if test "${ac_cv_prog_FREETYPE+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 else
8682 if test -n "$FREETYPE"; then
8683 ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
8684 else
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692 ac_cv_prog_FREETYPE="$ac_prog"
8693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 break 2
8696 done
8697 done
8698 IFS=$as_save_IFS
8702 FREETYPE=$ac_cv_prog_FREETYPE
8703 if test -n "$FREETYPE"; then
8704 { echo "$as_me:$LINENO: result: $FREETYPE" >&5
8705 echo "${ECHO_T}$FREETYPE" >&6; }
8706 else
8707 { echo "$as_me:$LINENO: result: no" >&5
8708 echo "${ECHO_T}no" >&6; }
8712 test -n "$FREETYPE" && break
8713 done
8715 if test "x$FREETYPE" = x ; then
8716 { { echo "$as_me:$LINENO: error: freetype2 libraries are required to build \`grub-mkfont'" >&5
8717 echo "$as_me: error: freetype2 libraries are required to build \`grub-mkfont'" >&2;}
8718 { (exit 1); exit 1; }; }
8720 freetype_cflags=`freetype-config --cflags`
8721 freetype_libs=`freetype-config --libs`
8727 # Output files.
8728 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu include/grub/machine:include/grub/$target_cpu/$platform"
8730 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
8732 ac_config_files="$ac_config_files stamp-h"
8734 cat >confcache <<\_ACEOF
8735 # This file is a shell script that caches the results of configure
8736 # tests run on this system so they can be shared between configure
8737 # scripts and configure runs, see configure's option --config-cache.
8738 # It is not useful on other systems. If it contains results you don't
8739 # want to keep, you may remove or edit it.
8741 # config.status only pays attention to the cache file if you give it
8742 # the --recheck option to rerun configure.
8744 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8745 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8746 # following values.
8748 _ACEOF
8750 # The following way of writing the cache mishandles newlines in values,
8751 # but we know of no workaround that is simple, portable, and efficient.
8752 # So, we kill variables containing newlines.
8753 # Ultrix sh set writes to stderr and can't be redirected directly,
8754 # and sets the high bit in the cache file unless we assign to the vars.
8756 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8757 eval ac_val=\$$ac_var
8758 case $ac_val in #(
8759 *${as_nl}*)
8760 case $ac_var in #(
8761 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8762 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8763 esac
8764 case $ac_var in #(
8765 _ | IFS | as_nl) ;; #(
8766 *) $as_unset $ac_var ;;
8767 esac ;;
8768 esac
8769 done
8771 (set) 2>&1 |
8772 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8773 *${as_nl}ac_space=\ *)
8774 # `set' does not quote correctly, so add quotes (double-quote
8775 # substitution turns \\\\ into \\, and sed turns \\ into \).
8776 sed -n \
8777 "s/'/'\\\\''/g;
8778 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8779 ;; #(
8781 # `set' quotes correctly as required by POSIX, so do not add quotes.
8782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8784 esac |
8785 sort
8787 sed '
8788 /^ac_cv_env_/b end
8789 t clear
8790 :clear
8791 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8792 t end
8793 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8794 :end' >>confcache
8795 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8796 if test -w "$cache_file"; then
8797 test "x$cache_file" != "x/dev/null" &&
8798 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8799 echo "$as_me: updating cache $cache_file" >&6;}
8800 cat confcache >$cache_file
8801 else
8802 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8803 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8806 rm -f confcache
8808 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8809 # Let make expand exec_prefix.
8810 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8812 DEFS=-DHAVE_CONFIG_H
8814 ac_libobjs=
8815 ac_ltlibobjs=
8816 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8817 # 1. Remove the extension, and $U if already installed.
8818 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8819 ac_i=`echo "$ac_i" | sed "$ac_script"`
8820 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8821 # will be set to the directory where LIBOBJS objects are built.
8822 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8823 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8824 done
8825 LIBOBJS=$ac_libobjs
8827 LTLIBOBJS=$ac_ltlibobjs
8831 : ${CONFIG_STATUS=./config.status}
8832 ac_clean_files_save=$ac_clean_files
8833 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8834 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8835 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8836 cat >$CONFIG_STATUS <<_ACEOF
8837 #! $SHELL
8838 # Generated by $as_me.
8839 # Run this file to recreate the current configuration.
8840 # Compiler output produced by configure, useful for debugging
8841 # configure, is in config.log if it exists.
8843 debug=false
8844 ac_cs_recheck=false
8845 ac_cs_silent=false
8846 SHELL=\${CONFIG_SHELL-$SHELL}
8847 _ACEOF
8849 cat >>$CONFIG_STATUS <<\_ACEOF
8850 ## --------------------- ##
8851 ## M4sh Initialization. ##
8852 ## --------------------- ##
8854 # Be more Bourne compatible
8855 DUALCASE=1; export DUALCASE # for MKS sh
8856 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8857 emulate sh
8858 NULLCMD=:
8859 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8860 # is contrary to our usage. Disable this feature.
8861 alias -g '${1+"$@"}'='"$@"'
8862 setopt NO_GLOB_SUBST
8863 else
8864 case `(set -o) 2>/dev/null` in
8865 *posix*) set -o posix ;;
8866 esac
8873 # PATH needs CR
8874 # Avoid depending upon Character Ranges.
8875 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8876 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8877 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8878 as_cr_digits='0123456789'
8879 as_cr_alnum=$as_cr_Letters$as_cr_digits
8881 # The user is always right.
8882 if test "${PATH_SEPARATOR+set}" != set; then
8883 echo "#! /bin/sh" >conf$$.sh
8884 echo "exit 0" >>conf$$.sh
8885 chmod +x conf$$.sh
8886 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8887 PATH_SEPARATOR=';'
8888 else
8889 PATH_SEPARATOR=:
8891 rm -f conf$$.sh
8894 # Support unset when possible.
8895 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8896 as_unset=unset
8897 else
8898 as_unset=false
8902 # IFS
8903 # We need space, tab and new line, in precisely that order. Quoting is
8904 # there to prevent editors from complaining about space-tab.
8905 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8906 # splitting by setting IFS to empty value.)
8907 as_nl='
8909 IFS=" "" $as_nl"
8911 # Find who we are. Look in the path if we contain no directory separator.
8912 case $0 in
8913 *[\\/]* ) as_myself=$0 ;;
8914 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915 for as_dir in $PATH
8917 IFS=$as_save_IFS
8918 test -z "$as_dir" && as_dir=.
8919 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8920 done
8921 IFS=$as_save_IFS
8924 esac
8925 # We did not find ourselves, most probably we were run as `sh COMMAND'
8926 # in which case we are not to be found in the path.
8927 if test "x$as_myself" = x; then
8928 as_myself=$0
8930 if test ! -f "$as_myself"; then
8931 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8932 { (exit 1); exit 1; }
8935 # Work around bugs in pre-3.0 UWIN ksh.
8936 for as_var in ENV MAIL MAILPATH
8937 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8938 done
8939 PS1='$ '
8940 PS2='> '
8941 PS4='+ '
8943 # NLS nuisances.
8944 for as_var in \
8945 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8946 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8947 LC_TELEPHONE LC_TIME
8949 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8950 eval $as_var=C; export $as_var
8951 else
8952 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8954 done
8956 # Required to use basename.
8957 if expr a : '\(a\)' >/dev/null 2>&1 &&
8958 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8959 as_expr=expr
8960 else
8961 as_expr=false
8964 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8965 as_basename=basename
8966 else
8967 as_basename=false
8971 # Name of the executable.
8972 as_me=`$as_basename -- "$0" ||
8973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8974 X"$0" : 'X\(//\)$' \| \
8975 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8976 echo X/"$0" |
8977 sed '/^.*\/\([^/][^/]*\)\/*$/{
8978 s//\1/
8981 /^X\/\(\/\/\)$/{
8982 s//\1/
8985 /^X\/\(\/\).*/{
8986 s//\1/
8989 s/.*/./; q'`
8991 # CDPATH.
8992 $as_unset CDPATH
8996 as_lineno_1=$LINENO
8997 as_lineno_2=$LINENO
8998 test "x$as_lineno_1" != "x$as_lineno_2" &&
8999 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9001 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9002 # uniformly replaced by the line number. The first 'sed' inserts a
9003 # line-number line after each line using $LINENO; the second 'sed'
9004 # does the real work. The second script uses 'N' to pair each
9005 # line-number line with the line containing $LINENO, and appends
9006 # trailing '-' during substitution so that $LINENO is not a special
9007 # case at line end.
9008 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9009 # scripts with optimization help from Paolo Bonzini. Blame Lee
9010 # E. McMahon (1931-1989) for sed's syntax. :-)
9011 sed -n '
9013 /[$]LINENO/=
9014 ' <$as_myself |
9015 sed '
9016 s/[$]LINENO.*/&-/
9017 t lineno
9019 :lineno
9021 :loop
9022 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9023 t loop
9024 s/-\n.*//
9025 ' >$as_me.lineno &&
9026 chmod +x "$as_me.lineno" ||
9027 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9028 { (exit 1); exit 1; }; }
9030 # Don't try to exec as it changes $[0], causing all sort of problems
9031 # (the dirname of $[0] is not the place where we might find the
9032 # original and so on. Autoconf is especially sensitive to this).
9033 . "./$as_me.lineno"
9034 # Exit status is that of the last command.
9035 exit
9039 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9040 as_dirname=dirname
9041 else
9042 as_dirname=false
9045 ECHO_C= ECHO_N= ECHO_T=
9046 case `echo -n x` in
9047 -n*)
9048 case `echo 'x\c'` in
9049 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9050 *) ECHO_C='\c';;
9051 esac;;
9053 ECHO_N='-n';;
9054 esac
9056 if expr a : '\(a\)' >/dev/null 2>&1 &&
9057 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9058 as_expr=expr
9059 else
9060 as_expr=false
9063 rm -f conf$$ conf$$.exe conf$$.file
9064 if test -d conf$$.dir; then
9065 rm -f conf$$.dir/conf$$.file
9066 else
9067 rm -f conf$$.dir
9068 mkdir conf$$.dir
9070 echo >conf$$.file
9071 if ln -s conf$$.file conf$$ 2>/dev/null; then
9072 as_ln_s='ln -s'
9073 # ... but there are two gotchas:
9074 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9075 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9076 # In both cases, we have to default to `cp -p'.
9077 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9078 as_ln_s='cp -p'
9079 elif ln conf$$.file conf$$ 2>/dev/null; then
9080 as_ln_s=ln
9081 else
9082 as_ln_s='cp -p'
9084 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9085 rmdir conf$$.dir 2>/dev/null
9087 if mkdir -p . 2>/dev/null; then
9088 as_mkdir_p=:
9089 else
9090 test -d ./-p && rmdir ./-p
9091 as_mkdir_p=false
9094 if test -x / >/dev/null 2>&1; then
9095 as_test_x='test -x'
9096 else
9097 if ls -dL / >/dev/null 2>&1; then
9098 as_ls_L_option=L
9099 else
9100 as_ls_L_option=
9102 as_test_x='
9103 eval sh -c '\''
9104 if test -d "$1"; then
9105 test -d "$1/.";
9106 else
9107 case $1 in
9108 -*)set "./$1";;
9109 esac;
9110 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9111 ???[sx]*):;;*)false;;esac;fi
9112 '\'' sh
9115 as_executable_p=$as_test_x
9117 # Sed expression to map a string onto a valid CPP name.
9118 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9120 # Sed expression to map a string onto a valid variable name.
9121 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9124 exec 6>&1
9126 # Save the log message, to keep $[0] and so on meaningful, and to
9127 # report actual input values of CONFIG_FILES etc. instead of their
9128 # values after options handling.
9129 ac_log="
9130 This file was extended by GRUB $as_me 1.96, which was
9131 generated by GNU Autoconf 2.61. Invocation command line was
9133 CONFIG_FILES = $CONFIG_FILES
9134 CONFIG_HEADERS = $CONFIG_HEADERS
9135 CONFIG_LINKS = $CONFIG_LINKS
9136 CONFIG_COMMANDS = $CONFIG_COMMANDS
9137 $ $0 $@
9139 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9142 _ACEOF
9144 cat >>$CONFIG_STATUS <<_ACEOF
9145 # Files that config.status was made for.
9146 config_files="$ac_config_files"
9147 config_headers="$ac_config_headers"
9148 config_links="$ac_config_links"
9150 _ACEOF
9152 cat >>$CONFIG_STATUS <<\_ACEOF
9153 ac_cs_usage="\
9154 \`$as_me' instantiates files from templates according to the
9155 current configuration.
9157 Usage: $0 [OPTIONS] [FILE]...
9159 -h, --help print this help, then exit
9160 -V, --version print version number and configuration settings, then exit
9161 -q, --quiet do not print progress messages
9162 -d, --debug don't remove temporary files
9163 --recheck update $as_me by reconfiguring in the same conditions
9164 --file=FILE[:TEMPLATE]
9165 instantiate the configuration file FILE
9166 --header=FILE[:TEMPLATE]
9167 instantiate the configuration header FILE
9169 Configuration files:
9170 $config_files
9172 Configuration headers:
9173 $config_headers
9175 Configuration links:
9176 $config_links
9178 Report bugs to <bug-autoconf@gnu.org>."
9180 _ACEOF
9181 cat >>$CONFIG_STATUS <<_ACEOF
9182 ac_cs_version="\\
9183 GRUB config.status 1.96
9184 configured by $0, generated by GNU Autoconf 2.61,
9185 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9187 Copyright (C) 2006 Free Software Foundation, Inc.
9188 This config.status script is free software; the Free Software Foundation
9189 gives unlimited permission to copy, distribute and modify it."
9191 ac_pwd='$ac_pwd'
9192 srcdir='$srcdir'
9193 INSTALL='$INSTALL'
9194 _ACEOF
9196 cat >>$CONFIG_STATUS <<\_ACEOF
9197 # If no file are specified by the user, then we need to provide default
9198 # value. By we need to know if files were specified by the user.
9199 ac_need_defaults=:
9200 while test $# != 0
9202 case $1 in
9203 --*=*)
9204 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9205 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9206 ac_shift=:
9209 ac_option=$1
9210 ac_optarg=$2
9211 ac_shift=shift
9213 esac
9215 case $ac_option in
9216 # Handling of the options.
9217 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9218 ac_cs_recheck=: ;;
9219 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9220 echo "$ac_cs_version"; exit ;;
9221 --debug | --debu | --deb | --de | --d | -d )
9222 debug=: ;;
9223 --file | --fil | --fi | --f )
9224 $ac_shift
9225 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9226 ac_need_defaults=false;;
9227 --header | --heade | --head | --hea )
9228 $ac_shift
9229 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9230 ac_need_defaults=false;;
9231 --he | --h)
9232 # Conflict between --help and --header
9233 { echo "$as_me: error: ambiguous option: $1
9234 Try \`$0 --help' for more information." >&2
9235 { (exit 1); exit 1; }; };;
9236 --help | --hel | -h )
9237 echo "$ac_cs_usage"; exit ;;
9238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9239 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9240 ac_cs_silent=: ;;
9242 # This is an error.
9243 -*) { echo "$as_me: error: unrecognized option: $1
9244 Try \`$0 --help' for more information." >&2
9245 { (exit 1); exit 1; }; } ;;
9247 *) ac_config_targets="$ac_config_targets $1"
9248 ac_need_defaults=false ;;
9250 esac
9251 shift
9252 done
9254 ac_configure_extra_args=
9256 if $ac_cs_silent; then
9257 exec 6>/dev/null
9258 ac_configure_extra_args="$ac_configure_extra_args --silent"
9261 _ACEOF
9262 cat >>$CONFIG_STATUS <<_ACEOF
9263 if \$ac_cs_recheck; then
9264 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9265 CONFIG_SHELL=$SHELL
9266 export CONFIG_SHELL
9267 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9270 _ACEOF
9271 cat >>$CONFIG_STATUS <<\_ACEOF
9272 exec 5>>config.log
9274 echo
9275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9276 ## Running $as_me. ##
9277 _ASBOX
9278 echo "$ac_log"
9279 } >&5
9281 _ACEOF
9282 cat >>$CONFIG_STATUS <<_ACEOF
9283 _ACEOF
9285 cat >>$CONFIG_STATUS <<\_ACEOF
9287 # Handling of arguments.
9288 for ac_config_target in $ac_config_targets
9290 case $ac_config_target in
9291 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9292 "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
9293 "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
9294 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9295 "gensymlist.sh") CONFIG_FILES="$CONFIG_FILES gensymlist.sh" ;;
9296 "genkernsyms.sh") CONFIG_FILES="$CONFIG_FILES genkernsyms.sh" ;;
9297 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
9299 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9300 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9301 { (exit 1); exit 1; }; };;
9302 esac
9303 done
9306 # If the user did not use the arguments to specify the items to instantiate,
9307 # then the envvar interface is used. Set only those that are not.
9308 # We use the long form for the default assignment because of an extremely
9309 # bizarre bug on SunOS 4.1.3.
9310 if $ac_need_defaults; then
9311 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9312 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9313 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9316 # Have a temporary directory for convenience. Make it in the build tree
9317 # simply because there is no reason against having it here, and in addition,
9318 # creating and moving files from /tmp can sometimes cause problems.
9319 # Hook for its removal unless debugging.
9320 # Note that there is a small window in which the directory will not be cleaned:
9321 # after its creation but before its name has been assigned to `$tmp'.
9322 $debug ||
9324 tmp=
9325 trap 'exit_status=$?
9326 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9328 trap '{ (exit 1); exit 1; }' 1 2 13 15
9330 # Create a (secure) tmp directory for tmp files.
9333 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9334 test -n "$tmp" && test -d "$tmp"
9335 } ||
9337 tmp=./conf$$-$RANDOM
9338 (umask 077 && mkdir "$tmp")
9339 } ||
9341 echo "$me: cannot create a temporary directory in ." >&2
9342 { (exit 1); exit 1; }
9346 # Set up the sed scripts for CONFIG_FILES section.
9349 # No need to generate the scripts if there are no CONFIG_FILES.
9350 # This happens for instance when ./config.status config.h
9351 if test -n "$CONFIG_FILES"; then
9353 _ACEOF
9357 ac_delim='%!_!# '
9358 for ac_last_try in false false false false false :; do
9359 cat >conf$$subs.sed <<_ACEOF
9360 SHELL!$SHELL$ac_delim
9361 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9362 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9363 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9364 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9365 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9366 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9367 exec_prefix!$exec_prefix$ac_delim
9368 prefix!$prefix$ac_delim
9369 program_transform_name!$program_transform_name$ac_delim
9370 bindir!$bindir$ac_delim
9371 sbindir!$sbindir$ac_delim
9372 libexecdir!$libexecdir$ac_delim
9373 datarootdir!$datarootdir$ac_delim
9374 datadir!$datadir$ac_delim
9375 sysconfdir!$sysconfdir$ac_delim
9376 sharedstatedir!$sharedstatedir$ac_delim
9377 localstatedir!$localstatedir$ac_delim
9378 includedir!$includedir$ac_delim
9379 oldincludedir!$oldincludedir$ac_delim
9380 docdir!$docdir$ac_delim
9381 infodir!$infodir$ac_delim
9382 htmldir!$htmldir$ac_delim
9383 dvidir!$dvidir$ac_delim
9384 pdfdir!$pdfdir$ac_delim
9385 psdir!$psdir$ac_delim
9386 libdir!$libdir$ac_delim
9387 localedir!$localedir$ac_delim
9388 mandir!$mandir$ac_delim
9389 DEFS!$DEFS$ac_delim
9390 ECHO_C!$ECHO_C$ac_delim
9391 ECHO_N!$ECHO_N$ac_delim
9392 ECHO_T!$ECHO_T$ac_delim
9393 LIBS!$LIBS$ac_delim
9394 build_alias!$build_alias$ac_delim
9395 host_alias!$host_alias$ac_delim
9396 target_alias!$target_alias$ac_delim
9397 build!$build$ac_delim
9398 build_cpu!$build_cpu$ac_delim
9399 build_vendor!$build_vendor$ac_delim
9400 build_os!$build_os$ac_delim
9401 host!$host$ac_delim
9402 host_cpu!$host_cpu$ac_delim
9403 host_vendor!$host_vendor$ac_delim
9404 host_os!$host_os$ac_delim
9405 target!$target$ac_delim
9406 target_cpu!$target_cpu$ac_delim
9407 target_vendor!$target_vendor$ac_delim
9408 target_os!$target_os$ac_delim
9409 platform!$platform$ac_delim
9410 CMP!$CMP$ac_delim
9411 YACC!$YACC$ac_delim
9412 UNIFONT_BDF!$UNIFONT_BDF$ac_delim
9413 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9414 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9415 INSTALL_DATA!$INSTALL_DATA$ac_delim
9416 AWK!$AWK$ac_delim
9417 SET_MAKE!$SET_MAKE$ac_delim
9418 RUBY!$RUBY$ac_delim
9419 HELP2MAN!$HELP2MAN$ac_delim
9420 CC!$CC$ac_delim
9421 CFLAGS!$CFLAGS$ac_delim
9422 LDFLAGS!$LDFLAGS$ac_delim
9423 CPPFLAGS!$CPPFLAGS$ac_delim
9424 ac_ct_CC!$ac_ct_CC$ac_delim
9425 EXEEXT!$EXEEXT$ac_delim
9426 OBJEXT!$OBJEXT$ac_delim
9427 CPP!$CPP$ac_delim
9428 GREP!$GREP$ac_delim
9429 EGREP!$EGREP$ac_delim
9430 LIBLZO!$LIBLZO$ac_delim
9431 enable_lzo!$enable_lzo$ac_delim
9432 TARGET_IMG_LDSCRIPT!$TARGET_IMG_LDSCRIPT$ac_delim
9433 TARGET_IMG_LDFLAGS!$TARGET_IMG_LDFLAGS$ac_delim
9434 TARGET_OBJ2ELF!$TARGET_OBJ2ELF$ac_delim
9435 TARGET_CC!$TARGET_CC$ac_delim
9436 ac_ct_TARGET_CC!$ac_ct_TARGET_CC$ac_delim
9437 OBJCOPY!$OBJCOPY$ac_delim
9438 STRIP!$STRIP$ac_delim
9439 NM!$NM$ac_delim
9440 TARGET_CFLAGS!$TARGET_CFLAGS$ac_delim
9441 TARGET_CPPFLAGS!$TARGET_CPPFLAGS$ac_delim
9442 TARGET_LDFLAGS!$TARGET_LDFLAGS$ac_delim
9443 MODULE_LDFLAGS!$MODULE_LDFLAGS$ac_delim
9444 LIBCURSES!$LIBCURSES$ac_delim
9445 LIBUSB!$LIBUSB$ac_delim
9446 enable_grub_emu!$enable_grub_emu$ac_delim
9447 enable_grub_emu_usb!$enable_grub_emu_usb$ac_delim
9448 enable_grub_fstest!$enable_grub_fstest$ac_delim
9449 enable_grub_pe2elf!$enable_grub_pe2elf$ac_delim
9450 FREETYPE!$FREETYPE$ac_delim
9451 enable_grub_mkfont!$enable_grub_mkfont$ac_delim
9452 freetype_cflags!$freetype_cflags$ac_delim
9453 freetype_libs!$freetype_libs$ac_delim
9454 LIBOBJS!$LIBOBJS$ac_delim
9455 LTLIBOBJS!$LTLIBOBJS$ac_delim
9456 _ACEOF
9458 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
9459 break
9460 elif $ac_last_try; then
9461 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9462 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9463 { (exit 1); exit 1; }; }
9464 else
9465 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9467 done
9469 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9470 if test -n "$ac_eof"; then
9471 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9472 ac_eof=`expr $ac_eof + 1`
9475 cat >>$CONFIG_STATUS <<_ACEOF
9476 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9478 _ACEOF
9479 sed '
9480 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9481 s/^/s,@/; s/!/@,|#_!!_#|/
9484 s/'"$ac_delim"'$/,g/; t
9485 s/$/\\/; p
9486 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9487 ' >>$CONFIG_STATUS <conf$$subs.sed
9488 rm -f conf$$subs.sed
9489 cat >>$CONFIG_STATUS <<_ACEOF
9490 CEOF$ac_eof
9491 _ACEOF
9494 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9495 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9496 # trailing colons and then remove the whole line if VPATH becomes empty
9497 # (actually we leave an empty line to preserve line numbers).
9498 if test "x$srcdir" = x.; then
9499 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9500 s/:*\$(srcdir):*/:/
9501 s/:*\${srcdir}:*/:/
9502 s/:*@srcdir@:*/:/
9503 s/^\([^=]*=[ ]*\):*/\1/
9504 s/:*$//
9505 s/^[^=]*=[ ]*$//
9509 cat >>$CONFIG_STATUS <<\_ACEOF
9510 fi # test -n "$CONFIG_FILES"
9513 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS
9515 case $ac_tag in
9516 :[FHLC]) ac_mode=$ac_tag; continue;;
9517 esac
9518 case $ac_mode$ac_tag in
9519 :[FHL]*:*);;
9520 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9521 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9522 { (exit 1); exit 1; }; };;
9523 :[FH]-) ac_tag=-:-;;
9524 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9525 esac
9526 ac_save_IFS=$IFS
9527 IFS=:
9528 set x $ac_tag
9529 IFS=$ac_save_IFS
9530 shift
9531 ac_file=$1
9532 shift
9534 case $ac_mode in
9535 :L) ac_source=$1;;
9536 :[FH])
9537 ac_file_inputs=
9538 for ac_f
9540 case $ac_f in
9541 -) ac_f="$tmp/stdin";;
9542 *) # Look for the file first in the build tree, then in the source tree
9543 # (if the path is not absolute). The absolute path cannot be DOS-style,
9544 # because $ac_f cannot contain `:'.
9545 test -f "$ac_f" ||
9546 case $ac_f in
9547 [\\/$]*) false;;
9548 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9549 esac ||
9550 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9551 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9552 { (exit 1); exit 1; }; };;
9553 esac
9554 ac_file_inputs="$ac_file_inputs $ac_f"
9555 done
9557 # Let's still pretend it is `configure' which instantiates (i.e., don't
9558 # use $as_me), people would be surprised to read:
9559 # /* config.h. Generated by config.status. */
9560 configure_input="Generated from "`IFS=:
9561 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9562 if test x"$ac_file" != x-; then
9563 configure_input="$ac_file. $configure_input"
9564 { echo "$as_me:$LINENO: creating $ac_file" >&5
9565 echo "$as_me: creating $ac_file" >&6;}
9568 case $ac_tag in
9569 *:-:* | *:-) cat >"$tmp/stdin";;
9570 esac
9572 esac
9574 ac_dir=`$as_dirname -- "$ac_file" ||
9575 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9576 X"$ac_file" : 'X\(//\)[^/]' \| \
9577 X"$ac_file" : 'X\(//\)$' \| \
9578 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9579 echo X"$ac_file" |
9580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9581 s//\1/
9584 /^X\(\/\/\)[^/].*/{
9585 s//\1/
9588 /^X\(\/\/\)$/{
9589 s//\1/
9592 /^X\(\/\).*/{
9593 s//\1/
9596 s/.*/./; q'`
9597 { as_dir="$ac_dir"
9598 case $as_dir in #(
9599 -*) as_dir=./$as_dir;;
9600 esac
9601 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9602 as_dirs=
9603 while :; do
9604 case $as_dir in #(
9605 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9606 *) as_qdir=$as_dir;;
9607 esac
9608 as_dirs="'$as_qdir' $as_dirs"
9609 as_dir=`$as_dirname -- "$as_dir" ||
9610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9611 X"$as_dir" : 'X\(//\)[^/]' \| \
9612 X"$as_dir" : 'X\(//\)$' \| \
9613 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9614 echo X"$as_dir" |
9615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9616 s//\1/
9619 /^X\(\/\/\)[^/].*/{
9620 s//\1/
9623 /^X\(\/\/\)$/{
9624 s//\1/
9627 /^X\(\/\).*/{
9628 s//\1/
9631 s/.*/./; q'`
9632 test -d "$as_dir" && break
9633 done
9634 test -z "$as_dirs" || eval "mkdir $as_dirs"
9635 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9636 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9637 { (exit 1); exit 1; }; }; }
9638 ac_builddir=.
9640 case "$ac_dir" in
9641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9643 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9644 # A ".." for each directory in $ac_dir_suffix.
9645 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9646 case $ac_top_builddir_sub in
9647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9649 esac ;;
9650 esac
9651 ac_abs_top_builddir=$ac_pwd
9652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9653 # for backward compatibility:
9654 ac_top_builddir=$ac_top_build_prefix
9656 case $srcdir in
9657 .) # We are building in place.
9658 ac_srcdir=.
9659 ac_top_srcdir=$ac_top_builddir_sub
9660 ac_abs_top_srcdir=$ac_pwd ;;
9661 [\\/]* | ?:[\\/]* ) # Absolute name.
9662 ac_srcdir=$srcdir$ac_dir_suffix;
9663 ac_top_srcdir=$srcdir
9664 ac_abs_top_srcdir=$srcdir ;;
9665 *) # Relative name.
9666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9667 ac_top_srcdir=$ac_top_build_prefix$srcdir
9668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9669 esac
9670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9673 case $ac_mode in
9676 # CONFIG_FILE
9679 case $INSTALL in
9680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9681 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9682 esac
9683 _ACEOF
9685 cat >>$CONFIG_STATUS <<\_ACEOF
9686 # If the template does not know about datarootdir, expand it.
9687 # FIXME: This hack should be removed a few years after 2.60.
9688 ac_datarootdir_hack=; ac_datarootdir_seen=
9690 case `sed -n '/datarootdir/ {
9694 /@datadir@/p
9695 /@docdir@/p
9696 /@infodir@/p
9697 /@localedir@/p
9698 /@mandir@/p
9699 ' $ac_file_inputs` in
9700 *datarootdir*) ac_datarootdir_seen=yes;;
9701 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9702 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9703 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9704 _ACEOF
9705 cat >>$CONFIG_STATUS <<_ACEOF
9706 ac_datarootdir_hack='
9707 s&@datadir@&$datadir&g
9708 s&@docdir@&$docdir&g
9709 s&@infodir@&$infodir&g
9710 s&@localedir@&$localedir&g
9711 s&@mandir@&$mandir&g
9712 s&\\\${datarootdir}&$datarootdir&g' ;;
9713 esac
9714 _ACEOF
9716 # Neutralize VPATH when `$srcdir' = `.'.
9717 # Shell code in configure.ac might set extrasub.
9718 # FIXME: do we really want to maintain this feature?
9719 cat >>$CONFIG_STATUS <<_ACEOF
9720 sed "$ac_vpsub
9721 $extrasub
9722 _ACEOF
9723 cat >>$CONFIG_STATUS <<\_ACEOF
9725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9726 s&@configure_input@&$configure_input&;t t
9727 s&@top_builddir@&$ac_top_builddir_sub&;t t
9728 s&@srcdir@&$ac_srcdir&;t t
9729 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9730 s&@top_srcdir@&$ac_top_srcdir&;t t
9731 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9732 s&@builddir@&$ac_builddir&;t t
9733 s&@abs_builddir@&$ac_abs_builddir&;t t
9734 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9735 s&@INSTALL@&$ac_INSTALL&;t t
9736 $ac_datarootdir_hack
9737 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out
9739 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9740 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9741 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9742 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9743 which seems to be undefined. Please make sure it is defined." >&5
9744 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9745 which seems to be undefined. Please make sure it is defined." >&2;}
9747 rm -f "$tmp/stdin"
9748 case $ac_file in
9749 -) cat "$tmp/out"; rm -f "$tmp/out";;
9750 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9751 esac
9755 # CONFIG_HEADER
9757 _ACEOF
9759 # Transform confdefs.h into a sed script `conftest.defines', that
9760 # substitutes the proper values into config.h.in to produce config.h.
9761 rm -f conftest.defines conftest.tail
9762 # First, append a space to every undef/define line, to ease matching.
9763 echo 's/$/ /' >conftest.defines
9764 # Then, protect against being on the right side of a sed subst, or in
9765 # an unquoted here document, in config.status. If some macros were
9766 # called several times there might be several #defines for the same
9767 # symbol, which is useless. But do not sort them, since the last
9768 # AC_DEFINE must be honored.
9769 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9770 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9771 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9772 # PARAMS is the parameter list in the macro definition--in most cases, it's
9773 # just an empty string.
9774 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9775 ac_dB='\\)[ (].*,\\1define\\2'
9776 ac_dC=' '
9777 ac_dD=' ,'
9779 uniq confdefs.h |
9780 sed -n '
9781 t rset
9782 :rset
9783 s/^[ ]*#[ ]*define[ ][ ]*//
9784 t ok
9787 s/[\\&,]/\\&/g
9788 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9789 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9790 ' >>conftest.defines
9792 # Remove the space that was appended to ease matching.
9793 # Then replace #undef with comments. This is necessary, for
9794 # example, in the case of _POSIX_SOURCE, which is predefined and required
9795 # on some systems where configure will not decide to define it.
9796 # (The regexp can be short, since the line contains either #define or #undef.)
9797 echo 's/ $//
9798 s,^[ #]*u.*,/* & */,' >>conftest.defines
9800 # Break up conftest.defines:
9801 ac_max_sed_lines=50
9803 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9804 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9805 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9806 # et cetera.
9807 ac_in='$ac_file_inputs'
9808 ac_out='"$tmp/out1"'
9809 ac_nxt='"$tmp/out2"'
9811 while :
9813 # Write a here document:
9814 cat >>$CONFIG_STATUS <<_ACEOF
9815 # First, check the format of the line:
9816 cat >"\$tmp/defines.sed" <<\\CEOF
9817 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9818 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9820 :def
9821 _ACEOF
9822 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9823 echo 'CEOF
9824 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9825 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9826 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9827 grep . conftest.tail >/dev/null || break
9828 rm -f conftest.defines
9829 mv conftest.tail conftest.defines
9830 done
9831 rm -f conftest.defines conftest.tail
9833 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9834 cat >>$CONFIG_STATUS <<\_ACEOF
9835 if test x"$ac_file" != x-; then
9836 echo "/* $configure_input */" >"$tmp/config.h"
9837 cat "$ac_result" >>"$tmp/config.h"
9838 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9839 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9840 echo "$as_me: $ac_file is unchanged" >&6;}
9841 else
9842 rm -f $ac_file
9843 mv "$tmp/config.h" $ac_file
9845 else
9846 echo "/* $configure_input */"
9847 cat "$ac_result"
9849 rm -f "$tmp/out12"
9853 # CONFIG_LINK
9856 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
9857 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
9859 if test ! -r "$srcdir/$ac_source"; then
9860 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9861 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9862 { (exit 1); exit 1; }; }
9864 rm -f "$ac_file"
9866 # Try a relative symlink, then a hard link, then a copy.
9867 case $srcdir in
9868 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9869 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
9870 esac
9871 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
9872 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
9873 cp -p "$srcdir/$ac_source" "$ac_file" ||
9874 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
9875 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
9876 { (exit 1); exit 1; }; }
9879 esac
9882 case $ac_file$ac_mode in
9883 "stamp-h":F) echo timestamp > stamp-h ;;
9885 esac
9886 done # for ac_tag
9889 { (exit 0); exit 0; }
9890 _ACEOF
9891 chmod +x $CONFIG_STATUS
9892 ac_clean_files=$ac_clean_files_save
9895 # configure is writing to config.log, and then calls config.status.
9896 # config.status does its own redirection, appending to config.log.
9897 # Unfortunately, on DOS this fails, as config.log is still kept open
9898 # by configure, so config.status won't be able to write to it; its
9899 # output is simply discarded. So we exec the FD to /dev/null,
9900 # effectively closing config.log, so it can be properly (re)opened and
9901 # appended to by config.status. When coming back to configure, we
9902 # need to make the FD available again.
9903 if test "$no_create" != yes; then
9904 ac_cs_success=:
9905 ac_config_status_args=
9906 test "$silent" = yes &&
9907 ac_config_status_args="$ac_config_status_args --quiet"
9908 exec 5>/dev/null
9909 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9910 exec 5>>config.log
9911 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9912 # would make configure fail if this is the last instruction.
9913 $ac_cs_success || { (exit 1); exit 1; }