2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GRUB 1.95.
5 # Report bugs to <bug-grub@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix
=/usr
/local
257 ac_config_libobj_dir
=.
262 SHELL
=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
271 PACKAGE_TARNAME
='grub'
272 PACKAGE_VERSION
='1.95'
273 PACKAGE_STRING
='GRUB 1.95'
274 PACKAGE_BUGREPORT
='bug-grub@gnu.org'
276 ac_unique_file
="include/grub/dl.h"
277 # Factoring default headers for most tests.
278 ac_includes_default
="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os platform CMP YACC UNIFONT_HEX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK SET_MAKE RUBY CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBLZO TARGET_CC ac_ct_TARGET_CC OBJCOPY ac_ct_OBJCOPY STRIP ac_ct_STRIP NM ac_ct_NM TARGET_CFLAGS TARGET_CPPFLAGS TARGET_LDFLAGS LIBCURSES enable_grub_emu LIBOBJS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version
=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name
=s
,x
,x
,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir
='${exec_prefix}/bin'
343 sbindir
='${exec_prefix}/sbin'
344 libexecdir
='${exec_prefix}/libexec'
345 datadir
='${prefix}/share'
346 sysconfdir
='${prefix}/etc'
347 sharedstatedir
='${prefix}/com'
348 localstatedir
='${prefix}/var'
349 libdir
='${exec_prefix}/lib'
350 includedir
='${prefix}/include'
351 oldincludedir
='/usr/include'
352 infodir
='${prefix}/info'
353 mandir
='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
373 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
376 -build |
--build |
--buil |
--bui |
--bu)
377 ac_prev
=build_alias
;;
378 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
379 build_alias
=$ac_optarg ;;
381 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
382 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
383 ac_prev
=cache_file
;;
384 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
385 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
386 cache_file
=$ac_optarg ;;
389 cache_file
=config.cache
;;
391 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
393 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
395 datadir
=$ac_optarg ;;
397 -disable-* |
--disable-*)
398 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* |
--enable-*)
407 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
420 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
421 |
--exec |
--exe |
--ex)
422 ac_prev
=exec_prefix
;;
423 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
424 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
425 |
--exec=* |
--exe=* |
--ex=*)
426 exec_prefix
=$ac_optarg ;;
428 -gas |
--gas |
--ga |
--g)
429 # Obsolete; use --with-gas.
432 -help |
--help |
--hel |
--he |
-h)
434 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
435 ac_init_help
=recursive
;;
436 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
437 ac_init_help
=short
;;
439 -host |
--host |
--hos |
--ho)
440 ac_prev
=host_alias
;;
441 -host=* |
--host=* |
--hos=* |
--ho=*)
442 host_alias
=$ac_optarg ;;
444 -includedir |
--includedir |
--includedi |
--included |
--include \
445 |
--includ |
--inclu |
--incl |
--inc)
446 ac_prev
=includedir
;;
447 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
448 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
449 includedir
=$ac_optarg ;;
451 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
453 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
454 infodir
=$ac_optarg ;;
456 -libdir |
--libdir |
--libdi |
--libd)
458 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
461 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
462 |
--libexe |
--libex |
--libe)
463 ac_prev
=libexecdir
;;
464 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
465 |
--libexe=* |
--libex=* |
--libe=*)
466 libexecdir
=$ac_optarg ;;
468 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
469 |
--localstate |
--localstat |
--localsta |
--localst \
470 |
--locals |
--local |
--loca |
--loc |
--lo)
471 ac_prev
=localstatedir
;;
472 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
473 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
474 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
475 localstatedir
=$ac_optarg ;;
477 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
479 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
483 # Obsolete; use --without-fp.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c |
-n)
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
494 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
495 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
496 |
--oldin |
--oldi |
--old |
--ol |
--o)
497 ac_prev
=oldincludedir
;;
498 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
499 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
500 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
501 oldincludedir
=$ac_optarg ;;
503 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
505 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
508 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
509 |
--program-pre |
--program-pr |
--program-p)
510 ac_prev
=program_prefix
;;
511 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
512 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
513 program_prefix
=$ac_optarg ;;
515 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
516 |
--program-suf |
--program-su |
--program-s)
517 ac_prev
=program_suffix
;;
518 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
519 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
520 program_suffix
=$ac_optarg ;;
522 -program-transform-name |
--program-transform-name \
523 |
--program-transform-nam |
--program-transform-na \
524 |
--program-transform-n |
--program-transform- \
525 |
--program-transform |
--program-transfor \
526 |
--program-transfo |
--program-transf \
527 |
--program-trans |
--program-tran \
528 |
--progr-tra |
--program-tr |
--program-t)
529 ac_prev
=program_transform_name
;;
530 -program-transform-name=* |
--program-transform-name=* \
531 |
--program-transform-nam=* |
--program-transform-na=* \
532 |
--program-transform-n=* |
--program-transform-=* \
533 |
--program-transform=* |
--program-transfor=* \
534 |
--program-transfo=* |
--program-transf=* \
535 |
--program-trans=* |
--program-tran=* \
536 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
537 program_transform_name
=$ac_optarg ;;
539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
540 |
-silent |
--silent |
--silen |
--sile |
--sil)
543 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
545 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
547 sbindir
=$ac_optarg ;;
549 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
550 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
551 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
553 ac_prev
=sharedstatedir
;;
554 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
555 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
556 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
558 sharedstatedir
=$ac_optarg ;;
560 -site |
--site |
--sit)
562 -site=* |
--site=* |
--sit=*)
565 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
567 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
570 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
571 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
572 ac_prev
=sysconfdir
;;
573 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
574 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
575 sysconfdir
=$ac_optarg ;;
577 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
578 ac_prev
=target_alias
;;
579 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
580 target_alias
=$ac_optarg ;;
582 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
585 -version |
--version |
--versio |
--versi |
--vers |
-V)
589 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package
=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* |
--without-*)
602 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package
=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
615 |
--x-incl |
--x-inc |
--x-in |
--x-i)
616 ac_prev
=x_includes
;;
617 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
618 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
619 x_includes
=$ac_optarg ;;
621 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
622 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
623 ac_prev
=x_libraries
;;
624 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
625 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
626 x_libraries
=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var
in exec_prefix prefix
663 eval ac_val
=$
`echo $ac_var`
665 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val
=$
`echo $ac_var`
677 [\\/$
]* | ?
:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x
; then
692 if test "x$build_alias" = x
; then
693 cross_compiling
=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
704 test "$silent" = yes && exec 6>/dev
/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted
=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir
=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted
=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set
=${build_alias+set}
744 ac_env_build_alias_value
=$build_alias
745 ac_cv_env_build_alias_set
=${build_alias+set}
746 ac_cv_env_build_alias_value
=$build_alias
747 ac_env_host_alias_set
=${host_alias+set}
748 ac_env_host_alias_value
=$host_alias
749 ac_cv_env_host_alias_set
=${host_alias+set}
750 ac_cv_env_host_alias_value
=$host_alias
751 ac_env_target_alias_set
=${target_alias+set}
752 ac_env_target_alias_value
=$target_alias
753 ac_cv_env_target_alias_set
=${target_alias+set}
754 ac_cv_env_target_alias_value
=$target_alias
755 ac_env_CC_set
=${CC+set}
757 ac_cv_env_CC_set
=${CC+set}
758 ac_cv_env_CC_value
=$CC
759 ac_env_CFLAGS_set
=${CFLAGS+set}
760 ac_env_CFLAGS_value
=$CFLAGS
761 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value
=$CFLAGS
763 ac_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_env_LDFLAGS_value
=$LDFLAGS
765 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value
=$LDFLAGS
767 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
771 ac_env_CPP_set
=${CPP+set}
772 ac_env_CPP_value
=$CPP
773 ac_cv_env_CPP_set
=${CPP+set}
774 ac_cv_env_CPP_value
=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures GRUB 1.95 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
842 --build=BUILD configure
for building on BUILD
[guessed
]
843 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
844 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
848 if test -n "$ac_init_help"; then
849 case $ac_init_help in
850 short | recursive
) echo "Configuration of GRUB 1.95:";;
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --disable-largefile omit support
for large files
858 --enable-mm-debug include memory manager debugging
859 --enable-grub-emu build and
install the
`grub-emu' debugging utility
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-platform=PLATFORM
865 select the host platform [guessed]
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
876 Use these variables to override the choices made by `configure
' or to help
877 it to find libraries and programs with nonstandard names/locations.
879 Report bugs to <bug-grub@gnu.org>.
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's
,^\.
[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's
,/[^
\\/]*,..
/,g
'`
895 ac_dir_suffix= ac_top_builddir=
899 .) # No --srcdir option. We are building in place.
901 if test -z "$ac_top_builddir"; then
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's
,/$
,,'`
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
917 .) ac_abs_builddir="$ac_dir";;
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
976 generated by GNU Autoconf 2.59
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
989 It was created by GRUB $as_me 1.95, which was
990 generated by GNU Autoconf 2.59. Invocation command line was
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it
for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_must_keep_next
=false
1055 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1056 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1057 |
-silent |
--silent |
--silen |
--sile |
--sil)
1059 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1063 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1065 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true
; then
1067 ac_must_keep_next
=false
# Got value, back to normal.
1070 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1071 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1072 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1073 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1078 -* ) ac_must_keep_next
=true
;;
1081 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1088 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1089 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1107 # The following way of writing the cache mishandles newlines in values,
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1130 for ac_var in $ac_subst_vars
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1137 if test -n "$ac_subst_files"; then
1144 for ac_var in $ac_subst_files
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1152 if test -s confdefs.h; then
1159 sed "/^$/d" confdefs.h | sort
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1166 rm -f core *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1170 for ac_signal
in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest
* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1180 # Predefined preprocessor variables.
1182 cat >>confdefs.h
<<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1187 cat >>confdefs.h
<<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192 cat >>confdefs.h
<<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1197 cat >>confdefs.h
<<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1202 cat >>confdefs.h
<<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE
; then
1211 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1213 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1216 for ac_site_file
in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1225 if test -r "$cache_file"; then
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1232 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1233 *) . .
/$cache_file;;
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1242 # Check that the precious variables saved in the cache have kept the same
1244 ac_cache_corrupted
=false
1245 for ac_var
in `(set) 2>&1 |
1246 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1248 eval ac_new_set
=\
$ac_env_${ac_var}_set
1249 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val
="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255 ac_cache_corrupted
=: ;;
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted
=: ;;
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266 echo "$as_me: former value: $ac_old_val" >&2;}
1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268 echo "$as_me: current value: $ac_new_val" >&2;}
1269 ac_cache_corrupted
=:
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1275 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg
=$ac_var=$ac_new_val ;;
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1294 ac_cpp
='$CPP $CPPFLAGS'
1295 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1327 ac_config_headers
="$ac_config_headers config.h"
1330 # Checks for host and target systems.
1332 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1333 if test -f $ac_dir/install-sh
; then
1335 ac_install_sh
="$ac_aux_dir/install-sh -c"
1337 elif test -f $ac_dir/install.sh
; then
1339 ac_install_sh
="$ac_aux_dir/install.sh -c"
1341 elif test -f $ac_dir/shtool
; then
1343 ac_install_sh
="$ac_aux_dir/shtool install -c"
1347 if test -z "$ac_aux_dir"; then
1348 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1350 { (exit 1); exit 1; }; }
1352 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356 # Make sure we can run config.sub.
1357 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1358 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1359 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1360 { (exit 1); exit 1; }; }
1362 echo "$as_me:$LINENO: checking build system type" >&5
1363 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1364 if test "${ac_cv_build+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 ac_cv_build_alias
=$build_alias
1368 test -z "$ac_cv_build_alias" &&
1369 ac_cv_build_alias
=`$ac_config_guess`
1370 test -z "$ac_cv_build_alias" &&
1371 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1372 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1373 { (exit 1); exit 1; }; }
1374 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1375 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1376 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1377 { (exit 1); exit 1; }; }
1380 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1381 echo "${ECHO_T}$ac_cv_build" >&6
1383 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1384 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1385 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388 echo "$as_me:$LINENO: checking host system type" >&5
1389 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1390 if test "${ac_cv_host+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 ac_cv_host_alias
=$host_alias
1394 test -z "$ac_cv_host_alias" &&
1395 ac_cv_host_alias
=$ac_cv_build_alias
1396 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1397 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1398 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1399 { (exit 1); exit 1; }; }
1402 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1403 echo "${ECHO_T}$ac_cv_host" >&6
1405 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1406 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1407 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1410 echo "$as_me:$LINENO: checking target system type" >&5
1411 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1412 if test "${ac_cv_target+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 ac_cv_target_alias
=$target_alias
1416 test "x$ac_cv_target_alias" = "x" &&
1417 ac_cv_target_alias
=$ac_cv_host_alias
1418 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1419 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1421 { (exit 1); exit 1; }; }
1424 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1425 echo "${ECHO_T}$ac_cv_target" >&6
1426 target
=$ac_cv_target
1427 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 # The aliases save the names the user supplied, while $host etc.
1433 # will get canonicalized.
1434 test -n "$target_alias" &&
1435 test "$program_prefix$program_suffix$program_transform_name" = \
1437 program_prefix
=${target_alias}-
1439 # Program name transformations
1440 test "$program_prefix" != NONE
&&
1441 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1442 # Use a double $ so make ignores it.
1443 test "$program_suffix" != NONE
&&
1444 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1445 # Double any \ or $. echo might interpret backslashes.
1446 # By default was `s,x,x', remove it if useless.
1447 cat <<\_ACEOF
>conftest.
sed
1448 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1450 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1455 powerpc64
) host_m32
=1 ;;
1458 case "$target_cpu" in
1459 i
[3456]86) target_cpu
=i386
;;
1460 x86_64
) target_cpu
=i386 target_m32
=1 ;;
1462 powerpc64
) target_cpu
=powerpc target_m32
=1;;
1464 *) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5
1465 echo "$as_me: error: unsupported CPU type" >&2;}
1466 { (exit 1); exit 1; }; } ;;
1469 # Specify the platform (such as firmware).
1471 # Check whether --with-platform or --without-platform was given.
1472 if test "${with_platform+set}" = set; then
1473 withval
="$with_platform"
1477 # Guess the platform if not specified.
1478 if test "x$with_platform" = x
; then
1479 case "$target_cpu"-"$target_vendor" in
1480 i386-apple
) platform
=efi
;;
1481 i386-
*) platform
=pc
;;
1482 powerpc-
*) platform
=ieee1275
;;
1483 sparc64-
*) platform
=ieee1275
;;
1484 *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
1485 echo "$as_me: error: unsupported machine type" >&2;}
1486 { (exit 1); exit 1; }; } ;;
1489 platform
="$with_platform"
1493 case "$target_cpu"-"$platform" in
1497 powerpc-ieee1275
) ;;
1498 sparc64-ieee1275
) ;;
1499 *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
1500 echo "$as_me: error: unsupported machine type" >&2;}
1501 { (exit 1); exit 1; }; } ;;
1508 # Checks for build programs.
1511 # Although cmp is listed in the GNU Coding Standards as a command which
1512 # can used directly, OpenBSD lacks cmp in the default installation.
1515 # Extract the first word of "$ac_prog", so it can be a program name with args.
1516 set dummy
$ac_prog; ac_word
=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CMP+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$CMP"; then
1523 ac_cv_prog_CMP
="$CMP" # Let the user override the test.
1525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1529 test -z "$as_dir" && as_dir
=.
1530 for ac_exec_ext
in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CMP
="$ac_prog"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 if test -n "$CMP"; then
1543 echo "$as_me:$LINENO: result: $CMP" >&5
1544 echo "${ECHO_T}$CMP" >&6
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1550 test -n "$CMP" && break
1553 if test "x$CMP" = x
; then
1554 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
1555 echo "$as_me: error: cmp is not found" >&2;}
1556 { (exit 1); exit 1; }; }
1559 for ac_prog
in bison
1561 # Extract the first word of "$ac_prog", so it can be a program name with args.
1562 set dummy
$ac_prog; ac_word
=$2
1563 echo "$as_me:$LINENO: checking for $ac_word" >&5
1564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565 if test "${ac_cv_prog_YACC+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 if test -n "$YACC"; then
1569 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1575 test -z "$as_dir" && as_dir
=.
1576 for ac_exec_ext
in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578 ac_cv_prog_YACC
="$ac_prog"
1579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 YACC
=$ac_cv_prog_YACC
1588 if test -n "$YACC"; then
1589 echo "$as_me:$LINENO: result: $YACC" >&5
1590 echo "${ECHO_T}$YACC" >&6
1592 echo "$as_me:$LINENO: result: no" >&5
1593 echo "${ECHO_T}no" >&6
1596 test -n "$YACC" && break
1599 if test "x$YACC" = x
; then
1600 { { echo "$as_me:$LINENO: error: bison is not found" >&5
1601 echo "$as_me: error: bison is not found" >&2;}
1602 { (exit 1); exit 1; }; }
1605 for file in /usr
/share
/unifont
/unifont.hex
; do
1606 if test -e $file ; then
1613 # Find a good install program. We prefer a C program (faster),
1614 # so one script is as good as another. But avoid the broken or
1615 # incompatible versions:
1616 # SysV /etc/install, /usr/sbin/install
1617 # SunOS /usr/etc/install
1618 # IRIX /sbin/install
1620 # AmigaOS /C/install, which installs bootblocks on floppy discs
1621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1624 # OS/2's system install, which has a completely different semantic
1625 # ./install, which can be erroneously created by make from ./install.sh.
1626 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1627 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1628 if test -z "$INSTALL"; then
1629 if test "${ac_cv_path_install+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1636 test -z "$as_dir" && as_dir
=.
1637 # Account for people who put trailing slashes in PATH elements.
1639 .
/ | .
// |
/cC
/* | \
1640 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1641 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1644 # OSF1 and SCO ODT 3.0 have their own names for install.
1645 # Don't use installbsd from OSF since it installs stuff as root
1647 for ac_prog
in ginstall scoinst
install; do
1648 for ac_exec_ext
in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1650 if test $ac_prog = install &&
1651 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1652 # AIX install. It has an incompatible calling convention.
1654 elif test $ac_prog = install &&
1655 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1656 # program-specific install script used by HP pwplus--don't use.
1659 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1671 if test "${ac_cv_path_install+set}" = set; then
1672 INSTALL
=$ac_cv_path_install
1674 # As a last resort, use the slow shell script. We don't cache a
1675 # path for INSTALL within a source directory, because that will
1676 # break other packages using the cache if that directory is
1677 # removed, or if the path is relative.
1678 INSTALL
=$ac_install_sh
1681 echo "$as_me:$LINENO: result: $INSTALL" >&5
1682 echo "${ECHO_T}$INSTALL" >&6
1684 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1685 # It thinks the first close brace ends the variable substitution.
1686 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1688 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1690 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1692 for ac_prog
in gawk mawk nawk
awk
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy
$ac_prog; ac_word
=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_AWK+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$AWK"; then
1702 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir
=.
1709 for ac_exec_ext
in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_AWK
="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 if test -n "$AWK"; then
1722 echo "$as_me:$LINENO: result: $AWK" >&5
1723 echo "${ECHO_T}$AWK" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1729 test -n "$AWK" && break
1732 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1733 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1734 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1735 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1738 cat >conftest.
make <<\_ACEOF
1740 @
echo 'ac_maketemp="$(MAKE)"'
1742 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1743 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1744 if test -n "$ac_maketemp"; then
1745 eval ac_cv_prog_make_
${ac_make}_set
=yes
1747 eval ac_cv_prog_make_
${ac_make}_set
=no
1751 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1752 echo "$as_me:$LINENO: result: yes" >&5
1753 echo "${ECHO_T}yes" >&6
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 SET_MAKE
="MAKE=${MAKE-make}"
1762 # This is not a "must".
1763 # Extract the first word of "ruby", so it can be a program name with args.
1764 set dummy ruby
; ac_word
=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_path_RUBY+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 ac_cv_path_RUBY
="$RUBY" # Let the user override the test with a path.
1775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1779 test -z "$as_dir" && as_dir
=.
1780 for ac_exec_ext
in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 ac_cv_path_RUBY
="$as_dir/$ac_word$ac_exec_ext"
1783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 RUBY
=$ac_cv_path_RUBY
1794 if test -n "$RUBY"; then
1795 echo "$as_me:$LINENO: result: $RUBY" >&5
1796 echo "${ECHO_T}$RUBY" >&6
1798 echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1804 # Checks for host programs.
1808 ac_cpp
='$CPP $CPPFLAGS'
1809 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1810 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1811 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1812 if test -n "$ac_tool_prefix"; then
1813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1814 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1815 echo "$as_me:$LINENO: checking for $ac_word" >&5
1816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817 if test "${ac_cv_prog_CC+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 if test -n "$CC"; then
1821 ac_cv_prog_CC
="$CC" # Let the user override the test.
1823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1827 test -z "$as_dir" && as_dir
=.
1828 for ac_exec_ext
in '' $ac_executable_extensions; do
1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 if test -n "$CC"; then
1841 echo "$as_me:$LINENO: result: $CC" >&5
1842 echo "${ECHO_T}$CC" >&6
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1849 if test -z "$ac_cv_prog_CC"; then
1851 # Extract the first word of "gcc", so it can be a program name with args.
1852 set dummy gcc
; ac_word
=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 if test -n "$ac_ct_CC"; then
1859 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1865 test -z "$as_dir" && as_dir
=.
1866 for ac_exec_ext
in '' $ac_executable_extensions; do
1867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868 ac_cv_prog_ac_ct_CC
="gcc"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1878 if test -n "$ac_ct_CC"; then
1879 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1880 echo "${ECHO_T}$ac_ct_CC" >&6
1882 echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1891 if test -z "$CC"; then
1892 if test -n "$ac_tool_prefix"; then
1893 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1894 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1895 echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897 if test "${ac_cv_prog_CC+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 if test -n "$CC"; then
1901 ac_cv_prog_CC
="$CC" # Let the user override the test.
1903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1907 test -z "$as_dir" && as_dir
=.
1908 for ac_exec_ext
in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 if test -n "$CC"; then
1921 echo "$as_me:$LINENO: result: $CC" >&5
1922 echo "${ECHO_T}$CC" >&6
1924 echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1929 if test -z "$ac_cv_prog_CC"; then
1931 # Extract the first word of "cc", so it can be a program name with args.
1932 set dummy cc
; ac_word
=$2
1933 echo "$as_me:$LINENO: checking for $ac_word" >&5
1934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1935 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 if test -n "$ac_ct_CC"; then
1939 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1945 test -z "$as_dir" && as_dir
=.
1946 for ac_exec_ext
in '' $ac_executable_extensions; do
1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948 ac_cv_prog_ac_ct_CC
="cc"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1958 if test -n "$ac_ct_CC"; then
1959 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1960 echo "${ECHO_T}$ac_ct_CC" >&6
1962 echo "$as_me:$LINENO: result: no" >&5
1963 echo "${ECHO_T}no" >&6
1972 if test -z "$CC"; then
1973 # Extract the first word of "cc", so it can be a program name with args.
1974 set dummy cc
; ac_word
=$2
1975 echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 if test -n "$CC"; then
1981 ac_cv_prog_CC
="$CC" # Let the user override the test.
1984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1988 test -z "$as_dir" && as_dir
=.
1989 for ac_exec_ext
in '' $ac_executable_extensions; do
1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1992 ac_prog_rejected
=yes
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 if test $ac_prog_rejected = yes; then
2003 # We found a bogon in the path, so make sure we never use it.
2004 set dummy
$ac_cv_prog_CC
2006 if test $# != 0; then
2007 # We chose a different compiler from the bogus one.
2008 # However, it has the same basename, so the bogon will be chosen
2009 # first if we set CC to just the basename; use the full file name.
2011 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2017 if test -n "$CC"; then
2018 echo "$as_me:$LINENO: result: $CC" >&5
2019 echo "${ECHO_T}$CC" >&6
2021 echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6
2026 if test -z "$CC"; then
2027 if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2031 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC
="$CC" # Let the user override the test.
2040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2044 test -z "$as_dir" && as_dir
=.
2045 for ac_exec_ext
in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 if test -n "$CC"; then
2058 echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6
2061 echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2065 test -n "$CC" && break
2068 if test -z "$CC"; then
2072 # Extract the first word of "$ac_prog", so it can be a program name with args.
2073 set dummy
$ac_prog; ac_word
=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 if test -n "$ac_ct_CC"; then
2080 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2082 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir
=.
2087 for ac_exec_ext
in '' $ac_executable_extensions; do
2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089 ac_cv_prog_ac_ct_CC
="$ac_prog"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2099 if test -n "$ac_ct_CC"; then
2100 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2101 echo "${ECHO_T}$ac_ct_CC" >&6
2103 echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6
2107 test -n "$ac_ct_CC" && break
2116 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2117 See \`config.log' for more details." >&5
2118 echo "$as_me: error: no acceptable C compiler found in \$PATH
2119 See \`config.log' for more details." >&2;}
2120 { (exit 1); exit 1; }; }
2122 # Provide some information about the compiler.
2123 echo "$as_me:$LINENO:" \
2124 "checking for C compiler version" >&5
2125 ac_compiler
=`set X $ac_compile; echo $2`
2126 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2127 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }
2131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2132 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2137 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2142 cat >conftest.
$ac_ext <<_ACEOF
2145 cat confdefs.h
>>conftest.
$ac_ext
2146 cat >>conftest.
$ac_ext <<_ACEOF
2147 /* end confdefs.h. */
2157 ac_clean_files_save
=$ac_clean_files
2158 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2159 # Try to create an executable without -o first, disregard a.out.
2160 # It will help us diagnose broken compilers, and finding out an intuition
2162 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2163 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2164 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2165 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2166 (eval $ac_link_default) 2>&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; then
2170 # Find the output, starting from the most likely. This scheme is
2171 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2174 # Be careful to initialize this variable, since it used to be cached.
2175 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2177 # b.out is created by i960 compilers.
2178 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2180 test -f "$ac_file" ||
continue
2182 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2185 # This is the source file.
2188 # We found the default executable, but exeext='' is most
2192 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2193 # FIXME: I believe we export ac_cv_exeext for Libtool,
2194 # but it would be cool to find out if it's true. Does anybody
2195 # maintain Libtool? --akim.
2203 echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.
$ac_ext >&5
2206 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&2;}
2210 { (exit 77); exit 77; }; }
2213 ac_exeext
=$ac_cv_exeext
2214 echo "$as_me:$LINENO: result: $ac_file" >&5
2215 echo "${ECHO_T}$ac_file" >&6
2217 # Check the compiler produces executables we can run. If not, either
2218 # the compiler is broken, or we cross compile.
2219 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2220 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2221 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2222 # If not cross compiling, check that we can run a simple program.
2223 if test "$cross_compiling" != yes; then
2224 if { ac_try
='./$ac_file'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2232 if test "$cross_compiling" = maybe
; then
2235 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2245 echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6
2248 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2249 ac_clean_files
=$ac_clean_files_save
2250 # Check the compiler produces executables we can run. If not, either
2251 # the compiler is broken, or we cross compile.
2252 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2253 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2254 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2255 echo "${ECHO_T}$cross_compiling" >&6
2257 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2258 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2260 (eval $ac_link) 2>&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2266 # work properly (i.e., refer to `conftest.exe'), while it won't with
2268 for ac_file
in conftest.exe conftest conftest.
*; do
2269 test -f "$ac_file" ||
continue
2271 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2272 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2280 See \`config.log' for more details." >&5
2281 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&2;}
2283 { (exit 1); exit 1; }; }
2286 rm -f conftest
$ac_cv_exeext
2287 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2288 echo "${ECHO_T}$ac_cv_exeext" >&6
2290 rm -f conftest.
$ac_ext
2291 EXEEXT
=$ac_cv_exeext
2293 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2294 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2295 if test "${ac_cv_objext+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 cat >conftest.
$ac_ext <<_ACEOF
2301 cat confdefs.h
>>conftest.
$ac_ext
2302 cat >>conftest.
$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2313 rm -f conftest.o conftest.obj
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; then
2319 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2321 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2322 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.
$ac_ext >&5
2330 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2337 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2339 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340 echo "${ECHO_T}$ac_cv_objext" >&6
2341 OBJEXT
=$ac_cv_objext
2343 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2345 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 cat >conftest.
$ac_ext <<_ACEOF
2351 cat confdefs.h
>>conftest.
$ac_ext
2352 cat >>conftest.
$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2366 rm -f conftest.
$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368 (eval $ac_compile) 2>conftest.er1
2370 grep -v '^ *+' conftest.er1
>conftest.err
2372 cat conftest.err
>&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 { ac_try
='test -z "$ac_c_werror_flag"
2376 || test ! -s conftest.err'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; } &&
2382 { ac_try
='test -s conftest.$ac_objext'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.
$ac_ext >&5
2395 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2396 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2399 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2400 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2401 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2402 ac_test_CFLAGS
=${CFLAGS+set}
2403 ac_save_CFLAGS
=$CFLAGS
2405 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2406 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2407 if test "${ac_cv_prog_cc_g+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 cat >conftest.
$ac_ext <<_ACEOF
2413 cat confdefs.h
>>conftest.
$ac_ext
2414 cat >>conftest.
$ac_ext <<_ACEOF
2415 /* end confdefs.h. */
2425 rm -f conftest.
$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>conftest.er1
2429 grep -v '^ *+' conftest.er1
>conftest.err
2431 cat conftest.err
>&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try
='test -z "$ac_c_werror_flag"
2435 || test ! -s conftest.err'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try
='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.
$ac_ext >&5
2454 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2456 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2457 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2458 if test "$ac_test_CFLAGS" = set; then
2459 CFLAGS
=$ac_save_CFLAGS
2460 elif test $ac_cv_prog_cc_g = yes; then
2461 if test "$GCC" = yes; then
2467 if test "$GCC" = yes; then
2473 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2474 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2475 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 ac_cv_prog_cc_stdc
=no
2480 cat >conftest.
$ac_ext <<_ACEOF
2483 cat confdefs.h
>>conftest.
$ac_ext
2484 cat >>conftest.
$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2488 #include <sys/types.h>
2489 #include <sys/stat.h>
2490 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2491 struct buf { int x; };
2492 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2493 static char *e (p, i)
2499 static char *f (char * (*g) (char **, int), char **p, ...)
2504 s = g (p, va_arg (v,int));
2509 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2510 function prototypes and stuff, but not '\xHH' hex character constants.
2511 These don't provoke an error unfortunately, instead are silently treated
2512 as 'x'. The following induces an error, until -std1 is added to get
2513 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2514 array size at least. It's necessary to write '\x00'==0 to get something
2515 that's true only with -std1. */
2516 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2518 int test (int i, double x);
2519 struct s1 {int (*f) (int a);};
2520 struct s2 {int (*f) (double a);};
2521 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2527 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2532 # Don't try gcc -ansi; that turns off useful extensions and
2533 # breaks some systems' header files.
2534 # AIX -qlanglvl=ansi
2535 # Ultrix and OSF/1 -std1
2536 # HP-UX 10.20 and later -Ae
2537 # HP-UX older versions -Aa -D_HPUX_SOURCE
2538 # SVR4 -Xc -D__EXTENSIONS__
2539 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2541 CC
="$ac_save_CC $ac_arg"
2542 rm -f conftest.
$ac_objext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>conftest.er1
2546 grep -v '^ *+' conftest.er1
>conftest.err
2548 cat conftest.err
>&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try
='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try
='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 ac_cv_prog_cc_stdc
=$ac_arg
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.
$ac_ext >&5
2571 rm -f conftest.err conftest.
$ac_objext
2573 rm -f conftest.
$ac_ext conftest.
$ac_objext
2578 case "x$ac_cv_prog_cc_stdc" in
2580 echo "$as_me:$LINENO: result: none needed" >&5
2581 echo "${ECHO_T}none needed" >&6 ;;
2583 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2584 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2585 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2588 # Some people use a C++ compiler to compile C. Since we use `exit',
2589 # in C++ we need to declare it. In case someone uses the same compiler
2590 # for both compiling C and C++ we need to have the C++ compiler decide
2591 # the declaration of exit, since it's the most demanding environment.
2592 cat >conftest.
$ac_ext <<_ACEOF
2597 rm -f conftest.
$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>conftest.er1
2601 grep -v '^ *+' conftest.er1
>conftest.err
2603 cat conftest.err
>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try
='test -z "$ac_c_werror_flag"
2607 || test ! -s conftest.err'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; } &&
2613 { ac_try
='test -s conftest.$ac_objext'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2619 for ac_declaration
in \
2621 'extern "C" void std::exit (int) throw (); using std::exit;' \
2622 'extern "C" void std::exit (int); using std::exit;' \
2623 'extern "C" void exit (int) throw ();' \
2624 'extern "C" void exit (int);' \
2627 cat >conftest.
$ac_ext <<_ACEOF
2630 cat confdefs.h
>>conftest.
$ac_ext
2631 cat >>conftest.
$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2643 rm -f conftest.
$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>conftest.er1
2647 grep -v '^ *+' conftest.er1
>conftest.err
2649 cat conftest.err
>&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try
='test -z "$ac_c_werror_flag"
2653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try
='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.
$ac_ext >&5
2672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2673 cat >conftest.
$ac_ext <<_ACEOF
2676 cat confdefs.h
>>conftest.
$ac_ext
2677 cat >>conftest.
$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 rm -f conftest.
$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>conftest.er1
2692 grep -v '^ *+' conftest.er1
>conftest.err
2694 cat conftest.err
>&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 { ac_try
='test -z "$ac_c_werror_flag"
2698 || test ! -s conftest.err'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; } &&
2704 { ac_try
='test -s conftest.$ac_objext'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.
$ac_ext >&5
2716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2719 if test -n "$ac_declaration"; then
2720 echo '#ifdef __cplusplus' >>confdefs.h
2721 echo $ac_declaration >>confdefs.h
2722 echo '#endif' >>confdefs.h
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.
$ac_ext >&5
2730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2732 ac_cpp
='$CPP $CPPFLAGS'
2733 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2738 test "x$GCC" = xyes ||
{ { echo "$as_me:$LINENO: error: GCC is required" >&5
2739 echo "$as_me: error: GCC is required" >&2;}
2740 { (exit 1); exit 1; }; }
2743 cat >>confdefs.h
<<\_ACEOF
2744 #define _GNU_SOURCE 1
2749 # Check whether --enable-largefile or --disable-largefile was given.
2750 if test "${enable_largefile+set}" = set; then
2751 enableval
="$enable_largefile"
2754 if test "$enable_largefile" != no
; then
2756 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2757 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2758 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 ac_cv_sys_largefile_CC
=no
2762 if test "$GCC" != yes; then
2765 # IRIX 6.2 and later do not support large files by default,
2766 # so use the C compiler's -n32 option if that helps.
2767 cat >conftest.
$ac_ext <<_ACEOF
2770 cat confdefs.h
>>conftest.
$ac_ext
2771 cat >>conftest.
$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2773 #include <sys/types.h>
2774 /* Check that off_t can represent 2**63 - 1 correctly.
2775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2776 since some C++ compilers masquerading as C compilers
2777 incorrectly reject 9223372036854775807. */
2778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2780 && LARGE_OFF_T % 2147483647 == 1)
2790 rm -f conftest.
$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>conftest.er1
2794 grep -v '^ *+' conftest.er1
>conftest.err
2796 cat conftest.err
>&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
2799 { ac_try
='test -z "$ac_c_werror_flag"
2800 || test ! -s conftest.err'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; } &&
2806 { ac_try
='test -s conftest.$ac_objext'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.
$ac_ext >&5
2818 rm -f conftest.err conftest.
$ac_objext
2820 rm -f conftest.
$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>conftest.er1
2824 grep -v '^ *+' conftest.er1
>conftest.err
2826 cat conftest.err
>&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try
='test -z "$ac_c_werror_flag"
2830 || test ! -s conftest.err'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; } &&
2836 { ac_try
='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_sys_largefile_CC
=' -n32'; break
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.
$ac_ext >&5
2848 rm -f conftest.err conftest.
$ac_objext
2852 rm -f conftest.
$ac_ext
2855 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2856 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2857 if test "$ac_cv_sys_largefile_CC" != no
; then
2858 CC
=$CC$ac_cv_sys_largefile_CC
2861 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2862 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2863 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 ac_cv_sys_file_offset_bits
=no
2868 cat >conftest.
$ac_ext <<_ACEOF
2871 cat confdefs.h
>>conftest.
$ac_ext
2872 cat >>conftest.
$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2874 #include <sys/types.h>
2875 /* Check that off_t can represent 2**63 - 1 correctly.
2876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2877 since some C++ compilers masquerading as C compilers
2878 incorrectly reject 9223372036854775807. */
2879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2881 && LARGE_OFF_T % 2147483647 == 1)
2891 rm -f conftest.
$ac_objext
2892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2893 (eval $ac_compile) 2>conftest.er1
2895 grep -v '^ *+' conftest.er1
>conftest.err
2897 cat conftest.err
>&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try
='test -z "$ac_c_werror_flag"
2901 || test ! -s conftest.err'
2902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; } &&
2907 { ac_try
='test -s conftest.$ac_objext'
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; }; then
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.
$ac_ext >&5
2919 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2920 cat >conftest.
$ac_ext <<_ACEOF
2923 cat confdefs.h
>>conftest.
$ac_ext
2924 cat >>conftest.
$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2926 #define _FILE_OFFSET_BITS 64
2927 #include <sys/types.h>
2928 /* Check that off_t can represent 2**63 - 1 correctly.
2929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2930 since some C++ compilers masquerading as C compilers
2931 incorrectly reject 9223372036854775807. */
2932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2934 && LARGE_OFF_T % 2147483647 == 1)
2944 rm -f conftest.
$ac_objext
2945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2946 (eval $ac_compile) 2>conftest.er1
2948 grep -v '^ *+' conftest.er1
>conftest.err
2950 cat conftest.err
>&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try
='test -z "$ac_c_werror_flag"
2954 || test ! -s conftest.err'
2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; } &&
2960 { ac_try
='test -s conftest.$ac_objext'
2961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; }; then
2966 ac_cv_sys_file_offset_bits
=64; break
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.
$ac_ext >&5
2972 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2976 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2977 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2978 if test "$ac_cv_sys_file_offset_bits" != no
; then
2980 cat >>confdefs.h
<<_ACEOF
2981 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2986 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2987 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2988 if test "${ac_cv_sys_large_files+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 ac_cv_sys_large_files
=no
2993 cat >conftest.
$ac_ext <<_ACEOF
2996 cat confdefs.h
>>conftest.
$ac_ext
2997 cat >>conftest.
$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
2999 #include <sys/types.h>
3000 /* Check that off_t can represent 2**63 - 1 correctly.
3001 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3002 since some C++ compilers masquerading as C compilers
3003 incorrectly reject 9223372036854775807. */
3004 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3005 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3006 && LARGE_OFF_T % 2147483647 == 1)
3016 rm -f conftest.
$ac_objext
3017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3018 (eval $ac_compile) 2>conftest.er1
3020 grep -v '^ *+' conftest.er1
>conftest.err
3022 cat conftest.err
>&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try
='test -z "$ac_c_werror_flag"
3026 || test ! -s conftest.err'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; } &&
3032 { ac_try
='test -s conftest.$ac_objext'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.
$ac_ext >&5
3044 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3045 cat >conftest.
$ac_ext <<_ACEOF
3048 cat confdefs.h
>>conftest.
$ac_ext
3049 cat >>conftest.
$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3051 #define _LARGE_FILES 1
3052 #include <sys/types.h>
3053 /* Check that off_t can represent 2**63 - 1 correctly.
3054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3055 since some C++ compilers masquerading as C compilers
3056 incorrectly reject 9223372036854775807. */
3057 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3059 && LARGE_OFF_T % 2147483647 == 1)
3069 rm -f conftest.
$ac_objext
3070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3071 (eval $ac_compile) 2>conftest.er1
3073 grep -v '^ *+' conftest.er1
>conftest.err
3075 cat conftest.err
>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
3078 { ac_try
='test -z "$ac_c_werror_flag"
3079 || test ! -s conftest.err'
3080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; } &&
3085 { ac_try
='test -s conftest.$ac_objext'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3091 ac_cv_sys_large_files
=1; break
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.
$ac_ext >&5
3097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3101 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3102 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3103 if test "$ac_cv_sys_large_files" != no
; then
3105 cat >>confdefs.h
<<_ACEOF
3106 #define _LARGE_FILES $ac_cv_sys_large_files
3114 # Identify characteristics of the host architecture.
3115 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3116 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3117 if test "${ac_cv_c_bigendian+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 # See if sys/param.h defines the BYTE_ORDER macro.
3121 cat >conftest.
$ac_ext <<_ACEOF
3124 cat confdefs.h
>>conftest.
$ac_ext
3125 cat >>conftest.
$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <sys/types.h>
3128 #include <sys/param.h>
3133 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3141 rm -f conftest.
$ac_objext
3142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143 (eval $ac_compile) 2>conftest.er1
3145 grep -v '^ *+' conftest.er1
>conftest.err
3147 cat conftest.err
>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try
='test -z "$ac_c_werror_flag"
3151 || test ! -s conftest.err'
3152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; } &&
3157 { ac_try
='test -s conftest.$ac_objext'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 # It does; now see whether it defined to BIG_ENDIAN or not.
3164 cat >conftest.
$ac_ext <<_ACEOF
3167 cat confdefs.h
>>conftest.
$ac_ext
3168 cat >>conftest.
$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3170 #include <sys/types.h>
3171 #include <sys/param.h>
3176 #if BYTE_ORDER != BIG_ENDIAN
3184 rm -f conftest.
$ac_objext
3185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3186 (eval $ac_compile) 2>conftest.er1
3188 grep -v '^ *+' conftest.er1
>conftest.err
3190 cat conftest.err
>&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try
='test -z "$ac_c_werror_flag"
3194 || test ! -s conftest.err'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; } &&
3200 { ac_try
='test -s conftest.$ac_objext'
3201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3206 ac_cv_c_bigendian
=yes
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.
$ac_ext >&5
3211 ac_cv_c_bigendian
=no
3213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3215 echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.
$ac_ext >&5
3218 # It does not; compile a test program.
3219 if test "$cross_compiling" = yes; then
3220 # try to guess the endianness by grepping values into an object file
3221 ac_cv_c_bigendian
=unknown
3222 cat >conftest.
$ac_ext <<_ACEOF
3225 cat confdefs.h
>>conftest.
$ac_ext
3226 cat >>conftest.
$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3229 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3230 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3231 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3232 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3233 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3237 _ascii (); _ebcdic ();
3242 rm -f conftest.
$ac_objext
3243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3244 (eval $ac_compile) 2>conftest.er1
3246 grep -v '^ *+' conftest.er1
>conftest.err
3248 cat conftest.err
>&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } &&
3251 { ac_try
='test -z "$ac_c_werror_flag"
3252 || test ! -s conftest.err'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; } &&
3258 { ac_try
='test -s conftest.$ac_objext'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; }; then
3264 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
3265 ac_cv_c_bigendian
=yes
3267 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
3268 if test "$ac_cv_c_bigendian" = unknown
; then
3269 ac_cv_c_bigendian
=no
3271 # finding both strings is unlikely to happen, but who knows?
3272 ac_cv_c_bigendian
=unknown
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.
$ac_ext >&5
3280 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3282 cat >conftest.
$ac_ext <<_ACEOF
3285 cat confdefs.h
>>conftest.
$ac_ext
3286 cat >>conftest.
$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3291 /* Are we little or big endian? From Harbison&Steele. */
3295 char c[sizeof (long)];
3298 exit (u.c[sizeof (long) - 1] == 1);
3301 rm -f conftest
$ac_exeext
3302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3303 (eval $ac_link) 2>&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 ac_cv_c_bigendian
=no
3314 echo "$as_me: program exited with status $ac_status" >&5
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.
$ac_ext >&5
3319 ac_cv_c_bigendian
=yes
3321 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3324 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3326 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3327 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3328 case $ac_cv_c_bigendian in
3331 cat >>confdefs.h
<<\_ACEOF
3332 #define WORDS_BIGENDIAN 1
3338 { { echo "$as_me:$LINENO: error: unknown endianness
3339 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3340 echo "$as_me: error: unknown endianness
3341 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3342 { (exit 1); exit 1; }; } ;;
3346 ac_cpp
='$CPP $CPPFLAGS'
3347 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3350 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3351 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3352 # On Suns, sometimes $CPP names a directory.
3353 if test -n "$CPP" && test -d "$CPP"; then
3356 if test -z "$CPP"; then
3357 if test "${ac_cv_prog_CPP+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 # Double quotes because CPP needs to be expanded
3361 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3364 for ac_c_preproc_warn_flag
in '' yes
3366 # Use a header file that comes with gcc, so configuring glibc
3367 # with a fresh cross-compiler works.
3368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3369 # <limits.h> exists even on freestanding compilers.
3370 # On the NeXT, cc -E runs the code through the compiler's parser,
3371 # not just through cpp. "Syntax error" is here to catch this case.
3372 cat >conftest.
$ac_ext <<_ACEOF
3375 cat confdefs.h
>>conftest.
$ac_ext
3376 cat >>conftest.
$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3379 # include <limits.h>
3381 # include <assert.h>
3385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3386 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3388 grep -v '^ *+' conftest.er1
>conftest.err
3390 cat conftest.err
>&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } >/dev
/null
; then
3393 if test -s conftest.err
; then
3394 ac_cpp_err
=$ac_c_preproc_warn_flag
3395 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3402 if test -z "$ac_cpp_err"; then
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.
$ac_ext >&5
3408 # Broken: fails on valid input.
3411 rm -f conftest.err conftest.
$ac_ext
3413 # OK, works on sane cases. Now check whether non-existent headers
3414 # can be detected and how.
3415 cat >conftest.
$ac_ext <<_ACEOF
3418 cat confdefs.h
>>conftest.
$ac_ext
3419 cat >>conftest.
$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #include <ac_nonexistent.h>
3423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3424 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3426 grep -v '^ *+' conftest.er1
>conftest.err
3428 cat conftest.err
>&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } >/dev
/null
; then
3431 if test -s conftest.err
; then
3432 ac_cpp_err
=$ac_c_preproc_warn_flag
3433 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3440 if test -z "$ac_cpp_err"; then
3441 # Broken: success on invalid input.
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.
$ac_ext >&5
3447 # Passes both tests.
3451 rm -f conftest.err conftest.
$ac_ext
3454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3455 rm -f conftest.err conftest.
$ac_ext
3456 if $ac_preproc_ok; then
3468 echo "$as_me:$LINENO: result: $CPP" >&5
3469 echo "${ECHO_T}$CPP" >&6
3471 for ac_c_preproc_warn_flag
in '' yes
3473 # Use a header file that comes with gcc, so configuring glibc
3474 # with a fresh cross-compiler works.
3475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3476 # <limits.h> exists even on freestanding compilers.
3477 # On the NeXT, cc -E runs the code through the compiler's parser,
3478 # not just through cpp. "Syntax error" is here to catch this case.
3479 cat >conftest.
$ac_ext <<_ACEOF
3482 cat confdefs.h
>>conftest.
$ac_ext
3483 cat >>conftest.
$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3486 # include <limits.h>
3488 # include <assert.h>
3492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3493 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3495 grep -v '^ *+' conftest.er1
>conftest.err
3497 cat conftest.err
>&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } >/dev
/null
; then
3500 if test -s conftest.err
; then
3501 ac_cpp_err
=$ac_c_preproc_warn_flag
3502 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3509 if test -z "$ac_cpp_err"; then
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.
$ac_ext >&5
3515 # Broken: fails on valid input.
3518 rm -f conftest.err conftest.
$ac_ext
3520 # OK, works on sane cases. Now check whether non-existent headers
3521 # can be detected and how.
3522 cat >conftest.
$ac_ext <<_ACEOF
3525 cat confdefs.h
>>conftest.
$ac_ext
3526 cat >>conftest.
$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #include <ac_nonexistent.h>
3530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3531 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3533 grep -v '^ *+' conftest.er1
>conftest.err
3535 cat conftest.err
>&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } >/dev
/null
; then
3538 if test -s conftest.err
; then
3539 ac_cpp_err
=$ac_c_preproc_warn_flag
3540 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3547 if test -z "$ac_cpp_err"; then
3548 # Broken: success on invalid input.
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.
$ac_ext >&5
3554 # Passes both tests.
3558 rm -f conftest.err conftest.
$ac_ext
3561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3562 rm -f conftest.err conftest.
$ac_ext
3563 if $ac_preproc_ok; then
3566 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3567 See \`config.log' for more details." >&5
3568 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3569 See \`config.log' for more details." >&2;}
3570 { (exit 1); exit 1; }; }
3574 ac_cpp
='$CPP $CPPFLAGS'
3575 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3580 echo "$as_me:$LINENO: checking for egrep" >&5
3581 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3582 if test "${ac_cv_prog_egrep+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3586 then ac_cv_prog_egrep
='grep -E'
3587 else ac_cv_prog_egrep
='egrep'
3590 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3591 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3592 EGREP
=$ac_cv_prog_egrep
3595 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3596 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3597 if test "${ac_cv_header_stdc+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 cat >conftest.
$ac_ext <<_ACEOF
3603 cat confdefs.h
>>conftest.
$ac_ext
3604 cat >>conftest.
$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3619 rm -f conftest.
$ac_objext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3621 (eval $ac_compile) 2>conftest.er1
3623 grep -v '^ *+' conftest.er1
>conftest.err
3625 cat conftest.err
>&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } &&
3628 { ac_try
='test -z "$ac_c_werror_flag"
3629 || test ! -s conftest.err'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; } &&
3635 { ac_try
='test -s conftest.$ac_objext'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 ac_cv_header_stdc
=yes
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.
$ac_ext >&5
3646 ac_cv_header_stdc
=no
3648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3650 if test $ac_cv_header_stdc = yes; then
3651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3652 cat >conftest.
$ac_ext <<_ACEOF
3655 cat confdefs.h
>>conftest.
$ac_ext
3656 cat >>conftest.
$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3662 $EGREP "memchr" >/dev
/null
2>&1; then
3665 ac_cv_header_stdc
=no
3671 if test $ac_cv_header_stdc = yes; then
3672 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3673 cat >conftest.
$ac_ext <<_ACEOF
3676 cat confdefs.h
>>conftest.
$ac_ext
3677 cat >>conftest.
$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3683 $EGREP "free" >/dev
/null
2>&1; then
3686 ac_cv_header_stdc
=no
3692 if test $ac_cv_header_stdc = yes; then
3693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3694 if test "$cross_compiling" = yes; then
3697 cat >conftest.
$ac_ext <<_ACEOF
3700 cat confdefs.h
>>conftest.
$ac_ext
3701 cat >>conftest.
$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3704 #if ((' ' & 0x0FF) == 0x020)
3705 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3706 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3708 # define ISLOWER(c) \
3709 (('a' <= (c) && (c) <= 'i') \
3710 || ('j' <= (c) && (c) <= 'r') \
3711 || ('s' <= (c) && (c) <= 'z'))
3712 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3715 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3720 for (i = 0; i < 256; i++)
3721 if (XOR (islower (i), ISLOWER (i))
3722 || toupper (i) != TOUPPER (i))
3727 rm -f conftest
$ac_exeext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729 (eval $ac_link) 2>&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; }; then
3740 echo "$as_me: program exited with status $ac_status" >&5
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.
$ac_ext >&5
3745 ac_cv_header_stdc
=no
3747 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3751 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3752 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3753 if test $ac_cv_header_stdc = yes; then
3755 cat >>confdefs.h
<<\_ACEOF
3756 #define STDC_HEADERS 1
3761 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3771 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3772 inttypes.h stdint.h unistd.h
3774 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3775 echo "$as_me:$LINENO: checking for $ac_header" >&5
3776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 cat >conftest.
$ac_ext <<_ACEOF
3783 cat confdefs.h
>>conftest.
$ac_ext
3784 cat >>conftest.
$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3786 $ac_includes_default
3788 #include <$ac_header>
3790 rm -f conftest.
$ac_objext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792 (eval $ac_compile) 2>conftest.er1
3794 grep -v '^ *+' conftest.er1
>conftest.err
3796 cat conftest.err
>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try
='test -z "$ac_c_werror_flag"
3800 || test ! -s conftest.err'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; } &&
3806 { ac_try
='test -s conftest.$ac_objext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 eval "$as_ac_Header=yes"
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.
$ac_ext >&5
3817 eval "$as_ac_Header=no"
3819 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3824 cat >>confdefs.h
<<_ACEOF
3825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3833 echo "$as_me:$LINENO: checking for void *" >&5
3834 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3835 if test "${ac_cv_type_void_p+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 cat >conftest.
$ac_ext <<_ACEOF
3841 cat confdefs.h
>>conftest.
$ac_ext
3842 cat >>conftest.
$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 $ac_includes_default
3850 if (sizeof (void *))
3856 rm -f conftest.
$ac_objext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858 (eval $ac_compile) 2>conftest.er1
3860 grep -v '^ *+' conftest.er1
>conftest.err
3862 cat conftest.err
>&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try
='test -z "$ac_c_werror_flag"
3866 || test ! -s conftest.err'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; } &&
3872 { ac_try
='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 ac_cv_type_void_p
=yes
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.
$ac_ext >&5
3883 ac_cv_type_void_p
=no
3885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3887 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3888 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3890 echo "$as_me:$LINENO: checking size of void *" >&5
3891 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3892 if test "${ac_cv_sizeof_void_p+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 if test "$ac_cv_type_void_p" = yes; then
3896 # The cast to unsigned long works around a bug in the HP C Compiler
3897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3899 # This bug is HP SR number 8606223364.
3900 if test "$cross_compiling" = yes; then
3901 # Depending upon the size, compute the lo and hi bounds.
3902 cat >conftest.
$ac_ext <<_ACEOF
3905 cat confdefs.h
>>conftest.
$ac_ext
3906 cat >>conftest.
$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3908 $ac_includes_default
3912 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3919 rm -f conftest.
$ac_objext
3920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3921 (eval $ac_compile) 2>conftest.er1
3923 grep -v '^ *+' conftest.er1
>conftest.err
3925 cat conftest.err
>&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } &&
3928 { ac_try
='test -z "$ac_c_werror_flag"
3929 || test ! -s conftest.err'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; } &&
3935 { ac_try
='test -s conftest.$ac_objext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3943 cat >conftest.
$ac_ext <<_ACEOF
3946 cat confdefs.h
>>conftest.
$ac_ext
3947 cat >>conftest.
$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 $ac_includes_default
3953 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3960 rm -f conftest.
$ac_objext
3961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962 (eval $ac_compile) 2>conftest.er1
3964 grep -v '^ *+' conftest.er1
>conftest.err
3966 cat conftest.err
>&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } &&
3969 { ac_try
='test -z "$ac_c_werror_flag"
3970 || test ! -s conftest.err'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; } &&
3976 { ac_try
='test -s conftest.$ac_objext'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_hi
=$ac_mid; break
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.
$ac_ext >&5
3987 ac_lo
=`expr $ac_mid + 1`
3988 if test $ac_lo -le $ac_mid; then
3992 ac_mid
=`expr 2 '*' $ac_mid + 1`
3994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.
$ac_ext >&5
4000 cat >conftest.
$ac_ext <<_ACEOF
4003 cat confdefs.h
>>conftest.
$ac_ext
4004 cat >>conftest.
$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 $ac_includes_default
4010 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4017 rm -f conftest.
$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4021 grep -v '^ *+' conftest.er1
>conftest.err
4023 cat conftest.err
>&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try
='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try
='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4041 cat >conftest.
$ac_ext <<_ACEOF
4044 cat confdefs.h
>>conftest.
$ac_ext
4045 cat >>conftest.
$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 $ac_includes_default
4051 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4058 rm -f conftest.
$ac_objext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>conftest.er1
4062 grep -v '^ *+' conftest.er1
>conftest.err
4064 cat conftest.err
>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try
='test -z "$ac_c_werror_flag"
4068 || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try
='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_lo
=$ac_mid; break
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.
$ac_ext >&5
4085 ac_hi
=`expr '(' $ac_mid ')' - 1`
4086 if test $ac_mid -le $ac_hi; then
4090 ac_mid
=`expr 2 '*' $ac_mid`
4092 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.
$ac_ext >&5
4100 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4103 # Binary search between lo and hi bounds.
4104 while test "x$ac_lo" != "x$ac_hi"; do
4105 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4106 cat >conftest.
$ac_ext <<_ACEOF
4109 cat confdefs.h
>>conftest.
$ac_ext
4110 cat >>conftest.
$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 $ac_includes_default
4116 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4123 rm -f conftest.
$ac_objext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125 (eval $ac_compile) 2>conftest.er1
4127 grep -v '^ *+' conftest.er1
>conftest.err
4129 cat conftest.err
>&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } &&
4132 { ac_try
='test -z "$ac_c_werror_flag"
4133 || test ! -s conftest.err'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; } &&
4139 { ac_try
='test -s conftest.$ac_objext'
4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.
$ac_ext >&5
4150 ac_lo
=`expr '(' $ac_mid ')' + 1`
4152 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4155 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
4156 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4157 See \`config.log' for more details." >&5
4158 echo "$as_me: error: cannot compute sizeof (void *), 77
4159 See \`config.log' for more details." >&2;}
4160 { (exit 1); exit 1; }; } ;;
4163 if test "$cross_compiling" = yes; then
4164 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4165 See \`config.log' for more details." >&5
4166 echo "$as_me: error: cannot run test program while cross compiling
4167 See \`config.log' for more details." >&2;}
4168 { (exit 1); exit 1; }; }
4170 cat >conftest.
$ac_ext <<_ACEOF
4173 cat confdefs.h
>>conftest.
$ac_ext
4174 cat >>conftest.
$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4176 $ac_includes_default
4177 long longval () { return (long) (sizeof (void *)); }
4178 unsigned long ulongval () { return (long) (sizeof (void *)); }
4185 FILE *f = fopen ("conftest.val", "w");
4188 if (((long) (sizeof (void *))) < 0)
4190 long i = longval ();
4191 if (i != ((long) (sizeof (void *))))
4193 fprintf (f, "%ld\n", i);
4197 unsigned long i = ulongval ();
4198 if (i != ((long) (sizeof (void *))))
4200 fprintf (f, "%lu\n", i);
4202 exit (ferror (f) || fclose (f) != 0);
4208 rm -f conftest
$ac_exeext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4210 (eval $ac_link) 2>&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
4219 ac_cv_sizeof_void_p
=`cat conftest.val`
4221 echo "$as_me: program exited with status $ac_status" >&5
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.
$ac_ext >&5
4226 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4227 See \`config.log' for more details." >&5
4228 echo "$as_me: error: cannot compute sizeof (void *), 77
4229 See \`config.log' for more details." >&2;}
4230 { (exit 1); exit 1; }; }
4232 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4237 ac_cv_sizeof_void_p
=0
4240 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4241 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4242 cat >>confdefs.h
<<_ACEOF
4243 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4247 echo "$as_me:$LINENO: checking for long" >&5
4248 echo $ECHO_N "checking for long... $ECHO_C" >&6
4249 if test "${ac_cv_type_long+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 cat >conftest.
$ac_ext <<_ACEOF
4255 cat confdefs.h
>>conftest.
$ac_ext
4256 cat >>conftest.
$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 $ac_includes_default
4270 rm -f conftest.
$ac_objext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272 (eval $ac_compile) 2>conftest.er1
4274 grep -v '^ *+' conftest.er1
>conftest.err
4276 cat conftest.err
>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try
='test -z "$ac_c_werror_flag"
4280 || test ! -s conftest.err'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; } &&
4286 { ac_try
='test -s conftest.$ac_objext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.
$ac_ext >&5
4299 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4301 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4302 echo "${ECHO_T}$ac_cv_type_long" >&6
4304 echo "$as_me:$LINENO: checking size of long" >&5
4305 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4306 if test "${ac_cv_sizeof_long+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 if test "$ac_cv_type_long" = yes; then
4310 # The cast to unsigned long works around a bug in the HP C Compiler
4311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4313 # This bug is HP SR number 8606223364.
4314 if test "$cross_compiling" = yes; then
4315 # Depending upon the size, compute the lo and hi bounds.
4316 cat >conftest.
$ac_ext <<_ACEOF
4319 cat confdefs.h
>>conftest.
$ac_ext
4320 cat >>conftest.
$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 $ac_includes_default
4326 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4333 rm -f conftest.
$ac_objext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335 (eval $ac_compile) 2>conftest.er1
4337 grep -v '^ *+' conftest.er1
>conftest.err
4339 cat conftest.err
>&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try
='test -z "$ac_c_werror_flag"
4343 || test ! -s conftest.err'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; } &&
4349 { ac_try
='test -s conftest.$ac_objext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4357 cat >conftest.
$ac_ext <<_ACEOF
4360 cat confdefs.h
>>conftest.
$ac_ext
4361 cat >>conftest.
$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 $ac_includes_default
4367 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4374 rm -f conftest.
$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4378 grep -v '^ *+' conftest.er1
>conftest.err
4380 cat conftest.err
>&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try
='test -z "$ac_c_werror_flag"
4384 || test ! -s conftest.err'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try
='test -s conftest.$ac_objext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 ac_hi
=$ac_mid; break
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.
$ac_ext >&5
4401 ac_lo
=`expr $ac_mid + 1`
4402 if test $ac_lo -le $ac_mid; then
4406 ac_mid
=`expr 2 '*' $ac_mid + 1`
4408 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.
$ac_ext >&5
4414 cat >conftest.
$ac_ext <<_ACEOF
4417 cat confdefs.h
>>conftest.
$ac_ext
4418 cat >>conftest.
$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 $ac_includes_default
4424 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4431 rm -f conftest.
$ac_objext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>conftest.er1
4435 grep -v '^ *+' conftest.er1
>conftest.err
4437 cat conftest.err
>&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try
='test -z "$ac_c_werror_flag"
4441 || test ! -s conftest.err'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try
='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4455 cat >conftest.
$ac_ext <<_ACEOF
4458 cat confdefs.h
>>conftest.
$ac_ext
4459 cat >>conftest.
$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 $ac_includes_default
4465 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4472 rm -f conftest.
$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>conftest.er1
4476 grep -v '^ *+' conftest.er1
>conftest.err
4478 cat conftest.err
>&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try
='test -z "$ac_c_werror_flag"
4482 || test ! -s conftest.err'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; } &&
4488 { ac_try
='test -s conftest.$ac_objext'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 ac_lo
=$ac_mid; break
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.
$ac_ext >&5
4499 ac_hi
=`expr '(' $ac_mid ')' - 1`
4500 if test $ac_mid -le $ac_hi; then
4504 ac_mid
=`expr 2 '*' $ac_mid`
4506 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.
$ac_ext >&5
4514 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4517 # Binary search between lo and hi bounds.
4518 while test "x$ac_lo" != "x$ac_hi"; do
4519 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4520 cat >conftest.
$ac_ext <<_ACEOF
4523 cat confdefs.h
>>conftest.
$ac_ext
4524 cat >>conftest.
$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 $ac_includes_default
4530 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4537 rm -f conftest.
$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>conftest.er1
4541 grep -v '^ *+' conftest.er1
>conftest.err
4543 cat conftest.err
>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try
='test -z "$ac_c_werror_flag"
4547 || test ! -s conftest.err'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try
='test -s conftest.$ac_objext'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.
$ac_ext >&5
4564 ac_lo
=`expr '(' $ac_mid ')' + 1`
4566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4569 ?
*) ac_cv_sizeof_long
=$ac_lo;;
4570 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4571 See \`config.log' for more details." >&5
4572 echo "$as_me: error: cannot compute sizeof (long), 77
4573 See \`config.log' for more details." >&2;}
4574 { (exit 1); exit 1; }; } ;;
4577 if test "$cross_compiling" = yes; then
4578 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4579 See \`config.log' for more details." >&5
4580 echo "$as_me: error: cannot run test program while cross compiling
4581 See \`config.log' for more details." >&2;}
4582 { (exit 1); exit 1; }; }
4584 cat >conftest.
$ac_ext <<_ACEOF
4587 cat confdefs.h
>>conftest.
$ac_ext
4588 cat >>conftest.
$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 $ac_includes_default
4591 long longval () { return (long) (sizeof (long)); }
4592 unsigned long ulongval () { return (long) (sizeof (long)); }
4599 FILE *f = fopen ("conftest.val", "w");
4602 if (((long) (sizeof (long))) < 0)
4604 long i = longval ();
4605 if (i != ((long) (sizeof (long))))
4607 fprintf (f, "%ld\n", i);
4611 unsigned long i = ulongval ();
4612 if (i != ((long) (sizeof (long))))
4614 fprintf (f, "%lu\n", i);
4616 exit (ferror (f) || fclose (f) != 0);
4622 rm -f conftest
$ac_exeext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4624 (eval $ac_link) 2>&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 ac_cv_sizeof_long
=`cat conftest.val`
4635 echo "$as_me: program exited with status $ac_status" >&5
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.
$ac_ext >&5
4640 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4641 See \`config.log' for more details." >&5
4642 echo "$as_me: error: cannot compute sizeof (long), 77
4643 See \`config.log' for more details." >&2;}
4644 { (exit 1); exit 1; }; }
4646 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4654 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4655 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4656 cat >>confdefs.h
<<_ACEOF
4657 #define SIZEOF_LONG $ac_cv_sizeof_long
4662 if test "x$host_m32" = x1
; then
4663 # Force 32-bit mode.
4664 CFLAGS
="$CFLAGS -m32"
4665 LDFLAGS
="$LDFLAGS -m32"
4668 # Check LZO when compiling for the i386-pc.
4669 if test "$target_cpu"-"$platform" = i386-pc
; then
4670 # There are three possibilities. LZO version 2 installed with the name
4671 # liblzo2, with the name liblzo, and LZO version 1.
4672 echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
4673 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6
4674 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 ac_check_lib_save_LIBS
=$LIBS
4679 cat >conftest.
$ac_ext <<_ACEOF
4682 cat confdefs.h
>>conftest.
$ac_ext
4683 cat >>conftest.
$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4686 /* Override any gcc2 internal prototype to avoid an error. */
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4692 char __lzo_init_v2 ();
4701 rm -f conftest.
$ac_objext conftest
$ac_exeext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4703 (eval $ac_link) 2>conftest.er1
4705 grep -v '^ *+' conftest.er1
>conftest.err
4707 cat conftest.err
>&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try
='test -z "$ac_c_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try
='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_cv_lib_lzo2___lzo_init_v2
=yes
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.
$ac_ext >&5
4728 ac_cv_lib_lzo2___lzo_init_v2
=no
4730 rm -f conftest.err conftest.
$ac_objext \
4731 conftest
$ac_exeext conftest.
$ac_ext
4732 LIBS
=$ac_check_lib_save_LIBS
4734 echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
4735 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6
4736 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
4739 echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
4740 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6
4741 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 ac_check_lib_save_LIBS
=$LIBS
4746 cat >conftest.
$ac_ext <<_ACEOF
4749 cat confdefs.h
>>conftest.
$ac_ext
4750 cat >>conftest.
$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4753 /* Override any gcc2 internal prototype to avoid an error. */
4757 /* We use char because int might match the return type of a gcc2
4758 builtin and then its argument prototype would still apply. */
4759 char __lzo_init_v2 ();
4768 rm -f conftest.
$ac_objext conftest
$ac_exeext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4770 (eval $ac_link) 2>conftest.er1
4772 grep -v '^ *+' conftest.er1
>conftest.err
4774 cat conftest.err
>&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try
='test -z "$ac_c_werror_flag"
4778 || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try
='test -s conftest$ac_exeext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_cv_lib_lzo___lzo_init_v2
=yes
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.
$ac_ext >&5
4795 ac_cv_lib_lzo___lzo_init_v2
=no
4797 rm -f conftest.err conftest.
$ac_objext \
4798 conftest
$ac_exeext conftest.
$ac_ext
4799 LIBS
=$ac_check_lib_save_LIBS
4801 echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
4802 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6
4803 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
4806 echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
4807 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6
4808 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 ac_check_lib_save_LIBS
=$LIBS
4813 cat >conftest.
$ac_ext <<_ACEOF
4816 cat confdefs.h
>>conftest.
$ac_ext
4817 cat >>conftest.
$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4820 /* Override any gcc2 internal prototype to avoid an error. */
4824 /* We use char because int might match the return type of a gcc2
4825 builtin and then its argument prototype would still apply. */
4826 char __lzo_init2 ();
4835 rm -f conftest.
$ac_objext conftest
$ac_exeext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4837 (eval $ac_link) 2>conftest.er1
4839 grep -v '^ *+' conftest.er1
>conftest.err
4841 cat conftest.err
>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try
='test -z "$ac_c_werror_flag"
4845 || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try
='test -s conftest$ac_exeext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 ac_cv_lib_lzo___lzo_init2
=yes
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.
$ac_ext >&5
4862 ac_cv_lib_lzo___lzo_init2
=no
4864 rm -f conftest.err conftest.
$ac_objext \
4865 conftest
$ac_exeext conftest.
$ac_ext
4866 LIBS
=$ac_check_lib_save_LIBS
4868 echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
4869 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6
4870 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
4873 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
4874 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
4875 { (exit 1); exit 1; }; }
4883 LIBS
="$LIBS $LIBLZO"
4884 echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
4885 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6
4886 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 cat >conftest.
$ac_ext <<_ACEOF
4892 cat confdefs.h
>>conftest.
$ac_ext
4893 cat >>conftest.
$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4895 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
4896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4897 #define lzo1x_999_compress innocuous_lzo1x_999_compress
4899 /* System header to define __stub macros and hopefully few prototypes,
4900 which can conflict with char lzo1x_999_compress (); below.
4901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4902 <limits.h> exists even on freestanding compilers. */
4905 # include <limits.h>
4907 # include <assert.h>
4910 #undef lzo1x_999_compress
4912 /* Override any gcc2 internal prototype to avoid an error. */
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4919 char lzo1x_999_compress ();
4920 /* The GNU C library defines this for functions which it implements
4921 to always fail with ENOSYS. Some functions are actually named
4922 something starting with __ and the normal name is an alias. */
4923 #if defined (__stub_lzo1x_999_compress) || defined (__stub___lzo1x_999_compress)
4926 char (*f) () = lzo1x_999_compress;
4935 return f != lzo1x_999_compress;
4940 rm -f conftest.
$ac_objext conftest
$ac_exeext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4942 (eval $ac_link) 2>conftest.er1
4944 grep -v '^ *+' conftest.er1
>conftest.err
4946 cat conftest.err
>&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try
='test -z "$ac_c_werror_flag"
4950 || test ! -s conftest.err'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; } &&
4956 { ac_try
='test -s conftest$ac_exeext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_cv_func_lzo1x_999_compress
=yes
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.
$ac_ext >&5
4967 ac_cv_func_lzo1x_999_compress
=no
4969 rm -f conftest.err conftest.
$ac_objext \
4970 conftest
$ac_exeext conftest.
$ac_ext
4972 echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
4973 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6
4974 if test $ac_cv_func_lzo1x_999_compress = yes; then
4977 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
4978 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
4979 { (exit 1); exit 1; }; }
4983 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
4986 for ac_header
in lzo
/lzo1x.h lzo1x.h
4988 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4990 echo "$as_me:$LINENO: checking for $ac_header" >&5
4991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4998 # Is the header compilable?
4999 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5001 cat >conftest.
$ac_ext <<_ACEOF
5004 cat confdefs.h
>>conftest.
$ac_ext
5005 cat >>conftest.
$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 $ac_includes_default
5008 #include <$ac_header>
5010 rm -f conftest.
$ac_objext
5011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5012 (eval $ac_compile) 2>conftest.er1
5014 grep -v '^ *+' conftest.er1
>conftest.err
5016 cat conftest.err
>&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } &&
5019 { ac_try
='test -z "$ac_c_werror_flag"
5020 || test ! -s conftest.err'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; } &&
5026 { ac_try
='test -s conftest.$ac_objext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 ac_header_compiler
=yes
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.
$ac_ext >&5
5037 ac_header_compiler
=no
5039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5041 echo "${ECHO_T}$ac_header_compiler" >&6
5043 # Is the header present?
5044 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5046 cat >conftest.
$ac_ext <<_ACEOF
5049 cat confdefs.h
>>conftest.
$ac_ext
5050 cat >>conftest.
$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 #include <$ac_header>
5054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5055 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5057 grep -v '^ *+' conftest.er1
>conftest.err
5059 cat conftest.err
>&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } >/dev
/null
; then
5062 if test -s conftest.err
; then
5063 ac_cpp_err
=$ac_c_preproc_warn_flag
5064 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5071 if test -z "$ac_cpp_err"; then
5072 ac_header_preproc
=yes
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.
$ac_ext >&5
5077 ac_header_preproc
=no
5079 rm -f conftest.err conftest.
$ac_ext
5080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5081 echo "${ECHO_T}$ac_header_preproc" >&6
5083 # So? What about this header?
5084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5090 ac_header_preproc
=yes
5093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5107 ## ------------------------------- ##
5108 ## Report this to bug-grub@gnu.org ##
5109 ## ------------------------------- ##
5112 sed "s/^/$as_me: WARNING: /" >&2
5115 echo "$as_me:$LINENO: checking for $ac_header" >&5
5116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 eval "$as_ac_Header=\$ac_header_preproc"
5122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5127 cat >>confdefs.h
<<_ACEOF
5128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5137 # Check for functions.
5140 for ac_func
in posix_memalign memalign
5142 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5143 echo "$as_me:$LINENO: checking for $ac_func" >&5
5144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5145 if eval "test \"\${$as_ac_var+set}\" = set"; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 cat >conftest.
$ac_ext <<_ACEOF
5151 cat confdefs.h
>>conftest.
$ac_ext
5152 cat >>conftest.
$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5156 #define $ac_func innocuous_$ac_func
5158 /* System header to define __stub macros and hopefully few prototypes,
5159 which can conflict with char $ac_func (); below.
5160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5161 <limits.h> exists even on freestanding compilers. */
5164 # include <limits.h>
5166 # include <assert.h>
5171 /* Override any gcc2 internal prototype to avoid an error. */
5176 /* We use char because int might match the return type of a gcc2
5177 builtin and then its argument prototype would still apply. */
5179 /* The GNU C library defines this for functions which it implements
5180 to always fail with ENOSYS. Some functions are actually named
5181 something starting with __ and the normal name is an alias. */
5182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5185 char (*f) () = $ac_func;
5194 return f != $ac_func;
5199 rm -f conftest.
$ac_objext conftest
$ac_exeext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5201 (eval $ac_link) 2>conftest.er1
5203 grep -v '^ *+' conftest.er1
>conftest.err
5205 cat conftest.err
>&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } &&
5208 { ac_try
='test -z "$ac_c_werror_flag"
5209 || test ! -s conftest.err'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; } &&
5215 { ac_try
='test -s conftest$ac_exeext'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5221 eval "$as_ac_var=yes"
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.
$ac_ext >&5
5226 eval "$as_ac_var=no"
5228 rm -f conftest.err conftest.
$ac_objext \
5229 conftest
$ac_exeext conftest.
$ac_ext
5231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5233 if test `eval echo '${'$as_ac_var'}'` = yes; then
5234 cat >>confdefs.h
<<_ACEOF
5235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5243 # Check for target programs.
5246 # For cross-compiling.
5247 if test "x$target" != "x$host"; then
5248 # XXX this depends on the implementation of autoconf!
5249 tmp_ac_tool_prefix
="$ac_tool_prefix"
5250 ac_tool_prefix
=$target_alias-
5252 if test -n "$ac_tool_prefix"; then
5253 for ac_prog
in gcc egcs cc
5255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5256 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5257 echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5259 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 if test -n "$TARGET_CC"; then
5263 ac_cv_prog_TARGET_CC
="$TARGET_CC" # Let the user override the test.
5265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5269 test -z "$as_dir" && as_dir
=.
5270 for ac_exec_ext
in '' $ac_executable_extensions; do
5271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_TARGET_CC
="$ac_tool_prefix$ac_prog"
5273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 TARGET_CC
=$ac_cv_prog_TARGET_CC
5282 if test -n "$TARGET_CC"; then
5283 echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5284 echo "${ECHO_T}$TARGET_CC" >&6
5286 echo "$as_me:$LINENO: result: no" >&5
5287 echo "${ECHO_T}no" >&6
5290 test -n "$TARGET_CC" && break
5293 if test -z "$TARGET_CC"; then
5294 ac_ct_TARGET_CC
=$TARGET_CC
5295 for ac_prog
in gcc egcs cc
5297 # Extract the first word of "$ac_prog", so it can be a program name with args.
5298 set dummy
$ac_prog; ac_word
=$2
5299 echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 if test -n "$ac_ct_TARGET_CC"; then
5305 ac_cv_prog_ac_ct_TARGET_CC
="$ac_ct_TARGET_CC" # Let the user override the test.
5307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5311 test -z "$as_dir" && as_dir
=.
5312 for ac_exec_ext
in '' $ac_executable_extensions; do
5313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_ac_ct_TARGET_CC
="$ac_prog"
5315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 ac_ct_TARGET_CC
=$ac_cv_prog_ac_ct_TARGET_CC
5324 if test -n "$ac_ct_TARGET_CC"; then
5325 echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
5326 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6
5328 echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5332 test -n "$ac_ct_TARGET_CC" && break
5334 test -n "$ac_ct_TARGET_CC" || ac_ct_TARGET_CC
="{ { echo "$as_me:$LINENO: error
: none of gcc
, egcs and cc is found.
set TARGET_CC manually.
" >&5
5335 echo "$as_me: error
: none of gcc
, egcs and cc is found.
set TARGET_CC manually.
" >&2;}
5336 { (exit 1); exit 1; }; }"
5338 TARGET_CC
=$ac_ct_TARGET_CC
5341 if test -n "$ac_tool_prefix"; then
5342 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5343 set dummy
${ac_tool_prefix}objcopy
; ac_word
=$2
5344 echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 if test -n "$OBJCOPY"; then
5350 ac_cv_prog_OBJCOPY
="$OBJCOPY" # Let the user override the test.
5352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5356 test -z "$as_dir" && as_dir
=.
5357 for ac_exec_ext
in '' $ac_executable_extensions; do
5358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359 ac_cv_prog_OBJCOPY
="${ac_tool_prefix}objcopy"
5360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 OBJCOPY
=$ac_cv_prog_OBJCOPY
5369 if test -n "$OBJCOPY"; then
5370 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
5371 echo "${ECHO_T}$OBJCOPY" >&6
5373 echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6
5378 if test -z "$ac_cv_prog_OBJCOPY"; then
5379 ac_ct_OBJCOPY
=$OBJCOPY
5380 # Extract the first word of "objcopy", so it can be a program name with args.
5381 set dummy objcopy
; ac_word
=$2
5382 echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 if test -n "$ac_ct_OBJCOPY"; then
5388 ac_cv_prog_ac_ct_OBJCOPY
="$ac_ct_OBJCOPY" # Let the user override the test.
5390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5394 test -z "$as_dir" && as_dir
=.
5395 for ac_exec_ext
in '' $ac_executable_extensions; do
5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_prog_ac_ct_OBJCOPY
="objcopy"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 ac_ct_OBJCOPY
=$ac_cv_prog_ac_ct_OBJCOPY
5407 if test -n "$ac_ct_OBJCOPY"; then
5408 echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
5409 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6
5411 echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6
5415 OBJCOPY
=$ac_ct_OBJCOPY
5417 OBJCOPY
="$ac_cv_prog_OBJCOPY"
5420 if test -n "$ac_tool_prefix"; then
5421 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5422 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5423 echo "$as_me:$LINENO: checking for $ac_word" >&5
5424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425 if test "${ac_cv_prog_STRIP+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 if test -n "$STRIP"; then
5429 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5435 test -z "$as_dir" && as_dir
=.
5436 for ac_exec_ext
in '' $ac_executable_extensions; do
5437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 STRIP
=$ac_cv_prog_STRIP
5448 if test -n "$STRIP"; then
5449 echo "$as_me:$LINENO: result: $STRIP" >&5
5450 echo "${ECHO_T}$STRIP" >&6
5452 echo "$as_me:$LINENO: result: no" >&5
5453 echo "${ECHO_T}no" >&6
5457 if test -z "$ac_cv_prog_STRIP"; then
5459 # Extract the first word of "strip", so it can be a program name with args.
5460 set dummy strip
; ac_word
=$2
5461 echo "$as_me:$LINENO: checking for $ac_word" >&5
5462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5463 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 if test -n "$ac_ct_STRIP"; then
5467 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5473 test -z "$as_dir" && as_dir
=.
5474 for ac_exec_ext
in '' $ac_executable_extensions; do
5475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_ac_ct_STRIP
="strip"
5477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5486 if test -n "$ac_ct_STRIP"; then
5487 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5488 echo "${ECHO_T}$ac_ct_STRIP" >&6
5490 echo "$as_me:$LINENO: result: no" >&5
5491 echo "${ECHO_T}no" >&6
5496 STRIP
="$ac_cv_prog_STRIP"
5499 if test -n "$ac_tool_prefix"; then
5500 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5501 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
5502 echo "$as_me:$LINENO: checking for $ac_word" >&5
5503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5504 if test "${ac_cv_prog_NM+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 if test -n "$NM"; then
5508 ac_cv_prog_NM
="$NM" # Let the user override the test.
5510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5514 test -z "$as_dir" && as_dir
=.
5515 for ac_exec_ext
in '' $ac_executable_extensions; do
5516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517 ac_cv_prog_NM
="${ac_tool_prefix}nm"
5518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 if test -n "$NM"; then
5528 echo "$as_me:$LINENO: result: $NM" >&5
5529 echo "${ECHO_T}$NM" >&6
5531 echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6
5536 if test -z "$ac_cv_prog_NM"; then
5538 # Extract the first word of "nm", so it can be a program name with args.
5539 set dummy nm
; ac_word
=$2
5540 echo "$as_me:$LINENO: checking for $ac_word" >&5
5541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5542 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 if test -n "$ac_ct_NM"; then
5546 ac_cv_prog_ac_ct_NM
="$ac_ct_NM" # Let the user override the test.
5548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5552 test -z "$as_dir" && as_dir
=.
5553 for ac_exec_ext
in '' $ac_executable_extensions; do
5554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5555 ac_cv_prog_ac_ct_NM
="nm"
5556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 ac_ct_NM
=$ac_cv_prog_ac_ct_NM
5565 if test -n "$ac_ct_NM"; then
5566 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
5567 echo "${ECHO_T}$ac_ct_NM" >&6
5569 echo "$as_me:$LINENO: result: no" >&5
5570 echo "${ECHO_T}no" >&6
5579 ac_tool_prefix
="$tmp_ac_tool_prefix"
5581 if test "x$TARGET_CC" = x
; then
5584 if test -n "$ac_tool_prefix"; then
5585 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5586 set dummy
${ac_tool_prefix}objcopy
; ac_word
=$2
5587 echo "$as_me:$LINENO: checking for $ac_word" >&5
5588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 if test -n "$OBJCOPY"; then
5593 ac_cv_prog_OBJCOPY
="$OBJCOPY" # Let the user override the test.
5595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5599 test -z "$as_dir" && as_dir
=.
5600 for ac_exec_ext
in '' $ac_executable_extensions; do
5601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_prog_OBJCOPY
="${ac_tool_prefix}objcopy"
5603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 OBJCOPY
=$ac_cv_prog_OBJCOPY
5612 if test -n "$OBJCOPY"; then
5613 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
5614 echo "${ECHO_T}$OBJCOPY" >&6
5616 echo "$as_me:$LINENO: result: no" >&5
5617 echo "${ECHO_T}no" >&6
5621 if test -z "$ac_cv_prog_OBJCOPY"; then
5622 ac_ct_OBJCOPY
=$OBJCOPY
5623 # Extract the first word of "objcopy", so it can be a program name with args.
5624 set dummy objcopy
; ac_word
=$2
5625 echo "$as_me:$LINENO: checking for $ac_word" >&5
5626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5627 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 if test -n "$ac_ct_OBJCOPY"; then
5631 ac_cv_prog_ac_ct_OBJCOPY
="$ac_ct_OBJCOPY" # Let the user override the test.
5633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir
=.
5638 for ac_exec_ext
in '' $ac_executable_extensions; do
5639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_ac_ct_OBJCOPY
="objcopy"
5641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 ac_ct_OBJCOPY
=$ac_cv_prog_ac_ct_OBJCOPY
5650 if test -n "$ac_ct_OBJCOPY"; then
5651 echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
5652 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6
5654 echo "$as_me:$LINENO: result: no" >&5
5655 echo "${ECHO_T}no" >&6
5658 OBJCOPY
=$ac_ct_OBJCOPY
5660 OBJCOPY
="$ac_cv_prog_OBJCOPY"
5663 if test -n "$ac_tool_prefix"; then
5664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5665 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5666 echo "$as_me:$LINENO: checking for $ac_word" >&5
5667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5668 if test "${ac_cv_prog_STRIP+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 if test -n "$STRIP"; then
5672 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5678 test -z "$as_dir" && as_dir
=.
5679 for ac_exec_ext
in '' $ac_executable_extensions; do
5680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5681 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 STRIP
=$ac_cv_prog_STRIP
5691 if test -n "$STRIP"; then
5692 echo "$as_me:$LINENO: result: $STRIP" >&5
5693 echo "${ECHO_T}$STRIP" >&6
5695 echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5700 if test -z "$ac_cv_prog_STRIP"; then
5702 # Extract the first word of "strip", so it can be a program name with args.
5703 set dummy strip
; ac_word
=$2
5704 echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5706 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 if test -n "$ac_ct_STRIP"; then
5710 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5716 test -z "$as_dir" && as_dir
=.
5717 for ac_exec_ext
in '' $ac_executable_extensions; do
5718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719 ac_cv_prog_ac_ct_STRIP
="strip"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5729 if test -n "$ac_ct_STRIP"; then
5730 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5731 echo "${ECHO_T}$ac_ct_STRIP" >&6
5733 echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6
5739 STRIP
="$ac_cv_prog_STRIP"
5742 if test -n "$ac_tool_prefix"; then
5743 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5744 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
5745 echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5747 if test "${ac_cv_prog_NM+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 if test -n "$NM"; then
5751 ac_cv_prog_NM
="$NM" # Let the user override the test.
5753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir
=.
5758 for ac_exec_ext
in '' $ac_executable_extensions; do
5759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_NM
="${ac_tool_prefix}nm"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 if test -n "$NM"; then
5771 echo "$as_me:$LINENO: result: $NM" >&5
5772 echo "${ECHO_T}$NM" >&6
5774 echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5779 if test -z "$ac_cv_prog_NM"; then
5781 # Extract the first word of "nm", so it can be a program name with args.
5782 set dummy nm
; ac_word
=$2
5783 echo "$as_me:$LINENO: checking for $ac_word" >&5
5784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5785 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 if test -n "$ac_ct_NM"; then
5789 ac_cv_prog_ac_ct_NM
="$ac_ct_NM" # Let the user override the test.
5791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5795 test -z "$as_dir" && as_dir
=.
5796 for ac_exec_ext
in '' $ac_executable_extensions; do
5797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798 ac_cv_prog_ac_ct_NM
="nm"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 ac_ct_NM
=$ac_cv_prog_ac_ct_NM
5808 if test -n "$ac_ct_NM"; then
5809 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
5810 echo "${ECHO_T}$ac_ct_NM" >&6
5812 echo "$as_me:$LINENO: result: no" >&5
5813 echo "${ECHO_T}no" >&6
5825 # Test the C compiler for the target environment.
5827 tmp_CFLAGS
="$CFLAGS"
5828 tmp_LDFLAGS
="$LDFLAGS"
5829 tmp_CPPFLAGS
="$CPPFLAGS"
5832 CFLAGS
="$TARGET_CFLAGS"
5833 CPPFLAGS
="$TARGET_CPPFLAGS"
5834 LDFLAGS
="$TARGET_LDFLAGS"
5837 if test "x$TARGET_CFLAGS" = x
; then
5839 TARGET_CFLAGS
="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
5840 -Wundef -Wstrict-prototypes -g"
5842 # optimization flags.
5843 echo "$as_me:$LINENO: checking whether optimization for size works" >&5
5844 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6
5845 if test "${size_flag+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 cat >conftest.
$ac_ext <<_ACEOF
5853 cat confdefs.h
>>conftest.
$ac_ext
5854 cat >>conftest.
$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5865 rm -f conftest.
$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5869 grep -v '^ *+' conftest.er1
>conftest.err
5871 cat conftest.err
>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try
='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try
='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.
$ac_ext >&5
5894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5897 echo "$as_me:$LINENO: result: $size_flag" >&5
5898 echo "${ECHO_T}$size_flag" >&6
5899 if test "x$size_flag" = xyes
; then
5900 TARGET_CFLAGS
="$TARGET_CFLAGS -Os"
5902 TARGET_CFLAGS
="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
5905 # Force no alignment to save space on i386.
5906 if test "x$target_cpu" = xi386
; then
5907 echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
5908 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6
5909 if test "${falign_loop_flag+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 CFLAGS
="-falign-loops=1"
5914 cat >conftest.
$ac_ext <<_ACEOF
5917 cat confdefs.h
>>conftest.
$ac_ext
5918 cat >>conftest.
$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5929 rm -f conftest.
$ac_objext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931 (eval $ac_compile) 2>conftest.er1
5933 grep -v '^ *+' conftest.er1
>conftest.err
5935 cat conftest.err
>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try
='test -z "$ac_c_werror_flag"
5939 || test ! -s conftest.err'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try
='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 falign_loop_flag
=yes
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.
$ac_ext >&5
5958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5961 echo "$as_me:$LINENO: result: $falign_loop_flag" >&5
5962 echo "${ECHO_T}$falign_loop_flag" >&6
5964 if test "x$falign_loop_flag" = xyes
; then
5965 TARGET_CFLAGS
="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
5967 TARGET_CFLAGS
="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
5972 if test "x$target_m32" = x1
; then
5973 # Force 32-bit mode.
5974 TARGET_CFLAGS
="$TARGET_CFLAGS -m32"
5975 TARGET_LDFLAGS
="$TARGET_LDFLAGS -m32"
5978 echo "$as_me:$LINENO: checking whether the linker accepts \`--build-id=none'" >&5
5979 echo $ECHO_N "checking whether the linker accepts \`--build-id=none'... $ECHO_C" >&6
5980 save_LDFLAGS
="$LDFLAGS"
5981 LDFLAGS
="$LDFLAGS -Wl,--build-id=none"
5982 cat >conftest.
$ac_ext <<_ACEOF
5985 cat confdefs.h
>>conftest.
$ac_ext
5986 cat >>conftest.
$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5997 rm -f conftest.
$ac_objext conftest
$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>conftest.er1
6001 grep -v '^ *+' conftest.er1
>conftest.err
6003 cat conftest.err
>&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try
='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try
='test -s conftest$ac_exeext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.
$ac_ext >&5
6026 rm -f conftest.err conftest.
$ac_objext \
6027 conftest
$ac_exeext conftest.
$ac_ext
6028 echo "$as_me:$LINENO: result: $build_id_flag" >&5
6029 echo "${ECHO_T}$build_id_flag" >&6
6030 LDFLAGS
="$save_LDFLAGS"
6031 if test "x$build_id_flag" = xyes
; then
6032 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,--build-id=none"
6036 # Compiler features.
6039 # Smashing stack protector.
6041 # Smashing stack protector.
6043 echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-fstack-protector'" >&5
6044 echo $ECHO_N "checking whether \`$CC' accepts \`-fstack-protector'... $ECHO_C" >&6
6045 # Is this a reliable test case?
6046 cat >conftest.
$ac_ext <<_ACEOF
6047 void foo (void) { volatile char a[8]; a[3]; }
6049 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
6050 # `ac_compile' like this correct, after all?
6051 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev
/null
; then
6052 echo "$as_me:$LINENO: result: yes" >&5
6053 echo "${ECHO_T}yes" >&6
6054 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6058 echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6
6062 # Need that, because some distributions ship compilers that include
6063 # `-fstack-protector' in the default specs.
6064 if [ x
"$ssp_possible" = xyes
]; then
6065 TARGET_CFLAGS
=$TARGET_CFLAGS\
-fno-stack-protector
6072 # Set them to their new values for the tests below.
6074 CFLAGS
="$TARGET_CFLAGS"
6075 CPPFLAGS
="$TARGET_CPPFLAGS"
6076 LDFLAGS
="$TARGET_LDFLAGS"
6078 # Defined in aclocal.m4.
6079 echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
6080 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6
6081 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 cat > conftest.c
<<\EOF
6088 *((int
*) 0x1000) = 2;
6092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } && test -s conftest.o
; then :
6098 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
6099 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
6100 { (exit 1); exit 1; }; }
6102 grub_cv_prog_objcopy_absolute
=yes
6103 for link_addr
in 2000 8000 7C00
; do
6104 if { ac_try
='${CC-cc} ${CFLAGS} ${LDFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then :
6111 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
6112 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
6113 { (exit 1); exit 1; }; }
6115 if { ac_try
='${OBJCOPY-objcopy} -O binary conftest.exec conftest'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then :
6122 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
6123 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
6124 { (exit 1); exit 1; }; }
6126 if test ! -f conftest.old ||
{ ac_try
='cmp -s conftest.old conftest'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 mv -f conftest conftest.old
6134 grub_cv_prog_objcopy_absolute
=no
6141 echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
6142 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6
6144 if test "x$grub_cv_prog_objcopy_absolute" = xno
; then
6145 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
6146 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
6147 { (exit 1); exit 1; }; }
6151 echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
6152 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6
6153 if test "${grub_cv_asm_uscore+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 cat > conftest.c
<<\EOF
6165 if { ac_try
='${CC-cc} ${CFLAGS} -S conftest.c'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } && test -s conftest.s
; then
6173 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
6174 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
6175 { (exit 1); exit 1; }; }
6178 if grep _func conftest.s
>/dev
/null
2>&1; then
6179 grub_cv_asm_uscore
=yes
6181 grub_cv_asm_uscore
=no
6188 if test "x$grub_cv_asm_uscore" = xyes
; then
6190 cat >>confdefs.h
<<_ACEOF
6191 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
6196 echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
6197 echo "${ECHO_T}$grub_cv_asm_uscore" >&6
6199 if test "x$target_cpu" = xi386
; then
6201 echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
6202 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6
6203 if test "${grub_cv_check_start_symbol+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 cat >conftest.
$ac_ext <<_ACEOF
6209 cat confdefs.h
>>conftest.
$ac_ext
6210 cat >>conftest.
$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6221 rm -f conftest.
$ac_objext conftest
$ac_exeext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6223 (eval $ac_link) 2>conftest.er1
6225 grep -v '^ *+' conftest.er1
>conftest.err
6227 cat conftest.err
>&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try
='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try
='test -s conftest$ac_exeext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 grub_cv_check_start_symbol
=yes
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.
$ac_ext >&5
6248 grub_cv_check_start_symbol
=no
6250 rm -f conftest.err conftest.
$ac_objext \
6251 conftest
$ac_exeext conftest.
$ac_ext
6255 echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
6256 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6
6258 echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
6259 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6
6260 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 cat >conftest.
$ac_ext <<_ACEOF
6266 cat confdefs.h
>>conftest.
$ac_ext
6267 cat >>conftest.
$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6278 rm -f conftest.
$ac_objext conftest
$ac_exeext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280 (eval $ac_link) 2>conftest.er1
6282 grep -v '^ *+' conftest.er1
>conftest.err
6284 cat conftest.err
>&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try
='test -z "$ac_c_werror_flag"
6288 || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try
='test -s conftest$ac_exeext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 grub_cv_check_uscore_start_symbol
=yes
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.
$ac_ext >&5
6305 grub_cv_check_uscore_start_symbol
=no
6307 rm -f conftest.err conftest.
$ac_objext \
6308 conftest
$ac_exeext conftest.
$ac_ext
6312 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
6313 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6
6318 if test "x$grub_cv_check_start_symbol" = xyes
; then
6319 cat >>confdefs.h
<<\_ACEOF
6320 #define START_SYMBOL start
6323 elif test "x$grub_cv_check_uscore_start_symbol" = xyes
; then
6324 cat >>confdefs.h
<<\_ACEOF
6325 #define START_SYMBOL _start
6329 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
6330 echo "$as_me: error: neither start nor _start is defined" >&2;}
6331 { (exit 1); exit 1; }; }
6335 echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
6336 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6
6337 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 cat >conftest.
$ac_ext <<_ACEOF
6343 cat confdefs.h
>>conftest.
$ac_ext
6344 cat >>conftest.
$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6350 asm ("incl __bss_start")
6355 rm -f conftest.
$ac_objext conftest
$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357 (eval $ac_link) 2>conftest.er1
6359 grep -v '^ *+' conftest.er1
>conftest.err
6361 cat conftest.err
>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try
='test -z "$ac_c_werror_flag"
6365 || test ! -s conftest.err'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try
='test -s conftest$ac_exeext'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 grub_cv_check_uscore_uscore_bss_start_symbol
=yes
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.
$ac_ext >&5
6382 grub_cv_check_uscore_uscore_bss_start_symbol
=no
6384 rm -f conftest.err conftest.
$ac_objext \
6385 conftest
$ac_exeext conftest.
$ac_ext
6389 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
6390 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6
6392 echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
6393 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6
6394 if test "${grub_cv_check_edata_symbol+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 cat >conftest.
$ac_ext <<_ACEOF
6400 cat confdefs.h
>>conftest.
$ac_ext
6401 cat >>conftest.
$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6412 rm -f conftest.
$ac_objext conftest
$ac_exeext
6413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6414 (eval $ac_link) 2>conftest.er1
6416 grep -v '^ *+' conftest.er1
>conftest.err
6418 cat conftest.err
>&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } &&
6421 { ac_try
='test -z "$ac_c_werror_flag"
6422 || test ! -s conftest.err'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try
='test -s conftest$ac_exeext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 grub_cv_check_edata_symbol
=yes
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.
$ac_ext >&5
6439 grub_cv_check_edata_symbol
=no
6441 rm -f conftest.err conftest.
$ac_objext \
6442 conftest
$ac_exeext conftest.
$ac_ext
6446 echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
6447 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6
6449 echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
6450 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6
6451 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 cat >conftest.
$ac_ext <<_ACEOF
6457 cat confdefs.h
>>conftest.
$ac_ext
6458 cat >>conftest.
$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6469 rm -f conftest.
$ac_objext conftest
$ac_exeext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471 (eval $ac_link) 2>conftest.er1
6473 grep -v '^ *+' conftest.er1
>conftest.err
6475 cat conftest.err
>&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } &&
6478 { ac_try
='test -z "$ac_c_werror_flag"
6479 || test ! -s conftest.err'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; } &&
6485 { ac_try
='test -s conftest$ac_exeext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 grub_cv_check_uscore_edata_symbol
=yes
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.
$ac_ext >&5
6496 grub_cv_check_uscore_edata_symbol
=no
6498 rm -f conftest.err conftest.
$ac_objext \
6499 conftest
$ac_exeext conftest.
$ac_ext
6503 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
6504 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6
6509 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes
; then
6510 cat >>confdefs.h
<<\_ACEOF
6511 #define BSS_START_SYMBOL __bss_start
6514 elif test "x$grub_cv_check_edata_symbol" = xyes
; then
6515 cat >>confdefs.h
<<\_ACEOF
6516 #define BSS_START_SYMBOL edata
6519 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes
; then
6520 cat >>confdefs.h
<<\_ACEOF
6521 #define BSS_START_SYMBOL _edata
6525 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
6526 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
6527 { (exit 1); exit 1; }; }
6531 echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
6532 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6
6533 if test "${grub_cv_check_end_symbol+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 cat >conftest.
$ac_ext <<_ACEOF
6539 cat confdefs.h
>>conftest.
$ac_ext
6540 cat >>conftest.
$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6551 rm -f conftest.
$ac_objext conftest
$ac_exeext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553 (eval $ac_link) 2>conftest.er1
6555 grep -v '^ *+' conftest.er1
>conftest.err
6557 cat conftest.err
>&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try
='test -z "$ac_c_werror_flag"
6561 || test ! -s conftest.err'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; } &&
6567 { ac_try
='test -s conftest$ac_exeext'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6573 grub_cv_check_end_symbol
=yes
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.
$ac_ext >&5
6578 grub_cv_check_end_symbol
=no
6580 rm -f conftest.err conftest.
$ac_objext \
6581 conftest
$ac_exeext conftest.
$ac_ext
6585 echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
6586 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6
6588 echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
6589 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6
6590 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 cat >conftest.
$ac_ext <<_ACEOF
6596 cat confdefs.h
>>conftest.
$ac_ext
6597 cat >>conftest.
$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6608 rm -f conftest.
$ac_objext conftest
$ac_exeext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6610 (eval $ac_link) 2>conftest.er1
6612 grep -v '^ *+' conftest.er1
>conftest.err
6614 cat conftest.err
>&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } &&
6617 { ac_try
='test -z "$ac_c_werror_flag"
6618 || test ! -s conftest.err'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; } &&
6624 { ac_try
='test -s conftest$ac_exeext'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; }; then
6630 grub_cv_check_uscore_end_symbol
=yes
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.
$ac_ext >&5
6635 grub_cv_check_uscore_end_symbol
=no
6637 rm -f conftest.err conftest.
$ac_objext \
6638 conftest
$ac_exeext conftest.
$ac_ext
6642 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
6643 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6
6648 if test "x$grub_cv_check_end_symbol" = xyes
; then
6649 cat >>confdefs.h
<<\_ACEOF
6650 #define END_SYMBOL end
6653 elif test "x$grub_cv_check_uscore_end_symbol" = xyes
; then
6654 cat >>confdefs.h
<<\_ACEOF
6655 #define END_SYMBOL _end
6659 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
6660 echo "$as_me: error: neither end nor _end is defined" >&2;}
6661 { (exit 1); exit 1; }; }
6665 echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
6666 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6
6667 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 cat > conftest.s
<<\EOF
6672 l1
: addr32 movb
%al
, l1
6675 if { ac_try
='${CC-cc} ${CFLAGS} -c conftest.s'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } && test -s conftest.o
; then
6681 grub_cv_i386_asm_prefix_requirement
=yes
6683 grub_cv_i386_asm_prefix_requirement
=no
6690 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes
; then
6691 grub_tmp_addr32
="addr32"
6692 grub_tmp_data32
="data32"
6694 grub_tmp_addr32
="addr32;"
6695 grub_tmp_data32
="data32;"
6699 cat >>confdefs.h
<<_ACEOF
6700 #define ADDR32 $grub_tmp_addr32
6704 cat >>confdefs.h
<<_ACEOF
6705 #define DATA32 $grub_tmp_data32
6709 echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
6710 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6
6713 echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
6714 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6
6715 if test "${grub_cv_i386_asm_addr32+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 cat > conftest.s.
in <<\EOF
6720 l1
: @ADDR32@ movb
%al
, l1
6723 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes
; then
6724 sed -e s
/@ADDR32@
/addr32
/ < conftest.s.
in > conftest.s
6726 sed -e s
/@ADDR32@
/addr32\
;/ < conftest.s.
in > conftest.s
6729 if { ac_try
='${CC-cc} ${CFLAGS} -c conftest.s'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; } && test -s conftest.o
; then
6735 grub_cv_i386_asm_addr32
=yes
6737 grub_cv_i386_asm_addr32
=no
6744 echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
6745 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6
6747 echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
6748 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6
6749 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 cat > conftest.s
<<\EOF
6759 if { ac_try
='${CC-cc} ${CFLAGS} -c conftest.s'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } && test -s conftest.o
; then
6765 grub_cv_i386_asm_absolute_without_asterisk
=no
6767 grub_cv_i386_asm_absolute_without_asterisk
=yes
6774 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes
; then
6776 cat >>confdefs.h
<<\_ACEOF
6777 #define ABSOLUTE_WITHOUT_ASTERISK 1
6782 echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
6783 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6
6785 echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
6786 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6
6787 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 if test "$cross_compiling" = yes; then
6791 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6792 See \`config.log' for more details." >&5
6793 echo "$as_me: error: cannot run test program while cross compiling
6794 See \`config.log' for more details." >&2;}
6795 { (exit 1); exit 1; }; }
6797 cat >conftest.
$ac_ext <<_ACEOF
6800 cat confdefs.h
>>conftest.
$ac_ext
6801 cat >>conftest.
$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6811 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
6816 return hook (a, b, &c);
6822 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
6824 return a == b && test (c);
6826 return testfunc (nestedfunc) ? 0 : 1;
6830 rm -f conftest
$ac_exeext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6832 (eval $ac_link) 2>&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; }; then
6841 grub_cv_i386_check_nested_functions
=no
6843 echo "$as_me: program exited with status $ac_status" >&5
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.
$ac_ext >&5
6848 grub_cv_i386_check_nested_functions
=yes
6850 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6855 echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5
6856 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6
6858 if test "x$grub_cv_i386_check_nested_functions" = xyes
; then
6860 cat >>confdefs.h
<<\_ACEOF
6861 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2)))
6866 cat >>confdefs.h
<<\_ACEOF
6867 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2)))
6874 cat >>confdefs.h
<<\_ACEOF
6875 #define NESTED_FUNC_ATTR
6880 # Restore the flags.
6882 CFLAGS
="$tmp_CFLAGS"
6883 CPPFLAGS
="$tmp_CPPFLAGS"
6884 LDFLAGS
="$tmp_LDFLAGS"
6888 # Check for options.
6891 # Memory manager debugging.
6892 # Check whether --enable-mm-debug or --disable-mm-debug was given.
6893 if test "${enable_mm_debug+set}" = set; then
6894 enableval
="$enable_mm_debug"
6896 cat >>confdefs.h
<<\_ACEOF
6902 # Check whether --enable-grub-emu or --disable-grub-emu was given.
6903 if test "${enable_grub_emu+set}" = set; then
6904 enableval
="$enable_grub_emu"
6907 if [ x
"$enable_grub_emu" = xyes
]; then
6908 # Check for curses libraries.
6909 echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
6910 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6
6911 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 ac_check_lib_save_LIBS
=$LIBS
6915 LIBS
="-lncurses $LIBS"
6916 cat >conftest.
$ac_ext <<_ACEOF
6919 cat confdefs.h
>>conftest.
$ac_ext
6920 cat >>conftest.
$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6923 /* Override any gcc2 internal prototype to avoid an error. */
6927 /* We use char because int might match the return type of a gcc2
6928 builtin and then its argument prototype would still apply. */
6938 rm -f conftest.
$ac_objext conftest
$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>conftest.er1
6942 grep -v '^ *+' conftest.er1
>conftest.err
6944 cat conftest.err
>&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try
='test -z "$ac_c_werror_flag"
6948 || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try
='test -s conftest$ac_exeext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_cv_lib_ncurses_wgetch
=yes
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.
$ac_ext >&5
6965 ac_cv_lib_ncurses_wgetch
=no
6967 rm -f conftest.err conftest.
$ac_objext \
6968 conftest
$ac_exeext conftest.
$ac_ext
6969 LIBS
=$ac_check_lib_save_LIBS
6971 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
6972 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6
6973 if test $ac_cv_lib_ncurses_wgetch = yes; then
6974 LIBCURSES
="-lncurses"
6976 echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
6977 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6
6978 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 ac_check_lib_save_LIBS
=$LIBS
6982 LIBS
="-lcurses $LIBS"
6983 cat >conftest.
$ac_ext <<_ACEOF
6986 cat confdefs.h
>>conftest.
$ac_ext
6987 cat >>conftest.
$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6990 /* Override any gcc2 internal prototype to avoid an error. */
6994 /* We use char because int might match the return type of a gcc2
6995 builtin and then its argument prototype would still apply. */
7005 rm -f conftest.
$ac_objext conftest
$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>conftest.er1
7009 grep -v '^ *+' conftest.er1
>conftest.err
7011 cat conftest.err
>&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try
='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try
='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_lib_curses_wgetch
=yes
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.
$ac_ext >&5
7032 ac_cv_lib_curses_wgetch
=no
7034 rm -f conftest.err conftest.
$ac_objext \
7035 conftest
$ac_exeext conftest.
$ac_ext
7036 LIBS
=$ac_check_lib_save_LIBS
7038 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
7039 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6
7040 if test $ac_cv_lib_curses_wgetch = yes; then
7041 LIBCURSES
="-lcurses"
7043 { { echo "$as_me:$LINENO: error: (n)curses libraries are required to build \`grub-emu'" >&5
7044 echo "$as_me: error: (n)curses libraries are required to build \`grub-emu'" >&2;}
7045 { (exit 1); exit 1; }; }
7052 # Check for headers.
7054 for ac_header
in ncurses
/curses.h
7056 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7058 echo "$as_me:$LINENO: checking for $ac_header" >&5
7059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7066 # Is the header compilable?
7067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7069 cat >conftest.
$ac_ext <<_ACEOF
7072 cat confdefs.h
>>conftest.
$ac_ext
7073 cat >>conftest.
$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 $ac_includes_default
7076 #include <$ac_header>
7078 rm -f conftest.
$ac_objext
7079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7080 (eval $ac_compile) 2>conftest.er1
7082 grep -v '^ *+' conftest.er1
>conftest.err
7084 cat conftest.err
>&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } &&
7087 { ac_try
='test -z "$ac_c_werror_flag"
7088 || test ! -s conftest.err'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; } &&
7094 { ac_try
='test -s conftest.$ac_objext'
7095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; }; then
7100 ac_header_compiler
=yes
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.
$ac_ext >&5
7105 ac_header_compiler
=no
7107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7109 echo "${ECHO_T}$ac_header_compiler" >&6
7111 # Is the header present?
7112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7114 cat >conftest.
$ac_ext <<_ACEOF
7117 cat confdefs.h
>>conftest.
$ac_ext
7118 cat >>conftest.
$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7120 #include <$ac_header>
7122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7123 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7125 grep -v '^ *+' conftest.er1
>conftest.err
7127 cat conftest.err
>&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } >/dev
/null
; then
7130 if test -s conftest.err
; then
7131 ac_cpp_err
=$ac_c_preproc_warn_flag
7132 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7139 if test -z "$ac_cpp_err"; then
7140 ac_header_preproc
=yes
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.
$ac_ext >&5
7145 ac_header_preproc
=no
7147 rm -f conftest.err conftest.
$ac_ext
7148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7149 echo "${ECHO_T}$ac_header_preproc" >&6
7151 # So? What about this header?
7152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7158 ac_header_preproc
=yes
7161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7175 ## ------------------------------- ##
7176 ## Report this to bug-grub@gnu.org ##
7177 ## ------------------------------- ##
7180 sed "s/^/$as_me: WARNING: /" >&2
7183 echo "$as_me:$LINENO: checking for $ac_header" >&5
7184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 eval "$as_ac_Header=\$ac_header_preproc"
7190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7195 cat >>confdefs.h
<<_ACEOF
7196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7201 for ac_header
in ncurses.h
7203 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7205 echo "$as_me:$LINENO: checking for $ac_header" >&5
7206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7213 # Is the header compilable?
7214 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7216 cat >conftest.
$ac_ext <<_ACEOF
7219 cat confdefs.h
>>conftest.
$ac_ext
7220 cat >>conftest.
$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 $ac_includes_default
7223 #include <$ac_header>
7225 rm -f conftest.
$ac_objext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227 (eval $ac_compile) 2>conftest.er1
7229 grep -v '^ *+' conftest.er1
>conftest.err
7231 cat conftest.err
>&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try
='test -z "$ac_c_werror_flag"
7235 || test ! -s conftest.err'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; } &&
7241 { ac_try
='test -s conftest.$ac_objext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 ac_header_compiler
=yes
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.
$ac_ext >&5
7252 ac_header_compiler
=no
7254 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7256 echo "${ECHO_T}$ac_header_compiler" >&6
7258 # Is the header present?
7259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7261 cat >conftest.
$ac_ext <<_ACEOF
7264 cat confdefs.h
>>conftest.
$ac_ext
7265 cat >>conftest.
$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 #include <$ac_header>
7269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7270 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7272 grep -v '^ *+' conftest.er1
>conftest.err
7274 cat conftest.err
>&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } >/dev
/null
; then
7277 if test -s conftest.err
; then
7278 ac_cpp_err
=$ac_c_preproc_warn_flag
7279 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7286 if test -z "$ac_cpp_err"; then
7287 ac_header_preproc
=yes
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.
$ac_ext >&5
7292 ac_header_preproc
=no
7294 rm -f conftest.err conftest.
$ac_ext
7295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7296 echo "${ECHO_T}$ac_header_preproc" >&6
7298 # So? What about this header?
7299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7305 ac_header_preproc
=yes
7308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7322 ## ------------------------------- ##
7323 ## Report this to bug-grub@gnu.org ##
7324 ## ------------------------------- ##
7327 sed "s/^/$as_me: WARNING: /" >&2
7330 echo "$as_me:$LINENO: checking for $ac_header" >&5
7331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 eval "$as_ac_Header=\$ac_header_preproc"
7337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7342 cat >>confdefs.h
<<_ACEOF
7343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7348 for ac_header
in curses.h
7350 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7352 echo "$as_me:$LINENO: checking for $ac_header" >&5
7353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7360 # Is the header compilable?
7361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7363 cat >conftest.
$ac_ext <<_ACEOF
7366 cat confdefs.h
>>conftest.
$ac_ext
7367 cat >>conftest.
$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7369 $ac_includes_default
7370 #include <$ac_header>
7372 rm -f conftest.
$ac_objext
7373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7374 (eval $ac_compile) 2>conftest.er1
7376 grep -v '^ *+' conftest.er1
>conftest.err
7378 cat conftest.err
>&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } &&
7381 { ac_try
='test -z "$ac_c_werror_flag"
7382 || test ! -s conftest.err'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; } &&
7388 { ac_try
='test -s conftest.$ac_objext'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 ac_header_compiler
=yes
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.
$ac_ext >&5
7399 ac_header_compiler
=no
7401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7403 echo "${ECHO_T}$ac_header_compiler" >&6
7405 # Is the header present?
7406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7408 cat >conftest.
$ac_ext <<_ACEOF
7411 cat confdefs.h
>>conftest.
$ac_ext
7412 cat >>conftest.
$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 #include <$ac_header>
7416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7417 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7419 grep -v '^ *+' conftest.er1
>conftest.err
7421 cat conftest.err
>&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } >/dev
/null
; then
7424 if test -s conftest.err
; then
7425 ac_cpp_err
=$ac_c_preproc_warn_flag
7426 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7433 if test -z "$ac_cpp_err"; then
7434 ac_header_preproc
=yes
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.
$ac_ext >&5
7439 ac_header_preproc
=no
7441 rm -f conftest.err conftest.
$ac_ext
7442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7443 echo "${ECHO_T}$ac_header_preproc" >&6
7445 # So? What about this header?
7446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7452 ac_header_preproc
=yes
7455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7469 ## ------------------------------- ##
7470 ## Report this to bug-grub@gnu.org ##
7471 ## ------------------------------- ##
7474 sed "s/^/$as_me: WARNING: /" >&2
7477 echo "$as_me:$LINENO: checking for $ac_header" >&5
7478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 eval "$as_ac_Header=\$ac_header_preproc"
7484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7489 cat >>confdefs.h
<<_ACEOF
7490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7494 { { echo "$as_me:$LINENO: error: (n)curses header files are required to build \`grub-emu'" >&5
7495 echo "$as_me: error: (n)curses header files are required to build \`grub-emu'" >&2;}
7496 { (exit 1); exit 1; }; }
7513 ac_config_links
="$ac_config_links include/grub/cpu:include/grub/$target_cpu include/grub/machine:include/grub/$target_cpu/$platform"
7515 ac_config_files
="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
7517 ac_config_files
="$ac_config_files stamp-h"
7519 cat >confcache
<<\_ACEOF
7520 # This file is a shell script that caches the results of configure
7521 # tests run on this system so they can be shared between configure
7522 # scripts and configure runs, see configure's option --config-cache.
7523 # It is not useful on other systems. If it contains results you don't
7524 # want to keep, you may remove or edit it.
7526 # config.status only pays attention to the cache file if you give it
7527 # the --recheck option to rerun configure.
7529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7535 # The following way of writing the cache mishandles newlines in values,
7536 # but we know of no workaround that is simple, portable, and efficient.
7537 # So, don't put newlines in cache variables' values.
7538 # Ultrix sh set writes to stderr and can't be redirected directly,
7539 # and sets the high bit in the cache file unless we assign to the vars.
7542 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7544 # `set' does not quote correctly, so add quotes (double-quote
7545 # substitution turns \\\\ into \\, and sed turns \\ into \).
7548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7551 # `set' quotes correctly as required by POSIX, so do not add quotes.
7553 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7560 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7562 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7564 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7565 if test -w $cache_file; then
7566 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7567 cat confcache
>$cache_file
7569 echo "not updating unwritable cache $cache_file"
7574 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7575 # Let make expand exec_prefix.
7576 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7578 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7579 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7580 # trailing colons and then remove the whole line if VPATH becomes empty
7581 # (actually we leave an empty line to preserve line numbers).
7582 if test "x$srcdir" = x.
; then
7583 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7584 s/:*\$(srcdir):*/:/;
7585 s/:*\${srcdir}:*/:/;
7587 s/^\([^=]*=[ ]*\):*/\1/;
7593 DEFS
=-DHAVE_CONFIG_H
7597 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7598 # 1. Remove the extension, and $U if already installed.
7599 ac_i
=`echo "$ac_i" |
7600 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7602 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7603 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7607 LTLIBOBJS
=$ac_ltlibobjs
7611 : ${CONFIG_STATUS=./config.status}
7612 ac_clean_files_save
=$ac_clean_files
7613 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7614 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7615 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7616 cat >$CONFIG_STATUS <<_ACEOF
7618 # Generated by $as_me.
7619 # Run this file to recreate the current configuration.
7620 # Compiler output produced by configure, useful for debugging
7621 # configure, is in config.log if it exists.
7626 SHELL=\${CONFIG_SHELL-$SHELL}
7629 cat >>$CONFIG_STATUS <<\_ACEOF
7630 ## --------------------- ##
7631 ## M4sh Initialization. ##
7632 ## --------------------- ##
7634 # Be Bourne compatible
7635 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7638 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7639 # is contrary to our usage. Disable this feature.
7640 alias -g '${1+"$@"}'='"$@"'
7641 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7644 DUALCASE
=1; export DUALCASE
# for MKS sh
7646 # Support unset when possible.
7647 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7654 # Work around bugs in pre-3.0 UWIN ksh.
7655 $as_unset ENV MAIL MAILPATH
7662 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7663 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7664 LC_TELEPHONE LC_TIME
7666 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7667 eval $as_var=C
; export $as_var
7673 # Required to use basename.
7674 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7680 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7681 as_basename
=basename
7687 # Name of the executable.
7688 as_me
=`$as_basename "$0" ||
7689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7690 X"$0" : 'X\(//\)$' \| \
7691 X"$0" : 'X\(/\)$' \| \
7692 . : '\(.\)' 2>/dev/null ||
7694 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7695 /^X\/\(\/\/\)$/{ s//\1/; q; }
7696 /^X\/\(\/\).*/{ s//\1/; q; }
7700 # PATH needs CR, and LINENO needs CR and PATH.
7701 # Avoid depending upon Character Ranges.
7702 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7703 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7704 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7705 as_cr_digits
='0123456789'
7706 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7708 # The user is always right.
7709 if test "${PATH_SEPARATOR+set}" != set; then
7710 echo "#! /bin/sh" >conf$$.sh
7711 echo "exit 0" >>conf$$.sh
7713 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7724 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
7725 test "x$as_lineno_1" != "x$as_lineno_2" &&
7726 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
7727 # Find who we are. Look in the path if we contain no path at all
7730 *[\\/]* ) as_myself
=$0 ;;
7731 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7735 test -z "$as_dir" && as_dir
=.
7736 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7741 # We did not find ourselves, most probably we were run as `sh COMMAND'
7742 # in which case we are not to be found in the path.
7743 if test "x$as_myself" = x
; then
7746 if test ! -f "$as_myself"; then
7747 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7748 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7749 { (exit 1); exit 1; }; }
7751 case $CONFIG_SHELL in
7753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7754 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
7757 test -z "$as_dir" && as_dir
=.
7758 for as_base
in sh bash ksh sh5
; do
7761 if ("$as_dir/$as_base" -c '
7764 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7765 test "x$as_lineno_1" != "x$as_lineno_2" &&
7766 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
7767 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
7768 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
7769 CONFIG_SHELL
=$as_dir/$as_base
7771 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7779 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7780 # uniformly replaced by the line number. The first 'sed' inserts a
7781 # line-number line before each line; the second 'sed' does the real
7782 # work. The second script uses 'N' to pair each line-number line
7783 # with the numbered line, and appends trailing '-' during
7784 # substitution so that $LINENO is not a special case at line end.
7785 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7786 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7787 sed '=' <$as_myself |
7792 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7795 s,^['$as_cr_digits']*\n,,
7797 chmod +x
$as_me.lineno ||
7798 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7799 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7800 { (exit 1); exit 1; }; }
7802 # Don't try to exec as it changes $[0], causing all sort of problems
7803 # (the dirname of $[0] is not the place where we might find the
7804 # original and so on. Autoconf is especially sensible to this).
7806 # Exit status is that of the last command.
7811 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7812 *c
*,-n*) ECHO_N
= ECHO_C
='
7814 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7815 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7818 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7824 rm -f conf$$ conf$$.exe conf$$.
file
7826 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7827 # We could just check for DJGPP; but this test a) works b) is more generic
7828 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7829 if test -f conf$$.exe
; then
7830 # Don't use ln at all; we don't have any links
7835 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7840 rm -f conf$$ conf$$.exe conf$$.
file
7842 if mkdir
-p .
2>/dev
/null
; then
7845 test -d .
/-p && rmdir .
/-p
7849 as_executable_p
="test -f"
7851 # Sed expression to map a string onto a valid CPP name.
7852 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7854 # Sed expression to map a string onto a valid variable name.
7855 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7859 # We need space, tab and new line, in precisely that order.
7869 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7870 # report actual input values of CONFIG_FILES etc. instead of their
7871 # values after options handling. Logging --version etc. is OK.
7875 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7876 ## Running $as_me. ##
7881 This file was extended by GRUB $as_me 1.95, which was
7882 generated by GNU Autoconf 2.59. Invocation command line was
7884 CONFIG_FILES = $CONFIG_FILES
7885 CONFIG_HEADERS = $CONFIG_HEADERS
7886 CONFIG_LINKS = $CONFIG_LINKS
7887 CONFIG_COMMANDS = $CONFIG_COMMANDS
7891 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7895 # Files that config.status was made for.
7896 if test -n "$ac_config_files"; then
7897 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7900 if test -n "$ac_config_headers"; then
7901 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7904 if test -n "$ac_config_links"; then
7905 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7908 if test -n "$ac_config_commands"; then
7909 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7912 cat >>$CONFIG_STATUS <<\_ACEOF
7915 \`$as_me' instantiates files from templates according to the
7916 current configuration.
7918 Usage: $0 [OPTIONS] [FILE]...
7920 -h, --help print this help, then exit
7921 -V, --version print version number, then exit
7922 -q, --quiet do not print progress messages
7923 -d, --debug don't remove temporary files
7924 --recheck update $as_me by reconfiguring in the same conditions
7925 --file=FILE[:TEMPLATE]
7926 instantiate the configuration file FILE
7927 --header=FILE[:TEMPLATE]
7928 instantiate the configuration header FILE
7930 Configuration files:
7933 Configuration headers:
7936 Configuration links:
7939 Report bugs to <bug-autoconf@gnu.org>."
7942 cat >>$CONFIG_STATUS <<_ACEOF
7944 GRUB config.status 1.95
7945 configured by $0, generated by GNU Autoconf 2.59,
7946 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7948 Copyright (C) 2003 Free Software Foundation, Inc.
7949 This config.status script is free software; the Free Software Foundation
7950 gives unlimited permission to copy, distribute and modify it."
7955 cat >>$CONFIG_STATUS <<\_ACEOF
7956 # If no file are specified by the user, then we need to provide default
7957 # value. By we need to know if files were specified by the user.
7963 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7964 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7972 *) # This is not an option, so the user has probably given explicit
7975 ac_need_defaults
=false
;;
7979 # Handling of the options.
7981 cat >>$CONFIG_STATUS <<\_ACEOF
7982 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7984 --version |
--vers* |
-V )
7985 echo "$ac_cs_version"; exit 0 ;;
7987 # Conflict between --help and --header
7988 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7989 Try \`$0 --help' for more information." >&5
7990 echo "$as_me: error: ambiguous option: $1
7991 Try \`$0 --help' for more information." >&2;}
7992 { (exit 1); exit 1; }; };;
7993 --help |
--hel |
-h )
7994 echo "$ac_cs_usage"; exit 0 ;;
7995 --debug |
--d* |
-d )
7997 --file |
--fil |
--fi |
--f )
7999 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8000 ac_need_defaults
=false
;;
8001 --header |
--heade |
--head |
--hea )
8003 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8004 ac_need_defaults
=false
;;
8005 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8006 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8010 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8011 Try \`$0 --help' for more information." >&5
8012 echo "$as_me: error: unrecognized option: $1
8013 Try \`$0 --help' for more information." >&2;}
8014 { (exit 1); exit 1; }; } ;;
8016 *) ac_config_targets
="$ac_config_targets $1" ;;
8022 ac_configure_extra_args
=
8024 if $ac_cs_silent; then
8026 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8030 cat >>$CONFIG_STATUS <<_ACEOF
8031 if \$ac_cs_recheck; then
8032 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8033 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8042 cat >>$CONFIG_STATUS <<\_ACEOF
8043 for ac_config_target
in $ac_config_targets
8045 case "$ac_config_target" in
8046 # Handling of arguments.
8047 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8048 "gensymlist.sh" ) CONFIG_FILES
="$CONFIG_FILES gensymlist.sh" ;;
8049 "genkernsyms.sh" ) CONFIG_FILES
="$CONFIG_FILES genkernsyms.sh" ;;
8050 "stamp-h" ) CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
8051 "include/grub/cpu" ) CONFIG_LINKS
="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
8052 "include/grub/machine" ) CONFIG_LINKS
="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
8053 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8054 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8055 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8056 { (exit 1); exit 1; }; };;
8060 # If the user did not use the arguments to specify the items to instantiate,
8061 # then the envvar interface is used. Set only those that are not.
8062 # We use the long form for the default assignment because of an extremely
8063 # bizarre bug on SunOS 4.1.3.
8064 if $ac_need_defaults; then
8065 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8066 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8067 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
8070 # Have a temporary directory for convenience. Make it in the build tree
8071 # simply because there is no reason to put it here, and in addition,
8072 # creating and moving files from /tmp can sometimes cause problems.
8073 # Create a temporary directory, and hook for its removal unless debugging.
8076 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8077 trap '{ (exit 1); exit 1; }' 1 2 13 15
8080 # Create a (secure) tmp directory for tmp files.
8083 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8084 test -n "$tmp" && test -d "$tmp"
8087 tmp
=.
/confstat$$
-$RANDOM
8088 (umask 077 && mkdir
$tmp)
8091 echo "$me: cannot create a temporary directory in ." >&2
8092 { (exit 1); exit 1; }
8097 cat >>$CONFIG_STATUS <<_ACEOF
8100 # CONFIG_FILES section.
8103 # No need to generate the scripts if there are no CONFIG_FILES.
8104 # This happens for instance when ./config.status config.h
8105 if test -n "\$CONFIG_FILES"; then
8106 # Protect against being on the right side of a sed subst in config.status.
8107 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8108 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8109 s,@SHELL@,$SHELL,;t t
8110 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8111 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8112 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8113 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8114 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8115 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8116 s,@exec_prefix@,$exec_prefix,;t t
8117 s,@prefix@,$prefix,;t t
8118 s,@program_transform_name@,$program_transform_name,;t t
8119 s,@bindir@,$bindir,;t t
8120 s,@sbindir@,$sbindir,;t t
8121 s,@libexecdir@,$libexecdir,;t t
8122 s,@datadir@,$datadir,;t t
8123 s,@sysconfdir@,$sysconfdir,;t t
8124 s,@sharedstatedir@,$sharedstatedir,;t t
8125 s,@localstatedir@,$localstatedir,;t t
8126 s,@libdir@,$libdir,;t t
8127 s,@includedir@,$includedir,;t t
8128 s,@oldincludedir@,$oldincludedir,;t t
8129 s,@infodir@,$infodir,;t t
8130 s,@mandir@,$mandir,;t t
8131 s,@build_alias@,$build_alias,;t t
8132 s,@host_alias@,$host_alias,;t t
8133 s,@target_alias@,$target_alias,;t t
8135 s,@ECHO_C@,$ECHO_C,;t t
8136 s,@ECHO_N@,$ECHO_N,;t t
8137 s,@ECHO_T@,$ECHO_T,;t t
8139 s,@build@,$build,;t t
8140 s,@build_cpu@,$build_cpu,;t t
8141 s,@build_vendor@,$build_vendor,;t t
8142 s,@build_os@,$build_os,;t t
8144 s,@host_cpu@,$host_cpu,;t t
8145 s,@host_vendor@,$host_vendor,;t t
8146 s,@host_os@,$host_os,;t t
8147 s,@target@,$target,;t t
8148 s,@target_cpu@,$target_cpu,;t t
8149 s,@target_vendor@,$target_vendor,;t t
8150 s,@target_os@,$target_os,;t t
8151 s,@platform@,$platform,;t t
8154 s,@UNIFONT_HEX@,$UNIFONT_HEX,;t t
8155 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8156 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8157 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8159 s,@SET_MAKE@,$SET_MAKE,;t t
8162 s,@CFLAGS@,$CFLAGS,;t t
8163 s,@LDFLAGS@,$LDFLAGS,;t t
8164 s,@CPPFLAGS@,$CPPFLAGS,;t t
8165 s,@ac_ct_CC@,$ac_ct_CC,;t t
8166 s,@EXEEXT@,$EXEEXT,;t t
8167 s,@OBJEXT@,$OBJEXT,;t t
8169 s,@EGREP@,$EGREP,;t t
8170 s,@LIBLZO@,$LIBLZO,;t t
8171 s,@TARGET_CC@,$TARGET_CC,;t t
8172 s,@ac_ct_TARGET_CC@,$ac_ct_TARGET_CC,;t t
8173 s,@OBJCOPY@,$OBJCOPY,;t t
8174 s,@ac_ct_OBJCOPY@,$ac_ct_OBJCOPY,;t t
8175 s,@STRIP@,$STRIP,;t t
8176 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8178 s,@ac_ct_NM@,$ac_ct_NM,;t t
8179 s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t
8180 s,@TARGET_CPPFLAGS@,$TARGET_CPPFLAGS,;t t
8181 s,@TARGET_LDFLAGS@,$TARGET_LDFLAGS,;t t
8182 s,@LIBCURSES@,$LIBCURSES,;t t
8183 s,@enable_grub_emu@,$enable_grub_emu,;t t
8184 s,@LIBOBJS@,$LIBOBJS,;t t
8185 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8190 cat >>$CONFIG_STATUS <<\_ACEOF
8191 # Split the substitutions into bite-sized pieces for seds with
8192 # small command number limits, like on Digital OSF/1 and HP-UX.
8194 ac_sed_frag
=1 # Number of current file.
8195 ac_beg
=1 # First line for current file.
8196 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8199 while $ac_more_lines; do
8200 if test $ac_beg -gt 1; then
8201 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8203 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8205 if test ! -s $tmp/subs.frag
; then
8208 # The purpose of the label and of the branching condition is to
8209 # speed up the sed processing (if there are no `@' at all, there
8210 # is no need to browse any of the substitutions).
8211 # These are the two extra sed commands mentioned above.
8213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8214 if test -z "$ac_sed_cmds"; then
8215 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8217 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8219 ac_sed_frag
=`expr $ac_sed_frag + 1`
8221 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8224 if test -z "$ac_sed_cmds"; then
8227 fi # test -n "$CONFIG_FILES"
8230 cat >>$CONFIG_STATUS <<\_ACEOF
8231 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8232 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8234 - |
*:- |
*:-:* ) # input from stdin
8236 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8237 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8238 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8239 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8240 * ) ac_file_in
=$ac_file.
in ;;
8243 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8244 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8246 X"$ac_file" : 'X\(//\)[^/]' \| \
8247 X"$ac_file" : 'X\(//\)$' \| \
8248 X"$ac_file" : 'X\(/\)' \| \
8249 . : '\(.\)' 2>/dev/null ||
8251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8252 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8253 /^X\(\/\/\)$/{ s//\1/; q; }
8254 /^X\(\/\).*/{ s//\1/; q; }
8256 { if $as_mkdir_p; then
8261 while test ! -d "$as_dir"; do
8262 as_dirs
="$as_dir $as_dirs"
8263 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8265 X"$as_dir" : 'X\(//\)[^/]' \| \
8266 X"$as_dir" : 'X\(//\)$' \| \
8267 X"$as_dir" : 'X\(/\)' \| \
8268 . : '\(.\)' 2>/dev/null ||
8270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8272 /^X\(\/\/\)$/{ s//\1/; q; }
8273 /^X\(\/\).*/{ s//\1/; q; }
8276 test ! -n "$as_dirs" || mkdir
$as_dirs
8277 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8278 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8279 { (exit 1); exit 1; }; }; }
8283 if test "$ac_dir" != .
; then
8284 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8285 # A "../" for each directory in $ac_dir_suffix.
8286 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8288 ac_dir_suffix
= ac_top_builddir
=
8292 .
) # No --srcdir option. We are building in place.
8294 if test -z "$ac_top_builddir"; then
8297 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8299 [\\/]* | ?
:[\\/]* ) # Absolute path.
8300 ac_srcdir
=$srcdir$ac_dir_suffix;
8301 ac_top_srcdir
=$srcdir ;;
8303 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8304 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8307 # Do not use `cd foo && pwd` to compute absolute paths, because
8308 # the directories may not exist.
8310 .
) ac_abs_builddir
="$ac_dir";;
8313 .
) ac_abs_builddir
=`pwd`;;
8314 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8315 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8318 case $ac_abs_builddir in
8319 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8321 case ${ac_top_builddir}.
in
8322 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8323 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8324 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8327 case $ac_abs_builddir in
8328 .
) ac_abs_srcdir
=$ac_srcdir;;
8331 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8332 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8333 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8336 case $ac_abs_builddir in
8337 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8339 case $ac_top_srcdir in
8340 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8341 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8342 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8348 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8349 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8352 if test x
"$ac_file" != x-
; then
8353 { echo "$as_me:$LINENO: creating $ac_file" >&5
8354 echo "$as_me: creating $ac_file" >&6;}
8357 # Let's still pretend it is `configure' which instantiates (i.e., don't
8358 # use $as_me), people would be surprised to read:
8359 # /* config.h. Generated by config.status. */
8360 if test x
"$ac_file" = x-
; then
8363 configure_input
="$ac_file. "
8365 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8366 sed 's,.*/,,'` by configure."
8368 # First look for the input files in the build tree, otherwise in the
8370 ac_file_inputs
=`IFS=:
8371 for f in $ac_file_in; do
8373 -) echo $tmp/stdin ;;
8375 # Absolute (can't be DOS-style, as IFS=:)
8376 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8377 echo "$as_me: error: cannot find input file: $f" >&2;}
8378 { (exit 1); exit 1; }; }
8381 if test -f "$f"; then
8384 elif test -f "$srcdir/$f"; then
8389 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8390 echo "$as_me: error: cannot find input file: $f" >&2;}
8391 { (exit 1); exit 1; }; }
8394 done` ||
{ (exit 1); exit 1; }
8396 cat >>$CONFIG_STATUS <<_ACEOF
8400 cat >>$CONFIG_STATUS <<\_ACEOF
8402 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8403 s
,@configure_input@
,$configure_input,;t t
8404 s
,@srcdir@
,$ac_srcdir,;t t
8405 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8406 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8407 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8408 s
,@builddir@
,$ac_builddir,;t t
8409 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8410 s
,@top_builddir@
,$ac_top_builddir,;t t
8411 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8412 s
,@INSTALL@
,$ac_INSTALL,;t t
8413 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8415 if test x"$ac_file" != x-; then
8416 mv $tmp/out $ac_file
8422 # Run the commands associated with the file.
8424 stamp-h ) echo timestamp > stamp-h ;;
8428 cat >>$CONFIG_STATUS <<\_ACEOF
8431 # CONFIG_HEADER section.
8434 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8435 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8437 # ac_d sets the value in "#define NAME VALUE" lines.
8438 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8439 ac_dB
='[ ].*$,\1#\2'
8442 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8443 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8444 ac_uB
='$,\1#\2define\3'
8448 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8451 - |
*:- |
*:-:* ) # input from stdin
8453 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8454 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8455 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8456 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8457 * ) ac_file_in
=$ac_file.
in ;;
8460 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8461 echo "$as_me: creating $ac_file" >&6;}
8463 # First look for the input files in the build tree, otherwise in the
8465 ac_file_inputs
=`IFS=:
8466 for f in $ac_file_in; do
8468 -) echo $tmp/stdin ;;
8470 # Absolute (can't be DOS-style, as IFS=:)
8471 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8472 echo "$as_me: error: cannot find input file: $f" >&2;}
8473 { (exit 1); exit 1; }; }
8474 # Do quote $f, to prevent DOS paths from being IFS'd.
8477 if test -f "$f"; then
8480 elif test -f "$srcdir/$f"; then
8485 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8486 echo "$as_me: error: cannot find input file: $f" >&2;}
8487 { (exit 1); exit 1; }; }
8490 done` ||
{ (exit 1); exit 1; }
8491 # Remove the trailing spaces.
8492 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8496 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8497 # `conftest.undefs', that substitutes the proper values into
8498 # config.h.in to produce config.h. The first handles `#define'
8499 # templates, and the second `#undef' templates.
8500 # And first: Protect against being on the right side of a sed subst in
8501 # config.status. Protect against being in an unquoted here document
8503 rm -f conftest.defines conftest.undefs
8504 # Using a here document instead of a string reduces the quoting nightmare.
8505 # Putting comments in sed scripts is not portable.
8507 # `end' is used to avoid that the second main sed command (meant for
8508 # 0-ary CPP macros) applies to n-ary macro definitions.
8509 # See the Autoconf documentation for `clear'.
8510 cat >confdef2sed.
sed <<\_ACEOF
8515 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8517 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8520 # If some macros were called several times there might be several times
8521 # the same #defines, which is useless. Nevertheless, we may not want to
8522 # sort them, since we want the *last* AC-DEFINE to be honored.
8523 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8524 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8525 rm -f confdef2sed.sed
8527 # This sed command replaces #undef with comments. This is necessary, for
8528 # example, in the case of _POSIX_SOURCE, which is predefined and required
8529 # on some systems where configure will not decide to define it.
8530 cat >>conftest.undefs <<\_ACEOF
8531 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8534 # Break up conftest.defines because some shells have a limit on the size
8535 # of here documents, and old seds have small limits too (100 cmds).
8536 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8537 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8538 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8539 echo ' :' >>$CONFIG_STATUS
8541 while grep . conftest.defines >/dev/null
8543 # Write a limited-size here document to $tmp/defines.sed.
8544 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8545 # Speed up: don't consider the non `#define' lines.
8546 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8547 # Work around the forget-to-reset-the-flag bug.
8548 echo 't clr' >>$CONFIG_STATUS
8549 echo ': clr' >>$CONFIG_STATUS
8550 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8552 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8556 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8557 rm -f conftest.defines
8558 mv conftest.
tail conftest.defines
8560 rm -f conftest.defines
8561 echo ' fi # grep' >>$CONFIG_STATUS
8562 echo >>$CONFIG_STATUS
8564 # Break up conftest.undefs because some shells have a limit on the size
8565 # of here documents, and old seds have small limits too (100 cmds).
8566 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8568 while grep . conftest.undefs
>/dev
/null
8570 # Write a limited-size here document to $tmp/undefs.sed.
8571 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8572 # Speed up: don't consider the non
`#undef'
8573 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8574 # Work around the forget-to-reset-the-flag bug.
8575 echo 't clr' >>$CONFIG_STATUS
8576 echo ': clr' >>$CONFIG_STATUS
8577 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8579 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8583 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8584 rm -f conftest.undefs
8585 mv conftest.tail conftest.undefs
8587 rm -f conftest.undefs
8589 cat >>$CONFIG_STATUS <<\_ACEOF
8590 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8591 # use $as_me), people would be surprised to read:
8592 # /* config.h. Generated by config.status. */
8593 if test x
"$ac_file" = x-
; then
8594 echo "/* Generated by configure. */" >$tmp/config.h
8596 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8598 cat $tmp/in >>$tmp/config.h
8600 if test x
"$ac_file" != x-
; then
8601 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8602 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8603 echo "$as_me: $ac_file is unchanged" >&6;}
8605 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8607 X"$ac_file" : 'X\(//\)[^/]' \| \
8608 X"$ac_file" : 'X\(//\)$' \| \
8609 X"$ac_file" : 'X\(/\)' \| \
8610 . : '\(.\)' 2>/dev/null ||
8612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8613 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8614 /^X\(\/\/\)$/{ s//\1/; q; }
8615 /^X\(\/\).*/{ s//\1/; q; }
8617 { if $as_mkdir_p; then
8622 while test ! -d "$as_dir"; do
8623 as_dirs
="$as_dir $as_dirs"
8624 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8626 X"$as_dir" : 'X\(//\)[^/]' \| \
8627 X"$as_dir" : 'X\(//\)$' \| \
8628 X"$as_dir" : 'X\(/\)' \| \
8629 . : '\(.\)' 2>/dev/null ||
8631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8633 /^X\(\/\/\)$/{ s//\1/; q; }
8634 /^X\(\/\).*/{ s//\1/; q; }
8637 test ! -n "$as_dirs" || mkdir
$as_dirs
8638 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8639 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8640 { (exit 1); exit 1; }; }; }
8643 mv $tmp/config.h
$ac_file
8651 cat >>$CONFIG_STATUS <<\_ACEOF
8654 # CONFIG_LINKS section.
8657 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
8658 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8659 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8661 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8662 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8664 if test ! -r $srcdir/$ac_source; then
8665 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8666 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8667 { (exit 1); exit 1; }; }
8671 # Make relative symlinks.
8672 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8673 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8674 X"$ac_dest" : 'X\(//\)[^/]' \| \
8675 X"$ac_dest" : 'X\(//\)$' \| \
8676 X"$ac_dest" : 'X\(/\)' \| \
8677 . : '\(.\)' 2>/dev/null ||
8679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8681 /^X\(\/\/\)$/{ s//\1/; q; }
8682 /^X\(\/\).*/{ s//\1/; q; }
8684 { if $as_mkdir_p; then
8685 mkdir
-p "$ac_dest_dir"
8687 as_dir
="$ac_dest_dir"
8689 while test ! -d "$as_dir"; do
8690 as_dirs
="$as_dir $as_dirs"
8691 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8693 X"$as_dir" : 'X\(//\)[^/]' \| \
8694 X"$as_dir" : 'X\(//\)$' \| \
8695 X"$as_dir" : 'X\(/\)' \| \
8696 . : '\(.\)' 2>/dev/null ||
8698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8700 /^X\(\/\/\)$/{ s//\1/; q; }
8701 /^X\(\/\).*/{ s//\1/; q; }
8704 test ! -n "$as_dirs" || mkdir
$as_dirs
8705 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8706 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8707 { (exit 1); exit 1; }; }; }
8711 if test "$ac_dest_dir" != .
; then
8712 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8713 # A "../" for each directory in $ac_dir_suffix.
8714 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8716 ac_dir_suffix
= ac_top_builddir
=
8720 .
) # No --srcdir option. We are building in place.
8722 if test -z "$ac_top_builddir"; then
8725 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8727 [\\/]* | ?
:[\\/]* ) # Absolute path.
8728 ac_srcdir
=$srcdir$ac_dir_suffix;
8729 ac_top_srcdir
=$srcdir ;;
8731 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8732 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8735 # Do not use `cd foo && pwd` to compute absolute paths, because
8736 # the directories may not exist.
8738 .
) ac_abs_builddir
="$ac_dest_dir";;
8740 case "$ac_dest_dir" in
8741 .
) ac_abs_builddir
=`pwd`;;
8742 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
8743 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
8746 case $ac_abs_builddir in
8747 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8749 case ${ac_top_builddir}.
in
8750 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8751 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8752 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8755 case $ac_abs_builddir in
8756 .
) ac_abs_srcdir
=$ac_srcdir;;
8759 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8760 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8761 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8764 case $ac_abs_builddir in
8765 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8767 case $ac_top_srcdir in
8768 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8769 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8770 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8776 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
8777 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
8780 # Try a symlink, then a hard link, then a copy.
8781 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
8782 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
8783 cp -p $srcdir/$ac_source $ac_dest ||
8784 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8785 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8786 { (exit 1); exit 1; }; }
8790 cat >>$CONFIG_STATUS <<\_ACEOF
8792 { (exit 0); exit 0; }
8794 chmod +x
$CONFIG_STATUS
8795 ac_clean_files
=$ac_clean_files_save
8798 # configure is writing to config.log, and then calls config.status.
8799 # config.status does its own redirection, appending to config.log.
8800 # Unfortunately, on DOS this fails, as config.log is still kept open
8801 # by configure, so config.status won't be able to write to it; its
8802 # output is simply discarded. So we exec the FD to /dev/null,
8803 # effectively closing config.log, so it can be properly (re)opened and
8804 # appended to by config.status. When coming back to configure, we
8805 # need to make the FD available again.
8806 if test "$no_create" != yes; then
8808 ac_config_status_args
=
8809 test "$silent" = yes &&
8810 ac_config_status_args
="$ac_config_status_args --quiet"
8812 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8814 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8815 # would make configure fail if this is the last instruction.
8816 $ac_cs_success ||
{ (exit 1); exit 1; }