2009-04-11 Felix Zielcke <fzielcke@z-51.de>
[grub2/phcoder/solaris.git] / configure
blobc4312f42b290a3ad0df05fa60157f9938c8a5765
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 host_kernel
668 platform
670 YACC
671 UNIFONT_BDF
672 INSTALL_PROGRAM
673 INSTALL_SCRIPT
674 INSTALL_DATA
676 SET_MAKE
677 RUBY
678 HELP2MAN
680 CFLAGS
681 LDFLAGS
682 CPPFLAGS
683 ac_ct_CC
684 EXEEXT
685 OBJEXT
687 GREP
688 EGREP
689 LIBLZO
690 enable_lzo
691 TARGET_IMG_LDSCRIPT
692 TARGET_IMG_LDFLAGS
693 TARGET_OBJ2ELF
694 TARGET_CC
695 ac_ct_TARGET_CC
696 OBJCOPY
697 STRIP
699 TARGET_CFLAGS
700 TARGET_CPPFLAGS
701 TARGET_LDFLAGS
702 LIBCURSES
703 LIBUSB
704 enable_grub_emu
705 enable_grub_emu_usb
706 enable_grub_fstest
707 enable_grub_pe2elf
708 FREETYPE
709 enable_grub_mkfont
710 freetype_cflags
711 freetype_libs
712 LIBOBJS
713 LTLIBOBJS'
714 ac_subst_files=''
715 ac_precious_vars='build_alias
716 host_alias
717 target_alias
719 CFLAGS
720 LDFLAGS
721 LIBS
722 CPPFLAGS
723 CPP'
726 # Initialize some variables set by options.
727 ac_init_help=
728 ac_init_version=false
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
731 cache_file=/dev/null
732 exec_prefix=NONE
733 no_create=
734 no_recursion=
735 prefix=NONE
736 program_prefix=NONE
737 program_suffix=NONE
738 program_transform_name=s,x,x,
739 silent=
740 site=
741 srcdir=
742 verbose=
743 x_includes=NONE
744 x_libraries=NONE
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir='${exec_prefix}/bin'
753 sbindir='${exec_prefix}/sbin'
754 libexecdir='${exec_prefix}/libexec'
755 datarootdir='${prefix}/share'
756 datadir='${datarootdir}'
757 sysconfdir='${prefix}/etc'
758 sharedstatedir='${prefix}/com'
759 localstatedir='${prefix}/var'
760 includedir='${prefix}/include'
761 oldincludedir='/usr/include'
762 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
763 infodir='${datarootdir}/info'
764 htmldir='${docdir}'
765 dvidir='${docdir}'
766 pdfdir='${docdir}'
767 psdir='${docdir}'
768 libdir='${exec_prefix}/lib'
769 localedir='${datarootdir}/locale'
770 mandir='${datarootdir}/man'
772 ac_prev=
773 ac_dashdash=
774 for ac_option
776 # If the previous option needs an argument, assign it.
777 if test -n "$ac_prev"; then
778 eval $ac_prev=\$ac_option
779 ac_prev=
780 continue
783 case $ac_option in
784 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
785 *) ac_optarg=yes ;;
786 esac
788 # Accept the important Cygnus configure options, so we can diagnose typos.
790 case $ac_dashdash$ac_option in
792 ac_dashdash=yes ;;
794 -bindir | --bindir | --bindi | --bind | --bin | --bi)
795 ac_prev=bindir ;;
796 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797 bindir=$ac_optarg ;;
799 -build | --build | --buil | --bui | --bu)
800 ac_prev=build_alias ;;
801 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802 build_alias=$ac_optarg ;;
804 -cache-file | --cache-file | --cache-fil | --cache-fi \
805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806 ac_prev=cache_file ;;
807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809 cache_file=$ac_optarg ;;
811 --config-cache | -C)
812 cache_file=config.cache ;;
814 -datadir | --datadir | --datadi | --datad)
815 ac_prev=datadir ;;
816 -datadir=* | --datadir=* | --datadi=* | --datad=*)
817 datadir=$ac_optarg ;;
819 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820 | --dataroo | --dataro | --datar)
821 ac_prev=datarootdir ;;
822 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824 datarootdir=$ac_optarg ;;
826 -disable-* | --disable-*)
827 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
830 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
831 { (exit 1); exit 1; }; }
832 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
833 eval enable_$ac_feature=no ;;
835 -docdir | --docdir | --docdi | --doc | --do)
836 ac_prev=docdir ;;
837 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
838 docdir=$ac_optarg ;;
840 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
841 ac_prev=dvidir ;;
842 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
843 dvidir=$ac_optarg ;;
845 -enable-* | --enable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=\$ac_optarg ;;
854 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
855 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
856 | --exec | --exe | --ex)
857 ac_prev=exec_prefix ;;
858 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
859 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
860 | --exec=* | --exe=* | --ex=*)
861 exec_prefix=$ac_optarg ;;
863 -gas | --gas | --ga | --g)
864 # Obsolete; use --with-gas.
865 with_gas=yes ;;
867 -help | --help | --hel | --he | -h)
868 ac_init_help=long ;;
869 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
870 ac_init_help=recursive ;;
871 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
872 ac_init_help=short ;;
874 -host | --host | --hos | --ho)
875 ac_prev=host_alias ;;
876 -host=* | --host=* | --hos=* | --ho=*)
877 host_alias=$ac_optarg ;;
879 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
880 ac_prev=htmldir ;;
881 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
882 | --ht=*)
883 htmldir=$ac_optarg ;;
885 -includedir | --includedir | --includedi | --included | --include \
886 | --includ | --inclu | --incl | --inc)
887 ac_prev=includedir ;;
888 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
889 | --includ=* | --inclu=* | --incl=* | --inc=*)
890 includedir=$ac_optarg ;;
892 -infodir | --infodir | --infodi | --infod | --info | --inf)
893 ac_prev=infodir ;;
894 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
895 infodir=$ac_optarg ;;
897 -libdir | --libdir | --libdi | --libd)
898 ac_prev=libdir ;;
899 -libdir=* | --libdir=* | --libdi=* | --libd=*)
900 libdir=$ac_optarg ;;
902 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
903 | --libexe | --libex | --libe)
904 ac_prev=libexecdir ;;
905 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
906 | --libexe=* | --libex=* | --libe=*)
907 libexecdir=$ac_optarg ;;
909 -localedir | --localedir | --localedi | --localed | --locale)
910 ac_prev=localedir ;;
911 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
912 localedir=$ac_optarg ;;
914 -localstatedir | --localstatedir | --localstatedi | --localstated \
915 | --localstate | --localstat | --localsta | --localst | --locals)
916 ac_prev=localstatedir ;;
917 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
918 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
919 localstatedir=$ac_optarg ;;
921 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
922 ac_prev=mandir ;;
923 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
924 mandir=$ac_optarg ;;
926 -nfp | --nfp | --nf)
927 # Obsolete; use --without-fp.
928 with_fp=no ;;
930 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
931 | --no-cr | --no-c | -n)
932 no_create=yes ;;
934 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936 no_recursion=yes ;;
938 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
939 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
940 | --oldin | --oldi | --old | --ol | --o)
941 ac_prev=oldincludedir ;;
942 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
943 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
944 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
945 oldincludedir=$ac_optarg ;;
947 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
948 ac_prev=prefix ;;
949 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950 prefix=$ac_optarg ;;
952 -program-prefix | --program-prefix | --program-prefi | --program-pref \
953 | --program-pre | --program-pr | --program-p)
954 ac_prev=program_prefix ;;
955 -program-prefix=* | --program-prefix=* | --program-prefi=* \
956 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
957 program_prefix=$ac_optarg ;;
959 -program-suffix | --program-suffix | --program-suffi | --program-suff \
960 | --program-suf | --program-su | --program-s)
961 ac_prev=program_suffix ;;
962 -program-suffix=* | --program-suffix=* | --program-suffi=* \
963 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
964 program_suffix=$ac_optarg ;;
966 -program-transform-name | --program-transform-name \
967 | --program-transform-nam | --program-transform-na \
968 | --program-transform-n | --program-transform- \
969 | --program-transform | --program-transfor \
970 | --program-transfo | --program-transf \
971 | --program-trans | --program-tran \
972 | --progr-tra | --program-tr | --program-t)
973 ac_prev=program_transform_name ;;
974 -program-transform-name=* | --program-transform-name=* \
975 | --program-transform-nam=* | --program-transform-na=* \
976 | --program-transform-n=* | --program-transform-=* \
977 | --program-transform=* | --program-transfor=* \
978 | --program-transfo=* | --program-transf=* \
979 | --program-trans=* | --program-tran=* \
980 | --progr-tra=* | --program-tr=* | --program-t=*)
981 program_transform_name=$ac_optarg ;;
983 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
984 ac_prev=pdfdir ;;
985 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986 pdfdir=$ac_optarg ;;
988 -psdir | --psdir | --psdi | --psd | --ps)
989 ac_prev=psdir ;;
990 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991 psdir=$ac_optarg ;;
993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994 | -silent | --silent | --silen | --sile | --sil)
995 silent=yes ;;
997 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
998 ac_prev=sbindir ;;
999 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1000 | --sbi=* | --sb=*)
1001 sbindir=$ac_optarg ;;
1003 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1004 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1005 | --sharedst | --shareds | --shared | --share | --shar \
1006 | --sha | --sh)
1007 ac_prev=sharedstatedir ;;
1008 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1009 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1010 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1011 | --sha=* | --sh=*)
1012 sharedstatedir=$ac_optarg ;;
1014 -site | --site | --sit)
1015 ac_prev=site ;;
1016 -site=* | --site=* | --sit=*)
1017 site=$ac_optarg ;;
1019 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1020 ac_prev=srcdir ;;
1021 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1022 srcdir=$ac_optarg ;;
1024 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1025 | --syscon | --sysco | --sysc | --sys | --sy)
1026 ac_prev=sysconfdir ;;
1027 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1028 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1029 sysconfdir=$ac_optarg ;;
1031 -target | --target | --targe | --targ | --tar | --ta | --t)
1032 ac_prev=target_alias ;;
1033 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1034 target_alias=$ac_optarg ;;
1036 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037 verbose=yes ;;
1039 -version | --version | --versio | --versi | --vers | -V)
1040 ac_init_version=: ;;
1042 -with-* | --with-*)
1043 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1049 eval with_$ac_package=\$ac_optarg ;;
1051 -without-* | --without-*)
1052 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid package name: $ac_package" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058 eval with_$ac_package=no ;;
1060 --x)
1061 # Obsolete; use --with-x.
1062 with_x=yes ;;
1064 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065 | --x-incl | --x-inc | --x-in | --x-i)
1066 ac_prev=x_includes ;;
1067 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069 x_includes=$ac_optarg ;;
1071 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073 ac_prev=x_libraries ;;
1074 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076 x_libraries=$ac_optarg ;;
1078 -*) { echo "$as_me: error: unrecognized option: $ac_option
1079 Try \`$0 --help' for more information." >&2
1080 { (exit 1); exit 1; }; }
1083 *=*)
1084 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1087 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1088 { (exit 1); exit 1; }; }
1089 eval $ac_envvar=\$ac_optarg
1090 export $ac_envvar ;;
1093 # FIXME: should be removed in autoconf 3.0.
1094 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1100 esac
1101 done
1103 if test -n "$ac_prev"; then
1104 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105 { echo "$as_me: error: missing argument to $ac_option" >&2
1106 { (exit 1); exit 1; }; }
1109 # Be sure to have absolute directory names.
1110 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1111 datadir sysconfdir sharedstatedir localstatedir includedir \
1112 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1113 libdir localedir mandir
1115 eval ac_val=\$$ac_var
1116 case $ac_val in
1117 [\\/$]* | ?:[\\/]* ) continue;;
1118 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1119 esac
1120 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1121 { (exit 1); exit 1; }; }
1122 done
1124 # There might be people who depend on the old broken behavior: `$host'
1125 # used to hold the argument of --host etc.
1126 # FIXME: To remove some day.
1127 build=$build_alias
1128 host=$host_alias
1129 target=$target_alias
1131 # FIXME: To remove some day.
1132 if test "x$host_alias" != x; then
1133 if test "x$build_alias" = x; then
1134 cross_compiling=maybe
1135 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1136 If a cross compiler is detected then cross compile mode will be used." >&2
1137 elif test "x$build_alias" != "x$host_alias"; then
1138 cross_compiling=yes
1142 ac_tool_prefix=
1143 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1145 test "$silent" = yes && exec 6>/dev/null
1148 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1149 ac_ls_di=`ls -di .` &&
1150 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1151 { echo "$as_me: error: Working directory cannot be determined" >&2
1152 { (exit 1); exit 1; }; }
1153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1154 { echo "$as_me: error: pwd does not report name of working directory" >&2
1155 { (exit 1); exit 1; }; }
1158 # Find the source files, if location was not specified.
1159 if test -z "$srcdir"; then
1160 ac_srcdir_defaulted=yes
1161 # Try the directory containing this script, then the parent directory.
1162 ac_confdir=`$as_dirname -- "$0" ||
1163 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164 X"$0" : 'X\(//\)[^/]' \| \
1165 X"$0" : 'X\(//\)$' \| \
1166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1167 echo X"$0" |
1168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1169 s//\1/
1172 /^X\(\/\/\)[^/].*/{
1173 s//\1/
1176 /^X\(\/\/\)$/{
1177 s//\1/
1180 /^X\(\/\).*/{
1181 s//\1/
1184 s/.*/./; q'`
1185 srcdir=$ac_confdir
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 srcdir=..
1189 else
1190 ac_srcdir_defaulted=no
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1194 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1195 { (exit 1); exit 1; }; }
1197 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1198 ac_abs_confdir=`(
1199 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1200 { (exit 1); exit 1; }; }
1201 pwd)`
1202 # When building in place, set srcdir=.
1203 if test "$ac_abs_confdir" = "$ac_pwd"; then
1204 srcdir=.
1206 # Remove unnecessary trailing slashes from srcdir.
1207 # Double slashes in file names in object file debugging info
1208 # mess up M-x gdb in Emacs.
1209 case $srcdir in
1210 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1211 esac
1212 for ac_var in $ac_precious_vars; do
1213 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_env_${ac_var}_value=\$${ac_var}
1215 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1216 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1217 done
1220 # Report the --help message.
1222 if test "$ac_init_help" = "long"; then
1223 # Omit some internal or obsolete options to make the list less imposing.
1224 # This message is too long to be a string in the A/UX 3.1 sh.
1225 cat <<_ACEOF
1226 \`configure' configures GRUB 1.96 to adapt to many kinds of systems.
1228 Usage: $0 [OPTION]... [VAR=VALUE]...
1230 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1231 VAR=VALUE. See below for descriptions of some of the useful variables.
1233 Defaults for the options are specified in brackets.
1235 Configuration:
1236 -h, --help display this help and exit
1237 --help=short display options specific to this package
1238 --help=recursive display the short help of all the included packages
1239 -V, --version display version information and exit
1240 -q, --quiet, --silent do not print \`checking...' messages
1241 --cache-file=FILE cache test results in FILE [disabled]
1242 -C, --config-cache alias for \`--cache-file=config.cache'
1243 -n, --no-create do not create output files
1244 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1246 Installation directories:
1247 --prefix=PREFIX install architecture-independent files in PREFIX
1248 [$ac_default_prefix]
1249 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1250 [PREFIX]
1252 By default, \`make install' will install all the files in
1253 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1254 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1255 for instance \`--prefix=\$HOME'.
1257 For better control, use the options below.
1259 Fine tuning of the installation directories:
1260 --bindir=DIR user executables [EPREFIX/bin]
1261 --sbindir=DIR system admin executables [EPREFIX/sbin]
1262 --libexecdir=DIR program executables [EPREFIX/libexec]
1263 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1264 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1265 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1266 --libdir=DIR object code libraries [EPREFIX/lib]
1267 --includedir=DIR C header files [PREFIX/include]
1268 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1269 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1270 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1271 --infodir=DIR info documentation [DATAROOTDIR/info]
1272 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1273 --mandir=DIR man documentation [DATAROOTDIR/man]
1274 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1275 --htmldir=DIR html documentation [DOCDIR]
1276 --dvidir=DIR dvi documentation [DOCDIR]
1277 --pdfdir=DIR pdf documentation [DOCDIR]
1278 --psdir=DIR ps documentation [DOCDIR]
1279 _ACEOF
1281 cat <<\_ACEOF
1283 Program names:
1284 --program-prefix=PREFIX prepend PREFIX to installed program names
1285 --program-suffix=SUFFIX append SUFFIX to installed program names
1286 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1288 System types:
1289 --build=BUILD configure for building on BUILD [guessed]
1290 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1291 --target=TARGET configure for building compilers for TARGET [HOST]
1292 _ACEOF
1295 if test -n "$ac_init_help"; then
1296 case $ac_init_help in
1297 short | recursive ) echo "Configuration of GRUB 1.96:";;
1298 esac
1299 cat <<\_ACEOF
1301 Optional Features:
1302 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1303 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1304 --disable-largefile omit support for large files
1305 --enable-lzo use lzo to compress kernel (default is lzma)
1306 --enable-mm-debug include memory manager debugging
1307 --enable-grub-emu build and install the `grub-emu' debugging utility
1308 --enable-grub-emu-usb build and install the `grub-emu' debugging utility
1309 with USB support
1310 --enable-grub-fstest build and install the `grub-fstest' debugging
1311 utility
1312 --enable-grub-pe2elf build and install the `grub-pe2elf' conversion
1313 utility
1314 --enable-grub-mkfont build and install the `grub-mkfont' utility
1316 Optional Packages:
1317 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1318 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1319 --with-platform=PLATFORM
1320 select the host platform [guessed]
1322 Some influential environment variables:
1323 CC C compiler command
1324 CFLAGS C compiler flags
1325 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1326 nonstandard directory <lib dir>
1327 LIBS libraries to pass to the linker, e.g. -l<library>
1328 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1329 you have headers in a nonstandard directory <include dir>
1330 CPP C preprocessor
1332 Use these variables to override the choices made by `configure' or to help
1333 it to find libraries and programs with nonstandard names/locations.
1335 Report bugs to <bug-grub@gnu.org>.
1336 _ACEOF
1337 ac_status=$?
1340 if test "$ac_init_help" = "recursive"; then
1341 # If there are subdirs, report their specific --help.
1342 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1343 test -d "$ac_dir" || continue
1344 ac_builddir=.
1346 case "$ac_dir" in
1347 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1349 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1350 # A ".." for each directory in $ac_dir_suffix.
1351 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1352 case $ac_top_builddir_sub in
1353 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1354 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1355 esac ;;
1356 esac
1357 ac_abs_top_builddir=$ac_pwd
1358 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1359 # for backward compatibility:
1360 ac_top_builddir=$ac_top_build_prefix
1362 case $srcdir in
1363 .) # We are building in place.
1364 ac_srcdir=.
1365 ac_top_srcdir=$ac_top_builddir_sub
1366 ac_abs_top_srcdir=$ac_pwd ;;
1367 [\\/]* | ?:[\\/]* ) # Absolute name.
1368 ac_srcdir=$srcdir$ac_dir_suffix;
1369 ac_top_srcdir=$srcdir
1370 ac_abs_top_srcdir=$srcdir ;;
1371 *) # Relative name.
1372 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1373 ac_top_srcdir=$ac_top_build_prefix$srcdir
1374 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1375 esac
1376 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1378 cd "$ac_dir" || { ac_status=$?; continue; }
1379 # Check for guested configure.
1380 if test -f "$ac_srcdir/configure.gnu"; then
1381 echo &&
1382 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1383 elif test -f "$ac_srcdir/configure"; then
1384 echo &&
1385 $SHELL "$ac_srcdir/configure" --help=recursive
1386 else
1387 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1388 fi || ac_status=$?
1389 cd "$ac_pwd" || { ac_status=$?; break; }
1390 done
1393 test -n "$ac_init_help" && exit $ac_status
1394 if $ac_init_version; then
1395 cat <<\_ACEOF
1396 GRUB configure 1.96
1397 generated by GNU Autoconf 2.61
1399 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1400 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1401 This configure script is free software; the Free Software Foundation
1402 gives unlimited permission to copy, distribute and modify it.
1403 _ACEOF
1404 exit
1406 cat >config.log <<_ACEOF
1407 This file contains any messages produced by compilers while
1408 running configure, to aid debugging if configure makes a mistake.
1410 It was created by GRUB $as_me 1.96, which was
1411 generated by GNU Autoconf 2.61. Invocation command line was
1413 $ $0 $@
1415 _ACEOF
1416 exec 5>>config.log
1418 cat <<_ASUNAME
1419 ## --------- ##
1420 ## Platform. ##
1421 ## --------- ##
1423 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1424 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1425 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1426 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1427 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1429 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1430 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1432 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1433 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1434 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1435 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1436 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1437 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1438 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1440 _ASUNAME
1442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1443 for as_dir in $PATH
1445 IFS=$as_save_IFS
1446 test -z "$as_dir" && as_dir=.
1447 echo "PATH: $as_dir"
1448 done
1449 IFS=$as_save_IFS
1451 } >&5
1453 cat >&5 <<_ACEOF
1456 ## ----------- ##
1457 ## Core tests. ##
1458 ## ----------- ##
1460 _ACEOF
1463 # Keep a trace of the command line.
1464 # Strip out --no-create and --no-recursion so they do not pile up.
1465 # Strip out --silent because we don't want to record it for future runs.
1466 # Also quote any args containing shell meta-characters.
1467 # Make two passes to allow for proper duplicate-argument suppression.
1468 ac_configure_args=
1469 ac_configure_args0=
1470 ac_configure_args1=
1471 ac_must_keep_next=false
1472 for ac_pass in 1 2
1474 for ac_arg
1476 case $ac_arg in
1477 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1479 | -silent | --silent | --silen | --sile | --sil)
1480 continue ;;
1481 *\'*)
1482 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 esac
1484 case $ac_pass in
1485 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1487 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1488 if test $ac_must_keep_next = true; then
1489 ac_must_keep_next=false # Got value, back to normal.
1490 else
1491 case $ac_arg in
1492 *=* | --config-cache | -C | -disable-* | --disable-* \
1493 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1494 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1495 | -with-* | --with-* | -without-* | --without-* | --x)
1496 case "$ac_configure_args0 " in
1497 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1498 esac
1500 -* ) ac_must_keep_next=true ;;
1501 esac
1503 ac_configure_args="$ac_configure_args '$ac_arg'"
1505 esac
1506 done
1507 done
1508 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1509 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1511 # When interrupted or exit'd, cleanup temporary files, and complete
1512 # config.log. We remove comments because anyway the quotes in there
1513 # would cause problems or look ugly.
1514 # WARNING: Use '\'' to represent an apostrophe within the trap.
1515 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1516 trap 'exit_status=$?
1517 # Save into config.log some information that might help in debugging.
1519 echo
1521 cat <<\_ASBOX
1522 ## ---------------- ##
1523 ## Cache variables. ##
1524 ## ---------------- ##
1525 _ASBOX
1526 echo
1527 # The following way of writing the cache mishandles newlines in values,
1529 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1530 eval ac_val=\$$ac_var
1531 case $ac_val in #(
1532 *${as_nl}*)
1533 case $ac_var in #(
1534 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1535 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1536 esac
1537 case $ac_var in #(
1538 _ | IFS | as_nl) ;; #(
1539 *) $as_unset $ac_var ;;
1540 esac ;;
1541 esac
1542 done
1543 (set) 2>&1 |
1544 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1545 *${as_nl}ac_space=\ *)
1546 sed -n \
1547 "s/'\''/'\''\\\\'\'''\''/g;
1548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1549 ;; #(
1551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1553 esac |
1554 sort
1556 echo
1558 cat <<\_ASBOX
1559 ## ----------------- ##
1560 ## Output variables. ##
1561 ## ----------------- ##
1562 _ASBOX
1563 echo
1564 for ac_var in $ac_subst_vars
1566 eval ac_val=\$$ac_var
1567 case $ac_val in
1568 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1569 esac
1570 echo "$ac_var='\''$ac_val'\''"
1571 done | sort
1572 echo
1574 if test -n "$ac_subst_files"; then
1575 cat <<\_ASBOX
1576 ## ------------------- ##
1577 ## File substitutions. ##
1578 ## ------------------- ##
1579 _ASBOX
1580 echo
1581 for ac_var in $ac_subst_files
1583 eval ac_val=\$$ac_var
1584 case $ac_val in
1585 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1586 esac
1587 echo "$ac_var='\''$ac_val'\''"
1588 done | sort
1589 echo
1592 if test -s confdefs.h; then
1593 cat <<\_ASBOX
1594 ## ----------- ##
1595 ## confdefs.h. ##
1596 ## ----------- ##
1597 _ASBOX
1598 echo
1599 cat confdefs.h
1600 echo
1602 test "$ac_signal" != 0 &&
1603 echo "$as_me: caught signal $ac_signal"
1604 echo "$as_me: exit $exit_status"
1605 } >&5
1606 rm -f core *.core core.conftest.* &&
1607 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1608 exit $exit_status
1610 for ac_signal in 1 2 13 15; do
1611 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1612 done
1613 ac_signal=0
1615 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1616 rm -f -r conftest* confdefs.h
1618 # Predefined preprocessor variables.
1620 cat >>confdefs.h <<_ACEOF
1621 #define PACKAGE_NAME "$PACKAGE_NAME"
1622 _ACEOF
1625 cat >>confdefs.h <<_ACEOF
1626 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1627 _ACEOF
1630 cat >>confdefs.h <<_ACEOF
1631 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1632 _ACEOF
1635 cat >>confdefs.h <<_ACEOF
1636 #define PACKAGE_STRING "$PACKAGE_STRING"
1637 _ACEOF
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1642 _ACEOF
1645 # Let the site file select an alternate cache file if it wants to.
1646 # Prefer explicitly selected file to automatically selected ones.
1647 if test -n "$CONFIG_SITE"; then
1648 set x "$CONFIG_SITE"
1649 elif test "x$prefix" != xNONE; then
1650 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1651 else
1652 set x "$ac_default_prefix/share/config.site" \
1653 "$ac_default_prefix/etc/config.site"
1655 shift
1656 for ac_site_file
1658 if test -r "$ac_site_file"; then
1659 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1660 echo "$as_me: loading site script $ac_site_file" >&6;}
1661 sed 's/^/| /' "$ac_site_file" >&5
1662 . "$ac_site_file"
1664 done
1666 if test -r "$cache_file"; then
1667 # Some versions of bash will fail to source /dev/null (special
1668 # files actually), so we avoid doing that.
1669 if test -f "$cache_file"; then
1670 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1671 echo "$as_me: loading cache $cache_file" >&6;}
1672 case $cache_file in
1673 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1674 *) . "./$cache_file";;
1675 esac
1677 else
1678 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1679 echo "$as_me: creating cache $cache_file" >&6;}
1680 >$cache_file
1683 # Check that the precious variables saved in the cache have kept the same
1684 # value.
1685 ac_cache_corrupted=false
1686 for ac_var in $ac_precious_vars; do
1687 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1688 eval ac_new_set=\$ac_env_${ac_var}_set
1689 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1690 eval ac_new_val=\$ac_env_${ac_var}_value
1691 case $ac_old_set,$ac_new_set in
1692 set,)
1693 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1694 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1695 ac_cache_corrupted=: ;;
1696 ,set)
1697 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1698 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1699 ac_cache_corrupted=: ;;
1700 ,);;
1702 if test "x$ac_old_val" != "x$ac_new_val"; then
1703 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1704 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1705 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1706 echo "$as_me: former value: $ac_old_val" >&2;}
1707 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1708 echo "$as_me: current value: $ac_new_val" >&2;}
1709 ac_cache_corrupted=:
1710 fi;;
1711 esac
1712 # Pass precious variables to config.status.
1713 if test "$ac_new_set" = set; then
1714 case $ac_new_val in
1715 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1716 *) ac_arg=$ac_var=$ac_new_val ;;
1717 esac
1718 case " $ac_configure_args " in
1719 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1720 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1721 esac
1723 done
1724 if $ac_cache_corrupted; then
1725 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1726 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1727 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1728 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1729 { (exit 1); exit 1; }; }
1756 ac_ext=c
1757 ac_cpp='$CPP $CPPFLAGS'
1758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1765 ac_config_headers="$ac_config_headers config.h"
1768 # Checks for host and target systems.
1769 ac_aux_dir=
1770 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1771 if test -f "$ac_dir/install-sh"; then
1772 ac_aux_dir=$ac_dir
1773 ac_install_sh="$ac_aux_dir/install-sh -c"
1774 break
1775 elif test -f "$ac_dir/install.sh"; then
1776 ac_aux_dir=$ac_dir
1777 ac_install_sh="$ac_aux_dir/install.sh -c"
1778 break
1779 elif test -f "$ac_dir/shtool"; then
1780 ac_aux_dir=$ac_dir
1781 ac_install_sh="$ac_aux_dir/shtool install -c"
1782 break
1784 done
1785 if test -z "$ac_aux_dir"; then
1786 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1787 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1788 { (exit 1); exit 1; }; }
1791 # These three variables are undocumented and unsupported,
1792 # and are intended to be withdrawn in a future Autoconf release.
1793 # They can cause serious problems if a builder's source tree is in a directory
1794 # whose full name contains unusual characters.
1795 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1796 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1797 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1800 # Make sure we can run config.sub.
1801 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1802 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1803 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1804 { (exit 1); exit 1; }; }
1806 { echo "$as_me:$LINENO: checking build system type" >&5
1807 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1808 if test "${ac_cv_build+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811 ac_build_alias=$build_alias
1812 test "x$ac_build_alias" = x &&
1813 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1814 test "x$ac_build_alias" = x &&
1815 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1816 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1817 { (exit 1); exit 1; }; }
1818 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1819 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1820 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1821 { (exit 1); exit 1; }; }
1824 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1825 echo "${ECHO_T}$ac_cv_build" >&6; }
1826 case $ac_cv_build in
1827 *-*-*) ;;
1828 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1829 echo "$as_me: error: invalid value of canonical build" >&2;}
1830 { (exit 1); exit 1; }; };;
1831 esac
1832 build=$ac_cv_build
1833 ac_save_IFS=$IFS; IFS='-'
1834 set x $ac_cv_build
1835 shift
1836 build_cpu=$1
1837 build_vendor=$2
1838 shift; shift
1839 # Remember, the first character of IFS is used to create $*,
1840 # except with old shells:
1841 build_os=$*
1842 IFS=$ac_save_IFS
1843 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1846 { echo "$as_me:$LINENO: checking host system type" >&5
1847 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1848 if test "${ac_cv_host+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851 if test "x$host_alias" = x; then
1852 ac_cv_host=$ac_cv_build
1853 else
1854 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1855 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1856 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1857 { (exit 1); exit 1; }; }
1861 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1862 echo "${ECHO_T}$ac_cv_host" >&6; }
1863 case $ac_cv_host in
1864 *-*-*) ;;
1865 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1866 echo "$as_me: error: invalid value of canonical host" >&2;}
1867 { (exit 1); exit 1; }; };;
1868 esac
1869 host=$ac_cv_host
1870 ac_save_IFS=$IFS; IFS='-'
1871 set x $ac_cv_host
1872 shift
1873 host_cpu=$1
1874 host_vendor=$2
1875 shift; shift
1876 # Remember, the first character of IFS is used to create $*,
1877 # except with old shells:
1878 host_os=$*
1879 IFS=$ac_save_IFS
1880 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1883 { echo "$as_me:$LINENO: checking target system type" >&5
1884 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1885 if test "${ac_cv_target+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 if test "x$target_alias" = x; then
1889 ac_cv_target=$ac_cv_host
1890 else
1891 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1892 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1893 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1894 { (exit 1); exit 1; }; }
1898 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1899 echo "${ECHO_T}$ac_cv_target" >&6; }
1900 case $ac_cv_target in
1901 *-*-*) ;;
1902 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1903 echo "$as_me: error: invalid value of canonical target" >&2;}
1904 { (exit 1); exit 1; }; };;
1905 esac
1906 target=$ac_cv_target
1907 ac_save_IFS=$IFS; IFS='-'
1908 set x $ac_cv_target
1909 shift
1910 target_cpu=$1
1911 target_vendor=$2
1912 shift; shift
1913 # Remember, the first character of IFS is used to create $*,
1914 # except with old shells:
1915 target_os=$*
1916 IFS=$ac_save_IFS
1917 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1920 # The aliases save the names the user supplied, while $host etc.
1921 # will get canonicalized.
1922 test -n "$target_alias" &&
1923 test "$program_prefix$program_suffix$program_transform_name" = \
1924 NONENONEs,x,x, &&
1925 program_prefix=${target_alias}-
1927 # Program name transformations
1928 test "$program_prefix" != NONE &&
1929 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1930 # Use a double $ so make ignores it.
1931 test "$program_suffix" != NONE &&
1932 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1933 # Double any \ or $. echo might interpret backslashes.
1934 # By default was `s,x,x', remove it if useless.
1935 cat <<\_ACEOF >conftest.sed
1936 s/[\\$]/&&/g;s/;s,x,x,$//
1937 _ACEOF
1938 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1939 rm -f conftest.sed
1942 case "$host_cpu" in
1943 powerpc64) host_m32=1 ;;
1944 esac
1946 case "$target_cpu" in
1947 i[3456]86) target_cpu=i386 ;;
1948 esac
1950 # Specify the platform (such as firmware).
1952 # Check whether --with-platform was given.
1953 if test "${with_platform+set}" = set; then
1954 withval=$with_platform;
1958 # Guess the platform if not specified.
1959 if test "x$with_platform" = x; then
1960 case "$target_cpu"-"$target_vendor" in
1961 i386-apple) platform=efi ;;
1962 i386-*) platform=pc ;;
1963 x86_64-apple) platform=efi ;;
1964 x86_64-*) platform=pc ;;
1965 powerpc-*) platform=ieee1275 ;;
1966 powerpc64-*) platform=ieee1275 ;;
1967 sparc64-*) platform=ieee1275 ;;
1968 *) { { echo "$as_me:$LINENO: error: unsupported CPU: \"$target_cpu\"" >&5
1969 echo "$as_me: error: unsupported CPU: \"$target_cpu\"" >&2;}
1970 { (exit 1); exit 1; }; } ;;
1971 esac
1972 else
1973 platform="$with_platform"
1976 # Adjust CPU unless target was explicitly specified.
1977 if test -z "$target_alias"; then
1978 case "$target_cpu"-"$platform" in
1979 x86_64-efi) ;;
1980 x86_64-*) target_cpu=i386 ;;
1981 powerpc64-ieee1275) target_cpu=powerpc ;;
1982 esac
1985 # Check if the platform is supported, make final adjustments.
1986 case "$target_cpu"-"$platform" in
1987 i386-efi) ;;
1988 x86_64-efi) ;;
1989 i386-pc) ;;
1990 i386-coreboot) ;;
1991 i386-linuxbios) platform=coreboot ;;
1992 i386-ieee1275) ;;
1993 powerpc-ieee1275) ;;
1994 sparc64-ieee1275) ;;
1995 *) { { echo "$as_me:$LINENO: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&5
1996 echo "$as_me: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&2;}
1997 { (exit 1); exit 1; }; } ;;
1998 esac
2000 case "$target_cpu" in
2001 i386 | powerpc) target_m32=1 ;;
2002 x86_64 | sparc64) target_m64=1 ;;
2003 esac
2005 case "$host_os" in
2006 mingw32) host_os=cygwin ;;
2007 esac
2009 # This normalizes the names, and creates a new variable ("host_kernel")
2010 # while at it, since the mapping is not always 1:1 (e.g. different OSes
2011 # using the same kernel type).
2012 case "$host_os" in
2013 gnu*) host_kernel=hurd ;;
2014 linux*) host_kernel=linux ;;
2015 freebsd* | kfreebsd*-gnu) host_kernel=freebsd ;;
2016 cygwin) host_kernel=windows ;;
2017 esac
2027 # Checks for build programs.
2030 # Although cmp is listed in the GNU Coding Standards as a command which
2031 # can used directly, OpenBSD lacks cmp in the default installation.
2032 for ac_prog in cmp
2034 # Extract the first word of "$ac_prog", so it can be a program name with args.
2035 set dummy $ac_prog; ac_word=$2
2036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038 if test "${ac_cv_prog_CMP+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 if test -n "$CMP"; then
2042 ac_cv_prog_CMP="$CMP" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051 ac_cv_prog_CMP="$ac_prog"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2055 done
2056 done
2057 IFS=$as_save_IFS
2061 CMP=$ac_cv_prog_CMP
2062 if test -n "$CMP"; then
2063 { echo "$as_me:$LINENO: result: $CMP" >&5
2064 echo "${ECHO_T}$CMP" >&6; }
2065 else
2066 { echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6; }
2071 test -n "$CMP" && break
2072 done
2074 if test "x$CMP" = x; then
2075 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
2076 echo "$as_me: error: cmp is not found" >&2;}
2077 { (exit 1); exit 1; }; }
2080 for ac_prog in bison
2082 # Extract the first word of "$ac_prog", so it can be a program name with args.
2083 set dummy $ac_prog; ac_word=$2
2084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2086 if test "${ac_cv_prog_YACC+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089 if test -n "$YACC"; then
2090 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2091 else
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2095 IFS=$as_save_IFS
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2099 ac_cv_prog_YACC="$ac_prog"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 break 2
2103 done
2104 done
2105 IFS=$as_save_IFS
2109 YACC=$ac_cv_prog_YACC
2110 if test -n "$YACC"; then
2111 { echo "$as_me:$LINENO: result: $YACC" >&5
2112 echo "${ECHO_T}$YACC" >&6; }
2113 else
2114 { echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6; }
2119 test -n "$YACC" && break
2120 done
2122 if test "x$YACC" = x; then
2123 { { echo "$as_me:$LINENO: error: bison is not found" >&5
2124 echo "$as_me: error: bison is not found" >&2;}
2125 { (exit 1); exit 1; }; }
2128 for file in /usr/src/unifont.bdf ; do
2129 if test -e $file ; then
2130 UNIFONT_BDF=$file
2132 break
2134 done
2136 # Find a good install program. We prefer a C program (faster),
2137 # so one script is as good as another. But avoid the broken or
2138 # incompatible versions:
2139 # SysV /etc/install, /usr/sbin/install
2140 # SunOS /usr/etc/install
2141 # IRIX /sbin/install
2142 # AIX /bin/install
2143 # AmigaOS /C/install, which installs bootblocks on floppy discs
2144 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2145 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2146 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2147 # OS/2's system install, which has a completely different semantic
2148 # ./install, which can be erroneously created by make from ./install.sh.
2149 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2150 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2151 if test -z "$INSTALL"; then
2152 if test "${ac_cv_path_install+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2158 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=.
2160 # Account for people who put trailing slashes in PATH elements.
2161 case $as_dir/ in
2162 ./ | .// | /cC/* | \
2163 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2164 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2165 /usr/ucb/* ) ;;
2167 # OSF1 and SCO ODT 3.0 have their own names for install.
2168 # Don't use installbsd from OSF since it installs stuff as root
2169 # by default.
2170 for ac_prog in ginstall scoinst install; do
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2173 if test $ac_prog = install &&
2174 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2175 # AIX install. It has an incompatible calling convention.
2177 elif test $ac_prog = install &&
2178 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2179 # program-specific install script used by HP pwplus--don't use.
2181 else
2182 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2183 break 3
2186 done
2187 done
2189 esac
2190 done
2191 IFS=$as_save_IFS
2195 if test "${ac_cv_path_install+set}" = set; then
2196 INSTALL=$ac_cv_path_install
2197 else
2198 # As a last resort, use the slow shell script. Don't cache a
2199 # value for INSTALL within a source directory, because that will
2200 # break other packages using the cache if that directory is
2201 # removed, or if the value is a relative name.
2202 INSTALL=$ac_install_sh
2205 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2206 echo "${ECHO_T}$INSTALL" >&6; }
2208 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2209 # It thinks the first close brace ends the variable substitution.
2210 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2212 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2214 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2216 for ac_prog in gawk mawk nawk awk
2218 # Extract the first word of "$ac_prog", so it can be a program name with args.
2219 set dummy $ac_prog; ac_word=$2
2220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2222 if test "${ac_cv_prog_AWK+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 if test -n "$AWK"; then
2226 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2235 ac_cv_prog_AWK="$ac_prog"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 break 2
2239 done
2240 done
2241 IFS=$as_save_IFS
2245 AWK=$ac_cv_prog_AWK
2246 if test -n "$AWK"; then
2247 { echo "$as_me:$LINENO: result: $AWK" >&5
2248 echo "${ECHO_T}$AWK" >&6; }
2249 else
2250 { echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6; }
2255 test -n "$AWK" && break
2256 done
2258 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2259 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2260 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2261 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 cat >conftest.make <<\_ACEOF
2265 SHELL = /bin/sh
2266 all:
2267 @echo '@@@%%%=$(MAKE)=@@@%%%'
2268 _ACEOF
2269 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2270 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2271 *@@@%%%=?*=@@@%%%*)
2272 eval ac_cv_prog_make_${ac_make}_set=yes;;
2274 eval ac_cv_prog_make_${ac_make}_set=no;;
2275 esac
2276 rm -f conftest.make
2278 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2279 { echo "$as_me:$LINENO: result: yes" >&5
2280 echo "${ECHO_T}yes" >&6; }
2281 SET_MAKE=
2282 else
2283 { echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6; }
2285 SET_MAKE="MAKE=${MAKE-make}"
2289 # These are not a "must".
2290 # Extract the first word of "ruby", so it can be a program name with args.
2291 set dummy ruby; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_path_RUBY+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 case $RUBY in
2298 [\\/]* | ?:[\\/]*)
2299 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 break 2
2313 done
2314 done
2315 IFS=$as_save_IFS
2318 esac
2320 RUBY=$ac_cv_path_RUBY
2321 if test -n "$RUBY"; then
2322 { echo "$as_me:$LINENO: result: $RUBY" >&5
2323 echo "${ECHO_T}$RUBY" >&6; }
2324 else
2325 { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2330 # Extract the first word of "help2man", so it can be a program name with args.
2331 set dummy help2man; ac_word=$2
2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334 if test "${ac_cv_path_HELP2MAN+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 case $HELP2MAN in
2338 [\\/]* | ?:[\\/]*)
2339 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2353 done
2354 done
2355 IFS=$as_save_IFS
2358 esac
2360 HELP2MAN=$ac_cv_path_HELP2MAN
2361 if test -n "$HELP2MAN"; then
2362 { echo "$as_me:$LINENO: result: $HELP2MAN" >&5
2363 echo "${ECHO_T}$HELP2MAN" >&6; }
2364 else
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2372 # Checks for host programs.
2375 ac_ext=c
2376 ac_cpp='$CPP $CPPFLAGS'
2377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2380 if test -n "$ac_tool_prefix"; then
2381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2382 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_CC+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388 if test -n "$CC"; then
2389 ac_cv_prog_CC="$CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 break 2
2402 done
2403 done
2404 IFS=$as_save_IFS
2408 CC=$ac_cv_prog_CC
2409 if test -n "$CC"; then
2410 { echo "$as_me:$LINENO: result: $CC" >&5
2411 echo "${ECHO_T}$CC" >&6; }
2412 else
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2419 if test -z "$ac_cv_prog_CC"; then
2420 ac_ct_CC=$CC
2421 # Extract the first word of "gcc", so it can be a program name with args.
2422 set dummy gcc; ac_word=$2
2423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428 if test -n "$ac_ct_CC"; then
2429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2430 else
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2434 IFS=$as_save_IFS
2435 test -z "$as_dir" && as_dir=.
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438 ac_cv_prog_ac_ct_CC="gcc"
2439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 break 2
2442 done
2443 done
2444 IFS=$as_save_IFS
2448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2449 if test -n "$ac_ct_CC"; then
2450 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2451 echo "${ECHO_T}$ac_ct_CC" >&6; }
2452 else
2453 { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2457 if test "x$ac_ct_CC" = x; then
2458 CC=""
2459 else
2460 case $cross_compiling:$ac_tool_warned in
2461 yes:)
2462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2463 whose name does not start with the host triplet. If you think this
2464 configuration is useful to you, please write to autoconf@gnu.org." >&5
2465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2466 whose name does not start with the host triplet. If you think this
2467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2468 ac_tool_warned=yes ;;
2469 esac
2470 CC=$ac_ct_CC
2472 else
2473 CC="$ac_cv_prog_CC"
2476 if test -z "$CC"; then
2477 if test -n "$ac_tool_prefix"; then
2478 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2479 set dummy ${ac_tool_prefix}cc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_CC="${ac_tool_prefix}cc"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2499 done
2500 done
2501 IFS=$as_save_IFS
2505 CC=$ac_cv_prog_CC
2506 if test -n "$CC"; then
2507 { echo "$as_me:$LINENO: result: $CC" >&5
2508 echo "${ECHO_T}$CC" >&6; }
2509 else
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2517 if test -z "$CC"; then
2518 # Extract the first word of "cc", so it can be a program name with args.
2519 set dummy cc; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_CC+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2527 else
2528 ac_prog_rejected=no
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2537 ac_prog_rejected=yes
2538 continue
2540 ac_cv_prog_CC="cc"
2541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 break 2
2544 done
2545 done
2546 IFS=$as_save_IFS
2548 if test $ac_prog_rejected = yes; then
2549 # We found a bogon in the path, so make sure we never use it.
2550 set dummy $ac_cv_prog_CC
2551 shift
2552 if test $# != 0; then
2553 # We chose a different compiler from the bogus one.
2554 # However, it has the same basename, so the bogon will be chosen
2555 # first if we set CC to just the basename; use the full file name.
2556 shift
2557 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2562 CC=$ac_cv_prog_CC
2563 if test -n "$CC"; then
2564 { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2566 else
2567 { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2573 if test -z "$CC"; then
2574 if test -n "$ac_tool_prefix"; then
2575 for ac_prog in cl.exe
2577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2598 done
2599 done
2600 IFS=$as_save_IFS
2604 CC=$ac_cv_prog_CC
2605 if test -n "$CC"; then
2606 { echo "$as_me:$LINENO: result: $CC" >&5
2607 echo "${ECHO_T}$CC" >&6; }
2608 else
2609 { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2614 test -n "$CC" && break
2615 done
2617 if test -z "$CC"; then
2618 ac_ct_CC=$CC
2619 for ac_prog in cl.exe
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy $ac_prog; ac_word=$2
2623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628 if test -n "$ac_ct_CC"; then
2629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_ac_ct_CC="$ac_prog"
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2642 done
2643 done
2644 IFS=$as_save_IFS
2648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2649 if test -n "$ac_ct_CC"; then
2650 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2651 echo "${ECHO_T}$ac_ct_CC" >&6; }
2652 else
2653 { echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6; }
2658 test -n "$ac_ct_CC" && break
2659 done
2661 if test "x$ac_ct_CC" = x; then
2662 CC=""
2663 else
2664 case $cross_compiling:$ac_tool_warned in
2665 yes:)
2666 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2667 whose name does not start with the host triplet. If you think this
2668 configuration is useful to you, please write to autoconf@gnu.org." >&5
2669 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2670 whose name does not start with the host triplet. If you think this
2671 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2672 ac_tool_warned=yes ;;
2673 esac
2674 CC=$ac_ct_CC
2681 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2682 See \`config.log' for more details." >&5
2683 echo "$as_me: error: no acceptable C compiler found in \$PATH
2684 See \`config.log' for more details." >&2;}
2685 { (exit 1); exit 1; }; }
2687 # Provide some information about the compiler.
2688 echo "$as_me:$LINENO: checking for C compiler version" >&5
2689 ac_compiler=`set X $ac_compile; echo $2`
2690 { (ac_try="$ac_compiler --version >&5"
2691 case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694 esac
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_compiler --version >&5") 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }
2700 { (ac_try="$ac_compiler -v >&5"
2701 case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704 esac
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compiler -v >&5") 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (ac_try="$ac_compiler -V >&5"
2711 case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compiler -V >&5") 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2721 cat >conftest.$ac_ext <<_ACEOF
2722 /* confdefs.h. */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2729 main ()
2733 return 0;
2735 _ACEOF
2736 ac_clean_files_save=$ac_clean_files
2737 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2738 # Try to create an executable without -o first, disregard a.out.
2739 # It will help us diagnose broken compilers, and finding out an intuition
2740 # of exeext.
2741 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2742 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2743 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2745 # List of possible output files, starting from the most likely.
2746 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2747 # only as a last resort. b.out is created by i960 compilers.
2748 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2750 # The IRIX 6 linker writes into existing files which may not be
2751 # executable, retaining their permissions. Remove them first so a
2752 # subsequent execution test works.
2753 ac_rmfiles=
2754 for ac_file in $ac_files
2756 case $ac_file in
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2758 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2759 esac
2760 done
2761 rm -f $ac_rmfiles
2763 if { (ac_try="$ac_link_default"
2764 case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767 esac
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_link_default") 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; then
2773 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2774 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2775 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2776 # so that the user can short-circuit this test for compilers unknown to
2777 # Autoconf.
2778 for ac_file in $ac_files ''
2780 test -f "$ac_file" || continue
2781 case $ac_file in
2782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2784 [ab].out )
2785 # We found the default executable, but exeext='' is most
2786 # certainly right.
2787 break;;
2788 *.* )
2789 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2790 then :; else
2791 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2793 # We set ac_cv_exeext here because the later test for it is not
2794 # safe: cross compilers may not add the suffix if given an `-o'
2795 # argument, so we may need to know it at that point already.
2796 # Even if this section looks crufty: it has the advantage of
2797 # actually working.
2798 break;;
2800 break;;
2801 esac
2802 done
2803 test "$ac_cv_exeext" = no && ac_cv_exeext=
2805 else
2806 ac_file=''
2809 { echo "$as_me:$LINENO: result: $ac_file" >&5
2810 echo "${ECHO_T}$ac_file" >&6; }
2811 if test -z "$ac_file"; then
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2815 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2816 See \`config.log' for more details." >&5
2817 echo "$as_me: error: C compiler cannot create executables
2818 See \`config.log' for more details." >&2;}
2819 { (exit 77); exit 77; }; }
2822 ac_exeext=$ac_cv_exeext
2824 # Check that the compiler produces executables we can run. If not, either
2825 # the compiler is broken, or we cross compile.
2826 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2827 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2828 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2829 # If not cross compiling, check that we can run a simple program.
2830 if test "$cross_compiling" != yes; then
2831 if { ac_try='./$ac_file'
2832 { (case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_try") 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 cross_compiling=no
2842 else
2843 if test "$cross_compiling" = maybe; then
2844 cross_compiling=yes
2845 else
2846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2847 If you meant to cross compile, use \`--host'.
2848 See \`config.log' for more details." >&5
2849 echo "$as_me: error: cannot run C compiled programs.
2850 If you meant to cross compile, use \`--host'.
2851 See \`config.log' for more details." >&2;}
2852 { (exit 1); exit 1; }; }
2856 { echo "$as_me:$LINENO: result: yes" >&5
2857 echo "${ECHO_T}yes" >&6; }
2859 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2860 ac_clean_files=$ac_clean_files_save
2861 # Check that the compiler produces executables we can run. If not, either
2862 # the compiler is broken, or we cross compile.
2863 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2864 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2865 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2866 echo "${ECHO_T}$cross_compiling" >&6; }
2868 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2869 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2870 if { (ac_try="$ac_link"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_link") 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
2880 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2881 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2882 # work properly (i.e., refer to `conftest.exe'), while it won't with
2883 # `rm'.
2884 for ac_file in conftest.exe conftest conftest.*; do
2885 test -f "$ac_file" || continue
2886 case $ac_file in
2887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2888 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2889 break;;
2890 * ) break;;
2891 esac
2892 done
2893 else
2894 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2897 See \`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
2901 rm -f conftest$ac_cv_exeext
2902 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2903 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2905 rm -f conftest.$ac_ext
2906 EXEEXT=$ac_cv_exeext
2907 ac_exeext=$EXEEXT
2908 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2909 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2910 if test "${ac_cv_objext+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913 cat >conftest.$ac_ext <<_ACEOF
2914 /* confdefs.h. */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2921 main ()
2925 return 0;
2927 _ACEOF
2928 rm -f conftest.o conftest.obj
2929 if { (ac_try="$ac_compile"
2930 case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; then
2939 for ac_file in conftest.o conftest.obj conftest.*; do
2940 test -f "$ac_file" || continue;
2941 case $ac_file in
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2944 break;;
2945 esac
2946 done
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2954 See \`config.log' for more details." >&2;}
2955 { (exit 1); exit 1; }; }
2958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2960 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2961 echo "${ECHO_T}$ac_cv_objext" >&6; }
2962 OBJEXT=$ac_cv_objext
2963 ac_objext=$OBJEXT
2964 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2965 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 cat >conftest.$ac_ext <<_ACEOF
2970 /* confdefs.h. */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2977 main ()
2979 #ifndef __GNUC__
2980 choke me
2981 #endif
2984 return 0;
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (ac_try="$ac_compile"
2989 case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compile") 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } && {
3001 test -z "$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3003 } && test -s conftest.$ac_objext; then
3004 ac_compiler_gnu=yes
3005 else
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 ac_compiler_gnu=no
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3016 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3017 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3018 GCC=`test $ac_compiler_gnu = yes && echo yes`
3019 ac_test_CFLAGS=${CFLAGS+set}
3020 ac_save_CFLAGS=$CFLAGS
3021 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3022 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_cc_g+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 ac_save_c_werror_flag=$ac_c_werror_flag
3027 ac_c_werror_flag=yes
3028 ac_cv_prog_cc_g=no
3029 CFLAGS="-g"
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3038 main ()
3042 return 0;
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3047 case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>conftest.er1
3053 ac_status=$?
3054 grep -v '^ *+' conftest.er1 >conftest.err
3055 rm -f conftest.er1
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } && {
3059 test -z "$ac_c_werror_flag" ||
3060 test ! -s conftest.err
3061 } && test -s conftest.$ac_objext; then
3062 ac_cv_prog_cc_g=yes
3063 else
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3067 CFLAGS=""
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3076 main ()
3080 return 0;
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 ac_c_werror_flag=$ac_save_c_werror_flag
3106 CFLAGS="-g"
3107 cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h. */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3115 main ()
3119 return 0;
3121 _ACEOF
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } && {
3136 test -z "$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3138 } && test -s conftest.$ac_objext; then
3139 ac_cv_prog_cc_g=yes
3140 else
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 ac_c_werror_flag=$ac_save_c_werror_flag
3156 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3157 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3158 if test "$ac_test_CFLAGS" = set; then
3159 CFLAGS=$ac_save_CFLAGS
3160 elif test $ac_cv_prog_cc_g = yes; then
3161 if test "$GCC" = yes; then
3162 CFLAGS="-g -O2"
3163 else
3164 CFLAGS="-g"
3166 else
3167 if test "$GCC" = yes; then
3168 CFLAGS="-O2"
3169 else
3170 CFLAGS=
3173 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3174 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3175 if test "${ac_cv_prog_cc_c89+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178 ac_cv_prog_cc_c89=no
3179 ac_save_CC=$CC
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186 #include <stdarg.h>
3187 #include <stdio.h>
3188 #include <sys/types.h>
3189 #include <sys/stat.h>
3190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3191 struct buf { int x; };
3192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3193 static char *e (p, i)
3194 char **p;
3195 int i;
3197 return p[i];
3199 static char *f (char * (*g) (char **, int), char **p, ...)
3201 char *s;
3202 va_list v;
3203 va_start (v,p);
3204 s = g (p, va_arg (v,int));
3205 va_end (v);
3206 return s;
3209 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3210 function prototypes and stuff, but not '\xHH' hex character constants.
3211 These don't provoke an error unfortunately, instead are silently treated
3212 as 'x'. The following induces an error, until -std is added to get
3213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3214 array size at least. It's necessary to write '\x00'==0 to get something
3215 that's true only with -std. */
3216 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3218 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3219 inside strings and character constants. */
3220 #define FOO(x) 'x'
3221 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3223 int test (int i, double x);
3224 struct s1 {int (*f) (int a);};
3225 struct s2 {int (*f) (double a);};
3226 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3227 int argc;
3228 char **argv;
3230 main ()
3232 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3234 return 0;
3236 _ACEOF
3237 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3238 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3240 CC="$ac_save_CC $ac_arg"
3241 rm -f conftest.$ac_objext
3242 if { (ac_try="$ac_compile"
3243 case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_compile") 2>conftest.er1
3249 ac_status=$?
3250 grep -v '^ *+' conftest.er1 >conftest.err
3251 rm -f conftest.er1
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } && {
3255 test -z "$ac_c_werror_flag" ||
3256 test ! -s conftest.err
3257 } && test -s conftest.$ac_objext; then
3258 ac_cv_prog_cc_c89=$ac_arg
3259 else
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3266 rm -f core conftest.err conftest.$ac_objext
3267 test "x$ac_cv_prog_cc_c89" != "xno" && break
3268 done
3269 rm -f conftest.$ac_ext
3270 CC=$ac_save_CC
3273 # AC_CACHE_VAL
3274 case "x$ac_cv_prog_cc_c89" in
3276 { echo "$as_me:$LINENO: result: none needed" >&5
3277 echo "${ECHO_T}none needed" >&6; } ;;
3278 xno)
3279 { echo "$as_me:$LINENO: result: unsupported" >&5
3280 echo "${ECHO_T}unsupported" >&6; } ;;
3282 CC="$CC $ac_cv_prog_cc_c89"
3283 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3284 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3285 esac
3288 ac_ext=c
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 # Must be GCC.
3295 test "x$GCC" = xyes || { { echo "$as_me:$LINENO: error: GCC is required" >&5
3296 echo "$as_me: error: GCC is required" >&2;}
3297 { (exit 1); exit 1; }; }
3300 cat >>confdefs.h <<\_ACEOF
3301 #define _GNU_SOURCE 1
3302 _ACEOF
3306 # Check whether --enable-largefile was given.
3307 if test "${enable_largefile+set}" = set; then
3308 enableval=$enable_largefile;
3311 if test "$enable_largefile" != no; then
3313 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3314 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3315 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318 ac_cv_sys_largefile_CC=no
3319 if test "$GCC" != yes; then
3320 ac_save_CC=$CC
3321 while :; do
3322 # IRIX 6.2 and later do not support large files by default,
3323 # so use the C compiler's -n32 option if that helps.
3324 cat >conftest.$ac_ext <<_ACEOF
3325 /* confdefs.h. */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3330 #include <sys/types.h>
3331 /* Check that off_t can represent 2**63 - 1 correctly.
3332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3333 since some C++ compilers masquerading as C compilers
3334 incorrectly reject 9223372036854775807. */
3335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3337 && LARGE_OFF_T % 2147483647 == 1)
3338 ? 1 : -1];
3340 main ()
3344 return 0;
3346 _ACEOF
3347 rm -f conftest.$ac_objext
3348 if { (ac_try="$ac_compile"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_compile") 2>conftest.er1
3355 ac_status=$?
3356 grep -v '^ *+' conftest.er1 >conftest.err
3357 rm -f conftest.er1
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } && {
3361 test -z "$ac_c_werror_flag" ||
3362 test ! -s conftest.err
3363 } && test -s conftest.$ac_objext; then
3364 break
3365 else
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -f core conftest.err conftest.$ac_objext
3373 CC="$CC -n32"
3374 rm -f conftest.$ac_objext
3375 if { (ac_try="$ac_compile"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_compile") 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } && {
3388 test -z "$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3390 } && test -s conftest.$ac_objext; then
3391 ac_cv_sys_largefile_CC=' -n32'; break
3392 else
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3399 rm -f core conftest.err conftest.$ac_objext
3400 break
3401 done
3402 CC=$ac_save_CC
3403 rm -f conftest.$ac_ext
3406 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3407 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3408 if test "$ac_cv_sys_largefile_CC" != no; then
3409 CC=$CC$ac_cv_sys_largefile_CC
3412 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3413 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3414 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417 while :; do
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 #include <sys/types.h>
3425 /* Check that off_t can represent 2**63 - 1 correctly.
3426 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3427 since some C++ compilers masquerading as C compilers
3428 incorrectly reject 9223372036854775807. */
3429 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3430 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3431 && LARGE_OFF_T % 2147483647 == 1)
3432 ? 1 : -1];
3434 main ()
3438 return 0;
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3458 ac_cv_sys_file_offset_bits=no; break
3459 else
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h. */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3473 #define _FILE_OFFSET_BITS 64
3474 #include <sys/types.h>
3475 /* Check that off_t can represent 2**63 - 1 correctly.
3476 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3477 since some C++ compilers masquerading as C compilers
3478 incorrectly reject 9223372036854775807. */
3479 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3480 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3481 && LARGE_OFF_T % 2147483647 == 1)
3482 ? 1 : -1];
3484 main ()
3488 return 0;
3490 _ACEOF
3491 rm -f conftest.$ac_objext
3492 if { (ac_try="$ac_compile"
3493 case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_compile") 2>conftest.er1
3499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } && {
3505 test -z "$ac_c_werror_flag" ||
3506 test ! -s conftest.err
3507 } && test -s conftest.$ac_objext; then
3508 ac_cv_sys_file_offset_bits=64; break
3509 else
3510 echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_cv_sys_file_offset_bits=unknown
3518 break
3519 done
3521 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3522 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3523 case $ac_cv_sys_file_offset_bits in #(
3524 no | unknown) ;;
3526 cat >>confdefs.h <<_ACEOF
3527 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3528 _ACEOF
3530 esac
3531 rm -f conftest*
3532 if test $ac_cv_sys_file_offset_bits = unknown; then
3533 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3534 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3535 if test "${ac_cv_sys_large_files+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 while :; do
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 #include <sys/types.h>
3546 /* Check that off_t can represent 2**63 - 1 correctly.
3547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3548 since some C++ compilers masquerading as C compilers
3549 incorrectly reject 9223372036854775807. */
3550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3552 && LARGE_OFF_T % 2147483647 == 1)
3553 ? 1 : -1];
3555 main ()
3559 return 0;
3561 _ACEOF
3562 rm -f conftest.$ac_objext
3563 if { (ac_try="$ac_compile"
3564 case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_compile") 2>conftest.er1
3570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } && {
3576 test -z "$ac_c_werror_flag" ||
3577 test ! -s conftest.err
3578 } && test -s conftest.$ac_objext; then
3579 ac_cv_sys_large_files=no; break
3580 else
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h. */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 #define _LARGE_FILES 1
3595 #include <sys/types.h>
3596 /* Check that off_t can represent 2**63 - 1 correctly.
3597 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3598 since some C++ compilers masquerading as C compilers
3599 incorrectly reject 9223372036854775807. */
3600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3602 && LARGE_OFF_T % 2147483647 == 1)
3603 ? 1 : -1];
3605 main ()
3609 return 0;
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_compile") 2>conftest.er1
3620 ac_status=$?
3621 grep -v '^ *+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } && {
3626 test -z "$ac_c_werror_flag" ||
3627 test ! -s conftest.err
3628 } && test -s conftest.$ac_objext; then
3629 ac_cv_sys_large_files=1; break
3630 else
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 ac_cv_sys_large_files=unknown
3639 break
3640 done
3642 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3643 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3644 case $ac_cv_sys_large_files in #(
3645 no | unknown) ;;
3647 cat >>confdefs.h <<_ACEOF
3648 #define _LARGE_FILES $ac_cv_sys_large_files
3649 _ACEOF
3651 esac
3652 rm -f conftest*
3657 # Identify characteristics of the host architecture.
3658 ac_ext=c
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3664 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3665 # On Suns, sometimes $CPP names a directory.
3666 if test -n "$CPP" && test -d "$CPP"; then
3667 CPP=
3669 if test -z "$CPP"; then
3670 if test "${ac_cv_prog_CPP+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 # Double quotes because CPP needs to be expanded
3674 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3676 ac_preproc_ok=false
3677 for ac_c_preproc_warn_flag in '' yes
3679 # Use a header file that comes with gcc, so configuring glibc
3680 # with a fresh cross-compiler works.
3681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3682 # <limits.h> exists even on freestanding compilers.
3683 # On the NeXT, cc -E runs the code through the compiler's parser,
3684 # not just through cpp. "Syntax error" is here to catch this case.
3685 cat >conftest.$ac_ext <<_ACEOF
3686 /* confdefs.h. */
3687 _ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h. */
3691 #ifdef __STDC__
3692 # include <limits.h>
3693 #else
3694 # include <assert.h>
3695 #endif
3696 Syntax error
3697 _ACEOF
3698 if { (ac_try="$ac_cpp conftest.$ac_ext"
3699 case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702 esac
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3705 ac_status=$?
3706 grep -v '^ *+' conftest.er1 >conftest.err
3707 rm -f conftest.er1
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } >/dev/null && {
3711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 }; then
3715 else
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3719 # Broken: fails on valid input.
3720 continue
3723 rm -f conftest.err conftest.$ac_ext
3725 # OK, works on sane cases. Now check whether nonexistent headers
3726 # can be detected and how.
3727 cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h. */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 #include <ac_nonexistent.h>
3734 _ACEOF
3735 if { (ac_try="$ac_cpp conftest.$ac_ext"
3736 case "(($ac_try" in
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3739 esac
3740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3742 ac_status=$?
3743 grep -v '^ *+' conftest.er1 >conftest.err
3744 rm -f conftest.er1
3745 cat conftest.err >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } >/dev/null && {
3748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3749 test ! -s conftest.err
3750 }; then
3751 # Broken: success on invalid input.
3752 continue
3753 else
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 # Passes both tests.
3758 ac_preproc_ok=:
3759 break
3762 rm -f conftest.err conftest.$ac_ext
3764 done
3765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3766 rm -f conftest.err conftest.$ac_ext
3767 if $ac_preproc_ok; then
3768 break
3771 done
3772 ac_cv_prog_CPP=$CPP
3775 CPP=$ac_cv_prog_CPP
3776 else
3777 ac_cv_prog_CPP=$CPP
3779 { echo "$as_me:$LINENO: result: $CPP" >&5
3780 echo "${ECHO_T}$CPP" >&6; }
3781 ac_preproc_ok=false
3782 for ac_c_preproc_warn_flag in '' yes
3784 # Use a header file that comes with gcc, so configuring glibc
3785 # with a fresh cross-compiler works.
3786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787 # <limits.h> exists even on freestanding compilers.
3788 # On the NeXT, cc -E runs the code through the compiler's parser,
3789 # not just through cpp. "Syntax error" is here to catch this case.
3790 cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h. */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3796 #ifdef __STDC__
3797 # include <limits.h>
3798 #else
3799 # include <assert.h>
3800 #endif
3801 Syntax error
3802 _ACEOF
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null && {
3816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3818 }; then
3820 else
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 # Broken: fails on valid input.
3825 continue
3828 rm -f conftest.err conftest.$ac_ext
3830 # OK, works on sane cases. Now check whether nonexistent headers
3831 # can be detected and how.
3832 cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h. */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 #include <ac_nonexistent.h>
3839 _ACEOF
3840 if { (ac_try="$ac_cpp conftest.$ac_ext"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } >/dev/null && {
3853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854 test ! -s conftest.err
3855 }; then
3856 # Broken: success on invalid input.
3857 continue
3858 else
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 # Passes both tests.
3863 ac_preproc_ok=:
3864 break
3867 rm -f conftest.err conftest.$ac_ext
3869 done
3870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871 rm -f conftest.err conftest.$ac_ext
3872 if $ac_preproc_ok; then
3874 else
3875 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3876 See \`config.log' for more details." >&5
3877 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3878 See \`config.log' for more details." >&2;}
3879 { (exit 1); exit 1; }; }
3882 ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3890 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3891 if test "${ac_cv_path_GREP+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894 # Extract the first word of "grep ggrep" to use in msg output
3895 if test -z "$GREP"; then
3896 set dummy grep ggrep; ac_prog_name=$2
3897 if test "${ac_cv_path_GREP+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900 ac_path_GREP_found=false
3901 # Loop through the user's path and test for each of PROGNAME-LIST
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_prog in grep ggrep; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3910 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3911 # Check for GNU ac_path_GREP and select it if it is found.
3912 # Check for GNU $ac_path_GREP
3913 case `"$ac_path_GREP" --version 2>&1` in
3914 *GNU*)
3915 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3917 ac_count=0
3918 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3919 while :
3921 cat "conftest.in" "conftest.in" >"conftest.tmp"
3922 mv "conftest.tmp" "conftest.in"
3923 cp "conftest.in" "conftest.nl"
3924 echo 'GREP' >> "conftest.nl"
3925 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927 ac_count=`expr $ac_count + 1`
3928 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3929 # Best one so far, save it but keep looking for a better one
3930 ac_cv_path_GREP="$ac_path_GREP"
3931 ac_path_GREP_max=$ac_count
3933 # 10*(2^10) chars as input seems more than enough
3934 test $ac_count -gt 10 && break
3935 done
3936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3937 esac
3940 $ac_path_GREP_found && break 3
3941 done
3942 done
3944 done
3945 IFS=$as_save_IFS
3950 GREP="$ac_cv_path_GREP"
3951 if test -z "$GREP"; then
3952 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3953 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3954 { (exit 1); exit 1; }; }
3957 else
3958 ac_cv_path_GREP=$GREP
3963 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3964 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3965 GREP="$ac_cv_path_GREP"
3968 { echo "$as_me:$LINENO: checking for egrep" >&5
3969 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3970 if test "${ac_cv_path_EGREP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3974 then ac_cv_path_EGREP="$GREP -E"
3975 else
3976 # Extract the first word of "egrep" to use in msg output
3977 if test -z "$EGREP"; then
3978 set dummy egrep; ac_prog_name=$2
3979 if test "${ac_cv_path_EGREP+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982 ac_path_EGREP_found=false
3983 # Loop through the user's path and test for each of PROGNAME-LIST
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_prog in egrep; do
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3992 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3993 # Check for GNU ac_path_EGREP and select it if it is found.
3994 # Check for GNU $ac_path_EGREP
3995 case `"$ac_path_EGREP" --version 2>&1` in
3996 *GNU*)
3997 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3999 ac_count=0
4000 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4001 while :
4003 cat "conftest.in" "conftest.in" >"conftest.tmp"
4004 mv "conftest.tmp" "conftest.in"
4005 cp "conftest.in" "conftest.nl"
4006 echo 'EGREP' >> "conftest.nl"
4007 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4009 ac_count=`expr $ac_count + 1`
4010 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4011 # Best one so far, save it but keep looking for a better one
4012 ac_cv_path_EGREP="$ac_path_EGREP"
4013 ac_path_EGREP_max=$ac_count
4015 # 10*(2^10) chars as input seems more than enough
4016 test $ac_count -gt 10 && break
4017 done
4018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4019 esac
4022 $ac_path_EGREP_found && break 3
4023 done
4024 done
4026 done
4027 IFS=$as_save_IFS
4032 EGREP="$ac_cv_path_EGREP"
4033 if test -z "$EGREP"; then
4034 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4035 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4036 { (exit 1); exit 1; }; }
4039 else
4040 ac_cv_path_EGREP=$EGREP
4046 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4047 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4048 EGREP="$ac_cv_path_EGREP"
4051 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4053 if test "${ac_cv_header_stdc+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056 cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h. */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 #include <stdlib.h>
4063 #include <stdarg.h>
4064 #include <string.h>
4065 #include <float.h>
4068 main ()
4072 return 0;
4074 _ACEOF
4075 rm -f conftest.$ac_objext
4076 if { (ac_try="$ac_compile"
4077 case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080 esac
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_compile") 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } && {
4089 test -z "$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4091 } && test -s conftest.$ac_objext; then
4092 ac_cv_header_stdc=yes
4093 else
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 ac_cv_header_stdc=no
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 if test $ac_cv_header_stdc = yes; then
4103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h. */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #include <string.h>
4112 _ACEOF
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 $EGREP "memchr" >/dev/null 2>&1; then
4116 else
4117 ac_cv_header_stdc=no
4119 rm -f conftest*
4123 if test $ac_cv_header_stdc = yes; then
4124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 #include <stdlib.h>
4133 _ACEOF
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "free" >/dev/null 2>&1; then
4137 else
4138 ac_cv_header_stdc=no
4140 rm -f conftest*
4144 if test $ac_cv_header_stdc = yes; then
4145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4146 if test "$cross_compiling" = yes; then
4148 else
4149 cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h. */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4155 #include <ctype.h>
4156 #include <stdlib.h>
4157 #if ((' ' & 0x0FF) == 0x020)
4158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4160 #else
4161 # define ISLOWER(c) \
4162 (('a' <= (c) && (c) <= 'i') \
4163 || ('j' <= (c) && (c) <= 'r') \
4164 || ('s' <= (c) && (c) <= 'z'))
4165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4166 #endif
4168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4170 main ()
4172 int i;
4173 for (i = 0; i < 256; i++)
4174 if (XOR (islower (i), ISLOWER (i))
4175 || toupper (i) != TOUPPER (i))
4176 return 2;
4177 return 0;
4179 _ACEOF
4180 rm -f conftest$ac_exeext
4181 if { (ac_try="$ac_link"
4182 case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_link") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4201 else
4202 echo "$as_me: program exited with status $ac_status" >&5
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ( exit $ac_status )
4207 ac_cv_header_stdc=no
4209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4215 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4216 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4217 if test $ac_cv_header_stdc = yes; then
4219 cat >>confdefs.h <<\_ACEOF
4220 #define STDC_HEADERS 1
4221 _ACEOF
4225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4236 inttypes.h stdint.h unistd.h
4238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 $ac_includes_default
4252 #include <$ac_header>
4253 _ACEOF
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4256 case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259 esac
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && {
4268 test -z "$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 } && test -s conftest.$ac_objext; then
4271 eval "$as_ac_Header=yes"
4272 else
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 eval "$as_ac_Header=no"
4279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 ac_res=`eval echo '${'$as_ac_Header'}'`
4282 { echo "$as_me:$LINENO: result: $ac_res" >&5
4283 echo "${ECHO_T}$ac_res" >&6; }
4284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4285 cat >>confdefs.h <<_ACEOF
4286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4287 _ACEOF
4291 done
4294 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4295 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4296 if test "${ac_cv_c_bigendian+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299 # See if sys/param.h defines the BYTE_ORDER macro.
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h. */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 #include <sys/types.h>
4307 #include <sys/param.h>
4310 main ()
4312 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4313 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4314 bogus endian macros
4315 #endif
4318 return 0;
4320 _ACEOF
4321 rm -f conftest.$ac_objext
4322 if { (ac_try="$ac_compile"
4323 case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326 esac
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_compile") 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } && {
4335 test -z "$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 } && test -s conftest.$ac_objext; then
4338 # It does; now see whether it defined to BIG_ENDIAN or not.
4339 cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h. */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 #include <sys/types.h>
4346 #include <sys/param.h>
4349 main ()
4351 #if BYTE_ORDER != BIG_ENDIAN
4352 not big endian
4353 #endif
4356 return 0;
4358 _ACEOF
4359 rm -f conftest.$ac_objext
4360 if { (ac_try="$ac_compile"
4361 case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364 esac
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_compile") 2>conftest.er1
4367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } && {
4373 test -z "$ac_c_werror_flag" ||
4374 test ! -s conftest.err
4375 } && test -s conftest.$ac_objext; then
4376 ac_cv_c_bigendian=yes
4377 else
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 ac_cv_c_bigendian=no
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 else
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4389 # It does not; compile a test program.
4390 if test "$cross_compiling" = yes; then
4391 # try to guess the endianness by grepping values into an object file
4392 ac_cv_c_bigendian=unknown
4393 cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h. */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4400 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4401 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4402 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4403 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4404 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4406 main ()
4408 _ascii (); _ebcdic ();
4410 return 0;
4412 _ACEOF
4413 rm -f conftest.$ac_objext
4414 if { (ac_try="$ac_compile"
4415 case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4418 esac
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_compile") 2>conftest.er1
4421 ac_status=$?
4422 grep -v '^ *+' conftest.er1 >conftest.err
4423 rm -f conftest.er1
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } && {
4427 test -z "$ac_c_werror_flag" ||
4428 test ! -s conftest.err
4429 } && test -s conftest.$ac_objext; then
4430 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4431 ac_cv_c_bigendian=yes
4433 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4434 if test "$ac_cv_c_bigendian" = unknown; then
4435 ac_cv_c_bigendian=no
4436 else
4437 # finding both strings is unlikely to happen, but who knows?
4438 ac_cv_c_bigendian=unknown
4441 else
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 else
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 $ac_includes_default
4458 main ()
4461 /* Are we little or big endian? From Harbison&Steele. */
4462 union
4464 long int l;
4465 char c[sizeof (long int)];
4466 } u;
4467 u.l = 1;
4468 return u.c[sizeof (long int) - 1] == 1;
4471 return 0;
4473 _ACEOF
4474 rm -f conftest$ac_exeext
4475 if { (ac_try="$ac_link"
4476 case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479 esac
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_link") 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4485 { (case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_try") 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 ac_cv_c_bigendian=no
4495 else
4496 echo "$as_me: program exited with status $ac_status" >&5
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 ( exit $ac_status )
4501 ac_cv_c_bigendian=yes
4503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4512 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4513 case $ac_cv_c_bigendian in
4514 yes)
4516 cat >>confdefs.h <<\_ACEOF
4517 #define WORDS_BIGENDIAN 1
4518 _ACEOF
4523 { { echo "$as_me:$LINENO: error: unknown endianness
4524 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4525 echo "$as_me: error: unknown endianness
4526 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4527 { (exit 1); exit 1; }; } ;;
4528 esac
4530 { echo "$as_me:$LINENO: checking for void *" >&5
4531 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4532 if test "${ac_cv_type_void_p+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h. */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 $ac_includes_default
4542 typedef void * ac__type_new_;
4544 main ()
4546 if ((ac__type_new_ *) 0)
4547 return 0;
4548 if (sizeof (ac__type_new_))
4549 return 0;
4551 return 0;
4553 _ACEOF
4554 rm -f conftest.$ac_objext
4555 if { (ac_try="$ac_compile"
4556 case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4559 esac
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_compile") 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } && {
4568 test -z "$ac_c_werror_flag" ||
4569 test ! -s conftest.err
4570 } && test -s conftest.$ac_objext; then
4571 ac_cv_type_void_p=yes
4572 else
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4576 ac_cv_type_void_p=no
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4582 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4584 # The cast to long int works around a bug in the HP C Compiler
4585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4587 # This bug is HP SR number 8606223364.
4588 { echo "$as_me:$LINENO: checking size of void *" >&5
4589 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4590 if test "${ac_cv_sizeof_void_p+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593 if test "$cross_compiling" = yes; then
4594 # Depending upon the size, compute the lo and hi bounds.
4595 cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h. */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 $ac_includes_default
4602 typedef void * ac__type_sizeof_;
4604 main ()
4606 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4607 test_array [0] = 0
4610 return 0;
4612 _ACEOF
4613 rm -f conftest.$ac_objext
4614 if { (ac_try="$ac_compile"
4615 case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618 esac
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_compile") 2>conftest.er1
4621 ac_status=$?
4622 grep -v '^ *+' conftest.er1 >conftest.err
4623 rm -f conftest.er1
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } && {
4627 test -z "$ac_c_werror_flag" ||
4628 test ! -s conftest.err
4629 } && test -s conftest.$ac_objext; then
4630 ac_lo=0 ac_mid=0
4631 while :; do
4632 cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h. */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 $ac_includes_default
4639 typedef void * ac__type_sizeof_;
4641 main ()
4643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4644 test_array [0] = 0
4647 return 0;
4649 _ACEOF
4650 rm -f conftest.$ac_objext
4651 if { (ac_try="$ac_compile"
4652 case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655 esac
4656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4657 (eval "$ac_compile") 2>conftest.er1
4658 ac_status=$?
4659 grep -v '^ *+' conftest.er1 >conftest.err
4660 rm -f conftest.er1
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } && {
4664 test -z "$ac_c_werror_flag" ||
4665 test ! -s conftest.err
4666 } && test -s conftest.$ac_objext; then
4667 ac_hi=$ac_mid; break
4668 else
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 ac_lo=`expr $ac_mid + 1`
4673 if test $ac_lo -le $ac_mid; then
4674 ac_lo= ac_hi=
4675 break
4677 ac_mid=`expr 2 '*' $ac_mid + 1`
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 done
4682 else
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 $ac_includes_default
4693 typedef void * ac__type_sizeof_;
4695 main ()
4697 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4698 test_array [0] = 0
4701 return 0;
4703 _ACEOF
4704 rm -f conftest.$ac_objext
4705 if { (ac_try="$ac_compile"
4706 case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709 esac
4710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711 (eval "$ac_compile") 2>conftest.er1
4712 ac_status=$?
4713 grep -v '^ *+' conftest.er1 >conftest.err
4714 rm -f conftest.er1
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && {
4718 test -z "$ac_c_werror_flag" ||
4719 test ! -s conftest.err
4720 } && test -s conftest.$ac_objext; then
4721 ac_hi=-1 ac_mid=-1
4722 while :; do
4723 cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h. */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 $ac_includes_default
4730 typedef void * ac__type_sizeof_;
4732 main ()
4734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4735 test_array [0] = 0
4738 return 0;
4740 _ACEOF
4741 rm -f conftest.$ac_objext
4742 if { (ac_try="$ac_compile"
4743 case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4746 esac
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_compile") 2>conftest.er1
4749 ac_status=$?
4750 grep -v '^ *+' conftest.er1 >conftest.err
4751 rm -f conftest.er1
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } && {
4755 test -z "$ac_c_werror_flag" ||
4756 test ! -s conftest.err
4757 } && test -s conftest.$ac_objext; then
4758 ac_lo=$ac_mid; break
4759 else
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 ac_hi=`expr '(' $ac_mid ')' - 1`
4764 if test $ac_mid -le $ac_hi; then
4765 ac_lo= ac_hi=
4766 break
4768 ac_mid=`expr 2 '*' $ac_mid`
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 done
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 ac_lo= ac_hi=
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 # Binary search between lo and hi bounds.
4785 while test "x$ac_lo" != "x$ac_hi"; do
4786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4787 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h. */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 $ac_includes_default
4794 typedef void * ac__type_sizeof_;
4796 main ()
4798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4799 test_array [0] = 0
4802 return 0;
4804 _ACEOF
4805 rm -f conftest.$ac_objext
4806 if { (ac_try="$ac_compile"
4807 case "(($ac_try" in
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4810 esac
4811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812 (eval "$ac_compile") 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && {
4819 test -z "$ac_c_werror_flag" ||
4820 test ! -s conftest.err
4821 } && test -s conftest.$ac_objext; then
4822 ac_hi=$ac_mid
4823 else
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 ac_lo=`expr '(' $ac_mid ')' + 1`
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 done
4832 case $ac_lo in
4833 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4834 '') if test "$ac_cv_type_void_p" = yes; then
4835 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4836 See \`config.log' for more details." >&5
4837 echo "$as_me: error: cannot compute sizeof (void *)
4838 See \`config.log' for more details." >&2;}
4839 { (exit 77); exit 77; }; }
4840 else
4841 ac_cv_sizeof_void_p=0
4842 fi ;;
4843 esac
4844 else
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h. */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4851 $ac_includes_default
4852 typedef void * ac__type_sizeof_;
4853 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4854 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4855 #include <stdio.h>
4856 #include <stdlib.h>
4858 main ()
4861 FILE *f = fopen ("conftest.val", "w");
4862 if (! f)
4863 return 1;
4864 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4866 long int i = longval ();
4867 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4868 return 1;
4869 fprintf (f, "%ld\n", i);
4871 else
4873 unsigned long int i = ulongval ();
4874 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4875 return 1;
4876 fprintf (f, "%lu\n", i);
4878 return ferror (f) || fclose (f) != 0;
4881 return 0;
4883 _ACEOF
4884 rm -f conftest$ac_exeext
4885 if { (ac_try="$ac_link"
4886 case "(($ac_try" in
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4889 esac
4890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_link") 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4895 { (case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898 esac
4899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900 (eval "$ac_try") 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_sizeof_void_p=`cat conftest.val`
4905 else
4906 echo "$as_me: program exited with status $ac_status" >&5
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4910 ( exit $ac_status )
4911 if test "$ac_cv_type_void_p" = yes; then
4912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4913 See \`config.log' for more details." >&5
4914 echo "$as_me: error: cannot compute sizeof (void *)
4915 See \`config.log' for more details." >&2;}
4916 { (exit 77); exit 77; }; }
4917 else
4918 ac_cv_sizeof_void_p=0
4921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4923 rm -f conftest.val
4925 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4926 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4930 cat >>confdefs.h <<_ACEOF
4931 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4932 _ACEOF
4935 { echo "$as_me:$LINENO: checking for long" >&5
4936 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4937 if test "${ac_cv_type_long+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h. */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 $ac_includes_default
4947 typedef long ac__type_new_;
4949 main ()
4951 if ((ac__type_new_ *) 0)
4952 return 0;
4953 if (sizeof (ac__type_new_))
4954 return 0;
4956 return 0;
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (ac_try="$ac_compile"
4961 case "(($ac_try" in
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4964 esac
4965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4966 (eval "$ac_compile") 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && {
4973 test -z "$ac_c_werror_flag" ||
4974 test ! -s conftest.err
4975 } && test -s conftest.$ac_objext; then
4976 ac_cv_type_long=yes
4977 else
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 ac_cv_type_long=no
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4987 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4989 # The cast to long int works around a bug in the HP C Compiler
4990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4992 # This bug is HP SR number 8606223364.
4993 { echo "$as_me:$LINENO: checking size of long" >&5
4994 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4995 if test "${ac_cv_sizeof_long+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998 if test "$cross_compiling" = yes; then
4999 # Depending upon the size, compute the lo and hi bounds.
5000 cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h. */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 $ac_includes_default
5007 typedef long ac__type_sizeof_;
5009 main ()
5011 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5012 test_array [0] = 0
5015 return 0;
5017 _ACEOF
5018 rm -f conftest.$ac_objext
5019 if { (ac_try="$ac_compile"
5020 case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5023 esac
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_compile") 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } && {
5032 test -z "$ac_c_werror_flag" ||
5033 test ! -s conftest.err
5034 } && test -s conftest.$ac_objext; then
5035 ac_lo=0 ac_mid=0
5036 while :; do
5037 cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_includes_default
5044 typedef long ac__type_sizeof_;
5046 main ()
5048 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5049 test_array [0] = 0
5052 return 0;
5054 _ACEOF
5055 rm -f conftest.$ac_objext
5056 if { (ac_try="$ac_compile"
5057 case "(($ac_try" in
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5060 esac
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_compile") 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && {
5069 test -z "$ac_c_werror_flag" ||
5070 test ! -s conftest.err
5071 } && test -s conftest.$ac_objext; then
5072 ac_hi=$ac_mid; break
5073 else
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5077 ac_lo=`expr $ac_mid + 1`
5078 if test $ac_lo -le $ac_mid; then
5079 ac_lo= ac_hi=
5080 break
5082 ac_mid=`expr 2 '*' $ac_mid + 1`
5085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 done
5087 else
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5091 cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h. */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 $ac_includes_default
5098 typedef long ac__type_sizeof_;
5100 main ()
5102 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5103 test_array [0] = 0
5106 return 0;
5108 _ACEOF
5109 rm -f conftest.$ac_objext
5110 if { (ac_try="$ac_compile"
5111 case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_compile") 2>conftest.er1
5117 ac_status=$?
5118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } && {
5123 test -z "$ac_c_werror_flag" ||
5124 test ! -s conftest.err
5125 } && test -s conftest.$ac_objext; then
5126 ac_hi=-1 ac_mid=-1
5127 while :; do
5128 cat >conftest.$ac_ext <<_ACEOF
5129 /* confdefs.h. */
5130 _ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5134 $ac_includes_default
5135 typedef long ac__type_sizeof_;
5137 main ()
5139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5140 test_array [0] = 0
5143 return 0;
5145 _ACEOF
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5148 case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_compile") 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.$ac_objext; then
5163 ac_lo=$ac_mid; break
5164 else
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 ac_hi=`expr '(' $ac_mid ')' - 1`
5169 if test $ac_mid -le $ac_hi; then
5170 ac_lo= ac_hi=
5171 break
5173 ac_mid=`expr 2 '*' $ac_mid`
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 done
5178 else
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 ac_lo= ac_hi=
5185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5189 # Binary search between lo and hi bounds.
5190 while test "x$ac_lo" != "x$ac_hi"; do
5191 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5192 cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h. */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5198 $ac_includes_default
5199 typedef long ac__type_sizeof_;
5201 main ()
5203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5204 test_array [0] = 0
5207 return 0;
5209 _ACEOF
5210 rm -f conftest.$ac_objext
5211 if { (ac_try="$ac_compile"
5212 case "(($ac_try" in
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5215 esac
5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217 (eval "$ac_compile") 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } && {
5224 test -z "$ac_c_werror_flag" ||
5225 test ! -s conftest.err
5226 } && test -s conftest.$ac_objext; then
5227 ac_hi=$ac_mid
5228 else
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5232 ac_lo=`expr '(' $ac_mid ')' + 1`
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 done
5237 case $ac_lo in
5238 ?*) ac_cv_sizeof_long=$ac_lo;;
5239 '') if test "$ac_cv_type_long" = yes; then
5240 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5241 See \`config.log' for more details." >&5
5242 echo "$as_me: error: cannot compute sizeof (long)
5243 See \`config.log' for more details." >&2;}
5244 { (exit 77); exit 77; }; }
5245 else
5246 ac_cv_sizeof_long=0
5247 fi ;;
5248 esac
5249 else
5250 cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h. */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5256 $ac_includes_default
5257 typedef long ac__type_sizeof_;
5258 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5259 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5260 #include <stdio.h>
5261 #include <stdlib.h>
5263 main ()
5266 FILE *f = fopen ("conftest.val", "w");
5267 if (! f)
5268 return 1;
5269 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5271 long int i = longval ();
5272 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5273 return 1;
5274 fprintf (f, "%ld\n", i);
5276 else
5278 unsigned long int i = ulongval ();
5279 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5280 return 1;
5281 fprintf (f, "%lu\n", i);
5283 return ferror (f) || fclose (f) != 0;
5286 return 0;
5288 _ACEOF
5289 rm -f conftest$ac_exeext
5290 if { (ac_try="$ac_link"
5291 case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5294 esac
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_link") 2>&5
5297 ac_status=$?
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5300 { (case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303 esac
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_try") 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5309 ac_cv_sizeof_long=`cat conftest.val`
5310 else
5311 echo "$as_me: program exited with status $ac_status" >&5
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5315 ( exit $ac_status )
5316 if test "$ac_cv_type_long" = yes; then
5317 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5318 See \`config.log' for more details." >&5
5319 echo "$as_me: error: cannot compute sizeof (long)
5320 See \`config.log' for more details." >&2;}
5321 { (exit 77); exit 77; }; }
5322 else
5323 ac_cv_sizeof_long=0
5326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5328 rm -f conftest.val
5330 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5331 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5335 cat >>confdefs.h <<_ACEOF
5336 #define SIZEOF_LONG $ac_cv_sizeof_long
5337 _ACEOF
5341 if test "x$host_m32" = x1; then
5342 # Force 32-bit mode.
5343 CFLAGS="$CFLAGS -m32"
5344 LDFLAGS="$LDFLAGS -m32"
5347 # Check LZO when compiling for the i386-pc.
5348 if test "$target_cpu"-"$platform" = i386-pc; then
5349 # Check whether --enable-lzo was given.
5350 if test "${enable_lzo+set}" = set; then
5351 enableval=$enable_lzo;
5354 if [ x"$enable_lzo" = xyes ]; then
5355 # There are three possibilities. LZO version 2 installed with the name
5356 # liblzo2, with the name liblzo, and LZO version 1.
5358 cat >>confdefs.h <<\_ACEOF
5359 #define ENABLE_LZO 1
5360 _ACEOF
5362 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5363 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
5364 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 ac_check_lib_save_LIBS=$LIBS
5368 LIBS="-llzo2 $LIBS"
5369 cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h. */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5376 /* Override any GCC internal prototype to avoid an error.
5377 Use char because int might match the return type of a GCC
5378 builtin and then its argument prototype would still apply. */
5379 #ifdef __cplusplus
5380 extern "C"
5381 #endif
5382 char __lzo_init_v2 ();
5384 main ()
5386 return __lzo_init_v2 ();
5388 return 0;
5390 _ACEOF
5391 rm -f conftest.$ac_objext conftest$ac_exeext
5392 if { (ac_try="$ac_link"
5393 case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396 esac
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_link") 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } && {
5405 test -z "$ac_c_werror_flag" ||
5406 test ! -s conftest.err
5407 } && test -s conftest$ac_exeext &&
5408 $as_test_x conftest$ac_exeext; then
5409 ac_cv_lib_lzo2___lzo_init_v2=yes
5410 else
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5414 ac_cv_lib_lzo2___lzo_init_v2=no
5417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5418 conftest$ac_exeext conftest.$ac_ext
5419 LIBS=$ac_check_lib_save_LIBS
5421 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5422 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
5423 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5424 LIBLZO="-llzo2"
5425 else
5426 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5427 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
5428 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431 ac_check_lib_save_LIBS=$LIBS
5432 LIBS="-llzo $LIBS"
5433 cat >conftest.$ac_ext <<_ACEOF
5434 /* confdefs.h. */
5435 _ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5440 /* Override any GCC internal prototype to avoid an error.
5441 Use char because int might match the return type of a GCC
5442 builtin and then its argument prototype would still apply. */
5443 #ifdef __cplusplus
5444 extern "C"
5445 #endif
5446 char __lzo_init_v2 ();
5448 main ()
5450 return __lzo_init_v2 ();
5452 return 0;
5454 _ACEOF
5455 rm -f conftest.$ac_objext conftest$ac_exeext
5456 if { (ac_try="$ac_link"
5457 case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460 esac
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_link") 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && {
5469 test -z "$ac_c_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest$ac_exeext &&
5472 $as_test_x conftest$ac_exeext; then
5473 ac_cv_lib_lzo___lzo_init_v2=yes
5474 else
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 ac_cv_lib_lzo___lzo_init_v2=no
5481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5482 conftest$ac_exeext conftest.$ac_ext
5483 LIBS=$ac_check_lib_save_LIBS
5485 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5486 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
5487 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5488 LIBLZO="-llzo"
5489 else
5490 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5491 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
5492 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495 ac_check_lib_save_LIBS=$LIBS
5496 LIBS="-llzo $LIBS"
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5504 /* Override any GCC internal prototype to avoid an error.
5505 Use char because int might match the return type of a GCC
5506 builtin and then its argument prototype would still apply. */
5507 #ifdef __cplusplus
5508 extern "C"
5509 #endif
5510 char __lzo_init2 ();
5512 main ()
5514 return __lzo_init2 ();
5516 return 0;
5518 _ACEOF
5519 rm -f conftest.$ac_objext conftest$ac_exeext
5520 if { (ac_try="$ac_link"
5521 case "(($ac_try" in
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5524 esac
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_link") 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && {
5533 test -z "$ac_c_werror_flag" ||
5534 test ! -s conftest.err
5535 } && test -s conftest$ac_exeext &&
5536 $as_test_x conftest$ac_exeext; then
5537 ac_cv_lib_lzo___lzo_init2=yes
5538 else
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5542 ac_cv_lib_lzo___lzo_init2=no
5545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5546 conftest$ac_exeext conftest.$ac_ext
5547 LIBS=$ac_check_lib_save_LIBS
5549 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5550 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
5551 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
5552 LIBLZO="-llzo"
5553 else
5554 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
5555 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
5556 { (exit 1); exit 1; }; }
5564 LIBS="$LIBS $LIBLZO"
5565 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
5566 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
5567 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570 cat >conftest.$ac_ext <<_ACEOF
5571 /* confdefs.h. */
5572 _ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h. */
5576 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
5577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5578 #define lzo1x_999_compress innocuous_lzo1x_999_compress
5580 /* System header to define __stub macros and hopefully few prototypes,
5581 which can conflict with char lzo1x_999_compress (); below.
5582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5583 <limits.h> exists even on freestanding compilers. */
5585 #ifdef __STDC__
5586 # include <limits.h>
5587 #else
5588 # include <assert.h>
5589 #endif
5591 #undef lzo1x_999_compress
5593 /* Override any GCC internal prototype to avoid an error.
5594 Use char because int might match the return type of a GCC
5595 builtin and then its argument prototype would still apply. */
5596 #ifdef __cplusplus
5597 extern "C"
5598 #endif
5599 char lzo1x_999_compress ();
5600 /* The GNU C library defines this for functions which it implements
5601 to always fail with ENOSYS. Some functions are actually named
5602 something starting with __ and the normal name is an alias. */
5603 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
5604 choke me
5605 #endif
5608 main ()
5610 return lzo1x_999_compress ();
5612 return 0;
5614 _ACEOF
5615 rm -f conftest.$ac_objext conftest$ac_exeext
5616 if { (ac_try="$ac_link"
5617 case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_link") 2>conftest.er1
5623 ac_status=$?
5624 grep -v '^ *+' conftest.er1 >conftest.err
5625 rm -f conftest.er1
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && {
5629 test -z "$ac_c_werror_flag" ||
5630 test ! -s conftest.err
5631 } && test -s conftest$ac_exeext &&
5632 $as_test_x conftest$ac_exeext; then
5633 ac_cv_func_lzo1x_999_compress=yes
5634 else
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5638 ac_cv_func_lzo1x_999_compress=no
5641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5642 conftest$ac_exeext conftest.$ac_ext
5644 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
5645 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
5646 if test $ac_cv_func_lzo1x_999_compress = yes; then
5648 else
5649 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
5650 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
5651 { (exit 1); exit 1; }; }
5655 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
5658 for ac_header in lzo/lzo1x.h lzo1x.h
5660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 ac_res=`eval echo '${'$as_ac_Header'}'`
5668 { echo "$as_me:$LINENO: result: $ac_res" >&5
5669 echo "${ECHO_T}$ac_res" >&6; }
5670 else
5671 # Is the header compilable?
5672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 $ac_includes_default
5681 #include <$ac_header>
5682 _ACEOF
5683 rm -f conftest.$ac_objext
5684 if { (ac_try="$ac_compile"
5685 case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest.$ac_objext; then
5700 ac_header_compiler=yes
5701 else
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 ac_header_compiler=no
5708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5710 echo "${ECHO_T}$ac_header_compiler" >&6; }
5712 # Is the header present?
5713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h. */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <$ac_header>
5722 _ACEOF
5723 if { (ac_try="$ac_cpp conftest.$ac_ext"
5724 case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727 esac
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } >/dev/null && {
5736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5737 test ! -s conftest.err
5738 }; then
5739 ac_header_preproc=yes
5740 else
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5744 ac_header_preproc=no
5747 rm -f conftest.err conftest.$ac_ext
5748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5749 echo "${ECHO_T}$ac_header_preproc" >&6; }
5751 # So? What about this header?
5752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5753 yes:no: )
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5758 ac_header_preproc=yes
5760 no:yes:* )
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5773 ( cat <<\_ASBOX
5774 ## ------------------------------- ##
5775 ## Report this to bug-grub@gnu.org ##
5776 ## ------------------------------- ##
5777 _ASBOX
5778 ) | sed "s/^/$as_me: WARNING: /" >&2
5780 esac
5781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786 eval "$as_ac_Header=\$ac_header_preproc"
5788 ac_res=`eval echo '${'$as_ac_Header'}'`
5789 { echo "$as_me:$LINENO: result: $ac_res" >&5
5790 echo "${ECHO_T}$ac_res" >&6; }
5793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5794 cat >>confdefs.h <<_ACEOF
5795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5796 _ACEOF
5800 done
5802 else
5804 cat >>confdefs.h <<\_ACEOF
5805 #define ENABLE_LZMA 1
5806 _ACEOF
5812 # Check for functions.
5818 for ac_func in posix_memalign memalign asprintf __bswapsi2 __bswapdi2
5820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826 cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h. */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5834 #define $ac_func innocuous_$ac_func
5836 /* System header to define __stub macros and hopefully few prototypes,
5837 which can conflict with char $ac_func (); below.
5838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5839 <limits.h> exists even on freestanding compilers. */
5841 #ifdef __STDC__
5842 # include <limits.h>
5843 #else
5844 # include <assert.h>
5845 #endif
5847 #undef $ac_func
5849 /* Override any GCC internal prototype to avoid an error.
5850 Use char because int might match the return type of a GCC
5851 builtin and then its argument prototype would still apply. */
5852 #ifdef __cplusplus
5853 extern "C"
5854 #endif
5855 char $ac_func ();
5856 /* The GNU C library defines this for functions which it implements
5857 to always fail with ENOSYS. Some functions are actually named
5858 something starting with __ and the normal name is an alias. */
5859 #if defined __stub_$ac_func || defined __stub___$ac_func
5860 choke me
5861 #endif
5864 main ()
5866 return $ac_func ();
5868 return 0;
5870 _ACEOF
5871 rm -f conftest.$ac_objext conftest$ac_exeext
5872 if { (ac_try="$ac_link"
5873 case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_link") 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } && {
5885 test -z "$ac_c_werror_flag" ||
5886 test ! -s conftest.err
5887 } && test -s conftest$ac_exeext &&
5888 $as_test_x conftest$ac_exeext; then
5889 eval "$as_ac_var=yes"
5890 else
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5894 eval "$as_ac_var=no"
5897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5898 conftest$ac_exeext conftest.$ac_ext
5900 ac_res=`eval echo '${'$as_ac_var'}'`
5901 { echo "$as_me:$LINENO: result: $ac_res" >&5
5902 echo "${ECHO_T}$ac_res" >&6; }
5903 if test `eval echo '${'$as_ac_var'}'` = yes; then
5904 cat >>confdefs.h <<_ACEOF
5905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5906 _ACEOF
5909 done
5913 # Check for target programs.
5917 # Use linker script if present, otherwise use builtin -N script.
5918 { echo "$as_me:$LINENO: checking for option to link raw image" >&5
5919 echo $ECHO_N "checking for option to link raw image... $ECHO_C" >&6; }
5920 if test -f "${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
5921 TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
5922 TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
5923 TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
5924 else
5925 TARGET_IMG_LDSCRIPT=
5926 TARGET_IMG_LDFLAGS='-Wl,-N'
5927 TARGET_IMG_LDFLAGS_AC='-Wl,-N'
5931 { echo "$as_me:$LINENO: result: $TARGET_IMG_LDFLAGS_AC" >&5
5932 echo "${ECHO_T}$TARGET_IMG_LDFLAGS_AC" >&6; }
5934 # For platforms where ELF is not the default link format.
5935 { echo "$as_me:$LINENO: checking for command to convert module to ELF format" >&5
5936 echo $ECHO_N "checking for command to convert module to ELF format... $ECHO_C" >&6; }
5937 case "${host_os}" in
5938 cygwin) TARGET_OBJ2ELF='grub-pe2elf' ;;
5939 *) ;;
5940 esac
5942 { echo "$as_me:$LINENO: result: $TARGET_OBJ2ELF" >&5
5943 echo "${ECHO_T}$TARGET_OBJ2ELF" >&6; }
5945 # For cross-compiling.
5946 if test "x$build" != "x$host"; then
5947 # XXX this depends on the implementation of autoconf!
5948 tmp_ac_tool_prefix="$ac_tool_prefix"
5949 ac_tool_prefix=$target_alias-
5951 if test -n "$ac_tool_prefix"; then
5952 for ac_prog in gcc egcs cc
5954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5958 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 if test -n "$TARGET_CC"; then
5962 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5975 done
5976 done
5977 IFS=$as_save_IFS
5981 TARGET_CC=$ac_cv_prog_TARGET_CC
5982 if test -n "$TARGET_CC"; then
5983 { echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5984 echo "${ECHO_T}$TARGET_CC" >&6; }
5985 else
5986 { echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6; }
5991 test -n "$TARGET_CC" && break
5992 done
5994 if test -z "$TARGET_CC"; then
5995 ac_ct_TARGET_CC=$TARGET_CC
5996 for ac_prog in gcc egcs cc
5998 # Extract the first word of "$ac_prog", so it can be a program name with args.
5999 set dummy $ac_prog; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005 if test -n "$ac_ct_TARGET_CC"; then
6006 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 break 2
6019 done
6020 done
6021 IFS=$as_save_IFS
6025 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
6026 if test -n "$ac_ct_TARGET_CC"; then
6027 { echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
6028 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6; }
6029 else
6030 { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6035 test -n "$ac_ct_TARGET_CC" && break
6036 done
6038 if test "x$ac_ct_TARGET_CC" = x; then
6039 TARGET_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
6040 echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
6041 { (exit 1); exit 1; }; }"
6042 else
6043 case $cross_compiling:$ac_tool_warned in
6044 yes:)
6045 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6046 whose name does not start with the host triplet. If you think this
6047 configuration is useful to you, please write to autoconf@gnu.org." >&5
6048 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6049 whose name does not start with the host triplet. If you think this
6050 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6051 ac_tool_warned=yes ;;
6052 esac
6053 TARGET_CC=$ac_ct_TARGET_CC
6057 if test -n "$ac_tool_prefix"; then
6058 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6059 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6062 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065 if test -n "$OBJCOPY"; then
6066 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6079 done
6080 done
6081 IFS=$as_save_IFS
6085 OBJCOPY=$ac_cv_prog_OBJCOPY
6086 if test -n "$OBJCOPY"; then
6087 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6088 echo "${ECHO_T}$OBJCOPY" >&6; }
6089 else
6090 { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6096 if test -z "$ac_cv_prog_OBJCOPY"; then
6097 ac_ct_OBJCOPY=$OBJCOPY
6098 # Extract the first word of "objcopy", so it can be a program name with args.
6099 set dummy objcopy; ac_word=$2
6100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6102 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105 if test -n "$ac_ct_OBJCOPY"; then
6106 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6119 done
6120 done
6121 IFS=$as_save_IFS
6125 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6126 if test -n "$ac_ct_OBJCOPY"; then
6127 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6128 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6129 else
6130 { echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6; }
6134 if test "x$ac_ct_OBJCOPY" = x; then
6135 OBJCOPY=""
6136 else
6137 case $cross_compiling:$ac_tool_warned in
6138 yes:)
6139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6140 whose name does not start with the host triplet. If you think this
6141 configuration is useful to you, please write to autoconf@gnu.org." >&5
6142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6143 whose name does not start with the host triplet. If you think this
6144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6145 ac_tool_warned=yes ;;
6146 esac
6147 OBJCOPY=$ac_ct_OBJCOPY
6149 else
6150 OBJCOPY="$ac_cv_prog_OBJCOPY"
6153 if test -n "$ac_tool_prefix"; then
6154 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6155 set dummy ${ac_tool_prefix}strip; ac_word=$2
6156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_STRIP+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161 if test -n "$STRIP"; then
6162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6175 done
6176 done
6177 IFS=$as_save_IFS
6181 STRIP=$ac_cv_prog_STRIP
6182 if test -n "$STRIP"; then
6183 { echo "$as_me:$LINENO: result: $STRIP" >&5
6184 echo "${ECHO_T}$STRIP" >&6; }
6185 else
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6192 if test -z "$ac_cv_prog_STRIP"; then
6193 ac_ct_STRIP=$STRIP
6194 # Extract the first word of "strip", so it can be a program name with args.
6195 set dummy strip; ac_word=$2
6196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6198 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 if test -n "$ac_ct_STRIP"; then
6202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211 ac_cv_prog_ac_ct_STRIP="strip"
6212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 break 2
6215 done
6216 done
6217 IFS=$as_save_IFS
6221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6222 if test -n "$ac_ct_STRIP"; then
6223 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6224 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6225 else
6226 { echo "$as_me:$LINENO: result: no" >&5
6227 echo "${ECHO_T}no" >&6; }
6230 if test "x$ac_ct_STRIP" = x; then
6231 STRIP=""
6232 else
6233 case $cross_compiling:$ac_tool_warned in
6234 yes:)
6235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6236 whose name does not start with the host triplet. If you think this
6237 configuration is useful to you, please write to autoconf@gnu.org." >&5
6238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6239 whose name does not start with the host triplet. If you think this
6240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6241 ac_tool_warned=yes ;;
6242 esac
6243 STRIP=$ac_ct_STRIP
6245 else
6246 STRIP="$ac_cv_prog_STRIP"
6249 if test -n "$ac_tool_prefix"; then
6250 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6251 set dummy ${ac_tool_prefix}nm; ac_word=$2
6252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6254 if test "${ac_cv_prog_NM+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257 if test -n "$NM"; then
6258 ac_cv_prog_NM="$NM" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_NM="${ac_tool_prefix}nm"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6271 done
6272 done
6273 IFS=$as_save_IFS
6277 NM=$ac_cv_prog_NM
6278 if test -n "$NM"; then
6279 { echo "$as_me:$LINENO: result: $NM" >&5
6280 echo "${ECHO_T}$NM" >&6; }
6281 else
6282 { echo "$as_me:$LINENO: result: no" >&5
6283 echo "${ECHO_T}no" >&6; }
6288 if test -z "$ac_cv_prog_NM"; then
6289 ac_ct_NM=$NM
6290 # Extract the first word of "nm", so it can be a program name with args.
6291 set dummy nm; ac_word=$2
6292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6294 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297 if test -n "$ac_ct_NM"; then
6298 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_prog_ac_ct_NM="nm"
6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 break 2
6311 done
6312 done
6313 IFS=$as_save_IFS
6317 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6318 if test -n "$ac_ct_NM"; then
6319 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6320 echo "${ECHO_T}$ac_ct_NM" >&6; }
6321 else
6322 { echo "$as_me:$LINENO: result: no" >&5
6323 echo "${ECHO_T}no" >&6; }
6326 if test "x$ac_ct_NM" = x; then
6327 NM=""
6328 else
6329 case $cross_compiling:$ac_tool_warned in
6330 yes:)
6331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6332 whose name does not start with the host triplet. If you think this
6333 configuration is useful to you, please write to autoconf@gnu.org." >&5
6334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6335 whose name does not start with the host triplet. If you think this
6336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6337 ac_tool_warned=yes ;;
6338 esac
6339 NM=$ac_ct_NM
6341 else
6342 NM="$ac_cv_prog_NM"
6346 ac_tool_prefix="$tmp_ac_tool_prefix"
6347 else
6348 if test "x$TARGET_CC" = x; then
6349 TARGET_CC=$CC
6351 if test -n "$ac_tool_prefix"; then
6352 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6356 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359 if test -n "$OBJCOPY"; then
6360 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6373 done
6374 done
6375 IFS=$as_save_IFS
6379 OBJCOPY=$ac_cv_prog_OBJCOPY
6380 if test -n "$OBJCOPY"; then
6381 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6382 echo "${ECHO_T}$OBJCOPY" >&6; }
6383 else
6384 { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6390 if test -z "$ac_cv_prog_OBJCOPY"; then
6391 ac_ct_OBJCOPY=$OBJCOPY
6392 # Extract the first word of "objcopy", so it can be a program name with args.
6393 set dummy objcopy; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399 if test -n "$ac_ct_OBJCOPY"; then
6400 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6413 done
6414 done
6415 IFS=$as_save_IFS
6419 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6420 if test -n "$ac_ct_OBJCOPY"; then
6421 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6422 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6423 else
6424 { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6428 if test "x$ac_ct_OBJCOPY" = x; then
6429 OBJCOPY=""
6430 else
6431 case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6434 whose name does not start with the host triplet. If you think this
6435 configuration is useful to you, please write to autoconf@gnu.org." >&5
6436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6437 whose name does not start with the host triplet. If you think this
6438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6439 ac_tool_warned=yes ;;
6440 esac
6441 OBJCOPY=$ac_ct_OBJCOPY
6443 else
6444 OBJCOPY="$ac_cv_prog_OBJCOPY"
6447 if test -n "$ac_tool_prefix"; then
6448 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}strip; ac_word=$2
6450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6452 if test "${ac_cv_prog_STRIP+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455 if test -n "$STRIP"; then
6456 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
6469 done
6470 done
6471 IFS=$as_save_IFS
6475 STRIP=$ac_cv_prog_STRIP
6476 if test -n "$STRIP"; then
6477 { echo "$as_me:$LINENO: result: $STRIP" >&5
6478 echo "${ECHO_T}$STRIP" >&6; }
6479 else
6480 { echo "$as_me:$LINENO: result: no" >&5
6481 echo "${ECHO_T}no" >&6; }
6486 if test -z "$ac_cv_prog_STRIP"; then
6487 ac_ct_STRIP=$STRIP
6488 # Extract the first word of "strip", so it can be a program name with args.
6489 set dummy strip; ac_word=$2
6490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6492 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495 if test -n "$ac_ct_STRIP"; then
6496 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_prog_ac_ct_STRIP="strip"
6506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6509 done
6510 done
6511 IFS=$as_save_IFS
6515 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6516 if test -n "$ac_ct_STRIP"; then
6517 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6518 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6519 else
6520 { echo "$as_me:$LINENO: result: no" >&5
6521 echo "${ECHO_T}no" >&6; }
6524 if test "x$ac_ct_STRIP" = x; then
6525 STRIP=""
6526 else
6527 case $cross_compiling:$ac_tool_warned in
6528 yes:)
6529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6530 whose name does not start with the host triplet. If you think this
6531 configuration is useful to you, please write to autoconf@gnu.org." >&5
6532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6533 whose name does not start with the host triplet. If you think this
6534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6535 ac_tool_warned=yes ;;
6536 esac
6537 STRIP=$ac_ct_STRIP
6539 else
6540 STRIP="$ac_cv_prog_STRIP"
6543 if test -n "$ac_tool_prefix"; then
6544 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6545 set dummy ${ac_tool_prefix}nm; ac_word=$2
6546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548 if test "${ac_cv_prog_NM+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 if test -n "$NM"; then
6552 ac_cv_prog_NM="$NM" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_prog_NM="${ac_tool_prefix}nm"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6565 done
6566 done
6567 IFS=$as_save_IFS
6571 NM=$ac_cv_prog_NM
6572 if test -n "$NM"; then
6573 { echo "$as_me:$LINENO: result: $NM" >&5
6574 echo "${ECHO_T}$NM" >&6; }
6575 else
6576 { echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6; }
6582 if test -z "$ac_cv_prog_NM"; then
6583 ac_ct_NM=$NM
6584 # Extract the first word of "nm", so it can be a program name with args.
6585 set dummy nm; ac_word=$2
6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591 if test -n "$ac_ct_NM"; then
6592 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_prog_ac_ct_NM="nm"
6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 break 2
6605 done
6606 done
6607 IFS=$as_save_IFS
6611 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6612 if test -n "$ac_ct_NM"; then
6613 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6614 echo "${ECHO_T}$ac_ct_NM" >&6; }
6615 else
6616 { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6620 if test "x$ac_ct_NM" = x; then
6621 NM=""
6622 else
6623 case $cross_compiling:$ac_tool_warned in
6624 yes:)
6625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6626 whose name does not start with the host triplet. If you think this
6627 configuration is useful to you, please write to autoconf@gnu.org." >&5
6628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6629 whose name does not start with the host triplet. If you think this
6630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633 NM=$ac_ct_NM
6635 else
6636 NM="$ac_cv_prog_NM"
6643 # Test the C compiler for the target environment.
6644 tmp_CC="$CC"
6645 tmp_CFLAGS="$CFLAGS"
6646 tmp_LDFLAGS="$LDFLAGS"
6647 tmp_CPPFLAGS="$CPPFLAGS"
6648 tmp_LIBS="$LIBS"
6649 CC="$TARGET_CC"
6650 CFLAGS="$TARGET_CFLAGS"
6651 CPPFLAGS="$TARGET_CPPFLAGS"
6652 LDFLAGS="$TARGET_LDFLAGS"
6653 LIBS=""
6655 if test "x$TARGET_CFLAGS" = x; then
6656 # debug flags.
6657 TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
6658 -Wundef -Wstrict-prototypes -g"
6660 # optimization flags.
6661 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
6662 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
6663 if test "${grub_cv_cc_Os+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 else
6667 CFLAGS=-Os
6668 cat >conftest.$ac_ext <<_ACEOF
6669 /* confdefs.h. */
6670 _ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6676 main ()
6680 return 0;
6682 _ACEOF
6683 rm -f conftest.$ac_objext
6684 if { (ac_try="$ac_compile"
6685 case "(($ac_try" in
6686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687 *) ac_try_echo=$ac_try;;
6688 esac
6689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6690 (eval "$ac_compile") 2>conftest.er1
6691 ac_status=$?
6692 grep -v '^ *+' conftest.er1 >conftest.err
6693 rm -f conftest.er1
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && {
6697 test -z "$ac_c_werror_flag" ||
6698 test ! -s conftest.err
6699 } && test -s conftest.$ac_objext; then
6700 grub_cv_cc_Os=yes
6701 else
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6705 grub_cv_cc_Os=no
6708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711 { echo "$as_me:$LINENO: result: $grub_cv_cc_Os" >&5
6712 echo "${ECHO_T}$grub_cv_cc_Os" >&6; }
6713 if test "x$grub_cv_cc_Os" = xyes; then
6714 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
6715 else
6716 TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
6719 # Force no alignment to save space on i386.
6720 if test "x$target_cpu" = xi386; then
6721 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
6722 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
6723 if test "${grub_cv_cc_falign_loop+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6727 CFLAGS="-falign-loops=1"
6728 cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h. */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6736 main ()
6740 return 0;
6742 _ACEOF
6743 rm -f conftest.$ac_objext
6744 if { (ac_try="$ac_compile"
6745 case "(($ac_try" in
6746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747 *) ac_try_echo=$ac_try;;
6748 esac
6749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6750 (eval "$ac_compile") 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } && {
6757 test -z "$ac_c_werror_flag" ||
6758 test ! -s conftest.err
6759 } && test -s conftest.$ac_objext; then
6760 grub_cv_cc_falign_loop=yes
6761 else
6762 echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.$ac_ext >&5
6765 grub_cv_cc_falign_loop=no
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 { echo "$as_me:$LINENO: result: $grub_cv_cc_falign_loop" >&5
6772 echo "${ECHO_T}$grub_cv_cc_falign_loop" >&6; }
6774 if test "x$grub_cv_cc_falign_loop" = xyes; then
6775 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
6776 else
6777 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
6782 if test "x$target_m32" = x1; then
6783 # Force 32-bit mode.
6784 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
6785 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
6788 if test "x$target_m64" = x1; then
6789 # Force 64-bit mode.
6790 TARGET_CFLAGS="$TARGET_CFLAGS -m64"
6791 TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
6794 if test "$target_cpu"-"$platform" = x86_64-efi; then
6795 # Use large model to support 4G memory
6796 { echo "$as_me:$LINENO: checking whether option -mcmodel=large works" >&5
6797 echo $ECHO_N "checking whether option -mcmodel=large works... $ECHO_C" >&6; }
6798 if test "${grub_cv_cc_mcmodel+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6802 CFLAGS="-m64 -mcmodel=large"
6803 cat >conftest.$ac_ext <<_ACEOF
6804 /* confdefs.h. */
6805 _ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6811 main ()
6815 return 0;
6817 _ACEOF
6818 rm -f conftest.$ac_objext
6819 if { (ac_try="$ac_compile"
6820 case "(($ac_try" in
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6823 esac
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825 (eval "$ac_compile") 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } && {
6832 test -z "$ac_c_werror_flag" ||
6833 test ! -s conftest.err
6834 } && test -s conftest.$ac_objext; then
6835 grub_cv_cc_mcmodel=yes
6836 else
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6840 grub_cv_cc_mcmodel=no
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846 { echo "$as_me:$LINENO: result: $grub_cv_cc_mcmodel" >&5
6847 echo "${ECHO_T}$grub_cv_cc_mcmodel" >&6; }
6848 if test "x$grub_cv_cc_no_mcmodel" = xno; then
6849 { { echo "$as_me:$LINENO: error: -mcmodel=large not supported, upgrade your gcc" >&5
6850 echo "$as_me: error: -mcmodel=large not supported, upgrade your gcc" >&2;}
6851 { (exit 1); exit 1; }; }
6854 # EFI writes to stack below %rsp, we must not use the red zone
6855 { echo "$as_me:$LINENO: checking whether option -mno-red-zone works" >&5
6856 echo $ECHO_N "checking whether option -mno-red-zone works... $ECHO_C" >&6; }
6857 if test "${grub_cv_cc_no_red_zone+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6861 CFLAGS="-m64 -mno-red-zone"
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h. */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6870 main ()
6874 return 0;
6876 _ACEOF
6877 rm -f conftest.$ac_objext
6878 if { (ac_try="$ac_compile"
6879 case "(($ac_try" in
6880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6881 *) ac_try_echo=$ac_try;;
6882 esac
6883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6884 (eval "$ac_compile") 2>conftest.er1
6885 ac_status=$?
6886 grep -v '^ *+' conftest.er1 >conftest.err
6887 rm -f conftest.er1
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } && {
6891 test -z "$ac_c_werror_flag" ||
6892 test ! -s conftest.err
6893 } && test -s conftest.$ac_objext; then
6894 grub_cv_cc_no_red_zone=yes
6895 else
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6899 grub_cv_cc_no_red_zone=no
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905 { echo "$as_me:$LINENO: result: $grub_cv_cc_no_red_zone" >&5
6906 echo "${ECHO_T}$grub_cv_cc_no_red_zone" >&6; }
6907 if test "x$grub_cv_cc_no_red_zone" = xno; then
6908 { { echo "$as_me:$LINENO: error: -mno-red-zone not supported, upgrade your gcc" >&5
6909 echo "$as_me: error: -mno-red-zone not supported, upgrade your gcc" >&2;}
6910 { (exit 1); exit 1; }; }
6913 TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large -mno-red-zone"
6917 # Compiler features.
6920 # Need __enable_execute_stack() for nested function trampolines?
6922 { echo "$as_me:$LINENO: checking whether \`$CC' generates calls to \`__enable_execute_stack()'" >&5
6923 echo $ECHO_N "checking whether \`$CC' generates calls to \`__enable_execute_stack()'... $ECHO_C" >&6; }
6924 cat >conftest.$ac_ext <<_ACEOF
6926 void f (int (*p) (void));
6927 void g (int i)
6929 int nestedfunc (void) { return i; }
6930 f (nestedfunc);
6933 _ACEOF
6934 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 (eval $ac_try) 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; } && test -s conftest.s; then
6940 true
6941 else
6942 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
6943 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
6944 { (exit 1); exit 1; }; }
6946 if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
6948 cat >>confdefs.h <<\_ACEOF
6949 #define NEED_ENABLE_EXECUTE_STACK 1
6950 _ACEOF
6952 { echo "$as_me:$LINENO: result: yes" >&5
6953 echo "${ECHO_T}yes" >&6; }
6954 else
6955 { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6958 rm -f conftest*
6961 # Smashing stack protector.
6963 # Smashing stack protector.
6964 ssp_possible=yes
6965 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-fstack-protector'" >&5
6966 echo $ECHO_N "checking whether \`$CC' accepts \`-fstack-protector'... $ECHO_C" >&6; }
6967 # Is this a reliable test case?
6968 cat >conftest.$ac_ext <<_ACEOF
6969 void foo (void) { volatile char a[8]; a[3]; }
6970 _ACEOF
6971 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
6972 # `ac_compile' like this correct, after all?
6973 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
6974 { echo "$as_me:$LINENO: result: yes" >&5
6975 echo "${ECHO_T}yes" >&6; }
6976 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6977 rm -f conftest.s
6978 else
6979 ssp_possible=no
6980 { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6984 # Need that, because some distributions ship compilers that include
6985 # `-fstack-protector' in the default specs.
6986 if test "x$ssp_possible" = xyes; then
6987 TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
6990 # Smashing stack arg probe.
6991 sap_possible=yes
6992 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
6993 echo $ECHO_N "checking whether \`$CC' accepts \`-mstack-arg-probe'... $ECHO_C" >&6; }
6994 cat >conftest.$ac_ext <<_ACEOF
6995 void foo (void) { volatile char a[8]; a[3]; }
6996 _ACEOF
6997 if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then
6998 { echo "$as_me:$LINENO: result: yes" >&5
6999 echo "${ECHO_T}yes" >&6; }
7000 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
7001 rm -f conftest.s
7002 else
7003 sap_possible=no
7004 { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7008 # Cygwin's GCC uses alloca() to probe the stackframe on static
7009 # stack allocations above some threshold.
7010 if test x"$sap_possible" = xyes; then
7011 TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
7018 # Set them to their new values for the tests below.
7019 CC="$TARGET_CC"
7020 CFLAGS="$TARGET_CFLAGS"
7021 CPPFLAGS="$TARGET_CPPFLAGS"
7022 LDFLAGS="$TARGET_LDFLAGS"
7024 # Defined in aclocal.m4.
7025 { echo "$as_me:$LINENO: checking whether target compiler is working" >&5
7026 echo $ECHO_N "checking whether target compiler is working... $ECHO_C" >&6; }
7027 if test "${grub_cv_prog_target_cc+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030 cat >conftest.$ac_ext <<_ACEOF
7031 /* confdefs.h. */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7038 main ()
7042 return 0;
7044 _ACEOF
7045 rm -f conftest.$ac_objext conftest$ac_exeext
7046 if { (ac_try="$ac_link"
7047 case "(($ac_try" in
7048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049 *) ac_try_echo=$ac_try;;
7050 esac
7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052 (eval "$ac_link") 2>conftest.er1
7053 ac_status=$?
7054 grep -v '^ *+' conftest.er1 >conftest.err
7055 rm -f conftest.er1
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } && {
7059 test -z "$ac_c_werror_flag" ||
7060 test ! -s conftest.err
7061 } && test -s conftest$ac_exeext &&
7062 $as_test_x conftest$ac_exeext; then
7063 grub_cv_prog_target_cc=yes
7064 else
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 grub_cv_prog_target_cc=no
7071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7072 conftest$ac_exeext conftest.$ac_ext
7076 { echo "$as_me:$LINENO: result: $grub_cv_prog_target_cc" >&5
7077 echo "${ECHO_T}$grub_cv_prog_target_cc" >&6; }
7079 if test "x$grub_cv_prog_target_cc" = xno; then
7080 { { echo "$as_me:$LINENO: error: cannot compile for the target" >&5
7081 echo "$as_me: error: cannot compile for the target" >&2;}
7082 { (exit 1); exit 1; }; }
7085 { echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
7086 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6; }
7087 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 cat > conftest.c <<\EOF
7091 void
7092 cmain (void)
7094 *((int *) 0x1000) = 2;
7098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7099 (eval $ac_compile) 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } && test -s conftest.o; then :
7103 else
7104 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
7105 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
7106 { (exit 1); exit 1; }; }
7108 grub_cv_prog_objcopy_absolute=yes
7109 for link_addr in 2000 8000 7C00; do
7110 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
7111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112 (eval $ac_try) 2>&5
7113 ac_status=$?
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); }; }; then :
7116 else
7117 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
7118 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
7119 { (exit 1); exit 1; }; }
7121 if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then :
7127 else
7128 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
7129 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
7130 { (exit 1); exit 1; }; }
7132 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 (eval $ac_try) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 mv -f conftest conftest.old
7139 else
7140 grub_cv_prog_objcopy_absolute=no
7141 break
7143 done
7144 rm -f conftest*
7147 { echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
7148 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
7150 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
7151 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
7152 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
7153 { (exit 1); exit 1; }; }
7156 { echo "$as_me:$LINENO: checking whether linker accepts --build-id=none" >&5
7157 echo $ECHO_N "checking whether linker accepts --build-id=none... $ECHO_C" >&6; }
7158 if test "${grub_cv_prog_ld_build_id_none+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161 save_LDFLAGS="$LDFLAGS"
7162 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
7163 cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h. */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7171 main ()
7175 return 0;
7177 _ACEOF
7178 rm -f conftest.$ac_objext conftest$ac_exeext
7179 if { (ac_try="$ac_link"
7180 case "(($ac_try" in
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7183 esac
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_link") 2>conftest.er1
7186 ac_status=$?
7187 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -f conftest.er1
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && {
7192 test -z "$ac_c_werror_flag" ||
7193 test ! -s conftest.err
7194 } && test -s conftest$ac_exeext &&
7195 $as_test_x conftest$ac_exeext; then
7196 grub_cv_prog_ld_build_id_none=yes
7197 else
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7201 grub_cv_prog_ld_build_id_none=no
7204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7205 conftest$ac_exeext conftest.$ac_ext
7206 LDFLAGS="$save_LDFLAGS"
7210 { echo "$as_me:$LINENO: result: $grub_cv_prog_ld_build_id_none" >&5
7211 echo "${ECHO_T}$grub_cv_prog_ld_build_id_none" >&6; }
7213 if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
7214 TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
7218 { echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
7219 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6; }
7220 if test "${grub_cv_asm_uscore+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223 cat > conftest.c <<\EOF
7225 func (int *list)
7227 *list = 0;
7228 return *list;
7232 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; } && test -s conftest.s; then
7238 true
7239 else
7240 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
7241 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
7242 { (exit 1); exit 1; }; }
7245 if grep _func conftest.s >/dev/null 2>&1; then
7246 grub_cv_asm_uscore=yes
7247 else
7248 grub_cv_asm_uscore=no
7251 rm -f conftest*
7255 if test "x$grub_cv_asm_uscore" = xyes; then
7257 cat >>confdefs.h <<_ACEOF
7258 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
7259 _ACEOF
7263 { echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
7264 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
7266 if test "x$target_cpu" = xi386; then
7267 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
7268 # Check symbols provided by linker script.
7269 CFLAGS="$TARGET_CFLAGS -nostdlib $TARGET_IMG_LDFLAGS_AC -Wl,-Ttext,8000,--defsym,___main=0x8100"
7271 if test "x$platform" = xpc; then
7273 { echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
7274 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6; }
7275 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278 cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h. */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7286 main ()
7288 asm ("incl __bss_start")
7290 return 0;
7292 _ACEOF
7293 rm -f conftest.$ac_objext conftest$ac_exeext
7294 if { (ac_try="$ac_link"
7295 case "(($ac_try" in
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7298 esac
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_link") 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest$ac_exeext &&
7310 $as_test_x conftest$ac_exeext; then
7311 grub_cv_check_uscore_uscore_bss_start_symbol=yes
7312 else
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7316 grub_cv_check_uscore_uscore_bss_start_symbol=no
7319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7320 conftest$ac_exeext conftest.$ac_ext
7324 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
7325 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
7327 { echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
7328 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6; }
7329 if test "${grub_cv_check_edata_symbol+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7340 main ()
7342 asm ("incl edata")
7344 return 0;
7346 _ACEOF
7347 rm -f conftest.$ac_objext conftest$ac_exeext
7348 if { (ac_try="$ac_link"
7349 case "(($ac_try" in
7350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7352 esac
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354 (eval "$ac_link") 2>conftest.er1
7355 ac_status=$?
7356 grep -v '^ *+' conftest.er1 >conftest.err
7357 rm -f conftest.er1
7358 cat conftest.err >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest$ac_exeext &&
7364 $as_test_x conftest$ac_exeext; then
7365 grub_cv_check_edata_symbol=yes
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 grub_cv_check_edata_symbol=no
7373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7374 conftest$ac_exeext conftest.$ac_ext
7378 { echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
7379 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
7381 { echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
7382 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6; }
7383 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7394 main ()
7396 asm ("incl _edata")
7398 return 0;
7400 _ACEOF
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (ac_try="$ac_link"
7403 case "(($ac_try" in
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7406 esac
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_link") 2>conftest.er1
7409 ac_status=$?
7410 grep -v '^ *+' conftest.er1 >conftest.err
7411 rm -f conftest.er1
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } && {
7415 test -z "$ac_c_werror_flag" ||
7416 test ! -s conftest.err
7417 } && test -s conftest$ac_exeext &&
7418 $as_test_x conftest$ac_exeext; then
7419 grub_cv_check_uscore_edata_symbol=yes
7420 else
7421 echo "$as_me: failed program was:" >&5
7422 sed 's/^/| /' conftest.$ac_ext >&5
7424 grub_cv_check_uscore_edata_symbol=no
7427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7428 conftest$ac_exeext conftest.$ac_ext
7432 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
7433 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
7438 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
7439 cat >>confdefs.h <<\_ACEOF
7440 #define BSS_START_SYMBOL __bss_start
7441 _ACEOF
7443 elif test "x$grub_cv_check_edata_symbol" = xyes; then
7444 cat >>confdefs.h <<\_ACEOF
7445 #define BSS_START_SYMBOL edata
7446 _ACEOF
7448 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
7449 cat >>confdefs.h <<\_ACEOF
7450 #define BSS_START_SYMBOL _edata
7451 _ACEOF
7453 else
7454 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
7455 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
7456 { (exit 1); exit 1; }; }
7460 { echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
7461 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6; }
7462 if test "${grub_cv_check_end_symbol+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465 cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h. */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7473 main ()
7475 asm ("incl end")
7477 return 0;
7479 _ACEOF
7480 rm -f conftest.$ac_objext conftest$ac_exeext
7481 if { (ac_try="$ac_link"
7482 case "(($ac_try" in
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7485 esac
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487 (eval "$ac_link") 2>conftest.er1
7488 ac_status=$?
7489 grep -v '^ *+' conftest.er1 >conftest.err
7490 rm -f conftest.er1
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest$ac_exeext &&
7497 $as_test_x conftest$ac_exeext; then
7498 grub_cv_check_end_symbol=yes
7499 else
7500 echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7503 grub_cv_check_end_symbol=no
7506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7507 conftest$ac_exeext conftest.$ac_ext
7511 { echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
7512 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
7514 { echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
7515 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6; }
7516 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519 cat >conftest.$ac_ext <<_ACEOF
7520 /* confdefs.h. */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7527 main ()
7529 asm ("incl _end")
7531 return 0;
7533 _ACEOF
7534 rm -f conftest.$ac_objext conftest$ac_exeext
7535 if { (ac_try="$ac_link"
7536 case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539 esac
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_link") 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest$ac_exeext &&
7551 $as_test_x conftest$ac_exeext; then
7552 grub_cv_check_uscore_end_symbol=yes
7553 else
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 grub_cv_check_uscore_end_symbol=no
7560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7561 conftest$ac_exeext conftest.$ac_ext
7565 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
7566 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
7571 if test "x$grub_cv_check_end_symbol" = xyes; then
7572 cat >>confdefs.h <<\_ACEOF
7573 #define END_SYMBOL end
7574 _ACEOF
7576 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
7577 cat >>confdefs.h <<\_ACEOF
7578 #define END_SYMBOL _end
7579 _ACEOF
7581 else
7582 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
7583 echo "$as_me: error: neither end nor _end is defined" >&2;}
7584 { (exit 1); exit 1; }; }
7588 CFLAGS="$TARGET_CFLAGS"
7590 { echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
7591 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6; }
7592 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595 cat > conftest.s <<\EOF
7596 .code16
7597 l1: addr32 movb %al, l1
7600 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; } && test -s conftest.o; then
7606 grub_cv_i386_asm_prefix_requirement=yes
7607 else
7608 grub_cv_i386_asm_prefix_requirement=no
7611 rm -f conftest*
7615 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7616 grub_tmp_addr32="addr32"
7617 grub_tmp_data32="data32"
7618 else
7619 grub_tmp_addr32="addr32;"
7620 grub_tmp_data32="data32;"
7624 cat >>confdefs.h <<_ACEOF
7625 #define ADDR32 $grub_tmp_addr32
7626 _ACEOF
7629 cat >>confdefs.h <<_ACEOF
7630 #define DATA32 $grub_tmp_data32
7631 _ACEOF
7634 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
7635 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6; }
7638 { echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
7639 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6; }
7640 if test "${grub_cv_i386_asm_addr32+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643 cat > conftest.s.in <<\EOF
7644 .code16
7645 l1: @ADDR32@ movb %al, l1
7648 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7649 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
7650 else
7651 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
7654 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 (eval $ac_try) 2>&5
7657 ac_status=$?
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; } && test -s conftest.o; then
7660 grub_cv_i386_asm_addr32=yes
7661 else
7662 grub_cv_i386_asm_addr32=no
7665 rm -f conftest*
7669 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
7670 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6; }
7672 { echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
7673 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6; }
7674 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677 cat > conftest.s <<\EOF
7678 lcall *(offset)
7679 offset:
7680 .long 0
7681 .word 0
7684 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } && test -s conftest.o; then
7690 grub_cv_i386_asm_absolute_without_asterisk=no
7691 else
7692 grub_cv_i386_asm_absolute_without_asterisk=yes
7695 rm -f conftest*
7699 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
7701 cat >>confdefs.h <<\_ACEOF
7702 #define ABSOLUTE_WITHOUT_ASTERISK 1
7703 _ACEOF
7707 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
7708 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
7710 { echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
7711 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6; }
7712 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715 if test "$cross_compiling" = yes; then
7716 grub_cv_i386_check_nested_functions=yes
7717 else
7718 cat >conftest.$ac_ext <<_ACEOF
7719 /* confdefs.h. */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7725 static int
7726 test (int *n)
7728 return *n == -1;
7731 static int
7732 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
7734 int a = 0;
7735 int b = 0;
7736 int c = -1;
7737 return hook (a, b, &c);
7741 main (void)
7743 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
7745 return a == b && test (c);
7747 return testfunc (nestedfunc) ? 0 : 1;
7750 _ACEOF
7751 rm -f conftest$ac_exeext
7752 if { (ac_try="$ac_link"
7753 case "(($ac_try" in
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7756 esac
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_link") 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7762 { (case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765 esac
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_try") 2>&5
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; }; then
7771 grub_cv_i386_check_nested_functions=no
7772 else
7773 echo "$as_me: program exited with status $ac_status" >&5
7774 echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7777 ( exit $ac_status )
7778 grub_cv_i386_check_nested_functions=yes
7780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7787 { echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5
7788 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6; }
7790 if test "x$grub_cv_i386_check_nested_functions" = xyes; then
7792 cat >>confdefs.h <<\_ACEOF
7793 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7794 _ACEOF
7796 else
7798 cat >>confdefs.h <<\_ACEOF
7799 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7800 _ACEOF
7804 else
7806 cat >>confdefs.h <<\_ACEOF
7807 #define NESTED_FUNC_ATTR
7808 _ACEOF
7812 # Restore the flags.
7813 CC="$tmp_CC"
7814 CFLAGS="$tmp_CFLAGS"
7815 CPPFLAGS="$tmp_CPPFLAGS"
7816 LDFLAGS="$tmp_LDFLAGS"
7817 LIBS="$tmp_LIBS"
7820 # Check for options.
7823 # Memory manager debugging.
7824 # Check whether --enable-mm-debug was given.
7825 if test "${enable_mm_debug+set}" = set; then
7826 enableval=$enable_mm_debug;
7827 cat >>confdefs.h <<\_ACEOF
7828 #define MM_DEBUG 1
7829 _ACEOF
7834 # Check whether --enable-grub-emu was given.
7835 if test "${enable_grub_emu+set}" = set; then
7836 enableval=$enable_grub_emu;
7839 # Check whether --enable-grub-emu-usb was given.
7840 if test "${enable_grub_emu_usb+set}" = set; then
7841 enableval=$enable_grub_emu_usb;
7844 if [ x"$enable_grub_emu" = xyes ]; then
7845 # Check for curses libraries.
7846 { echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
7847 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6; }
7848 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 else
7851 ac_check_lib_save_LIBS=$LIBS
7852 LIBS="-lncurses $LIBS"
7853 cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h. */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7860 /* Override any GCC internal prototype to avoid an error.
7861 Use char because int might match the return type of a GCC
7862 builtin and then its argument prototype would still apply. */
7863 #ifdef __cplusplus
7864 extern "C"
7865 #endif
7866 char wgetch ();
7868 main ()
7870 return wgetch ();
7872 return 0;
7874 _ACEOF
7875 rm -f conftest.$ac_objext conftest$ac_exeext
7876 if { (ac_try="$ac_link"
7877 case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7880 esac
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_link") 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && {
7889 test -z "$ac_c_werror_flag" ||
7890 test ! -s conftest.err
7891 } && test -s conftest$ac_exeext &&
7892 $as_test_x conftest$ac_exeext; then
7893 ac_cv_lib_ncurses_wgetch=yes
7894 else
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 ac_cv_lib_ncurses_wgetch=no
7901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7902 conftest$ac_exeext conftest.$ac_ext
7903 LIBS=$ac_check_lib_save_LIBS
7905 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
7906 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
7907 if test $ac_cv_lib_ncurses_wgetch = yes; then
7908 LIBCURSES="-lncurses"
7909 else
7910 { echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
7911 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6; }
7912 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915 ac_check_lib_save_LIBS=$LIBS
7916 LIBS="-lcurses $LIBS"
7917 cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h. */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7924 /* Override any GCC internal prototype to avoid an error.
7925 Use char because int might match the return type of a GCC
7926 builtin and then its argument prototype would still apply. */
7927 #ifdef __cplusplus
7928 extern "C"
7929 #endif
7930 char wgetch ();
7932 main ()
7934 return wgetch ();
7936 return 0;
7938 _ACEOF
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (ac_try="$ac_link"
7941 case "(($ac_try" in
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7944 esac
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_link") 2>conftest.er1
7947 ac_status=$?
7948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest$ac_exeext &&
7956 $as_test_x conftest$ac_exeext; then
7957 ac_cv_lib_curses_wgetch=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_cv_lib_curses_wgetch=no
7965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7966 conftest$ac_exeext conftest.$ac_ext
7967 LIBS=$ac_check_lib_save_LIBS
7969 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
7970 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
7971 if test $ac_cv_lib_curses_wgetch = yes; then
7972 LIBCURSES="-lcurses"
7973 else
7974 { { echo "$as_me:$LINENO: error: (n)curses libraries are required to build \`grub-emu'" >&5
7975 echo "$as_me: error: (n)curses libraries are required to build \`grub-emu'" >&2;}
7976 { (exit 1); exit 1; }; }
7983 # Check for headers.
7985 for ac_header in ncurses/curses.h
7987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 ac_res=`eval echo '${'$as_ac_Header'}'`
7995 { echo "$as_me:$LINENO: result: $ac_res" >&5
7996 echo "${ECHO_T}$ac_res" >&6; }
7997 else
7998 # Is the header compilable?
7999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8001 cat >conftest.$ac_ext <<_ACEOF
8002 /* confdefs.h. */
8003 _ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8007 $ac_includes_default
8008 #include <$ac_header>
8009 _ACEOF
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8012 case "(($ac_try" in
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8015 esac
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8018 ac_status=$?
8019 grep -v '^ *+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } && {
8024 test -z "$ac_c_werror_flag" ||
8025 test ! -s conftest.err
8026 } && test -s conftest.$ac_objext; then
8027 ac_header_compiler=yes
8028 else
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8032 ac_header_compiler=no
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8037 echo "${ECHO_T}$ac_header_compiler" >&6; }
8039 # Is the header present?
8040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8042 cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h. */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <$ac_header>
8049 _ACEOF
8050 if { (ac_try="$ac_cpp conftest.$ac_ext"
8051 case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8057 ac_status=$?
8058 grep -v '^ *+' conftest.er1 >conftest.err
8059 rm -f conftest.er1
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } >/dev/null && {
8063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8065 }; then
8066 ac_header_preproc=yes
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 ac_header_preproc=no
8074 rm -f conftest.err conftest.$ac_ext
8075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8076 echo "${ECHO_T}$ac_header_preproc" >&6; }
8078 # So? What about this header?
8079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8080 yes:no: )
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8085 ac_header_preproc=yes
8087 no:yes:* )
8088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8100 ( cat <<\_ASBOX
8101 ## ------------------------------- ##
8102 ## Report this to bug-grub@gnu.org ##
8103 ## ------------------------------- ##
8104 _ASBOX
8105 ) | sed "s/^/$as_me: WARNING: /" >&2
8107 esac
8108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113 eval "$as_ac_Header=\$ac_header_preproc"
8115 ac_res=`eval echo '${'$as_ac_Header'}'`
8116 { echo "$as_me:$LINENO: result: $ac_res" >&5
8117 echo "${ECHO_T}$ac_res" >&6; }
8120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8121 cat >>confdefs.h <<_ACEOF
8122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8123 _ACEOF
8125 else
8127 for ac_header in ncurses.h
8129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 ac_res=`eval echo '${'$as_ac_Header'}'`
8137 { echo "$as_me:$LINENO: result: $ac_res" >&5
8138 echo "${ECHO_T}$ac_res" >&6; }
8139 else
8140 # Is the header compilable?
8141 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 $ac_includes_default
8150 #include <$ac_header>
8151 _ACEOF
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8154 case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8157 esac
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_compile") 2>conftest.er1
8160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } && {
8166 test -z "$ac_c_werror_flag" ||
8167 test ! -s conftest.err
8168 } && test -s conftest.$ac_objext; then
8169 ac_header_compiler=yes
8170 else
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 ac_header_compiler=no
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8179 echo "${ECHO_T}$ac_header_compiler" >&6; }
8181 # Is the header present?
8182 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8184 cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h. */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 #include <$ac_header>
8191 _ACEOF
8192 if { (ac_try="$ac_cpp conftest.$ac_ext"
8193 case "(($ac_try" in
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8196 esac
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8199 ac_status=$?
8200 grep -v '^ *+' conftest.er1 >conftest.err
8201 rm -f conftest.er1
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } >/dev/null && {
8205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 }; then
8208 ac_header_preproc=yes
8209 else
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 ac_header_preproc=no
8216 rm -f conftest.err conftest.$ac_ext
8217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8218 echo "${ECHO_T}$ac_header_preproc" >&6; }
8220 # So? What about this header?
8221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8222 yes:no: )
8223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8227 ac_header_preproc=yes
8229 no:yes:* )
8230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8242 ( cat <<\_ASBOX
8243 ## ------------------------------- ##
8244 ## Report this to bug-grub@gnu.org ##
8245 ## ------------------------------- ##
8246 _ASBOX
8247 ) | sed "s/^/$as_me: WARNING: /" >&2
8249 esac
8250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255 eval "$as_ac_Header=\$ac_header_preproc"
8257 ac_res=`eval echo '${'$as_ac_Header'}'`
8258 { echo "$as_me:$LINENO: result: $ac_res" >&5
8259 echo "${ECHO_T}$ac_res" >&6; }
8262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8263 cat >>confdefs.h <<_ACEOF
8264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8265 _ACEOF
8267 else
8269 for ac_header in curses.h
8271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 ac_res=`eval echo '${'$as_ac_Header'}'`
8279 { echo "$as_me:$LINENO: result: $ac_res" >&5
8280 echo "${ECHO_T}$ac_res" >&6; }
8281 else
8282 # Is the header compilable?
8283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8285 cat >conftest.$ac_ext <<_ACEOF
8286 /* confdefs.h. */
8287 _ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8291 $ac_includes_default
8292 #include <$ac_header>
8293 _ACEOF
8294 rm -f conftest.$ac_objext
8295 if { (ac_try="$ac_compile"
8296 case "(($ac_try" in
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_compile") 2>conftest.er1
8302 ac_status=$?
8303 grep -v '^ *+' conftest.er1 >conftest.err
8304 rm -f conftest.er1
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest.$ac_objext; then
8311 ac_header_compiler=yes
8312 else
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 ac_header_compiler=no
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8321 echo "${ECHO_T}$ac_header_compiler" >&6; }
8323 # Is the header present?
8324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8326 cat >conftest.$ac_ext <<_ACEOF
8327 /* confdefs.h. */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8332 #include <$ac_header>
8333 _ACEOF
8334 if { (ac_try="$ac_cpp conftest.$ac_ext"
8335 case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338 esac
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } >/dev/null && {
8347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8348 test ! -s conftest.err
8349 }; then
8350 ac_header_preproc=yes
8351 else
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 ac_header_preproc=no
8358 rm -f conftest.err conftest.$ac_ext
8359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8360 echo "${ECHO_T}$ac_header_preproc" >&6; }
8362 # So? What about this header?
8363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8364 yes:no: )
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8369 ac_header_preproc=yes
8371 no:yes:* )
8372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8384 ( cat <<\_ASBOX
8385 ## ------------------------------- ##
8386 ## Report this to bug-grub@gnu.org ##
8387 ## ------------------------------- ##
8388 _ASBOX
8389 ) | sed "s/^/$as_me: WARNING: /" >&2
8391 esac
8392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397 eval "$as_ac_Header=\$ac_header_preproc"
8399 ac_res=`eval echo '${'$as_ac_Header'}'`
8400 { echo "$as_me:$LINENO: result: $ac_res" >&5
8401 echo "${ECHO_T}$ac_res" >&6; }
8404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8405 cat >>confdefs.h <<_ACEOF
8406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8407 _ACEOF
8409 else
8410 { { echo "$as_me:$LINENO: error: (n)curses header files are required to build \`grub-emu'" >&5
8411 echo "$as_me: error: (n)curses header files are required to build \`grub-emu'" >&2;}
8412 { (exit 1); exit 1; }; }
8415 done
8419 done
8423 done
8426 if [ x"$enable_grub_emu_usb" = xyes ]; then
8427 # Check for libusb libraries.
8428 { echo "$as_me:$LINENO: checking for usb_claim_interface in -lusb" >&5
8429 echo $ECHO_N "checking for usb_claim_interface in -lusb... $ECHO_C" >&6; }
8430 if test "${ac_cv_lib_usb_usb_claim_interface+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433 ac_check_lib_save_LIBS=$LIBS
8434 LIBS="-lusb $LIBS"
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h. */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8442 /* Override any GCC internal prototype to avoid an error.
8443 Use char because int might match the return type of a GCC
8444 builtin and then its argument prototype would still apply. */
8445 #ifdef __cplusplus
8446 extern "C"
8447 #endif
8448 char usb_claim_interface ();
8450 main ()
8452 return usb_claim_interface ();
8454 return 0;
8456 _ACEOF
8457 rm -f conftest.$ac_objext conftest$ac_exeext
8458 if { (ac_try="$ac_link"
8459 case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_link") 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && {
8471 test -z "$ac_c_werror_flag" ||
8472 test ! -s conftest.err
8473 } && test -s conftest$ac_exeext &&
8474 $as_test_x conftest$ac_exeext; then
8475 ac_cv_lib_usb_usb_claim_interface=yes
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 ac_cv_lib_usb_usb_claim_interface=no
8483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8484 conftest$ac_exeext conftest.$ac_ext
8485 LIBS=$ac_check_lib_save_LIBS
8487 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_claim_interface" >&5
8488 echo "${ECHO_T}$ac_cv_lib_usb_usb_claim_interface" >&6; }
8489 if test $ac_cv_lib_usb_usb_claim_interface = yes; then
8490 LIBUSB="-lusb"
8491 else
8492 { { echo "$as_me:$LINENO: error: libusb libraries are required to build \`grub-emu' with USB support" >&5
8493 echo "$as_me: error: libusb libraries are required to build \`grub-emu' with USB support" >&2;}
8494 { (exit 1); exit 1; }; }
8499 # Check for headers.
8501 for ac_header in usb.h
8503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 ac_res=`eval echo '${'$as_ac_Header'}'`
8511 { echo "$as_me:$LINENO: result: $ac_res" >&5
8512 echo "${ECHO_T}$ac_res" >&6; }
8513 else
8514 # Is the header compilable?
8515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h. */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 $ac_includes_default
8524 #include <$ac_header>
8525 _ACEOF
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
8528 case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531 esac
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_compile") 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && {
8540 test -z "$ac_c_werror_flag" ||
8541 test ! -s conftest.err
8542 } && test -s conftest.$ac_objext; then
8543 ac_header_compiler=yes
8544 else
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8548 ac_header_compiler=no
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8553 echo "${ECHO_T}$ac_header_compiler" >&6; }
8555 # Is the header present?
8556 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h. */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 #include <$ac_header>
8565 _ACEOF
8566 if { (ac_try="$ac_cpp conftest.$ac_ext"
8567 case "(($ac_try" in
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8570 esac
8571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8573 ac_status=$?
8574 grep -v '^ *+' conftest.er1 >conftest.err
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } >/dev/null && {
8579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 }; then
8582 ac_header_preproc=yes
8583 else
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_header_preproc=no
8590 rm -f conftest.err conftest.$ac_ext
8591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8592 echo "${ECHO_T}$ac_header_preproc" >&6; }
8594 # So? What about this header?
8595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8596 yes:no: )
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8601 ac_header_preproc=yes
8603 no:yes:* )
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8616 ( cat <<\_ASBOX
8617 ## ------------------------------- ##
8618 ## Report this to bug-grub@gnu.org ##
8619 ## ------------------------------- ##
8620 _ASBOX
8621 ) | sed "s/^/$as_me: WARNING: /" >&2
8623 esac
8624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 else
8629 eval "$as_ac_Header=\$ac_header_preproc"
8631 ac_res=`eval echo '${'$as_ac_Header'}'`
8632 { echo "$as_me:$LINENO: result: $ac_res" >&5
8633 echo "${ECHO_T}$ac_res" >&6; }
8636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8637 cat >>confdefs.h <<_ACEOF
8638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8639 _ACEOF
8641 else
8642 { { echo "$as_me:$LINENO: error: libusb header file is required to build \`grub-emu' with USB support" >&5
8643 echo "$as_me: error: libusb header file is required to build \`grub-emu' with USB support" >&2;}
8644 { (exit 1); exit 1; }; }
8647 done
8654 # Check whether --enable-grub-fstest was given.
8655 if test "${enable_grub_fstest+set}" = set; then
8656 enableval=$enable_grub_fstest;
8661 # Check whether --enable-grub-pe2elf was given.
8662 if test "${enable_grub_pe2elf+set}" = set; then
8663 enableval=$enable_grub_pe2elf;
8668 # Check whether --enable-grub-mkfont was given.
8669 if test "${enable_grub_mkfont+set}" = set; then
8670 enableval=$enable_grub_mkfont;
8673 if test x"$enable_grub_mkfont" = xyes ; then
8674 # Check for freetype libraries.
8675 for ac_prog in freetype-config
8677 # Extract the first word of "$ac_prog", so it can be a program name with args.
8678 set dummy $ac_prog; ac_word=$2
8679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8681 if test "${ac_cv_prog_FREETYPE+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684 if test -n "$FREETYPE"; then
8685 ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
8686 else
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 for as_dir in $PATH
8690 IFS=$as_save_IFS
8691 test -z "$as_dir" && as_dir=.
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8694 ac_cv_prog_FREETYPE="$ac_prog"
8695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 break 2
8698 done
8699 done
8700 IFS=$as_save_IFS
8704 FREETYPE=$ac_cv_prog_FREETYPE
8705 if test -n "$FREETYPE"; then
8706 { echo "$as_me:$LINENO: result: $FREETYPE" >&5
8707 echo "${ECHO_T}$FREETYPE" >&6; }
8708 else
8709 { echo "$as_me:$LINENO: result: no" >&5
8710 echo "${ECHO_T}no" >&6; }
8714 test -n "$FREETYPE" && break
8715 done
8717 if test "x$FREETYPE" = x ; then
8718 { { echo "$as_me:$LINENO: error: freetype2 libraries are required to build \`grub-mkfont'" >&5
8719 echo "$as_me: error: freetype2 libraries are required to build \`grub-mkfont'" >&2;}
8720 { (exit 1); exit 1; }; }
8722 freetype_cflags=`freetype-config --cflags`
8723 freetype_libs=`freetype-config --libs`
8729 # Output files.
8731 { echo "$as_me:$LINENO: checking whether ln can handle directories properly" >&5
8732 echo $ECHO_N "checking whether ln can handle directories properly... $ECHO_C" >&6; }
8733 mkdir testdir 2>/dev/null
8734 case $srcdir in
8735 [\\/$]* | ?:[\\/]* ) reldir=$srcdir/include/grub/util ;;
8736 *) reldir=../$srcdir/include/grub/util ;;
8737 esac
8738 if ln -s $reldir testdir/util 2>/dev/null ; then
8739 { echo "$as_me:$LINENO: result: yes" >&5
8740 echo "${ECHO_T}yes" >&6; }
8741 link_dir=yes
8742 else
8743 link_dir=no
8744 { echo "$as_me:$LINENO: result: no" >&5
8745 echo "${ECHO_T}no" >&6; }
8747 rm -rf testdir
8749 if test x"$link_dir" = xyes ; then
8750 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu include/grub/machine:include/grub/$target_cpu/$platform"
8752 else
8753 mkdir -p include/grub 2>/dev/null
8754 rm -rf include/grub/cpu
8755 cp -rp $srcdir/include/grub/$target_cpu include/grub/cpu 2>/dev/null
8756 rm -rf include/grub/machine
8757 cp -rp $srcdir/include/grub/$target_cpu/$platform include/grub/machine 2>/dev/null
8759 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
8761 ac_config_files="$ac_config_files stamp-h"
8763 cat >confcache <<\_ACEOF
8764 # This file is a shell script that caches the results of configure
8765 # tests run on this system so they can be shared between configure
8766 # scripts and configure runs, see configure's option --config-cache.
8767 # It is not useful on other systems. If it contains results you don't
8768 # want to keep, you may remove or edit it.
8770 # config.status only pays attention to the cache file if you give it
8771 # the --recheck option to rerun configure.
8773 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8774 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8775 # following values.
8777 _ACEOF
8779 # The following way of writing the cache mishandles newlines in values,
8780 # but we know of no workaround that is simple, portable, and efficient.
8781 # So, we kill variables containing newlines.
8782 # Ultrix sh set writes to stderr and can't be redirected directly,
8783 # and sets the high bit in the cache file unless we assign to the vars.
8785 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8786 eval ac_val=\$$ac_var
8787 case $ac_val in #(
8788 *${as_nl}*)
8789 case $ac_var in #(
8790 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8791 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8792 esac
8793 case $ac_var in #(
8794 _ | IFS | as_nl) ;; #(
8795 *) $as_unset $ac_var ;;
8796 esac ;;
8797 esac
8798 done
8800 (set) 2>&1 |
8801 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8802 *${as_nl}ac_space=\ *)
8803 # `set' does not quote correctly, so add quotes (double-quote
8804 # substitution turns \\\\ into \\, and sed turns \\ into \).
8805 sed -n \
8806 "s/'/'\\\\''/g;
8807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8808 ;; #(
8810 # `set' quotes correctly as required by POSIX, so do not add quotes.
8811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8813 esac |
8814 sort
8816 sed '
8817 /^ac_cv_env_/b end
8818 t clear
8819 :clear
8820 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8821 t end
8822 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8823 :end' >>confcache
8824 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8825 if test -w "$cache_file"; then
8826 test "x$cache_file" != "x/dev/null" &&
8827 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8828 echo "$as_me: updating cache $cache_file" >&6;}
8829 cat confcache >$cache_file
8830 else
8831 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8832 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8835 rm -f confcache
8837 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8838 # Let make expand exec_prefix.
8839 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8841 DEFS=-DHAVE_CONFIG_H
8843 ac_libobjs=
8844 ac_ltlibobjs=
8845 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8846 # 1. Remove the extension, and $U if already installed.
8847 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8848 ac_i=`echo "$ac_i" | sed "$ac_script"`
8849 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8850 # will be set to the directory where LIBOBJS objects are built.
8851 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8852 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8853 done
8854 LIBOBJS=$ac_libobjs
8856 LTLIBOBJS=$ac_ltlibobjs
8860 : ${CONFIG_STATUS=./config.status}
8861 ac_clean_files_save=$ac_clean_files
8862 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8863 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8864 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8865 cat >$CONFIG_STATUS <<_ACEOF
8866 #! $SHELL
8867 # Generated by $as_me.
8868 # Run this file to recreate the current configuration.
8869 # Compiler output produced by configure, useful for debugging
8870 # configure, is in config.log if it exists.
8872 debug=false
8873 ac_cs_recheck=false
8874 ac_cs_silent=false
8875 SHELL=\${CONFIG_SHELL-$SHELL}
8876 _ACEOF
8878 cat >>$CONFIG_STATUS <<\_ACEOF
8879 ## --------------------- ##
8880 ## M4sh Initialization. ##
8881 ## --------------------- ##
8883 # Be more Bourne compatible
8884 DUALCASE=1; export DUALCASE # for MKS sh
8885 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8886 emulate sh
8887 NULLCMD=:
8888 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8889 # is contrary to our usage. Disable this feature.
8890 alias -g '${1+"$@"}'='"$@"'
8891 setopt NO_GLOB_SUBST
8892 else
8893 case `(set -o) 2>/dev/null` in
8894 *posix*) set -o posix ;;
8895 esac
8902 # PATH needs CR
8903 # Avoid depending upon Character Ranges.
8904 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8905 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8906 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8907 as_cr_digits='0123456789'
8908 as_cr_alnum=$as_cr_Letters$as_cr_digits
8910 # The user is always right.
8911 if test "${PATH_SEPARATOR+set}" != set; then
8912 echo "#! /bin/sh" >conf$$.sh
8913 echo "exit 0" >>conf$$.sh
8914 chmod +x conf$$.sh
8915 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8916 PATH_SEPARATOR=';'
8917 else
8918 PATH_SEPARATOR=:
8920 rm -f conf$$.sh
8923 # Support unset when possible.
8924 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8925 as_unset=unset
8926 else
8927 as_unset=false
8931 # IFS
8932 # We need space, tab and new line, in precisely that order. Quoting is
8933 # there to prevent editors from complaining about space-tab.
8934 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8935 # splitting by setting IFS to empty value.)
8936 as_nl='
8938 IFS=" "" $as_nl"
8940 # Find who we are. Look in the path if we contain no directory separator.
8941 case $0 in
8942 *[\\/]* ) as_myself=$0 ;;
8943 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944 for as_dir in $PATH
8946 IFS=$as_save_IFS
8947 test -z "$as_dir" && as_dir=.
8948 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8949 done
8950 IFS=$as_save_IFS
8953 esac
8954 # We did not find ourselves, most probably we were run as `sh COMMAND'
8955 # in which case we are not to be found in the path.
8956 if test "x$as_myself" = x; then
8957 as_myself=$0
8959 if test ! -f "$as_myself"; then
8960 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8961 { (exit 1); exit 1; }
8964 # Work around bugs in pre-3.0 UWIN ksh.
8965 for as_var in ENV MAIL MAILPATH
8966 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8967 done
8968 PS1='$ '
8969 PS2='> '
8970 PS4='+ '
8972 # NLS nuisances.
8973 for as_var in \
8974 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8975 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8976 LC_TELEPHONE LC_TIME
8978 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8979 eval $as_var=C; export $as_var
8980 else
8981 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8983 done
8985 # Required to use basename.
8986 if expr a : '\(a\)' >/dev/null 2>&1 &&
8987 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8988 as_expr=expr
8989 else
8990 as_expr=false
8993 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8994 as_basename=basename
8995 else
8996 as_basename=false
9000 # Name of the executable.
9001 as_me=`$as_basename -- "$0" ||
9002 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9003 X"$0" : 'X\(//\)$' \| \
9004 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9005 echo X/"$0" |
9006 sed '/^.*\/\([^/][^/]*\)\/*$/{
9007 s//\1/
9010 /^X\/\(\/\/\)$/{
9011 s//\1/
9014 /^X\/\(\/\).*/{
9015 s//\1/
9018 s/.*/./; q'`
9020 # CDPATH.
9021 $as_unset CDPATH
9025 as_lineno_1=$LINENO
9026 as_lineno_2=$LINENO
9027 test "x$as_lineno_1" != "x$as_lineno_2" &&
9028 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9030 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9031 # uniformly replaced by the line number. The first 'sed' inserts a
9032 # line-number line after each line using $LINENO; the second 'sed'
9033 # does the real work. The second script uses 'N' to pair each
9034 # line-number line with the line containing $LINENO, and appends
9035 # trailing '-' during substitution so that $LINENO is not a special
9036 # case at line end.
9037 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9038 # scripts with optimization help from Paolo Bonzini. Blame Lee
9039 # E. McMahon (1931-1989) for sed's syntax. :-)
9040 sed -n '
9042 /[$]LINENO/=
9043 ' <$as_myself |
9044 sed '
9045 s/[$]LINENO.*/&-/
9046 t lineno
9048 :lineno
9050 :loop
9051 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9052 t loop
9053 s/-\n.*//
9054 ' >$as_me.lineno &&
9055 chmod +x "$as_me.lineno" ||
9056 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9057 { (exit 1); exit 1; }; }
9059 # Don't try to exec as it changes $[0], causing all sort of problems
9060 # (the dirname of $[0] is not the place where we might find the
9061 # original and so on. Autoconf is especially sensitive to this).
9062 . "./$as_me.lineno"
9063 # Exit status is that of the last command.
9064 exit
9068 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9069 as_dirname=dirname
9070 else
9071 as_dirname=false
9074 ECHO_C= ECHO_N= ECHO_T=
9075 case `echo -n x` in
9076 -n*)
9077 case `echo 'x\c'` in
9078 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9079 *) ECHO_C='\c';;
9080 esac;;
9082 ECHO_N='-n';;
9083 esac
9085 if expr a : '\(a\)' >/dev/null 2>&1 &&
9086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9087 as_expr=expr
9088 else
9089 as_expr=false
9092 rm -f conf$$ conf$$.exe conf$$.file
9093 if test -d conf$$.dir; then
9094 rm -f conf$$.dir/conf$$.file
9095 else
9096 rm -f conf$$.dir
9097 mkdir conf$$.dir
9099 echo >conf$$.file
9100 if ln -s conf$$.file conf$$ 2>/dev/null; then
9101 as_ln_s='ln -s'
9102 # ... but there are two gotchas:
9103 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9104 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9105 # In both cases, we have to default to `cp -p'.
9106 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9107 as_ln_s='cp -p'
9108 elif ln conf$$.file conf$$ 2>/dev/null; then
9109 as_ln_s=ln
9110 else
9111 as_ln_s='cp -p'
9113 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9114 rmdir conf$$.dir 2>/dev/null
9116 if mkdir -p . 2>/dev/null; then
9117 as_mkdir_p=:
9118 else
9119 test -d ./-p && rmdir ./-p
9120 as_mkdir_p=false
9123 if test -x / >/dev/null 2>&1; then
9124 as_test_x='test -x'
9125 else
9126 if ls -dL / >/dev/null 2>&1; then
9127 as_ls_L_option=L
9128 else
9129 as_ls_L_option=
9131 as_test_x='
9132 eval sh -c '\''
9133 if test -d "$1"; then
9134 test -d "$1/.";
9135 else
9136 case $1 in
9137 -*)set "./$1";;
9138 esac;
9139 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9140 ???[sx]*):;;*)false;;esac;fi
9141 '\'' sh
9144 as_executable_p=$as_test_x
9146 # Sed expression to map a string onto a valid CPP name.
9147 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9149 # Sed expression to map a string onto a valid variable name.
9150 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9153 exec 6>&1
9155 # Save the log message, to keep $[0] and so on meaningful, and to
9156 # report actual input values of CONFIG_FILES etc. instead of their
9157 # values after options handling.
9158 ac_log="
9159 This file was extended by GRUB $as_me 1.96, which was
9160 generated by GNU Autoconf 2.61. Invocation command line was
9162 CONFIG_FILES = $CONFIG_FILES
9163 CONFIG_HEADERS = $CONFIG_HEADERS
9164 CONFIG_LINKS = $CONFIG_LINKS
9165 CONFIG_COMMANDS = $CONFIG_COMMANDS
9166 $ $0 $@
9168 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9171 _ACEOF
9173 cat >>$CONFIG_STATUS <<_ACEOF
9174 # Files that config.status was made for.
9175 config_files="$ac_config_files"
9176 config_headers="$ac_config_headers"
9177 config_links="$ac_config_links"
9179 _ACEOF
9181 cat >>$CONFIG_STATUS <<\_ACEOF
9182 ac_cs_usage="\
9183 \`$as_me' instantiates files from templates according to the
9184 current configuration.
9186 Usage: $0 [OPTIONS] [FILE]...
9188 -h, --help print this help, then exit
9189 -V, --version print version number and configuration settings, then exit
9190 -q, --quiet do not print progress messages
9191 -d, --debug don't remove temporary files
9192 --recheck update $as_me by reconfiguring in the same conditions
9193 --file=FILE[:TEMPLATE]
9194 instantiate the configuration file FILE
9195 --header=FILE[:TEMPLATE]
9196 instantiate the configuration header FILE
9198 Configuration files:
9199 $config_files
9201 Configuration headers:
9202 $config_headers
9204 Configuration links:
9205 $config_links
9207 Report bugs to <bug-autoconf@gnu.org>."
9209 _ACEOF
9210 cat >>$CONFIG_STATUS <<_ACEOF
9211 ac_cs_version="\\
9212 GRUB config.status 1.96
9213 configured by $0, generated by GNU Autoconf 2.61,
9214 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9216 Copyright (C) 2006 Free Software Foundation, Inc.
9217 This config.status script is free software; the Free Software Foundation
9218 gives unlimited permission to copy, distribute and modify it."
9220 ac_pwd='$ac_pwd'
9221 srcdir='$srcdir'
9222 INSTALL='$INSTALL'
9223 _ACEOF
9225 cat >>$CONFIG_STATUS <<\_ACEOF
9226 # If no file are specified by the user, then we need to provide default
9227 # value. By we need to know if files were specified by the user.
9228 ac_need_defaults=:
9229 while test $# != 0
9231 case $1 in
9232 --*=*)
9233 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9234 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9235 ac_shift=:
9238 ac_option=$1
9239 ac_optarg=$2
9240 ac_shift=shift
9242 esac
9244 case $ac_option in
9245 # Handling of the options.
9246 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9247 ac_cs_recheck=: ;;
9248 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9249 echo "$ac_cs_version"; exit ;;
9250 --debug | --debu | --deb | --de | --d | -d )
9251 debug=: ;;
9252 --file | --fil | --fi | --f )
9253 $ac_shift
9254 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9255 ac_need_defaults=false;;
9256 --header | --heade | --head | --hea )
9257 $ac_shift
9258 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9259 ac_need_defaults=false;;
9260 --he | --h)
9261 # Conflict between --help and --header
9262 { echo "$as_me: error: ambiguous option: $1
9263 Try \`$0 --help' for more information." >&2
9264 { (exit 1); exit 1; }; };;
9265 --help | --hel | -h )
9266 echo "$ac_cs_usage"; exit ;;
9267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9268 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9269 ac_cs_silent=: ;;
9271 # This is an error.
9272 -*) { echo "$as_me: error: unrecognized option: $1
9273 Try \`$0 --help' for more information." >&2
9274 { (exit 1); exit 1; }; } ;;
9276 *) ac_config_targets="$ac_config_targets $1"
9277 ac_need_defaults=false ;;
9279 esac
9280 shift
9281 done
9283 ac_configure_extra_args=
9285 if $ac_cs_silent; then
9286 exec 6>/dev/null
9287 ac_configure_extra_args="$ac_configure_extra_args --silent"
9290 _ACEOF
9291 cat >>$CONFIG_STATUS <<_ACEOF
9292 if \$ac_cs_recheck; then
9293 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9294 CONFIG_SHELL=$SHELL
9295 export CONFIG_SHELL
9296 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9299 _ACEOF
9300 cat >>$CONFIG_STATUS <<\_ACEOF
9301 exec 5>>config.log
9303 echo
9304 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9305 ## Running $as_me. ##
9306 _ASBOX
9307 echo "$ac_log"
9308 } >&5
9310 _ACEOF
9311 cat >>$CONFIG_STATUS <<_ACEOF
9312 _ACEOF
9314 cat >>$CONFIG_STATUS <<\_ACEOF
9316 # Handling of arguments.
9317 for ac_config_target in $ac_config_targets
9319 case $ac_config_target in
9320 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9321 "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
9322 "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
9323 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9324 "gensymlist.sh") CONFIG_FILES="$CONFIG_FILES gensymlist.sh" ;;
9325 "genkernsyms.sh") CONFIG_FILES="$CONFIG_FILES genkernsyms.sh" ;;
9326 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
9328 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9329 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9330 { (exit 1); exit 1; }; };;
9331 esac
9332 done
9335 # If the user did not use the arguments to specify the items to instantiate,
9336 # then the envvar interface is used. Set only those that are not.
9337 # We use the long form for the default assignment because of an extremely
9338 # bizarre bug on SunOS 4.1.3.
9339 if $ac_need_defaults; then
9340 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9341 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9342 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9345 # Have a temporary directory for convenience. Make it in the build tree
9346 # simply because there is no reason against having it here, and in addition,
9347 # creating and moving files from /tmp can sometimes cause problems.
9348 # Hook for its removal unless debugging.
9349 # Note that there is a small window in which the directory will not be cleaned:
9350 # after its creation but before its name has been assigned to `$tmp'.
9351 $debug ||
9353 tmp=
9354 trap 'exit_status=$?
9355 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9357 trap '{ (exit 1); exit 1; }' 1 2 13 15
9359 # Create a (secure) tmp directory for tmp files.
9362 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9363 test -n "$tmp" && test -d "$tmp"
9364 } ||
9366 tmp=./conf$$-$RANDOM
9367 (umask 077 && mkdir "$tmp")
9368 } ||
9370 echo "$me: cannot create a temporary directory in ." >&2
9371 { (exit 1); exit 1; }
9375 # Set up the sed scripts for CONFIG_FILES section.
9378 # No need to generate the scripts if there are no CONFIG_FILES.
9379 # This happens for instance when ./config.status config.h
9380 if test -n "$CONFIG_FILES"; then
9382 _ACEOF
9386 ac_delim='%!_!# '
9387 for ac_last_try in false false false false false :; do
9388 cat >conf$$subs.sed <<_ACEOF
9389 SHELL!$SHELL$ac_delim
9390 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9391 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9392 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9393 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9394 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9395 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9396 exec_prefix!$exec_prefix$ac_delim
9397 prefix!$prefix$ac_delim
9398 program_transform_name!$program_transform_name$ac_delim
9399 bindir!$bindir$ac_delim
9400 sbindir!$sbindir$ac_delim
9401 libexecdir!$libexecdir$ac_delim
9402 datarootdir!$datarootdir$ac_delim
9403 datadir!$datadir$ac_delim
9404 sysconfdir!$sysconfdir$ac_delim
9405 sharedstatedir!$sharedstatedir$ac_delim
9406 localstatedir!$localstatedir$ac_delim
9407 includedir!$includedir$ac_delim
9408 oldincludedir!$oldincludedir$ac_delim
9409 docdir!$docdir$ac_delim
9410 infodir!$infodir$ac_delim
9411 htmldir!$htmldir$ac_delim
9412 dvidir!$dvidir$ac_delim
9413 pdfdir!$pdfdir$ac_delim
9414 psdir!$psdir$ac_delim
9415 libdir!$libdir$ac_delim
9416 localedir!$localedir$ac_delim
9417 mandir!$mandir$ac_delim
9418 DEFS!$DEFS$ac_delim
9419 ECHO_C!$ECHO_C$ac_delim
9420 ECHO_N!$ECHO_N$ac_delim
9421 ECHO_T!$ECHO_T$ac_delim
9422 LIBS!$LIBS$ac_delim
9423 build_alias!$build_alias$ac_delim
9424 host_alias!$host_alias$ac_delim
9425 target_alias!$target_alias$ac_delim
9426 build!$build$ac_delim
9427 build_cpu!$build_cpu$ac_delim
9428 build_vendor!$build_vendor$ac_delim
9429 build_os!$build_os$ac_delim
9430 host!$host$ac_delim
9431 host_cpu!$host_cpu$ac_delim
9432 host_vendor!$host_vendor$ac_delim
9433 host_os!$host_os$ac_delim
9434 target!$target$ac_delim
9435 target_cpu!$target_cpu$ac_delim
9436 target_vendor!$target_vendor$ac_delim
9437 target_os!$target_os$ac_delim
9438 host_kernel!$host_kernel$ac_delim
9439 platform!$platform$ac_delim
9440 CMP!$CMP$ac_delim
9441 YACC!$YACC$ac_delim
9442 UNIFONT_BDF!$UNIFONT_BDF$ac_delim
9443 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9444 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9445 INSTALL_DATA!$INSTALL_DATA$ac_delim
9446 AWK!$AWK$ac_delim
9447 SET_MAKE!$SET_MAKE$ac_delim
9448 RUBY!$RUBY$ac_delim
9449 HELP2MAN!$HELP2MAN$ac_delim
9450 CC!$CC$ac_delim
9451 CFLAGS!$CFLAGS$ac_delim
9452 LDFLAGS!$LDFLAGS$ac_delim
9453 CPPFLAGS!$CPPFLAGS$ac_delim
9454 ac_ct_CC!$ac_ct_CC$ac_delim
9455 EXEEXT!$EXEEXT$ac_delim
9456 OBJEXT!$OBJEXT$ac_delim
9457 CPP!$CPP$ac_delim
9458 GREP!$GREP$ac_delim
9459 EGREP!$EGREP$ac_delim
9460 LIBLZO!$LIBLZO$ac_delim
9461 enable_lzo!$enable_lzo$ac_delim
9462 TARGET_IMG_LDSCRIPT!$TARGET_IMG_LDSCRIPT$ac_delim
9463 TARGET_IMG_LDFLAGS!$TARGET_IMG_LDFLAGS$ac_delim
9464 TARGET_OBJ2ELF!$TARGET_OBJ2ELF$ac_delim
9465 TARGET_CC!$TARGET_CC$ac_delim
9466 ac_ct_TARGET_CC!$ac_ct_TARGET_CC$ac_delim
9467 OBJCOPY!$OBJCOPY$ac_delim
9468 STRIP!$STRIP$ac_delim
9469 NM!$NM$ac_delim
9470 TARGET_CFLAGS!$TARGET_CFLAGS$ac_delim
9471 TARGET_CPPFLAGS!$TARGET_CPPFLAGS$ac_delim
9472 TARGET_LDFLAGS!$TARGET_LDFLAGS$ac_delim
9473 LIBCURSES!$LIBCURSES$ac_delim
9474 LIBUSB!$LIBUSB$ac_delim
9475 enable_grub_emu!$enable_grub_emu$ac_delim
9476 enable_grub_emu_usb!$enable_grub_emu_usb$ac_delim
9477 enable_grub_fstest!$enable_grub_fstest$ac_delim
9478 enable_grub_pe2elf!$enable_grub_pe2elf$ac_delim
9479 FREETYPE!$FREETYPE$ac_delim
9480 enable_grub_mkfont!$enable_grub_mkfont$ac_delim
9481 freetype_cflags!$freetype_cflags$ac_delim
9482 freetype_libs!$freetype_libs$ac_delim
9483 LIBOBJS!$LIBOBJS$ac_delim
9484 LTLIBOBJS!$LTLIBOBJS$ac_delim
9485 _ACEOF
9487 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
9488 break
9489 elif $ac_last_try; then
9490 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9491 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9492 { (exit 1); exit 1; }; }
9493 else
9494 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9496 done
9498 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9499 if test -n "$ac_eof"; then
9500 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9501 ac_eof=`expr $ac_eof + 1`
9504 cat >>$CONFIG_STATUS <<_ACEOF
9505 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9507 _ACEOF
9508 sed '
9509 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9510 s/^/s,@/; s/!/@,|#_!!_#|/
9513 s/'"$ac_delim"'$/,g/; t
9514 s/$/\\/; p
9515 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9516 ' >>$CONFIG_STATUS <conf$$subs.sed
9517 rm -f conf$$subs.sed
9518 cat >>$CONFIG_STATUS <<_ACEOF
9519 CEOF$ac_eof
9520 _ACEOF
9523 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9524 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9525 # trailing colons and then remove the whole line if VPATH becomes empty
9526 # (actually we leave an empty line to preserve line numbers).
9527 if test "x$srcdir" = x.; then
9528 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9529 s/:*\$(srcdir):*/:/
9530 s/:*\${srcdir}:*/:/
9531 s/:*@srcdir@:*/:/
9532 s/^\([^=]*=[ ]*\):*/\1/
9533 s/:*$//
9534 s/^[^=]*=[ ]*$//
9538 cat >>$CONFIG_STATUS <<\_ACEOF
9539 fi # test -n "$CONFIG_FILES"
9542 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS
9544 case $ac_tag in
9545 :[FHLC]) ac_mode=$ac_tag; continue;;
9546 esac
9547 case $ac_mode$ac_tag in
9548 :[FHL]*:*);;
9549 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9550 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9551 { (exit 1); exit 1; }; };;
9552 :[FH]-) ac_tag=-:-;;
9553 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9554 esac
9555 ac_save_IFS=$IFS
9556 IFS=:
9557 set x $ac_tag
9558 IFS=$ac_save_IFS
9559 shift
9560 ac_file=$1
9561 shift
9563 case $ac_mode in
9564 :L) ac_source=$1;;
9565 :[FH])
9566 ac_file_inputs=
9567 for ac_f
9569 case $ac_f in
9570 -) ac_f="$tmp/stdin";;
9571 *) # Look for the file first in the build tree, then in the source tree
9572 # (if the path is not absolute). The absolute path cannot be DOS-style,
9573 # because $ac_f cannot contain `:'.
9574 test -f "$ac_f" ||
9575 case $ac_f in
9576 [\\/$]*) false;;
9577 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9578 esac ||
9579 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9580 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9581 { (exit 1); exit 1; }; };;
9582 esac
9583 ac_file_inputs="$ac_file_inputs $ac_f"
9584 done
9586 # Let's still pretend it is `configure' which instantiates (i.e., don't
9587 # use $as_me), people would be surprised to read:
9588 # /* config.h. Generated by config.status. */
9589 configure_input="Generated from "`IFS=:
9590 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9591 if test x"$ac_file" != x-; then
9592 configure_input="$ac_file. $configure_input"
9593 { echo "$as_me:$LINENO: creating $ac_file" >&5
9594 echo "$as_me: creating $ac_file" >&6;}
9597 case $ac_tag in
9598 *:-:* | *:-) cat >"$tmp/stdin";;
9599 esac
9601 esac
9603 ac_dir=`$as_dirname -- "$ac_file" ||
9604 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9605 X"$ac_file" : 'X\(//\)[^/]' \| \
9606 X"$ac_file" : 'X\(//\)$' \| \
9607 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9608 echo X"$ac_file" |
9609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9610 s//\1/
9613 /^X\(\/\/\)[^/].*/{
9614 s//\1/
9617 /^X\(\/\/\)$/{
9618 s//\1/
9621 /^X\(\/\).*/{
9622 s//\1/
9625 s/.*/./; q'`
9626 { as_dir="$ac_dir"
9627 case $as_dir in #(
9628 -*) as_dir=./$as_dir;;
9629 esac
9630 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9631 as_dirs=
9632 while :; do
9633 case $as_dir in #(
9634 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9635 *) as_qdir=$as_dir;;
9636 esac
9637 as_dirs="'$as_qdir' $as_dirs"
9638 as_dir=`$as_dirname -- "$as_dir" ||
9639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9640 X"$as_dir" : 'X\(//\)[^/]' \| \
9641 X"$as_dir" : 'X\(//\)$' \| \
9642 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9643 echo X"$as_dir" |
9644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9645 s//\1/
9648 /^X\(\/\/\)[^/].*/{
9649 s//\1/
9652 /^X\(\/\/\)$/{
9653 s//\1/
9656 /^X\(\/\).*/{
9657 s//\1/
9660 s/.*/./; q'`
9661 test -d "$as_dir" && break
9662 done
9663 test -z "$as_dirs" || eval "mkdir $as_dirs"
9664 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9665 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9666 { (exit 1); exit 1; }; }; }
9667 ac_builddir=.
9669 case "$ac_dir" in
9670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9672 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9673 # A ".." for each directory in $ac_dir_suffix.
9674 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9675 case $ac_top_builddir_sub in
9676 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9677 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9678 esac ;;
9679 esac
9680 ac_abs_top_builddir=$ac_pwd
9681 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9682 # for backward compatibility:
9683 ac_top_builddir=$ac_top_build_prefix
9685 case $srcdir in
9686 .) # We are building in place.
9687 ac_srcdir=.
9688 ac_top_srcdir=$ac_top_builddir_sub
9689 ac_abs_top_srcdir=$ac_pwd ;;
9690 [\\/]* | ?:[\\/]* ) # Absolute name.
9691 ac_srcdir=$srcdir$ac_dir_suffix;
9692 ac_top_srcdir=$srcdir
9693 ac_abs_top_srcdir=$srcdir ;;
9694 *) # Relative name.
9695 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9696 ac_top_srcdir=$ac_top_build_prefix$srcdir
9697 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9698 esac
9699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9702 case $ac_mode in
9705 # CONFIG_FILE
9708 case $INSTALL in
9709 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9710 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9711 esac
9712 _ACEOF
9714 cat >>$CONFIG_STATUS <<\_ACEOF
9715 # If the template does not know about datarootdir, expand it.
9716 # FIXME: This hack should be removed a few years after 2.60.
9717 ac_datarootdir_hack=; ac_datarootdir_seen=
9719 case `sed -n '/datarootdir/ {
9723 /@datadir@/p
9724 /@docdir@/p
9725 /@infodir@/p
9726 /@localedir@/p
9727 /@mandir@/p
9728 ' $ac_file_inputs` in
9729 *datarootdir*) ac_datarootdir_seen=yes;;
9730 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9731 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9732 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9733 _ACEOF
9734 cat >>$CONFIG_STATUS <<_ACEOF
9735 ac_datarootdir_hack='
9736 s&@datadir@&$datadir&g
9737 s&@docdir@&$docdir&g
9738 s&@infodir@&$infodir&g
9739 s&@localedir@&$localedir&g
9740 s&@mandir@&$mandir&g
9741 s&\\\${datarootdir}&$datarootdir&g' ;;
9742 esac
9743 _ACEOF
9745 # Neutralize VPATH when `$srcdir' = `.'.
9746 # Shell code in configure.ac might set extrasub.
9747 # FIXME: do we really want to maintain this feature?
9748 cat >>$CONFIG_STATUS <<_ACEOF
9749 sed "$ac_vpsub
9750 $extrasub
9751 _ACEOF
9752 cat >>$CONFIG_STATUS <<\_ACEOF
9754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9755 s&@configure_input@&$configure_input&;t t
9756 s&@top_builddir@&$ac_top_builddir_sub&;t t
9757 s&@srcdir@&$ac_srcdir&;t t
9758 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9759 s&@top_srcdir@&$ac_top_srcdir&;t t
9760 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9761 s&@builddir@&$ac_builddir&;t t
9762 s&@abs_builddir@&$ac_abs_builddir&;t t
9763 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9764 s&@INSTALL@&$ac_INSTALL&;t t
9765 $ac_datarootdir_hack
9766 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out
9768 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9769 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9770 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9771 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9772 which seems to be undefined. Please make sure it is defined." >&5
9773 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9774 which seems to be undefined. Please make sure it is defined." >&2;}
9776 rm -f "$tmp/stdin"
9777 case $ac_file in
9778 -) cat "$tmp/out"; rm -f "$tmp/out";;
9779 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9780 esac
9784 # CONFIG_HEADER
9786 _ACEOF
9788 # Transform confdefs.h into a sed script `conftest.defines', that
9789 # substitutes the proper values into config.h.in to produce config.h.
9790 rm -f conftest.defines conftest.tail
9791 # First, append a space to every undef/define line, to ease matching.
9792 echo 's/$/ /' >conftest.defines
9793 # Then, protect against being on the right side of a sed subst, or in
9794 # an unquoted here document, in config.status. If some macros were
9795 # called several times there might be several #defines for the same
9796 # symbol, which is useless. But do not sort them, since the last
9797 # AC_DEFINE must be honored.
9798 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9799 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9800 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9801 # PARAMS is the parameter list in the macro definition--in most cases, it's
9802 # just an empty string.
9803 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9804 ac_dB='\\)[ (].*,\\1define\\2'
9805 ac_dC=' '
9806 ac_dD=' ,'
9808 uniq confdefs.h |
9809 sed -n '
9810 t rset
9811 :rset
9812 s/^[ ]*#[ ]*define[ ][ ]*//
9813 t ok
9816 s/[\\&,]/\\&/g
9817 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9818 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9819 ' >>conftest.defines
9821 # Remove the space that was appended to ease matching.
9822 # Then replace #undef with comments. This is necessary, for
9823 # example, in the case of _POSIX_SOURCE, which is predefined and required
9824 # on some systems where configure will not decide to define it.
9825 # (The regexp can be short, since the line contains either #define or #undef.)
9826 echo 's/ $//
9827 s,^[ #]*u.*,/* & */,' >>conftest.defines
9829 # Break up conftest.defines:
9830 ac_max_sed_lines=50
9832 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9833 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9834 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9835 # et cetera.
9836 ac_in='$ac_file_inputs'
9837 ac_out='"$tmp/out1"'
9838 ac_nxt='"$tmp/out2"'
9840 while :
9842 # Write a here document:
9843 cat >>$CONFIG_STATUS <<_ACEOF
9844 # First, check the format of the line:
9845 cat >"\$tmp/defines.sed" <<\\CEOF
9846 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9847 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9849 :def
9850 _ACEOF
9851 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9852 echo 'CEOF
9853 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9854 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9855 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9856 grep . conftest.tail >/dev/null || break
9857 rm -f conftest.defines
9858 mv conftest.tail conftest.defines
9859 done
9860 rm -f conftest.defines conftest.tail
9862 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9863 cat >>$CONFIG_STATUS <<\_ACEOF
9864 if test x"$ac_file" != x-; then
9865 echo "/* $configure_input */" >"$tmp/config.h"
9866 cat "$ac_result" >>"$tmp/config.h"
9867 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9868 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9869 echo "$as_me: $ac_file is unchanged" >&6;}
9870 else
9871 rm -f $ac_file
9872 mv "$tmp/config.h" $ac_file
9874 else
9875 echo "/* $configure_input */"
9876 cat "$ac_result"
9878 rm -f "$tmp/out12"
9882 # CONFIG_LINK
9885 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
9886 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
9888 if test ! -r "$srcdir/$ac_source"; then
9889 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9890 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9891 { (exit 1); exit 1; }; }
9893 rm -f "$ac_file"
9895 # Try a relative symlink, then a hard link, then a copy.
9896 case $srcdir in
9897 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9898 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
9899 esac
9900 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
9901 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
9902 cp -p "$srcdir/$ac_source" "$ac_file" ||
9903 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
9904 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
9905 { (exit 1); exit 1; }; }
9908 esac
9911 case $ac_file$ac_mode in
9912 "stamp-h":F) echo timestamp > stamp-h ;;
9914 esac
9915 done # for ac_tag
9918 { (exit 0); exit 0; }
9919 _ACEOF
9920 chmod +x $CONFIG_STATUS
9921 ac_clean_files=$ac_clean_files_save
9924 # configure is writing to config.log, and then calls config.status.
9925 # config.status does its own redirection, appending to config.log.
9926 # Unfortunately, on DOS this fails, as config.log is still kept open
9927 # by configure, so config.status won't be able to write to it; its
9928 # output is simply discarded. So we exec the FD to /dev/null,
9929 # effectively closing config.log, so it can be properly (re)opened and
9930 # appended to by config.status. When coming back to configure, we
9931 # need to make the FD available again.
9932 if test "$no_create" != yes; then
9933 ac_cs_success=:
9934 ac_config_status_args=
9935 test "$silent" = yes &&
9936 ac_config_status_args="$ac_config_status_args --quiet"
9937 exec 5>/dev/null
9938 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9939 exec 5>>config.log
9940 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9941 # would make configure fail if this is the last instruction.
9942 $ac_cs_success || { (exit 1); exit 1; }