]> git.proxmox.com Git - grub2.git/blame - configure
2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
[grub2.git] / configure
CommitLineData
6a161fa9 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
4801580b 3# Generated by GNU Autoconf 2.59 for GRUB 1.91.
6a161fa9 4#
3b1139cb 5# Report bugs to <bug-grub@gnu.org>.
6a161fa9 6#
924b6140 7# Copyright (C) 2003 Free Software Foundation, Inc.
6a161fa9 8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
6a161fa9 10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
98d15063 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+"$@"}'='"$@"'
6a161fa9 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
924b6140 24DUALCASE=1; export DUALCASE # for MKS sh
6a161fa9 25
6a161fa9 26# Support unset when possible.
924b6140 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6a161fa9 28 as_unset=unset
29else
30 as_unset=false
31fi
32
98d15063 33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
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 \
44 LC_TELEPHONE LC_TIME
45do
924b6140 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
98d15063 47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
6a161fa9 65
66
67# Name of the executable.
98d15063 68as_me=`$as_basename "$0" ||
6a161fa9 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
98d15063 79
6a161fa9 80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
98d15063 90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6a161fa9 94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98d15063 98 rm -f conf$$.sh
6a161fa9 99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
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
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
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
124 as_myself=$0
125 fi
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; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
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
98d15063 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; }
6a161fa9 148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
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 |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
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; }; }
179
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).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if 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
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
98d15063 220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
924b6140 223 test -d ./-p && rmdir ./-p
98d15063 224 as_mkdir_p=false
225fi
226
6a161fa9 227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
924b6140 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6a161fa9 231
232# Sed expression to map a string onto a valid variable name.
924b6140 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6a161fa9 234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
98d15063 243$as_unset CDPATH
6a161fa9 244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
98d15063 257ac_config_libobj_dir=.
6a161fa9 258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
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}
268
269# Identity of this package.
3b1139cb 270PACKAGE_NAME='GRUB'
271PACKAGE_TARNAME='grub'
4801580b 272PACKAGE_VERSION='1.91'
273PACKAGE_STRING='GRUB 1.91'
3b1139cb 274PACKAGE_BUGREPORT='bug-grub@gnu.org'
6a161fa9 275
4b13b216 276ac_unique_file="include/grub/dl.h"
6a161fa9 277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
4ac9bd04 314ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE OBJCOPY ac_ct_OBJCOPY STRIP ac_ct_STRIP NM ac_ct_NM LD ac_ct_LD RUBY BUILD_CC CPP EGREP LIBLZO LIBCURSES LIBOBJS LTLIBOBJS'
98d15063 315ac_subst_files=''
6a161fa9 316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
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.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
369 case $ac_option in
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
375
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
380
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 ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
396
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" ;;
405
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'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
418
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 ;;
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
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 ;;
438
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
443
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 ;;
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
460
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 ;;
467
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 ;;
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
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 ;;
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
507
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 ;;
514
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 ;;
521
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 ;;
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
569
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 ;;
576
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 ;;
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
587
588 -with-* | --with-*)
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'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
600
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" ;;
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
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 ;;
620
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 ;;
627
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
631 ;;
632
633 *=*)
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'"
641 export $ac_envvar ;;
642
643 *)
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}
649 ;;
650
651 esac
652done
653
654if 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; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
924b6140 673 localstatedir libdir includedir oldincludedir infodir mandir
6a161fa9 674do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681done
682
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.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if 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
697 cross_compiling=yes
698 fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
924b6140 713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
6a161fa9 717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if 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; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
737 fi
738fi
98d15063 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; }; }
6a161fa9 742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
775
776#
777# Report the --help message.
778#
779if 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.
782 cat <<_ACEOF
4801580b 783\`configure' configures GRUB 1.91 to adapt to many kinds of systems.
6a161fa9 784
785Usage: $0 [OPTION]... [VAR=VALUE]...
786
787To assign environment variables (e.g., CC, CFLAGS...), specify them as
788VAR=VALUE. See below for descriptions of some of the useful variables.
789
790Defaults for the options are specified in brackets.
791
792Configuration:
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 \`..']
802
803_ACEOF
804
805 cat <<_ACEOF
806Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
924b6140 808 [$ac_default_prefix]
6a161fa9 809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
924b6140 810 [PREFIX]
6a161fa9 811
812By default, \`make install' will install all the files in
813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815for instance \`--prefix=\$HOME'.
816
817For better control, use the options below.
818
819Fine 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]
832_ACEOF
833
834 cat <<\_ACEOF
835
836System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839_ACEOF
840fi
841
842if test -n "$ac_init_help"; then
843 case $ac_init_help in
4801580b 844 short | recursive ) echo "Configuration of GRUB 1.91:";;
6a161fa9 845 esac
846 cat <<\_ACEOF
847
a35eed7c 848Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --disable-largefile omit support for large files
852
6a161fa9 853Some influential environment variables:
854 CC C compiler command
855 CFLAGS C compiler flags
856 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
857 nonstandard directory <lib dir>
858 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
859 headers in a nonstandard directory <include dir>
860 CPP C preprocessor
861
862Use these variables to override the choices made by `configure' or to help
863it to find libraries and programs with nonstandard names/locations.
864
3b1139cb 865Report bugs to <bug-grub@gnu.org>.
6a161fa9 866_ACEOF
867fi
868
869if test "$ac_init_help" = "recursive"; then
870 # If there are subdirs, report their specific --help.
871 ac_popdir=`pwd`
872 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
873 test -d $ac_dir || continue
874 ac_builddir=.
875
876if test "$ac_dir" != .; then
877 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
878 # A "../" for each directory in $ac_dir_suffix.
879 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
880else
881 ac_dir_suffix= ac_top_builddir=
882fi
883
884case $srcdir in
885 .) # No --srcdir option. We are building in place.
886 ac_srcdir=.
887 if test -z "$ac_top_builddir"; then
888 ac_top_srcdir=.
889 else
890 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
891 fi ;;
892 [\\/]* | ?:[\\/]* ) # Absolute path.
893 ac_srcdir=$srcdir$ac_dir_suffix;
894 ac_top_srcdir=$srcdir ;;
895 *) # Relative path.
896 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
897 ac_top_srcdir=$ac_top_builddir$srcdir ;;
898esac
924b6140 899
900# Do not use `cd foo && pwd` to compute absolute paths, because
901# the directories may not exist.
902case `pwd` in
903.) ac_abs_builddir="$ac_dir";;
904*)
905 case "$ac_dir" in
906 .) ac_abs_builddir=`pwd`;;
907 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
908 *) ac_abs_builddir=`pwd`/"$ac_dir";;
909 esac;;
910esac
911case $ac_abs_builddir in
912.) ac_abs_top_builddir=${ac_top_builddir}.;;
913*)
914 case ${ac_top_builddir}. in
915 .) ac_abs_top_builddir=$ac_abs_builddir;;
916 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
917 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
918 esac;;
919esac
920case $ac_abs_builddir in
921.) ac_abs_srcdir=$ac_srcdir;;
922*)
923 case $ac_srcdir in
924 .) ac_abs_srcdir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
926 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
927 esac;;
928esac
929case $ac_abs_builddir in
930.) ac_abs_top_srcdir=$ac_top_srcdir;;
931*)
932 case $ac_top_srcdir in
933 .) ac_abs_top_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
935 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
936 esac;;
937esac
6a161fa9 938
939 cd $ac_dir
940 # Check for guested configure; otherwise get Cygnus style configure.
941 if test -f $ac_srcdir/configure.gnu; then
942 echo
943 $SHELL $ac_srcdir/configure.gnu --help=recursive
944 elif test -f $ac_srcdir/configure; then
945 echo
946 $SHELL $ac_srcdir/configure --help=recursive
947 elif test -f $ac_srcdir/configure.ac ||
924b6140 948 test -f $ac_srcdir/configure.in; then
6a161fa9 949 echo
950 $ac_configure --help
951 else
952 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
953 fi
4801580b 954 cd $ac_popdir
6a161fa9 955 done
956fi
957
958test -n "$ac_init_help" && exit 0
959if $ac_init_version; then
960 cat <<\_ACEOF
4801580b 961GRUB configure 1.91
924b6140 962generated by GNU Autoconf 2.59
6a161fa9 963
924b6140 964Copyright (C) 2003 Free Software Foundation, Inc.
6a161fa9 965This configure script is free software; the Free Software Foundation
966gives unlimited permission to copy, distribute and modify it.
967_ACEOF
968 exit 0
969fi
970exec 5>config.log
971cat >&5 <<_ACEOF
972This file contains any messages produced by compilers while
973running configure, to aid debugging if configure makes a mistake.
974
4801580b 975It was created by GRUB $as_me 1.91, which was
924b6140 976generated by GNU Autoconf 2.59. Invocation command line was
6a161fa9 977
978 $ $0 $@
979
980_ACEOF
981{
982cat <<_ASUNAME
983## --------- ##
984## Platform. ##
985## --------- ##
986
987hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
988uname -m = `(uname -m) 2>/dev/null || echo unknown`
989uname -r = `(uname -r) 2>/dev/null || echo unknown`
990uname -s = `(uname -s) 2>/dev/null || echo unknown`
991uname -v = `(uname -v) 2>/dev/null || echo unknown`
992
993/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
994/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
995
996/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
997/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
998/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
999hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1000/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1001/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1002/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1003
1004_ASUNAME
1005
1006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1007for as_dir in $PATH
1008do
1009 IFS=$as_save_IFS
1010 test -z "$as_dir" && as_dir=.
1011 echo "PATH: $as_dir"
1012done
1013
1014} >&5
1015
1016cat >&5 <<_ACEOF
1017
1018
1019## ----------- ##
1020## Core tests. ##
1021## ----------- ##
1022
1023_ACEOF
1024
1025
1026# Keep a trace of the command line.
1027# Strip out --no-create and --no-recursion so they do not pile up.
98d15063 1028# Strip out --silent because we don't want to record it for future runs.
6a161fa9 1029# Also quote any args containing shell meta-characters.
98d15063 1030# Make two passes to allow for proper duplicate-argument suppression.
6a161fa9 1031ac_configure_args=
98d15063 1032ac_configure_args0=
1033ac_configure_args1=
6a161fa9 1034ac_sep=
98d15063 1035ac_must_keep_next=false
1036for ac_pass in 1 2
6a161fa9 1037do
98d15063 1038 for ac_arg
1039 do
1040 case $ac_arg in
1041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1044 continue ;;
1045 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1046 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1047 esac
1048 case $ac_pass in
1049 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1050 2)
1051 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1052 if test $ac_must_keep_next = true; then
924b6140 1053 ac_must_keep_next=false # Got value, back to normal.
98d15063 1054 else
924b6140 1055 case $ac_arg in
1056 *=* | --config-cache | -C | -disable-* | --disable-* \
1057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1059 | -with-* | --with-* | -without-* | --without-* | --x)
1060 case "$ac_configure_args0 " in
1061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1062 esac
1063 ;;
1064 -* ) ac_must_keep_next=true ;;
1065 esac
98d15063 1066 fi
1067 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1068 # Get rid of the leading space.
1069 ac_sep=" "
1070 ;;
1071 esac
1072 done
6a161fa9 1073done
98d15063 1074$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1075$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
6a161fa9 1076
1077# When interrupted or exit'd, cleanup temporary files, and complete
1078# config.log. We remove comments because anyway the quotes in there
1079# would cause problems or look ugly.
1080# WARNING: Be sure not to use single quotes in there, as some shells,
1081# such as our DU 5.0 friend, will then `close' the trap.
1082trap 'exit_status=$?
1083 # Save into config.log some information that might help in debugging.
1084 {
1085 echo
98d15063 1086
6a161fa9 1087 cat <<\_ASBOX
1088## ---------------- ##
1089## Cache variables. ##
1090## ---------------- ##
1091_ASBOX
1092 echo
1093 # The following way of writing the cache mishandles newlines in values,
1094{
1095 (set) 2>&1 |
1096 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1097 *ac_space=\ *)
1098 sed -n \
924b6140 1099 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
6a161fa9 1101 ;;
1102 *)
1103 sed -n \
924b6140 1104 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6a161fa9 1105 ;;
1106 esac;
1107}
1108 echo
98d15063 1109
1110 cat <<\_ASBOX
1111## ----------------- ##
1112## Output variables. ##
1113## ----------------- ##
1114_ASBOX
1115 echo
1116 for ac_var in $ac_subst_vars
1117 do
1118 eval ac_val=$`echo $ac_var`
1119 echo "$ac_var='"'"'$ac_val'"'"'"
1120 done | sort
1121 echo
1122
1123 if test -n "$ac_subst_files"; then
1124 cat <<\_ASBOX
1125## ------------- ##
1126## Output files. ##
1127## ------------- ##
1128_ASBOX
1129 echo
1130 for ac_var in $ac_subst_files
1131 do
1132 eval ac_val=$`echo $ac_var`
924b6140 1133 echo "$ac_var='"'"'$ac_val'"'"'"
98d15063 1134 done | sort
1135 echo
1136 fi
1137
6a161fa9 1138 if test -s confdefs.h; then
1139 cat <<\_ASBOX
1140## ----------- ##
1141## confdefs.h. ##
1142## ----------- ##
1143_ASBOX
1144 echo
98d15063 1145 sed "/^$/d" confdefs.h | sort
6a161fa9 1146 echo
1147 fi
1148 test "$ac_signal" != 0 &&
1149 echo "$as_me: caught signal $ac_signal"
1150 echo "$as_me: exit $exit_status"
1151 } >&5
924b6140 1152 rm -f core *.core &&
6a161fa9 1153 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1154 exit $exit_status
1155 ' 0
1156for ac_signal in 1 2 13 15; do
1157 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1158done
1159ac_signal=0
1160
1161# confdefs.h avoids OS command line length limits that DEFS can exceed.
1162rm -rf conftest* confdefs.h
1163# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1164echo >confdefs.h
1165
1166# Predefined preprocessor variables.
1167
1168cat >>confdefs.h <<_ACEOF
1169#define PACKAGE_NAME "$PACKAGE_NAME"
1170_ACEOF
1171
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1175_ACEOF
1176
1177
1178cat >>confdefs.h <<_ACEOF
1179#define PACKAGE_VERSION "$PACKAGE_VERSION"
1180_ACEOF
1181
1182
1183cat >>confdefs.h <<_ACEOF
1184#define PACKAGE_STRING "$PACKAGE_STRING"
1185_ACEOF
1186
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1190_ACEOF
1191
1192
1193# Let the site file select an alternate cache file if it wants to.
1194# Prefer explicitly selected file to automatically selected ones.
1195if test -z "$CONFIG_SITE"; then
1196 if test "x$prefix" != xNONE; then
1197 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1198 else
1199 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1200 fi
1201fi
1202for ac_site_file in $CONFIG_SITE; do
1203 if test -r "$ac_site_file"; then
1204 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1205echo "$as_me: loading site script $ac_site_file" >&6;}
1206 sed 's/^/| /' "$ac_site_file" >&5
1207 . "$ac_site_file"
1208 fi
1209done
1210
1211if test -r "$cache_file"; then
1212 # Some versions of bash will fail to source /dev/null (special
1213 # files actually), so we avoid doing that.
1214 if test -f "$cache_file"; then
1215 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1216echo "$as_me: loading cache $cache_file" >&6;}
1217 case $cache_file in
1218 [\\/]* | ?:[\\/]* ) . $cache_file;;
1219 *) . ./$cache_file;;
1220 esac
1221 fi
1222else
1223 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1224echo "$as_me: creating cache $cache_file" >&6;}
1225 >$cache_file
1226fi
1227
1228# Check that the precious variables saved in the cache have kept the same
1229# value.
1230ac_cache_corrupted=false
1231for ac_var in `(set) 2>&1 |
924b6140 1232 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
6a161fa9 1233 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1234 eval ac_new_set=\$ac_env_${ac_var}_set
1235 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1236 eval ac_new_val="\$ac_env_${ac_var}_value"
1237 case $ac_old_set,$ac_new_set in
1238 set,)
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1240echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1242 ,set)
1243 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1244echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1245 ac_cache_corrupted=: ;;
1246 ,);;
1247 *)
1248 if test "x$ac_old_val" != "x$ac_new_val"; then
924b6140 1249 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
6a161fa9 1250echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
924b6140 1251 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
6a161fa9 1252echo "$as_me: former value: $ac_old_val" >&2;}
924b6140 1253 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
6a161fa9 1254echo "$as_me: current value: $ac_new_val" >&2;}
924b6140 1255 ac_cache_corrupted=:
6a161fa9 1256 fi;;
1257 esac
1258 # Pass precious variables to config.status.
1259 if test "$ac_new_set" = set; then
1260 case $ac_new_val in
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 *) ac_arg=$ac_var=$ac_new_val ;;
1264 esac
1265 case " $ac_configure_args " in
1266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1267 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1268 esac
1269 fi
1270done
1271if $ac_cache_corrupted; then
1272 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1273echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1274 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1275echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1276 { (exit 1); exit 1; }; }
1277fi
1278
1279ac_ext=c
1280ac_cpp='$CPP $CPPFLAGS'
1281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1283ac_compiler_gnu=$ac_cv_c_compiler_gnu
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
98d15063 1312
1313 ac_config_headers="$ac_config_headers config.h"
6a161fa9 1314
1315
1316# Checks for build and host systems.
1317ac_aux_dir=
1318for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1319 if test -f $ac_dir/install-sh; then
1320 ac_aux_dir=$ac_dir
1321 ac_install_sh="$ac_aux_dir/install-sh -c"
1322 break
1323 elif test -f $ac_dir/install.sh; then
1324 ac_aux_dir=$ac_dir
1325 ac_install_sh="$ac_aux_dir/install.sh -c"
1326 break
1327 elif test -f $ac_dir/shtool; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/shtool install -c"
1330 break
1331 fi
1332done
1333if test -z "$ac_aux_dir"; then
1334 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1335echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1336 { (exit 1); exit 1; }; }
1337fi
1338ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1339ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1340ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1341
1342# Make sure we can run config.sub.
1343$ac_config_sub sun4 >/dev/null 2>&1 ||
1344 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1345echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1346 { (exit 1); exit 1; }; }
1347
1348echo "$as_me:$LINENO: checking build system type" >&5
1349echo $ECHO_N "checking build system type... $ECHO_C" >&6
1350if test "${ac_cv_build+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1352else
1353 ac_cv_build_alias=$build_alias
1354test -z "$ac_cv_build_alias" &&
1355 ac_cv_build_alias=`$ac_config_guess`
1356test -z "$ac_cv_build_alias" &&
1357 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1358echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1359 { (exit 1); exit 1; }; }
1360ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1361 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1362echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1363 { (exit 1); exit 1; }; }
1364
1365fi
1366echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1367echo "${ECHO_T}$ac_cv_build" >&6
1368build=$ac_cv_build
1369build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1370build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1371build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1372
1373
1374echo "$as_me:$LINENO: checking host system type" >&5
1375echo $ECHO_N "checking host system type... $ECHO_C" >&6
1376if test "${ac_cv_host+set}" = set; then
1377 echo $ECHO_N "(cached) $ECHO_C" >&6
1378else
1379 ac_cv_host_alias=$host_alias
1380test -z "$ac_cv_host_alias" &&
1381 ac_cv_host_alias=$ac_cv_build_alias
1382ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1383 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1384echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1385 { (exit 1); exit 1; }; }
1386
1387fi
1388echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1389echo "${ECHO_T}$ac_cv_host" >&6
1390host=$ac_cv_host
1391host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1392host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1393host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1394
1395
1396
1397case "$host_cpu" in
1398 i[3456]86) host_cpu=i386 ;;
59b8208a 1399 x86_64) host_cpu=i386 amd64=1 ;;
e56cdf21 1400 powerpc) ;;
e9211b5d 1401 sparc64) ;;
6a161fa9 1402 *) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5
1403echo "$as_me: error: unsupported CPU type" >&2;}
1404 { (exit 1); exit 1; }; } ;;
1405esac
1406
1407case "$host_cpu"-"$host_vendor" in
1408 i386-*) host_vendor=pc ;;
e56cdf21 1409 powerpc-*) host_vendor=ieee1275 ;;
e9211b5d 1410 sparc64-*) host_vendor=ieee1275 ;;
6a161fa9 1411 *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
1412echo "$as_me: error: unsupported machine type" >&2;}
1413 { (exit 1); exit 1; }; } ;;
1414esac
1415
1416
1417
1418
1419# Checks for programs.
1420if test "x$CFLAGS" = x; then
1421 default_CFLAGS=yes
1422fi
1423
1424ac_ext=c
1425ac_cpp='$CPP $CPPFLAGS'
1426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1428ac_compiler_gnu=$ac_cv_c_compiler_gnu
1429if test -n "$ac_tool_prefix"; then
1430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1431set dummy ${ac_tool_prefix}gcc; ac_word=$2
1432echo "$as_me:$LINENO: checking for $ac_word" >&5
1433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1434if test "${ac_cv_prog_CC+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1436else
1437 if test -n "$CC"; then
1438 ac_cv_prog_CC="$CC" # Let the user override the test.
1439else
1440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441for as_dir in $PATH
1442do
1443 IFS=$as_save_IFS
1444 test -z "$as_dir" && as_dir=.
1445 for ac_exec_ext in '' $ac_executable_extensions; do
1446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1447 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1449 break 2
1450 fi
1451done
1452done
1453
1454fi
1455fi
1456CC=$ac_cv_prog_CC
1457if test -n "$CC"; then
1458 echo "$as_me:$LINENO: result: $CC" >&5
1459echo "${ECHO_T}$CC" >&6
1460else
1461 echo "$as_me:$LINENO: result: no" >&5
1462echo "${ECHO_T}no" >&6
1463fi
1464
1465fi
1466if test -z "$ac_cv_prog_CC"; then
1467 ac_ct_CC=$CC
1468 # Extract the first word of "gcc", so it can be a program name with args.
1469set dummy gcc; ac_word=$2
1470echo "$as_me:$LINENO: checking for $ac_word" >&5
1471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1474else
1475 if test -n "$ac_ct_CC"; then
1476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1477else
1478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479for as_dir in $PATH
1480do
1481 IFS=$as_save_IFS
1482 test -z "$as_dir" && as_dir=.
1483 for ac_exec_ext in '' $ac_executable_extensions; do
1484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485 ac_cv_prog_ac_ct_CC="gcc"
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1487 break 2
1488 fi
1489done
1490done
1491
1492fi
1493fi
1494ac_ct_CC=$ac_cv_prog_ac_ct_CC
1495if test -n "$ac_ct_CC"; then
1496 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1497echo "${ECHO_T}$ac_ct_CC" >&6
1498else
1499 echo "$as_me:$LINENO: result: no" >&5
1500echo "${ECHO_T}no" >&6
1501fi
1502
1503 CC=$ac_ct_CC
1504else
1505 CC="$ac_cv_prog_CC"
1506fi
1507
1508if test -z "$CC"; then
1509 if test -n "$ac_tool_prefix"; then
1510 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1511set dummy ${ac_tool_prefix}cc; ac_word=$2
1512echo "$as_me:$LINENO: checking for $ac_word" >&5
1513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514if test "${ac_cv_prog_CC+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1516else
1517 if test -n "$CC"; then
1518 ac_cv_prog_CC="$CC" # Let the user override the test.
1519else
1520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521for as_dir in $PATH
1522do
1523 IFS=$as_save_IFS
1524 test -z "$as_dir" && as_dir=.
1525 for ac_exec_ext in '' $ac_executable_extensions; do
1526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527 ac_cv_prog_CC="${ac_tool_prefix}cc"
1528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1529 break 2
1530 fi
1531done
1532done
1533
1534fi
1535fi
1536CC=$ac_cv_prog_CC
1537if test -n "$CC"; then
1538 echo "$as_me:$LINENO: result: $CC" >&5
1539echo "${ECHO_T}$CC" >&6
1540else
1541 echo "$as_me:$LINENO: result: no" >&5
1542echo "${ECHO_T}no" >&6
1543fi
1544
1545fi
1546if test -z "$ac_cv_prog_CC"; then
1547 ac_ct_CC=$CC
1548 # Extract the first word of "cc", so it can be a program name with args.
1549set dummy cc; ac_word=$2
1550echo "$as_me:$LINENO: checking for $ac_word" >&5
1551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554else
1555 if test -n "$ac_ct_CC"; then
1556 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1557else
1558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559for as_dir in $PATH
1560do
1561 IFS=$as_save_IFS
1562 test -z "$as_dir" && as_dir=.
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565 ac_cv_prog_ac_ct_CC="cc"
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567 break 2
1568 fi
1569done
1570done
1571
1572fi
1573fi
1574ac_ct_CC=$ac_cv_prog_ac_ct_CC
1575if test -n "$ac_ct_CC"; then
1576 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1577echo "${ECHO_T}$ac_ct_CC" >&6
1578else
1579 echo "$as_me:$LINENO: result: no" >&5
1580echo "${ECHO_T}no" >&6
1581fi
1582
1583 CC=$ac_ct_CC
1584else
1585 CC="$ac_cv_prog_CC"
1586fi
1587
1588fi
1589if test -z "$CC"; then
1590 # Extract the first word of "cc", so it can be a program name with args.
1591set dummy cc; ac_word=$2
1592echo "$as_me:$LINENO: checking for $ac_word" >&5
1593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1594if test "${ac_cv_prog_CC+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1596else
1597 if test -n "$CC"; then
1598 ac_cv_prog_CC="$CC" # Let the user override the test.
1599else
1600 ac_prog_rejected=no
1601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602for as_dir in $PATH
1603do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1609 ac_prog_rejected=yes
1610 continue
1611 fi
1612 ac_cv_prog_CC="cc"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 break 2
1615 fi
1616done
1617done
1618
1619if test $ac_prog_rejected = yes; then
1620 # We found a bogon in the path, so make sure we never use it.
1621 set dummy $ac_cv_prog_CC
1622 shift
1623 if test $# != 0; then
1624 # We chose a different compiler from the bogus one.
1625 # However, it has the same basename, so the bogon will be chosen
1626 # first if we set CC to just the basename; use the full file name.
1627 shift
98d15063 1628 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6a161fa9 1629 fi
1630fi
1631fi
1632fi
1633CC=$ac_cv_prog_CC
1634if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636echo "${ECHO_T}$CC" >&6
1637else
1638 echo "$as_me:$LINENO: result: no" >&5
1639echo "${ECHO_T}no" >&6
1640fi
1641
1642fi
1643if test -z "$CC"; then
1644 if test -n "$ac_tool_prefix"; then
1645 for ac_prog in cl
1646 do
1647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1648set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1649echo "$as_me:$LINENO: checking for $ac_word" >&5
1650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651if test "${ac_cv_prog_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654 if test -n "$CC"; then
1655 ac_cv_prog_CC="$CC" # Let the user override the test.
1656else
1657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658for as_dir in $PATH
1659do
1660 IFS=$as_save_IFS
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666 break 2
1667 fi
1668done
1669done
1670
1671fi
1672fi
1673CC=$ac_cv_prog_CC
1674if test -n "$CC"; then
1675 echo "$as_me:$LINENO: result: $CC" >&5
1676echo "${ECHO_T}$CC" >&6
1677else
1678 echo "$as_me:$LINENO: result: no" >&5
1679echo "${ECHO_T}no" >&6
1680fi
1681
1682 test -n "$CC" && break
1683 done
1684fi
1685if test -z "$CC"; then
1686 ac_ct_CC=$CC
1687 for ac_prog in cl
1688do
1689 # Extract the first word of "$ac_prog", so it can be a program name with args.
1690set dummy $ac_prog; ac_word=$2
1691echo "$as_me:$LINENO: checking for $ac_word" >&5
1692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695else
1696 if test -n "$ac_ct_CC"; then
1697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1698else
1699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700for as_dir in $PATH
1701do
1702 IFS=$as_save_IFS
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_ac_ct_CC="$ac_prog"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 break 2
1709 fi
1710done
1711done
1712
1713fi
1714fi
1715ac_ct_CC=$ac_cv_prog_ac_ct_CC
1716if test -n "$ac_ct_CC"; then
1717 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1718echo "${ECHO_T}$ac_ct_CC" >&6
1719else
1720 echo "$as_me:$LINENO: result: no" >&5
1721echo "${ECHO_T}no" >&6
1722fi
1723
1724 test -n "$ac_ct_CC" && break
1725done
1726
1727 CC=$ac_ct_CC
1728fi
1729
1730fi
1731
1732
98d15063 1733test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1734See \`config.log' for more details." >&5
1735echo "$as_me: error: no acceptable C compiler found in \$PATH
1736See \`config.log' for more details." >&2;}
6a161fa9 1737 { (exit 1); exit 1; }; }
1738
1739# Provide some information about the compiler.
1740echo "$as_me:$LINENO:" \
1741 "checking for C compiler version" >&5
1742ac_compiler=`set X $ac_compile; echo $2`
1743{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1744 (eval $ac_compiler --version </dev/null >&5) 2>&5
1745 ac_status=$?
1746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1747 (exit $ac_status); }
1748{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1749 (eval $ac_compiler -v </dev/null >&5) 2>&5
1750 ac_status=$?
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1754 (eval $ac_compiler -V </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758
1759cat >conftest.$ac_ext <<_ACEOF
98d15063 1760/* confdefs.h. */
1761_ACEOF
1762cat confdefs.h >>conftest.$ac_ext
1763cat >>conftest.$ac_ext <<_ACEOF
1764/* end confdefs.h. */
6a161fa9 1765
6a161fa9 1766int
1767main ()
1768{
1769
1770 ;
1771 return 0;
1772}
1773_ACEOF
1774ac_clean_files_save=$ac_clean_files
98d15063 1775ac_clean_files="$ac_clean_files a.out a.exe b.out"
6a161fa9 1776# Try to create an executable without -o first, disregard a.out.
1777# It will help us diagnose broken compilers, and finding out an intuition
1778# of exeext.
924b6140 1779echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1780echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
6a161fa9 1781ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1782if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1783 (eval $ac_link_default) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; then
1787 # Find the output, starting from the most likely. This scheme is
1788# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1789# resort.
1790
1791# Be careful to initialize this variable, since it used to be cached.
1792# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1793ac_cv_exeext=
98d15063 1794# b.out is created by i960 compilers.
1795for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1796do
1797 test -f "$ac_file" || continue
6a161fa9 1798 case $ac_file in
98d15063 1799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
924b6140 1800 ;;
98d15063 1801 conftest.$ac_ext )
924b6140 1802 # This is the source file.
1803 ;;
98d15063 1804 [ab].out )
924b6140 1805 # We found the default executable, but exeext='' is most
1806 # certainly right.
1807 break;;
98d15063 1808 *.* )
924b6140 1809 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1810 # FIXME: I believe we export ac_cv_exeext for Libtool,
1811 # but it would be cool to find out if it's true. Does anybody
1812 # maintain Libtool? --akim.
1813 export ac_cv_exeext
1814 break;;
98d15063 1815 * )
924b6140 1816 break;;
6a161fa9 1817 esac
1818done
1819else
1820 echo "$as_me: failed program was:" >&5
98d15063 1821sed 's/^/| /' conftest.$ac_ext >&5
1822
1823{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1824See \`config.log' for more details." >&5
1825echo "$as_me: error: C compiler cannot create executables
1826See \`config.log' for more details." >&2;}
6a161fa9 1827 { (exit 77); exit 77; }; }
1828fi
1829
1830ac_exeext=$ac_cv_exeext
1831echo "$as_me:$LINENO: result: $ac_file" >&5
1832echo "${ECHO_T}$ac_file" >&6
1833
1834# Check the compiler produces executables we can run. If not, either
1835# the compiler is broken, or we cross compile.
1836echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1837echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1838# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1839# If not cross compiling, check that we can run a simple program.
1840if test "$cross_compiling" != yes; then
1841 if { ac_try='./$ac_file'
1842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1843 (eval $ac_try) 2>&5
1844 ac_status=$?
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }; }; then
1847 cross_compiling=no
1848 else
1849 if test "$cross_compiling" = maybe; then
1850 cross_compiling=yes
1851 else
1852 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
98d15063 1853If you meant to cross compile, use \`--host'.
1854See \`config.log' for more details." >&5
6a161fa9 1855echo "$as_me: error: cannot run C compiled programs.
98d15063 1856If you meant to cross compile, use \`--host'.
1857See \`config.log' for more details." >&2;}
6a161fa9 1858 { (exit 1); exit 1; }; }
1859 fi
1860 fi
1861fi
1862echo "$as_me:$LINENO: result: yes" >&5
1863echo "${ECHO_T}yes" >&6
1864
98d15063 1865rm -f a.out a.exe conftest$ac_cv_exeext b.out
6a161fa9 1866ac_clean_files=$ac_clean_files_save
1867# Check the compiler produces executables we can run. If not, either
1868# the compiler is broken, or we cross compile.
1869echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1870echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1871echo "$as_me:$LINENO: result: $cross_compiling" >&5
1872echo "${ECHO_T}$cross_compiling" >&6
1873
1874echo "$as_me:$LINENO: checking for suffix of executables" >&5
1875echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1877 (eval $ac_link) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1882# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1883# work properly (i.e., refer to `conftest.exe'), while it won't with
1884# `rm'.
98d15063 1885for ac_file in conftest.exe conftest conftest.*; do
1886 test -f "$ac_file" || continue
6a161fa9 1887 case $ac_file in
98d15063 1888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
6a161fa9 1889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
924b6140 1890 export ac_cv_exeext
1891 break;;
6a161fa9 1892 * ) break;;
1893 esac
1894done
1895else
98d15063 1896 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1897See \`config.log' for more details." >&5
1898echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1899See \`config.log' for more details." >&2;}
6a161fa9 1900 { (exit 1); exit 1; }; }
1901fi
1902
1903rm -f conftest$ac_cv_exeext
1904echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1905echo "${ECHO_T}$ac_cv_exeext" >&6
1906
1907rm -f conftest.$ac_ext
1908EXEEXT=$ac_cv_exeext
1909ac_exeext=$EXEEXT
1910echo "$as_me:$LINENO: checking for suffix of object files" >&5
1911echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1912if test "${ac_cv_objext+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914else
1915 cat >conftest.$ac_ext <<_ACEOF
98d15063 1916/* confdefs.h. */
1917_ACEOF
1918cat confdefs.h >>conftest.$ac_ext
1919cat >>conftest.$ac_ext <<_ACEOF
1920/* end confdefs.h. */
6a161fa9 1921
6a161fa9 1922int
1923main ()
1924{
1925
1926 ;
1927 return 0;
1928}
1929_ACEOF
1930rm -f conftest.o conftest.obj
1931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1932 (eval $ac_compile) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; then
1936 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1937 case $ac_file in
98d15063 1938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
6a161fa9 1939 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1940 break;;
1941 esac
1942done
1943else
1944 echo "$as_me: failed program was:" >&5
98d15063 1945sed 's/^/| /' conftest.$ac_ext >&5
1946
1947{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1948See \`config.log' for more details." >&5
1949echo "$as_me: error: cannot compute suffix of object files: cannot compile
1950See \`config.log' for more details." >&2;}
6a161fa9 1951 { (exit 1); exit 1; }; }
1952fi
1953
1954rm -f conftest.$ac_cv_objext conftest.$ac_ext
1955fi
1956echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1957echo "${ECHO_T}$ac_cv_objext" >&6
1958OBJEXT=$ac_cv_objext
1959ac_objext=$OBJEXT
1960echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1961echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1962if test "${ac_cv_c_compiler_gnu+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1964else
1965 cat >conftest.$ac_ext <<_ACEOF
98d15063 1966/* confdefs.h. */
1967_ACEOF
1968cat confdefs.h >>conftest.$ac_ext
1969cat >>conftest.$ac_ext <<_ACEOF
1970/* end confdefs.h. */
6a161fa9 1971
6a161fa9 1972int
1973main ()
1974{
1975#ifndef __GNUC__
1976 choke me
1977#endif
1978
1979 ;
1980 return 0;
1981}
1982_ACEOF
1983rm -f conftest.$ac_objext
1984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 1985 (eval $ac_compile) 2>conftest.er1
6a161fa9 1986 ac_status=$?
924b6140 1987 grep -v '^ *+' conftest.er1 >conftest.err
1988 rm -f conftest.er1
1989 cat conftest.err >&5
6a161fa9 1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); } &&
4801580b 1992 { ac_try='test -z "$ac_c_werror_flag"
1993 || test ! -s conftest.err'
924b6140 1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; } &&
1999 { ac_try='test -s conftest.$ac_objext'
6a161fa9 2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2005 ac_compiler_gnu=yes
2006else
2007 echo "$as_me: failed program was:" >&5
98d15063 2008sed 's/^/| /' conftest.$ac_ext >&5
2009
6a161fa9 2010ac_compiler_gnu=no
2011fi
924b6140 2012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 2013ac_cv_c_compiler_gnu=$ac_compiler_gnu
2014
2015fi
2016echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2017echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2018GCC=`test $ac_compiler_gnu = yes && echo yes`
2019ac_test_CFLAGS=${CFLAGS+set}
2020ac_save_CFLAGS=$CFLAGS
2021CFLAGS="-g"
2022echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2023echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2024if test "${ac_cv_prog_cc_g+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027 cat >conftest.$ac_ext <<_ACEOF
98d15063 2028/* confdefs.h. */
2029_ACEOF
2030cat confdefs.h >>conftest.$ac_ext
2031cat >>conftest.$ac_ext <<_ACEOF
2032/* end confdefs.h. */
6a161fa9 2033
6a161fa9 2034int
2035main ()
2036{
2037
2038 ;
2039 return 0;
2040}
2041_ACEOF
2042rm -f conftest.$ac_objext
2043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 2044 (eval $ac_compile) 2>conftest.er1
6a161fa9 2045 ac_status=$?
924b6140 2046 grep -v '^ *+' conftest.er1 >conftest.err
2047 rm -f conftest.er1
2048 cat conftest.err >&5
6a161fa9 2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); } &&
4801580b 2051 { ac_try='test -z "$ac_c_werror_flag"
2052 || test ! -s conftest.err'
924b6140 2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 (eval $ac_try) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; } &&
2058 { ac_try='test -s conftest.$ac_objext'
6a161fa9 2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2064 ac_cv_prog_cc_g=yes
2065else
2066 echo "$as_me: failed program was:" >&5
98d15063 2067sed 's/^/| /' conftest.$ac_ext >&5
2068
6a161fa9 2069ac_cv_prog_cc_g=no
2070fi
924b6140 2071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 2072fi
2073echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2074echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2075if test "$ac_test_CFLAGS" = set; then
2076 CFLAGS=$ac_save_CFLAGS
2077elif test $ac_cv_prog_cc_g = yes; then
2078 if test "$GCC" = yes; then
2079 CFLAGS="-g -O2"
2080 else
2081 CFLAGS="-g"
2082 fi
2083else
2084 if test "$GCC" = yes; then
2085 CFLAGS="-O2"
2086 else
2087 CFLAGS=
2088 fi
2089fi
98d15063 2090echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2091echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2092if test "${ac_cv_prog_cc_stdc+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094else
2095 ac_cv_prog_cc_stdc=no
2096ac_save_CC=$CC
2097cat >conftest.$ac_ext <<_ACEOF
98d15063 2098/* confdefs.h. */
2099_ACEOF
2100cat confdefs.h >>conftest.$ac_ext
2101cat >>conftest.$ac_ext <<_ACEOF
2102/* end confdefs.h. */
2103#include <stdarg.h>
2104#include <stdio.h>
2105#include <sys/types.h>
2106#include <sys/stat.h>
2107/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2108struct buf { int x; };
2109FILE * (*rcsopen) (struct buf *, struct stat *, int);
2110static char *e (p, i)
2111 char **p;
2112 int i;
2113{
2114 return p[i];
2115}
2116static char *f (char * (*g) (char **, int), char **p, ...)
2117{
2118 char *s;
2119 va_list v;
2120 va_start (v,p);
2121 s = g (p, va_arg (v,int));
2122 va_end (v);
2123 return s;
2124}
924b6140 2125
2126/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2127 function prototypes and stuff, but not '\xHH' hex character constants.
2128 These don't provoke an error unfortunately, instead are silently treated
2129 as 'x'. The following induces an error, until -std1 is added to get
2130 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2131 array size at least. It's necessary to write '\x00'==0 to get something
2132 that's true only with -std1. */
2133int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2134
98d15063 2135int test (int i, double x);
2136struct s1 {int (*f) (int a);};
2137struct s2 {int (*f) (double a);};
2138int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2139int argc;
2140char **argv;
2141int
2142main ()
2143{
2144return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2145 ;
2146 return 0;
2147}
2148_ACEOF
2149# Don't try gcc -ansi; that turns off useful extensions and
2150# breaks some systems' header files.
2151# AIX -qlanglvl=ansi
2152# Ultrix and OSF/1 -std1
2153# HP-UX 10.20 and later -Ae
2154# HP-UX older versions -Aa -D_HPUX_SOURCE
2155# SVR4 -Xc -D__EXTENSIONS__
2156for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2157do
2158 CC="$ac_save_CC $ac_arg"
2159 rm -f conftest.$ac_objext
2160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 2161 (eval $ac_compile) 2>conftest.er1
98d15063 2162 ac_status=$?
924b6140 2163 grep -v '^ *+' conftest.er1 >conftest.err
2164 rm -f conftest.er1
2165 cat conftest.err >&5
98d15063 2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
4801580b 2168 { ac_try='test -z "$ac_c_werror_flag"
2169 || test ! -s conftest.err'
924b6140 2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
98d15063 2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2181 ac_cv_prog_cc_stdc=$ac_arg
2182break
2183else
2184 echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187fi
924b6140 2188rm -f conftest.err conftest.$ac_objext
98d15063 2189done
2190rm -f conftest.$ac_ext conftest.$ac_objext
2191CC=$ac_save_CC
2192
2193fi
2194
2195case "x$ac_cv_prog_cc_stdc" in
2196 x|xno)
2197 echo "$as_me:$LINENO: result: none needed" >&5
2198echo "${ECHO_T}none needed" >&6 ;;
2199 *)
2200 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2201echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2202 CC="$CC $ac_cv_prog_cc_stdc" ;;
2203esac
2204
6a161fa9 2205# Some people use a C++ compiler to compile C. Since we use `exit',
2206# in C++ we need to declare it. In case someone uses the same compiler
2207# for both compiling C and C++ we need to have the C++ compiler decide
2208# the declaration of exit, since it's the most demanding environment.
2209cat >conftest.$ac_ext <<_ACEOF
2210#ifndef __cplusplus
2211 choke me
2212#endif
2213_ACEOF
2214rm -f conftest.$ac_objext
2215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 2216 (eval $ac_compile) 2>conftest.er1
6a161fa9 2217 ac_status=$?
924b6140 2218 grep -v '^ *+' conftest.er1 >conftest.err
2219 rm -f conftest.er1
2220 cat conftest.err >&5
6a161fa9 2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); } &&
4801580b 2223 { ac_try='test -z "$ac_c_werror_flag"
2224 || test ! -s conftest.err'
924b6140 2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; } &&
2230 { ac_try='test -s conftest.$ac_objext'
6a161fa9 2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 for ac_declaration in \
924b6140 2237 '' \
6a161fa9 2238 'extern "C" void std::exit (int) throw (); using std::exit;' \
2239 'extern "C" void std::exit (int); using std::exit;' \
2240 'extern "C" void exit (int) throw ();' \
2241 'extern "C" void exit (int);' \
2242 'void exit (int);'
2243do
2244 cat >conftest.$ac_ext <<_ACEOF
98d15063 2245/* confdefs.h. */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h. */
6a161fa9 2250$ac_declaration
924b6140 2251#include <stdlib.h>
6a161fa9 2252int
2253main ()
2254{
2255exit (42);
2256 ;
2257 return 0;
2258}
2259_ACEOF
2260rm -f conftest.$ac_objext
2261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 2262 (eval $ac_compile) 2>conftest.er1
6a161fa9 2263 ac_status=$?
924b6140 2264 grep -v '^ *+' conftest.er1 >conftest.err
2265 rm -f conftest.er1
2266 cat conftest.err >&5
6a161fa9 2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
4801580b 2269 { ac_try='test -z "$ac_c_werror_flag"
2270 || test ! -s conftest.err'
924b6140 2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
6a161fa9 2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2282 :
2283else
2284 echo "$as_me: failed program was:" >&5
98d15063 2285sed 's/^/| /' conftest.$ac_ext >&5
2286
6a161fa9 2287continue
2288fi
924b6140 2289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 2290 cat >conftest.$ac_ext <<_ACEOF
98d15063 2291/* confdefs.h. */
2292_ACEOF
2293cat confdefs.h >>conftest.$ac_ext
2294cat >>conftest.$ac_ext <<_ACEOF
2295/* end confdefs.h. */
6a161fa9 2296$ac_declaration
6a161fa9 2297int
2298main ()
2299{
2300exit (42);
2301 ;
2302 return 0;
2303}
2304_ACEOF
2305rm -f conftest.$ac_objext
2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 2307 (eval $ac_compile) 2>conftest.er1
6a161fa9 2308 ac_status=$?
924b6140 2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
6a161fa9 2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
4801580b 2314 { ac_try='test -z "$ac_c_werror_flag"
2315 || test ! -s conftest.err'
924b6140 2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
6a161fa9 2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2327 break
2328else
2329 echo "$as_me: failed program was:" >&5
98d15063 2330sed 's/^/| /' conftest.$ac_ext >&5
2331
6a161fa9 2332fi
924b6140 2333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 2334done
2335rm -f conftest*
2336if test -n "$ac_declaration"; then
2337 echo '#ifdef __cplusplus' >>confdefs.h
2338 echo $ac_declaration >>confdefs.h
2339 echo '#endif' >>confdefs.h
2340fi
2341
2342else
2343 echo "$as_me: failed program was:" >&5
98d15063 2344sed 's/^/| /' conftest.$ac_ext >&5
2345
6a161fa9 2346fi
924b6140 2347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 2348ac_ext=c
2349ac_cpp='$CPP $CPPFLAGS'
2350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353
2354
a35eed7c 2355# Check whether --enable-largefile or --disable-largefile was given.
2356if test "${enable_largefile+set}" = set; then
2357 enableval="$enable_largefile"
2358
2359fi;
2360if test "$enable_largefile" != no; then
2361
2362 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2363echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2364if test "${ac_cv_sys_largefile_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366else
2367 ac_cv_sys_largefile_CC=no
2368 if test "$GCC" != yes; then
2369 ac_save_CC=$CC
2370 while :; do
2371 # IRIX 6.2 and later do not support large files by default,
2372 # so use the C compiler's -n32 option if that helps.
924b6140 2373 cat >conftest.$ac_ext <<_ACEOF
a35eed7c 2374/* confdefs.h. */
2375_ACEOF
2376cat confdefs.h >>conftest.$ac_ext
2377cat >>conftest.$ac_ext <<_ACEOF
2378/* end confdefs.h. */
2379#include <sys/types.h>
2380 /* Check that off_t can represent 2**63 - 1 correctly.
2381 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2382 since some C++ compilers masquerading as C compilers
2383 incorrectly reject 9223372036854775807. */
2384#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2385 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2386 && LARGE_OFF_T % 2147483647 == 1)
2387 ? 1 : -1];
2388int
2389main ()
2390{
2391
2392 ;
2393 return 0;
2394}
2395_ACEOF
2396 rm -f conftest.$ac_objext
2397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 2398 (eval $ac_compile) 2>conftest.er1
a35eed7c 2399 ac_status=$?
924b6140 2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
a35eed7c 2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
4801580b 2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
924b6140 2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
a35eed7c 2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 break
2419else
2420 echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423fi
924b6140 2424rm -f conftest.err conftest.$ac_objext
a35eed7c 2425 CC="$CC -n32"
2426 rm -f conftest.$ac_objext
2427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 2428 (eval $ac_compile) 2>conftest.er1
a35eed7c 2429 ac_status=$?
924b6140 2430 grep -v '^ *+' conftest.er1 >conftest.err
2431 rm -f conftest.er1
2432 cat conftest.err >&5
a35eed7c 2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
4801580b 2435 { ac_try='test -z "$ac_c_werror_flag"
2436 || test ! -s conftest.err'
924b6140 2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; } &&
2442 { ac_try='test -s conftest.$ac_objext'
a35eed7c 2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2448 ac_cv_sys_largefile_CC=' -n32'; break
2449else
2450 echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453fi
924b6140 2454rm -f conftest.err conftest.$ac_objext
2455 break
a35eed7c 2456 done
2457 CC=$ac_save_CC
2458 rm -f conftest.$ac_ext
2459 fi
2460fi
2461echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2462echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2463 if test "$ac_cv_sys_largefile_CC" != no; then
2464 CC=$CC$ac_cv_sys_largefile_CC
2465 fi
2466
2467 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2468echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2469if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471else
2472 while :; do
2473 ac_cv_sys_file_offset_bits=no
2474 cat >conftest.$ac_ext <<_ACEOF
a35eed7c 2475/* confdefs.h. */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h. */
2480#include <sys/types.h>
2481 /* Check that off_t can represent 2**63 - 1 correctly.
2482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2483 since some C++ compilers masquerading as C compilers
2484 incorrectly reject 9223372036854775807. */
2485#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2487 && LARGE_OFF_T % 2147483647 == 1)
2488 ? 1 : -1];
2489int
2490main ()
2491{
2492
2493 ;
2494 return 0;
2495}
2496_ACEOF
2497rm -f conftest.$ac_objext
2498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 2499 (eval $ac_compile) 2>conftest.er1
a35eed7c 2500 ac_status=$?
924b6140 2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
a35eed7c 2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
4801580b 2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
924b6140 2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
a35eed7c 2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 break
2520else
2521 echo "$as_me: failed program was:" >&5
2522sed 's/^/| /' conftest.$ac_ext >&5
2523
2524fi
924b6140 2525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a35eed7c 2526 cat >conftest.$ac_ext <<_ACEOF
a35eed7c 2527/* confdefs.h. */
2528_ACEOF
2529cat confdefs.h >>conftest.$ac_ext
2530cat >>conftest.$ac_ext <<_ACEOF
2531/* end confdefs.h. */
2532#define _FILE_OFFSET_BITS 64
2533#include <sys/types.h>
2534 /* Check that off_t can represent 2**63 - 1 correctly.
2535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2536 since some C++ compilers masquerading as C compilers
2537 incorrectly reject 9223372036854775807. */
2538#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2540 && LARGE_OFF_T % 2147483647 == 1)
2541 ? 1 : -1];
2542int
2543main ()
2544{
2545
2546 ;
2547 return 0;
2548}
2549_ACEOF
2550rm -f conftest.$ac_objext
2551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 2552 (eval $ac_compile) 2>conftest.er1
a35eed7c 2553 ac_status=$?
924b6140 2554 grep -v '^ *+' conftest.er1 >conftest.err
2555 rm -f conftest.er1
2556 cat conftest.err >&5
a35eed7c 2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
4801580b 2559 { ac_try='test -z "$ac_c_werror_flag"
2560 || test ! -s conftest.err'
924b6140 2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; } &&
2566 { ac_try='test -s conftest.$ac_objext'
a35eed7c 2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 ac_cv_sys_file_offset_bits=64; break
2573else
2574 echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577fi
924b6140 2578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a35eed7c 2579 break
2580done
2581fi
2582echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2583echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2584if test "$ac_cv_sys_file_offset_bits" != no; then
2585
2586cat >>confdefs.h <<_ACEOF
2587#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2588_ACEOF
2589
2590fi
2591rm -f conftest*
2592 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2593echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2594if test "${ac_cv_sys_large_files+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2596else
2597 while :; do
2598 ac_cv_sys_large_files=no
2599 cat >conftest.$ac_ext <<_ACEOF
a35eed7c 2600/* confdefs.h. */
2601_ACEOF
2602cat confdefs.h >>conftest.$ac_ext
2603cat >>conftest.$ac_ext <<_ACEOF
2604/* end confdefs.h. */
2605#include <sys/types.h>
2606 /* Check that off_t can represent 2**63 - 1 correctly.
2607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2608 since some C++ compilers masquerading as C compilers
2609 incorrectly reject 9223372036854775807. */
2610#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2612 && LARGE_OFF_T % 2147483647 == 1)
2613 ? 1 : -1];
2614int
2615main ()
2616{
2617
2618 ;
2619 return 0;
2620}
2621_ACEOF
2622rm -f conftest.$ac_objext
2623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 2624 (eval $ac_compile) 2>conftest.er1
a35eed7c 2625 ac_status=$?
924b6140 2626 grep -v '^ *+' conftest.er1 >conftest.err
2627 rm -f conftest.er1
2628 cat conftest.err >&5
a35eed7c 2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } &&
4801580b 2631 { ac_try='test -z "$ac_c_werror_flag"
2632 || test ! -s conftest.err'
924b6140 2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; } &&
2638 { ac_try='test -s conftest.$ac_objext'
a35eed7c 2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 break
2645else
2646 echo "$as_me: failed program was:" >&5
2647sed 's/^/| /' conftest.$ac_ext >&5
2648
2649fi
924b6140 2650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a35eed7c 2651 cat >conftest.$ac_ext <<_ACEOF
a35eed7c 2652/* confdefs.h. */
2653_ACEOF
2654cat confdefs.h >>conftest.$ac_ext
2655cat >>conftest.$ac_ext <<_ACEOF
2656/* end confdefs.h. */
2657#define _LARGE_FILES 1
2658#include <sys/types.h>
2659 /* Check that off_t can represent 2**63 - 1 correctly.
2660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2661 since some C++ compilers masquerading as C compilers
2662 incorrectly reject 9223372036854775807. */
2663#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2665 && LARGE_OFF_T % 2147483647 == 1)
2666 ? 1 : -1];
2667int
2668main ()
2669{
2670
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675rm -f conftest.$ac_objext
2676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 2677 (eval $ac_compile) 2>conftest.er1
a35eed7c 2678 ac_status=$?
924b6140 2679 grep -v '^ *+' conftest.er1 >conftest.err
2680 rm -f conftest.er1
2681 cat conftest.err >&5
a35eed7c 2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } &&
4801580b 2684 { ac_try='test -z "$ac_c_werror_flag"
2685 || test ! -s conftest.err'
924b6140 2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 (eval $ac_try) 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; } &&
2691 { ac_try='test -s conftest.$ac_objext'
a35eed7c 2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 (eval $ac_try) 2>&5
2694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; }; then
2697 ac_cv_sys_large_files=1; break
2698else
2699 echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702fi
924b6140 2703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a35eed7c 2704 break
2705done
2706fi
2707echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
2708echo "${ECHO_T}$ac_cv_sys_large_files" >&6
2709if test "$ac_cv_sys_large_files" != no; then
2710
2711cat >>confdefs.h <<_ACEOF
2712#define _LARGE_FILES $ac_cv_sys_large_files
2713_ACEOF
2714
2715fi
2716rm -f conftest*
2717fi
2718
2719
6a161fa9 2720# Must be GCC.
2721test "x$GCC" = xyes || { { echo "$as_me:$LINENO: error: GCC is required" >&5
2722echo "$as_me: error: GCC is required" >&2;}
2723 { (exit 1); exit 1; }; }
2724
2725if test "x$default_CFLAGS" = xyes; then
2726 # debug flags.
a5ffe966 2727 tmp_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
2728 -Wundef -Wstrict-prototypes -g"
6a161fa9 2729
2730 # optimization flags.
a35eed7c 2731 echo "$as_me:$LINENO: checking whether optimization for size works" >&5
6a161fa9 2732echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6
2733if test "${size_flag+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735else
2736
2737 CFLAGS=-Os
98d15063 2738 cat >conftest.$ac_ext <<_ACEOF
98d15063 2739/* confdefs.h. */
2740_ACEOF
2741cat confdefs.h >>conftest.$ac_ext
2742cat >>conftest.$ac_ext <<_ACEOF
2743/* end confdefs.h. */
6a161fa9 2744
6a161fa9 2745int
2746main ()
2747{
2748
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753rm -f conftest.$ac_objext
2754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 2755 (eval $ac_compile) 2>conftest.er1
6a161fa9 2756 ac_status=$?
924b6140 2757 grep -v '^ *+' conftest.er1 >conftest.err
2758 rm -f conftest.er1
2759 cat conftest.err >&5
6a161fa9 2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } &&
4801580b 2762 { ac_try='test -z "$ac_c_werror_flag"
2763 || test ! -s conftest.err'
924b6140 2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 (eval $ac_try) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; } &&
2769 { ac_try='test -s conftest.$ac_objext'
6a161fa9 2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 (eval $ac_try) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; }; then
2775 size_flag=yes
2776else
2777 echo "$as_me: failed program was:" >&5
98d15063 2778sed 's/^/| /' conftest.$ac_ext >&5
2779
6a161fa9 2780size_flag=no
2781fi
924b6140 2782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 2783
2784fi
2785echo "$as_me:$LINENO: result: $size_flag" >&5
2786echo "${ECHO_T}$size_flag" >&6
2787 if test "x$size_flag" = xyes; then
2788 tmp_CFLAGS="$tmp_CFLAGS -Os"
2789 else
2790 tmp_CFLAGS="$tmp_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
2791 fi
2792
2793 # Force no alignment to save space on i386.
2794 if test "x$host_cpu" = xi386; then
2795 echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
2796echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6
2797if test "${falign_loop_flag+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799else
2800
2801 CFLAGS="-falign-loops=1"
2802 cat >conftest.$ac_ext <<_ACEOF
98d15063 2803/* confdefs.h. */
2804_ACEOF
2805cat confdefs.h >>conftest.$ac_ext
2806cat >>conftest.$ac_ext <<_ACEOF
2807/* end confdefs.h. */
6a161fa9 2808
6a161fa9 2809int
2810main ()
2811{
2812
2813 ;
2814 return 0;
2815}
2816_ACEOF
2817rm -f conftest.$ac_objext
2818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 2819 (eval $ac_compile) 2>conftest.er1
6a161fa9 2820 ac_status=$?
924b6140 2821 grep -v '^ *+' conftest.er1 >conftest.err
2822 rm -f conftest.er1
2823 cat conftest.err >&5
6a161fa9 2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } &&
4801580b 2826 { ac_try='test -z "$ac_c_werror_flag"
2827 || test ! -s conftest.err'
924b6140 2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 (eval $ac_try) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; } &&
2833 { ac_try='test -s conftest.$ac_objext'
6a161fa9 2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 falign_loop_flag=yes
2840else
2841 echo "$as_me: failed program was:" >&5
98d15063 2842sed 's/^/| /' conftest.$ac_ext >&5
2843
6a161fa9 2844falign_loop_flag=no
2845fi
924b6140 2846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 2847
2848fi
2849echo "$as_me:$LINENO: result: $falign_loop_flag" >&5
2850echo "${ECHO_T}$falign_loop_flag" >&6
2851
2852 if test "x$falign_loop_flag" = xyes; then
2853 tmp_CFLAGS="$tmp_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
2854 else
2855 tmp_CFLAGS="$tmp_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
2856 fi
2857 fi
2858
59b8208a 2859 if test "x$amd64" = x1; then
2860 tmp_CFLAGS="$tmp_CFLAGS -m32"
2861 fi
2862
6a161fa9 2863 CFLAGS="$tmp_CFLAGS"
2864fi
2865
2866
2867# Defined in aclocal.m4.
2868
2869echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
2870echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6
4b13b216 2871if test "${grub_cv_asm_uscore+set}" = set; then
6a161fa9 2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873else
2874 cat > conftest.c <<\EOF
2875int
2876func (int *list)
2877{
2878 *list = 0;
2879 return *list;
2880}
2881EOF
2882
2883if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } && test -s conftest.s; then
2889 true
2890else
2891 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
2892echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
2893 { (exit 1); exit 1; }; }
2894fi
2895
2896if grep _func conftest.s >/dev/null 2>&1; then
4b13b216 2897 grub_cv_asm_uscore=yes
6a161fa9 2898else
4b13b216 2899 grub_cv_asm_uscore=no
6a161fa9 2900fi
2901
2902rm -f conftest*
2903fi
2904
2905
4b13b216 2906if test "x$grub_cv_asm_uscore" = xyes; then
6a161fa9 2907
2908cat >>confdefs.h <<_ACEOF
4b13b216 2909#define HAVE_ASM_USCORE $grub_cv_asm_uscore
6a161fa9 2910_ACEOF
2911
2912fi
2913
4b13b216 2914echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
2915echo "${ECHO_T}$grub_cv_asm_uscore" >&6
6a161fa9 2916
e56cdf21 2917if test "x$host_cpu" = xi386; then
6a161fa9 2918
2919echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
2920echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6
4b13b216 2921if test "${grub_cv_check_start_symbol+set}" = set; then
6a161fa9 2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923else
2924 cat >conftest.$ac_ext <<_ACEOF
98d15063 2925/* confdefs.h. */
2926_ACEOF
2927cat confdefs.h >>conftest.$ac_ext
2928cat >>conftest.$ac_ext <<_ACEOF
2929/* end confdefs.h. */
6a161fa9 2930
6a161fa9 2931int
2932main ()
2933{
2934asm ("incl start")
2935 ;
2936 return 0;
2937}
2938_ACEOF
2939rm -f conftest.$ac_objext conftest$ac_exeext
2940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
924b6140 2941 (eval $ac_link) 2>conftest.er1
6a161fa9 2942 ac_status=$?
924b6140 2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
6a161fa9 2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
4801580b 2948 { ac_try='test -z "$ac_c_werror_flag"
2949 || test ! -s conftest.err'
924b6140 2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 (eval $ac_try) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; } &&
2955 { ac_try='test -s conftest$ac_exeext'
6a161fa9 2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 (eval $ac_try) 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
4b13b216 2961 grub_cv_check_start_symbol=yes
6a161fa9 2962else
2963 echo "$as_me: failed program was:" >&5
98d15063 2964sed 's/^/| /' conftest.$ac_ext >&5
2965
4b13b216 2966grub_cv_check_start_symbol=no
6a161fa9 2967fi
924b6140 2968rm -f conftest.err conftest.$ac_objext \
2969 conftest$ac_exeext conftest.$ac_ext
6a161fa9 2970fi
2971
2972
4b13b216 2973echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
2974echo "${ECHO_T}$grub_cv_check_start_symbol" >&6
6a161fa9 2975
2976echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
2977echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6
4b13b216 2978if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
6a161fa9 2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980else
2981 cat >conftest.$ac_ext <<_ACEOF
98d15063 2982/* confdefs.h. */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h. */
6a161fa9 2987
6a161fa9 2988int
2989main ()
2990{
2991asm ("incl _start")
2992 ;
2993 return 0;
2994}
2995_ACEOF
2996rm -f conftest.$ac_objext conftest$ac_exeext
2997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
924b6140 2998 (eval $ac_link) 2>conftest.er1
6a161fa9 2999 ac_status=$?
924b6140 3000 grep -v '^ *+' conftest.er1 >conftest.err
3001 rm -f conftest.er1
3002 cat conftest.err >&5
6a161fa9 3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
4801580b 3005 { ac_try='test -z "$ac_c_werror_flag"
3006 || test ! -s conftest.err'
924b6140 3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 (eval $ac_try) 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; } &&
3012 { ac_try='test -s conftest$ac_exeext'
6a161fa9 3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 (eval $ac_try) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
4b13b216 3018 grub_cv_check_uscore_start_symbol=yes
6a161fa9 3019else
3020 echo "$as_me: failed program was:" >&5
98d15063 3021sed 's/^/| /' conftest.$ac_ext >&5
3022
4b13b216 3023grub_cv_check_uscore_start_symbol=no
6a161fa9 3024fi
924b6140 3025rm -f conftest.err conftest.$ac_objext \
3026 conftest$ac_exeext conftest.$ac_ext
6a161fa9 3027fi
3028
3029
4b13b216 3030echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
3031echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6
6a161fa9 3032
3033
3034
3035
4b13b216 3036if test "x$grub_cv_check_start_symbol" = xyes; then
6a161fa9 3037 cat >>confdefs.h <<\_ACEOF
3038#define START_SYMBOL start
3039_ACEOF
3040
4b13b216 3041elif test "x$grub_cv_check_uscore_start_symbol" = xyes; then
6a161fa9 3042 cat >>confdefs.h <<\_ACEOF
3043#define START_SYMBOL _start
3044_ACEOF
3045
3046else
3047 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
3048echo "$as_me: error: neither start nor _start is defined" >&2;}
3049 { (exit 1); exit 1; }; }
3050fi
3051
3052
3053echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
3054echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6
4b13b216 3055if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
6a161fa9 3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057else
3058 cat >conftest.$ac_ext <<_ACEOF
98d15063 3059/* confdefs.h. */
3060_ACEOF
3061cat confdefs.h >>conftest.$ac_ext
3062cat >>conftest.$ac_ext <<_ACEOF
3063/* end confdefs.h. */
6a161fa9 3064
6a161fa9 3065int
3066main ()
3067{
3068asm ("incl __bss_start")
3069 ;
3070 return 0;
3071}
3072_ACEOF
3073rm -f conftest.$ac_objext conftest$ac_exeext
3074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
924b6140 3075 (eval $ac_link) 2>conftest.er1
6a161fa9 3076 ac_status=$?
924b6140 3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
6a161fa9 3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
4801580b 3082 { ac_try='test -z "$ac_c_werror_flag"
3083 || test ! -s conftest.err'
924b6140 3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 (eval $ac_try) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest$ac_exeext'
6a161fa9 3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091 (eval $ac_try) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
4b13b216 3095 grub_cv_check_uscore_uscore_bss_start_symbol=yes
6a161fa9 3096else
3097 echo "$as_me: failed program was:" >&5
98d15063 3098sed 's/^/| /' conftest.$ac_ext >&5
3099
4b13b216 3100grub_cv_check_uscore_uscore_bss_start_symbol=no
6a161fa9 3101fi
924b6140 3102rm -f conftest.err conftest.$ac_objext \
3103 conftest$ac_exeext conftest.$ac_ext
6a161fa9 3104fi
3105
3106
4b13b216 3107echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
3108echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6
6a161fa9 3109
3110echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
3111echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6
4b13b216 3112if test "${grub_cv_check_edata_symbol+set}" = set; then
6a161fa9 3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115 cat >conftest.$ac_ext <<_ACEOF
98d15063 3116/* confdefs.h. */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h. */
6a161fa9 3121
6a161fa9 3122int
3123main ()
3124{
3125asm ("incl edata")
3126 ;
3127 return 0;
3128}
3129_ACEOF
3130rm -f conftest.$ac_objext conftest$ac_exeext
3131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
924b6140 3132 (eval $ac_link) 2>conftest.er1
6a161fa9 3133 ac_status=$?
924b6140 3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
6a161fa9 3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
4801580b 3139 { ac_try='test -z "$ac_c_werror_flag"
3140 || test ! -s conftest.err'
924b6140 3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 (eval $ac_try) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest$ac_exeext'
6a161fa9 3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 (eval $ac_try) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
4b13b216 3152 grub_cv_check_edata_symbol=yes
6a161fa9 3153else
3154 echo "$as_me: failed program was:" >&5
98d15063 3155sed 's/^/| /' conftest.$ac_ext >&5
3156
4b13b216 3157grub_cv_check_edata_symbol=no
6a161fa9 3158fi
924b6140 3159rm -f conftest.err conftest.$ac_objext \
3160 conftest$ac_exeext conftest.$ac_ext
6a161fa9 3161fi
3162
3163
4b13b216 3164echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
3165echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6
6a161fa9 3166
3167echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
3168echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6
4b13b216 3169if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
6a161fa9 3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171else
3172 cat >conftest.$ac_ext <<_ACEOF
98d15063 3173/* confdefs.h. */
3174_ACEOF
3175cat confdefs.h >>conftest.$ac_ext
3176cat >>conftest.$ac_ext <<_ACEOF
3177/* end confdefs.h. */
6a161fa9 3178
6a161fa9 3179int
3180main ()
3181{
3182asm ("incl _edata")
3183 ;
3184 return 0;
3185}
3186_ACEOF
3187rm -f conftest.$ac_objext conftest$ac_exeext
3188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
924b6140 3189 (eval $ac_link) 2>conftest.er1
6a161fa9 3190 ac_status=$?
924b6140 3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
6a161fa9 3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
4801580b 3196 { ac_try='test -z "$ac_c_werror_flag"
3197 || test ! -s conftest.err'
924b6140 3198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199 (eval $ac_try) 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest$ac_exeext'
6a161fa9 3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205 (eval $ac_try) 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
4b13b216 3209 grub_cv_check_uscore_edata_symbol=yes
6a161fa9 3210else
3211 echo "$as_me: failed program was:" >&5
98d15063 3212sed 's/^/| /' conftest.$ac_ext >&5
3213
4b13b216 3214grub_cv_check_uscore_edata_symbol=no
6a161fa9 3215fi
924b6140 3216rm -f conftest.err conftest.$ac_objext \
3217 conftest$ac_exeext conftest.$ac_ext
6a161fa9 3218fi
3219
3220
4b13b216 3221echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
3222echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6
6a161fa9 3223
3224
3225
3226
4b13b216 3227if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
6a161fa9 3228 cat >>confdefs.h <<\_ACEOF
3229#define BSS_START_SYMBOL __bss_start
3230_ACEOF
3231
4b13b216 3232elif test "x$grub_cv_check_edata_symbol" = xyes; then
6a161fa9 3233 cat >>confdefs.h <<\_ACEOF
3234#define BSS_START_SYMBOL edata
3235_ACEOF
3236
4b13b216 3237elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
6a161fa9 3238 cat >>confdefs.h <<\_ACEOF
3239#define BSS_START_SYMBOL _edata
3240_ACEOF
3241
3242else
3243 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
3244echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
3245 { (exit 1); exit 1; }; }
3246fi
3247
3248
3249echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
3250echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6
4b13b216 3251if test "${grub_cv_check_end_symbol+set}" = set; then
6a161fa9 3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
3254 cat >conftest.$ac_ext <<_ACEOF
98d15063 3255/* confdefs.h. */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
3259/* end confdefs.h. */
6a161fa9 3260
6a161fa9 3261int
3262main ()
3263{
3264asm ("incl end")
3265 ;
3266 return 0;
3267}
3268_ACEOF
3269rm -f conftest.$ac_objext conftest$ac_exeext
3270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
924b6140 3271 (eval $ac_link) 2>conftest.er1
6a161fa9 3272 ac_status=$?
924b6140 3273 grep -v '^ *+' conftest.er1 >conftest.err
3274 rm -f conftest.er1
3275 cat conftest.err >&5
6a161fa9 3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } &&
4801580b 3278 { ac_try='test -z "$ac_c_werror_flag"
3279 || test ! -s conftest.err'
924b6140 3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 (eval $ac_try) 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; } &&
3285 { ac_try='test -s conftest$ac_exeext'
6a161fa9 3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287 (eval $ac_try) 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
4b13b216 3291 grub_cv_check_end_symbol=yes
6a161fa9 3292else
3293 echo "$as_me: failed program was:" >&5
98d15063 3294sed 's/^/| /' conftest.$ac_ext >&5
3295
4b13b216 3296grub_cv_check_end_symbol=no
6a161fa9 3297fi
924b6140 3298rm -f conftest.err conftest.$ac_objext \
3299 conftest$ac_exeext conftest.$ac_ext
6a161fa9 3300fi
3301
3302
4b13b216 3303echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
3304echo "${ECHO_T}$grub_cv_check_end_symbol" >&6
6a161fa9 3305
3306echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
3307echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6
4b13b216 3308if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
6a161fa9 3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310else
3311 cat >conftest.$ac_ext <<_ACEOF
98d15063 3312/* confdefs.h. */
3313_ACEOF
3314cat confdefs.h >>conftest.$ac_ext
3315cat >>conftest.$ac_ext <<_ACEOF
3316/* end confdefs.h. */
6a161fa9 3317
6a161fa9 3318int
3319main ()
3320{
3321asm ("incl _end")
3322 ;
3323 return 0;
3324}
3325_ACEOF
3326rm -f conftest.$ac_objext conftest$ac_exeext
3327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
924b6140 3328 (eval $ac_link) 2>conftest.er1
6a161fa9 3329 ac_status=$?
924b6140 3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
6a161fa9 3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
4801580b 3335 { ac_try='test -z "$ac_c_werror_flag"
3336 || test ! -s conftest.err'
924b6140 3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 (eval $ac_try) 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; } &&
3342 { ac_try='test -s conftest$ac_exeext'
6a161fa9 3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
4b13b216 3348 grub_cv_check_uscore_end_symbol=yes
6a161fa9 3349else
3350 echo "$as_me: failed program was:" >&5
98d15063 3351sed 's/^/| /' conftest.$ac_ext >&5
3352
4b13b216 3353grub_cv_check_uscore_end_symbol=no
6a161fa9 3354fi
924b6140 3355rm -f conftest.err conftest.$ac_objext \
3356 conftest$ac_exeext conftest.$ac_ext
6a161fa9 3357fi
3358
3359
4b13b216 3360echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
3361echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6
6a161fa9 3362
3363
3364
3365
4b13b216 3366if test "x$grub_cv_check_end_symbol" = xyes; then
6a161fa9 3367 cat >>confdefs.h <<\_ACEOF
3368#define END_SYMBOL end
3369_ACEOF
3370
4b13b216 3371elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
6a161fa9 3372 cat >>confdefs.h <<\_ACEOF
3373#define END_SYMBOL _end
3374_ACEOF
3375
3376else
3377 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
3378echo "$as_me: error: neither end nor _end is defined" >&2;}
3379 { (exit 1); exit 1; }; }
3380fi
3381
e56cdf21 3382fi
6a161fa9 3383
3384if test "x$host_cpu" = xi386; then
3385
3386echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
3387echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6
4b13b216 3388if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
6a161fa9 3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390else
3391 cat > conftest.s <<\EOF
3392 .code16
3393l1: addr32 movb %al, l1
3394EOF
3395
3396if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 (eval $ac_try) 2>&5
3399 ac_status=$?
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; } && test -s conftest.o; then
4b13b216 3402 grub_cv_i386_asm_prefix_requirement=yes
6a161fa9 3403else
4b13b216 3404 grub_cv_i386_asm_prefix_requirement=no
6a161fa9 3405fi
3406
3407rm -f conftest*
3408fi
3409
3410
4b13b216 3411if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
3412 grub_tmp_addr32="addr32"
3413 grub_tmp_data32="data32"
6a161fa9 3414else
4b13b216 3415 grub_tmp_addr32="addr32;"
3416 grub_tmp_data32="data32;"
6a161fa9 3417fi
3418
3419
3420cat >>confdefs.h <<_ACEOF
4b13b216 3421#define ADDR32 $grub_tmp_addr32
6a161fa9 3422_ACEOF
3423
3424
3425cat >>confdefs.h <<_ACEOF
4b13b216 3426#define DATA32 $grub_tmp_data32
6a161fa9 3427_ACEOF
3428
3429
4b13b216 3430echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
3431echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6
6a161fa9 3432
3433
3434echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
3435echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6
4b13b216 3436if test "${grub_cv_i386_asm_addr32+set}" = set; then
6a161fa9 3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439 cat > conftest.s.in <<\EOF
3440 .code16
3441l1: @ADDR32@ movb %al, l1
3442EOF
3443
4b13b216 3444if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
6a161fa9 3445 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
3446else
3447 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
3448fi
3449
3450if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 (eval $ac_try) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; } && test -s conftest.o; then
4b13b216 3456 grub_cv_i386_asm_addr32=yes
6a161fa9 3457else
4b13b216 3458 grub_cv_i386_asm_addr32=no
6a161fa9 3459fi
3460
3461rm -f conftest*
3462fi
3463
3464
4b13b216 3465echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
3466echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6
6a161fa9 3467
3468echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
3469echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6
4b13b216 3470if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
6a161fa9 3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472else
3473 cat > conftest.s <<\EOF
3474 lcall *(offset)
3475offset:
3476 .long 0
3477 .word 0
3478EOF
3479
3480if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; } && test -s conftest.o; then
4b13b216 3486 grub_cv_i386_asm_absolute_without_asterisk=no
6a161fa9 3487else
4b13b216 3488 grub_cv_i386_asm_absolute_without_asterisk=yes
6a161fa9 3489fi
3490
3491rm -f conftest*
3492fi
3493
3494
4b13b216 3495if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
6a161fa9 3496
3497cat >>confdefs.h <<\_ACEOF
3498#define ABSOLUTE_WITHOUT_ASTERISK 1
3499_ACEOF
3500
3501fi
3502
4b13b216 3503echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
3504echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6
5aded270 3505
3506echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
3507echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6
4b13b216 3508if test "${grub_cv_i386_check_nested_functions+set}" = set; then
5aded270 3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
3511 if test "$cross_compiling" = yes; then
3512 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3513See \`config.log' for more details." >&5
3514echo "$as_me: error: cannot run test program while cross compiling
3515See \`config.log' for more details." >&2;}
3516 { (exit 1); exit 1; }; }
3517else
3518 cat >conftest.$ac_ext <<_ACEOF
5aded270 3519/* confdefs.h. */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h. */
5aded270 3524
e9c6f39b 3525static int
3526test (int *n)
3527{
3528 return *n == -1;
3529}
3530
3531static int
3532testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
5aded270 3533{
e9c6f39b 3534 int a = 0;
3535 int b = 0;
3536 int c = -1;
3537 return hook (a, b, &c);
3538}
5aded270 3539
e9c6f39b 3540int
3541main (void)
3542{
3543 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
5aded270 3544 {
e9c6f39b 3545 return a == b && test (c);
5aded270 3546 }
e9c6f39b 3547 return testfunc (nestedfunc) ? 0 : 1;
5aded270 3548}
3549
3550_ACEOF
3551rm -f conftest$ac_exeext
3552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3553 (eval $ac_link) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 (eval $ac_try) 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; }; then
e9c6f39b 3562 grub_cv_i386_check_nested_functions=no
5aded270 3563else
3564 echo "$as_me: program exited with status $ac_status" >&5
3565echo "$as_me: failed program was:" >&5
3566sed 's/^/| /' conftest.$ac_ext >&5
3567
3568( exit $ac_status )
e9c6f39b 3569grub_cv_i386_check_nested_functions=yes
5aded270 3570fi
924b6140 3571rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5aded270 3572fi
3573fi
3574
3575
4b13b216 3576echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5
3577echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6
5aded270 3578
4b13b216 3579if test "x$grub_cv_i386_check_nested_functions" = xyes; then
5aded270 3580
3581cat >>confdefs.h <<\_ACEOF
3582#define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2)))
3583_ACEOF
3584
3585else
3586
3587cat >>confdefs.h <<\_ACEOF
e9c6f39b 3588#define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2)))
5aded270 3589_ACEOF
3590
6a161fa9 3591fi
3592
5aded270 3593else
3594
3595cat >>confdefs.h <<\_ACEOF
3596#define NESTED_FUNC_ATTR
3597_ACEOF
3598
3599fi
6a161fa9 3600
3601# Find a good install program. We prefer a C program (faster),
3602# so one script is as good as another. But avoid the broken or
3603# incompatible versions:
3604# SysV /etc/install, /usr/sbin/install
3605# SunOS /usr/etc/install
3606# IRIX /sbin/install
3607# AIX /bin/install
3608# AmigaOS /C/install, which installs bootblocks on floppy discs
3609# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3610# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3611# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
924b6140 3612# OS/2's system install, which has a completely different semantic
6a161fa9 3613# ./install, which can be erroneously created by make from ./install.sh.
3614echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3615echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3616if test -z "$INSTALL"; then
3617if test "${ac_cv_path_install+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621for as_dir in $PATH
3622do
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 # Account for people who put trailing slashes in PATH elements.
3626case $as_dir/ in
3627 ./ | .// | /cC/* | \
3628 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
924b6140 3629 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6a161fa9 3630 /usr/ucb/* ) ;;
3631 *)
3632 # OSF1 and SCO ODT 3.0 have their own names for install.
3633 # Don't use installbsd from OSF since it installs stuff as root
3634 # by default.
3635 for ac_prog in ginstall scoinst install; do
3636 for ac_exec_ext in '' $ac_executable_extensions; do
924b6140 3637 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3638 if test $ac_prog = install &&
3639 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3640 # AIX install. It has an incompatible calling convention.
3641 :
3642 elif test $ac_prog = install &&
3643 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3644 # program-specific install script used by HP pwplus--don't use.
3645 :
3646 else
3647 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3648 break 3
3649 fi
3650 fi
6a161fa9 3651 done
3652 done
3653 ;;
3654esac
3655done
3656
3657
3658fi
3659 if test "${ac_cv_path_install+set}" = set; then
3660 INSTALL=$ac_cv_path_install
3661 else
3662 # As a last resort, use the slow shell script. We don't cache a
3663 # path for INSTALL within a source directory, because that will
3664 # break other packages using the cache if that directory is
3665 # removed, or if the path is relative.
3666 INSTALL=$ac_install_sh
3667 fi
3668fi
3669echo "$as_me:$LINENO: result: $INSTALL" >&5
3670echo "${ECHO_T}$INSTALL" >&6
3671
3672# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3673# It thinks the first close brace ends the variable substitution.
3674test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3675
3676test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3677
3678test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3679
98d15063 3680echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3681echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
924b6140 3682set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6a161fa9 3683if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
3686 cat >conftest.make <<\_ACEOF
3687all:
98d15063 3688 @echo 'ac_maketemp="$(MAKE)"'
6a161fa9 3689_ACEOF
3690# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3691eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3692if test -n "$ac_maketemp"; then
3693 eval ac_cv_prog_make_${ac_make}_set=yes
3694else
3695 eval ac_cv_prog_make_${ac_make}_set=no
3696fi
3697rm -f conftest.make
3698fi
3699if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3700 echo "$as_me:$LINENO: result: yes" >&5
3701echo "${ECHO_T}yes" >&6
3702 SET_MAKE=
3703else
3704 echo "$as_me:$LINENO: result: no" >&5
3705echo "${ECHO_T}no" >&6
3706 SET_MAKE="MAKE=${MAKE-make}"
3707fi
3708
3709if test -n "$ac_tool_prefix"; then
3710 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
3711set dummy ${ac_tool_prefix}objcopy; ac_word=$2
3712echo "$as_me:$LINENO: checking for $ac_word" >&5
3713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714if test "${ac_cv_prog_OBJCOPY+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
3717 if test -n "$OBJCOPY"; then
3718 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3719else
3720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721for as_dir in $PATH
3722do
3723 IFS=$as_save_IFS
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
3728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 break 2
3730 fi
3731done
3732done
3733
3734fi
3735fi
3736OBJCOPY=$ac_cv_prog_OBJCOPY
3737if test -n "$OBJCOPY"; then
3738 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
3739echo "${ECHO_T}$OBJCOPY" >&6
3740else
3741 echo "$as_me:$LINENO: result: no" >&5
3742echo "${ECHO_T}no" >&6
3743fi
3744
3745fi
3746if test -z "$ac_cv_prog_OBJCOPY"; then
3747 ac_ct_OBJCOPY=$OBJCOPY
3748 # Extract the first word of "objcopy", so it can be a program name with args.
3749set dummy objcopy; ac_word=$2
3750echo "$as_me:$LINENO: checking for $ac_word" >&5
3751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754else
3755 if test -n "$ac_ct_OBJCOPY"; then
3756 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
3757else
3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759for as_dir in $PATH
3760do
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
3766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 break 2
3768 fi
3769done
3770done
3771
3772fi
3773fi
3774ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
3775if test -n "$ac_ct_OBJCOPY"; then
3776 echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
3777echo "${ECHO_T}$ac_ct_OBJCOPY" >&6
3778else
3779 echo "$as_me:$LINENO: result: no" >&5
3780echo "${ECHO_T}no" >&6
3781fi
3782
3783 OBJCOPY=$ac_ct_OBJCOPY
3784else
3785 OBJCOPY="$ac_cv_prog_OBJCOPY"
3786fi
3787
3788echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
3789echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6
4b13b216 3790if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
6a161fa9 3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792else
3793 cat > conftest.c <<\EOF
3794void
3795cmain (void)
3796{
3797 *((int *) 0x1000) = 2;
3798}
3799EOF
3800
3801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802 (eval $ac_compile) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } && test -s conftest.o; then :
3806else
3807 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
3808echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
3809 { (exit 1); exit 1; }; }
3810fi
4b13b216 3811grub_cv_prog_objcopy_absolute=yes
6a161fa9 3812for link_addr in 2000 8000 7C00; do
3813 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 (eval $ac_try) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then :
3819 else
3820 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
3821echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
3822 { (exit 1); exit 1; }; }
3823 fi
3824 if { ac_try='${OBJCOPY-objcopy} -O binary conftest.exec conftest'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; }; then :
3830 else
3831 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
3832echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
3833 { (exit 1); exit 1; }; }
3834 fi
3835 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then
3841 mv -f conftest conftest.old
3842 else
4b13b216 3843 grub_cv_prog_objcopy_absolute=no
6a161fa9 3844 break
3845 fi
3846done
3847rm -f conftest*
3848fi
3849
4b13b216 3850echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
3851echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6
6a161fa9 3852
4b13b216 3853if test "x$grub_cv_prog_objcopy_absolute" = xno; then
3854 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
3855echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
6a161fa9 3856 { (exit 1); exit 1; }; }
3857fi
3858
3859if test -n "$ac_tool_prefix"; then
3860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3861set dummy ${ac_tool_prefix}strip; ac_word=$2
3862echo "$as_me:$LINENO: checking for $ac_word" >&5
3863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864if test "${ac_cv_prog_STRIP+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866else
3867 if test -n "$STRIP"; then
3868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3869else
3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH
3872do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881done
3882done
3883
3884fi
3885fi
3886STRIP=$ac_cv_prog_STRIP
3887if test -n "$STRIP"; then
3888 echo "$as_me:$LINENO: result: $STRIP" >&5
3889echo "${ECHO_T}$STRIP" >&6
3890else
3891 echo "$as_me:$LINENO: result: no" >&5
3892echo "${ECHO_T}no" >&6
3893fi
3894
3895fi
3896if test -z "$ac_cv_prog_STRIP"; then
3897 ac_ct_STRIP=$STRIP
3898 # Extract the first word of "strip", so it can be a program name with args.
3899set dummy strip; ac_word=$2
3900echo "$as_me:$LINENO: checking for $ac_word" >&5
3901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3902if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904else
3905 if test -n "$ac_ct_STRIP"; then
3906 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3907else
3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915 ac_cv_prog_ac_ct_STRIP="strip"
3916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 break 2
3918 fi
3919done
3920done
3921
3922fi
3923fi
3924ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3925if test -n "$ac_ct_STRIP"; then
3926 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3927echo "${ECHO_T}$ac_ct_STRIP" >&6
3928else
3929 echo "$as_me:$LINENO: result: no" >&5
3930echo "${ECHO_T}no" >&6
3931fi
3932
3933 STRIP=$ac_ct_STRIP
3934else
3935 STRIP="$ac_cv_prog_STRIP"
3936fi
3937
3938if test -n "$ac_tool_prefix"; then
3939 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3940set dummy ${ac_tool_prefix}nm; ac_word=$2
3941echo "$as_me:$LINENO: checking for $ac_word" >&5
3942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943if test "${ac_cv_prog_NM+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946 if test -n "$NM"; then
3947 ac_cv_prog_NM="$NM" # Let the user override the test.
3948else
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956 ac_cv_prog_NM="${ac_tool_prefix}nm"
3957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3959 fi
3960done
3961done
3962
3963fi
3964fi
3965NM=$ac_cv_prog_NM
3966if test -n "$NM"; then
3967 echo "$as_me:$LINENO: result: $NM" >&5
3968echo "${ECHO_T}$NM" >&6
3969else
3970 echo "$as_me:$LINENO: result: no" >&5
3971echo "${ECHO_T}no" >&6
3972fi
3973
3974fi
3975if test -z "$ac_cv_prog_NM"; then
3976 ac_ct_NM=$NM
3977 # Extract the first word of "nm", so it can be a program name with args.
3978set dummy nm; ac_word=$2
3979echo "$as_me:$LINENO: checking for $ac_word" >&5
3980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3981if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984 if test -n "$ac_ct_NM"; then
3985 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
3986else
3987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988for as_dir in $PATH
3989do
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3994 ac_cv_prog_ac_ct_NM="nm"
3995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 break 2
3997 fi
3998done
3999done
4000
4001fi
4002fi
4003ac_ct_NM=$ac_cv_prog_ac_ct_NM
4004if test -n "$ac_ct_NM"; then
4005 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
4006echo "${ECHO_T}$ac_ct_NM" >&6
4007else
4008 echo "$as_me:$LINENO: result: no" >&5
4009echo "${ECHO_T}no" >&6
4010fi
4011
4012 NM=$ac_ct_NM
4013else
4014 NM="$ac_cv_prog_NM"
4015fi
4016
9962ed99 4017if test -n "$ac_tool_prefix"; then
4018 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4019set dummy ${ac_tool_prefix}ld; ac_word=$2
4020echo "$as_me:$LINENO: checking for $ac_word" >&5
4021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022if test "${ac_cv_prog_LD+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025 if test -n "$LD"; then
4026 ac_cv_prog_LD="$LD" # Let the user override the test.
4027else
4028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029for as_dir in $PATH
4030do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_LD="${ac_tool_prefix}ld"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4038 fi
4039done
4040done
4041
4042fi
4043fi
4044LD=$ac_cv_prog_LD
4045if test -n "$LD"; then
4046 echo "$as_me:$LINENO: result: $LD" >&5
4047echo "${ECHO_T}$LD" >&6
4048else
4049 echo "$as_me:$LINENO: result: no" >&5
4050echo "${ECHO_T}no" >&6
4051fi
4052
4053fi
4054if test -z "$ac_cv_prog_LD"; then
4055 ac_ct_LD=$LD
4056 # Extract the first word of "ld", so it can be a program name with args.
4057set dummy ld; ac_word=$2
4058echo "$as_me:$LINENO: checking for $ac_word" >&5
4059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062else
4063 if test -n "$ac_ct_LD"; then
4064 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4065else
4066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH
4068do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_prog_ac_ct_LD="ld"
4074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 break 2
4076 fi
4077done
4078done
4079
4080fi
4081fi
4082ac_ct_LD=$ac_cv_prog_ac_ct_LD
4083if test -n "$ac_ct_LD"; then
4084 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4085echo "${ECHO_T}$ac_ct_LD" >&6
4086else
4087 echo "$as_me:$LINENO: result: no" >&5
4088echo "${ECHO_T}no" >&6
4089fi
4090
4091 LD=$ac_ct_LD
4092else
4093 LD="$ac_cv_prog_LD"
4094fi
4095
6a161fa9 4096
4097# This is not a "must".
4098# Extract the first word of "ruby", so it can be a program name with args.
4099set dummy ruby; ac_word=$2
4100echo "$as_me:$LINENO: checking for $ac_word" >&5
4101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102if test "${ac_cv_path_RUBY+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104else
4105 case $RUBY in
4106 [\\/]* | ?:[\\/]*)
4107 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
4108 ;;
4109 *)
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH
4112do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 break 2
4120 fi
4121done
4122done
4123
4124 ;;
4125esac
4126fi
4127RUBY=$ac_cv_path_RUBY
4128
4129if test -n "$RUBY"; then
4130 echo "$as_me:$LINENO: result: $RUBY" >&5
4131echo "${ECHO_T}$RUBY" >&6
4132else
4133 echo "$as_me:$LINENO: result: no" >&5
4134echo "${ECHO_T}no" >&6
4135fi
4136
4137
4138# For cross-compiling.
121c1d83 4139if test "x$build" != "x$host"; then
6a161fa9 4140 for ac_prog in gcc egcs cc
4141do
4142 # Extract the first word of "$ac_prog", so it can be a program name with args.
4143set dummy $ac_prog; ac_word=$2
4144echo "$as_me:$LINENO: checking for $ac_word" >&5
4145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4146if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149 if test -n "$BUILD_CC"; then
4150 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4151else
4152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153for as_dir in $PATH
4154do
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159 ac_cv_prog_BUILD_CC="$ac_prog"
4160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 break 2
4162 fi
4163done
4164done
4165
4166fi
4167fi
4168BUILD_CC=$ac_cv_prog_BUILD_CC
4169if test -n "$BUILD_CC"; then
4170 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4171echo "${ECHO_T}$BUILD_CC" >&6
4172else
4173 echo "$as_me:$LINENO: result: no" >&5
4174echo "${ECHO_T}no" >&6
4175fi
4176
4177 test -n "$BUILD_CC" && break
4178done
4179test -n "$BUILD_CC" || BUILD_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set BUILD_CC manually." >&5
4180echo "$as_me: error: none of gcc, egcs and cc is found. set BUILD_CC manually." >&2;}
4181 { (exit 1); exit 1; }; }"
4182
e56cdf21 4183else
4184 BUILD_CC="$CC"
4185
6a161fa9 4186fi
4187
4188# Test the C compiler for the build environment.
9962ed99 4189tmp_CC="$CC"
4190tmp_CFLAGS="$CFLAGS"
59b8208a 4191tmp_LDFLAGS="$LDFLAGS"
9962ed99 4192tmp_CPPFLAGS="$CPPFLAGS"
6a161fa9 4193CC="$BUILD_CC"
9962ed99 4194CFLAGS="$BUILD_CFLAGS"
4195CPPFLAGS="$BUILD_CPPFLAGS"
59b8208a 4196LDFLAGS="$BUILD_LDDFLAGS"
1f5ab428 4197
4198# Identify characteristics of the build architecture.
6a161fa9 4199echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4200echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4201if test "${ac_cv_c_bigendian+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204 # See if sys/param.h defines the BYTE_ORDER macro.
4205cat >conftest.$ac_ext <<_ACEOF
98d15063 4206/* confdefs.h. */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
4210/* end confdefs.h. */
6a161fa9 4211#include <sys/types.h>
4212#include <sys/param.h>
4213
6a161fa9 4214int
4215main ()
4216{
4217#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4218 bogus endian macros
4219#endif
4220
4221 ;
4222 return 0;
4223}
4224_ACEOF
4225rm -f conftest.$ac_objext
4226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 4227 (eval $ac_compile) 2>conftest.er1
6a161fa9 4228 ac_status=$?
924b6140 4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
6a161fa9 4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4801580b 4234 { ac_try='test -z "$ac_c_werror_flag"
4235 || test ! -s conftest.err'
924b6140 4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; } &&
4241 { ac_try='test -s conftest.$ac_objext'
6a161fa9 4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 (eval $ac_try) 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4247 # It does; now see whether it defined to BIG_ENDIAN or not.
4248cat >conftest.$ac_ext <<_ACEOF
98d15063 4249/* confdefs.h. */
4250_ACEOF
4251cat confdefs.h >>conftest.$ac_ext
4252cat >>conftest.$ac_ext <<_ACEOF
4253/* end confdefs.h. */
6a161fa9 4254#include <sys/types.h>
4255#include <sys/param.h>
4256
6a161fa9 4257int
4258main ()
4259{
4260#if BYTE_ORDER != BIG_ENDIAN
4261 not big endian
4262#endif
4263
4264 ;
4265 return 0;
4266}
4267_ACEOF
4268rm -f conftest.$ac_objext
4269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 4270 (eval $ac_compile) 2>conftest.er1
6a161fa9 4271 ac_status=$?
924b6140 4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
6a161fa9 4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4801580b 4277 { ac_try='test -z "$ac_c_werror_flag"
4278 || test ! -s conftest.err'
924b6140 4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
6a161fa9 4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 (eval $ac_try) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_c_bigendian=yes
4291else
4292 echo "$as_me: failed program was:" >&5
98d15063 4293sed 's/^/| /' conftest.$ac_ext >&5
4294
6a161fa9 4295ac_cv_c_bigendian=no
4296fi
924b6140 4297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 4298else
4299 echo "$as_me: failed program was:" >&5
98d15063 4300sed 's/^/| /' conftest.$ac_ext >&5
4301
6a161fa9 4302# It does not; compile a test program.
4303if test "$cross_compiling" = yes; then
98d15063 4304 # try to guess the endianness by grepping values into an object file
6a161fa9 4305 ac_cv_c_bigendian=unknown
4306 cat >conftest.$ac_ext <<_ACEOF
98d15063 4307/* confdefs.h. */
4308_ACEOF
4309cat confdefs.h >>conftest.$ac_ext
4310cat >>conftest.$ac_ext <<_ACEOF
4311/* end confdefs.h. */
6a161fa9 4312short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4313short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4314void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4315short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4316short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4317void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6a161fa9 4318int
4319main ()
4320{
4321 _ascii (); _ebcdic ();
4322 ;
4323 return 0;
4324}
4325_ACEOF
4326rm -f conftest.$ac_objext
4327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 4328 (eval $ac_compile) 2>conftest.er1
6a161fa9 4329 ac_status=$?
924b6140 4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
6a161fa9 4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4801580b 4335 { ac_try='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
924b6140 4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try='test -s conftest.$ac_objext'
6a161fa9 4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
98d15063 4348 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6a161fa9 4349 ac_cv_c_bigendian=yes
4350fi
98d15063 4351if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6a161fa9 4352 if test "$ac_cv_c_bigendian" = unknown; then
4353 ac_cv_c_bigendian=no
4354 else
4355 # finding both strings is unlikely to happen, but who knows?
4356 ac_cv_c_bigendian=unknown
4357 fi
4358fi
4359else
4360 echo "$as_me: failed program was:" >&5
98d15063 4361sed 's/^/| /' conftest.$ac_ext >&5
4362
6a161fa9 4363fi
924b6140 4364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 4365else
4366 cat >conftest.$ac_ext <<_ACEOF
98d15063 4367/* confdefs.h. */
4368_ACEOF
4369cat confdefs.h >>conftest.$ac_ext
4370cat >>conftest.$ac_ext <<_ACEOF
4371/* end confdefs.h. */
6a161fa9 4372int
4373main ()
4374{
4375 /* Are we little or big endian? From Harbison&Steele. */
4376 union
4377 {
4378 long l;
4379 char c[sizeof (long)];
4380 } u;
4381 u.l = 1;
4382 exit (u.c[sizeof (long) - 1] == 1);
4383}
4384_ACEOF
4385rm -f conftest$ac_exeext
4386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4387 (eval $ac_link) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 ac_cv_c_bigendian=no
4397else
4398 echo "$as_me: program exited with status $ac_status" >&5
4399echo "$as_me: failed program was:" >&5
98d15063 4400sed 's/^/| /' conftest.$ac_ext >&5
4401
6a161fa9 4402( exit $ac_status )
4403ac_cv_c_bigendian=yes
4404fi
924b6140 4405rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6a161fa9 4406fi
4407fi
924b6140 4408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 4409fi
4410echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4411echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4412case $ac_cv_c_bigendian in
4413 yes)
4414
4415cat >>confdefs.h <<\_ACEOF
4416#define WORDS_BIGENDIAN 1
4417_ACEOF
4418 ;;
4419 no)
4420 ;;
4421 *)
98d15063 4422 { { echo "$as_me:$LINENO: error: unknown endianness
6a161fa9 4423presetting ac_cv_c_bigendian=no (or yes) will help" >&5
98d15063 4424echo "$as_me: error: unknown endianness
6a161fa9 4425presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4426 { (exit 1); exit 1; }; } ;;
4427esac
4428
4429ac_ext=c
4430ac_cpp='$CPP $CPPFLAGS'
4431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4435echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4436# On Suns, sometimes $CPP names a directory.
4437if test -n "$CPP" && test -d "$CPP"; then
4438 CPP=
4439fi
4440if test -z "$CPP"; then
4441 if test "${ac_cv_prog_CPP+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444 # Double quotes because CPP needs to be expanded
4445 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4446 do
4447 ac_preproc_ok=false
4448for ac_c_preproc_warn_flag in '' yes
4449do
4450 # Use a header file that comes with gcc, so configuring glibc
4451 # with a fresh cross-compiler works.
98d15063 4452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4453 # <limits.h> exists even on freestanding compilers.
6a161fa9 4454 # On the NeXT, cc -E runs the code through the compiler's parser,
4455 # not just through cpp. "Syntax error" is here to catch this case.
4456 cat >conftest.$ac_ext <<_ACEOF
98d15063 4457/* confdefs.h. */
4458_ACEOF
4459cat confdefs.h >>conftest.$ac_ext
4460cat >>conftest.$ac_ext <<_ACEOF
4461/* end confdefs.h. */
4462#ifdef __STDC__
4463# include <limits.h>
4464#else
4465# include <assert.h>
4466#endif
924b6140 4467 Syntax error
6a161fa9 4468_ACEOF
4469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4471 ac_status=$?
98d15063 4472 grep -v '^ *+' conftest.er1 >conftest.err
6a161fa9 4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } >/dev/null; then
4477 if test -s conftest.err; then
4478 ac_cpp_err=$ac_c_preproc_warn_flag
924b6140 4479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6a161fa9 4480 else
4481 ac_cpp_err=
4482 fi
4483else
4484 ac_cpp_err=yes
4485fi
4486if test -z "$ac_cpp_err"; then
4487 :
4488else
4489 echo "$as_me: failed program was:" >&5
98d15063 4490sed 's/^/| /' conftest.$ac_ext >&5
4491
6a161fa9 4492 # Broken: fails on valid input.
4493continue
4494fi
4495rm -f conftest.err conftest.$ac_ext
4496
4497 # OK, works on sane cases. Now check whether non-existent headers
4498 # can be detected and how.
4499 cat >conftest.$ac_ext <<_ACEOF
98d15063 4500/* confdefs.h. */
4501_ACEOF
4502cat confdefs.h >>conftest.$ac_ext
4503cat >>conftest.$ac_ext <<_ACEOF
4504/* end confdefs.h. */
6a161fa9 4505#include <ac_nonexistent.h>
4506_ACEOF
4507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4509 ac_status=$?
98d15063 4510 grep -v '^ *+' conftest.er1 >conftest.err
6a161fa9 4511 rm -f conftest.er1
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } >/dev/null; then
4515 if test -s conftest.err; then
4516 ac_cpp_err=$ac_c_preproc_warn_flag
924b6140 4517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6a161fa9 4518 else
4519 ac_cpp_err=
4520 fi
4521else
4522 ac_cpp_err=yes
4523fi
4524if test -z "$ac_cpp_err"; then
4525 # Broken: success on invalid input.
4526continue
4527else
4528 echo "$as_me: failed program was:" >&5
98d15063 4529sed 's/^/| /' conftest.$ac_ext >&5
4530
6a161fa9 4531 # Passes both tests.
4532ac_preproc_ok=:
4533break
4534fi
4535rm -f conftest.err conftest.$ac_ext
4536
4537done
4538# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4539rm -f conftest.err conftest.$ac_ext
4540if $ac_preproc_ok; then
4541 break
4542fi
4543
4544 done
4545 ac_cv_prog_CPP=$CPP
4546
4547fi
4548 CPP=$ac_cv_prog_CPP
4549else
4550 ac_cv_prog_CPP=$CPP
4551fi
4552echo "$as_me:$LINENO: result: $CPP" >&5
4553echo "${ECHO_T}$CPP" >&6
4554ac_preproc_ok=false
4555for ac_c_preproc_warn_flag in '' yes
4556do
4557 # Use a header file that comes with gcc, so configuring glibc
4558 # with a fresh cross-compiler works.
98d15063 4559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4560 # <limits.h> exists even on freestanding compilers.
6a161fa9 4561 # On the NeXT, cc -E runs the code through the compiler's parser,
4562 # not just through cpp. "Syntax error" is here to catch this case.
4563 cat >conftest.$ac_ext <<_ACEOF
98d15063 4564/* confdefs.h. */
4565_ACEOF
4566cat confdefs.h >>conftest.$ac_ext
4567cat >>conftest.$ac_ext <<_ACEOF
4568/* end confdefs.h. */
4569#ifdef __STDC__
4570# include <limits.h>
4571#else
4572# include <assert.h>
4573#endif
924b6140 4574 Syntax error
6a161fa9 4575_ACEOF
4576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4578 ac_status=$?
98d15063 4579 grep -v '^ *+' conftest.er1 >conftest.err
6a161fa9 4580 rm -f conftest.er1
4581 cat conftest.err >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } >/dev/null; then
4584 if test -s conftest.err; then
4585 ac_cpp_err=$ac_c_preproc_warn_flag
924b6140 4586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6a161fa9 4587 else
4588 ac_cpp_err=
4589 fi
4590else
4591 ac_cpp_err=yes
4592fi
4593if test -z "$ac_cpp_err"; then
4594 :
4595else
4596 echo "$as_me: failed program was:" >&5
98d15063 4597sed 's/^/| /' conftest.$ac_ext >&5
4598
6a161fa9 4599 # Broken: fails on valid input.
4600continue
4601fi
4602rm -f conftest.err conftest.$ac_ext
4603
4604 # OK, works on sane cases. Now check whether non-existent headers
4605 # can be detected and how.
4606 cat >conftest.$ac_ext <<_ACEOF
98d15063 4607/* confdefs.h. */
4608_ACEOF
4609cat confdefs.h >>conftest.$ac_ext
4610cat >>conftest.$ac_ext <<_ACEOF
4611/* end confdefs.h. */
6a161fa9 4612#include <ac_nonexistent.h>
4613_ACEOF
4614if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4616 ac_status=$?
98d15063 4617 grep -v '^ *+' conftest.er1 >conftest.err
6a161fa9 4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } >/dev/null; then
4622 if test -s conftest.err; then
4623 ac_cpp_err=$ac_c_preproc_warn_flag
924b6140 4624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6a161fa9 4625 else
4626 ac_cpp_err=
4627 fi
4628else
4629 ac_cpp_err=yes
4630fi
4631if test -z "$ac_cpp_err"; then
4632 # Broken: success on invalid input.
4633continue
4634else
4635 echo "$as_me: failed program was:" >&5
98d15063 4636sed 's/^/| /' conftest.$ac_ext >&5
4637
6a161fa9 4638 # Passes both tests.
4639ac_preproc_ok=:
4640break
4641fi
4642rm -f conftest.err conftest.$ac_ext
4643
4644done
4645# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4646rm -f conftest.err conftest.$ac_ext
4647if $ac_preproc_ok; then
4648 :
4649else
98d15063 4650 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4651See \`config.log' for more details." >&5
4652echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4653See \`config.log' for more details." >&2;}
6a161fa9 4654 { (exit 1); exit 1; }; }
4655fi
4656
4657ac_ext=c
4658ac_cpp='$CPP $CPPFLAGS'
4659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662
4663
98d15063 4664echo "$as_me:$LINENO: checking for egrep" >&5
4665echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4666if test "${ac_cv_prog_egrep+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668else
4669 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4670 then ac_cv_prog_egrep='grep -E'
4671 else ac_cv_prog_egrep='egrep'
4672 fi
4673fi
4674echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4675echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4676 EGREP=$ac_cv_prog_egrep
4677
4678
6a161fa9 4679echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4680echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4681if test "${ac_cv_header_stdc+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684 cat >conftest.$ac_ext <<_ACEOF
98d15063 4685/* confdefs.h. */
4686_ACEOF
4687cat confdefs.h >>conftest.$ac_ext
4688cat >>conftest.$ac_ext <<_ACEOF
4689/* end confdefs.h. */
6a161fa9 4690#include <stdlib.h>
4691#include <stdarg.h>
4692#include <string.h>
4693#include <float.h>
4694
98d15063 4695int
4696main ()
4697{
4698
4699 ;
4700 return 0;
4701}
6a161fa9 4702_ACEOF
98d15063 4703rm -f conftest.$ac_objext
4704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 4705 (eval $ac_compile) 2>conftest.er1
6a161fa9 4706 ac_status=$?
924b6140 4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
6a161fa9 4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98d15063 4711 (exit $ac_status); } &&
4801580b 4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
924b6140 4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest.$ac_objext'
98d15063 4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
6a161fa9 4725 ac_cv_header_stdc=yes
4726else
4727 echo "$as_me: failed program was:" >&5
98d15063 4728sed 's/^/| /' conftest.$ac_ext >&5
4729
4730ac_cv_header_stdc=no
6a161fa9 4731fi
924b6140 4732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 4733
4734if test $ac_cv_header_stdc = yes; then
4735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4736 cat >conftest.$ac_ext <<_ACEOF
98d15063 4737/* confdefs.h. */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h. */
6a161fa9 4742#include <string.h>
4743
4744_ACEOF
4745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
98d15063 4746 $EGREP "memchr" >/dev/null 2>&1; then
6a161fa9 4747 :
4748else
4749 ac_cv_header_stdc=no
4750fi
4751rm -f conftest*
4752
4753fi
4754
4755if test $ac_cv_header_stdc = yes; then
4756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4757 cat >conftest.$ac_ext <<_ACEOF
98d15063 4758/* confdefs.h. */
4759_ACEOF
4760cat confdefs.h >>conftest.$ac_ext
4761cat >>conftest.$ac_ext <<_ACEOF
4762/* end confdefs.h. */
6a161fa9 4763#include <stdlib.h>
4764
4765_ACEOF
4766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
98d15063 4767 $EGREP "free" >/dev/null 2>&1; then
6a161fa9 4768 :
4769else
4770 ac_cv_header_stdc=no
4771fi
4772rm -f conftest*
4773
4774fi
4775
4776if test $ac_cv_header_stdc = yes; then
4777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4778 if test "$cross_compiling" = yes; then
4779 :
4780else
4781 cat >conftest.$ac_ext <<_ACEOF
98d15063 4782/* confdefs.h. */
4783_ACEOF
4784cat confdefs.h >>conftest.$ac_ext
4785cat >>conftest.$ac_ext <<_ACEOF
4786/* end confdefs.h. */
6a161fa9 4787#include <ctype.h>
4788#if ((' ' & 0x0FF) == 0x020)
4789# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4790# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4791#else
98d15063 4792# define ISLOWER(c) \
924b6140 4793 (('a' <= (c) && (c) <= 'i') \
4794 || ('j' <= (c) && (c) <= 'r') \
4795 || ('s' <= (c) && (c) <= 'z'))
6a161fa9 4796# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4797#endif
4798
4799#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4800int
4801main ()
4802{
4803 int i;
4804 for (i = 0; i < 256; i++)
4805 if (XOR (islower (i), ISLOWER (i))
924b6140 4806 || toupper (i) != TOUPPER (i))
6a161fa9 4807 exit(2);
4808 exit (0);
4809}
4810_ACEOF
4811rm -f conftest$ac_exeext
4812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813 (eval $ac_link) 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 (eval $ac_try) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 :
4823else
4824 echo "$as_me: program exited with status $ac_status" >&5
4825echo "$as_me: failed program was:" >&5
98d15063 4826sed 's/^/| /' conftest.$ac_ext >&5
4827
6a161fa9 4828( exit $ac_status )
4829ac_cv_header_stdc=no
4830fi
924b6140 4831rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6a161fa9 4832fi
4833fi
4834fi
4835echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4836echo "${ECHO_T}$ac_cv_header_stdc" >&6
4837if test $ac_cv_header_stdc = yes; then
4838
4839cat >>confdefs.h <<\_ACEOF
4840#define STDC_HEADERS 1
4841_ACEOF
4842
4843fi
4844
4845# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
924b6140 4856 inttypes.h stdint.h unistd.h
6a161fa9 4857do
4858as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4859echo "$as_me:$LINENO: checking for $ac_header" >&5
4860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4861if eval "test \"\${$as_ac_Header+set}\" = set"; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864 cat >conftest.$ac_ext <<_ACEOF
98d15063 4865/* confdefs.h. */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h. */
6a161fa9 4870$ac_includes_default
4871
4872#include <$ac_header>
4873_ACEOF
4874rm -f conftest.$ac_objext
4875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 4876 (eval $ac_compile) 2>conftest.er1
6a161fa9 4877 ac_status=$?
924b6140 4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
6a161fa9 4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4801580b 4883 { ac_try='test -z "$ac_c_werror_flag"
4884 || test ! -s conftest.err'
924b6140 4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 (eval $ac_try) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; } &&
4890 { ac_try='test -s conftest.$ac_objext'
6a161fa9 4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 eval "$as_ac_Header=yes"
4897else
4898 echo "$as_me: failed program was:" >&5
98d15063 4899sed 's/^/| /' conftest.$ac_ext >&5
4900
6a161fa9 4901eval "$as_ac_Header=no"
4902fi
924b6140 4903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 4904fi
4905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4907if test `eval echo '${'$as_ac_Header'}'` = yes; then
4908 cat >>confdefs.h <<_ACEOF
4909#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4910_ACEOF
4911
4912fi
4913
4914done
4915
4916
4917echo "$as_me:$LINENO: checking for void *" >&5
4918echo $ECHO_N "checking for void *... $ECHO_C" >&6
4919if test "${ac_cv_type_void_p+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4921else
4922 cat >conftest.$ac_ext <<_ACEOF
98d15063 4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
6a161fa9 4928$ac_includes_default
6a161fa9 4929int
4930main ()
4931{
4932if ((void * *) 0)
4933 return 0;
4934if (sizeof (void *))
4935 return 0;
4936 ;
4937 return 0;
4938}
4939_ACEOF
4940rm -f conftest.$ac_objext
4941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 4942 (eval $ac_compile) 2>conftest.er1
6a161fa9 4943 ac_status=$?
924b6140 4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
6a161fa9 4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4801580b 4949 { ac_try='test -z "$ac_c_werror_flag"
4950 || test ! -s conftest.err'
924b6140 4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; } &&
4956 { ac_try='test -s conftest.$ac_objext'
6a161fa9 4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_cv_type_void_p=yes
4963else
4964 echo "$as_me: failed program was:" >&5
98d15063 4965sed 's/^/| /' conftest.$ac_ext >&5
4966
6a161fa9 4967ac_cv_type_void_p=no
4968fi
924b6140 4969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 4970fi
4971echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4972echo "${ECHO_T}$ac_cv_type_void_p" >&6
4973
4974echo "$as_me:$LINENO: checking size of void *" >&5
4975echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4976if test "${ac_cv_sizeof_void_p+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978else
4979 if test "$ac_cv_type_void_p" = yes; then
4980 # The cast to unsigned long works around a bug in the HP C Compiler
4981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4983 # This bug is HP SR number 8606223364.
4984 if test "$cross_compiling" = yes; then
4985 # Depending upon the size, compute the lo and hi bounds.
4986cat >conftest.$ac_ext <<_ACEOF
98d15063 4987/* confdefs.h. */
4988_ACEOF
4989cat confdefs.h >>conftest.$ac_ext
4990cat >>conftest.$ac_ext <<_ACEOF
4991/* end confdefs.h. */
6a161fa9 4992$ac_includes_default
6a161fa9 4993int
4994main ()
4995{
4996static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4997test_array [0] = 0
4998
4999 ;
5000 return 0;
5001}
5002_ACEOF
5003rm -f conftest.$ac_objext
5004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 5005 (eval $ac_compile) 2>conftest.er1
6a161fa9 5006 ac_status=$?
924b6140 5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
6a161fa9 5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
4801580b 5012 { ac_try='test -z "$ac_c_werror_flag"
5013 || test ! -s conftest.err'
924b6140 5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try='test -s conftest.$ac_objext'
6a161fa9 5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 ac_lo=0 ac_mid=0
5026 while :; do
5027 cat >conftest.$ac_ext <<_ACEOF
98d15063 5028/* confdefs.h. */
5029_ACEOF
5030cat confdefs.h >>conftest.$ac_ext
5031cat >>conftest.$ac_ext <<_ACEOF
5032/* end confdefs.h. */
6a161fa9 5033$ac_includes_default
6a161fa9 5034int
5035main ()
5036{
5037static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5038test_array [0] = 0
5039
5040 ;
5041 return 0;
5042}
5043_ACEOF
5044rm -f conftest.$ac_objext
5045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 5046 (eval $ac_compile) 2>conftest.er1
6a161fa9 5047 ac_status=$?
924b6140 5048 grep -v '^ *+' conftest.er1 >conftest.err
5049 rm -f conftest.er1
5050 cat conftest.err >&5
6a161fa9 5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } &&
4801580b 5053 { ac_try='test -z "$ac_c_werror_flag"
5054 || test ! -s conftest.err'
924b6140 5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 (eval $ac_try) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; } &&
5060 { ac_try='test -s conftest.$ac_objext'
6a161fa9 5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062 (eval $ac_try) 2>&5
5063 ac_status=$?
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; }; then
5066 ac_hi=$ac_mid; break
5067else
5068 echo "$as_me: failed program was:" >&5
98d15063 5069sed 's/^/| /' conftest.$ac_ext >&5
5070
6a161fa9 5071ac_lo=`expr $ac_mid + 1`
924b6140 5072 if test $ac_lo -le $ac_mid; then
5073 ac_lo= ac_hi=
5074 break
5075 fi
5076 ac_mid=`expr 2 '*' $ac_mid + 1`
6a161fa9 5077fi
924b6140 5078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 5079 done
5080else
5081 echo "$as_me: failed program was:" >&5
98d15063 5082sed 's/^/| /' conftest.$ac_ext >&5
5083
6a161fa9 5084cat >conftest.$ac_ext <<_ACEOF
98d15063 5085/* confdefs.h. */
5086_ACEOF
5087cat confdefs.h >>conftest.$ac_ext
5088cat >>conftest.$ac_ext <<_ACEOF
5089/* end confdefs.h. */
6a161fa9 5090$ac_includes_default
6a161fa9 5091int
5092main ()
5093{
5094static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5095test_array [0] = 0
5096
5097 ;
5098 return 0;
5099}
5100_ACEOF
5101rm -f conftest.$ac_objext
5102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 5103 (eval $ac_compile) 2>conftest.er1
6a161fa9 5104 ac_status=$?
924b6140 5105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
6a161fa9 5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
4801580b 5110 { ac_try='test -z "$ac_c_werror_flag"
5111 || test ! -s conftest.err'
924b6140 5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; } &&
5117 { ac_try='test -s conftest.$ac_objext'
6a161fa9 5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 (eval $ac_try) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_hi=-1 ac_mid=-1
5124 while :; do
5125 cat >conftest.$ac_ext <<_ACEOF
98d15063 5126/* confdefs.h. */
5127_ACEOF
5128cat confdefs.h >>conftest.$ac_ext
5129cat >>conftest.$ac_ext <<_ACEOF
5130/* end confdefs.h. */
6a161fa9 5131$ac_includes_default
6a161fa9 5132int
5133main ()
5134{
5135static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5136test_array [0] = 0
5137
5138 ;
5139 return 0;
5140}
5141_ACEOF
5142rm -f conftest.$ac_objext
5143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 5144 (eval $ac_compile) 2>conftest.er1
6a161fa9 5145 ac_status=$?
924b6140 5146 grep -v '^ *+' conftest.er1 >conftest.err
5147 rm -f conftest.er1
5148 cat conftest.err >&5
6a161fa9 5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } &&
4801580b 5151 { ac_try='test -z "$ac_c_werror_flag"
5152 || test ! -s conftest.err'
924b6140 5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 (eval $ac_try) 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; } &&
5158 { ac_try='test -s conftest.$ac_objext'
6a161fa9 5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 (eval $ac_try) 2>&5
5161 ac_status=$?
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; }; then
5164 ac_lo=$ac_mid; break
5165else
5166 echo "$as_me: failed program was:" >&5
98d15063 5167sed 's/^/| /' conftest.$ac_ext >&5
5168
6a161fa9 5169ac_hi=`expr '(' $ac_mid ')' - 1`
924b6140 5170 if test $ac_mid -le $ac_hi; then
5171 ac_lo= ac_hi=
5172 break
5173 fi
5174 ac_mid=`expr 2 '*' $ac_mid`
6a161fa9 5175fi
924b6140 5176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 5177 done
5178else
5179 echo "$as_me: failed program was:" >&5
98d15063 5180sed 's/^/| /' conftest.$ac_ext >&5
5181
6a161fa9 5182ac_lo= ac_hi=
5183fi
924b6140 5184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 5185fi
924b6140 5186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 5187# Binary search between lo and hi bounds.
5188while test "x$ac_lo" != "x$ac_hi"; do
5189 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5190 cat >conftest.$ac_ext <<_ACEOF
98d15063 5191/* confdefs.h. */
5192_ACEOF
5193cat confdefs.h >>conftest.$ac_ext
5194cat >>conftest.$ac_ext <<_ACEOF
5195/* end confdefs.h. */
6a161fa9 5196$ac_includes_default
6a161fa9 5197int
5198main ()
5199{
5200static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5201test_array [0] = 0
5202
5203 ;
5204 return 0;
5205}
5206_ACEOF
5207rm -f conftest.$ac_objext
5208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 5209 (eval $ac_compile) 2>conftest.er1
6a161fa9 5210 ac_status=$?
924b6140 5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
6a161fa9 5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } &&
4801580b 5216 { ac_try='test -z "$ac_c_werror_flag"
5217 || test ! -s conftest.err'
924b6140 5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; } &&
5223 { ac_try='test -s conftest.$ac_objext'
6a161fa9 5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 ac_hi=$ac_mid
5230else
5231 echo "$as_me: failed program was:" >&5
98d15063 5232sed 's/^/| /' conftest.$ac_ext >&5
5233
6a161fa9 5234ac_lo=`expr '(' $ac_mid ')' + 1`
5235fi
924b6140 5236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 5237done
5238case $ac_lo in
5239?*) ac_cv_sizeof_void_p=$ac_lo;;
98d15063 5240'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5241See \`config.log' for more details." >&5
5242echo "$as_me: error: cannot compute sizeof (void *), 77
5243See \`config.log' for more details." >&2;}
6a161fa9 5244 { (exit 1); exit 1; }; } ;;
5245esac
5246else
5247 if test "$cross_compiling" = yes; then
4801580b 5248 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5249See \`config.log' for more details." >&5
5250echo "$as_me: error: cannot run test program while cross compiling
5251See \`config.log' for more details." >&2;}
6a161fa9 5252 { (exit 1); exit 1; }; }
5253else
5254 cat >conftest.$ac_ext <<_ACEOF
98d15063 5255/* confdefs.h. */
5256_ACEOF
5257cat confdefs.h >>conftest.$ac_ext
5258cat >>conftest.$ac_ext <<_ACEOF
5259/* end confdefs.h. */
6a161fa9 5260$ac_includes_default
5261long longval () { return (long) (sizeof (void *)); }
5262unsigned long ulongval () { return (long) (sizeof (void *)); }
5263#include <stdio.h>
5264#include <stdlib.h>
6a161fa9 5265int
5266main ()
5267{
5268
5269 FILE *f = fopen ("conftest.val", "w");
5270 if (! f)
5271 exit (1);
5272 if (((long) (sizeof (void *))) < 0)
5273 {
5274 long i = longval ();
5275 if (i != ((long) (sizeof (void *))))
5276 exit (1);
5277 fprintf (f, "%ld\n", i);
5278 }
5279 else
5280 {
5281 unsigned long i = ulongval ();
5282 if (i != ((long) (sizeof (void *))))
5283 exit (1);
5284 fprintf (f, "%lu\n", i);
5285 }
5286 exit (ferror (f) || fclose (f) != 0);
5287
5288 ;
5289 return 0;
5290}
5291_ACEOF
5292rm -f conftest$ac_exeext
5293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5294 (eval $ac_link) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_cv_sizeof_void_p=`cat conftest.val`
5304else
5305 echo "$as_me: program exited with status $ac_status" >&5
5306echo "$as_me: failed program was:" >&5
98d15063 5307sed 's/^/| /' conftest.$ac_ext >&5
5308
6a161fa9 5309( exit $ac_status )
98d15063 5310{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5311See \`config.log' for more details." >&5
5312echo "$as_me: error: cannot compute sizeof (void *), 77
5313See \`config.log' for more details." >&2;}
6a161fa9 5314 { (exit 1); exit 1; }; }
5315fi
924b6140 5316rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6a161fa9 5317fi
5318fi
5319rm -f conftest.val
5320else
5321 ac_cv_sizeof_void_p=0
5322fi
5323fi
5324echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5325echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5326cat >>confdefs.h <<_ACEOF
5327#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5328_ACEOF
5329
5330
5331echo "$as_me:$LINENO: checking for long" >&5
5332echo $ECHO_N "checking for long... $ECHO_C" >&6
5333if test "${ac_cv_type_long+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335else
5336 cat >conftest.$ac_ext <<_ACEOF
98d15063 5337/* confdefs.h. */
5338_ACEOF
5339cat confdefs.h >>conftest.$ac_ext
5340cat >>conftest.$ac_ext <<_ACEOF
5341/* end confdefs.h. */
6a161fa9 5342$ac_includes_default
6a161fa9 5343int
5344main ()
5345{
5346if ((long *) 0)
5347 return 0;
5348if (sizeof (long))
5349 return 0;
5350 ;
5351 return 0;
5352}
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 5356 (eval $ac_compile) 2>conftest.er1
6a161fa9 5357 ac_status=$?
924b6140 5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
6a161fa9 5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
4801580b 5363 { ac_try='test -z "$ac_c_werror_flag"
5364 || test ! -s conftest.err'
924b6140 5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
6a161fa9 5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 ac_cv_type_long=yes
5377else
5378 echo "$as_me: failed program was:" >&5
98d15063 5379sed 's/^/| /' conftest.$ac_ext >&5
5380
6a161fa9 5381ac_cv_type_long=no
5382fi
924b6140 5383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 5384fi
5385echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5386echo "${ECHO_T}$ac_cv_type_long" >&6
5387
5388echo "$as_me:$LINENO: checking size of long" >&5
5389echo $ECHO_N "checking size of long... $ECHO_C" >&6
5390if test "${ac_cv_sizeof_long+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392else
5393 if test "$ac_cv_type_long" = yes; then
5394 # The cast to unsigned long works around a bug in the HP C Compiler
5395 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5396 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5397 # This bug is HP SR number 8606223364.
5398 if test "$cross_compiling" = yes; then
5399 # Depending upon the size, compute the lo and hi bounds.
5400cat >conftest.$ac_ext <<_ACEOF
98d15063 5401/* confdefs.h. */
5402_ACEOF
5403cat confdefs.h >>conftest.$ac_ext
5404cat >>conftest.$ac_ext <<_ACEOF
5405/* end confdefs.h. */
6a161fa9 5406$ac_includes_default
6a161fa9 5407int
5408main ()
5409{
5410static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5411test_array [0] = 0
5412
5413 ;
5414 return 0;
5415}
5416_ACEOF
5417rm -f conftest.$ac_objext
5418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 5419 (eval $ac_compile) 2>conftest.er1
6a161fa9 5420 ac_status=$?
924b6140 5421 grep -v '^ *+' conftest.er1 >conftest.err
5422 rm -f conftest.er1
5423 cat conftest.err >&5
6a161fa9 5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
4801580b 5426 { ac_try='test -z "$ac_c_werror_flag"
5427 || test ! -s conftest.err'
924b6140 5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 (eval $ac_try) 2>&5
5430 ac_status=$?
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; } &&
5433 { ac_try='test -s conftest.$ac_objext'
6a161fa9 5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_lo=0 ac_mid=0
5440 while :; do
5441 cat >conftest.$ac_ext <<_ACEOF
98d15063 5442/* confdefs.h. */
5443_ACEOF
5444cat confdefs.h >>conftest.$ac_ext
5445cat >>conftest.$ac_ext <<_ACEOF
5446/* end confdefs.h. */
6a161fa9 5447$ac_includes_default
6a161fa9 5448int
5449main ()
5450{
5451static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5452test_array [0] = 0
5453
5454 ;
5455 return 0;
5456}
5457_ACEOF
5458rm -f conftest.$ac_objext
5459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 5460 (eval $ac_compile) 2>conftest.er1
6a161fa9 5461 ac_status=$?
924b6140 5462 grep -v '^ *+' conftest.er1 >conftest.err
5463 rm -f conftest.er1
5464 cat conftest.err >&5
6a161fa9 5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
4801580b 5467 { ac_try='test -z "$ac_c_werror_flag"
5468 || test ! -s conftest.err'
924b6140 5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 (eval $ac_try) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; } &&
5474 { ac_try='test -s conftest.$ac_objext'
6a161fa9 5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 (eval $ac_try) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; }; then
5480 ac_hi=$ac_mid; break
5481else
5482 echo "$as_me: failed program was:" >&5
98d15063 5483sed 's/^/| /' conftest.$ac_ext >&5
5484
6a161fa9 5485ac_lo=`expr $ac_mid + 1`
924b6140 5486 if test $ac_lo -le $ac_mid; then
5487 ac_lo= ac_hi=
5488 break
5489 fi
5490 ac_mid=`expr 2 '*' $ac_mid + 1`
6a161fa9 5491fi
924b6140 5492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 5493 done
5494else
5495 echo "$as_me: failed program was:" >&5
98d15063 5496sed 's/^/| /' conftest.$ac_ext >&5
5497
6a161fa9 5498cat >conftest.$ac_ext <<_ACEOF
98d15063 5499/* confdefs.h. */
5500_ACEOF
5501cat confdefs.h >>conftest.$ac_ext
5502cat >>conftest.$ac_ext <<_ACEOF
5503/* end confdefs.h. */
6a161fa9 5504$ac_includes_default
6a161fa9 5505int
5506main ()
5507{
5508static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5509test_array [0] = 0
5510
5511 ;
5512 return 0;
5513}
5514_ACEOF
5515rm -f conftest.$ac_objext
5516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 5517 (eval $ac_compile) 2>conftest.er1
6a161fa9 5518 ac_status=$?
924b6140 5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
6a161fa9 5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
4801580b 5524 { ac_try='test -z "$ac_c_werror_flag"
5525 || test ! -s conftest.err'
924b6140 5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 (eval $ac_try) 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; } &&
5531 { ac_try='test -s conftest.$ac_objext'
6a161fa9 5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; }; then
5537 ac_hi=-1 ac_mid=-1
5538 while :; do
5539 cat >conftest.$ac_ext <<_ACEOF
98d15063 5540/* confdefs.h. */
5541_ACEOF
5542cat confdefs.h >>conftest.$ac_ext
5543cat >>conftest.$ac_ext <<_ACEOF
5544/* end confdefs.h. */
6a161fa9 5545$ac_includes_default
6a161fa9 5546int
5547main ()
5548{
5549static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5550test_array [0] = 0
5551
5552 ;
5553 return 0;
5554}
5555_ACEOF
5556rm -f conftest.$ac_objext
5557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 5558 (eval $ac_compile) 2>conftest.er1
6a161fa9 5559 ac_status=$?
924b6140 5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
6a161fa9 5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
4801580b 5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
924b6140 5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
6a161fa9 5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 ac_lo=$ac_mid; break
5579else
5580 echo "$as_me: failed program was:" >&5
98d15063 5581sed 's/^/| /' conftest.$ac_ext >&5
5582
6a161fa9 5583ac_hi=`expr '(' $ac_mid ')' - 1`
924b6140 5584 if test $ac_mid -le $ac_hi; then
5585 ac_lo= ac_hi=
5586 break
5587 fi
5588 ac_mid=`expr 2 '*' $ac_mid`
6a161fa9 5589fi
924b6140 5590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 5591 done
5592else
5593 echo "$as_me: failed program was:" >&5
98d15063 5594sed 's/^/| /' conftest.$ac_ext >&5
5595
6a161fa9 5596ac_lo= ac_hi=
5597fi
924b6140 5598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 5599fi
924b6140 5600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 5601# Binary search between lo and hi bounds.
5602while test "x$ac_lo" != "x$ac_hi"; do
5603 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5604 cat >conftest.$ac_ext <<_ACEOF
98d15063 5605/* confdefs.h. */
5606_ACEOF
5607cat confdefs.h >>conftest.$ac_ext
5608cat >>conftest.$ac_ext <<_ACEOF
5609/* end confdefs.h. */
6a161fa9 5610$ac_includes_default
6a161fa9 5611int
5612main ()
5613{
5614static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5615test_array [0] = 0
5616
5617 ;
5618 return 0;
5619}
5620_ACEOF
5621rm -f conftest.$ac_objext
5622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
924b6140 5623 (eval $ac_compile) 2>conftest.er1
6a161fa9 5624 ac_status=$?
924b6140 5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
6a161fa9 5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } &&
4801580b 5630 { ac_try='test -z "$ac_c_werror_flag"
5631 || test ! -s conftest.err'
924b6140 5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 (eval $ac_try) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; } &&
5637 { ac_try='test -s conftest.$ac_objext'
6a161fa9 5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 (eval $ac_try) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; }; then
5643 ac_hi=$ac_mid
5644else
5645 echo "$as_me: failed program was:" >&5
98d15063 5646sed 's/^/| /' conftest.$ac_ext >&5
5647
6a161fa9 5648ac_lo=`expr '(' $ac_mid ')' + 1`
5649fi
924b6140 5650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6a161fa9 5651done
5652case $ac_lo in
5653?*) ac_cv_sizeof_long=$ac_lo;;
98d15063 5654'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5655See \`config.log' for more details." >&5
5656echo "$as_me: error: cannot compute sizeof (long), 77
5657See \`config.log' for more details." >&2;}
6a161fa9 5658 { (exit 1); exit 1; }; } ;;
5659esac
5660else
5661 if test "$cross_compiling" = yes; then
4801580b 5662 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5663See \`config.log' for more details." >&5
5664echo "$as_me: error: cannot run test program while cross compiling
5665See \`config.log' for more details." >&2;}
6a161fa9 5666 { (exit 1); exit 1; }; }
5667else
5668 cat >conftest.$ac_ext <<_ACEOF
98d15063 5669/* confdefs.h. */
5670_ACEOF
5671cat confdefs.h >>conftest.$ac_ext
5672cat >>conftest.$ac_ext <<_ACEOF
5673/* end confdefs.h. */
6a161fa9 5674$ac_includes_default
5675long longval () { return (long) (sizeof (long)); }
5676unsigned long ulongval () { return (long) (sizeof (long)); }
5677#include <stdio.h>
5678#include <stdlib.h>
6a161fa9 5679int
5680main ()
5681{
5682
5683 FILE *f = fopen ("conftest.val", "w");
5684 if (! f)
5685 exit (1);
5686 if (((long) (sizeof (long))) < 0)
5687 {
5688 long i = longval ();
5689 if (i != ((long) (sizeof (long))))
5690 exit (1);
5691 fprintf (f, "%ld\n", i);
5692 }
5693 else
5694 {
5695 unsigned long i = ulongval ();
5696 if (i != ((long) (sizeof (long))))
5697 exit (1);
5698 fprintf (f, "%lu\n", i);
5699 }
5700 exit (ferror (f) || fclose (f) != 0);
5701
5702 ;
5703 return 0;
5704}
5705_ACEOF
5706rm -f conftest$ac_exeext
5707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5708 (eval $ac_link) 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_sizeof_long=`cat conftest.val`
5718else
5719 echo "$as_me: program exited with status $ac_status" >&5
5720echo "$as_me: failed program was:" >&5
98d15063 5721sed 's/^/| /' conftest.$ac_ext >&5
5722
6a161fa9 5723( exit $ac_status )
98d15063 5724{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5725See \`config.log' for more details." >&5
5726echo "$as_me: error: cannot compute sizeof (long), 77
5727See \`config.log' for more details." >&2;}
6a161fa9 5728 { (exit 1); exit 1; }; }
5729fi
924b6140 5730rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6a161fa9 5731fi
5732fi
5733rm -f conftest.val
5734else
5735 ac_cv_sizeof_long=0
5736fi
5737fi
5738echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5739echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5740cat >>confdefs.h <<_ACEOF
5741#define SIZEOF_LONG $ac_cv_sizeof_long
5742_ACEOF
5743
5744
1f5ab428 5745
e56cdf21 5746# Check LZO when compiling for the i386.
5747if test "x$host_cpu" = xi386; then
4ac9bd04 5748 # There are three possibilities. LZO version 2 installed with the name
5749 # liblzo2, with the name liblzo, and LZO version 1.
5750 echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5751echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6
5752if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754else
5755 ac_check_lib_save_LIBS=$LIBS
5756LIBS="-llzo2 $LIBS"
5757cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h. */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h. */
5763
5764/* Override any gcc2 internal prototype to avoid an error. */
5765#ifdef __cplusplus
5766extern "C"
5767#endif
5768/* We use char because int might match the return type of a gcc2
5769 builtin and then its argument prototype would still apply. */
5770char __lzo_init_v2 ();
5771int
5772main ()
5773{
5774__lzo_init_v2 ();
5775 ;
5776 return 0;
5777}
5778_ACEOF
5779rm -f conftest.$ac_objext conftest$ac_exeext
5780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>conftest.er1
5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
4801580b 5788 { ac_try='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
4ac9bd04 5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try='test -s conftest$ac_exeext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_lib_lzo2___lzo_init_v2=yes
5802else
5803 echo "$as_me: failed program was:" >&5
5804sed 's/^/| /' conftest.$ac_ext >&5
5805
5806ac_cv_lib_lzo2___lzo_init_v2=no
5807fi
5808rm -f conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext conftest.$ac_ext
5810LIBS=$ac_check_lib_save_LIBS
5811fi
5812echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5813echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6
5814if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5815 LIBLZO="-llzo2"
5816else
5817 echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5818echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6
5819if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821else
5822 ac_check_lib_save_LIBS=$LIBS
5823LIBS="-llzo $LIBS"
5824cat >conftest.$ac_ext <<_ACEOF
5825/* confdefs.h. */
5826_ACEOF
5827cat confdefs.h >>conftest.$ac_ext
5828cat >>conftest.$ac_ext <<_ACEOF
5829/* end confdefs.h. */
1f5ab428 5830
4ac9bd04 5831/* Override any gcc2 internal prototype to avoid an error. */
5832#ifdef __cplusplus
5833extern "C"
5834#endif
5835/* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */
5837char __lzo_init_v2 ();
5838int
5839main ()
5840{
5841__lzo_init_v2 ();
5842 ;
5843 return 0;
5844}
5845_ACEOF
5846rm -f conftest.$ac_objext conftest$ac_exeext
5847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848 (eval $ac_link) 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
4801580b 5855 { ac_try='test -z "$ac_c_werror_flag"
5856 || test ! -s conftest.err'
4ac9bd04 5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; } &&
5862 { ac_try='test -s conftest$ac_exeext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_cv_lib_lzo___lzo_init_v2=yes
5869else
5870 echo "$as_me: failed program was:" >&5
5871sed 's/^/| /' conftest.$ac_ext >&5
5872
5873ac_cv_lib_lzo___lzo_init_v2=no
5874fi
5875rm -f conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5877LIBS=$ac_check_lib_save_LIBS
5878fi
5879echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5880echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6
5881if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5882 LIBLZO="-llzo"
5883else
5884 echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
1f5ab428 5885echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6
5886if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889 ac_check_lib_save_LIBS=$LIBS
5890LIBS="-llzo $LIBS"
5891cat >conftest.$ac_ext <<_ACEOF
98d15063 5892/* confdefs.h. */
5893_ACEOF
5894cat confdefs.h >>conftest.$ac_ext
5895cat >>conftest.$ac_ext <<_ACEOF
5896/* end confdefs.h. */
1f5ab428 5897
5898/* Override any gcc2 internal prototype to avoid an error. */
5899#ifdef __cplusplus
5900extern "C"
5901#endif
5902/* We use char because int might match the return type of a gcc2
5903 builtin and then its argument prototype would still apply. */
5904char __lzo_init2 ();
1f5ab428 5905int
5906main ()
5907{
5908__lzo_init2 ();
5909 ;
5910 return 0;
5911}
5912_ACEOF
5913rm -f conftest.$ac_objext conftest$ac_exeext
5914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
924b6140 5915 (eval $ac_link) 2>conftest.er1
1f5ab428 5916 ac_status=$?
924b6140 5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
1f5ab428 5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
4801580b 5922 { ac_try='test -z "$ac_c_werror_flag"
5923 || test ! -s conftest.err'
924b6140 5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest$ac_exeext'
1f5ab428 5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5935 ac_cv_lib_lzo___lzo_init2=yes
5936else
5937 echo "$as_me: failed program was:" >&5
98d15063 5938sed 's/^/| /' conftest.$ac_ext >&5
5939
1f5ab428 5940ac_cv_lib_lzo___lzo_init2=no
5941fi
924b6140 5942rm -f conftest.err conftest.$ac_objext \
5943 conftest$ac_exeext conftest.$ac_ext
1f5ab428 5944LIBS=$ac_check_lib_save_LIBS
5945fi
5946echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5947echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6
5948if test $ac_cv_lib_lzo___lzo_init2 = yes; then
4ac9bd04 5949 LIBLZO="-llzo"
1f5ab428 5950else
5951 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
5952echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
5953 { (exit 1); exit 1; }; }
5954fi
5955
4ac9bd04 5956fi
5957
5958fi
5959
5960
5961 LIBS="$LIBS $LIBLZO"
e56cdf21 5962 echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
1f5ab428 5963echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6
5964if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966else
5967 cat >conftest.$ac_ext <<_ACEOF
98d15063 5968/* confdefs.h. */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
5972/* end confdefs.h. */
924b6140 5973/* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
5974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5975#define lzo1x_999_compress innocuous_lzo1x_999_compress
5976
1f5ab428 5977/* System header to define __stub macros and hopefully few prototypes,
98d15063 5978 which can conflict with char lzo1x_999_compress (); below.
5979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5980 <limits.h> exists even on freestanding compilers. */
924b6140 5981
98d15063 5982#ifdef __STDC__
5983# include <limits.h>
5984#else
5985# include <assert.h>
5986#endif
924b6140 5987
5988#undef lzo1x_999_compress
5989
1f5ab428 5990/* Override any gcc2 internal prototype to avoid an error. */
5991#ifdef __cplusplus
5992extern "C"
98d15063 5993{
1f5ab428 5994#endif
5995/* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
5997char lzo1x_999_compress ();
1f5ab428 5998/* The GNU C library defines this for functions which it implements
5999 to always fail with ENOSYS. Some functions are actually named
6000 something starting with __ and the normal name is an alias. */
6001#if defined (__stub_lzo1x_999_compress) || defined (__stub___lzo1x_999_compress)
6002choke me
6003#else
98d15063 6004char (*f) () = lzo1x_999_compress;
6005#endif
6006#ifdef __cplusplus
6007}
1f5ab428 6008#endif
6009
98d15063 6010int
6011main ()
6012{
6013return f != lzo1x_999_compress;
1f5ab428 6014 ;
6015 return 0;
6016}
6017_ACEOF
6018rm -f conftest.$ac_objext conftest$ac_exeext
6019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
924b6140 6020 (eval $ac_link) 2>conftest.er1
1f5ab428 6021 ac_status=$?
924b6140 6022 grep -v '^ *+' conftest.er1 >conftest.err
6023 rm -f conftest.er1
6024 cat conftest.err >&5
1f5ab428 6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } &&
4801580b 6027 { ac_try='test -z "$ac_c_werror_flag"
6028 || test ! -s conftest.err'
924b6140 6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 (eval $ac_try) 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; } &&
6034 { ac_try='test -s conftest$ac_exeext'
1f5ab428 6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; }; then
6040 ac_cv_func_lzo1x_999_compress=yes
6041else
6042 echo "$as_me: failed program was:" >&5
98d15063 6043sed 's/^/| /' conftest.$ac_ext >&5
6044
1f5ab428 6045ac_cv_func_lzo1x_999_compress=no
6046fi
924b6140 6047rm -f conftest.err conftest.$ac_objext \
6048 conftest$ac_exeext conftest.$ac_ext
1f5ab428 6049fi
6050echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
6051echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6
6052if test $ac_cv_func_lzo1x_999_compress = yes; then
6053 :
6054else
6055 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
6056echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
6057 { (exit 1); exit 1; }; }
6058fi
6059
4ac9bd04 6060
6061 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
6062
6063
6064for ac_header in lzo/lzo1x.h lzo1x.h
6065do
6066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6067if eval "test \"\${$as_ac_Header+set}\" = set"; then
6068 echo "$as_me:$LINENO: checking for $ac_header" >&5
6069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6070if eval "test \"\${$as_ac_Header+set}\" = set"; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072fi
6073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6075else
6076 # Is the header compilable?
6077echo "$as_me:$LINENO: checking $ac_header usability" >&5
6078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6079cat >conftest.$ac_ext <<_ACEOF
6080/* confdefs.h. */
6081_ACEOF
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h. */
6085$ac_includes_default
6086#include <$ac_header>
6087_ACEOF
6088rm -f conftest.$ac_objext
6089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090 (eval $ac_compile) 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } &&
4801580b 6097 { ac_try='test -z "$ac_c_werror_flag"
6098 || test ! -s conftest.err'
4ac9bd04 6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 (eval $ac_try) 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; } &&
6104 { ac_try='test -s conftest.$ac_objext'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6110 ac_header_compiler=yes
6111else
6112 echo "$as_me: failed program was:" >&5
6113sed 's/^/| /' conftest.$ac_ext >&5
6114
6115ac_header_compiler=no
6116fi
6117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6119echo "${ECHO_T}$ac_header_compiler" >&6
6120
6121# Is the header present?
6122echo "$as_me:$LINENO: checking $ac_header presence" >&5
6123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6124cat >conftest.$ac_ext <<_ACEOF
6125/* confdefs.h. */
6126_ACEOF
6127cat confdefs.h >>conftest.$ac_ext
6128cat >>conftest.$ac_ext <<_ACEOF
6129/* end confdefs.h. */
6130#include <$ac_header>
6131_ACEOF
6132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } >/dev/null; then
6140 if test -s conftest.err; then
6141 ac_cpp_err=$ac_c_preproc_warn_flag
6142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6143 else
6144 ac_cpp_err=
6145 fi
6146else
6147 ac_cpp_err=yes
6148fi
6149if test -z "$ac_cpp_err"; then
6150 ac_header_preproc=yes
6151else
6152 echo "$as_me: failed program was:" >&5
6153sed 's/^/| /' conftest.$ac_ext >&5
6154
6155 ac_header_preproc=no
6156fi
6157rm -f conftest.err conftest.$ac_ext
6158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6159echo "${ECHO_T}$ac_header_preproc" >&6
6160
6161# So? What about this header?
6162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6163 yes:no: )
6164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6168 ac_header_preproc=yes
6169 ;;
6170 no:yes:* )
6171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6183 (
6184 cat <<\_ASBOX
6185## ------------------------------- ##
6186## Report this to bug-grub@gnu.org ##
6187## ------------------------------- ##
6188_ASBOX
6189 ) |
6190 sed "s/^/$as_me: WARNING: /" >&2
6191 ;;
6192esac
6193echo "$as_me:$LINENO: checking for $ac_header" >&5
6194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6195if eval "test \"\${$as_ac_Header+set}\" = set"; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6197else
6198 eval "$as_ac_Header=\$ac_header_preproc"
6199fi
6200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6202
6203fi
6204if test `eval echo '${'$as_ac_Header'}'` = yes; then
6205 cat >>confdefs.h <<_ACEOF
6206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6207_ACEOF
6208
6209fi
6210
6211done
6212
e56cdf21 6213fi
1f5ab428 6214
f4917dfd 6215# Check for curses.
6216echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
6217echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6
6218if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220else
6221 ac_check_lib_save_LIBS=$LIBS
6222LIBS="-lncurses $LIBS"
6223cat >conftest.$ac_ext <<_ACEOF
6224/* confdefs.h. */
6225_ACEOF
6226cat confdefs.h >>conftest.$ac_ext
6227cat >>conftest.$ac_ext <<_ACEOF
6228/* end confdefs.h. */
6229
6230/* Override any gcc2 internal prototype to avoid an error. */
6231#ifdef __cplusplus
6232extern "C"
6233#endif
6234/* We use char because int might match the return type of a gcc2
6235 builtin and then its argument prototype would still apply. */
6236char wgetch ();
6237int
6238main ()
6239{
6240wgetch ();
6241 ;
6242 return 0;
6243}
6244_ACEOF
6245rm -f conftest.$ac_objext conftest$ac_exeext
6246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6247 (eval $ac_link) 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
4801580b 6254 { ac_try='test -z "$ac_c_werror_flag"
6255 || test ! -s conftest.err'
f4917dfd 6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest$ac_exeext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 (eval $ac_try) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 ac_cv_lib_ncurses_wgetch=yes
6268else
6269 echo "$as_me: failed program was:" >&5
6270sed 's/^/| /' conftest.$ac_ext >&5
6271
6272ac_cv_lib_ncurses_wgetch=no
6273fi
6274rm -f conftest.err conftest.$ac_objext \
6275 conftest$ac_exeext conftest.$ac_ext
6276LIBS=$ac_check_lib_save_LIBS
6277fi
6278echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
6279echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6
6280if test $ac_cv_lib_ncurses_wgetch = yes; then
6281 LIBCURSES="-lncurses"
6282else
6283 echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
6284echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6
6285if test "${ac_cv_lib_curses_wgetch+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287else
6288 ac_check_lib_save_LIBS=$LIBS
6289LIBS="-lcurses $LIBS"
6290cat >conftest.$ac_ext <<_ACEOF
6291/* confdefs.h. */
6292_ACEOF
6293cat confdefs.h >>conftest.$ac_ext
6294cat >>conftest.$ac_ext <<_ACEOF
6295/* end confdefs.h. */
6296
6297/* Override any gcc2 internal prototype to avoid an error. */
6298#ifdef __cplusplus
6299extern "C"
6300#endif
6301/* We use char because int might match the return type of a gcc2
6302 builtin and then its argument prototype would still apply. */
6303char wgetch ();
6304int
6305main ()
6306{
6307wgetch ();
6308 ;
6309 return 0;
6310}
6311_ACEOF
6312rm -f conftest.$ac_objext conftest$ac_exeext
6313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6314 (eval $ac_link) 2>conftest.er1
6315 ac_status=$?
6316 grep -v '^ *+' conftest.er1 >conftest.err
6317 rm -f conftest.er1
6318 cat conftest.err >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } &&
4801580b 6321 { ac_try='test -z "$ac_c_werror_flag"
6322 || test ! -s conftest.err'
f4917dfd 6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; } &&
6328 { ac_try='test -s conftest$ac_exeext'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 (eval $ac_try) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
6334 ac_cv_lib_curses_wgetch=yes
6335else
6336 echo "$as_me: failed program was:" >&5
6337sed 's/^/| /' conftest.$ac_ext >&5
6338
6339ac_cv_lib_curses_wgetch=no
6340fi
6341rm -f conftest.err conftest.$ac_objext \
6342 conftest$ac_exeext conftest.$ac_ext
6343LIBS=$ac_check_lib_save_LIBS
6344fi
6345echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
6346echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6
6347if test $ac_cv_lib_curses_wgetch = yes; then
6348 LIBCURSES="-lcurses"
6349fi
6350
6351fi
6352
6353
6354
6355# Check for headers.
6356
6357
6358
6359for ac_header in ncurses/curses.h ncurses.h curses.h
6360do
6361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6362if eval "test \"\${$as_ac_Header+set}\" = set"; then
6363 echo "$as_me:$LINENO: checking for $ac_header" >&5
6364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6365if eval "test \"\${$as_ac_Header+set}\" = set"; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6367fi
6368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6370else
6371 # Is the header compilable?
6372echo "$as_me:$LINENO: checking $ac_header usability" >&5
6373echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6374cat >conftest.$ac_ext <<_ACEOF
6375/* confdefs.h. */
6376_ACEOF
6377cat confdefs.h >>conftest.$ac_ext
6378cat >>conftest.$ac_ext <<_ACEOF
6379/* end confdefs.h. */
6380$ac_includes_default
6381#include <$ac_header>
6382_ACEOF
6383rm -f conftest.$ac_objext
6384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385 (eval $ac_compile) 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
4801580b 6392 { ac_try='test -z "$ac_c_werror_flag"
6393 || test ! -s conftest.err'
f4917dfd 6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; } &&
6399 { ac_try='test -s conftest.$ac_objext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 (eval $ac_try) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 ac_header_compiler=yes
6406else
6407 echo "$as_me: failed program was:" >&5
6408sed 's/^/| /' conftest.$ac_ext >&5
6409
6410ac_header_compiler=no
6411fi
6412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6414echo "${ECHO_T}$ac_header_compiler" >&6
6415
6416# Is the header present?
6417echo "$as_me:$LINENO: checking $ac_header presence" >&5
6418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6419cat >conftest.$ac_ext <<_ACEOF
6420/* confdefs.h. */
6421_ACEOF
6422cat confdefs.h >>conftest.$ac_ext
6423cat >>conftest.$ac_ext <<_ACEOF
6424/* end confdefs.h. */
6425#include <$ac_header>
6426_ACEOF
6427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6429 ac_status=$?
6430 grep -v '^ *+' conftest.er1 >conftest.err
6431 rm -f conftest.er1
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } >/dev/null; then
6435 if test -s conftest.err; then
6436 ac_cpp_err=$ac_c_preproc_warn_flag
6437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6438 else
6439 ac_cpp_err=
6440 fi
6441else
6442 ac_cpp_err=yes
6443fi
6444if test -z "$ac_cpp_err"; then
6445 ac_header_preproc=yes
6446else
6447 echo "$as_me: failed program was:" >&5
6448sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 ac_header_preproc=no
6451fi
6452rm -f conftest.err conftest.$ac_ext
6453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6454echo "${ECHO_T}$ac_header_preproc" >&6
6455
6456# So? What about this header?
6457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6458 yes:no: )
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6463 ac_header_preproc=yes
6464 ;;
6465 no:yes:* )
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6478 (
6479 cat <<\_ASBOX
6480## ------------------------------- ##
6481## Report this to bug-grub@gnu.org ##
6482## ------------------------------- ##
6483_ASBOX
6484 ) |
6485 sed "s/^/$as_me: WARNING: /" >&2
6486 ;;
6487esac
6488echo "$as_me:$LINENO: checking for $ac_header" >&5
6489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6490if eval "test \"\${$as_ac_Header+set}\" = set"; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492else
6493 eval "$as_ac_Header=\$ac_header_preproc"
6494fi
6495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6497
6498fi
6499if test `eval echo '${'$as_ac_Header'}'` = yes; then
6500 cat >>confdefs.h <<_ACEOF
6501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6502_ACEOF
6503
6504fi
6505
6506done
6507
6508
9962ed99 6509CC="$tmp_CC"
6510CFLAGS="$tmp_CFLAGS"
6511CPPFLAGS="$tmp_CPPFLAGS"
6a161fa9 6512
6513# Output files.
4b13b216 6514 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$host_cpu include/grub/machine:include/grub/$host_cpu/$host_vendor"
6a161fa9 6515
98d15063 6516 ac_config_files="$ac_config_files Makefile"
6a161fa9 6517
98d15063 6518 ac_config_files="$ac_config_files stamp-h"
6a161fa9 6519
6520cat >confcache <<\_ACEOF
6521# This file is a shell script that caches the results of configure
6522# tests run on this system so they can be shared between configure
6523# scripts and configure runs, see configure's option --config-cache.
6524# It is not useful on other systems. If it contains results you don't
6525# want to keep, you may remove or edit it.
6526#
6527# config.status only pays attention to the cache file if you give it
6528# the --recheck option to rerun configure.
6529#
98d15063 6530# `ac_cv_env_foo' variables (set or unset) will be overridden when
6a161fa9 6531# loading this file, other *unset* `ac_cv_foo' will be assigned the
6532# following values.
6533
6534_ACEOF
6535
6536# The following way of writing the cache mishandles newlines in values,
6537# but we know of no workaround that is simple, portable, and efficient.
6538# So, don't put newlines in cache variables' values.
6539# Ultrix sh set writes to stderr and can't be redirected directly,
6540# and sets the high bit in the cache file unless we assign to the vars.
6541{
6542 (set) 2>&1 |
6543 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6544 *ac_space=\ *)
6545 # `set' does not quote correctly, so add quotes (double-quote
6546 # substitution turns \\\\ into \\, and sed turns \\ into \).
6547 sed -n \
924b6140 6548 "s/'/'\\\\''/g;
6549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6a161fa9 6550 ;;
6551 *)
6552 # `set' quotes correctly as required by POSIX, so do not add quotes.
6553 sed -n \
924b6140 6554 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6a161fa9 6555 ;;
6556 esac;
6557} |
6558 sed '
6559 t clear
6560 : clear
6561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6562 t end
6563 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6564 : end' >>confcache
98d15063 6565if diff $cache_file confcache >/dev/null 2>&1; then :; else
6a161fa9 6566 if test -w $cache_file; then
6567 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6568 cat confcache >$cache_file
6569 else
6570 echo "not updating unwritable cache $cache_file"
6571 fi
6572fi
6573rm -f confcache
6574
6575test "x$prefix" = xNONE && prefix=$ac_default_prefix
6576# Let make expand exec_prefix.
6577test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6578
6579# VPATH may cause trouble with some makes, so we remove $(srcdir),
6580# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6581# trailing colons and then remove the whole line if VPATH becomes empty
6582# (actually we leave an empty line to preserve line numbers).
6583if test "x$srcdir" = x.; then
924b6140 6584 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6a161fa9 6585s/:*\$(srcdir):*/:/;
6586s/:*\${srcdir}:*/:/;
6587s/:*@srcdir@:*/:/;
924b6140 6588s/^\([^=]*=[ ]*\):*/\1/;
6a161fa9 6589s/:*$//;
924b6140 6590s/^[^=]*=[ ]*$//;
6a161fa9 6591}'
6592fi
6593
6594DEFS=-DHAVE_CONFIG_H
6595
98d15063 6596ac_libobjs=
6597ac_ltlibobjs=
6598for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6599 # 1. Remove the extension, and $U if already installed.
6600 ac_i=`echo "$ac_i" |
924b6140 6601 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
98d15063 6602 # 2. Add them.
6603 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6604 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6605done
6606LIBOBJS=$ac_libobjs
6607
6608LTLIBOBJS=$ac_ltlibobjs
6609
6610
6a161fa9 6611
6612: ${CONFIG_STATUS=./config.status}
6613ac_clean_files_save=$ac_clean_files
6614ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6615{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6616echo "$as_me: creating $CONFIG_STATUS" >&6;}
6617cat >$CONFIG_STATUS <<_ACEOF
6618#! $SHELL
6619# Generated by $as_me.
6620# Run this file to recreate the current configuration.
6621# Compiler output produced by configure, useful for debugging
6622# configure, is in config.log if it exists.
6623
6624debug=false
98d15063 6625ac_cs_recheck=false
6626ac_cs_silent=false
6a161fa9 6627SHELL=\${CONFIG_SHELL-$SHELL}
6628_ACEOF
6629
6630cat >>$CONFIG_STATUS <<\_ACEOF
6a161fa9 6631## --------------------- ##
6632## M4sh Initialization. ##
6633## --------------------- ##
6634
6635# Be Bourne compatible
6636if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6637 emulate sh
6638 NULLCMD=:
98d15063 6639 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6640 # is contrary to our usage. Disable this feature.
6641 alias -g '${1+"$@"}'='"$@"'
6a161fa9 6642elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6643 set -o posix
6644fi
924b6140 6645DUALCASE=1; export DUALCASE # for MKS sh
6a161fa9 6646
6a161fa9 6647# Support unset when possible.
924b6140 6648if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6a161fa9 6649 as_unset=unset
6650else
6651 as_unset=false
6652fi
6653
98d15063 6654
6655# Work around bugs in pre-3.0 UWIN ksh.
6656$as_unset ENV MAIL MAILPATH
6657PS1='$ '
6658PS2='> '
6659PS4='+ '
6660
6661# NLS nuisances.
6662for as_var in \
6663 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6664 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6665 LC_TELEPHONE LC_TIME
6666do
924b6140 6667 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
98d15063 6668 eval $as_var=C; export $as_var
6669 else
6670 $as_unset $as_var
6671 fi
6672done
6673
6674# Required to use basename.
6675if expr a : '\(a\)' >/dev/null 2>&1; then
6676 as_expr=expr
6677else
6678 as_expr=false
6679fi
6680
6681if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6682 as_basename=basename
6683else
6684 as_basename=false
6685fi
6a161fa9 6686
6687
6688# Name of the executable.
98d15063 6689as_me=`$as_basename "$0" ||
6a161fa9 6690$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6691 X"$0" : 'X\(//\)$' \| \
6692 X"$0" : 'X\(/\)$' \| \
6693 . : '\(.\)' 2>/dev/null ||
6694echo X/"$0" |
6695 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6696 /^X\/\(\/\/\)$/{ s//\1/; q; }
6697 /^X\/\(\/\).*/{ s//\1/; q; }
6698 s/.*/./; q'`
6699
98d15063 6700
6a161fa9 6701# PATH needs CR, and LINENO needs CR and PATH.
6702# Avoid depending upon Character Ranges.
6703as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6704as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6705as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6706as_cr_digits='0123456789'
6707as_cr_alnum=$as_cr_Letters$as_cr_digits
6708
6709# The user is always right.
6710if test "${PATH_SEPARATOR+set}" != set; then
98d15063 6711 echo "#! /bin/sh" >conf$$.sh
6712 echo "exit 0" >>conf$$.sh
6713 chmod +x conf$$.sh
6714 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6a161fa9 6715 PATH_SEPARATOR=';'
6716 else
6717 PATH_SEPARATOR=:
6718 fi
98d15063 6719 rm -f conf$$.sh
6a161fa9 6720fi
6721
6722
6723 as_lineno_1=$LINENO
6724 as_lineno_2=$LINENO
6725 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6726 test "x$as_lineno_1" != "x$as_lineno_2" &&
6727 test "x$as_lineno_3" = "x$as_lineno_2" || {
6728 # Find who we are. Look in the path if we contain no path at all
6729 # relative or not.
6730 case $0 in
6731 *[\\/]* ) as_myself=$0 ;;
6732 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6738done
6739
6740 ;;
6741 esac
6742 # We did not find ourselves, most probably we were run as `sh COMMAND'
6743 # in which case we are not to be found in the path.
6744 if test "x$as_myself" = x; then
6745 as_myself=$0
6746 fi
6747 if test ! -f "$as_myself"; then
6748 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6749echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6750 { (exit 1); exit 1; }; }
6751 fi
6752 case $CONFIG_SHELL in
6753 '')
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6756do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for as_base in sh bash ksh sh5; do
6760 case $as_dir in
6761 /*)
6762 if ("$as_dir/$as_base" -c '
6763 as_lineno_1=$LINENO
6764 as_lineno_2=$LINENO
6765 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6766 test "x$as_lineno_1" != "x$as_lineno_2" &&
6767 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
98d15063 6768 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6769 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6a161fa9 6770 CONFIG_SHELL=$as_dir/$as_base
6771 export CONFIG_SHELL
6772 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6773 fi;;
6774 esac
6775 done
6776done
6777;;
6778 esac
6779
6780 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6781 # uniformly replaced by the line number. The first 'sed' inserts a
6782 # line-number line before each line; the second 'sed' does the real
6783 # work. The second script uses 'N' to pair each line-number line
6784 # with the numbered line, and appends trailing '-' during
6785 # substitution so that $LINENO is not a special case at line end.
6786 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6787 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6788 sed '=' <$as_myself |
6789 sed '
6790 N
6791 s,$,-,
6792 : loop
6793 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6794 t loop
6795 s,-$,,
6796 s,^['$as_cr_digits']*\n,,
6797 ' >$as_me.lineno &&
6798 chmod +x $as_me.lineno ||
6799 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6800echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6801 { (exit 1); exit 1; }; }
6802
6803 # Don't try to exec as it changes $[0], causing all sort of problems
6804 # (the dirname of $[0] is not the place where we might find the
6805 # original and so on. Autoconf is especially sensible to this).
6806 . ./$as_me.lineno
6807 # Exit status is that of the last command.
6808 exit
6809}
6810
6811
6812case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6813 *c*,-n*) ECHO_N= ECHO_C='
6814' ECHO_T=' ' ;;
6815 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6816 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6817esac
6818
6819if expr a : '\(a\)' >/dev/null 2>&1; then
6820 as_expr=expr
6821else
6822 as_expr=false
6823fi
6824
6825rm -f conf$$ conf$$.exe conf$$.file
6826echo >conf$$.file
6827if ln -s conf$$.file conf$$ 2>/dev/null; then
6828 # We could just check for DJGPP; but this test a) works b) is more generic
6829 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6830 if test -f conf$$.exe; then
6831 # Don't use ln at all; we don't have any links
6832 as_ln_s='cp -p'
6833 else
6834 as_ln_s='ln -s'
6835 fi
6836elif ln conf$$.file conf$$ 2>/dev/null; then
6837 as_ln_s=ln
6838else
6839 as_ln_s='cp -p'
6840fi
6841rm -f conf$$ conf$$.exe conf$$.file
6842
98d15063 6843if mkdir -p . 2>/dev/null; then
6844 as_mkdir_p=:
6845else
924b6140 6846 test -d ./-p && rmdir ./-p
98d15063 6847 as_mkdir_p=false
6848fi
6849
6a161fa9 6850as_executable_p="test -f"
6851
6852# Sed expression to map a string onto a valid CPP name.
924b6140 6853as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6a161fa9 6854
6855# Sed expression to map a string onto a valid variable name.
924b6140 6856as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6a161fa9 6857
6858
6859# IFS
6860# We need space, tab and new line, in precisely that order.
6861as_nl='
6862'
6863IFS=" $as_nl"
6864
6865# CDPATH.
98d15063 6866$as_unset CDPATH
6a161fa9 6867
6868exec 6>&1
6869
6870# Open the log real soon, to keep \$[0] and so on meaningful, and to
6871# report actual input values of CONFIG_FILES etc. instead of their
6872# values after options handling. Logging --version etc. is OK.
6873exec 5>>config.log
6874{
6875 echo
6876 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6877## Running $as_me. ##
6878_ASBOX
6879} >&5
6880cat >&5 <<_CSEOF
6881
4801580b 6882This file was extended by GRUB $as_me 1.91, which was
924b6140 6883generated by GNU Autoconf 2.59. Invocation command line was
6a161fa9 6884
6885 CONFIG_FILES = $CONFIG_FILES
6886 CONFIG_HEADERS = $CONFIG_HEADERS
6887 CONFIG_LINKS = $CONFIG_LINKS
6888 CONFIG_COMMANDS = $CONFIG_COMMANDS
6889 $ $0 $@
6890
6891_CSEOF
6892echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6893echo >&5
6894_ACEOF
6895
6896# Files that config.status was made for.
6897if test -n "$ac_config_files"; then
6898 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6899fi
6900
6901if test -n "$ac_config_headers"; then
6902 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6903fi
6904
6905if test -n "$ac_config_links"; then
6906 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6907fi
6908
6909if test -n "$ac_config_commands"; then
6910 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6911fi
6912
6913cat >>$CONFIG_STATUS <<\_ACEOF
6914
6915ac_cs_usage="\
6916\`$as_me' instantiates files from templates according to the
6917current configuration.
6918
6919Usage: $0 [OPTIONS] [FILE]...
6920
6921 -h, --help print this help, then exit
6922 -V, --version print version number, then exit
98d15063 6923 -q, --quiet do not print progress messages
6a161fa9 6924 -d, --debug don't remove temporary files
6925 --recheck update $as_me by reconfiguring in the same conditions
6926 --file=FILE[:TEMPLATE]
924b6140 6927 instantiate the configuration file FILE
6a161fa9 6928 --header=FILE[:TEMPLATE]
924b6140 6929 instantiate the configuration header FILE
6a161fa9 6930
6931Configuration files:
6932$config_files
6933
6934Configuration headers:
6935$config_headers
6936
6937Configuration links:
6938$config_links
6939
6940Report bugs to <bug-autoconf@gnu.org>."
6941_ACEOF
6942
6943cat >>$CONFIG_STATUS <<_ACEOF
6944ac_cs_version="\\
4801580b 6945GRUB config.status 1.91
924b6140 6946configured by $0, generated by GNU Autoconf 2.59,
6a161fa9 6947 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6948
924b6140 6949Copyright (C) 2003 Free Software Foundation, Inc.
6a161fa9 6950This config.status script is free software; the Free Software Foundation
6951gives unlimited permission to copy, distribute and modify it."
6952srcdir=$srcdir
6953INSTALL="$INSTALL"
6954_ACEOF
6955
6956cat >>$CONFIG_STATUS <<\_ACEOF
6957# If no file are specified by the user, then we need to provide default
6958# value. By we need to know if files were specified by the user.
6959ac_need_defaults=:
6960while test $# != 0
6961do
6962 case $1 in
6963 --*=*)
6964 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6965 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
98d15063 6966 ac_shift=:
6967 ;;
6968 -*)
6969 ac_option=$1
6970 ac_optarg=$2
6971 ac_shift=shift
6a161fa9 6972 ;;
6a161fa9 6973 *) # This is not an option, so the user has probably given explicit
6974 # arguments.
98d15063 6975 ac_option=$1
6a161fa9 6976 ac_need_defaults=false;;
6977 esac
6978
98d15063 6979 case $ac_option in
6a161fa9 6980 # Handling of the options.
6981_ACEOF
6a161fa9 6982cat >>$CONFIG_STATUS <<\_ACEOF
98d15063 6983 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6984 ac_cs_recheck=: ;;
6a161fa9 6985 --version | --vers* | -V )
6986 echo "$ac_cs_version"; exit 0 ;;
6987 --he | --h)
6988 # Conflict between --help and --header
6989 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6990Try \`$0 --help' for more information." >&5
6991echo "$as_me: error: ambiguous option: $1
6992Try \`$0 --help' for more information." >&2;}
6993 { (exit 1); exit 1; }; };;
6994 --help | --hel | -h )
6995 echo "$ac_cs_usage"; exit 0 ;;
6996 --debug | --d* | -d )
6997 debug=: ;;
6998 --file | --fil | --fi | --f )
98d15063 6999 $ac_shift
7000 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6a161fa9 7001 ac_need_defaults=false;;
7002 --header | --heade | --head | --hea )
98d15063 7003 $ac_shift
7004 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6a161fa9 7005 ac_need_defaults=false;;
98d15063 7006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7007 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7008 ac_cs_silent=: ;;
6a161fa9 7009
7010 # This is an error.
7011 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7012Try \`$0 --help' for more information." >&5
7013echo "$as_me: error: unrecognized option: $1
7014Try \`$0 --help' for more information." >&2;}
7015 { (exit 1); exit 1; }; } ;;
7016
7017 *) ac_config_targets="$ac_config_targets $1" ;;
7018
7019 esac
7020 shift
7021done
7022
98d15063 7023ac_configure_extra_args=
7024
7025if $ac_cs_silent; then
7026 exec 6>/dev/null
7027 ac_configure_extra_args="$ac_configure_extra_args --silent"
7028fi
7029
7030_ACEOF
7031cat >>$CONFIG_STATUS <<_ACEOF
7032if \$ac_cs_recheck; then
7033 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7034 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7035fi
7036
6a161fa9 7037_ACEOF
7038
7039
7040
7041
7042
7043cat >>$CONFIG_STATUS <<\_ACEOF
7044for ac_config_target in $ac_config_targets
7045do
7046 case "$ac_config_target" in
7047 # Handling of arguments.
7048 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7049 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
4b13b216 7050 "include/grub/cpu" ) CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$host_cpu" ;;
7051 "include/grub/machine" ) CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$host_cpu/$host_vendor" ;;
6a161fa9 7052 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7053 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7054echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7055 { (exit 1); exit 1; }; };;
7056 esac
7057done
7058
7059# If the user did not use the arguments to specify the items to instantiate,
7060# then the envvar interface is used. Set only those that are not.
7061# We use the long form for the default assignment because of an extremely
7062# bizarre bug on SunOS 4.1.3.
7063if $ac_need_defaults; then
7064 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7065 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7066 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7067fi
7068
98d15063 7069# Have a temporary directory for convenience. Make it in the build tree
7070# simply because there is no reason to put it here, and in addition,
7071# creating and moving files from /tmp can sometimes cause problems.
6a161fa9 7072# Create a temporary directory, and hook for its removal unless debugging.
7073$debug ||
7074{
7075 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7076 trap '{ (exit 1); exit 1; }' 1 2 13 15
7077}
7078
7079# Create a (secure) tmp directory for tmp files.
98d15063 7080
6a161fa9 7081{
98d15063 7082 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6a161fa9 7083 test -n "$tmp" && test -d "$tmp"
7084} ||
7085{
98d15063 7086 tmp=./confstat$$-$RANDOM
6a161fa9 7087 (umask 077 && mkdir $tmp)
7088} ||
7089{
98d15063 7090 echo "$me: cannot create a temporary directory in ." >&2
6a161fa9 7091 { (exit 1); exit 1; }
7092}
7093
7094_ACEOF
7095
7096cat >>$CONFIG_STATUS <<_ACEOF
7097
7098#
7099# CONFIG_FILES section.
7100#
7101
7102# No need to generate the scripts if there are no CONFIG_FILES.
7103# This happens for instance when ./config.status config.h
7104if test -n "\$CONFIG_FILES"; then
7105 # Protect against being on the right side of a sed subst in config.status.
7106 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7107 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7108s,@SHELL@,$SHELL,;t t
7109s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7110s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7111s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7112s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7113s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7114s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7115s,@exec_prefix@,$exec_prefix,;t t
7116s,@prefix@,$prefix,;t t
7117s,@program_transform_name@,$program_transform_name,;t t
7118s,@bindir@,$bindir,;t t
7119s,@sbindir@,$sbindir,;t t
7120s,@libexecdir@,$libexecdir,;t t
7121s,@datadir@,$datadir,;t t
7122s,@sysconfdir@,$sysconfdir,;t t
7123s,@sharedstatedir@,$sharedstatedir,;t t
7124s,@localstatedir@,$localstatedir,;t t
7125s,@libdir@,$libdir,;t t
7126s,@includedir@,$includedir,;t t
7127s,@oldincludedir@,$oldincludedir,;t t
7128s,@infodir@,$infodir,;t t
7129s,@mandir@,$mandir,;t t
7130s,@build_alias@,$build_alias,;t t
7131s,@host_alias@,$host_alias,;t t
7132s,@target_alias@,$target_alias,;t t
7133s,@DEFS@,$DEFS,;t t
7134s,@ECHO_C@,$ECHO_C,;t t
7135s,@ECHO_N@,$ECHO_N,;t t
7136s,@ECHO_T@,$ECHO_T,;t t
7137s,@LIBS@,$LIBS,;t t
7138s,@build@,$build,;t t
7139s,@build_cpu@,$build_cpu,;t t
7140s,@build_vendor@,$build_vendor,;t t
7141s,@build_os@,$build_os,;t t
7142s,@host@,$host,;t t
7143s,@host_cpu@,$host_cpu,;t t
7144s,@host_vendor@,$host_vendor,;t t
7145s,@host_os@,$host_os,;t t
7146s,@CC@,$CC,;t t
7147s,@CFLAGS@,$CFLAGS,;t t
7148s,@LDFLAGS@,$LDFLAGS,;t t
7149s,@CPPFLAGS@,$CPPFLAGS,;t t
7150s,@ac_ct_CC@,$ac_ct_CC,;t t
7151s,@EXEEXT@,$EXEEXT,;t t
7152s,@OBJEXT@,$OBJEXT,;t t
7153s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7154s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7155s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7156s,@SET_MAKE@,$SET_MAKE,;t t
7157s,@OBJCOPY@,$OBJCOPY,;t t
7158s,@ac_ct_OBJCOPY@,$ac_ct_OBJCOPY,;t t
7159s,@STRIP@,$STRIP,;t t
7160s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7161s,@NM@,$NM,;t t
7162s,@ac_ct_NM@,$ac_ct_NM,;t t
9962ed99 7163s,@LD@,$LD,;t t
7164s,@ac_ct_LD@,$ac_ct_LD,;t t
6a161fa9 7165s,@RUBY@,$RUBY,;t t
7166s,@BUILD_CC@,$BUILD_CC,;t t
7167s,@CPP@,$CPP,;t t
98d15063 7168s,@EGREP@,$EGREP,;t t
4ac9bd04 7169s,@LIBLZO@,$LIBLZO,;t t
f4917dfd 7170s,@LIBCURSES@,$LIBCURSES,;t t
98d15063 7171s,@LIBOBJS@,$LIBOBJS,;t t
7172s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6a161fa9 7173CEOF
7174
7175_ACEOF
7176
7177 cat >>$CONFIG_STATUS <<\_ACEOF
7178 # Split the substitutions into bite-sized pieces for seds with
7179 # small command number limits, like on Digital OSF/1 and HP-UX.
7180 ac_max_sed_lines=48
7181 ac_sed_frag=1 # Number of current file.
7182 ac_beg=1 # First line for current file.
7183 ac_end=$ac_max_sed_lines # Line after last line for current file.
7184 ac_more_lines=:
7185 ac_sed_cmds=
7186 while $ac_more_lines; do
7187 if test $ac_beg -gt 1; then
7188 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7189 else
7190 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7191 fi
7192 if test ! -s $tmp/subs.frag; then
7193 ac_more_lines=false
7194 else
7195 # The purpose of the label and of the branching condition is to
7196 # speed up the sed processing (if there are no `@' at all, there
7197 # is no need to browse any of the substitutions).
7198 # These are the two extra sed commands mentioned above.
7199 (echo ':t
7200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7201 if test -z "$ac_sed_cmds"; then
924b6140 7202 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6a161fa9 7203 else
924b6140 7204 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6a161fa9 7205 fi
7206 ac_sed_frag=`expr $ac_sed_frag + 1`
7207 ac_beg=$ac_end
7208 ac_end=`expr $ac_end + $ac_max_sed_lines`
7209 fi
7210 done
7211 if test -z "$ac_sed_cmds"; then
7212 ac_sed_cmds=cat
7213 fi
7214fi # test -n "$CONFIG_FILES"
7215
7216_ACEOF
7217cat >>$CONFIG_STATUS <<\_ACEOF
7218for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7219 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7220 case $ac_file in
7221 - | *:- | *:-:* ) # input from stdin
924b6140 7222 cat >$tmp/stdin
7223 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7224 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6a161fa9 7225 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
924b6140 7226 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6a161fa9 7227 * ) ac_file_in=$ac_file.in ;;
7228 esac
7229
7230 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7231 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7232$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
924b6140 7233 X"$ac_file" : 'X\(//\)[^/]' \| \
7234 X"$ac_file" : 'X\(//\)$' \| \
7235 X"$ac_file" : 'X\(/\)' \| \
7236 . : '\(.\)' 2>/dev/null ||
6a161fa9 7237echo X"$ac_file" |
7238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7240 /^X\(\/\/\)$/{ s//\1/; q; }
7241 /^X\(\/\).*/{ s//\1/; q; }
7242 s/.*/./; q'`
98d15063 7243 { if $as_mkdir_p; then
7244 mkdir -p "$ac_dir"
7245 else
7246 as_dir="$ac_dir"
7247 as_dirs=
7248 while test ! -d "$as_dir"; do
7249 as_dirs="$as_dir $as_dirs"
7250 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7251$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
924b6140 7252 X"$as_dir" : 'X\(//\)[^/]' \| \
7253 X"$as_dir" : 'X\(//\)$' \| \
7254 X"$as_dir" : 'X\(/\)' \| \
7255 . : '\(.\)' 2>/dev/null ||
98d15063 7256echo X"$as_dir" |
7257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7259 /^X\(\/\/\)$/{ s//\1/; q; }
7260 /^X\(\/\).*/{ s//\1/; q; }
7261 s/.*/./; q'`
7262 done
7263 test ! -n "$as_dirs" || mkdir $as_dirs
7264 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7265echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7266 { (exit 1); exit 1; }; }; }
6a161fa9 7267
7268 ac_builddir=.
7269
7270if test "$ac_dir" != .; then
7271 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7272 # A "../" for each directory in $ac_dir_suffix.
7273 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7274else
7275 ac_dir_suffix= ac_top_builddir=
7276fi
7277
7278case $srcdir in
7279 .) # No --srcdir option. We are building in place.
7280 ac_srcdir=.
7281 if test -z "$ac_top_builddir"; then
7282 ac_top_srcdir=.
7283 else
7284 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7285 fi ;;
7286 [\\/]* | ?:[\\/]* ) # Absolute path.
7287 ac_srcdir=$srcdir$ac_dir_suffix;
7288 ac_top_srcdir=$srcdir ;;
7289 *) # Relative path.
7290 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7291 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7292esac
924b6140 7293
7294# Do not use `cd foo && pwd` to compute absolute paths, because
7295# the directories may not exist.
7296case `pwd` in
7297.) ac_abs_builddir="$ac_dir";;
7298*)
7299 case "$ac_dir" in
7300 .) ac_abs_builddir=`pwd`;;
7301 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7302 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7303 esac;;
7304esac
7305case $ac_abs_builddir in
7306.) ac_abs_top_builddir=${ac_top_builddir}.;;
7307*)
7308 case ${ac_top_builddir}. in
7309 .) ac_abs_top_builddir=$ac_abs_builddir;;
7310 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7311 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7312 esac;;
7313esac
7314case $ac_abs_builddir in
7315.) ac_abs_srcdir=$ac_srcdir;;
7316*)
7317 case $ac_srcdir in
7318 .) ac_abs_srcdir=$ac_abs_builddir;;
7319 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7320 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7321 esac;;
7322esac
7323case $ac_abs_builddir in
7324.) ac_abs_top_srcdir=$ac_top_srcdir;;
7325*)
7326 case $ac_top_srcdir in
7327 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7328 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7329 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7330 esac;;
7331esac
6a161fa9 7332
7333
7334 case $INSTALL in
7335 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7336 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7337 esac
7338
4801580b 7339 if test x"$ac_file" != x-; then
7340 { echo "$as_me:$LINENO: creating $ac_file" >&5
7341echo "$as_me: creating $ac_file" >&6;}
7342 rm -f "$ac_file"
7343 fi
6a161fa9 7344 # Let's still pretend it is `configure' which instantiates (i.e., don't
7345 # use $as_me), people would be surprised to read:
7346 # /* config.h. Generated by config.status. */
7347 if test x"$ac_file" = x-; then
7348 configure_input=
7349 else
7350 configure_input="$ac_file. "
7351 fi
7352 configure_input=$configure_input"Generated from `echo $ac_file_in |
924b6140 7353 sed 's,.*/,,'` by configure."
6a161fa9 7354
7355 # First look for the input files in the build tree, otherwise in the
7356 # src tree.
7357 ac_file_inputs=`IFS=:
7358 for f in $ac_file_in; do
7359 case $f in
7360 -) echo $tmp/stdin ;;
7361 [\\/$]*)
924b6140 7362 # Absolute (can't be DOS-style, as IFS=:)
7363 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6a161fa9 7364echo "$as_me: error: cannot find input file: $f" >&2;}
7365 { (exit 1); exit 1; }; }
924b6140 7366 echo "$f";;
6a161fa9 7367 *) # Relative
924b6140 7368 if test -f "$f"; then
7369 # Build tree
7370 echo "$f"
7371 elif test -f "$srcdir/$f"; then
7372 # Source tree
7373 echo "$srcdir/$f"
7374 else
7375 # /dev/null tree
7376 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6a161fa9 7377echo "$as_me: error: cannot find input file: $f" >&2;}
7378 { (exit 1); exit 1; }; }
924b6140 7379 fi;;
6a161fa9 7380 esac
7381 done` || { (exit 1); exit 1; }
7382_ACEOF
7383cat >>$CONFIG_STATUS <<_ACEOF
7384 sed "$ac_vpsub
7385$extrasub
7386_ACEOF
7387cat >>$CONFIG_STATUS <<\_ACEOF
7388:t
7389/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7390s,@configure_input@,$configure_input,;t t
7391s,@srcdir@,$ac_srcdir,;t t
7392s,@abs_srcdir@,$ac_abs_srcdir,;t t
7393s,@top_srcdir@,$ac_top_srcdir,;t t
7394s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7395s,@builddir@,$ac_builddir,;t t
7396s,@abs_builddir@,$ac_abs_builddir,;t t
7397s,@top_builddir@,$ac_top_builddir,;t t
7398s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7399s,@INSTALL@,$ac_INSTALL,;t t
7400" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7401 rm -f $tmp/stdin
7402 if test x"$ac_file" != x-; then
7403 mv $tmp/out $ac_file
7404 else
7405 cat $tmp/out
7406 rm -f $tmp/out
7407 fi
7408
7409 # Run the commands associated with the file.
7410 case $ac_file in
7411 stamp-h ) echo timestamp > stamp-h ;;
7412 esac
7413done
7414_ACEOF
7415cat >>$CONFIG_STATUS <<\_ACEOF
7416
7417#
7418# CONFIG_HEADER section.
7419#
7420
7421# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7422# NAME is the cpp macro being defined and VALUE is the value it is being given.
7423#
7424# ac_d sets the value in "#define NAME VALUE" lines.
924b6140 7425ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7426ac_dB='[ ].*$,\1#\2'
6a161fa9 7427ac_dC=' '
7428ac_dD=',;t'
7429# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
924b6140 7430ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6a161fa9 7431ac_uB='$,\1#\2define\3'
7432ac_uC=' '
7433ac_uD=',;t'
7434
7435for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7436 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7437 case $ac_file in
7438 - | *:- | *:-:* ) # input from stdin
924b6140 7439 cat >$tmp/stdin
7440 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7441 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6a161fa9 7442 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
924b6140 7443 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6a161fa9 7444 * ) ac_file_in=$ac_file.in ;;
7445 esac
7446
7447 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7448echo "$as_me: creating $ac_file" >&6;}
7449
7450 # First look for the input files in the build tree, otherwise in the
7451 # src tree.
7452 ac_file_inputs=`IFS=:
7453 for f in $ac_file_in; do
7454 case $f in
7455 -) echo $tmp/stdin ;;
7456 [\\/$]*)
924b6140 7457 # Absolute (can't be DOS-style, as IFS=:)
7458 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6a161fa9 7459echo "$as_me: error: cannot find input file: $f" >&2;}
7460 { (exit 1); exit 1; }; }
924b6140 7461 # Do quote $f, to prevent DOS paths from being IFS'd.
7462 echo "$f";;
6a161fa9 7463 *) # Relative
924b6140 7464 if test -f "$f"; then
7465 # Build tree
7466 echo "$f"
7467 elif test -f "$srcdir/$f"; then
7468 # Source tree
7469 echo "$srcdir/$f"
7470 else
7471 # /dev/null tree
7472 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6a161fa9 7473echo "$as_me: error: cannot find input file: $f" >&2;}
7474 { (exit 1); exit 1; }; }
924b6140 7475 fi;;
6a161fa9 7476 esac
7477 done` || { (exit 1); exit 1; }
7478 # Remove the trailing spaces.
924b6140 7479 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6a161fa9 7480
7481_ACEOF
7482
7483# Transform confdefs.h into two sed scripts, `conftest.defines' and
7484# `conftest.undefs', that substitutes the proper values into
7485# config.h.in to produce config.h. The first handles `#define'
7486# templates, and the second `#undef' templates.
7487# And first: Protect against being on the right side of a sed subst in
7488# config.status. Protect against being in an unquoted here document
7489# in config.status.
7490rm -f conftest.defines conftest.undefs
7491# Using a here document instead of a string reduces the quoting nightmare.
7492# Putting comments in sed scripts is not portable.
7493#
7494# `end' is used to avoid that the second main sed command (meant for
7495# 0-ary CPP macros) applies to n-ary macro definitions.
7496# See the Autoconf documentation for `clear'.
7497cat >confdef2sed.sed <<\_ACEOF
7498s/[\\&,]/\\&/g
7499s,[\\$`],\\&,g
7500t clear
7501: clear
924b6140 7502s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6a161fa9 7503t end
924b6140 7504s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6a161fa9 7505: end
7506_ACEOF
7507# If some macros were called several times there might be several times
7508# the same #defines, which is useless. Nevertheless, we may not want to
7509# sort them, since we want the *last* AC-DEFINE to be honored.
7510uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7511sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7512rm -f confdef2sed.sed
7513
7514# This sed command replaces #undef with comments. This is necessary, for
7515# example, in the case of _POSIX_SOURCE, which is predefined and required
7516# on some systems where configure will not decide to define it.
7517cat >>conftest.undefs <<\_ACEOF
924b6140 7518s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6a161fa9 7519_ACEOF
7520
7521# Break up conftest.defines because some shells have a limit on the size
7522# of here documents, and old seds have small limits too (100 cmds).
7523echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
924b6140 7524echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6a161fa9 7525echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7526echo ' :' >>$CONFIG_STATUS
7527rm -f conftest.tail
7528while grep . conftest.defines >/dev/null
7529do
7530 # Write a limited-size here document to $tmp/defines.sed.
7531 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7532 # Speed up: don't consider the non `#define' lines.
924b6140 7533 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6a161fa9 7534 # Work around the forget-to-reset-the-flag bug.
7535 echo 't clr' >>$CONFIG_STATUS
7536 echo ': clr' >>$CONFIG_STATUS
7537 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7538 echo 'CEOF
7539 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7540 rm -f $tmp/in
7541 mv $tmp/out $tmp/in
7542' >>$CONFIG_STATUS
7543 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7544 rm -f conftest.defines
7545 mv conftest.tail conftest.defines
7546done
7547rm -f conftest.defines
98d15063 7548echo ' fi # grep' >>$CONFIG_STATUS
6a161fa9 7549echo >>$CONFIG_STATUS
7550
7551# Break up conftest.undefs because some shells have a limit on the size
7552# of here documents, and old seds have small limits too (100 cmds).
7553echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7554rm -f conftest.tail
7555while grep . conftest.undefs >/dev/null
7556do
7557 # Write a limited-size here document to $tmp/undefs.sed.
7558 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7559 # Speed up: don't consider the non `#undef'
924b6140 7560 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6a161fa9 7561 # Work around the forget-to-reset-the-flag bug.
7562 echo 't clr' >>$CONFIG_STATUS
7563 echo ': clr' >>$CONFIG_STATUS
7564 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7565 echo 'CEOF
7566 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7567 rm -f $tmp/in
7568 mv $tmp/out $tmp/in
7569' >>$CONFIG_STATUS
7570 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7571 rm -f conftest.undefs
7572 mv conftest.tail conftest.undefs
7573done
7574rm -f conftest.undefs
7575
7576cat >>$CONFIG_STATUS <<\_ACEOF
7577 # Let's still pretend it is `configure' which instantiates (i.e., don't
7578 # use $as_me), people would be surprised to read:
7579 # /* config.h. Generated by config.status. */
7580 if test x"$ac_file" = x-; then
7581 echo "/* Generated by configure. */" >$tmp/config.h
7582 else
7583 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7584 fi
7585 cat $tmp/in >>$tmp/config.h
7586 rm -f $tmp/in
7587 if test x"$ac_file" != x-; then
98d15063 7588 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6a161fa9 7589 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7590echo "$as_me: $ac_file is unchanged" >&6;}
7591 else
7592 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7593$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
924b6140 7594 X"$ac_file" : 'X\(//\)[^/]' \| \
7595 X"$ac_file" : 'X\(//\)$' \| \
7596 X"$ac_file" : 'X\(/\)' \| \
7597 . : '\(.\)' 2>/dev/null ||
6a161fa9 7598echo X"$ac_file" |
7599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7600 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7601 /^X\(\/\/\)$/{ s//\1/; q; }
7602 /^X\(\/\).*/{ s//\1/; q; }
7603 s/.*/./; q'`
98d15063 7604 { if $as_mkdir_p; then
7605 mkdir -p "$ac_dir"
7606 else
7607 as_dir="$ac_dir"
7608 as_dirs=
7609 while test ! -d "$as_dir"; do
7610 as_dirs="$as_dir $as_dirs"
7611 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7612$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
924b6140 7613 X"$as_dir" : 'X\(//\)[^/]' \| \
7614 X"$as_dir" : 'X\(//\)$' \| \
7615 X"$as_dir" : 'X\(/\)' \| \
7616 . : '\(.\)' 2>/dev/null ||
98d15063 7617echo X"$as_dir" |
7618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7619 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7620 /^X\(\/\/\)$/{ s//\1/; q; }
7621 /^X\(\/\).*/{ s//\1/; q; }
7622 s/.*/./; q'`
7623 done
7624 test ! -n "$as_dirs" || mkdir $as_dirs
7625 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7626echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7627 { (exit 1); exit 1; }; }; }
6a161fa9 7628
7629 rm -f $ac_file
7630 mv $tmp/config.h $ac_file
7631 fi
7632 else
7633 cat $tmp/config.h
7634 rm -f $tmp/config.h
7635 fi
7636done
7637_ACEOF
7638cat >>$CONFIG_STATUS <<\_ACEOF
7639
7640#
7641# CONFIG_LINKS section.
7642#
7643
7644for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
7645 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7646 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7647
7648 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
7649echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
7650
7651 if test ! -r $srcdir/$ac_source; then
7652 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
7653echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
7654 { (exit 1); exit 1; }; }
7655 fi
7656 rm -f $ac_dest
7657
7658 # Make relative symlinks.
7659 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
7660$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
924b6140 7661 X"$ac_dest" : 'X\(//\)[^/]' \| \
7662 X"$ac_dest" : 'X\(//\)$' \| \
7663 X"$ac_dest" : 'X\(/\)' \| \
7664 . : '\(.\)' 2>/dev/null ||
6a161fa9 7665echo X"$ac_dest" |
7666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7668 /^X\(\/\/\)$/{ s//\1/; q; }
7669 /^X\(\/\).*/{ s//\1/; q; }
7670 s/.*/./; q'`
98d15063 7671 { if $as_mkdir_p; then
7672 mkdir -p "$ac_dest_dir"
7673 else
7674 as_dir="$ac_dest_dir"
7675 as_dirs=
7676 while test ! -d "$as_dir"; do
7677 as_dirs="$as_dir $as_dirs"
7678 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7679$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
924b6140 7680 X"$as_dir" : 'X\(//\)[^/]' \| \
7681 X"$as_dir" : 'X\(//\)$' \| \
7682 X"$as_dir" : 'X\(/\)' \| \
7683 . : '\(.\)' 2>/dev/null ||
98d15063 7684echo X"$as_dir" |
7685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7687 /^X\(\/\/\)$/{ s//\1/; q; }
7688 /^X\(\/\).*/{ s//\1/; q; }
7689 s/.*/./; q'`
7690 done
7691 test ! -n "$as_dirs" || mkdir $as_dirs
7692 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
7693echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
7694 { (exit 1); exit 1; }; }; }
6a161fa9 7695
7696 ac_builddir=.
7697
7698if test "$ac_dest_dir" != .; then
7699 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
7700 # A "../" for each directory in $ac_dir_suffix.
7701 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7702else
7703 ac_dir_suffix= ac_top_builddir=
7704fi
7705
7706case $srcdir in
7707 .) # No --srcdir option. We are building in place.
7708 ac_srcdir=.
7709 if test -z "$ac_top_builddir"; then
7710 ac_top_srcdir=.
7711 else
7712 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7713 fi ;;
7714 [\\/]* | ?:[\\/]* ) # Absolute path.
7715 ac_srcdir=$srcdir$ac_dir_suffix;
7716 ac_top_srcdir=$srcdir ;;
7717 *) # Relative path.
7718 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7719 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7720esac
924b6140 7721
7722# Do not use `cd foo && pwd` to compute absolute paths, because
7723# the directories may not exist.
7724case `pwd` in
7725.) ac_abs_builddir="$ac_dest_dir";;
7726*)
7727 case "$ac_dest_dir" in
7728 .) ac_abs_builddir=`pwd`;;
7729 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
7730 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
7731 esac;;
7732esac
7733case $ac_abs_builddir in
7734.) ac_abs_top_builddir=${ac_top_builddir}.;;
7735*)
7736 case ${ac_top_builddir}. in
7737 .) ac_abs_top_builddir=$ac_abs_builddir;;
7738 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7739 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7740 esac;;
7741esac
7742case $ac_abs_builddir in
7743.) ac_abs_srcdir=$ac_srcdir;;
7744*)
7745 case $ac_srcdir in
7746 .) ac_abs_srcdir=$ac_abs_builddir;;
7747 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7748 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7749 esac;;
7750esac
7751case $ac_abs_builddir in
7752.) ac_abs_top_srcdir=$ac_top_srcdir;;
7753*)
7754 case $ac_top_srcdir in
7755 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7756 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7757 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7758 esac;;
7759esac
6a161fa9 7760
7761
7762 case $srcdir in
7763 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
7764 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
7765 esac
7766
98d15063 7767 # Try a symlink, then a hard link, then a copy.
6a161fa9 7768 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
98d15063 7769 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
7770 cp -p $srcdir/$ac_source $ac_dest ||
7771 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
7772echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
6a161fa9 7773 { (exit 1); exit 1; }; }
7774done
7775_ACEOF
7776
7777cat >>$CONFIG_STATUS <<\_ACEOF
7778
7779{ (exit 0); exit 0; }
7780_ACEOF
7781chmod +x $CONFIG_STATUS
7782ac_clean_files=$ac_clean_files_save
7783
7784
7785# configure is writing to config.log, and then calls config.status.
7786# config.status does its own redirection, appending to config.log.
7787# Unfortunately, on DOS this fails, as config.log is still kept open
7788# by configure, so config.status won't be able to write to it; its
7789# output is simply discarded. So we exec the FD to /dev/null,
7790# effectively closing config.log, so it can be properly (re)opened and
7791# appended to by config.status. When coming back to configure, we
7792# need to make the FD available again.
7793if test "$no_create" != yes; then
7794 ac_cs_success=:
98d15063 7795 ac_config_status_args=
7796 test "$silent" = yes &&
7797 ac_config_status_args="$ac_config_status_args --quiet"
6a161fa9 7798 exec 5>/dev/null
98d15063 7799 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6a161fa9 7800 exec 5>>config.log
7801 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7802 # would make configure fail if this is the last instruction.
7803 $ac_cs_success || { (exit 1); exit 1; }
7804fi
7805