2009-02-03 Felix Zielcke <fzielcke@z-51.de>
[grub2/phcoder/solaris.git] / configure
blobe1c8c9691f4113df7de94043bbb13c918c25b7e3
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 enable_grub_emu
704 enable_grub_fstest
705 enable_grub_pe2elf
706 FREETYPE
707 enable_grub_mkfont
708 freetype_cflags
709 freetype_libs
710 LIBOBJS
711 LTLIBOBJS'
712 ac_subst_files=''
713 ac_precious_vars='build_alias
714 host_alias
715 target_alias
717 CFLAGS
718 LDFLAGS
719 LIBS
720 CPPFLAGS
721 CPP'
724 # Initialize some variables set by options.
725 ac_init_help=
726 ac_init_version=false
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
729 cache_file=/dev/null
730 exec_prefix=NONE
731 no_create=
732 no_recursion=
733 prefix=NONE
734 program_prefix=NONE
735 program_suffix=NONE
736 program_transform_name=s,x,x,
737 silent=
738 site=
739 srcdir=
740 verbose=
741 x_includes=NONE
742 x_libraries=NONE
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir='${exec_prefix}/bin'
751 sbindir='${exec_prefix}/sbin'
752 libexecdir='${exec_prefix}/libexec'
753 datarootdir='${prefix}/share'
754 datadir='${datarootdir}'
755 sysconfdir='${prefix}/etc'
756 sharedstatedir='${prefix}/com'
757 localstatedir='${prefix}/var'
758 includedir='${prefix}/include'
759 oldincludedir='/usr/include'
760 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
761 infodir='${datarootdir}/info'
762 htmldir='${docdir}'
763 dvidir='${docdir}'
764 pdfdir='${docdir}'
765 psdir='${docdir}'
766 libdir='${exec_prefix}/lib'
767 localedir='${datarootdir}/locale'
768 mandir='${datarootdir}/man'
770 ac_prev=
771 ac_dashdash=
772 for ac_option
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\$ac_option
777 ac_prev=
778 continue
781 case $ac_option in
782 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783 *) ac_optarg=yes ;;
784 esac
786 # Accept the important Cygnus configure options, so we can diagnose typos.
788 case $ac_dashdash$ac_option in
790 ac_dashdash=yes ;;
792 -bindir | --bindir | --bindi | --bind | --bin | --bi)
793 ac_prev=bindir ;;
794 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
795 bindir=$ac_optarg ;;
797 -build | --build | --buil | --bui | --bu)
798 ac_prev=build_alias ;;
799 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
800 build_alias=$ac_optarg ;;
802 -cache-file | --cache-file | --cache-fil | --cache-fi \
803 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
804 ac_prev=cache_file ;;
805 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
806 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
807 cache_file=$ac_optarg ;;
809 --config-cache | -C)
810 cache_file=config.cache ;;
812 -datadir | --datadir | --datadi | --datad)
813 ac_prev=datadir ;;
814 -datadir=* | --datadir=* | --datadi=* | --datad=*)
815 datadir=$ac_optarg ;;
817 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
818 | --dataroo | --dataro | --datar)
819 ac_prev=datarootdir ;;
820 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
821 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
822 datarootdir=$ac_optarg ;;
824 -disable-* | --disable-*)
825 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
828 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
829 { (exit 1); exit 1; }; }
830 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
831 eval enable_$ac_feature=no ;;
833 -docdir | --docdir | --docdi | --doc | --do)
834 ac_prev=docdir ;;
835 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
836 docdir=$ac_optarg ;;
838 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
839 ac_prev=dvidir ;;
840 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
841 dvidir=$ac_optarg ;;
843 -enable-* | --enable-*)
844 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_$ac_feature=\$ac_optarg ;;
852 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
853 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
854 | --exec | --exe | --ex)
855 ac_prev=exec_prefix ;;
856 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
857 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
858 | --exec=* | --exe=* | --ex=*)
859 exec_prefix=$ac_optarg ;;
861 -gas | --gas | --ga | --g)
862 # Obsolete; use --with-gas.
863 with_gas=yes ;;
865 -help | --help | --hel | --he | -h)
866 ac_init_help=long ;;
867 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
868 ac_init_help=recursive ;;
869 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
870 ac_init_help=short ;;
872 -host | --host | --hos | --ho)
873 ac_prev=host_alias ;;
874 -host=* | --host=* | --hos=* | --ho=*)
875 host_alias=$ac_optarg ;;
877 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
878 ac_prev=htmldir ;;
879 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
880 | --ht=*)
881 htmldir=$ac_optarg ;;
883 -includedir | --includedir | --includedi | --included | --include \
884 | --includ | --inclu | --incl | --inc)
885 ac_prev=includedir ;;
886 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
887 | --includ=* | --inclu=* | --incl=* | --inc=*)
888 includedir=$ac_optarg ;;
890 -infodir | --infodir | --infodi | --infod | --info | --inf)
891 ac_prev=infodir ;;
892 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
893 infodir=$ac_optarg ;;
895 -libdir | --libdir | --libdi | --libd)
896 ac_prev=libdir ;;
897 -libdir=* | --libdir=* | --libdi=* | --libd=*)
898 libdir=$ac_optarg ;;
900 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
901 | --libexe | --libex | --libe)
902 ac_prev=libexecdir ;;
903 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
904 | --libexe=* | --libex=* | --libe=*)
905 libexecdir=$ac_optarg ;;
907 -localedir | --localedir | --localedi | --localed | --locale)
908 ac_prev=localedir ;;
909 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
910 localedir=$ac_optarg ;;
912 -localstatedir | --localstatedir | --localstatedi | --localstated \
913 | --localstate | --localstat | --localsta | --localst | --locals)
914 ac_prev=localstatedir ;;
915 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
916 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
917 localstatedir=$ac_optarg ;;
919 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
920 ac_prev=mandir ;;
921 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
922 mandir=$ac_optarg ;;
924 -nfp | --nfp | --nf)
925 # Obsolete; use --without-fp.
926 with_fp=no ;;
928 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
929 | --no-cr | --no-c | -n)
930 no_create=yes ;;
932 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
933 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
934 no_recursion=yes ;;
936 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
937 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
938 | --oldin | --oldi | --old | --ol | --o)
939 ac_prev=oldincludedir ;;
940 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
941 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
942 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
943 oldincludedir=$ac_optarg ;;
945 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
946 ac_prev=prefix ;;
947 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
948 prefix=$ac_optarg ;;
950 -program-prefix | --program-prefix | --program-prefi | --program-pref \
951 | --program-pre | --program-pr | --program-p)
952 ac_prev=program_prefix ;;
953 -program-prefix=* | --program-prefix=* | --program-prefi=* \
954 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
955 program_prefix=$ac_optarg ;;
957 -program-suffix | --program-suffix | --program-suffi | --program-suff \
958 | --program-suf | --program-su | --program-s)
959 ac_prev=program_suffix ;;
960 -program-suffix=* | --program-suffix=* | --program-suffi=* \
961 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
962 program_suffix=$ac_optarg ;;
964 -program-transform-name | --program-transform-name \
965 | --program-transform-nam | --program-transform-na \
966 | --program-transform-n | --program-transform- \
967 | --program-transform | --program-transfor \
968 | --program-transfo | --program-transf \
969 | --program-trans | --program-tran \
970 | --progr-tra | --program-tr | --program-t)
971 ac_prev=program_transform_name ;;
972 -program-transform-name=* | --program-transform-name=* \
973 | --program-transform-nam=* | --program-transform-na=* \
974 | --program-transform-n=* | --program-transform-=* \
975 | --program-transform=* | --program-transfor=* \
976 | --program-transfo=* | --program-transf=* \
977 | --program-trans=* | --program-tran=* \
978 | --progr-tra=* | --program-tr=* | --program-t=*)
979 program_transform_name=$ac_optarg ;;
981 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
982 ac_prev=pdfdir ;;
983 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
984 pdfdir=$ac_optarg ;;
986 -psdir | --psdir | --psdi | --psd | --ps)
987 ac_prev=psdir ;;
988 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
989 psdir=$ac_optarg ;;
991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
992 | -silent | --silent | --silen | --sile | --sil)
993 silent=yes ;;
995 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
996 ac_prev=sbindir ;;
997 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
998 | --sbi=* | --sb=*)
999 sbindir=$ac_optarg ;;
1001 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1002 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003 | --sharedst | --shareds | --shared | --share | --shar \
1004 | --sha | --sh)
1005 ac_prev=sharedstatedir ;;
1006 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1009 | --sha=* | --sh=*)
1010 sharedstatedir=$ac_optarg ;;
1012 -site | --site | --sit)
1013 ac_prev=site ;;
1014 -site=* | --site=* | --sit=*)
1015 site=$ac_optarg ;;
1017 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1018 ac_prev=srcdir ;;
1019 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020 srcdir=$ac_optarg ;;
1022 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023 | --syscon | --sysco | --sysc | --sys | --sy)
1024 ac_prev=sysconfdir ;;
1025 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027 sysconfdir=$ac_optarg ;;
1029 -target | --target | --targe | --targ | --tar | --ta | --t)
1030 ac_prev=target_alias ;;
1031 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032 target_alias=$ac_optarg ;;
1034 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1035 verbose=yes ;;
1037 -version | --version | --versio | --versi | --vers | -V)
1038 ac_init_version=: ;;
1040 -with-* | --with-*)
1041 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044 { echo "$as_me: error: invalid package name: $ac_package" >&2
1045 { (exit 1); exit 1; }; }
1046 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1047 eval with_$ac_package=\$ac_optarg ;;
1049 -without-* | --without-*)
1050 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053 { echo "$as_me: error: invalid package name: $ac_package" >&2
1054 { (exit 1); exit 1; }; }
1055 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1056 eval with_$ac_package=no ;;
1058 --x)
1059 # Obsolete; use --with-x.
1060 with_x=yes ;;
1062 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1063 | --x-incl | --x-inc | --x-in | --x-i)
1064 ac_prev=x_includes ;;
1065 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1066 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1067 x_includes=$ac_optarg ;;
1069 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1070 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1071 ac_prev=x_libraries ;;
1072 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1073 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1074 x_libraries=$ac_optarg ;;
1076 -*) { echo "$as_me: error: unrecognized option: $ac_option
1077 Try \`$0 --help' for more information." >&2
1078 { (exit 1); exit 1; }; }
1081 *=*)
1082 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1085 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1086 { (exit 1); exit 1; }; }
1087 eval $ac_envvar=\$ac_optarg
1088 export $ac_envvar ;;
1091 # FIXME: should be removed in autoconf 3.0.
1092 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1093 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1095 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1098 esac
1099 done
1101 if test -n "$ac_prev"; then
1102 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1103 { echo "$as_me: error: missing argument to $ac_option" >&2
1104 { (exit 1); exit 1; }; }
1107 # Be sure to have absolute directory names.
1108 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1109 datadir sysconfdir sharedstatedir localstatedir includedir \
1110 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1111 libdir localedir mandir
1113 eval ac_val=\$$ac_var
1114 case $ac_val in
1115 [\\/$]* | ?:[\\/]* ) continue;;
1116 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1117 esac
1118 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1119 { (exit 1); exit 1; }; }
1120 done
1122 # There might be people who depend on the old broken behavior: `$host'
1123 # used to hold the argument of --host etc.
1124 # FIXME: To remove some day.
1125 build=$build_alias
1126 host=$host_alias
1127 target=$target_alias
1129 # FIXME: To remove some day.
1130 if test "x$host_alias" != x; then
1131 if test "x$build_alias" = x; then
1132 cross_compiling=maybe
1133 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1134 If a cross compiler is detected then cross compile mode will be used." >&2
1135 elif test "x$build_alias" != "x$host_alias"; then
1136 cross_compiling=yes
1140 ac_tool_prefix=
1141 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1143 test "$silent" = yes && exec 6>/dev/null
1146 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1147 ac_ls_di=`ls -di .` &&
1148 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1149 { echo "$as_me: error: Working directory cannot be determined" >&2
1150 { (exit 1); exit 1; }; }
1151 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1152 { echo "$as_me: error: pwd does not report name of working directory" >&2
1153 { (exit 1); exit 1; }; }
1156 # Find the source files, if location was not specified.
1157 if test -z "$srcdir"; then
1158 ac_srcdir_defaulted=yes
1159 # Try the directory containing this script, then the parent directory.
1160 ac_confdir=`$as_dirname -- "$0" ||
1161 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1162 X"$0" : 'X\(//\)[^/]' \| \
1163 X"$0" : 'X\(//\)$' \| \
1164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1165 echo X"$0" |
1166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1167 s//\1/
1170 /^X\(\/\/\)[^/].*/{
1171 s//\1/
1174 /^X\(\/\/\)$/{
1175 s//\1/
1178 /^X\(\/\).*/{
1179 s//\1/
1182 s/.*/./; q'`
1183 srcdir=$ac_confdir
1184 if test ! -r "$srcdir/$ac_unique_file"; then
1185 srcdir=..
1187 else
1188 ac_srcdir_defaulted=no
1190 if test ! -r "$srcdir/$ac_unique_file"; then
1191 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1192 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1193 { (exit 1); exit 1; }; }
1195 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1196 ac_abs_confdir=`(
1197 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1198 { (exit 1); exit 1; }; }
1199 pwd)`
1200 # When building in place, set srcdir=.
1201 if test "$ac_abs_confdir" = "$ac_pwd"; then
1202 srcdir=.
1204 # Remove unnecessary trailing slashes from srcdir.
1205 # Double slashes in file names in object file debugging info
1206 # mess up M-x gdb in Emacs.
1207 case $srcdir in
1208 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1209 esac
1210 for ac_var in $ac_precious_vars; do
1211 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1212 eval ac_env_${ac_var}_value=\$${ac_var}
1213 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1215 done
1218 # Report the --help message.
1220 if test "$ac_init_help" = "long"; then
1221 # Omit some internal or obsolete options to make the list less imposing.
1222 # This message is too long to be a string in the A/UX 3.1 sh.
1223 cat <<_ACEOF
1224 \`configure' configures GRUB 1.96 to adapt to many kinds of systems.
1226 Usage: $0 [OPTION]... [VAR=VALUE]...
1228 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1229 VAR=VALUE. See below for descriptions of some of the useful variables.
1231 Defaults for the options are specified in brackets.
1233 Configuration:
1234 -h, --help display this help and exit
1235 --help=short display options specific to this package
1236 --help=recursive display the short help of all the included packages
1237 -V, --version display version information and exit
1238 -q, --quiet, --silent do not print \`checking...' messages
1239 --cache-file=FILE cache test results in FILE [disabled]
1240 -C, --config-cache alias for \`--cache-file=config.cache'
1241 -n, --no-create do not create output files
1242 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244 Installation directories:
1245 --prefix=PREFIX install architecture-independent files in PREFIX
1246 [$ac_default_prefix]
1247 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1248 [PREFIX]
1250 By default, \`make install' will install all the files in
1251 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1252 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1253 for instance \`--prefix=\$HOME'.
1255 For better control, use the options below.
1257 Fine tuning of the installation directories:
1258 --bindir=DIR user executables [EPREFIX/bin]
1259 --sbindir=DIR system admin executables [EPREFIX/sbin]
1260 --libexecdir=DIR program executables [EPREFIX/libexec]
1261 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1262 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1263 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1264 --libdir=DIR object code libraries [EPREFIX/lib]
1265 --includedir=DIR C header files [PREFIX/include]
1266 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1267 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1268 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1269 --infodir=DIR info documentation [DATAROOTDIR/info]
1270 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1271 --mandir=DIR man documentation [DATAROOTDIR/man]
1272 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1273 --htmldir=DIR html documentation [DOCDIR]
1274 --dvidir=DIR dvi documentation [DOCDIR]
1275 --pdfdir=DIR pdf documentation [DOCDIR]
1276 --psdir=DIR ps documentation [DOCDIR]
1277 _ACEOF
1279 cat <<\_ACEOF
1281 Program names:
1282 --program-prefix=PREFIX prepend PREFIX to installed program names
1283 --program-suffix=SUFFIX append SUFFIX to installed program names
1284 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1286 System types:
1287 --build=BUILD configure for building on BUILD [guessed]
1288 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1289 --target=TARGET configure for building compilers for TARGET [HOST]
1290 _ACEOF
1293 if test -n "$ac_init_help"; then
1294 case $ac_init_help in
1295 short | recursive ) echo "Configuration of GRUB 1.96:";;
1296 esac
1297 cat <<\_ACEOF
1299 Optional Features:
1300 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1301 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1302 --disable-largefile omit support for large files
1303 --enable-lzo use lzo to compress kernel (default is lzma)
1304 --enable-mm-debug include memory manager debugging
1305 --enable-grub-emu build and install the `grub-emu' debugging utility
1306 --enable-grub-fstest build and install the `grub-fstest' debugging
1307 utility
1308 --enable-grub-pe2elf build and install the `grub-pe2elf' conversion
1309 utility
1310 --enable-grub-mkfont build and install the `grub-mkfont' utility
1312 Optional Packages:
1313 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1314 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1315 --with-platform=PLATFORM
1316 select the host platform [guessed]
1318 Some influential environment variables:
1319 CC C compiler command
1320 CFLAGS C compiler flags
1321 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1322 nonstandard directory <lib dir>
1323 LIBS libraries to pass to the linker, e.g. -l<library>
1324 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1325 you have headers in a nonstandard directory <include dir>
1326 CPP C preprocessor
1328 Use these variables to override the choices made by `configure' or to help
1329 it to find libraries and programs with nonstandard names/locations.
1331 Report bugs to <bug-grub@gnu.org>.
1332 _ACEOF
1333 ac_status=$?
1336 if test "$ac_init_help" = "recursive"; then
1337 # If there are subdirs, report their specific --help.
1338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1339 test -d "$ac_dir" || continue
1340 ac_builddir=.
1342 case "$ac_dir" in
1343 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1346 # A ".." for each directory in $ac_dir_suffix.
1347 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1348 case $ac_top_builddir_sub in
1349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1351 esac ;;
1352 esac
1353 ac_abs_top_builddir=$ac_pwd
1354 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355 # for backward compatibility:
1356 ac_top_builddir=$ac_top_build_prefix
1358 case $srcdir in
1359 .) # We are building in place.
1360 ac_srcdir=.
1361 ac_top_srcdir=$ac_top_builddir_sub
1362 ac_abs_top_srcdir=$ac_pwd ;;
1363 [\\/]* | ?:[\\/]* ) # Absolute name.
1364 ac_srcdir=$srcdir$ac_dir_suffix;
1365 ac_top_srcdir=$srcdir
1366 ac_abs_top_srcdir=$srcdir ;;
1367 *) # Relative name.
1368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369 ac_top_srcdir=$ac_top_build_prefix$srcdir
1370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1371 esac
1372 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1374 cd "$ac_dir" || { ac_status=$?; continue; }
1375 # Check for guested configure.
1376 if test -f "$ac_srcdir/configure.gnu"; then
1377 echo &&
1378 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379 elif test -f "$ac_srcdir/configure"; then
1380 echo &&
1381 $SHELL "$ac_srcdir/configure" --help=recursive
1382 else
1383 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1384 fi || ac_status=$?
1385 cd "$ac_pwd" || { ac_status=$?; break; }
1386 done
1389 test -n "$ac_init_help" && exit $ac_status
1390 if $ac_init_version; then
1391 cat <<\_ACEOF
1392 GRUB configure 1.96
1393 generated by GNU Autoconf 2.61
1395 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1396 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1397 This configure script is free software; the Free Software Foundation
1398 gives unlimited permission to copy, distribute and modify it.
1399 _ACEOF
1400 exit
1402 cat >config.log <<_ACEOF
1403 This file contains any messages produced by compilers while
1404 running configure, to aid debugging if configure makes a mistake.
1406 It was created by GRUB $as_me 1.96, which was
1407 generated by GNU Autoconf 2.61. Invocation command line was
1409 $ $0 $@
1411 _ACEOF
1412 exec 5>>config.log
1414 cat <<_ASUNAME
1415 ## --------- ##
1416 ## Platform. ##
1417 ## --------- ##
1419 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1420 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1421 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1422 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1423 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1425 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1426 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1428 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1429 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1430 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1431 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1432 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1433 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1434 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1436 _ASUNAME
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 for as_dir in $PATH
1441 IFS=$as_save_IFS
1442 test -z "$as_dir" && as_dir=.
1443 echo "PATH: $as_dir"
1444 done
1445 IFS=$as_save_IFS
1447 } >&5
1449 cat >&5 <<_ACEOF
1452 ## ----------- ##
1453 ## Core tests. ##
1454 ## ----------- ##
1456 _ACEOF
1459 # Keep a trace of the command line.
1460 # Strip out --no-create and --no-recursion so they do not pile up.
1461 # Strip out --silent because we don't want to record it for future runs.
1462 # Also quote any args containing shell meta-characters.
1463 # Make two passes to allow for proper duplicate-argument suppression.
1464 ac_configure_args=
1465 ac_configure_args0=
1466 ac_configure_args1=
1467 ac_must_keep_next=false
1468 for ac_pass in 1 2
1470 for ac_arg
1472 case $ac_arg in
1473 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475 | -silent | --silent | --silen | --sile | --sil)
1476 continue ;;
1477 *\'*)
1478 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 esac
1480 case $ac_pass in
1481 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1483 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1484 if test $ac_must_keep_next = true; then
1485 ac_must_keep_next=false # Got value, back to normal.
1486 else
1487 case $ac_arg in
1488 *=* | --config-cache | -C | -disable-* | --disable-* \
1489 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1490 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1491 | -with-* | --with-* | -without-* | --without-* | --x)
1492 case "$ac_configure_args0 " in
1493 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1494 esac
1496 -* ) ac_must_keep_next=true ;;
1497 esac
1499 ac_configure_args="$ac_configure_args '$ac_arg'"
1501 esac
1502 done
1503 done
1504 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1505 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1507 # When interrupted or exit'd, cleanup temporary files, and complete
1508 # config.log. We remove comments because anyway the quotes in there
1509 # would cause problems or look ugly.
1510 # WARNING: Use '\'' to represent an apostrophe within the trap.
1511 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1512 trap 'exit_status=$?
1513 # Save into config.log some information that might help in debugging.
1515 echo
1517 cat <<\_ASBOX
1518 ## ---------------- ##
1519 ## Cache variables. ##
1520 ## ---------------- ##
1521 _ASBOX
1522 echo
1523 # The following way of writing the cache mishandles newlines in values,
1525 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1526 eval ac_val=\$$ac_var
1527 case $ac_val in #(
1528 *${as_nl}*)
1529 case $ac_var in #(
1530 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1531 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1532 esac
1533 case $ac_var in #(
1534 _ | IFS | as_nl) ;; #(
1535 *) $as_unset $ac_var ;;
1536 esac ;;
1537 esac
1538 done
1539 (set) 2>&1 |
1540 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1541 *${as_nl}ac_space=\ *)
1542 sed -n \
1543 "s/'\''/'\''\\\\'\'''\''/g;
1544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1545 ;; #(
1547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1549 esac |
1550 sort
1552 echo
1554 cat <<\_ASBOX
1555 ## ----------------- ##
1556 ## Output variables. ##
1557 ## ----------------- ##
1558 _ASBOX
1559 echo
1560 for ac_var in $ac_subst_vars
1562 eval ac_val=\$$ac_var
1563 case $ac_val in
1564 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1565 esac
1566 echo "$ac_var='\''$ac_val'\''"
1567 done | sort
1568 echo
1570 if test -n "$ac_subst_files"; then
1571 cat <<\_ASBOX
1572 ## ------------------- ##
1573 ## File substitutions. ##
1574 ## ------------------- ##
1575 _ASBOX
1576 echo
1577 for ac_var in $ac_subst_files
1579 eval ac_val=\$$ac_var
1580 case $ac_val in
1581 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1582 esac
1583 echo "$ac_var='\''$ac_val'\''"
1584 done | sort
1585 echo
1588 if test -s confdefs.h; then
1589 cat <<\_ASBOX
1590 ## ----------- ##
1591 ## confdefs.h. ##
1592 ## ----------- ##
1593 _ASBOX
1594 echo
1595 cat confdefs.h
1596 echo
1598 test "$ac_signal" != 0 &&
1599 echo "$as_me: caught signal $ac_signal"
1600 echo "$as_me: exit $exit_status"
1601 } >&5
1602 rm -f core *.core core.conftest.* &&
1603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1604 exit $exit_status
1606 for ac_signal in 1 2 13 15; do
1607 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1608 done
1609 ac_signal=0
1611 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1612 rm -f -r conftest* confdefs.h
1614 # Predefined preprocessor variables.
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_NAME "$PACKAGE_NAME"
1618 _ACEOF
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1623 _ACEOF
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1628 _ACEOF
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_STRING "$PACKAGE_STRING"
1633 _ACEOF
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1638 _ACEOF
1641 # Let the site file select an alternate cache file if it wants to.
1642 # Prefer explicitly selected file to automatically selected ones.
1643 if test -n "$CONFIG_SITE"; then
1644 set x "$CONFIG_SITE"
1645 elif test "x$prefix" != xNONE; then
1646 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1647 else
1648 set x "$ac_default_prefix/share/config.site" \
1649 "$ac_default_prefix/etc/config.site"
1651 shift
1652 for ac_site_file
1654 if test -r "$ac_site_file"; then
1655 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1656 echo "$as_me: loading site script $ac_site_file" >&6;}
1657 sed 's/^/| /' "$ac_site_file" >&5
1658 . "$ac_site_file"
1660 done
1662 if test -r "$cache_file"; then
1663 # Some versions of bash will fail to source /dev/null (special
1664 # files actually), so we avoid doing that.
1665 if test -f "$cache_file"; then
1666 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1667 echo "$as_me: loading cache $cache_file" >&6;}
1668 case $cache_file in
1669 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1670 *) . "./$cache_file";;
1671 esac
1673 else
1674 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1675 echo "$as_me: creating cache $cache_file" >&6;}
1676 >$cache_file
1679 # Check that the precious variables saved in the cache have kept the same
1680 # value.
1681 ac_cache_corrupted=false
1682 for ac_var in $ac_precious_vars; do
1683 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1684 eval ac_new_set=\$ac_env_${ac_var}_set
1685 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1686 eval ac_new_val=\$ac_env_${ac_var}_value
1687 case $ac_old_set,$ac_new_set in
1688 set,)
1689 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1690 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1691 ac_cache_corrupted=: ;;
1692 ,set)
1693 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1694 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1695 ac_cache_corrupted=: ;;
1696 ,);;
1698 if test "x$ac_old_val" != "x$ac_new_val"; then
1699 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1700 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1701 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1702 echo "$as_me: former value: $ac_old_val" >&2;}
1703 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1704 echo "$as_me: current value: $ac_new_val" >&2;}
1705 ac_cache_corrupted=:
1706 fi;;
1707 esac
1708 # Pass precious variables to config.status.
1709 if test "$ac_new_set" = set; then
1710 case $ac_new_val in
1711 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1712 *) ac_arg=$ac_var=$ac_new_val ;;
1713 esac
1714 case " $ac_configure_args " in
1715 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1716 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1717 esac
1719 done
1720 if $ac_cache_corrupted; then
1721 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1722 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1723 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1724 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1725 { (exit 1); exit 1; }; }
1752 ac_ext=c
1753 ac_cpp='$CPP $CPPFLAGS'
1754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1761 ac_config_headers="$ac_config_headers config.h"
1764 # Checks for host and target systems.
1765 ac_aux_dir=
1766 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1767 if test -f "$ac_dir/install-sh"; then
1768 ac_aux_dir=$ac_dir
1769 ac_install_sh="$ac_aux_dir/install-sh -c"
1770 break
1771 elif 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/shtool"; then
1776 ac_aux_dir=$ac_dir
1777 ac_install_sh="$ac_aux_dir/shtool install -c"
1778 break
1780 done
1781 if test -z "$ac_aux_dir"; then
1782 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1783 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1784 { (exit 1); exit 1; }; }
1787 # These three variables are undocumented and unsupported,
1788 # and are intended to be withdrawn in a future Autoconf release.
1789 # They can cause serious problems if a builder's source tree is in a directory
1790 # whose full name contains unusual characters.
1791 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1792 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1793 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1796 # Make sure we can run config.sub.
1797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1799 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1800 { (exit 1); exit 1; }; }
1802 { echo "$as_me:$LINENO: checking build system type" >&5
1803 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1804 if test "${ac_cv_build+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807 ac_build_alias=$build_alias
1808 test "x$ac_build_alias" = x &&
1809 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1810 test "x$ac_build_alias" = x &&
1811 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1812 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1813 { (exit 1); exit 1; }; }
1814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1817 { (exit 1); exit 1; }; }
1820 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1821 echo "${ECHO_T}$ac_cv_build" >&6; }
1822 case $ac_cv_build in
1823 *-*-*) ;;
1824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1825 echo "$as_me: error: invalid value of canonical build" >&2;}
1826 { (exit 1); exit 1; }; };;
1827 esac
1828 build=$ac_cv_build
1829 ac_save_IFS=$IFS; IFS='-'
1830 set x $ac_cv_build
1831 shift
1832 build_cpu=$1
1833 build_vendor=$2
1834 shift; shift
1835 # Remember, the first character of IFS is used to create $*,
1836 # except with old shells:
1837 build_os=$*
1838 IFS=$ac_save_IFS
1839 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1842 { echo "$as_me:$LINENO: checking host system type" >&5
1843 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1844 if test "${ac_cv_host+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847 if test "x$host_alias" = x; then
1848 ac_cv_host=$ac_cv_build
1849 else
1850 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1853 { (exit 1); exit 1; }; }
1857 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1858 echo "${ECHO_T}$ac_cv_host" >&6; }
1859 case $ac_cv_host in
1860 *-*-*) ;;
1861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1862 echo "$as_me: error: invalid value of canonical host" >&2;}
1863 { (exit 1); exit 1; }; };;
1864 esac
1865 host=$ac_cv_host
1866 ac_save_IFS=$IFS; IFS='-'
1867 set x $ac_cv_host
1868 shift
1869 host_cpu=$1
1870 host_vendor=$2
1871 shift; shift
1872 # Remember, the first character of IFS is used to create $*,
1873 # except with old shells:
1874 host_os=$*
1875 IFS=$ac_save_IFS
1876 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1879 { echo "$as_me:$LINENO: checking target system type" >&5
1880 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1881 if test "${ac_cv_target+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 else
1884 if test "x$target_alias" = x; then
1885 ac_cv_target=$ac_cv_host
1886 else
1887 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1888 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1889 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1890 { (exit 1); exit 1; }; }
1894 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1895 echo "${ECHO_T}$ac_cv_target" >&6; }
1896 case $ac_cv_target in
1897 *-*-*) ;;
1898 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1899 echo "$as_me: error: invalid value of canonical target" >&2;}
1900 { (exit 1); exit 1; }; };;
1901 esac
1902 target=$ac_cv_target
1903 ac_save_IFS=$IFS; IFS='-'
1904 set x $ac_cv_target
1905 shift
1906 target_cpu=$1
1907 target_vendor=$2
1908 shift; shift
1909 # Remember, the first character of IFS is used to create $*,
1910 # except with old shells:
1911 target_os=$*
1912 IFS=$ac_save_IFS
1913 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1916 # The aliases save the names the user supplied, while $host etc.
1917 # will get canonicalized.
1918 test -n "$target_alias" &&
1919 test "$program_prefix$program_suffix$program_transform_name" = \
1920 NONENONEs,x,x, &&
1921 program_prefix=${target_alias}-
1923 # Program name transformations
1924 test "$program_prefix" != NONE &&
1925 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1926 # Use a double $ so make ignores it.
1927 test "$program_suffix" != NONE &&
1928 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1929 # Double any \ or $. echo might interpret backslashes.
1930 # By default was `s,x,x', remove it if useless.
1931 cat <<\_ACEOF >conftest.sed
1932 s/[\\$]/&&/g;s/;s,x,x,$//
1933 _ACEOF
1934 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1935 rm -f conftest.sed
1938 case "$host_cpu" in
1939 powerpc64) host_m32=1 ;;
1940 esac
1942 case "$target_cpu" in
1943 i[3456]86) target_cpu=i386 ;;
1944 esac
1946 # Specify the platform (such as firmware).
1948 # Check whether --with-platform was given.
1949 if test "${with_platform+set}" = set; then
1950 withval=$with_platform;
1954 # Guess the platform if not specified.
1955 if test "x$with_platform" = x; then
1956 case "$target_cpu"-"$target_vendor" in
1957 i386-apple) platform=efi ;;
1958 i386-*) platform=pc ;;
1959 x86_64-apple) platform=efi ;;
1960 x86_64-*) platform=pc ;;
1961 powerpc-*) platform=ieee1275 ;;
1962 powerpc64-*) platform=ieee1275 ;;
1963 sparc64-*) platform=ieee1275 ;;
1964 *) { { echo "$as_me:$LINENO: error: unsupported CPU: \"$target_cpu\"" >&5
1965 echo "$as_me: error: unsupported CPU: \"$target_cpu\"" >&2;}
1966 { (exit 1); exit 1; }; } ;;
1967 esac
1968 else
1969 platform="$with_platform"
1972 # Adjust CPU unless target was explicitly specified.
1973 if test -z "$target_alias"; then
1974 case "$target_cpu"-"$platform" in
1975 x86_64-efi) ;;
1976 x86_64-*) target_cpu=i386 ;;
1977 powerpc64-ieee1275) target_cpu=powerpc ;;
1978 esac
1981 # Check if the platform is supported, make final adjustments.
1982 case "$target_cpu"-"$platform" in
1983 i386-efi) ;;
1984 x86_64-efi) ;;
1985 i386-pc) ;;
1986 i386-coreboot) ;;
1987 i386-linuxbios) platform=coreboot ;;
1988 i386-ieee1275) ;;
1989 powerpc-ieee1275) ;;
1990 sparc64-ieee1275) ;;
1991 *) { { echo "$as_me:$LINENO: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&5
1992 echo "$as_me: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&2;}
1993 { (exit 1); exit 1; }; } ;;
1994 esac
1996 case "$target_cpu" in
1997 i386 | powerpc) target_m32=1 ;;
1998 x86_64 | sparc64) target_m64=1 ;;
1999 esac
2001 case "$host_os" in
2002 mingw32) host_os=cygwin ;;
2003 esac
2005 case "$target_os" in
2006 mingw32) target_os=cygwin ;;
2007 esac
2014 # Checks for build programs.
2017 # Although cmp is listed in the GNU Coding Standards as a command which
2018 # can used directly, OpenBSD lacks cmp in the default installation.
2019 for ac_prog in cmp
2021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $ac_prog; ac_word=$2
2023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025 if test "${ac_cv_prog_CMP+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 if test -n "$CMP"; then
2029 ac_cv_prog_CMP="$CMP" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2038 ac_cv_prog_CMP="$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2042 done
2043 done
2044 IFS=$as_save_IFS
2048 CMP=$ac_cv_prog_CMP
2049 if test -n "$CMP"; then
2050 { echo "$as_me:$LINENO: result: $CMP" >&5
2051 echo "${ECHO_T}$CMP" >&6; }
2052 else
2053 { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2058 test -n "$CMP" && break
2059 done
2061 if test "x$CMP" = x; then
2062 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
2063 echo "$as_me: error: cmp is not found" >&2;}
2064 { (exit 1); exit 1; }; }
2067 for ac_prog in bison
2069 # Extract the first word of "$ac_prog", so it can be a program name with args.
2070 set dummy $ac_prog; ac_word=$2
2071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2073 if test "${ac_cv_prog_YACC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076 if test -n "$YACC"; then
2077 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2086 ac_cv_prog_YACC="$ac_prog"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 break 2
2090 done
2091 done
2092 IFS=$as_save_IFS
2096 YACC=$ac_cv_prog_YACC
2097 if test -n "$YACC"; then
2098 { echo "$as_me:$LINENO: result: $YACC" >&5
2099 echo "${ECHO_T}$YACC" >&6; }
2100 else
2101 { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2106 test -n "$YACC" && break
2107 done
2109 if test "x$YACC" = x; then
2110 { { echo "$as_me:$LINENO: error: bison is not found" >&5
2111 echo "$as_me: error: bison is not found" >&2;}
2112 { (exit 1); exit 1; }; }
2115 for file in /usr/src/unifont.bdf ; do
2116 if test -e $file ; then
2117 UNIFONT_BDF=$file
2119 break
2121 done
2123 # Find a good install program. We prefer a C program (faster),
2124 # so one script is as good as another. But avoid the broken or
2125 # incompatible versions:
2126 # SysV /etc/install, /usr/sbin/install
2127 # SunOS /usr/etc/install
2128 # IRIX /sbin/install
2129 # AIX /bin/install
2130 # AmigaOS /C/install, which installs bootblocks on floppy discs
2131 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2132 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2133 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2134 # OS/2's system install, which has a completely different semantic
2135 # ./install, which can be erroneously created by make from ./install.sh.
2136 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2137 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2138 if test -z "$INSTALL"; then
2139 if test "${ac_cv_path_install+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 # Account for people who put trailing slashes in PATH elements.
2148 case $as_dir/ in
2149 ./ | .// | /cC/* | \
2150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2151 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2152 /usr/ucb/* ) ;;
2154 # OSF1 and SCO ODT 3.0 have their own names for install.
2155 # Don't use installbsd from OSF since it installs stuff as root
2156 # by default.
2157 for ac_prog in ginstall scoinst install; do
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2160 if test $ac_prog = install &&
2161 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2162 # AIX install. It has an incompatible calling convention.
2164 elif test $ac_prog = install &&
2165 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2166 # program-specific install script used by HP pwplus--don't use.
2168 else
2169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2170 break 3
2173 done
2174 done
2176 esac
2177 done
2178 IFS=$as_save_IFS
2182 if test "${ac_cv_path_install+set}" = set; then
2183 INSTALL=$ac_cv_path_install
2184 else
2185 # As a last resort, use the slow shell script. Don't cache a
2186 # value for INSTALL within a source directory, because that will
2187 # break other packages using the cache if that directory is
2188 # removed, or if the value is a relative name.
2189 INSTALL=$ac_install_sh
2192 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2193 echo "${ECHO_T}$INSTALL" >&6; }
2195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2196 # It thinks the first close brace ends the variable substitution.
2197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2201 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2203 for ac_prog in gawk mawk nawk awk
2205 # Extract the first word of "$ac_prog", so it can be a program name with args.
2206 set dummy $ac_prog; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_AWK+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 if test -n "$AWK"; then
2213 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_AWK="$ac_prog"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2226 done
2227 done
2228 IFS=$as_save_IFS
2232 AWK=$ac_cv_prog_AWK
2233 if test -n "$AWK"; then
2234 { echo "$as_me:$LINENO: result: $AWK" >&5
2235 echo "${ECHO_T}$AWK" >&6; }
2236 else
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2242 test -n "$AWK" && break
2243 done
2245 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2246 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2247 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2248 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251 cat >conftest.make <<\_ACEOF
2252 SHELL = /bin/sh
2253 all:
2254 @echo '@@@%%%=$(MAKE)=@@@%%%'
2255 _ACEOF
2256 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2257 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2258 *@@@%%%=?*=@@@%%%*)
2259 eval ac_cv_prog_make_${ac_make}_set=yes;;
2261 eval ac_cv_prog_make_${ac_make}_set=no;;
2262 esac
2263 rm -f conftest.make
2265 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2266 { echo "$as_me:$LINENO: result: yes" >&5
2267 echo "${ECHO_T}yes" >&6; }
2268 SET_MAKE=
2269 else
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2272 SET_MAKE="MAKE=${MAKE-make}"
2276 # These are not a "must".
2277 # Extract the first word of "ruby", so it can be a program name with args.
2278 set dummy ruby; ac_word=$2
2279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281 if test "${ac_cv_path_RUBY+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284 case $RUBY in
2285 [\\/]* | ?:[\\/]*)
2286 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2300 done
2301 done
2302 IFS=$as_save_IFS
2305 esac
2307 RUBY=$ac_cv_path_RUBY
2308 if test -n "$RUBY"; then
2309 { echo "$as_me:$LINENO: result: $RUBY" >&5
2310 echo "${ECHO_T}$RUBY" >&6; }
2311 else
2312 { echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6; }
2317 # Extract the first word of "help2man", so it can be a program name with args.
2318 set dummy help2man; ac_word=$2
2319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2321 if test "${ac_cv_path_HELP2MAN+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324 case $HELP2MAN in
2325 [\\/]* | ?:[\\/]*)
2326 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2340 done
2341 done
2342 IFS=$as_save_IFS
2345 esac
2347 HELP2MAN=$ac_cv_path_HELP2MAN
2348 if test -n "$HELP2MAN"; then
2349 { echo "$as_me:$LINENO: result: $HELP2MAN" >&5
2350 echo "${ECHO_T}$HELP2MAN" >&6; }
2351 else
2352 { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2359 # Checks for host programs.
2362 ac_ext=c
2363 ac_cpp='$CPP $CPPFLAGS'
2364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367 if test -n "$ac_tool_prefix"; then
2368 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2369 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2372 if test "${ac_cv_prog_CC+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375 if test -n "$CC"; then
2376 ac_cv_prog_CC="$CC" # Let the user override the test.
2377 else
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 for as_dir in $PATH
2381 IFS=$as_save_IFS
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2385 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 break 2
2389 done
2390 done
2391 IFS=$as_save_IFS
2395 CC=$ac_cv_prog_CC
2396 if test -n "$CC"; then
2397 { echo "$as_me:$LINENO: result: $CC" >&5
2398 echo "${ECHO_T}$CC" >&6; }
2399 else
2400 { echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6; }
2406 if test -z "$ac_cv_prog_CC"; then
2407 ac_ct_CC=$CC
2408 # Extract the first word of "gcc", so it can be a program name with args.
2409 set dummy gcc; ac_word=$2
2410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2412 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415 if test -n "$ac_ct_CC"; then
2416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2417 else
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2421 IFS=$as_save_IFS
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425 ac_cv_prog_ac_ct_CC="gcc"
2426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 break 2
2429 done
2430 done
2431 IFS=$as_save_IFS
2435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2436 if test -n "$ac_ct_CC"; then
2437 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2438 echo "${ECHO_T}$ac_ct_CC" >&6; }
2439 else
2440 { echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6; }
2444 if test "x$ac_ct_CC" = x; then
2445 CC=""
2446 else
2447 case $cross_compiling:$ac_tool_warned in
2448 yes:)
2449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2450 whose name does not start with the host triplet. If you think this
2451 configuration is useful to you, please write to autoconf@gnu.org." >&5
2452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2453 whose name does not start with the host triplet. If you think this
2454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2455 ac_tool_warned=yes ;;
2456 esac
2457 CC=$ac_ct_CC
2459 else
2460 CC="$ac_cv_prog_CC"
2463 if test -z "$CC"; then
2464 if test -n "$ac_tool_prefix"; then
2465 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2466 set dummy ${ac_tool_prefix}cc; ac_word=$2
2467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2469 if test "${ac_cv_prog_CC+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 else
2472 if test -n "$CC"; then
2473 ac_cv_prog_CC="$CC" # Let the user override the test.
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482 ac_cv_prog_CC="${ac_tool_prefix}cc"
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2486 done
2487 done
2488 IFS=$as_save_IFS
2492 CC=$ac_cv_prog_CC
2493 if test -n "$CC"; then
2494 { echo "$as_me:$LINENO: result: $CC" >&5
2495 echo "${ECHO_T}$CC" >&6; }
2496 else
2497 { echo "$as_me:$LINENO: result: no" >&5
2498 echo "${ECHO_T}no" >&6; }
2504 if test -z "$CC"; then
2505 # Extract the first word of "cc", so it can be a program name with args.
2506 set dummy cc; ac_word=$2
2507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_CC+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC="$CC" # Let the user override the test.
2514 else
2515 ac_prog_rejected=no
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2524 ac_prog_rejected=yes
2525 continue
2527 ac_cv_prog_CC="cc"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2531 done
2532 done
2533 IFS=$as_save_IFS
2535 if test $ac_prog_rejected = yes; then
2536 # We found a bogon in the path, so make sure we never use it.
2537 set dummy $ac_cv_prog_CC
2538 shift
2539 if test $# != 0; then
2540 # We chose a different compiler from the bogus one.
2541 # However, it has the same basename, so the bogon will be chosen
2542 # first if we set CC to just the basename; use the full file name.
2543 shift
2544 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2549 CC=$ac_cv_prog_CC
2550 if test -n "$CC"; then
2551 { echo "$as_me:$LINENO: result: $CC" >&5
2552 echo "${ECHO_T}$CC" >&6; }
2553 else
2554 { echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6; }
2560 if test -z "$CC"; then
2561 if test -n "$ac_tool_prefix"; then
2562 for ac_prog in cl.exe
2564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2568 if test "${ac_cv_prog_CC+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2585 done
2586 done
2587 IFS=$as_save_IFS
2591 CC=$ac_cv_prog_CC
2592 if test -n "$CC"; then
2593 { echo "$as_me:$LINENO: result: $CC" >&5
2594 echo "${ECHO_T}$CC" >&6; }
2595 else
2596 { echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6; }
2601 test -n "$CC" && break
2602 done
2604 if test -z "$CC"; then
2605 ac_ct_CC=$CC
2606 for ac_prog in cl.exe
2608 # Extract the first word of "$ac_prog", so it can be a program name with args.
2609 set dummy $ac_prog; ac_word=$2
2610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2612 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615 if test -n "$ac_ct_CC"; then
2616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_ac_ct_CC="$ac_prog"
2626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2629 done
2630 done
2631 IFS=$as_save_IFS
2635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2636 if test -n "$ac_ct_CC"; then
2637 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2638 echo "${ECHO_T}$ac_ct_CC" >&6; }
2639 else
2640 { echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6; }
2645 test -n "$ac_ct_CC" && break
2646 done
2648 if test "x$ac_ct_CC" = x; then
2649 CC=""
2650 else
2651 case $cross_compiling:$ac_tool_warned in
2652 yes:)
2653 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2654 whose name does not start with the host triplet. If you think this
2655 configuration is useful to you, please write to autoconf@gnu.org." >&5
2656 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2657 whose name does not start with the host triplet. If you think this
2658 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2659 ac_tool_warned=yes ;;
2660 esac
2661 CC=$ac_ct_CC
2668 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: no acceptable C compiler found in \$PATH
2671 See \`config.log' for more details." >&2;}
2672 { (exit 1); exit 1; }; }
2674 # Provide some information about the compiler.
2675 echo "$as_me:$LINENO: checking for C compiler version" >&5
2676 ac_compiler=`set X $ac_compile; echo $2`
2677 { (ac_try="$ac_compiler --version >&5"
2678 case "(($ac_try" in
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2681 esac
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_compiler --version >&5") 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2687 { (ac_try="$ac_compiler -v >&5"
2688 case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691 esac
2692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693 (eval "$ac_compiler -v >&5") 2>&5
2694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }
2697 { (ac_try="$ac_compiler -V >&5"
2698 case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compiler -V >&5") 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }
2708 cat >conftest.$ac_ext <<_ACEOF
2709 /* confdefs.h. */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2716 main ()
2720 return 0;
2722 _ACEOF
2723 ac_clean_files_save=$ac_clean_files
2724 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2725 # Try to create an executable without -o first, disregard a.out.
2726 # It will help us diagnose broken compilers, and finding out an intuition
2727 # of exeext.
2728 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2729 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2730 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2732 # List of possible output files, starting from the most likely.
2733 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2734 # only as a last resort. b.out is created by i960 compilers.
2735 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2737 # The IRIX 6 linker writes into existing files which may not be
2738 # executable, retaining their permissions. Remove them first so a
2739 # subsequent execution test works.
2740 ac_rmfiles=
2741 for ac_file in $ac_files
2743 case $ac_file in
2744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2745 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2746 esac
2747 done
2748 rm -f $ac_rmfiles
2750 if { (ac_try="$ac_link_default"
2751 case "(($ac_try" in
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2754 esac
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_link_default") 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; then
2760 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2761 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2762 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2763 # so that the user can short-circuit this test for compilers unknown to
2764 # Autoconf.
2765 for ac_file in $ac_files ''
2767 test -f "$ac_file" || continue
2768 case $ac_file in
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2771 [ab].out )
2772 # We found the default executable, but exeext='' is most
2773 # certainly right.
2774 break;;
2775 *.* )
2776 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2777 then :; else
2778 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2780 # We set ac_cv_exeext here because the later test for it is not
2781 # safe: cross compilers may not add the suffix if given an `-o'
2782 # argument, so we may need to know it at that point already.
2783 # Even if this section looks crufty: it has the advantage of
2784 # actually working.
2785 break;;
2787 break;;
2788 esac
2789 done
2790 test "$ac_cv_exeext" = no && ac_cv_exeext=
2792 else
2793 ac_file=''
2796 { echo "$as_me:$LINENO: result: $ac_file" >&5
2797 echo "${ECHO_T}$ac_file" >&6; }
2798 if test -z "$ac_file"; then
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2803 See \`config.log' for more details." >&5
2804 echo "$as_me: error: C compiler cannot create executables
2805 See \`config.log' for more details." >&2;}
2806 { (exit 77); exit 77; }; }
2809 ac_exeext=$ac_cv_exeext
2811 # Check that the compiler produces executables we can run. If not, either
2812 # the compiler is broken, or we cross compile.
2813 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2814 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2815 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2816 # If not cross compiling, check that we can run a simple program.
2817 if test "$cross_compiling" != yes; then
2818 if { ac_try='./$ac_file'
2819 { (case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_try") 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; }; then
2828 cross_compiling=no
2829 else
2830 if test "$cross_compiling" = maybe; then
2831 cross_compiling=yes
2832 else
2833 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2834 If you meant to cross compile, use \`--host'.
2835 See \`config.log' for more details." >&5
2836 echo "$as_me: error: cannot run C compiled programs.
2837 If you meant to cross compile, use \`--host'.
2838 See \`config.log' for more details." >&2;}
2839 { (exit 1); exit 1; }; }
2843 { echo "$as_me:$LINENO: result: yes" >&5
2844 echo "${ECHO_T}yes" >&6; }
2846 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2847 ac_clean_files=$ac_clean_files_save
2848 # Check that the compiler produces executables we can run. If not, either
2849 # the compiler is broken, or we cross compile.
2850 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2851 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2852 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2853 echo "${ECHO_T}$cross_compiling" >&6; }
2855 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2856 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2857 if { (ac_try="$ac_link"
2858 case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861 esac
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_link") 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; then
2867 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2868 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2869 # work properly (i.e., refer to `conftest.exe'), while it won't with
2870 # `rm'.
2871 for ac_file in conftest.exe conftest conftest.*; do
2872 test -f "$ac_file" || continue
2873 case $ac_file in
2874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2875 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2876 break;;
2877 * ) break;;
2878 esac
2879 done
2880 else
2881 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2882 See \`config.log' for more details." >&5
2883 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2884 See \`config.log' for more details." >&2;}
2885 { (exit 1); exit 1; }; }
2888 rm -f conftest$ac_cv_exeext
2889 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2890 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2892 rm -f conftest.$ac_ext
2893 EXEEXT=$ac_cv_exeext
2894 ac_exeext=$EXEEXT
2895 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2896 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2897 if test "${ac_cv_objext+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900 cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h. */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2908 main ()
2912 return 0;
2914 _ACEOF
2915 rm -f conftest.o conftest.obj
2916 if { (ac_try="$ac_compile"
2917 case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920 esac
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compile") 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; then
2926 for ac_file in conftest.o conftest.obj conftest.*; do
2927 test -f "$ac_file" || continue;
2928 case $ac_file in
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2930 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2931 break;;
2932 esac
2933 done
2934 else
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2938 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2939 See \`config.log' for more details." >&5
2940 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2941 See \`config.log' for more details." >&2;}
2942 { (exit 1); exit 1; }; }
2945 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2947 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2948 echo "${ECHO_T}$ac_cv_objext" >&6; }
2949 OBJEXT=$ac_cv_objext
2950 ac_objext=$OBJEXT
2951 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2952 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2953 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956 cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h. */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2964 main ()
2966 #ifndef __GNUC__
2967 choke me
2968 #endif
2971 return 0;
2973 _ACEOF
2974 rm -f conftest.$ac_objext
2975 if { (ac_try="$ac_compile"
2976 case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979 esac
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_compile") 2>conftest.er1
2982 ac_status=$?
2983 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -f conftest.er1
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } && {
2988 test -z "$ac_c_werror_flag" ||
2989 test ! -s conftest.err
2990 } && test -s conftest.$ac_objext; then
2991 ac_compiler_gnu=yes
2992 else
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2996 ac_compiler_gnu=no
2999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3003 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3004 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3005 GCC=`test $ac_compiler_gnu = yes && echo yes`
3006 ac_test_CFLAGS=${CFLAGS+set}
3007 ac_save_CFLAGS=$CFLAGS
3008 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3009 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3010 if test "${ac_cv_prog_cc_g+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013 ac_save_c_werror_flag=$ac_c_werror_flag
3014 ac_c_werror_flag=yes
3015 ac_cv_prog_cc_g=no
3016 CFLAGS="-g"
3017 cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h. */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3025 main ()
3029 return 0;
3031 _ACEOF
3032 rm -f conftest.$ac_objext
3033 if { (ac_try="$ac_compile"
3034 case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_compile") 2>conftest.er1
3040 ac_status=$?
3041 grep -v '^ *+' conftest.er1 >conftest.err
3042 rm -f conftest.er1
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } && {
3046 test -z "$ac_c_werror_flag" ||
3047 test ! -s conftest.err
3048 } && test -s conftest.$ac_objext; then
3049 ac_cv_prog_cc_g=yes
3050 else
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 CFLAGS=""
3055 cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h. */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3063 main ()
3067 return 0;
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3072 case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } && {
3084 test -z "$ac_c_werror_flag" ||
3085 test ! -s conftest.err
3086 } && test -s conftest.$ac_objext; then
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 ac_c_werror_flag=$ac_save_c_werror_flag
3093 CFLAGS="-g"
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3102 main ()
3106 return 0;
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3117 ac_status=$?
3118 grep -v '^ *+' conftest.er1 >conftest.err
3119 rm -f conftest.er1
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } && {
3123 test -z "$ac_c_werror_flag" ||
3124 test ! -s conftest.err
3125 } && test -s conftest.$ac_objext; then
3126 ac_cv_prog_cc_g=yes
3127 else
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3141 ac_c_werror_flag=$ac_save_c_werror_flag
3143 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3144 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3145 if test "$ac_test_CFLAGS" = set; then
3146 CFLAGS=$ac_save_CFLAGS
3147 elif test $ac_cv_prog_cc_g = yes; then
3148 if test "$GCC" = yes; then
3149 CFLAGS="-g -O2"
3150 else
3151 CFLAGS="-g"
3153 else
3154 if test "$GCC" = yes; then
3155 CFLAGS="-O2"
3156 else
3157 CFLAGS=
3160 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3161 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3162 if test "${ac_cv_prog_cc_c89+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165 ac_cv_prog_cc_c89=no
3166 ac_save_CC=$CC
3167 cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h. */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3173 #include <stdarg.h>
3174 #include <stdio.h>
3175 #include <sys/types.h>
3176 #include <sys/stat.h>
3177 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3178 struct buf { int x; };
3179 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3180 static char *e (p, i)
3181 char **p;
3182 int i;
3184 return p[i];
3186 static char *f (char * (*g) (char **, int), char **p, ...)
3188 char *s;
3189 va_list v;
3190 va_start (v,p);
3191 s = g (p, va_arg (v,int));
3192 va_end (v);
3193 return s;
3196 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3197 function prototypes and stuff, but not '\xHH' hex character constants.
3198 These don't provoke an error unfortunately, instead are silently treated
3199 as 'x'. The following induces an error, until -std is added to get
3200 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3201 array size at least. It's necessary to write '\x00'==0 to get something
3202 that's true only with -std. */
3203 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3205 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3206 inside strings and character constants. */
3207 #define FOO(x) 'x'
3208 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3210 int test (int i, double x);
3211 struct s1 {int (*f) (int a);};
3212 struct s2 {int (*f) (double a);};
3213 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3214 int argc;
3215 char **argv;
3217 main ()
3219 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3221 return 0;
3223 _ACEOF
3224 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3225 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3227 CC="$ac_save_CC $ac_arg"
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } && {
3242 test -z "$ac_c_werror_flag" ||
3243 test ! -s conftest.err
3244 } && test -s conftest.$ac_objext; then
3245 ac_cv_prog_cc_c89=$ac_arg
3246 else
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3253 rm -f core conftest.err conftest.$ac_objext
3254 test "x$ac_cv_prog_cc_c89" != "xno" && break
3255 done
3256 rm -f conftest.$ac_ext
3257 CC=$ac_save_CC
3260 # AC_CACHE_VAL
3261 case "x$ac_cv_prog_cc_c89" in
3263 { echo "$as_me:$LINENO: result: none needed" >&5
3264 echo "${ECHO_T}none needed" >&6; } ;;
3265 xno)
3266 { echo "$as_me:$LINENO: result: unsupported" >&5
3267 echo "${ECHO_T}unsupported" >&6; } ;;
3269 CC="$CC $ac_cv_prog_cc_c89"
3270 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3271 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3272 esac
3275 ac_ext=c
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281 # Must be GCC.
3282 test "x$GCC" = xyes || { { echo "$as_me:$LINENO: error: GCC is required" >&5
3283 echo "$as_me: error: GCC is required" >&2;}
3284 { (exit 1); exit 1; }; }
3287 cat >>confdefs.h <<\_ACEOF
3288 #define _GNU_SOURCE 1
3289 _ACEOF
3293 # Check whether --enable-largefile was given.
3294 if test "${enable_largefile+set}" = set; then
3295 enableval=$enable_largefile;
3298 if test "$enable_largefile" != no; then
3300 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3301 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3302 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305 ac_cv_sys_largefile_CC=no
3306 if test "$GCC" != yes; then
3307 ac_save_CC=$CC
3308 while :; do
3309 # IRIX 6.2 and later do not support large files by default,
3310 # so use the C compiler's -n32 option if that helps.
3311 cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h. */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3317 #include <sys/types.h>
3318 /* Check that off_t can represent 2**63 - 1 correctly.
3319 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3320 since some C++ compilers masquerading as C compilers
3321 incorrectly reject 9223372036854775807. */
3322 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3323 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3324 && LARGE_OFF_T % 2147483647 == 1)
3325 ? 1 : -1];
3327 main ()
3331 return 0;
3333 _ACEOF
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3342 ac_status=$?
3343 grep -v '^ *+' conftest.er1 >conftest.err
3344 rm -f conftest.er1
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && {
3348 test -z "$ac_c_werror_flag" ||
3349 test ! -s conftest.err
3350 } && test -s conftest.$ac_objext; then
3351 break
3352 else
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext
3360 CC="$CC -n32"
3361 rm -f conftest.$ac_objext
3362 if { (ac_try="$ac_compile"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } && {
3375 test -z "$ac_c_werror_flag" ||
3376 test ! -s conftest.err
3377 } && test -s conftest.$ac_objext; then
3378 ac_cv_sys_largefile_CC=' -n32'; break
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3386 rm -f core conftest.err conftest.$ac_objext
3387 break
3388 done
3389 CC=$ac_save_CC
3390 rm -f conftest.$ac_ext
3393 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3394 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3395 if test "$ac_cv_sys_largefile_CC" != no; then
3396 CC=$CC$ac_cv_sys_largefile_CC
3399 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3400 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3401 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404 while :; do
3405 cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h. */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #include <sys/types.h>
3412 /* Check that off_t can represent 2**63 - 1 correctly.
3413 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3414 since some C++ compilers masquerading as C compilers
3415 incorrectly reject 9223372036854775807. */
3416 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3417 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3418 && LARGE_OFF_T % 2147483647 == 1)
3419 ? 1 : -1];
3421 main ()
3425 return 0;
3427 _ACEOF
3428 rm -f conftest.$ac_objext
3429 if { (ac_try="$ac_compile"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_compile") 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } && {
3442 test -z "$ac_c_werror_flag" ||
3443 test ! -s conftest.err
3444 } && test -s conftest.$ac_objext; then
3445 ac_cv_sys_file_offset_bits=no; break
3446 else
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 #define _FILE_OFFSET_BITS 64
3461 #include <sys/types.h>
3462 /* Check that off_t can represent 2**63 - 1 correctly.
3463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3464 since some C++ compilers masquerading as C compilers
3465 incorrectly reject 9223372036854775807. */
3466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3468 && LARGE_OFF_T % 2147483647 == 1)
3469 ? 1 : -1];
3471 main ()
3475 return 0;
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (ac_try="$ac_compile"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_compile") 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } && {
3492 test -z "$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest.$ac_objext; then
3495 ac_cv_sys_file_offset_bits=64; break
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_cv_sys_file_offset_bits=unknown
3505 break
3506 done
3508 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3509 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3510 case $ac_cv_sys_file_offset_bits in #(
3511 no | unknown) ;;
3513 cat >>confdefs.h <<_ACEOF
3514 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3515 _ACEOF
3517 esac
3518 rm -f conftest*
3519 if test $ac_cv_sys_file_offset_bits = unknown; then
3520 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3521 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3522 if test "${ac_cv_sys_large_files+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525 while :; do
3526 cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h. */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3532 #include <sys/types.h>
3533 /* Check that off_t can represent 2**63 - 1 correctly.
3534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3535 since some C++ compilers masquerading as C compilers
3536 incorrectly reject 9223372036854775807. */
3537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3539 && LARGE_OFF_T % 2147483647 == 1)
3540 ? 1 : -1];
3542 main ()
3546 return 0;
3548 _ACEOF
3549 rm -f conftest.$ac_objext
3550 if { (ac_try="$ac_compile"
3551 case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554 esac
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_compile") 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } && {
3563 test -z "$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 } && test -s conftest.$ac_objext; then
3566 ac_cv_sys_large_files=no; break
3567 else
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 cat >conftest.$ac_ext <<_ACEOF
3576 /* confdefs.h. */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581 #define _LARGE_FILES 1
3582 #include <sys/types.h>
3583 /* Check that off_t can represent 2**63 - 1 correctly.
3584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3585 since some C++ compilers masquerading as C compilers
3586 incorrectly reject 9223372036854775807. */
3587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3589 && LARGE_OFF_T % 2147483647 == 1)
3590 ? 1 : -1];
3592 main ()
3596 return 0;
3598 _ACEOF
3599 rm -f conftest.$ac_objext
3600 if { (ac_try="$ac_compile"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_compile") 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } && {
3613 test -z "$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3615 } && test -s conftest.$ac_objext; then
3616 ac_cv_sys_large_files=1; break
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 ac_cv_sys_large_files=unknown
3626 break
3627 done
3629 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3630 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3631 case $ac_cv_sys_large_files in #(
3632 no | unknown) ;;
3634 cat >>confdefs.h <<_ACEOF
3635 #define _LARGE_FILES $ac_cv_sys_large_files
3636 _ACEOF
3638 esac
3639 rm -f conftest*
3644 # Identify characteristics of the host architecture.
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3651 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3652 # On Suns, sometimes $CPP names a directory.
3653 if test -n "$CPP" && test -d "$CPP"; then
3654 CPP=
3656 if test -z "$CPP"; then
3657 if test "${ac_cv_prog_CPP+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 # Double quotes because CPP needs to be expanded
3661 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3663 ac_preproc_ok=false
3664 for ac_c_preproc_warn_flag in '' yes
3666 # Use a header file that comes with gcc, so configuring glibc
3667 # with a fresh cross-compiler works.
3668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669 # <limits.h> exists even on freestanding compilers.
3670 # On the NeXT, cc -E runs the code through the compiler's parser,
3671 # not just through cpp. "Syntax error" is here to catch this case.
3672 cat >conftest.$ac_ext <<_ACEOF
3673 /* confdefs.h. */
3674 _ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3678 #ifdef __STDC__
3679 # include <limits.h>
3680 #else
3681 # include <assert.h>
3682 #endif
3683 Syntax error
3684 _ACEOF
3685 if { (ac_try="$ac_cpp conftest.$ac_ext"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } >/dev/null && {
3698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3699 test ! -s conftest.err
3700 }; then
3702 else
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 # Broken: fails on valid input.
3707 continue
3710 rm -f conftest.err conftest.$ac_ext
3712 # OK, works on sane cases. Now check whether nonexistent headers
3713 # can be detected and how.
3714 cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h. */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3720 #include <ac_nonexistent.h>
3721 _ACEOF
3722 if { (ac_try="$ac_cpp conftest.$ac_ext"
3723 case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3729 ac_status=$?
3730 grep -v '^ *+' conftest.er1 >conftest.err
3731 rm -f conftest.er1
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } >/dev/null && {
3735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3736 test ! -s conftest.err
3737 }; then
3738 # Broken: success on invalid input.
3739 continue
3740 else
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3744 # Passes both tests.
3745 ac_preproc_ok=:
3746 break
3749 rm -f conftest.err conftest.$ac_ext
3751 done
3752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3753 rm -f conftest.err conftest.$ac_ext
3754 if $ac_preproc_ok; then
3755 break
3758 done
3759 ac_cv_prog_CPP=$CPP
3762 CPP=$ac_cv_prog_CPP
3763 else
3764 ac_cv_prog_CPP=$CPP
3766 { echo "$as_me:$LINENO: result: $CPP" >&5
3767 echo "${ECHO_T}$CPP" >&6; }
3768 ac_preproc_ok=false
3769 for ac_c_preproc_warn_flag in '' yes
3771 # Use a header file that comes with gcc, so configuring glibc
3772 # with a fresh cross-compiler works.
3773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3774 # <limits.h> exists even on freestanding compilers.
3775 # On the NeXT, cc -E runs the code through the compiler's parser,
3776 # not just through cpp. "Syntax error" is here to catch this case.
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 #ifdef __STDC__
3784 # include <limits.h>
3785 #else
3786 # include <assert.h>
3787 #endif
3788 Syntax error
3789 _ACEOF
3790 if { (ac_try="$ac_cpp conftest.$ac_ext"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } >/dev/null && {
3803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3805 }; then
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 # Broken: fails on valid input.
3812 continue
3815 rm -f conftest.err conftest.$ac_ext
3817 # OK, works on sane cases. Now check whether nonexistent headers
3818 # can be detected and how.
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h. */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825 #include <ac_nonexistent.h>
3826 _ACEOF
3827 if { (ac_try="$ac_cpp conftest.$ac_ext"
3828 case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831 esac
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3834 ac_status=$?
3835 grep -v '^ *+' conftest.er1 >conftest.err
3836 rm -f conftest.er1
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } >/dev/null && {
3840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3842 }; then
3843 # Broken: success on invalid input.
3844 continue
3845 else
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 # Passes both tests.
3850 ac_preproc_ok=:
3851 break
3854 rm -f conftest.err conftest.$ac_ext
3856 done
3857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3858 rm -f conftest.err conftest.$ac_ext
3859 if $ac_preproc_ok; then
3861 else
3862 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3863 See \`config.log' for more details." >&5
3864 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3865 See \`config.log' for more details." >&2;}
3866 { (exit 1); exit 1; }; }
3869 ac_ext=c
3870 ac_cpp='$CPP $CPPFLAGS'
3871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3877 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3878 if test "${ac_cv_path_GREP+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 # Extract the first word of "grep ggrep" to use in msg output
3882 if test -z "$GREP"; then
3883 set dummy grep ggrep; ac_prog_name=$2
3884 if test "${ac_cv_path_GREP+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887 ac_path_GREP_found=false
3888 # Loop through the user's path and test for each of PROGNAME-LIST
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_prog in grep ggrep; do
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3897 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3898 # Check for GNU ac_path_GREP and select it if it is found.
3899 # Check for GNU $ac_path_GREP
3900 case `"$ac_path_GREP" --version 2>&1` in
3901 *GNU*)
3902 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3904 ac_count=0
3905 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3906 while :
3908 cat "conftest.in" "conftest.in" >"conftest.tmp"
3909 mv "conftest.tmp" "conftest.in"
3910 cp "conftest.in" "conftest.nl"
3911 echo 'GREP' >> "conftest.nl"
3912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3914 ac_count=`expr $ac_count + 1`
3915 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3916 # Best one so far, save it but keep looking for a better one
3917 ac_cv_path_GREP="$ac_path_GREP"
3918 ac_path_GREP_max=$ac_count
3920 # 10*(2^10) chars as input seems more than enough
3921 test $ac_count -gt 10 && break
3922 done
3923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3924 esac
3927 $ac_path_GREP_found && break 3
3928 done
3929 done
3931 done
3932 IFS=$as_save_IFS
3937 GREP="$ac_cv_path_GREP"
3938 if test -z "$GREP"; then
3939 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3940 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3941 { (exit 1); exit 1; }; }
3944 else
3945 ac_cv_path_GREP=$GREP
3950 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3951 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3952 GREP="$ac_cv_path_GREP"
3955 { echo "$as_me:$LINENO: checking for egrep" >&5
3956 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3957 if test "${ac_cv_path_EGREP+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3961 then ac_cv_path_EGREP="$GREP -E"
3962 else
3963 # Extract the first word of "egrep" to use in msg output
3964 if test -z "$EGREP"; then
3965 set dummy egrep; ac_prog_name=$2
3966 if test "${ac_cv_path_EGREP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969 ac_path_EGREP_found=false
3970 # Loop through the user's path and test for each of PROGNAME-LIST
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_prog in egrep; do
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3979 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3980 # Check for GNU ac_path_EGREP and select it if it is found.
3981 # Check for GNU $ac_path_EGREP
3982 case `"$ac_path_EGREP" --version 2>&1` in
3983 *GNU*)
3984 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3986 ac_count=0
3987 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3988 while :
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 echo 'EGREP' >> "conftest.nl"
3994 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996 ac_count=`expr $ac_count + 1`
3997 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_EGREP="$ac_path_EGREP"
4000 ac_path_EGREP_max=$ac_count
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4004 done
4005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006 esac
4009 $ac_path_EGREP_found && break 3
4010 done
4011 done
4013 done
4014 IFS=$as_save_IFS
4019 EGREP="$ac_cv_path_EGREP"
4020 if test -z "$EGREP"; then
4021 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023 { (exit 1); exit 1; }; }
4026 else
4027 ac_cv_path_EGREP=$EGREP
4033 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4034 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4035 EGREP="$ac_cv_path_EGREP"
4038 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4039 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4040 if test "${ac_cv_header_stdc+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043 cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h. */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4049 #include <stdlib.h>
4050 #include <stdarg.h>
4051 #include <string.h>
4052 #include <float.h>
4055 main ()
4059 return 0;
4061 _ACEOF
4062 rm -f conftest.$ac_objext
4063 if { (ac_try="$ac_compile"
4064 case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_compile") 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } && {
4076 test -z "$ac_c_werror_flag" ||
4077 test ! -s conftest.err
4078 } && test -s conftest.$ac_objext; then
4079 ac_cv_header_stdc=yes
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 ac_cv_header_stdc=no
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 if test $ac_cv_header_stdc = yes; then
4090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h. */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 #include <string.h>
4099 _ACEOF
4100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4101 $EGREP "memchr" >/dev/null 2>&1; then
4103 else
4104 ac_cv_header_stdc=no
4106 rm -f conftest*
4110 if test $ac_cv_header_stdc = yes; then
4111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4112 cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h. */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4118 #include <stdlib.h>
4120 _ACEOF
4121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4122 $EGREP "free" >/dev/null 2>&1; then
4124 else
4125 ac_cv_header_stdc=no
4127 rm -f conftest*
4131 if test $ac_cv_header_stdc = yes; then
4132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4133 if test "$cross_compiling" = yes; then
4135 else
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h. */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 #include <ctype.h>
4143 #include <stdlib.h>
4144 #if ((' ' & 0x0FF) == 0x020)
4145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4147 #else
4148 # define ISLOWER(c) \
4149 (('a' <= (c) && (c) <= 'i') \
4150 || ('j' <= (c) && (c) <= 'r') \
4151 || ('s' <= (c) && (c) <= 'z'))
4152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4153 #endif
4155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4157 main ()
4159 int i;
4160 for (i = 0; i < 256; i++)
4161 if (XOR (islower (i), ISLOWER (i))
4162 || toupper (i) != TOUPPER (i))
4163 return 2;
4164 return 0;
4166 _ACEOF
4167 rm -f conftest$ac_exeext
4168 if { (ac_try="$ac_link"
4169 case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_link") 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4178 { (case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4181 esac
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_try") 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4188 else
4189 echo "$as_me: program exited with status $ac_status" >&5
4190 echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4193 ( exit $ac_status )
4194 ac_cv_header_stdc=no
4196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4202 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4203 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4204 if test $ac_cv_header_stdc = yes; then
4206 cat >>confdefs.h <<\_ACEOF
4207 #define STDC_HEADERS 1
4208 _ACEOF
4212 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4223 inttypes.h stdint.h unistd.h
4225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231 cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h. */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4237 $ac_includes_default
4239 #include <$ac_header>
4240 _ACEOF
4241 rm -f conftest.$ac_objext
4242 if { (ac_try="$ac_compile"
4243 case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4246 esac
4247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_compile") 2>conftest.er1
4249 ac_status=$?
4250 grep -v '^ *+' conftest.er1 >conftest.err
4251 rm -f conftest.er1
4252 cat conftest.err >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } && {
4255 test -z "$ac_c_werror_flag" ||
4256 test ! -s conftest.err
4257 } && test -s conftest.$ac_objext; then
4258 eval "$as_ac_Header=yes"
4259 else
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 eval "$as_ac_Header=no"
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 ac_res=`eval echo '${'$as_ac_Header'}'`
4269 { echo "$as_me:$LINENO: result: $ac_res" >&5
4270 echo "${ECHO_T}$ac_res" >&6; }
4271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4272 cat >>confdefs.h <<_ACEOF
4273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4274 _ACEOF
4278 done
4281 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4282 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4283 if test "${ac_cv_c_bigendian+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286 # See if sys/param.h defines the BYTE_ORDER macro.
4287 cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h. */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 #include <sys/types.h>
4294 #include <sys/param.h>
4297 main ()
4299 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4300 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4301 bogus endian macros
4302 #endif
4305 return 0;
4307 _ACEOF
4308 rm -f conftest.$ac_objext
4309 if { (ac_try="$ac_compile"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_compile") 2>conftest.er1
4316 ac_status=$?
4317 grep -v '^ *+' conftest.er1 >conftest.err
4318 rm -f conftest.er1
4319 cat conftest.err >&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } && {
4322 test -z "$ac_c_werror_flag" ||
4323 test ! -s conftest.err
4324 } && test -s conftest.$ac_objext; then
4325 # It does; now see whether it defined to BIG_ENDIAN or not.
4326 cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h. */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 #include <sys/types.h>
4333 #include <sys/param.h>
4336 main ()
4338 #if BYTE_ORDER != BIG_ENDIAN
4339 not big endian
4340 #endif
4343 return 0;
4345 _ACEOF
4346 rm -f conftest.$ac_objext
4347 if { (ac_try="$ac_compile"
4348 case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351 esac
4352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353 (eval "$ac_compile") 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } && {
4360 test -z "$ac_c_werror_flag" ||
4361 test ! -s conftest.err
4362 } && test -s conftest.$ac_objext; then
4363 ac_cv_c_bigendian=yes
4364 else
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 ac_cv_c_bigendian=no
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372 else
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 # It does not; compile a test program.
4377 if test "$cross_compiling" = yes; then
4378 # try to guess the endianness by grepping values into an object file
4379 ac_cv_c_bigendian=unknown
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4387 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4388 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4389 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4390 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4391 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4393 main ()
4395 _ascii (); _ebcdic ();
4397 return 0;
4399 _ACEOF
4400 rm -f conftest.$ac_objext
4401 if { (ac_try="$ac_compile"
4402 case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405 esac
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_compile") 2>conftest.er1
4408 ac_status=$?
4409 grep -v '^ *+' conftest.er1 >conftest.err
4410 rm -f conftest.er1
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } && {
4414 test -z "$ac_c_werror_flag" ||
4415 test ! -s conftest.err
4416 } && test -s conftest.$ac_objext; then
4417 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4418 ac_cv_c_bigendian=yes
4420 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4421 if test "$ac_cv_c_bigendian" = unknown; then
4422 ac_cv_c_bigendian=no
4423 else
4424 # finding both strings is unlikely to happen, but who knows?
4425 ac_cv_c_bigendian=unknown
4428 else
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 else
4437 cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 $ac_includes_default
4445 main ()
4448 /* Are we little or big endian? From Harbison&Steele. */
4449 union
4451 long int l;
4452 char c[sizeof (long int)];
4453 } u;
4454 u.l = 1;
4455 return u.c[sizeof (long int) - 1] == 1;
4458 return 0;
4460 _ACEOF
4461 rm -f conftest$ac_exeext
4462 if { (ac_try="$ac_link"
4463 case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466 esac
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_link") 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4472 { (case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_try") 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_cv_c_bigendian=no
4482 else
4483 echo "$as_me: program exited with status $ac_status" >&5
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4487 ( exit $ac_status )
4488 ac_cv_c_bigendian=yes
4490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4499 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4500 case $ac_cv_c_bigendian in
4501 yes)
4503 cat >>confdefs.h <<\_ACEOF
4504 #define WORDS_BIGENDIAN 1
4505 _ACEOF
4510 { { echo "$as_me:$LINENO: error: unknown endianness
4511 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4512 echo "$as_me: error: unknown endianness
4513 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4514 { (exit 1); exit 1; }; } ;;
4515 esac
4517 { echo "$as_me:$LINENO: checking for void *" >&5
4518 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4519 if test "${ac_cv_type_void_p+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h. */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4529 typedef void * ac__type_new_;
4531 main ()
4533 if ((ac__type_new_ *) 0)
4534 return 0;
4535 if (sizeof (ac__type_new_))
4536 return 0;
4538 return 0;
4540 _ACEOF
4541 rm -f conftest.$ac_objext
4542 if { (ac_try="$ac_compile"
4543 case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_compile") 2>conftest.er1
4549 ac_status=$?
4550 grep -v '^ *+' conftest.er1 >conftest.err
4551 rm -f conftest.er1
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } && {
4555 test -z "$ac_c_werror_flag" ||
4556 test ! -s conftest.err
4557 } && test -s conftest.$ac_objext; then
4558 ac_cv_type_void_p=yes
4559 else
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 ac_cv_type_void_p=no
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4569 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4571 # The cast to long int works around a bug in the HP C Compiler
4572 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4573 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4574 # This bug is HP SR number 8606223364.
4575 { echo "$as_me:$LINENO: checking size of void *" >&5
4576 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4577 if test "${ac_cv_sizeof_void_p+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580 if test "$cross_compiling" = yes; then
4581 # Depending upon the size, compute the lo and hi bounds.
4582 cat >conftest.$ac_ext <<_ACEOF
4583 /* confdefs.h. */
4584 _ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4588 $ac_includes_default
4589 typedef void * ac__type_sizeof_;
4591 main ()
4593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4594 test_array [0] = 0
4597 return 0;
4599 _ACEOF
4600 rm -f conftest.$ac_objext
4601 if { (ac_try="$ac_compile"
4602 case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605 esac
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607 (eval "$ac_compile") 2>conftest.er1
4608 ac_status=$?
4609 grep -v '^ *+' conftest.er1 >conftest.err
4610 rm -f conftest.er1
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && {
4614 test -z "$ac_c_werror_flag" ||
4615 test ! -s conftest.err
4616 } && test -s conftest.$ac_objext; then
4617 ac_lo=0 ac_mid=0
4618 while :; do
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 $ac_includes_default
4626 typedef void * ac__type_sizeof_;
4628 main ()
4630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4631 test_array [0] = 0
4634 return 0;
4636 _ACEOF
4637 rm -f conftest.$ac_objext
4638 if { (ac_try="$ac_compile"
4639 case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642 esac
4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_compile") 2>conftest.er1
4645 ac_status=$?
4646 grep -v '^ *+' conftest.er1 >conftest.err
4647 rm -f conftest.er1
4648 cat conftest.err >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } && {
4651 test -z "$ac_c_werror_flag" ||
4652 test ! -s conftest.err
4653 } && test -s conftest.$ac_objext; then
4654 ac_hi=$ac_mid; break
4655 else
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4659 ac_lo=`expr $ac_mid + 1`
4660 if test $ac_lo -le $ac_mid; then
4661 ac_lo= ac_hi=
4662 break
4664 ac_mid=`expr 2 '*' $ac_mid + 1`
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 done
4669 else
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 cat >conftest.$ac_ext <<_ACEOF
4674 /* confdefs.h. */
4675 _ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4679 $ac_includes_default
4680 typedef void * ac__type_sizeof_;
4682 main ()
4684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4685 test_array [0] = 0
4688 return 0;
4690 _ACEOF
4691 rm -f conftest.$ac_objext
4692 if { (ac_try="$ac_compile"
4693 case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696 esac
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_compile") 2>conftest.er1
4699 ac_status=$?
4700 grep -v '^ *+' conftest.er1 >conftest.err
4701 rm -f conftest.er1
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } && {
4705 test -z "$ac_c_werror_flag" ||
4706 test ! -s conftest.err
4707 } && test -s conftest.$ac_objext; then
4708 ac_hi=-1 ac_mid=-1
4709 while :; do
4710 cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h. */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 $ac_includes_default
4717 typedef void * ac__type_sizeof_;
4719 main ()
4721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4722 test_array [0] = 0
4725 return 0;
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (ac_try="$ac_compile"
4730 case "(($ac_try" in
4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732 *) ac_try_echo=$ac_try;;
4733 esac
4734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735 (eval "$ac_compile") 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } && {
4742 test -z "$ac_c_werror_flag" ||
4743 test ! -s conftest.err
4744 } && test -s conftest.$ac_objext; then
4745 ac_lo=$ac_mid; break
4746 else
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4750 ac_hi=`expr '(' $ac_mid ')' - 1`
4751 if test $ac_mid -le $ac_hi; then
4752 ac_lo= ac_hi=
4753 break
4755 ac_mid=`expr 2 '*' $ac_mid`
4758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 done
4760 else
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4764 ac_lo= ac_hi=
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 # Binary search between lo and hi bounds.
4772 while test "x$ac_lo" != "x$ac_hi"; do
4773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4774 cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h. */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4780 $ac_includes_default
4781 typedef void * ac__type_sizeof_;
4783 main ()
4785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4786 test_array [0] = 0
4789 return 0;
4791 _ACEOF
4792 rm -f conftest.$ac_objext
4793 if { (ac_try="$ac_compile"
4794 case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4797 esac
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_compile") 2>conftest.er1
4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } && {
4806 test -z "$ac_c_werror_flag" ||
4807 test ! -s conftest.err
4808 } && test -s conftest.$ac_objext; then
4809 ac_hi=$ac_mid
4810 else
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4814 ac_lo=`expr '(' $ac_mid ')' + 1`
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 done
4819 case $ac_lo in
4820 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4821 '') if test "$ac_cv_type_void_p" = yes; then
4822 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4823 See \`config.log' for more details." >&5
4824 echo "$as_me: error: cannot compute sizeof (void *)
4825 See \`config.log' for more details." >&2;}
4826 { (exit 77); exit 77; }; }
4827 else
4828 ac_cv_sizeof_void_p=0
4829 fi ;;
4830 esac
4831 else
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 $ac_includes_default
4839 typedef void * ac__type_sizeof_;
4840 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4841 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4842 #include <stdio.h>
4843 #include <stdlib.h>
4845 main ()
4848 FILE *f = fopen ("conftest.val", "w");
4849 if (! f)
4850 return 1;
4851 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4853 long int i = longval ();
4854 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4855 return 1;
4856 fprintf (f, "%ld\n", i);
4858 else
4860 unsigned long int i = ulongval ();
4861 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4862 return 1;
4863 fprintf (f, "%lu\n", i);
4865 return ferror (f) || fclose (f) != 0;
4868 return 0;
4870 _ACEOF
4871 rm -f conftest$ac_exeext
4872 if { (ac_try="$ac_link"
4873 case "(($ac_try" in
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4876 esac
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878 (eval "$ac_link") 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4882 { (case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885 esac
4886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4887 (eval "$ac_try") 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; }; then
4891 ac_cv_sizeof_void_p=`cat conftest.val`
4892 else
4893 echo "$as_me: program exited with status $ac_status" >&5
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4897 ( exit $ac_status )
4898 if test "$ac_cv_type_void_p" = yes; then
4899 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4900 See \`config.log' for more details." >&5
4901 echo "$as_me: error: cannot compute sizeof (void *)
4902 See \`config.log' for more details." >&2;}
4903 { (exit 77); exit 77; }; }
4904 else
4905 ac_cv_sizeof_void_p=0
4908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4910 rm -f conftest.val
4912 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4913 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4917 cat >>confdefs.h <<_ACEOF
4918 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4919 _ACEOF
4922 { echo "$as_me:$LINENO: checking for long" >&5
4923 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4924 if test "${ac_cv_type_long+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h. */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 $ac_includes_default
4934 typedef long ac__type_new_;
4936 main ()
4938 if ((ac__type_new_ *) 0)
4939 return 0;
4940 if (sizeof (ac__type_new_))
4941 return 0;
4943 return 0;
4945 _ACEOF
4946 rm -f conftest.$ac_objext
4947 if { (ac_try="$ac_compile"
4948 case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951 esac
4952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_compile") 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } && {
4960 test -z "$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4962 } && test -s conftest.$ac_objext; then
4963 ac_cv_type_long=yes
4964 else
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4968 ac_cv_type_long=no
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4974 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4976 # The cast to long int works around a bug in the HP C Compiler
4977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4979 # This bug is HP SR number 8606223364.
4980 { echo "$as_me:$LINENO: checking size of long" >&5
4981 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4982 if test "${ac_cv_sizeof_long+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985 if test "$cross_compiling" = yes; then
4986 # Depending upon the size, compute the lo and hi bounds.
4987 cat >conftest.$ac_ext <<_ACEOF
4988 /* confdefs.h. */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4993 $ac_includes_default
4994 typedef long ac__type_sizeof_;
4996 main ()
4998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4999 test_array [0] = 0
5002 return 0;
5004 _ACEOF
5005 rm -f conftest.$ac_objext
5006 if { (ac_try="$ac_compile"
5007 case "(($ac_try" in
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5010 esac
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_compile") 2>conftest.er1
5013 ac_status=$?
5014 grep -v '^ *+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } && {
5019 test -z "$ac_c_werror_flag" ||
5020 test ! -s conftest.err
5021 } && test -s conftest.$ac_objext; then
5022 ac_lo=0 ac_mid=0
5023 while :; do
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h. */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 $ac_includes_default
5031 typedef long ac__type_sizeof_;
5033 main ()
5035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5036 test_array [0] = 0
5039 return 0;
5041 _ACEOF
5042 rm -f conftest.$ac_objext
5043 if { (ac_try="$ac_compile"
5044 case "(($ac_try" in
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5047 esac
5048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_compile") 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && {
5056 test -z "$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5058 } && test -s conftest.$ac_objext; then
5059 ac_hi=$ac_mid; break
5060 else
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 ac_lo=`expr $ac_mid + 1`
5065 if test $ac_lo -le $ac_mid; then
5066 ac_lo= ac_hi=
5067 break
5069 ac_mid=`expr 2 '*' $ac_mid + 1`
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 done
5074 else
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 $ac_includes_default
5085 typedef long ac__type_sizeof_;
5087 main ()
5089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5090 test_array [0] = 0
5093 return 0;
5095 _ACEOF
5096 rm -f conftest.$ac_objext
5097 if { (ac_try="$ac_compile"
5098 case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101 esac
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_compile") 2>conftest.er1
5104 ac_status=$?
5105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } && {
5110 test -z "$ac_c_werror_flag" ||
5111 test ! -s conftest.err
5112 } && test -s conftest.$ac_objext; then
5113 ac_hi=-1 ac_mid=-1
5114 while :; do
5115 cat >conftest.$ac_ext <<_ACEOF
5116 /* confdefs.h. */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 $ac_includes_default
5122 typedef long ac__type_sizeof_;
5124 main ()
5126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5127 test_array [0] = 0
5130 return 0;
5132 _ACEOF
5133 rm -f conftest.$ac_objext
5134 if { (ac_try="$ac_compile"
5135 case "(($ac_try" in
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5138 esac
5139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5140 (eval "$ac_compile") 2>conftest.er1
5141 ac_status=$?
5142 grep -v '^ *+' conftest.er1 >conftest.err
5143 rm -f conftest.er1
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } && {
5147 test -z "$ac_c_werror_flag" ||
5148 test ! -s conftest.err
5149 } && test -s conftest.$ac_objext; then
5150 ac_lo=$ac_mid; break
5151 else
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5155 ac_hi=`expr '(' $ac_mid ')' - 1`
5156 if test $ac_mid -le $ac_hi; then
5157 ac_lo= ac_hi=
5158 break
5160 ac_mid=`expr 2 '*' $ac_mid`
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164 done
5165 else
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5169 ac_lo= ac_hi=
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176 # Binary search between lo and hi bounds.
5177 while test "x$ac_lo" != "x$ac_hi"; do
5178 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5179 cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h. */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 $ac_includes_default
5186 typedef long ac__type_sizeof_;
5188 main ()
5190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5191 test_array [0] = 0
5194 return 0;
5196 _ACEOF
5197 rm -f conftest.$ac_objext
5198 if { (ac_try="$ac_compile"
5199 case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_compile") 2>conftest.er1
5205 ac_status=$?
5206 grep -v '^ *+' conftest.er1 >conftest.err
5207 rm -f conftest.er1
5208 cat conftest.err >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } && {
5211 test -z "$ac_c_werror_flag" ||
5212 test ! -s conftest.err
5213 } && test -s conftest.$ac_objext; then
5214 ac_hi=$ac_mid
5215 else
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 ac_lo=`expr '(' $ac_mid ')' + 1`
5222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 done
5224 case $ac_lo in
5225 ?*) ac_cv_sizeof_long=$ac_lo;;
5226 '') if test "$ac_cv_type_long" = yes; then
5227 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5228 See \`config.log' for more details." >&5
5229 echo "$as_me: error: cannot compute sizeof (long)
5230 See \`config.log' for more details." >&2;}
5231 { (exit 77); exit 77; }; }
5232 else
5233 ac_cv_sizeof_long=0
5234 fi ;;
5235 esac
5236 else
5237 cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h. */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 $ac_includes_default
5244 typedef long ac__type_sizeof_;
5245 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5246 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5247 #include <stdio.h>
5248 #include <stdlib.h>
5250 main ()
5253 FILE *f = fopen ("conftest.val", "w");
5254 if (! f)
5255 return 1;
5256 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5258 long int i = longval ();
5259 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5260 return 1;
5261 fprintf (f, "%ld\n", i);
5263 else
5265 unsigned long int i = ulongval ();
5266 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5267 return 1;
5268 fprintf (f, "%lu\n", i);
5270 return ferror (f) || fclose (f) != 0;
5273 return 0;
5275 _ACEOF
5276 rm -f conftest$ac_exeext
5277 if { (ac_try="$ac_link"
5278 case "(($ac_try" in
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5281 esac
5282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283 (eval "$ac_link") 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5287 { (case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5290 esac
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_try") 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5296 ac_cv_sizeof_long=`cat conftest.val`
5297 else
5298 echo "$as_me: program exited with status $ac_status" >&5
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5302 ( exit $ac_status )
5303 if test "$ac_cv_type_long" = yes; then
5304 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5305 See \`config.log' for more details." >&5
5306 echo "$as_me: error: cannot compute sizeof (long)
5307 See \`config.log' for more details." >&2;}
5308 { (exit 77); exit 77; }; }
5309 else
5310 ac_cv_sizeof_long=0
5313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5315 rm -f conftest.val
5317 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5318 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5322 cat >>confdefs.h <<_ACEOF
5323 #define SIZEOF_LONG $ac_cv_sizeof_long
5324 _ACEOF
5328 if test "x$host_m32" = x1; then
5329 # Force 32-bit mode.
5330 CFLAGS="$CFLAGS -m32"
5331 LDFLAGS="$LDFLAGS -m32"
5334 # Check LZO when compiling for the i386-pc.
5335 if test "$target_cpu"-"$platform" = i386-pc; then
5336 # Check whether --enable-lzo was given.
5337 if test "${enable_lzo+set}" = set; then
5338 enableval=$enable_lzo;
5341 if [ x"$enable_lzo" = xyes ]; then
5342 # There are three possibilities. LZO version 2 installed with the name
5343 # liblzo2, with the name liblzo, and LZO version 1.
5345 cat >>confdefs.h <<\_ACEOF
5346 #define ENABLE_LZO 1
5347 _ACEOF
5349 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5350 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
5351 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354 ac_check_lib_save_LIBS=$LIBS
5355 LIBS="-llzo2 $LIBS"
5356 cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h. */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5363 /* Override any GCC internal prototype to avoid an error.
5364 Use char because int might match the return type of a GCC
5365 builtin and then its argument prototype would still apply. */
5366 #ifdef __cplusplus
5367 extern "C"
5368 #endif
5369 char __lzo_init_v2 ();
5371 main ()
5373 return __lzo_init_v2 ();
5375 return 0;
5377 _ACEOF
5378 rm -f conftest.$ac_objext conftest$ac_exeext
5379 if { (ac_try="$ac_link"
5380 case "(($ac_try" in
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5383 esac
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_link") 2>conftest.er1
5386 ac_status=$?
5387 grep -v '^ *+' conftest.er1 >conftest.err
5388 rm -f conftest.er1
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } && {
5392 test -z "$ac_c_werror_flag" ||
5393 test ! -s conftest.err
5394 } && test -s conftest$ac_exeext &&
5395 $as_test_x conftest$ac_exeext; then
5396 ac_cv_lib_lzo2___lzo_init_v2=yes
5397 else
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 ac_cv_lib_lzo2___lzo_init_v2=no
5404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5405 conftest$ac_exeext conftest.$ac_ext
5406 LIBS=$ac_check_lib_save_LIBS
5408 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5409 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
5410 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5411 LIBLZO="-llzo2"
5412 else
5413 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5414 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
5415 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418 ac_check_lib_save_LIBS=$LIBS
5419 LIBS="-llzo $LIBS"
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5427 /* Override any GCC internal prototype to avoid an error.
5428 Use char because int might match the return type of a GCC
5429 builtin and then its argument prototype would still apply. */
5430 #ifdef __cplusplus
5431 extern "C"
5432 #endif
5433 char __lzo_init_v2 ();
5435 main ()
5437 return __lzo_init_v2 ();
5439 return 0;
5441 _ACEOF
5442 rm -f conftest.$ac_objext conftest$ac_exeext
5443 if { (ac_try="$ac_link"
5444 case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_link") 2>conftest.er1
5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && {
5456 test -z "$ac_c_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest$ac_exeext &&
5459 $as_test_x conftest$ac_exeext; then
5460 ac_cv_lib_lzo___lzo_init_v2=yes
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 ac_cv_lib_lzo___lzo_init_v2=no
5468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5469 conftest$ac_exeext conftest.$ac_ext
5470 LIBS=$ac_check_lib_save_LIBS
5472 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5473 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
5474 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5475 LIBLZO="-llzo"
5476 else
5477 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5478 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
5479 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482 ac_check_lib_save_LIBS=$LIBS
5483 LIBS="-llzo $LIBS"
5484 cat >conftest.$ac_ext <<_ACEOF
5485 /* confdefs.h. */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5491 /* Override any GCC internal prototype to avoid an error.
5492 Use char because int might match the return type of a GCC
5493 builtin and then its argument prototype would still apply. */
5494 #ifdef __cplusplus
5495 extern "C"
5496 #endif
5497 char __lzo_init2 ();
5499 main ()
5501 return __lzo_init2 ();
5503 return 0;
5505 _ACEOF
5506 rm -f conftest.$ac_objext conftest$ac_exeext
5507 if { (ac_try="$ac_link"
5508 case "(($ac_try" in
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5511 esac
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_link") 2>conftest.er1
5514 ac_status=$?
5515 grep -v '^ *+' conftest.er1 >conftest.err
5516 rm -f conftest.er1
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } && {
5520 test -z "$ac_c_werror_flag" ||
5521 test ! -s conftest.err
5522 } && test -s conftest$ac_exeext &&
5523 $as_test_x conftest$ac_exeext; then
5524 ac_cv_lib_lzo___lzo_init2=yes
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 ac_cv_lib_lzo___lzo_init2=no
5532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5533 conftest$ac_exeext conftest.$ac_ext
5534 LIBS=$ac_check_lib_save_LIBS
5536 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5537 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
5538 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
5539 LIBLZO="-llzo"
5540 else
5541 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
5542 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
5543 { (exit 1); exit 1; }; }
5551 LIBS="$LIBS $LIBLZO"
5552 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
5553 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
5554 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
5564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5565 #define lzo1x_999_compress innocuous_lzo1x_999_compress
5567 /* System header to define __stub macros and hopefully few prototypes,
5568 which can conflict with char lzo1x_999_compress (); below.
5569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5570 <limits.h> exists even on freestanding compilers. */
5572 #ifdef __STDC__
5573 # include <limits.h>
5574 #else
5575 # include <assert.h>
5576 #endif
5578 #undef lzo1x_999_compress
5580 /* Override any GCC internal prototype to avoid an error.
5581 Use char because int might match the return type of a GCC
5582 builtin and then its argument prototype would still apply. */
5583 #ifdef __cplusplus
5584 extern "C"
5585 #endif
5586 char lzo1x_999_compress ();
5587 /* The GNU C library defines this for functions which it implements
5588 to always fail with ENOSYS. Some functions are actually named
5589 something starting with __ and the normal name is an alias. */
5590 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
5591 choke me
5592 #endif
5595 main ()
5597 return lzo1x_999_compress ();
5599 return 0;
5601 _ACEOF
5602 rm -f conftest.$ac_objext conftest$ac_exeext
5603 if { (ac_try="$ac_link"
5604 case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607 esac
5608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_link") 2>conftest.er1
5610 ac_status=$?
5611 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && {
5616 test -z "$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5618 } && test -s conftest$ac_exeext &&
5619 $as_test_x conftest$ac_exeext; then
5620 ac_cv_func_lzo1x_999_compress=yes
5621 else
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5625 ac_cv_func_lzo1x_999_compress=no
5628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5629 conftest$ac_exeext conftest.$ac_ext
5631 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
5632 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
5633 if test $ac_cv_func_lzo1x_999_compress = yes; then
5635 else
5636 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
5637 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
5638 { (exit 1); exit 1; }; }
5642 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
5645 for ac_header in lzo/lzo1x.h lzo1x.h
5647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 ac_res=`eval echo '${'$as_ac_Header'}'`
5655 { echo "$as_me:$LINENO: result: $ac_res" >&5
5656 echo "${ECHO_T}$ac_res" >&6; }
5657 else
5658 # Is the header compilable?
5659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 $ac_includes_default
5668 #include <$ac_header>
5669 _ACEOF
5670 rm -f conftest.$ac_objext
5671 if { (ac_try="$ac_compile"
5672 case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5675 esac
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_compile") 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } && {
5684 test -z "$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest.$ac_objext; then
5687 ac_header_compiler=yes
5688 else
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 ac_header_compiler=no
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5697 echo "${ECHO_T}$ac_header_compiler" >&6; }
5699 # Is the header present?
5700 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5702 cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h. */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5708 #include <$ac_header>
5709 _ACEOF
5710 if { (ac_try="$ac_cpp conftest.$ac_ext"
5711 case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } >/dev/null && {
5723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 }; then
5726 ac_header_preproc=yes
5727 else
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ac_header_preproc=no
5734 rm -f conftest.err conftest.$ac_ext
5735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5736 echo "${ECHO_T}$ac_header_preproc" >&6; }
5738 # So? What about this header?
5739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5740 yes:no: )
5741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5745 ac_header_preproc=yes
5747 no:yes:* )
5748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5755 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5760 ( cat <<\_ASBOX
5761 ## ------------------------------- ##
5762 ## Report this to bug-grub@gnu.org ##
5763 ## ------------------------------- ##
5764 _ASBOX
5765 ) | sed "s/^/$as_me: WARNING: /" >&2
5767 esac
5768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773 eval "$as_ac_Header=\$ac_header_preproc"
5775 ac_res=`eval echo '${'$as_ac_Header'}'`
5776 { echo "$as_me:$LINENO: result: $ac_res" >&5
5777 echo "${ECHO_T}$ac_res" >&6; }
5780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5781 cat >>confdefs.h <<_ACEOF
5782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5783 _ACEOF
5787 done
5789 else
5791 cat >>confdefs.h <<\_ACEOF
5792 #define ENABLE_LZMA 1
5793 _ACEOF
5799 # Check for functions.
5803 for ac_func in posix_memalign memalign asprintf
5805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811 cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h. */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5819 #define $ac_func innocuous_$ac_func
5821 /* System header to define __stub macros and hopefully few prototypes,
5822 which can conflict with char $ac_func (); below.
5823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5824 <limits.h> exists even on freestanding compilers. */
5826 #ifdef __STDC__
5827 # include <limits.h>
5828 #else
5829 # include <assert.h>
5830 #endif
5832 #undef $ac_func
5834 /* Override any GCC internal prototype to avoid an error.
5835 Use char because int might match the return type of a GCC
5836 builtin and then its argument prototype would still apply. */
5837 #ifdef __cplusplus
5838 extern "C"
5839 #endif
5840 char $ac_func ();
5841 /* The GNU C library defines this for functions which it implements
5842 to always fail with ENOSYS. Some functions are actually named
5843 something starting with __ and the normal name is an alias. */
5844 #if defined __stub_$ac_func || defined __stub___$ac_func
5845 choke me
5846 #endif
5849 main ()
5851 return $ac_func ();
5853 return 0;
5855 _ACEOF
5856 rm -f conftest.$ac_objext conftest$ac_exeext
5857 if { (ac_try="$ac_link"
5858 case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861 esac
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_link") 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && {
5870 test -z "$ac_c_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest$ac_exeext &&
5873 $as_test_x conftest$ac_exeext; then
5874 eval "$as_ac_var=yes"
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 eval "$as_ac_var=no"
5882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5883 conftest$ac_exeext conftest.$ac_ext
5885 ac_res=`eval echo '${'$as_ac_var'}'`
5886 { echo "$as_me:$LINENO: result: $ac_res" >&5
5887 echo "${ECHO_T}$ac_res" >&6; }
5888 if test `eval echo '${'$as_ac_var'}'` = yes; then
5889 cat >>confdefs.h <<_ACEOF
5890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5891 _ACEOF
5894 done
5898 # Check for target programs.
5902 # Use linker script if present, otherwise use builtin -N script.
5903 { echo "$as_me:$LINENO: checking for option to link raw image" >&5
5904 echo $ECHO_N "checking for option to link raw image... $ECHO_C" >&6; }
5905 if test -f "${srcdir}/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"; then
5906 TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"
5907 TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
5908 TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"
5909 else
5910 TARGET_IMG_LDSCRIPT=
5911 TARGET_IMG_LDFLAGS='-Wl,-N'
5912 TARGET_IMG_LDFLAGS_AC='-Wl,-N'
5916 { echo "$as_me:$LINENO: result: $TARGET_IMG_LDFLAGS_AC" >&5
5917 echo "${ECHO_T}$TARGET_IMG_LDFLAGS_AC" >&6; }
5919 # For platforms where ELF is not the default link format.
5920 { echo "$as_me:$LINENO: checking for command to convert module to ELF format" >&5
5921 echo $ECHO_N "checking for command to convert module to ELF format... $ECHO_C" >&6; }
5922 case "${host_os}:${target_os}" in
5923 cygwin:cygwin) TARGET_OBJ2ELF='grub-pe2elf' ;;
5924 *) ;;
5925 esac
5927 { echo "$as_me:$LINENO: result: $TARGET_OBJ2ELF" >&5
5928 echo "${ECHO_T}$TARGET_OBJ2ELF" >&6; }
5930 # For cross-compiling.
5931 if test "x$build" != "x$host"; then
5932 # XXX this depends on the implementation of autoconf!
5933 tmp_ac_tool_prefix="$ac_tool_prefix"
5934 ac_tool_prefix=$target_alias-
5936 if test -n "$ac_tool_prefix"; then
5937 for ac_prog in gcc egcs cc
5939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 if test -n "$TARGET_CC"; then
5947 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
5957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5960 done
5961 done
5962 IFS=$as_save_IFS
5966 TARGET_CC=$ac_cv_prog_TARGET_CC
5967 if test -n "$TARGET_CC"; then
5968 { echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5969 echo "${ECHO_T}$TARGET_CC" >&6; }
5970 else
5971 { echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6; }
5976 test -n "$TARGET_CC" && break
5977 done
5979 if test -z "$TARGET_CC"; then
5980 ac_ct_TARGET_CC=$TARGET_CC
5981 for ac_prog in gcc egcs cc
5983 # Extract the first word of "$ac_prog", so it can be a program name with args.
5984 set dummy $ac_prog; ac_word=$2
5985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5987 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990 if test -n "$ac_ct_TARGET_CC"; then
5991 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
6001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6004 done
6005 done
6006 IFS=$as_save_IFS
6010 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
6011 if test -n "$ac_ct_TARGET_CC"; then
6012 { echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
6013 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6; }
6014 else
6015 { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6020 test -n "$ac_ct_TARGET_CC" && break
6021 done
6023 if test "x$ac_ct_TARGET_CC" = x; then
6024 TARGET_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
6025 echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
6026 { (exit 1); exit 1; }; }"
6027 else
6028 case $cross_compiling:$ac_tool_warned in
6029 yes:)
6030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6031 whose name does not start with the host triplet. If you think this
6032 configuration is useful to you, please write to autoconf@gnu.org." >&5
6033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6034 whose name does not start with the host triplet. If you think this
6035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6036 ac_tool_warned=yes ;;
6037 esac
6038 TARGET_CC=$ac_ct_TARGET_CC
6042 if test -n "$ac_tool_prefix"; then
6043 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6044 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 if test -n "$OBJCOPY"; then
6051 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6064 done
6065 done
6066 IFS=$as_save_IFS
6070 OBJCOPY=$ac_cv_prog_OBJCOPY
6071 if test -n "$OBJCOPY"; then
6072 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6073 echo "${ECHO_T}$OBJCOPY" >&6; }
6074 else
6075 { echo "$as_me:$LINENO: result: no" >&5
6076 echo "${ECHO_T}no" >&6; }
6081 if test -z "$ac_cv_prog_OBJCOPY"; then
6082 ac_ct_OBJCOPY=$OBJCOPY
6083 # Extract the first word of "objcopy", so it can be a program name with args.
6084 set dummy objcopy; ac_word=$2
6085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6087 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090 if test -n "$ac_ct_OBJCOPY"; then
6091 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 break 2
6104 done
6105 done
6106 IFS=$as_save_IFS
6110 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6111 if test -n "$ac_ct_OBJCOPY"; then
6112 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6113 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6114 else
6115 { echo "$as_me:$LINENO: result: no" >&5
6116 echo "${ECHO_T}no" >&6; }
6119 if test "x$ac_ct_OBJCOPY" = x; then
6120 OBJCOPY=""
6121 else
6122 case $cross_compiling:$ac_tool_warned in
6123 yes:)
6124 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6125 whose name does not start with the host triplet. If you think this
6126 configuration is useful to you, please write to autoconf@gnu.org." >&5
6127 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6128 whose name does not start with the host triplet. If you think this
6129 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6130 ac_tool_warned=yes ;;
6131 esac
6132 OBJCOPY=$ac_ct_OBJCOPY
6134 else
6135 OBJCOPY="$ac_cv_prog_OBJCOPY"
6138 if test -n "$ac_tool_prefix"; then
6139 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6140 set dummy ${ac_tool_prefix}strip; ac_word=$2
6141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6143 if test "${ac_cv_prog_STRIP+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146 if test -n "$STRIP"; then
6147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6160 done
6161 done
6162 IFS=$as_save_IFS
6166 STRIP=$ac_cv_prog_STRIP
6167 if test -n "$STRIP"; then
6168 { echo "$as_me:$LINENO: result: $STRIP" >&5
6169 echo "${ECHO_T}$STRIP" >&6; }
6170 else
6171 { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6177 if test -z "$ac_cv_prog_STRIP"; then
6178 ac_ct_STRIP=$STRIP
6179 # Extract the first word of "strip", so it can be a program name with args.
6180 set dummy strip; ac_word=$2
6181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6183 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186 if test -n "$ac_ct_STRIP"; then
6187 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_prog_ac_ct_STRIP="strip"
6197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6200 done
6201 done
6202 IFS=$as_save_IFS
6206 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6207 if test -n "$ac_ct_STRIP"; then
6208 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6209 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6210 else
6211 { echo "$as_me:$LINENO: result: no" >&5
6212 echo "${ECHO_T}no" >&6; }
6215 if test "x$ac_ct_STRIP" = x; then
6216 STRIP=""
6217 else
6218 case $cross_compiling:$ac_tool_warned in
6219 yes:)
6220 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6221 whose name does not start with the host triplet. If you think this
6222 configuration is useful to you, please write to autoconf@gnu.org." >&5
6223 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6224 whose name does not start with the host triplet. If you think this
6225 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6226 ac_tool_warned=yes ;;
6227 esac
6228 STRIP=$ac_ct_STRIP
6230 else
6231 STRIP="$ac_cv_prog_STRIP"
6234 if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6236 set dummy ${ac_tool_prefix}nm; ac_word=$2
6237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6239 if test "${ac_cv_prog_NM+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242 if test -n "$NM"; then
6243 ac_cv_prog_NM="$NM" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_NM="${ac_tool_prefix}nm"
6253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6256 done
6257 done
6258 IFS=$as_save_IFS
6262 NM=$ac_cv_prog_NM
6263 if test -n "$NM"; then
6264 { echo "$as_me:$LINENO: result: $NM" >&5
6265 echo "${ECHO_T}$NM" >&6; }
6266 else
6267 { echo "$as_me:$LINENO: result: no" >&5
6268 echo "${ECHO_T}no" >&6; }
6273 if test -z "$ac_cv_prog_NM"; then
6274 ac_ct_NM=$NM
6275 # Extract the first word of "nm", so it can be a program name with args.
6276 set dummy nm; ac_word=$2
6277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6279 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282 if test -n "$ac_ct_NM"; then
6283 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_prog_ac_ct_NM="nm"
6293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6296 done
6297 done
6298 IFS=$as_save_IFS
6302 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6303 if test -n "$ac_ct_NM"; then
6304 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6305 echo "${ECHO_T}$ac_ct_NM" >&6; }
6306 else
6307 { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6311 if test "x$ac_ct_NM" = x; then
6312 NM=""
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315 yes:)
6316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6317 whose name does not start with the host triplet. If you think this
6318 configuration is useful to you, please write to autoconf@gnu.org." >&5
6319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6320 whose name does not start with the host triplet. If you think this
6321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6322 ac_tool_warned=yes ;;
6323 esac
6324 NM=$ac_ct_NM
6326 else
6327 NM="$ac_cv_prog_NM"
6331 ac_tool_prefix="$tmp_ac_tool_prefix"
6332 else
6333 if test "x$TARGET_CC" = x; then
6334 TARGET_CC=$CC
6336 if test -n "$ac_tool_prefix"; then
6337 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6338 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6341 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344 if test -n "$OBJCOPY"; then
6345 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6358 done
6359 done
6360 IFS=$as_save_IFS
6364 OBJCOPY=$ac_cv_prog_OBJCOPY
6365 if test -n "$OBJCOPY"; then
6366 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6367 echo "${ECHO_T}$OBJCOPY" >&6; }
6368 else
6369 { echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6; }
6375 if test -z "$ac_cv_prog_OBJCOPY"; then
6376 ac_ct_OBJCOPY=$OBJCOPY
6377 # Extract the first word of "objcopy", so it can be a program name with args.
6378 set dummy objcopy; ac_word=$2
6379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6381 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384 if test -n "$ac_ct_OBJCOPY"; then
6385 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6398 done
6399 done
6400 IFS=$as_save_IFS
6404 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6405 if test -n "$ac_ct_OBJCOPY"; then
6406 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6407 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6408 else
6409 { echo "$as_me:$LINENO: result: no" >&5
6410 echo "${ECHO_T}no" >&6; }
6413 if test "x$ac_ct_OBJCOPY" = x; then
6414 OBJCOPY=""
6415 else
6416 case $cross_compiling:$ac_tool_warned in
6417 yes:)
6418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6419 whose name does not start with the host triplet. If you think this
6420 configuration is useful to you, please write to autoconf@gnu.org." >&5
6421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6422 whose name does not start with the host triplet. If you think this
6423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6424 ac_tool_warned=yes ;;
6425 esac
6426 OBJCOPY=$ac_ct_OBJCOPY
6428 else
6429 OBJCOPY="$ac_cv_prog_OBJCOPY"
6432 if test -n "$ac_tool_prefix"; then
6433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6434 set dummy ${ac_tool_prefix}strip; ac_word=$2
6435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6437 if test "${ac_cv_prog_STRIP+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440 if test -n "$STRIP"; then
6441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6454 done
6455 done
6456 IFS=$as_save_IFS
6460 STRIP=$ac_cv_prog_STRIP
6461 if test -n "$STRIP"; then
6462 { echo "$as_me:$LINENO: result: $STRIP" >&5
6463 echo "${ECHO_T}$STRIP" >&6; }
6464 else
6465 { echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6; }
6471 if test -z "$ac_cv_prog_STRIP"; then
6472 ac_ct_STRIP=$STRIP
6473 # Extract the first word of "strip", so it can be a program name with args.
6474 set dummy strip; ac_word=$2
6475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6477 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480 if test -n "$ac_ct_STRIP"; then
6481 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6486 IFS=$as_save_IFS
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6490 ac_cv_prog_ac_ct_STRIP="strip"
6491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 break 2
6494 done
6495 done
6496 IFS=$as_save_IFS
6500 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6501 if test -n "$ac_ct_STRIP"; then
6502 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6503 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6504 else
6505 { echo "$as_me:$LINENO: result: no" >&5
6506 echo "${ECHO_T}no" >&6; }
6509 if test "x$ac_ct_STRIP" = x; then
6510 STRIP=""
6511 else
6512 case $cross_compiling:$ac_tool_warned in
6513 yes:)
6514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6515 whose name does not start with the host triplet. If you think this
6516 configuration is useful to you, please write to autoconf@gnu.org." >&5
6517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6518 whose name does not start with the host triplet. If you think this
6519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6520 ac_tool_warned=yes ;;
6521 esac
6522 STRIP=$ac_ct_STRIP
6524 else
6525 STRIP="$ac_cv_prog_STRIP"
6528 if test -n "$ac_tool_prefix"; then
6529 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6530 set dummy ${ac_tool_prefix}nm; ac_word=$2
6531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6533 if test "${ac_cv_prog_NM+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536 if test -n "$NM"; then
6537 ac_cv_prog_NM="$NM" # Let the user override the test.
6538 else
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6546 ac_cv_prog_NM="${ac_tool_prefix}nm"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6550 done
6551 done
6552 IFS=$as_save_IFS
6556 NM=$ac_cv_prog_NM
6557 if test -n "$NM"; then
6558 { echo "$as_me:$LINENO: result: $NM" >&5
6559 echo "${ECHO_T}$NM" >&6; }
6560 else
6561 { echo "$as_me:$LINENO: result: no" >&5
6562 echo "${ECHO_T}no" >&6; }
6567 if test -z "$ac_cv_prog_NM"; then
6568 ac_ct_NM=$NM
6569 # Extract the first word of "nm", so it can be a program name with args.
6570 set dummy nm; ac_word=$2
6571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6573 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576 if test -n "$ac_ct_NM"; then
6577 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_prog_ac_ct_NM="nm"
6587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6590 done
6591 done
6592 IFS=$as_save_IFS
6596 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6597 if test -n "$ac_ct_NM"; then
6598 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6599 echo "${ECHO_T}$ac_ct_NM" >&6; }
6600 else
6601 { echo "$as_me:$LINENO: result: no" >&5
6602 echo "${ECHO_T}no" >&6; }
6605 if test "x$ac_ct_NM" = x; then
6606 NM=""
6607 else
6608 case $cross_compiling:$ac_tool_warned in
6609 yes:)
6610 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6611 whose name does not start with the host triplet. If you think this
6612 configuration is useful to you, please write to autoconf@gnu.org." >&5
6613 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6614 whose name does not start with the host triplet. If you think this
6615 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6616 ac_tool_warned=yes ;;
6617 esac
6618 NM=$ac_ct_NM
6620 else
6621 NM="$ac_cv_prog_NM"
6628 # Test the C compiler for the target environment.
6629 tmp_CC="$CC"
6630 tmp_CFLAGS="$CFLAGS"
6631 tmp_LDFLAGS="$LDFLAGS"
6632 tmp_CPPFLAGS="$CPPFLAGS"
6633 tmp_LIBS="$LIBS"
6634 CC="$TARGET_CC"
6635 CFLAGS="$TARGET_CFLAGS"
6636 CPPFLAGS="$TARGET_CPPFLAGS"
6637 LDFLAGS="$TARGET_LDFLAGS"
6638 LIBS=""
6640 if test "x$TARGET_CFLAGS" = x; then
6641 # debug flags.
6642 TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
6643 -Wundef -Wstrict-prototypes -g"
6645 # optimization flags.
6646 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
6647 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
6648 if test "${grub_cv_cc_Os+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6652 CFLAGS=-Os
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6661 main ()
6665 return 0;
6667 _ACEOF
6668 rm -f conftest.$ac_objext
6669 if { (ac_try="$ac_compile"
6670 case "(($ac_try" in
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6673 esac
6674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675 (eval "$ac_compile") 2>conftest.er1
6676 ac_status=$?
6677 grep -v '^ *+' conftest.er1 >conftest.err
6678 rm -f conftest.er1
6679 cat conftest.err >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && {
6682 test -z "$ac_c_werror_flag" ||
6683 test ! -s conftest.err
6684 } && test -s conftest.$ac_objext; then
6685 grub_cv_cc_Os=yes
6686 else
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6690 grub_cv_cc_Os=no
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 { echo "$as_me:$LINENO: result: $grub_cv_cc_Os" >&5
6697 echo "${ECHO_T}$grub_cv_cc_Os" >&6; }
6698 if test "x$grub_cv_cc_Os" = xyes; then
6699 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
6700 else
6701 TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
6704 # Force no alignment to save space on i386.
6705 if test "x$target_cpu" = xi386; then
6706 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
6707 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
6708 if test "${grub_cv_cc_falign_loop+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6712 CFLAGS="-falign-loops=1"
6713 cat >conftest.$ac_ext <<_ACEOF
6714 /* confdefs.h. */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6721 main ()
6725 return 0;
6727 _ACEOF
6728 rm -f conftest.$ac_objext
6729 if { (ac_try="$ac_compile"
6730 case "(($ac_try" in
6731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732 *) ac_try_echo=$ac_try;;
6733 esac
6734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6735 (eval "$ac_compile") 2>conftest.er1
6736 ac_status=$?
6737 grep -v '^ *+' conftest.er1 >conftest.err
6738 rm -f conftest.er1
6739 cat conftest.err >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } && {
6742 test -z "$ac_c_werror_flag" ||
6743 test ! -s conftest.err
6744 } && test -s conftest.$ac_objext; then
6745 grub_cv_cc_falign_loop=yes
6746 else
6747 echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6750 grub_cv_cc_falign_loop=no
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756 { echo "$as_me:$LINENO: result: $grub_cv_cc_falign_loop" >&5
6757 echo "${ECHO_T}$grub_cv_cc_falign_loop" >&6; }
6759 if test "x$grub_cv_cc_falign_loop" = xyes; then
6760 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
6761 else
6762 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
6767 if test "x$target_m32" = x1; then
6768 # Force 32-bit mode.
6769 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
6770 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
6773 if test "x$target_m64" = x1; then
6774 # Force 64-bit mode.
6775 TARGET_CFLAGS="$TARGET_CFLAGS -m64"
6776 TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
6780 # Compiler features.
6783 # Need __enable_execute_stack() for nested function trampolines?
6785 { echo "$as_me:$LINENO: checking whether \`$CC' generates calls to \`__enable_execute_stack()'" >&5
6786 echo $ECHO_N "checking whether \`$CC' generates calls to \`__enable_execute_stack()'... $ECHO_C" >&6; }
6787 cat >conftest.$ac_ext <<_ACEOF
6789 void f (int (*p) (void));
6790 void g (int i)
6792 int nestedfunc (void) { return i; }
6793 f (nestedfunc);
6796 _ACEOF
6797 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 (eval $ac_try) 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } && test -s conftest.s; then
6803 true
6804 else
6805 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
6806 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
6807 { (exit 1); exit 1; }; }
6809 if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
6811 cat >>confdefs.h <<\_ACEOF
6812 #define NEED_ENABLE_EXECUTE_STACK 1
6813 _ACEOF
6815 { echo "$as_me:$LINENO: result: yes" >&5
6816 echo "${ECHO_T}yes" >&6; }
6817 else
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6821 rm -f conftest*
6824 # Smashing stack protector.
6826 # Smashing stack protector.
6827 ssp_possible=yes
6828 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-fstack-protector'" >&5
6829 echo $ECHO_N "checking whether \`$CC' accepts \`-fstack-protector'... $ECHO_C" >&6; }
6830 # Is this a reliable test case?
6831 cat >conftest.$ac_ext <<_ACEOF
6832 void foo (void) { volatile char a[8]; a[3]; }
6833 _ACEOF
6834 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
6835 # `ac_compile' like this correct, after all?
6836 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
6837 { echo "$as_me:$LINENO: result: yes" >&5
6838 echo "${ECHO_T}yes" >&6; }
6839 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6840 rm -f conftest.s
6841 else
6842 ssp_possible=no
6843 { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6847 # Need that, because some distributions ship compilers that include
6848 # `-fstack-protector' in the default specs.
6849 if test "x$ssp_possible" = xyes; then
6850 TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
6853 # Smashing stack arg probe.
6854 sap_possible=yes
6855 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
6856 echo $ECHO_N "checking whether \`$CC' accepts \`-mstack-arg-probe'... $ECHO_C" >&6; }
6857 cat >conftest.$ac_ext <<_ACEOF
6858 void foo (void) { volatile char a[8]; a[3]; }
6859 _ACEOF
6860 if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then
6861 { echo "$as_me:$LINENO: result: yes" >&5
6862 echo "${ECHO_T}yes" >&6; }
6863 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6864 rm -f conftest.s
6865 else
6866 sap_possible=no
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6871 # Cygwin's GCC uses alloca() to probe the stackframe on static
6872 # stack allocations above some threshold.
6873 if test x"$sap_possible" = xyes; then
6874 TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
6882 # Set them to their new values for the tests below.
6883 CC="$TARGET_CC"
6884 CFLAGS="$TARGET_CFLAGS"
6885 CPPFLAGS="$TARGET_CPPFLAGS"
6886 LDFLAGS="$TARGET_LDFLAGS"
6888 # Defined in aclocal.m4.
6889 { echo "$as_me:$LINENO: checking whether target compiler is working" >&5
6890 echo $ECHO_N "checking whether target compiler is working... $ECHO_C" >&6; }
6891 if test "${grub_cv_prog_target_cc+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894 cat >conftest.$ac_ext <<_ACEOF
6895 /* confdefs.h. */
6896 _ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6902 main ()
6906 return 0;
6908 _ACEOF
6909 rm -f conftest.$ac_objext conftest$ac_exeext
6910 if { (ac_try="$ac_link"
6911 case "(($ac_try" in
6912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6914 esac
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_link") 2>conftest.er1
6917 ac_status=$?
6918 grep -v '^ *+' conftest.er1 >conftest.err
6919 rm -f conftest.er1
6920 cat conftest.err >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } && {
6923 test -z "$ac_c_werror_flag" ||
6924 test ! -s conftest.err
6925 } && test -s conftest$ac_exeext &&
6926 $as_test_x conftest$ac_exeext; then
6927 grub_cv_prog_target_cc=yes
6928 else
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6932 grub_cv_prog_target_cc=no
6935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6936 conftest$ac_exeext conftest.$ac_ext
6940 { echo "$as_me:$LINENO: result: $grub_cv_prog_target_cc" >&5
6941 echo "${ECHO_T}$grub_cv_prog_target_cc" >&6; }
6943 if test "x$grub_cv_prog_target_cc" = xno; then
6944 { { echo "$as_me:$LINENO: error: cannot compile for the target" >&5
6945 echo "$as_me: error: cannot compile for the target" >&2;}
6946 { (exit 1); exit 1; }; }
6949 { echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
6950 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6; }
6951 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954 cat > conftest.c <<\EOF
6955 void
6956 cmain (void)
6958 *((int *) 0x1000) = 2;
6962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963 (eval $ac_compile) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } && test -s conftest.o; then :
6967 else
6968 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
6969 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
6970 { (exit 1); exit 1; }; }
6972 grub_cv_prog_objcopy_absolute=yes
6973 for link_addr in 2000 8000 7C00; do
6974 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then :
6980 else
6981 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
6982 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
6983 { (exit 1); exit 1; }; }
6985 if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then :
6991 else
6992 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
6993 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
6994 { (exit 1); exit 1; }; }
6996 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 (eval $ac_try) 2>&5
6999 ac_status=$?
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 mv -f conftest conftest.old
7003 else
7004 grub_cv_prog_objcopy_absolute=no
7005 break
7007 done
7008 rm -f conftest*
7011 { echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
7012 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
7014 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
7015 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
7016 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
7017 { (exit 1); exit 1; }; }
7020 { echo "$as_me:$LINENO: checking whether linker accepts --build-id=none" >&5
7021 echo $ECHO_N "checking whether linker accepts --build-id=none... $ECHO_C" >&6; }
7022 if test "${grub_cv_prog_ld_build_id_none+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025 save_LDFLAGS="$LDFLAGS"
7026 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
7027 cat >conftest.$ac_ext <<_ACEOF
7028 /* confdefs.h. */
7029 _ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7035 main ()
7039 return 0;
7041 _ACEOF
7042 rm -f conftest.$ac_objext conftest$ac_exeext
7043 if { (ac_try="$ac_link"
7044 case "(($ac_try" in
7045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7046 *) ac_try_echo=$ac_try;;
7047 esac
7048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7049 (eval "$ac_link") 2>conftest.er1
7050 ac_status=$?
7051 grep -v '^ *+' conftest.er1 >conftest.err
7052 rm -f conftest.er1
7053 cat conftest.err >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } && {
7056 test -z "$ac_c_werror_flag" ||
7057 test ! -s conftest.err
7058 } && test -s conftest$ac_exeext &&
7059 $as_test_x conftest$ac_exeext; then
7060 grub_cv_prog_ld_build_id_none=yes
7061 else
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 grub_cv_prog_ld_build_id_none=no
7068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7069 conftest$ac_exeext conftest.$ac_ext
7070 LDFLAGS="$save_LDFLAGS"
7074 { echo "$as_me:$LINENO: result: $grub_cv_prog_ld_build_id_none" >&5
7075 echo "${ECHO_T}$grub_cv_prog_ld_build_id_none" >&6; }
7077 if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
7078 MODULE_LDFLAGS="$MODULE_LDFLAGS -Wl,--build-id=none"
7082 { echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
7083 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6; }
7084 if test "${grub_cv_asm_uscore+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087 cat > conftest.c <<\EOF
7089 func (int *list)
7091 *list = 0;
7092 return *list;
7096 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098 (eval $ac_try) 2>&5
7099 ac_status=$?
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; } && test -s conftest.s; then
7102 true
7103 else
7104 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
7105 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
7106 { (exit 1); exit 1; }; }
7109 if grep _func conftest.s >/dev/null 2>&1; then
7110 grub_cv_asm_uscore=yes
7111 else
7112 grub_cv_asm_uscore=no
7115 rm -f conftest*
7119 if test "x$grub_cv_asm_uscore" = xyes; then
7121 cat >>confdefs.h <<_ACEOF
7122 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
7123 _ACEOF
7127 { echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
7128 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
7130 if test "x$target_cpu" = xi386; then
7131 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
7132 # Check symbols provided by linker script.
7133 CFLAGS="$TARGET_CFLAGS -nostdlib $TARGET_IMG_LDFLAGS_AC -Wl,-Ttext,8000,--defsym,___main=0x8100"
7135 if test "x$platform" = xpc; then
7137 { echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
7138 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6; }
7139 if test "${grub_cv_check_start_symbol+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142 cat >conftest.$ac_ext <<_ACEOF
7143 /* confdefs.h. */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7150 main ()
7152 asm ("incl start")
7154 return 0;
7156 _ACEOF
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (ac_try="$ac_link"
7159 case "(($ac_try" in
7160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7162 esac
7163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164 (eval "$ac_link") 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest$ac_exeext &&
7174 $as_test_x conftest$ac_exeext; then
7175 grub_cv_check_start_symbol=yes
7176 else
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7180 grub_cv_check_start_symbol=no
7183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7184 conftest$ac_exeext conftest.$ac_ext
7188 { echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
7189 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6; }
7191 { echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
7192 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6; }
7193 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196 cat >conftest.$ac_ext <<_ACEOF
7197 /* confdefs.h. */
7198 _ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7204 main ()
7206 asm ("incl _start")
7208 return 0;
7210 _ACEOF
7211 rm -f conftest.$ac_objext conftest$ac_exeext
7212 if { (ac_try="$ac_link"
7213 case "(($ac_try" in
7214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7215 *) ac_try_echo=$ac_try;;
7216 esac
7217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7218 (eval "$ac_link") 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && {
7225 test -z "$ac_c_werror_flag" ||
7226 test ! -s conftest.err
7227 } && test -s conftest$ac_exeext &&
7228 $as_test_x conftest$ac_exeext; then
7229 grub_cv_check_uscore_start_symbol=yes
7230 else
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7234 grub_cv_check_uscore_start_symbol=no
7237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7238 conftest$ac_exeext conftest.$ac_ext
7242 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
7243 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6; }
7248 if test "x$grub_cv_check_start_symbol" = xyes; then
7249 cat >>confdefs.h <<\_ACEOF
7250 #define START_SYMBOL start
7251 _ACEOF
7253 elif test "x$grub_cv_check_uscore_start_symbol" = xyes; then
7254 cat >>confdefs.h <<\_ACEOF
7255 #define START_SYMBOL _start
7256 _ACEOF
7258 else
7259 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
7260 echo "$as_me: error: neither start nor _start is defined" >&2;}
7261 { (exit 1); exit 1; }; }
7265 { echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
7266 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6; }
7267 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270 cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h. */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7278 main ()
7280 asm ("incl __bss_start")
7282 return 0;
7284 _ACEOF
7285 rm -f conftest.$ac_objext conftest$ac_exeext
7286 if { (ac_try="$ac_link"
7287 case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_link") 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest$ac_exeext &&
7302 $as_test_x conftest$ac_exeext; then
7303 grub_cv_check_uscore_uscore_bss_start_symbol=yes
7304 else
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 grub_cv_check_uscore_uscore_bss_start_symbol=no
7311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7312 conftest$ac_exeext conftest.$ac_ext
7316 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
7317 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
7319 { echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
7320 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6; }
7321 if test "${grub_cv_check_edata_symbol+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
7324 cat >conftest.$ac_ext <<_ACEOF
7325 /* confdefs.h. */
7326 _ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7332 main ()
7334 asm ("incl edata")
7336 return 0;
7338 _ACEOF
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (ac_try="$ac_link"
7341 case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344 esac
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_link") 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest$ac_exeext &&
7356 $as_test_x conftest$ac_exeext; then
7357 grub_cv_check_edata_symbol=yes
7358 else
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7362 grub_cv_check_edata_symbol=no
7365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7366 conftest$ac_exeext conftest.$ac_ext
7370 { echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
7371 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
7373 { echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
7374 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6; }
7375 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7386 main ()
7388 asm ("incl _edata")
7390 return 0;
7392 _ACEOF
7393 rm -f conftest.$ac_objext conftest$ac_exeext
7394 if { (ac_try="$ac_link"
7395 case "(($ac_try" in
7396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7397 *) ac_try_echo=$ac_try;;
7398 esac
7399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7400 (eval "$ac_link") 2>conftest.er1
7401 ac_status=$?
7402 grep -v '^ *+' conftest.er1 >conftest.err
7403 rm -f conftest.er1
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } && {
7407 test -z "$ac_c_werror_flag" ||
7408 test ! -s conftest.err
7409 } && test -s conftest$ac_exeext &&
7410 $as_test_x conftest$ac_exeext; then
7411 grub_cv_check_uscore_edata_symbol=yes
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 grub_cv_check_uscore_edata_symbol=no
7419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7420 conftest$ac_exeext conftest.$ac_ext
7424 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
7425 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
7430 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
7431 cat >>confdefs.h <<\_ACEOF
7432 #define BSS_START_SYMBOL __bss_start
7433 _ACEOF
7435 elif test "x$grub_cv_check_edata_symbol" = xyes; then
7436 cat >>confdefs.h <<\_ACEOF
7437 #define BSS_START_SYMBOL edata
7438 _ACEOF
7440 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
7441 cat >>confdefs.h <<\_ACEOF
7442 #define BSS_START_SYMBOL _edata
7443 _ACEOF
7445 else
7446 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
7447 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
7448 { (exit 1); exit 1; }; }
7452 { echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
7453 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6; }
7454 if test "${grub_cv_check_end_symbol+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457 cat >conftest.$ac_ext <<_ACEOF
7458 /* confdefs.h. */
7459 _ACEOF
7460 cat confdefs.h >>conftest.$ac_ext
7461 cat >>conftest.$ac_ext <<_ACEOF
7462 /* end confdefs.h. */
7465 main ()
7467 asm ("incl end")
7469 return 0;
7471 _ACEOF
7472 rm -f conftest.$ac_objext conftest$ac_exeext
7473 if { (ac_try="$ac_link"
7474 case "(($ac_try" in
7475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7476 *) ac_try_echo=$ac_try;;
7477 esac
7478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7479 (eval "$ac_link") 2>conftest.er1
7480 ac_status=$?
7481 grep -v '^ *+' conftest.er1 >conftest.err
7482 rm -f conftest.er1
7483 cat conftest.err >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } && {
7486 test -z "$ac_c_werror_flag" ||
7487 test ! -s conftest.err
7488 } && test -s conftest$ac_exeext &&
7489 $as_test_x conftest$ac_exeext; then
7490 grub_cv_check_end_symbol=yes
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7495 grub_cv_check_end_symbol=no
7498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7499 conftest$ac_exeext conftest.$ac_ext
7503 { echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
7504 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
7506 { echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
7507 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6; }
7508 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h. */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7519 main ()
7521 asm ("incl _end")
7523 return 0;
7525 _ACEOF
7526 rm -f conftest.$ac_objext conftest$ac_exeext
7527 if { (ac_try="$ac_link"
7528 case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531 esac
7532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533 (eval "$ac_link") 2>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest$ac_exeext &&
7543 $as_test_x conftest$ac_exeext; then
7544 grub_cv_check_uscore_end_symbol=yes
7545 else
7546 echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7549 grub_cv_check_uscore_end_symbol=no
7552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7553 conftest$ac_exeext conftest.$ac_ext
7557 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
7558 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
7563 if test "x$grub_cv_check_end_symbol" = xyes; then
7564 cat >>confdefs.h <<\_ACEOF
7565 #define END_SYMBOL end
7566 _ACEOF
7568 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
7569 cat >>confdefs.h <<\_ACEOF
7570 #define END_SYMBOL _end
7571 _ACEOF
7573 else
7574 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
7575 echo "$as_me: error: neither end nor _end is defined" >&2;}
7576 { (exit 1); exit 1; }; }
7580 CFLAGS="$TARGET_CFLAGS"
7582 { echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
7583 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6; }
7584 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 cat > conftest.s <<\EOF
7588 .code16
7589 l1: addr32 movb %al, l1
7592 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 (eval $ac_try) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; } && test -s conftest.o; then
7598 grub_cv_i386_asm_prefix_requirement=yes
7599 else
7600 grub_cv_i386_asm_prefix_requirement=no
7603 rm -f conftest*
7607 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7608 grub_tmp_addr32="addr32"
7609 grub_tmp_data32="data32"
7610 else
7611 grub_tmp_addr32="addr32;"
7612 grub_tmp_data32="data32;"
7616 cat >>confdefs.h <<_ACEOF
7617 #define ADDR32 $grub_tmp_addr32
7618 _ACEOF
7621 cat >>confdefs.h <<_ACEOF
7622 #define DATA32 $grub_tmp_data32
7623 _ACEOF
7626 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
7627 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6; }
7630 { echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
7631 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6; }
7632 if test "${grub_cv_i386_asm_addr32+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635 cat > conftest.s.in <<\EOF
7636 .code16
7637 l1: @ADDR32@ movb %al, l1
7640 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7641 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
7642 else
7643 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
7646 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 (eval $ac_try) 2>&5
7649 ac_status=$?
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; } && test -s conftest.o; then
7652 grub_cv_i386_asm_addr32=yes
7653 else
7654 grub_cv_i386_asm_addr32=no
7657 rm -f conftest*
7661 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
7662 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6; }
7664 { echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
7665 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6; }
7666 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669 cat > conftest.s <<\EOF
7670 lcall *(offset)
7671 offset:
7672 .long 0
7673 .word 0
7676 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 (eval $ac_try) 2>&5
7679 ac_status=$?
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; } && test -s conftest.o; then
7682 grub_cv_i386_asm_absolute_without_asterisk=no
7683 else
7684 grub_cv_i386_asm_absolute_without_asterisk=yes
7687 rm -f conftest*
7691 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
7693 cat >>confdefs.h <<\_ACEOF
7694 #define ABSOLUTE_WITHOUT_ASTERISK 1
7695 _ACEOF
7699 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
7700 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
7702 { echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
7703 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6; }
7704 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707 if test "$cross_compiling" = yes; then
7708 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7709 See \`config.log' for more details." >&5
7710 echo "$as_me: error: cannot run test program while cross compiling
7711 See \`config.log' for more details." >&2;}
7712 { (exit 1); exit 1; }; }
7713 else
7714 cat >conftest.$ac_ext <<_ACEOF
7715 /* confdefs.h. */
7716 _ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h. */
7721 static int
7722 test (int *n)
7724 return *n == -1;
7727 static int
7728 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
7730 int a = 0;
7731 int b = 0;
7732 int c = -1;
7733 return hook (a, b, &c);
7737 main (void)
7739 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
7741 return a == b && test (c);
7743 return testfunc (nestedfunc) ? 0 : 1;
7746 _ACEOF
7747 rm -f conftest$ac_exeext
7748 if { (ac_try="$ac_link"
7749 case "(($ac_try" in
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7752 esac
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754 (eval "$ac_link") 2>&5
7755 ac_status=$?
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7758 { (case "(($ac_try" in
7759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7760 *) ac_try_echo=$ac_try;;
7761 esac
7762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7763 (eval "$ac_try") 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767 grub_cv_i386_check_nested_functions=no
7768 else
7769 echo "$as_me: program exited with status $ac_status" >&5
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7773 ( exit $ac_status )
7774 grub_cv_i386_check_nested_functions=yes
7776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7783 { echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5
7784 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6; }
7786 if test "x$grub_cv_i386_check_nested_functions" = xyes; then
7788 cat >>confdefs.h <<\_ACEOF
7789 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7790 _ACEOF
7792 else
7794 cat >>confdefs.h <<\_ACEOF
7795 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7796 _ACEOF
7800 else
7802 cat >>confdefs.h <<\_ACEOF
7803 #define NESTED_FUNC_ATTR
7804 _ACEOF
7808 # Restore the flags.
7809 CC="$tmp_CC"
7810 CFLAGS="$tmp_CFLAGS"
7811 CPPFLAGS="$tmp_CPPFLAGS"
7812 LDFLAGS="$tmp_LDFLAGS"
7813 LIBS="$tmp_LIBS"
7816 # Check for options.
7819 # Memory manager debugging.
7820 # Check whether --enable-mm-debug was given.
7821 if test "${enable_mm_debug+set}" = set; then
7822 enableval=$enable_mm_debug;
7823 cat >>confdefs.h <<\_ACEOF
7824 #define MM_DEBUG 1
7825 _ACEOF
7830 # Check whether --enable-grub-emu was given.
7831 if test "${enable_grub_emu+set}" = set; then
7832 enableval=$enable_grub_emu;
7835 if [ x"$enable_grub_emu" = xyes ]; then
7836 # Check for curses libraries.
7837 { echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
7838 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6; }
7839 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842 ac_check_lib_save_LIBS=$LIBS
7843 LIBS="-lncurses $LIBS"
7844 cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h. */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7851 /* Override any GCC internal prototype to avoid an error.
7852 Use char because int might match the return type of a GCC
7853 builtin and then its argument prototype would still apply. */
7854 #ifdef __cplusplus
7855 extern "C"
7856 #endif
7857 char wgetch ();
7859 main ()
7861 return wgetch ();
7863 return 0;
7865 _ACEOF
7866 rm -f conftest.$ac_objext conftest$ac_exeext
7867 if { (ac_try="$ac_link"
7868 case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871 esac
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_link") 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest$ac_exeext &&
7883 $as_test_x conftest$ac_exeext; then
7884 ac_cv_lib_ncurses_wgetch=yes
7885 else
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 ac_cv_lib_ncurses_wgetch=no
7892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7893 conftest$ac_exeext conftest.$ac_ext
7894 LIBS=$ac_check_lib_save_LIBS
7896 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
7897 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
7898 if test $ac_cv_lib_ncurses_wgetch = yes; then
7899 LIBCURSES="-lncurses"
7900 else
7901 { echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
7902 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6; }
7903 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906 ac_check_lib_save_LIBS=$LIBS
7907 LIBS="-lcurses $LIBS"
7908 cat >conftest.$ac_ext <<_ACEOF
7909 /* confdefs.h. */
7910 _ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h. */
7915 /* Override any GCC internal prototype to avoid an error.
7916 Use char because int might match the return type of a GCC
7917 builtin and then its argument prototype would still apply. */
7918 #ifdef __cplusplus
7919 extern "C"
7920 #endif
7921 char wgetch ();
7923 main ()
7925 return wgetch ();
7927 return 0;
7929 _ACEOF
7930 rm -f conftest.$ac_objext conftest$ac_exeext
7931 if { (ac_try="$ac_link"
7932 case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935 esac
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_link") 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest$ac_exeext &&
7947 $as_test_x conftest$ac_exeext; then
7948 ac_cv_lib_curses_wgetch=yes
7949 else
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 ac_cv_lib_curses_wgetch=no
7956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7957 conftest$ac_exeext conftest.$ac_ext
7958 LIBS=$ac_check_lib_save_LIBS
7960 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
7961 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
7962 if test $ac_cv_lib_curses_wgetch = yes; then
7963 LIBCURSES="-lcurses"
7964 else
7965 { { echo "$as_me:$LINENO: error: (n)curses libraries are required to build \`grub-emu'" >&5
7966 echo "$as_me: error: (n)curses libraries are required to build \`grub-emu'" >&2;}
7967 { (exit 1); exit 1; }; }
7974 # Check for headers.
7976 for ac_header in ncurses/curses.h
7978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 ac_res=`eval echo '${'$as_ac_Header'}'`
7986 { echo "$as_me:$LINENO: result: $ac_res" >&5
7987 echo "${ECHO_T}$ac_res" >&6; }
7988 else
7989 # Is the header compilable?
7990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7992 cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h. */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 $ac_includes_default
7999 #include <$ac_header>
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (ac_try="$ac_compile"
8003 case "(($ac_try" in
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8006 esac
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8009 ac_status=$?
8010 grep -v '^ *+' conftest.er1 >conftest.err
8011 rm -f conftest.er1
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.$ac_objext; then
8018 ac_header_compiler=yes
8019 else
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 ac_header_compiler=no
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8028 echo "${ECHO_T}$ac_header_compiler" >&6; }
8030 # Is the header present?
8031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 #include <$ac_header>
8040 _ACEOF
8041 if { (ac_try="$ac_cpp conftest.$ac_ext"
8042 case "(($ac_try" in
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8045 esac
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8048 ac_status=$?
8049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } >/dev/null && {
8054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8055 test ! -s conftest.err
8056 }; then
8057 ac_header_preproc=yes
8058 else
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 ac_header_preproc=no
8065 rm -f conftest.err conftest.$ac_ext
8066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8067 echo "${ECHO_T}$ac_header_preproc" >&6; }
8069 # So? What about this header?
8070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8071 yes:no: )
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8076 ac_header_preproc=yes
8078 no:yes:* )
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8091 ( cat <<\_ASBOX
8092 ## ------------------------------- ##
8093 ## Report this to bug-grub@gnu.org ##
8094 ## ------------------------------- ##
8095 _ASBOX
8096 ) | sed "s/^/$as_me: WARNING: /" >&2
8098 esac
8099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104 eval "$as_ac_Header=\$ac_header_preproc"
8106 ac_res=`eval echo '${'$as_ac_Header'}'`
8107 { echo "$as_me:$LINENO: result: $ac_res" >&5
8108 echo "${ECHO_T}$ac_res" >&6; }
8111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8112 cat >>confdefs.h <<_ACEOF
8113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8114 _ACEOF
8116 else
8118 for ac_header in ncurses.h
8120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 ac_res=`eval echo '${'$as_ac_Header'}'`
8128 { echo "$as_me:$LINENO: result: $ac_res" >&5
8129 echo "${ECHO_T}$ac_res" >&6; }
8130 else
8131 # Is the header compilable?
8132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8134 cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h. */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 $ac_includes_default
8141 #include <$ac_header>
8142 _ACEOF
8143 rm -f conftest.$ac_objext
8144 if { (ac_try="$ac_compile"
8145 case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148 esac
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_compile") 2>conftest.er1
8151 ac_status=$?
8152 grep -v '^ *+' conftest.er1 >conftest.err
8153 rm -f conftest.er1
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } && {
8157 test -z "$ac_c_werror_flag" ||
8158 test ! -s conftest.err
8159 } && test -s conftest.$ac_objext; then
8160 ac_header_compiler=yes
8161 else
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 ac_header_compiler=no
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8170 echo "${ECHO_T}$ac_header_compiler" >&6; }
8172 # Is the header present?
8173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h. */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 #include <$ac_header>
8182 _ACEOF
8183 if { (ac_try="$ac_cpp conftest.$ac_ext"
8184 case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8187 esac
8188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8190 ac_status=$?
8191 grep -v '^ *+' conftest.er1 >conftest.err
8192 rm -f conftest.er1
8193 cat conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } >/dev/null && {
8196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8197 test ! -s conftest.err
8198 }; then
8199 ac_header_preproc=yes
8200 else
8201 echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8204 ac_header_preproc=no
8207 rm -f conftest.err conftest.$ac_ext
8208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8209 echo "${ECHO_T}$ac_header_preproc" >&6; }
8211 # So? What about this header?
8212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8213 yes:no: )
8214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8218 ac_header_preproc=yes
8220 no:yes:* )
8221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8233 ( cat <<\_ASBOX
8234 ## ------------------------------- ##
8235 ## Report this to bug-grub@gnu.org ##
8236 ## ------------------------------- ##
8237 _ASBOX
8238 ) | sed "s/^/$as_me: WARNING: /" >&2
8240 esac
8241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246 eval "$as_ac_Header=\$ac_header_preproc"
8248 ac_res=`eval echo '${'$as_ac_Header'}'`
8249 { echo "$as_me:$LINENO: result: $ac_res" >&5
8250 echo "${ECHO_T}$ac_res" >&6; }
8253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8254 cat >>confdefs.h <<_ACEOF
8255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8256 _ACEOF
8258 else
8260 for ac_header in curses.h
8262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 ac_res=`eval echo '${'$as_ac_Header'}'`
8270 { echo "$as_me:$LINENO: result: $ac_res" >&5
8271 echo "${ECHO_T}$ac_res" >&6; }
8272 else
8273 # Is the header compilable?
8274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8276 cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h. */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8282 $ac_includes_default
8283 #include <$ac_header>
8284 _ACEOF
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8287 case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290 esac
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_compile") 2>conftest.er1
8293 ac_status=$?
8294 grep -v '^ *+' conftest.er1 >conftest.err
8295 rm -f conftest.er1
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } && {
8299 test -z "$ac_c_werror_flag" ||
8300 test ! -s conftest.err
8301 } && test -s conftest.$ac_objext; then
8302 ac_header_compiler=yes
8303 else
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8307 ac_header_compiler=no
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8312 echo "${ECHO_T}$ac_header_compiler" >&6; }
8314 # Is the header present?
8315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8317 cat >conftest.$ac_ext <<_ACEOF
8318 /* confdefs.h. */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8323 #include <$ac_header>
8324 _ACEOF
8325 if { (ac_try="$ac_cpp conftest.$ac_ext"
8326 case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8329 esac
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8332 ac_status=$?
8333 grep -v '^ *+' conftest.er1 >conftest.err
8334 rm -f conftest.er1
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } >/dev/null && {
8338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8339 test ! -s conftest.err
8340 }; then
8341 ac_header_preproc=yes
8342 else
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8346 ac_header_preproc=no
8349 rm -f conftest.err conftest.$ac_ext
8350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8351 echo "${ECHO_T}$ac_header_preproc" >&6; }
8353 # So? What about this header?
8354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8355 yes:no: )
8356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8360 ac_header_preproc=yes
8362 no:yes:* )
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8375 ( cat <<\_ASBOX
8376 ## ------------------------------- ##
8377 ## Report this to bug-grub@gnu.org ##
8378 ## ------------------------------- ##
8379 _ASBOX
8380 ) | sed "s/^/$as_me: WARNING: /" >&2
8382 esac
8383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388 eval "$as_ac_Header=\$ac_header_preproc"
8390 ac_res=`eval echo '${'$as_ac_Header'}'`
8391 { echo "$as_me:$LINENO: result: $ac_res" >&5
8392 echo "${ECHO_T}$ac_res" >&6; }
8395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8396 cat >>confdefs.h <<_ACEOF
8397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8398 _ACEOF
8400 else
8401 { { echo "$as_me:$LINENO: error: (n)curses header files are required to build \`grub-emu'" >&5
8402 echo "$as_me: error: (n)curses header files are required to build \`grub-emu'" >&2;}
8403 { (exit 1); exit 1; }; }
8406 done
8410 done
8414 done
8419 # Check whether --enable-grub-fstest was given.
8420 if test "${enable_grub_fstest+set}" = set; then
8421 enableval=$enable_grub_fstest;
8426 # Check whether --enable-grub-pe2elf was given.
8427 if test "${enable_grub_pe2elf+set}" = set; then
8428 enableval=$enable_grub_pe2elf;
8433 # Check whether --enable-grub-mkfont was given.
8434 if test "${enable_grub_mkfont+set}" = set; then
8435 enableval=$enable_grub_mkfont;
8438 if test x"$enable_grub_mkfont" = xyes ; then
8439 # Check for freetype libraries.
8440 for ac_prog in freetype-config
8442 # Extract the first word of "$ac_prog", so it can be a program name with args.
8443 set dummy $ac_prog; ac_word=$2
8444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8446 if test "${ac_cv_prog_FREETYPE+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449 if test -n "$FREETYPE"; then
8450 ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
8451 else
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 for as_dir in $PATH
8455 IFS=$as_save_IFS
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8459 ac_cv_prog_FREETYPE="$ac_prog"
8460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8461 break 2
8463 done
8464 done
8465 IFS=$as_save_IFS
8469 FREETYPE=$ac_cv_prog_FREETYPE
8470 if test -n "$FREETYPE"; then
8471 { echo "$as_me:$LINENO: result: $FREETYPE" >&5
8472 echo "${ECHO_T}$FREETYPE" >&6; }
8473 else
8474 { echo "$as_me:$LINENO: result: no" >&5
8475 echo "${ECHO_T}no" >&6; }
8479 test -n "$FREETYPE" && break
8480 done
8482 if test "x$FREETYPE" = x ; then
8483 { { echo "$as_me:$LINENO: error: freetype2 libraries are required to build \`grub-mkfont'" >&5
8484 echo "$as_me: error: freetype2 libraries are required to build \`grub-mkfont'" >&2;}
8485 { (exit 1); exit 1; }; }
8487 freetype_cflags=`freetype-config --cflags`
8488 freetype_libs=`freetype-config --libs`
8494 # Output files.
8495 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu include/grub/machine:include/grub/$target_cpu/$platform"
8497 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
8499 ac_config_files="$ac_config_files stamp-h"
8501 cat >confcache <<\_ACEOF
8502 # This file is a shell script that caches the results of configure
8503 # tests run on this system so they can be shared between configure
8504 # scripts and configure runs, see configure's option --config-cache.
8505 # It is not useful on other systems. If it contains results you don't
8506 # want to keep, you may remove or edit it.
8508 # config.status only pays attention to the cache file if you give it
8509 # the --recheck option to rerun configure.
8511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8513 # following values.
8515 _ACEOF
8517 # The following way of writing the cache mishandles newlines in values,
8518 # but we know of no workaround that is simple, portable, and efficient.
8519 # So, we kill variables containing newlines.
8520 # Ultrix sh set writes to stderr and can't be redirected directly,
8521 # and sets the high bit in the cache file unless we assign to the vars.
8523 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8524 eval ac_val=\$$ac_var
8525 case $ac_val in #(
8526 *${as_nl}*)
8527 case $ac_var in #(
8528 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8529 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8530 esac
8531 case $ac_var in #(
8532 _ | IFS | as_nl) ;; #(
8533 *) $as_unset $ac_var ;;
8534 esac ;;
8535 esac
8536 done
8538 (set) 2>&1 |
8539 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8540 *${as_nl}ac_space=\ *)
8541 # `set' does not quote correctly, so add quotes (double-quote
8542 # substitution turns \\\\ into \\, and sed turns \\ into \).
8543 sed -n \
8544 "s/'/'\\\\''/g;
8545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8546 ;; #(
8548 # `set' quotes correctly as required by POSIX, so do not add quotes.
8549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8551 esac |
8552 sort
8554 sed '
8555 /^ac_cv_env_/b end
8556 t clear
8557 :clear
8558 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8559 t end
8560 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8561 :end' >>confcache
8562 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8563 if test -w "$cache_file"; then
8564 test "x$cache_file" != "x/dev/null" &&
8565 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8566 echo "$as_me: updating cache $cache_file" >&6;}
8567 cat confcache >$cache_file
8568 else
8569 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8570 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8573 rm -f confcache
8575 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8576 # Let make expand exec_prefix.
8577 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8579 DEFS=-DHAVE_CONFIG_H
8581 ac_libobjs=
8582 ac_ltlibobjs=
8583 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8584 # 1. Remove the extension, and $U if already installed.
8585 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8586 ac_i=`echo "$ac_i" | sed "$ac_script"`
8587 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8588 # will be set to the directory where LIBOBJS objects are built.
8589 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8590 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8591 done
8592 LIBOBJS=$ac_libobjs
8594 LTLIBOBJS=$ac_ltlibobjs
8598 : ${CONFIG_STATUS=./config.status}
8599 ac_clean_files_save=$ac_clean_files
8600 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8601 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8602 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8603 cat >$CONFIG_STATUS <<_ACEOF
8604 #! $SHELL
8605 # Generated by $as_me.
8606 # Run this file to recreate the current configuration.
8607 # Compiler output produced by configure, useful for debugging
8608 # configure, is in config.log if it exists.
8610 debug=false
8611 ac_cs_recheck=false
8612 ac_cs_silent=false
8613 SHELL=\${CONFIG_SHELL-$SHELL}
8614 _ACEOF
8616 cat >>$CONFIG_STATUS <<\_ACEOF
8617 ## --------------------- ##
8618 ## M4sh Initialization. ##
8619 ## --------------------- ##
8621 # Be more Bourne compatible
8622 DUALCASE=1; export DUALCASE # for MKS sh
8623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8624 emulate sh
8625 NULLCMD=:
8626 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8627 # is contrary to our usage. Disable this feature.
8628 alias -g '${1+"$@"}'='"$@"'
8629 setopt NO_GLOB_SUBST
8630 else
8631 case `(set -o) 2>/dev/null` in
8632 *posix*) set -o posix ;;
8633 esac
8640 # PATH needs CR
8641 # Avoid depending upon Character Ranges.
8642 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8643 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8644 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8645 as_cr_digits='0123456789'
8646 as_cr_alnum=$as_cr_Letters$as_cr_digits
8648 # The user is always right.
8649 if test "${PATH_SEPARATOR+set}" != set; then
8650 echo "#! /bin/sh" >conf$$.sh
8651 echo "exit 0" >>conf$$.sh
8652 chmod +x conf$$.sh
8653 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8654 PATH_SEPARATOR=';'
8655 else
8656 PATH_SEPARATOR=:
8658 rm -f conf$$.sh
8661 # Support unset when possible.
8662 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8663 as_unset=unset
8664 else
8665 as_unset=false
8669 # IFS
8670 # We need space, tab and new line, in precisely that order. Quoting is
8671 # there to prevent editors from complaining about space-tab.
8672 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8673 # splitting by setting IFS to empty value.)
8674 as_nl='
8676 IFS=" "" $as_nl"
8678 # Find who we are. Look in the path if we contain no directory separator.
8679 case $0 in
8680 *[\\/]* ) as_myself=$0 ;;
8681 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 for as_dir in $PATH
8684 IFS=$as_save_IFS
8685 test -z "$as_dir" && as_dir=.
8686 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8687 done
8688 IFS=$as_save_IFS
8691 esac
8692 # We did not find ourselves, most probably we were run as `sh COMMAND'
8693 # in which case we are not to be found in the path.
8694 if test "x$as_myself" = x; then
8695 as_myself=$0
8697 if test ! -f "$as_myself"; then
8698 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8699 { (exit 1); exit 1; }
8702 # Work around bugs in pre-3.0 UWIN ksh.
8703 for as_var in ENV MAIL MAILPATH
8704 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8705 done
8706 PS1='$ '
8707 PS2='> '
8708 PS4='+ '
8710 # NLS nuisances.
8711 for as_var in \
8712 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8713 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8714 LC_TELEPHONE LC_TIME
8716 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8717 eval $as_var=C; export $as_var
8718 else
8719 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8721 done
8723 # Required to use basename.
8724 if expr a : '\(a\)' >/dev/null 2>&1 &&
8725 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8726 as_expr=expr
8727 else
8728 as_expr=false
8731 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8732 as_basename=basename
8733 else
8734 as_basename=false
8738 # Name of the executable.
8739 as_me=`$as_basename -- "$0" ||
8740 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8741 X"$0" : 'X\(//\)$' \| \
8742 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8743 echo X/"$0" |
8744 sed '/^.*\/\([^/][^/]*\)\/*$/{
8745 s//\1/
8748 /^X\/\(\/\/\)$/{
8749 s//\1/
8752 /^X\/\(\/\).*/{
8753 s//\1/
8756 s/.*/./; q'`
8758 # CDPATH.
8759 $as_unset CDPATH
8763 as_lineno_1=$LINENO
8764 as_lineno_2=$LINENO
8765 test "x$as_lineno_1" != "x$as_lineno_2" &&
8766 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8768 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8769 # uniformly replaced by the line number. The first 'sed' inserts a
8770 # line-number line after each line using $LINENO; the second 'sed'
8771 # does the real work. The second script uses 'N' to pair each
8772 # line-number line with the line containing $LINENO, and appends
8773 # trailing '-' during substitution so that $LINENO is not a special
8774 # case at line end.
8775 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8776 # scripts with optimization help from Paolo Bonzini. Blame Lee
8777 # E. McMahon (1931-1989) for sed's syntax. :-)
8778 sed -n '
8780 /[$]LINENO/=
8781 ' <$as_myself |
8782 sed '
8783 s/[$]LINENO.*/&-/
8784 t lineno
8786 :lineno
8788 :loop
8789 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8790 t loop
8791 s/-\n.*//
8792 ' >$as_me.lineno &&
8793 chmod +x "$as_me.lineno" ||
8794 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8795 { (exit 1); exit 1; }; }
8797 # Don't try to exec as it changes $[0], causing all sort of problems
8798 # (the dirname of $[0] is not the place where we might find the
8799 # original and so on. Autoconf is especially sensitive to this).
8800 . "./$as_me.lineno"
8801 # Exit status is that of the last command.
8802 exit
8806 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8807 as_dirname=dirname
8808 else
8809 as_dirname=false
8812 ECHO_C= ECHO_N= ECHO_T=
8813 case `echo -n x` in
8814 -n*)
8815 case `echo 'x\c'` in
8816 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8817 *) ECHO_C='\c';;
8818 esac;;
8820 ECHO_N='-n';;
8821 esac
8823 if expr a : '\(a\)' >/dev/null 2>&1 &&
8824 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8825 as_expr=expr
8826 else
8827 as_expr=false
8830 rm -f conf$$ conf$$.exe conf$$.file
8831 if test -d conf$$.dir; then
8832 rm -f conf$$.dir/conf$$.file
8833 else
8834 rm -f conf$$.dir
8835 mkdir conf$$.dir
8837 echo >conf$$.file
8838 if ln -s conf$$.file conf$$ 2>/dev/null; then
8839 as_ln_s='ln -s'
8840 # ... but there are two gotchas:
8841 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8842 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8843 # In both cases, we have to default to `cp -p'.
8844 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8845 as_ln_s='cp -p'
8846 elif ln conf$$.file conf$$ 2>/dev/null; then
8847 as_ln_s=ln
8848 else
8849 as_ln_s='cp -p'
8851 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8852 rmdir conf$$.dir 2>/dev/null
8854 if mkdir -p . 2>/dev/null; then
8855 as_mkdir_p=:
8856 else
8857 test -d ./-p && rmdir ./-p
8858 as_mkdir_p=false
8861 if test -x / >/dev/null 2>&1; then
8862 as_test_x='test -x'
8863 else
8864 if ls -dL / >/dev/null 2>&1; then
8865 as_ls_L_option=L
8866 else
8867 as_ls_L_option=
8869 as_test_x='
8870 eval sh -c '\''
8871 if test -d "$1"; then
8872 test -d "$1/.";
8873 else
8874 case $1 in
8875 -*)set "./$1";;
8876 esac;
8877 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8878 ???[sx]*):;;*)false;;esac;fi
8879 '\'' sh
8882 as_executable_p=$as_test_x
8884 # Sed expression to map a string onto a valid CPP name.
8885 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8887 # Sed expression to map a string onto a valid variable name.
8888 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8891 exec 6>&1
8893 # Save the log message, to keep $[0] and so on meaningful, and to
8894 # report actual input values of CONFIG_FILES etc. instead of their
8895 # values after options handling.
8896 ac_log="
8897 This file was extended by GRUB $as_me 1.96, which was
8898 generated by GNU Autoconf 2.61. Invocation command line was
8900 CONFIG_FILES = $CONFIG_FILES
8901 CONFIG_HEADERS = $CONFIG_HEADERS
8902 CONFIG_LINKS = $CONFIG_LINKS
8903 CONFIG_COMMANDS = $CONFIG_COMMANDS
8904 $ $0 $@
8906 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8909 _ACEOF
8911 cat >>$CONFIG_STATUS <<_ACEOF
8912 # Files that config.status was made for.
8913 config_files="$ac_config_files"
8914 config_headers="$ac_config_headers"
8915 config_links="$ac_config_links"
8917 _ACEOF
8919 cat >>$CONFIG_STATUS <<\_ACEOF
8920 ac_cs_usage="\
8921 \`$as_me' instantiates files from templates according to the
8922 current configuration.
8924 Usage: $0 [OPTIONS] [FILE]...
8926 -h, --help print this help, then exit
8927 -V, --version print version number and configuration settings, then exit
8928 -q, --quiet do not print progress messages
8929 -d, --debug don't remove temporary files
8930 --recheck update $as_me by reconfiguring in the same conditions
8931 --file=FILE[:TEMPLATE]
8932 instantiate the configuration file FILE
8933 --header=FILE[:TEMPLATE]
8934 instantiate the configuration header FILE
8936 Configuration files:
8937 $config_files
8939 Configuration headers:
8940 $config_headers
8942 Configuration links:
8943 $config_links
8945 Report bugs to <bug-autoconf@gnu.org>."
8947 _ACEOF
8948 cat >>$CONFIG_STATUS <<_ACEOF
8949 ac_cs_version="\\
8950 GRUB config.status 1.96
8951 configured by $0, generated by GNU Autoconf 2.61,
8952 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8954 Copyright (C) 2006 Free Software Foundation, Inc.
8955 This config.status script is free software; the Free Software Foundation
8956 gives unlimited permission to copy, distribute and modify it."
8958 ac_pwd='$ac_pwd'
8959 srcdir='$srcdir'
8960 INSTALL='$INSTALL'
8961 _ACEOF
8963 cat >>$CONFIG_STATUS <<\_ACEOF
8964 # If no file are specified by the user, then we need to provide default
8965 # value. By we need to know if files were specified by the user.
8966 ac_need_defaults=:
8967 while test $# != 0
8969 case $1 in
8970 --*=*)
8971 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8972 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8973 ac_shift=:
8976 ac_option=$1
8977 ac_optarg=$2
8978 ac_shift=shift
8980 esac
8982 case $ac_option in
8983 # Handling of the options.
8984 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8985 ac_cs_recheck=: ;;
8986 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8987 echo "$ac_cs_version"; exit ;;
8988 --debug | --debu | --deb | --de | --d | -d )
8989 debug=: ;;
8990 --file | --fil | --fi | --f )
8991 $ac_shift
8992 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8993 ac_need_defaults=false;;
8994 --header | --heade | --head | --hea )
8995 $ac_shift
8996 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8997 ac_need_defaults=false;;
8998 --he | --h)
8999 # Conflict between --help and --header
9000 { echo "$as_me: error: ambiguous option: $1
9001 Try \`$0 --help' for more information." >&2
9002 { (exit 1); exit 1; }; };;
9003 --help | --hel | -h )
9004 echo "$ac_cs_usage"; exit ;;
9005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9006 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9007 ac_cs_silent=: ;;
9009 # This is an error.
9010 -*) { echo "$as_me: error: unrecognized option: $1
9011 Try \`$0 --help' for more information." >&2
9012 { (exit 1); exit 1; }; } ;;
9014 *) ac_config_targets="$ac_config_targets $1"
9015 ac_need_defaults=false ;;
9017 esac
9018 shift
9019 done
9021 ac_configure_extra_args=
9023 if $ac_cs_silent; then
9024 exec 6>/dev/null
9025 ac_configure_extra_args="$ac_configure_extra_args --silent"
9028 _ACEOF
9029 cat >>$CONFIG_STATUS <<_ACEOF
9030 if \$ac_cs_recheck; then
9031 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9032 CONFIG_SHELL=$SHELL
9033 export CONFIG_SHELL
9034 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9037 _ACEOF
9038 cat >>$CONFIG_STATUS <<\_ACEOF
9039 exec 5>>config.log
9041 echo
9042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9043 ## Running $as_me. ##
9044 _ASBOX
9045 echo "$ac_log"
9046 } >&5
9048 _ACEOF
9049 cat >>$CONFIG_STATUS <<_ACEOF
9050 _ACEOF
9052 cat >>$CONFIG_STATUS <<\_ACEOF
9054 # Handling of arguments.
9055 for ac_config_target in $ac_config_targets
9057 case $ac_config_target in
9058 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9059 "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
9060 "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
9061 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9062 "gensymlist.sh") CONFIG_FILES="$CONFIG_FILES gensymlist.sh" ;;
9063 "genkernsyms.sh") CONFIG_FILES="$CONFIG_FILES genkernsyms.sh" ;;
9064 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
9066 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9067 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9068 { (exit 1); exit 1; }; };;
9069 esac
9070 done
9073 # If the user did not use the arguments to specify the items to instantiate,
9074 # then the envvar interface is used. Set only those that are not.
9075 # We use the long form for the default assignment because of an extremely
9076 # bizarre bug on SunOS 4.1.3.
9077 if $ac_need_defaults; then
9078 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9079 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9080 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9083 # Have a temporary directory for convenience. Make it in the build tree
9084 # simply because there is no reason against having it here, and in addition,
9085 # creating and moving files from /tmp can sometimes cause problems.
9086 # Hook for its removal unless debugging.
9087 # Note that there is a small window in which the directory will not be cleaned:
9088 # after its creation but before its name has been assigned to `$tmp'.
9089 $debug ||
9091 tmp=
9092 trap 'exit_status=$?
9093 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9095 trap '{ (exit 1); exit 1; }' 1 2 13 15
9097 # Create a (secure) tmp directory for tmp files.
9100 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9101 test -n "$tmp" && test -d "$tmp"
9102 } ||
9104 tmp=./conf$$-$RANDOM
9105 (umask 077 && mkdir "$tmp")
9106 } ||
9108 echo "$me: cannot create a temporary directory in ." >&2
9109 { (exit 1); exit 1; }
9113 # Set up the sed scripts for CONFIG_FILES section.
9116 # No need to generate the scripts if there are no CONFIG_FILES.
9117 # This happens for instance when ./config.status config.h
9118 if test -n "$CONFIG_FILES"; then
9120 _ACEOF
9124 ac_delim='%!_!# '
9125 for ac_last_try in false false false false false :; do
9126 cat >conf$$subs.sed <<_ACEOF
9127 SHELL!$SHELL$ac_delim
9128 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9129 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9130 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9131 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9132 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9133 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9134 exec_prefix!$exec_prefix$ac_delim
9135 prefix!$prefix$ac_delim
9136 program_transform_name!$program_transform_name$ac_delim
9137 bindir!$bindir$ac_delim
9138 sbindir!$sbindir$ac_delim
9139 libexecdir!$libexecdir$ac_delim
9140 datarootdir!$datarootdir$ac_delim
9141 datadir!$datadir$ac_delim
9142 sysconfdir!$sysconfdir$ac_delim
9143 sharedstatedir!$sharedstatedir$ac_delim
9144 localstatedir!$localstatedir$ac_delim
9145 includedir!$includedir$ac_delim
9146 oldincludedir!$oldincludedir$ac_delim
9147 docdir!$docdir$ac_delim
9148 infodir!$infodir$ac_delim
9149 htmldir!$htmldir$ac_delim
9150 dvidir!$dvidir$ac_delim
9151 pdfdir!$pdfdir$ac_delim
9152 psdir!$psdir$ac_delim
9153 libdir!$libdir$ac_delim
9154 localedir!$localedir$ac_delim
9155 mandir!$mandir$ac_delim
9156 DEFS!$DEFS$ac_delim
9157 ECHO_C!$ECHO_C$ac_delim
9158 ECHO_N!$ECHO_N$ac_delim
9159 ECHO_T!$ECHO_T$ac_delim
9160 LIBS!$LIBS$ac_delim
9161 build_alias!$build_alias$ac_delim
9162 host_alias!$host_alias$ac_delim
9163 target_alias!$target_alias$ac_delim
9164 build!$build$ac_delim
9165 build_cpu!$build_cpu$ac_delim
9166 build_vendor!$build_vendor$ac_delim
9167 build_os!$build_os$ac_delim
9168 host!$host$ac_delim
9169 host_cpu!$host_cpu$ac_delim
9170 host_vendor!$host_vendor$ac_delim
9171 host_os!$host_os$ac_delim
9172 target!$target$ac_delim
9173 target_cpu!$target_cpu$ac_delim
9174 target_vendor!$target_vendor$ac_delim
9175 target_os!$target_os$ac_delim
9176 platform!$platform$ac_delim
9177 CMP!$CMP$ac_delim
9178 YACC!$YACC$ac_delim
9179 UNIFONT_BDF!$UNIFONT_BDF$ac_delim
9180 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9181 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9182 INSTALL_DATA!$INSTALL_DATA$ac_delim
9183 AWK!$AWK$ac_delim
9184 SET_MAKE!$SET_MAKE$ac_delim
9185 RUBY!$RUBY$ac_delim
9186 HELP2MAN!$HELP2MAN$ac_delim
9187 CC!$CC$ac_delim
9188 CFLAGS!$CFLAGS$ac_delim
9189 LDFLAGS!$LDFLAGS$ac_delim
9190 CPPFLAGS!$CPPFLAGS$ac_delim
9191 ac_ct_CC!$ac_ct_CC$ac_delim
9192 EXEEXT!$EXEEXT$ac_delim
9193 OBJEXT!$OBJEXT$ac_delim
9194 CPP!$CPP$ac_delim
9195 GREP!$GREP$ac_delim
9196 EGREP!$EGREP$ac_delim
9197 LIBLZO!$LIBLZO$ac_delim
9198 enable_lzo!$enable_lzo$ac_delim
9199 TARGET_IMG_LDSCRIPT!$TARGET_IMG_LDSCRIPT$ac_delim
9200 TARGET_IMG_LDFLAGS!$TARGET_IMG_LDFLAGS$ac_delim
9201 TARGET_OBJ2ELF!$TARGET_OBJ2ELF$ac_delim
9202 TARGET_CC!$TARGET_CC$ac_delim
9203 ac_ct_TARGET_CC!$ac_ct_TARGET_CC$ac_delim
9204 OBJCOPY!$OBJCOPY$ac_delim
9205 STRIP!$STRIP$ac_delim
9206 NM!$NM$ac_delim
9207 TARGET_CFLAGS!$TARGET_CFLAGS$ac_delim
9208 TARGET_CPPFLAGS!$TARGET_CPPFLAGS$ac_delim
9209 TARGET_LDFLAGS!$TARGET_LDFLAGS$ac_delim
9210 MODULE_LDFLAGS!$MODULE_LDFLAGS$ac_delim
9211 LIBCURSES!$LIBCURSES$ac_delim
9212 enable_grub_emu!$enable_grub_emu$ac_delim
9213 enable_grub_fstest!$enable_grub_fstest$ac_delim
9214 enable_grub_pe2elf!$enable_grub_pe2elf$ac_delim
9215 FREETYPE!$FREETYPE$ac_delim
9216 enable_grub_mkfont!$enable_grub_mkfont$ac_delim
9217 freetype_cflags!$freetype_cflags$ac_delim
9218 freetype_libs!$freetype_libs$ac_delim
9219 LIBOBJS!$LIBOBJS$ac_delim
9220 LTLIBOBJS!$LTLIBOBJS$ac_delim
9221 _ACEOF
9223 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
9224 break
9225 elif $ac_last_try; then
9226 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9227 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9228 { (exit 1); exit 1; }; }
9229 else
9230 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9232 done
9234 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9235 if test -n "$ac_eof"; then
9236 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9237 ac_eof=`expr $ac_eof + 1`
9240 cat >>$CONFIG_STATUS <<_ACEOF
9241 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9243 _ACEOF
9244 sed '
9245 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9246 s/^/s,@/; s/!/@,|#_!!_#|/
9249 s/'"$ac_delim"'$/,g/; t
9250 s/$/\\/; p
9251 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9252 ' >>$CONFIG_STATUS <conf$$subs.sed
9253 rm -f conf$$subs.sed
9254 cat >>$CONFIG_STATUS <<_ACEOF
9255 :end
9256 s/|#_!!_#|//g
9257 CEOF$ac_eof
9258 _ACEOF
9261 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9262 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9263 # trailing colons and then remove the whole line if VPATH becomes empty
9264 # (actually we leave an empty line to preserve line numbers).
9265 if test "x$srcdir" = x.; then
9266 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9267 s/:*\$(srcdir):*/:/
9268 s/:*\${srcdir}:*/:/
9269 s/:*@srcdir@:*/:/
9270 s/^\([^=]*=[ ]*\):*/\1/
9271 s/:*$//
9272 s/^[^=]*=[ ]*$//
9276 cat >>$CONFIG_STATUS <<\_ACEOF
9277 fi # test -n "$CONFIG_FILES"
9280 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS
9282 case $ac_tag in
9283 :[FHLC]) ac_mode=$ac_tag; continue;;
9284 esac
9285 case $ac_mode$ac_tag in
9286 :[FHL]*:*);;
9287 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9288 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9289 { (exit 1); exit 1; }; };;
9290 :[FH]-) ac_tag=-:-;;
9291 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9292 esac
9293 ac_save_IFS=$IFS
9294 IFS=:
9295 set x $ac_tag
9296 IFS=$ac_save_IFS
9297 shift
9298 ac_file=$1
9299 shift
9301 case $ac_mode in
9302 :L) ac_source=$1;;
9303 :[FH])
9304 ac_file_inputs=
9305 for ac_f
9307 case $ac_f in
9308 -) ac_f="$tmp/stdin";;
9309 *) # Look for the file first in the build tree, then in the source tree
9310 # (if the path is not absolute). The absolute path cannot be DOS-style,
9311 # because $ac_f cannot contain `:'.
9312 test -f "$ac_f" ||
9313 case $ac_f in
9314 [\\/$]*) false;;
9315 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9316 esac ||
9317 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9318 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9319 { (exit 1); exit 1; }; };;
9320 esac
9321 ac_file_inputs="$ac_file_inputs $ac_f"
9322 done
9324 # Let's still pretend it is `configure' which instantiates (i.e., don't
9325 # use $as_me), people would be surprised to read:
9326 # /* config.h. Generated by config.status. */
9327 configure_input="Generated from "`IFS=:
9328 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9329 if test x"$ac_file" != x-; then
9330 configure_input="$ac_file. $configure_input"
9331 { echo "$as_me:$LINENO: creating $ac_file" >&5
9332 echo "$as_me: creating $ac_file" >&6;}
9335 case $ac_tag in
9336 *:-:* | *:-) cat >"$tmp/stdin";;
9337 esac
9339 esac
9341 ac_dir=`$as_dirname -- "$ac_file" ||
9342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9343 X"$ac_file" : 'X\(//\)[^/]' \| \
9344 X"$ac_file" : 'X\(//\)$' \| \
9345 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9346 echo X"$ac_file" |
9347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9348 s//\1/
9351 /^X\(\/\/\)[^/].*/{
9352 s//\1/
9355 /^X\(\/\/\)$/{
9356 s//\1/
9359 /^X\(\/\).*/{
9360 s//\1/
9363 s/.*/./; q'`
9364 { as_dir="$ac_dir"
9365 case $as_dir in #(
9366 -*) as_dir=./$as_dir;;
9367 esac
9368 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9369 as_dirs=
9370 while :; do
9371 case $as_dir in #(
9372 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9373 *) as_qdir=$as_dir;;
9374 esac
9375 as_dirs="'$as_qdir' $as_dirs"
9376 as_dir=`$as_dirname -- "$as_dir" ||
9377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9378 X"$as_dir" : 'X\(//\)[^/]' \| \
9379 X"$as_dir" : 'X\(//\)$' \| \
9380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9381 echo X"$as_dir" |
9382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9383 s//\1/
9386 /^X\(\/\/\)[^/].*/{
9387 s//\1/
9390 /^X\(\/\/\)$/{
9391 s//\1/
9394 /^X\(\/\).*/{
9395 s//\1/
9398 s/.*/./; q'`
9399 test -d "$as_dir" && break
9400 done
9401 test -z "$as_dirs" || eval "mkdir $as_dirs"
9402 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9403 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9404 { (exit 1); exit 1; }; }; }
9405 ac_builddir=.
9407 case "$ac_dir" in
9408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9410 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9411 # A ".." for each directory in $ac_dir_suffix.
9412 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9413 case $ac_top_builddir_sub in
9414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9416 esac ;;
9417 esac
9418 ac_abs_top_builddir=$ac_pwd
9419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9420 # for backward compatibility:
9421 ac_top_builddir=$ac_top_build_prefix
9423 case $srcdir in
9424 .) # We are building in place.
9425 ac_srcdir=.
9426 ac_top_srcdir=$ac_top_builddir_sub
9427 ac_abs_top_srcdir=$ac_pwd ;;
9428 [\\/]* | ?:[\\/]* ) # Absolute name.
9429 ac_srcdir=$srcdir$ac_dir_suffix;
9430 ac_top_srcdir=$srcdir
9431 ac_abs_top_srcdir=$srcdir ;;
9432 *) # Relative name.
9433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9434 ac_top_srcdir=$ac_top_build_prefix$srcdir
9435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9436 esac
9437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9440 case $ac_mode in
9443 # CONFIG_FILE
9446 case $INSTALL in
9447 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9448 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9449 esac
9450 _ACEOF
9452 cat >>$CONFIG_STATUS <<\_ACEOF
9453 # If the template does not know about datarootdir, expand it.
9454 # FIXME: This hack should be removed a few years after 2.60.
9455 ac_datarootdir_hack=; ac_datarootdir_seen=
9457 case `sed -n '/datarootdir/ {
9461 /@datadir@/p
9462 /@docdir@/p
9463 /@infodir@/p
9464 /@localedir@/p
9465 /@mandir@/p
9466 ' $ac_file_inputs` in
9467 *datarootdir*) ac_datarootdir_seen=yes;;
9468 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9469 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9470 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9471 _ACEOF
9472 cat >>$CONFIG_STATUS <<_ACEOF
9473 ac_datarootdir_hack='
9474 s&@datadir@&$datadir&g
9475 s&@docdir@&$docdir&g
9476 s&@infodir@&$infodir&g
9477 s&@localedir@&$localedir&g
9478 s&@mandir@&$mandir&g
9479 s&\\\${datarootdir}&$datarootdir&g' ;;
9480 esac
9481 _ACEOF
9483 # Neutralize VPATH when `$srcdir' = `.'.
9484 # Shell code in configure.ac might set extrasub.
9485 # FIXME: do we really want to maintain this feature?
9486 cat >>$CONFIG_STATUS <<_ACEOF
9487 sed "$ac_vpsub
9488 $extrasub
9489 _ACEOF
9490 cat >>$CONFIG_STATUS <<\_ACEOF
9492 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9493 s&@configure_input@&$configure_input&;t t
9494 s&@top_builddir@&$ac_top_builddir_sub&;t t
9495 s&@srcdir@&$ac_srcdir&;t t
9496 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9497 s&@top_srcdir@&$ac_top_srcdir&;t t
9498 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9499 s&@builddir@&$ac_builddir&;t t
9500 s&@abs_builddir@&$ac_abs_builddir&;t t
9501 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9502 s&@INSTALL@&$ac_INSTALL&;t t
9503 $ac_datarootdir_hack
9504 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
9506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9507 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9509 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9510 which seems to be undefined. Please make sure it is defined." >&5
9511 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9512 which seems to be undefined. Please make sure it is defined." >&2;}
9514 rm -f "$tmp/stdin"
9515 case $ac_file in
9516 -) cat "$tmp/out"; rm -f "$tmp/out";;
9517 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9518 esac
9522 # CONFIG_HEADER
9524 _ACEOF
9526 # Transform confdefs.h into a sed script `conftest.defines', that
9527 # substitutes the proper values into config.h.in to produce config.h.
9528 rm -f conftest.defines conftest.tail
9529 # First, append a space to every undef/define line, to ease matching.
9530 echo 's/$/ /' >conftest.defines
9531 # Then, protect against being on the right side of a sed subst, or in
9532 # an unquoted here document, in config.status. If some macros were
9533 # called several times there might be several #defines for the same
9534 # symbol, which is useless. But do not sort them, since the last
9535 # AC_DEFINE must be honored.
9536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9537 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9538 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9539 # PARAMS is the parameter list in the macro definition--in most cases, it's
9540 # just an empty string.
9541 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9542 ac_dB='\\)[ (].*,\\1define\\2'
9543 ac_dC=' '
9544 ac_dD=' ,'
9546 uniq confdefs.h |
9547 sed -n '
9548 t rset
9549 :rset
9550 s/^[ ]*#[ ]*define[ ][ ]*//
9551 t ok
9554 s/[\\&,]/\\&/g
9555 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9556 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9557 ' >>conftest.defines
9559 # Remove the space that was appended to ease matching.
9560 # Then replace #undef with comments. This is necessary, for
9561 # example, in the case of _POSIX_SOURCE, which is predefined and required
9562 # on some systems where configure will not decide to define it.
9563 # (The regexp can be short, since the line contains either #define or #undef.)
9564 echo 's/ $//
9565 s,^[ #]*u.*,/* & */,' >>conftest.defines
9567 # Break up conftest.defines:
9568 ac_max_sed_lines=50
9570 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9571 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9572 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9573 # et cetera.
9574 ac_in='$ac_file_inputs'
9575 ac_out='"$tmp/out1"'
9576 ac_nxt='"$tmp/out2"'
9578 while :
9580 # Write a here document:
9581 cat >>$CONFIG_STATUS <<_ACEOF
9582 # First, check the format of the line:
9583 cat >"\$tmp/defines.sed" <<\\CEOF
9584 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9585 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9587 :def
9588 _ACEOF
9589 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9590 echo 'CEOF
9591 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9592 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9593 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9594 grep . conftest.tail >/dev/null || break
9595 rm -f conftest.defines
9596 mv conftest.tail conftest.defines
9597 done
9598 rm -f conftest.defines conftest.tail
9600 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9601 cat >>$CONFIG_STATUS <<\_ACEOF
9602 if test x"$ac_file" != x-; then
9603 echo "/* $configure_input */" >"$tmp/config.h"
9604 cat "$ac_result" >>"$tmp/config.h"
9605 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9606 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9607 echo "$as_me: $ac_file is unchanged" >&6;}
9608 else
9609 rm -f $ac_file
9610 mv "$tmp/config.h" $ac_file
9612 else
9613 echo "/* $configure_input */"
9614 cat "$ac_result"
9616 rm -f "$tmp/out12"
9620 # CONFIG_LINK
9623 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
9624 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
9626 if test ! -r "$srcdir/$ac_source"; then
9627 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9628 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9629 { (exit 1); exit 1; }; }
9631 rm -f "$ac_file"
9633 # Try a relative symlink, then a hard link, then a copy.
9634 case $srcdir in
9635 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9636 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
9637 esac
9638 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
9639 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
9640 cp -p "$srcdir/$ac_source" "$ac_file" ||
9641 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
9642 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
9643 { (exit 1); exit 1; }; }
9646 esac
9649 case $ac_file$ac_mode in
9650 "stamp-h":F) echo timestamp > stamp-h ;;
9652 esac
9653 done # for ac_tag
9656 { (exit 0); exit 0; }
9657 _ACEOF
9658 chmod +x $CONFIG_STATUS
9659 ac_clean_files=$ac_clean_files_save
9662 # configure is writing to config.log, and then calls config.status.
9663 # config.status does its own redirection, appending to config.log.
9664 # Unfortunately, on DOS this fails, as config.log is still kept open
9665 # by configure, so config.status won't be able to write to it; its
9666 # output is simply discarded. So we exec the FD to /dev/null,
9667 # effectively closing config.log, so it can be properly (re)opened and
9668 # appended to by config.status. When coming back to configure, we
9669 # need to make the FD available again.
9670 if test "$no_create" != yes; then
9671 ac_cs_success=:
9672 ac_config_status_args=
9673 test "$silent" = yes &&
9674 ac_config_status_args="$ac_config_status_args --quiet"
9675 exec 5>/dev/null
9676 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9677 exec 5>>config.log
9678 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9679 # would make configure fail if this is the last instruction.
9680 $ac_cs_success || { (exit 1); exit 1; }