added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / arch / common / grub2 / configure
blob2b730b61bc5cab0d5cedcc24e4bfa7f7faf4ad09
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GRUB 1.95.
5 # Report bugs to <bug-grub@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for 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
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
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
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
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
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
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 '
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; }; }
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
189 case `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= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='GRUB'
271 PACKAGE_TARNAME='grub'
272 PACKAGE_VERSION='1.95'
273 PACKAGE_STRING='GRUB 1.95'
274 PACKAGE_BUGREPORT='bug-grub@gnu.org'
276 ac_unique_file="include/grub/dl.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
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"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os platform CMP YACC UNIFONT_HEX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK SET_MAKE RUBY CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBLZO TARGET_CC ac_ct_TARGET_CC OBJCOPY ac_ct_OBJCOPY STRIP ac_ct_STRIP NM ac_ct_NM TARGET_CFLAGS TARGET_CPPFLAGS TARGET_LDFLAGS LIBCURSES enable_grub_emu LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
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
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
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 ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
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'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
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 ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
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 ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
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 ;;
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 ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
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'" ;;
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" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
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 ;;
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}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
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
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
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
681 done
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.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo 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=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures GRUB 1.95 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
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 \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
836 Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 System types:
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 --target=TARGET configure for building compilers for TARGET [HOST]
845 _ACEOF
848 if test -n "$ac_init_help"; then
849 case $ac_init_help in
850 short | recursive ) echo "Configuration of GRUB 1.95:";;
851 esac
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-largefile omit support for large files
858 --enable-mm-debug include memory manager debugging
859 --enable-grub-emu build and install the `grub-emu' debugging utility
861 Optional Packages:
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-platform=PLATFORM
865 select the host platform [guessed]
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CPP C preprocessor
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
879 Report bugs to <bug-grub@gnu.org>.
880 _ACEOF
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
885 ac_popdir=`pwd`
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
888 ac_builddir=.
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 else
895 ac_dir_suffix= ac_top_builddir=
898 case $srcdir in
899 .) # No --srcdir option. We are building in place.
900 ac_srcdir=.
901 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=.
903 else
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 fi ;;
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
909 *) # Relative path.
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 esac
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
916 case `pwd` in
917 .) ac_abs_builddir="$ac_dir";;
919 case "$ac_dir" in
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
937 case $ac_srcdir in
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941 esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950 esac;;
951 esac
953 cd $ac_dir
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
956 echo
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
959 echo
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
963 echo
964 $ac_configure --help
965 else
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 cd $ac_popdir
969 done
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
974 cat <<\_ACEOF
975 GRUB configure 1.95
976 generated by GNU Autoconf 2.59
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
981 _ACEOF
982 exit 0
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
989 It was created by GRUB $as_me 1.95, which was
990 generated by GNU Autoconf 2.59. Invocation command line was
992 $ $0 $@
994 _ACEOF
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1018 _ASUNAME
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1023 IFS=$as_save_IFS
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1026 done
1028 } >&5
1030 cat >&5 <<_ACEOF
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1037 _ACEOF
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_configure_args=
1046 ac_configure_args0=
1047 ac_configure_args1=
1048 ac_sep=
1049 ac_must_keep_next=false
1050 for ac_pass in 1 2
1052 for ac_arg
1054 case $ac_arg in
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 continue ;;
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 esac
1062 case $ac_pass in
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
1067 ac_must_keep_next=false # Got value, back to normal.
1068 else
1069 case $ac_arg in
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 esac
1078 -* ) ac_must_keep_next=true ;;
1079 esac
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1083 ac_sep=" "
1085 esac
1086 done
1087 done
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1099 echo
1101 cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106 echo
1107 # The following way of writing the cache mishandles newlines in values,
1109 (set) 2>&1 |
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 *ac_space=\ *)
1112 sed -n \
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117 sed -n \
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 esac;
1122 echo
1124 cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129 echo
1130 for ac_var in $ac_subst_vars
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1137 if test -n "$ac_subst_files"; then
1138 cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_files
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1152 if test -s confdefs.h; then
1153 cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158 echo
1159 sed "/^$/d" confdefs.h | sort
1160 echo
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1165 } >&5
1166 rm -f core *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 exit $exit_status
1170 for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1180 # Predefined preprocessor variables.
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 else
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1216 for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1221 . "$ac_site_file"
1223 done
1225 if test -r "$cache_file"; then
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1231 case $cache_file in
1232 [\\/]* | ?:[\\/]* ) . $cache_file;;
1233 *) . ./$cache_file;;
1234 esac
1236 else
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1239 >$cache_file
1242 # Check that the precious variables saved in the cache have kept the same
1243 # value.
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248 eval ac_new_set=\$ac_env_${ac_var}_set
1249 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1252 set,)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,set)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,);;
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266 echo "$as_me: former value: $ac_old_val" >&2;}
1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268 echo "$as_me: current value: $ac_new_val" >&2;}
1269 ac_cache_corrupted=:
1270 fi;;
1271 esac
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1274 case $ac_new_val in
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1278 esac
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 esac
1284 done
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1293 ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327 ac_config_headers="$ac_config_headers config.h"
1330 # Checks for host and target systems.
1331 ac_aux_dir=
1332 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1333 if test -f $ac_dir/install-sh; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/install-sh -c"
1336 break
1337 elif test -f $ac_dir/install.sh; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/install.sh -c"
1340 break
1341 elif test -f $ac_dir/shtool; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/shtool install -c"
1344 break
1346 done
1347 if test -z "$ac_aux_dir"; then
1348 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1350 { (exit 1); exit 1; }; }
1352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356 # Make sure we can run config.sub.
1357 $ac_config_sub sun4 >/dev/null 2>&1 ||
1358 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1359 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1360 { (exit 1); exit 1; }; }
1362 echo "$as_me:$LINENO: checking build system type" >&5
1363 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1364 if test "${ac_cv_build+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367 ac_cv_build_alias=$build_alias
1368 test -z "$ac_cv_build_alias" &&
1369 ac_cv_build_alias=`$ac_config_guess`
1370 test -z "$ac_cv_build_alias" &&
1371 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1372 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1373 { (exit 1); exit 1; }; }
1374 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1375 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1376 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1377 { (exit 1); exit 1; }; }
1380 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1381 echo "${ECHO_T}$ac_cv_build" >&6
1382 build=$ac_cv_build
1383 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1384 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1385 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388 echo "$as_me:$LINENO: checking host system type" >&5
1389 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1390 if test "${ac_cv_host+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1392 else
1393 ac_cv_host_alias=$host_alias
1394 test -z "$ac_cv_host_alias" &&
1395 ac_cv_host_alias=$ac_cv_build_alias
1396 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1397 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1398 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1399 { (exit 1); exit 1; }; }
1402 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1403 echo "${ECHO_T}$ac_cv_host" >&6
1404 host=$ac_cv_host
1405 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1406 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1407 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1410 echo "$as_me:$LINENO: checking target system type" >&5
1411 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1412 if test "${ac_cv_target+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 else
1415 ac_cv_target_alias=$target_alias
1416 test "x$ac_cv_target_alias" = "x" &&
1417 ac_cv_target_alias=$ac_cv_host_alias
1418 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1419 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1421 { (exit 1); exit 1; }; }
1424 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1425 echo "${ECHO_T}$ac_cv_target" >&6
1426 target=$ac_cv_target
1427 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 # The aliases save the names the user supplied, while $host etc.
1433 # will get canonicalized.
1434 test -n "$target_alias" &&
1435 test "$program_prefix$program_suffix$program_transform_name" = \
1436 NONENONEs,x,x, &&
1437 program_prefix=${target_alias}-
1439 # Program name transformations
1440 test "$program_prefix" != NONE &&
1441 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1442 # Use a double $ so make ignores it.
1443 test "$program_suffix" != NONE &&
1444 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1445 # Double any \ or $. echo might interpret backslashes.
1446 # By default was `s,x,x', remove it if useless.
1447 cat <<\_ACEOF >conftest.sed
1448 s/[\\$]/&&/g;s/;s,x,x,$//
1449 _ACEOF
1450 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1451 rm conftest.sed
1454 case "$host_cpu" in
1455 powerpc64) host_m32=1 ;;
1456 esac
1458 case "$target_cpu" in
1459 i[3456]86) target_cpu=i386 ;;
1460 x86_64) target_cpu=i386 target_m32=1 ;;
1461 powerpc) ;;
1462 powerpc64) target_cpu=powerpc target_m32=1;;
1463 sparc64) ;;
1464 *) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5
1465 echo "$as_me: error: unsupported CPU type" >&2;}
1466 { (exit 1); exit 1; }; } ;;
1467 esac
1469 # Specify the platform (such as firmware).
1471 # Check whether --with-platform or --without-platform was given.
1472 if test "${with_platform+set}" = set; then
1473 withval="$with_platform"
1477 # Guess the platform if not specified.
1478 if test "x$with_platform" = x; then
1479 case "$target_cpu"-"$target_vendor" in
1480 i386-apple) platform=efi ;;
1481 i386-*) platform=pc ;;
1482 powerpc-*) platform=ieee1275 ;;
1483 sparc64-*) platform=ieee1275 ;;
1484 *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
1485 echo "$as_me: error: unsupported machine type" >&2;}
1486 { (exit 1); exit 1; }; } ;;
1487 esac
1488 else
1489 platform="$with_platform"
1492 # Sanity check.
1493 case "$target_cpu"-"$platform" in
1494 i386-efi) ;;
1495 i386-pc) ;;
1496 i386-linuxbios) ;;
1497 powerpc-ieee1275) ;;
1498 sparc64-ieee1275) ;;
1499 *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
1500 echo "$as_me: error: unsupported machine type" >&2;}
1501 { (exit 1); exit 1; }; } ;;
1502 esac
1508 # Checks for build programs.
1511 # Although cmp is listed in the GNU Coding Standards as a command which
1512 # can used directly, OpenBSD lacks cmp in the default installation.
1513 for ac_prog in cmp
1515 # Extract the first word of "$ac_prog", so it can be a program name with args.
1516 set dummy $ac_prog; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CMP+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522 if test -n "$CMP"; then
1523 ac_cv_prog_CMP="$CMP" # Let the user override the test.
1524 else
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CMP="$ac_prog"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 break 2
1536 done
1537 done
1541 CMP=$ac_cv_prog_CMP
1542 if test -n "$CMP"; then
1543 echo "$as_me:$LINENO: result: $CMP" >&5
1544 echo "${ECHO_T}$CMP" >&6
1545 else
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1550 test -n "$CMP" && break
1551 done
1553 if test "x$CMP" = x; then
1554 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
1555 echo "$as_me: error: cmp is not found" >&2;}
1556 { (exit 1); exit 1; }; }
1559 for ac_prog in bison
1561 # Extract the first word of "$ac_prog", so it can be a program name with args.
1562 set dummy $ac_prog; ac_word=$2
1563 echo "$as_me:$LINENO: checking for $ac_word" >&5
1564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565 if test "${ac_cv_prog_YACC+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568 if test -n "$YACC"; then
1569 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1570 else
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 for as_dir in $PATH
1574 IFS=$as_save_IFS
1575 test -z "$as_dir" && as_dir=.
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578 ac_cv_prog_YACC="$ac_prog"
1579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580 break 2
1582 done
1583 done
1587 YACC=$ac_cv_prog_YACC
1588 if test -n "$YACC"; then
1589 echo "$as_me:$LINENO: result: $YACC" >&5
1590 echo "${ECHO_T}$YACC" >&6
1591 else
1592 echo "$as_me:$LINENO: result: no" >&5
1593 echo "${ECHO_T}no" >&6
1596 test -n "$YACC" && break
1597 done
1599 if test "x$YACC" = x; then
1600 { { echo "$as_me:$LINENO: error: bison is not found" >&5
1601 echo "$as_me: error: bison is not found" >&2;}
1602 { (exit 1); exit 1; }; }
1605 for file in /usr/share/unifont/unifont.hex ; do
1606 if test -e $file ; then
1607 UNIFONT_HEX=$file
1609 break
1611 done
1613 # Find a good install program. We prefer a C program (faster),
1614 # so one script is as good as another. But avoid the broken or
1615 # incompatible versions:
1616 # SysV /etc/install, /usr/sbin/install
1617 # SunOS /usr/etc/install
1618 # IRIX /sbin/install
1619 # AIX /bin/install
1620 # AmigaOS /C/install, which installs bootblocks on floppy discs
1621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1624 # OS/2's system install, which has a completely different semantic
1625 # ./install, which can be erroneously created by make from ./install.sh.
1626 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1627 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1628 if test -z "$INSTALL"; then
1629 if test "${ac_cv_path_install+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 else
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 # Account for people who put trailing slashes in PATH elements.
1638 case $as_dir/ in
1639 ./ | .// | /cC/* | \
1640 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1641 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1642 /usr/ucb/* ) ;;
1644 # OSF1 and SCO ODT 3.0 have their own names for install.
1645 # Don't use installbsd from OSF since it installs stuff as root
1646 # by default.
1647 for ac_prog in ginstall scoinst install; do
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1650 if test $ac_prog = install &&
1651 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1652 # AIX install. It has an incompatible calling convention.
1654 elif test $ac_prog = install &&
1655 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1656 # program-specific install script used by HP pwplus--don't use.
1658 else
1659 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1660 break 3
1663 done
1664 done
1666 esac
1667 done
1671 if test "${ac_cv_path_install+set}" = set; then
1672 INSTALL=$ac_cv_path_install
1673 else
1674 # As a last resort, use the slow shell script. We don't cache a
1675 # path for INSTALL within a source directory, because that will
1676 # break other packages using the cache if that directory is
1677 # removed, or if the path is relative.
1678 INSTALL=$ac_install_sh
1681 echo "$as_me:$LINENO: result: $INSTALL" >&5
1682 echo "${ECHO_T}$INSTALL" >&6
1684 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1685 # It thinks the first close brace ends the variable substitution.
1686 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1688 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1690 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1692 for ac_prog in gawk mawk nawk awk
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_AWK+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701 if test -n "$AWK"; then
1702 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_AWK="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1715 done
1716 done
1720 AWK=$ac_cv_prog_AWK
1721 if test -n "$AWK"; then
1722 echo "$as_me:$LINENO: result: $AWK" >&5
1723 echo "${ECHO_T}$AWK" >&6
1724 else
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1729 test -n "$AWK" && break
1730 done
1732 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1733 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1734 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1735 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 else
1738 cat >conftest.make <<\_ACEOF
1739 all:
1740 @echo 'ac_maketemp="$(MAKE)"'
1741 _ACEOF
1742 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1743 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1744 if test -n "$ac_maketemp"; then
1745 eval ac_cv_prog_make_${ac_make}_set=yes
1746 else
1747 eval ac_cv_prog_make_${ac_make}_set=no
1749 rm -f conftest.make
1751 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1752 echo "$as_me:$LINENO: result: yes" >&5
1753 echo "${ECHO_T}yes" >&6
1754 SET_MAKE=
1755 else
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 SET_MAKE="MAKE=${MAKE-make}"
1762 # This is not a "must".
1763 # Extract the first word of "ruby", so it can be a program name with args.
1764 set dummy ruby; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_path_RUBY+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770 case $RUBY in
1771 [\\/]* | ?:[\\/]*)
1772 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1778 IFS=$as_save_IFS
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
1783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 break 2
1786 done
1787 done
1790 esac
1792 RUBY=$ac_cv_path_RUBY
1794 if test -n "$RUBY"; then
1795 echo "$as_me:$LINENO: result: $RUBY" >&5
1796 echo "${ECHO_T}$RUBY" >&6
1797 else
1798 echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1804 # Checks for host programs.
1807 ac_ext=c
1808 ac_cpp='$CPP $CPPFLAGS'
1809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1812 if test -n "$ac_tool_prefix"; then
1813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1814 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1815 echo "$as_me:$LINENO: checking for $ac_word" >&5
1816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817 if test "${ac_cv_prog_CC+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 else
1820 if test -n "$CC"; then
1821 ac_cv_prog_CC="$CC" # Let the user override the test.
1822 else
1823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 for as_dir in $PATH
1826 IFS=$as_save_IFS
1827 test -z "$as_dir" && as_dir=.
1828 for ac_exec_ext in '' $ac_executable_extensions; do
1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 break 2
1834 done
1835 done
1839 CC=$ac_cv_prog_CC
1840 if test -n "$CC"; then
1841 echo "$as_me:$LINENO: result: $CC" >&5
1842 echo "${ECHO_T}$CC" >&6
1843 else
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1849 if test -z "$ac_cv_prog_CC"; then
1850 ac_ct_CC=$CC
1851 # Extract the first word of "gcc", so it can be a program name with args.
1852 set dummy gcc; ac_word=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 else
1858 if test -n "$ac_ct_CC"; then
1859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1860 else
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 for as_dir in $PATH
1864 IFS=$as_save_IFS
1865 test -z "$as_dir" && as_dir=.
1866 for ac_exec_ext in '' $ac_executable_extensions; do
1867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868 ac_cv_prog_ac_ct_CC="gcc"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870 break 2
1872 done
1873 done
1877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1878 if test -n "$ac_ct_CC"; then
1879 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1880 echo "${ECHO_T}$ac_ct_CC" >&6
1881 else
1882 echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1886 CC=$ac_ct_CC
1887 else
1888 CC="$ac_cv_prog_CC"
1891 if test -z "$CC"; then
1892 if test -n "$ac_tool_prefix"; then
1893 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1894 set dummy ${ac_tool_prefix}cc; ac_word=$2
1895 echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897 if test "${ac_cv_prog_CC+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 else
1900 if test -n "$CC"; then
1901 ac_cv_prog_CC="$CC" # Let the user override the test.
1902 else
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_CC="${ac_tool_prefix}cc"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 break 2
1914 done
1915 done
1919 CC=$ac_cv_prog_CC
1920 if test -n "$CC"; then
1921 echo "$as_me:$LINENO: result: $CC" >&5
1922 echo "${ECHO_T}$CC" >&6
1923 else
1924 echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1929 if test -z "$ac_cv_prog_CC"; then
1930 ac_ct_CC=$CC
1931 # Extract the first word of "cc", so it can be a program name with args.
1932 set dummy cc; ac_word=$2
1933 echo "$as_me:$LINENO: checking for $ac_word" >&5
1934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1935 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 else
1938 if test -n "$ac_ct_CC"; then
1939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1940 else
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 for as_dir in $PATH
1944 IFS=$as_save_IFS
1945 test -z "$as_dir" && as_dir=.
1946 for ac_exec_ext in '' $ac_executable_extensions; do
1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948 ac_cv_prog_ac_ct_CC="cc"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 break 2
1952 done
1953 done
1957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1958 if test -n "$ac_ct_CC"; then
1959 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1960 echo "${ECHO_T}$ac_ct_CC" >&6
1961 else
1962 echo "$as_me:$LINENO: result: no" >&5
1963 echo "${ECHO_T}no" >&6
1966 CC=$ac_ct_CC
1967 else
1968 CC="$ac_cv_prog_CC"
1972 if test -z "$CC"; then
1973 # Extract the first word of "cc", so it can be a program name with args.
1974 set dummy cc; ac_word=$2
1975 echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 else
1980 if test -n "$CC"; then
1981 ac_cv_prog_CC="$CC" # Let the user override the test.
1982 else
1983 ac_prog_rejected=no
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1992 ac_prog_rejected=yes
1993 continue
1995 ac_cv_prog_CC="cc"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 break 2
1999 done
2000 done
2002 if test $ac_prog_rejected = yes; then
2003 # We found a bogon in the path, so make sure we never use it.
2004 set dummy $ac_cv_prog_CC
2005 shift
2006 if test $# != 0; then
2007 # We chose a different compiler from the bogus one.
2008 # However, it has the same basename, so the bogon will be chosen
2009 # first if we set CC to just the basename; use the full file name.
2010 shift
2011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2016 CC=$ac_cv_prog_CC
2017 if test -n "$CC"; then
2018 echo "$as_me:$LINENO: result: $CC" >&5
2019 echo "${ECHO_T}$CC" >&6
2020 else
2021 echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6
2026 if test -z "$CC"; then
2027 if test -n "$ac_tool_prefix"; then
2028 for ac_prog in cl
2030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2051 done
2052 done
2056 CC=$ac_cv_prog_CC
2057 if test -n "$CC"; then
2058 echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6
2060 else
2061 echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2065 test -n "$CC" && break
2066 done
2068 if test -z "$CC"; then
2069 ac_ct_CC=$CC
2070 for ac_prog in cl
2072 # Extract the first word of "$ac_prog", so it can be a program name with args.
2073 set dummy $ac_prog; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079 if test -n "$ac_ct_CC"; then
2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089 ac_cv_prog_ac_ct_CC="$ac_prog"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 break 2
2093 done
2094 done
2098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2099 if test -n "$ac_ct_CC"; then
2100 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2101 echo "${ECHO_T}$ac_ct_CC" >&6
2102 else
2103 echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6
2107 test -n "$ac_ct_CC" && break
2108 done
2110 CC=$ac_ct_CC
2116 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2117 See \`config.log' for more details." >&5
2118 echo "$as_me: error: no acceptable C compiler found in \$PATH
2119 See \`config.log' for more details." >&2;}
2120 { (exit 1); exit 1; }; }
2122 # Provide some information about the compiler.
2123 echo "$as_me:$LINENO:" \
2124 "checking for C compiler version" >&5
2125 ac_compiler=`set X $ac_compile; echo $2`
2126 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2127 (eval $ac_compiler --version </dev/null >&5) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }
2131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2132 (eval $ac_compiler -v </dev/null >&5) 2>&5
2133 ac_status=$?
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2137 (eval $ac_compiler -V </dev/null >&5) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2142 cat >conftest.$ac_ext <<_ACEOF
2143 /* confdefs.h. */
2144 _ACEOF
2145 cat confdefs.h >>conftest.$ac_ext
2146 cat >>conftest.$ac_ext <<_ACEOF
2147 /* end confdefs.h. */
2150 main ()
2154 return 0;
2156 _ACEOF
2157 ac_clean_files_save=$ac_clean_files
2158 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2159 # Try to create an executable without -o first, disregard a.out.
2160 # It will help us diagnose broken compilers, and finding out an intuition
2161 # of exeext.
2162 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2163 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2164 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2165 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2166 (eval $ac_link_default) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; then
2170 # Find the output, starting from the most likely. This scheme is
2171 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2172 # resort.
2174 # Be careful to initialize this variable, since it used to be cached.
2175 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2176 ac_cv_exeext=
2177 # b.out is created by i960 compilers.
2178 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2180 test -f "$ac_file" || continue
2181 case $ac_file in
2182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2184 conftest.$ac_ext )
2185 # This is the source file.
2187 [ab].out )
2188 # We found the default executable, but exeext='' is most
2189 # certainly right.
2190 break;;
2191 *.* )
2192 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2193 # FIXME: I believe we export ac_cv_exeext for Libtool,
2194 # but it would be cool to find out if it's true. Does anybody
2195 # maintain Libtool? --akim.
2196 export ac_cv_exeext
2197 break;;
2199 break;;
2200 esac
2201 done
2202 else
2203 echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2206 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&2;}
2210 { (exit 77); exit 77; }; }
2213 ac_exeext=$ac_cv_exeext
2214 echo "$as_me:$LINENO: result: $ac_file" >&5
2215 echo "${ECHO_T}$ac_file" >&6
2217 # Check the compiler produces executables we can run. If not, either
2218 # the compiler is broken, or we cross compile.
2219 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2220 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2221 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2222 # If not cross compiling, check that we can run a simple program.
2223 if test "$cross_compiling" != yes; then
2224 if { ac_try='./$ac_file'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 cross_compiling=no
2231 else
2232 if test "$cross_compiling" = maybe; then
2233 cross_compiling=yes
2234 else
2235 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2245 echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6
2248 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2249 ac_clean_files=$ac_clean_files_save
2250 # Check the compiler produces executables we can run. If not, either
2251 # the compiler is broken, or we cross compile.
2252 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2253 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2254 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2255 echo "${ECHO_T}$cross_compiling" >&6
2257 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2258 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2260 (eval $ac_link) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2266 # work properly (i.e., refer to `conftest.exe'), while it won't with
2267 # `rm'.
2268 for ac_file in conftest.exe conftest conftest.*; do
2269 test -f "$ac_file" || continue
2270 case $ac_file in
2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2272 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273 export ac_cv_exeext
2274 break;;
2275 * ) break;;
2276 esac
2277 done
2278 else
2279 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2280 See \`config.log' for more details." >&5
2281 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&2;}
2283 { (exit 1); exit 1; }; }
2286 rm -f conftest$ac_cv_exeext
2287 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2288 echo "${ECHO_T}$ac_cv_exeext" >&6
2290 rm -f conftest.$ac_ext
2291 EXEEXT=$ac_cv_exeext
2292 ac_exeext=$EXEEXT
2293 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2294 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2295 if test "${ac_cv_objext+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298 cat >conftest.$ac_ext <<_ACEOF
2299 /* confdefs.h. */
2300 _ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2306 main ()
2310 return 0;
2312 _ACEOF
2313 rm -f conftest.o conftest.obj
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; then
2319 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2320 case $ac_file in
2321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323 break;;
2324 esac
2325 done
2326 else
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2330 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2339 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340 echo "${ECHO_T}$ac_cv_objext" >&6
2341 OBJEXT=$ac_cv_objext
2342 ac_objext=$OBJEXT
2343 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2345 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348 cat >conftest.$ac_ext <<_ACEOF
2349 /* confdefs.h. */
2350 _ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2356 main ()
2358 #ifndef __GNUC__
2359 choke me
2360 #endif
2363 return 0;
2365 _ACEOF
2366 rm -f conftest.$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368 (eval $ac_compile) 2>conftest.er1
2369 ac_status=$?
2370 grep -v '^ *+' conftest.er1 >conftest.err
2371 rm -f conftest.er1
2372 cat conftest.err >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 { ac_try='test -z "$ac_c_werror_flag"
2376 || test ! -s conftest.err'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 (eval $ac_try) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; } &&
2382 { ac_try='test -s conftest.$ac_objext'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 (eval $ac_try) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2388 ac_compiler_gnu=yes
2389 else
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2393 ac_compiler_gnu=no
2395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2396 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2399 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2400 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2401 GCC=`test $ac_compiler_gnu = yes && echo yes`
2402 ac_test_CFLAGS=${CFLAGS+set}
2403 ac_save_CFLAGS=$CFLAGS
2404 CFLAGS="-g"
2405 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2406 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2407 if test "${ac_cv_prog_cc_g+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410 cat >conftest.$ac_ext <<_ACEOF
2411 /* confdefs.h. */
2412 _ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h. */
2418 main ()
2422 return 0;
2424 _ACEOF
2425 rm -f conftest.$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>conftest.er1
2428 ac_status=$?
2429 grep -v '^ *+' conftest.er1 >conftest.err
2430 rm -f conftest.er1
2431 cat conftest.err >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try='test -z "$ac_c_werror_flag"
2435 || test ! -s conftest.err'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 (eval $ac_try) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2447 ac_cv_prog_cc_g=yes
2448 else
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2452 ac_cv_prog_cc_g=no
2454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2457 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2458 if test "$ac_test_CFLAGS" = set; then
2459 CFLAGS=$ac_save_CFLAGS
2460 elif test $ac_cv_prog_cc_g = yes; then
2461 if test "$GCC" = yes; then
2462 CFLAGS="-g -O2"
2463 else
2464 CFLAGS="-g"
2466 else
2467 if test "$GCC" = yes; then
2468 CFLAGS="-O2"
2469 else
2470 CFLAGS=
2473 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2474 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2475 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 ac_cv_prog_cc_stdc=no
2479 ac_save_CC=$CC
2480 cat >conftest.$ac_ext <<_ACEOF
2481 /* confdefs.h. */
2482 _ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2486 #include <stdarg.h>
2487 #include <stdio.h>
2488 #include <sys/types.h>
2489 #include <sys/stat.h>
2490 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2491 struct buf { int x; };
2492 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2493 static char *e (p, i)
2494 char **p;
2495 int i;
2497 return p[i];
2499 static char *f (char * (*g) (char **, int), char **p, ...)
2501 char *s;
2502 va_list v;
2503 va_start (v,p);
2504 s = g (p, va_arg (v,int));
2505 va_end (v);
2506 return s;
2509 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2510 function prototypes and stuff, but not '\xHH' hex character constants.
2511 These don't provoke an error unfortunately, instead are silently treated
2512 as 'x'. The following induces an error, until -std1 is added to get
2513 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2514 array size at least. It's necessary to write '\x00'==0 to get something
2515 that's true only with -std1. */
2516 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2518 int test (int i, double x);
2519 struct s1 {int (*f) (int a);};
2520 struct s2 {int (*f) (double a);};
2521 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2522 int argc;
2523 char **argv;
2525 main ()
2527 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2529 return 0;
2531 _ACEOF
2532 # Don't try gcc -ansi; that turns off useful extensions and
2533 # breaks some systems' header files.
2534 # AIX -qlanglvl=ansi
2535 # Ultrix and OSF/1 -std1
2536 # HP-UX 10.20 and later -Ae
2537 # HP-UX older versions -Aa -D_HPUX_SOURCE
2538 # SVR4 -Xc -D__EXTENSIONS__
2539 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2541 CC="$ac_save_CC $ac_arg"
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>conftest.er1
2545 ac_status=$?
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 ac_cv_prog_cc_stdc=$ac_arg
2565 break
2566 else
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2571 rm -f conftest.err conftest.$ac_objext
2572 done
2573 rm -f conftest.$ac_ext conftest.$ac_objext
2574 CC=$ac_save_CC
2578 case "x$ac_cv_prog_cc_stdc" in
2579 x|xno)
2580 echo "$as_me:$LINENO: result: none needed" >&5
2581 echo "${ECHO_T}none needed" >&6 ;;
2583 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2584 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2585 CC="$CC $ac_cv_prog_cc_stdc" ;;
2586 esac
2588 # Some people use a C++ compiler to compile C. Since we use `exit',
2589 # in C++ we need to declare it. In case someone uses the same compiler
2590 # for both compiling C and C++ we need to have the C++ compiler decide
2591 # the declaration of exit, since it's the most demanding environment.
2592 cat >conftest.$ac_ext <<_ACEOF
2593 #ifndef __cplusplus
2594 choke me
2595 #endif
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>conftest.er1
2600 ac_status=$?
2601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag"
2607 || test ! -s conftest.err'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; } &&
2613 { ac_try='test -s conftest.$ac_objext'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 (eval $ac_try) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2619 for ac_declaration in \
2620 '' \
2621 'extern "C" void std::exit (int) throw (); using std::exit;' \
2622 'extern "C" void std::exit (int); using std::exit;' \
2623 'extern "C" void exit (int) throw ();' \
2624 'extern "C" void exit (int);' \
2625 'void exit (int);'
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h. */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2633 $ac_declaration
2634 #include <stdlib.h>
2636 main ()
2638 exit (42);
2640 return 0;
2642 _ACEOF
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>conftest.er1
2646 ac_status=$?
2647 grep -v '^ *+' conftest.er1 >conftest.err
2648 rm -f conftest.er1
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try='test -z "$ac_c_werror_flag"
2653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 (eval $ac_try) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2666 else
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2670 continue
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h. */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2679 $ac_declaration
2681 main ()
2683 exit (42);
2685 return 0;
2687 _ACEOF
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>conftest.er1
2691 ac_status=$?
2692 grep -v '^ *+' conftest.er1 >conftest.err
2693 rm -f conftest.er1
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 { ac_try='test -z "$ac_c_werror_flag"
2698 || test ! -s conftest.err'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 (eval $ac_try) 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; } &&
2704 { ac_try='test -s conftest.$ac_objext'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 (eval $ac_try) 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2710 break
2711 else
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2717 done
2718 rm -f conftest*
2719 if test -n "$ac_declaration"; then
2720 echo '#ifdef __cplusplus' >>confdefs.h
2721 echo $ac_declaration >>confdefs.h
2722 echo '#endif' >>confdefs.h
2725 else
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731 ac_ext=c
2732 ac_cpp='$CPP $CPPFLAGS'
2733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737 # Must be GCC.
2738 test "x$GCC" = xyes || { { echo "$as_me:$LINENO: error: GCC is required" >&5
2739 echo "$as_me: error: GCC is required" >&2;}
2740 { (exit 1); exit 1; }; }
2743 cat >>confdefs.h <<\_ACEOF
2744 #define _GNU_SOURCE 1
2745 _ACEOF
2749 # Check whether --enable-largefile or --disable-largefile was given.
2750 if test "${enable_largefile+set}" = set; then
2751 enableval="$enable_largefile"
2754 if test "$enable_largefile" != no; then
2756 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2757 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2758 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761 ac_cv_sys_largefile_CC=no
2762 if test "$GCC" != yes; then
2763 ac_save_CC=$CC
2764 while :; do
2765 # IRIX 6.2 and later do not support large files by default,
2766 # so use the C compiler's -n32 option if that helps.
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2773 #include <sys/types.h>
2774 /* Check that off_t can represent 2**63 - 1 correctly.
2775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2776 since some C++ compilers masquerading as C compilers
2777 incorrectly reject 9223372036854775807. */
2778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2780 && LARGE_OFF_T % 2147483647 == 1)
2781 ? 1 : -1];
2783 main ()
2787 return 0;
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>conftest.er1
2793 ac_status=$?
2794 grep -v '^ *+' conftest.er1 >conftest.err
2795 rm -f conftest.er1
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
2799 { ac_try='test -z "$ac_c_werror_flag"
2800 || test ! -s conftest.err'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; } &&
2806 { ac_try='test -s conftest.$ac_objext'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 (eval $ac_try) 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2812 break
2813 else
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2818 rm -f conftest.err conftest.$ac_objext
2819 CC="$CC -n32"
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>conftest.er1
2823 ac_status=$?
2824 grep -v '^ *+' conftest.er1 >conftest.err
2825 rm -f conftest.er1
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -z "$ac_c_werror_flag"
2830 || test ! -s conftest.err'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 (eval $ac_try) 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_sys_largefile_CC=' -n32'; break
2843 else
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2848 rm -f conftest.err conftest.$ac_objext
2849 break
2850 done
2851 CC=$ac_save_CC
2852 rm -f conftest.$ac_ext
2855 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2856 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2857 if test "$ac_cv_sys_largefile_CC" != no; then
2858 CC=$CC$ac_cv_sys_largefile_CC
2861 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2862 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2863 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 while :; do
2867 ac_cv_sys_file_offset_bits=no
2868 cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h. */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2874 #include <sys/types.h>
2875 /* Check that off_t can represent 2**63 - 1 correctly.
2876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2877 since some C++ compilers masquerading as C compilers
2878 incorrectly reject 9223372036854775807. */
2879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2881 && LARGE_OFF_T % 2147483647 == 1)
2882 ? 1 : -1];
2884 main ()
2888 return 0;
2890 _ACEOF
2891 rm -f conftest.$ac_objext
2892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2893 (eval $ac_compile) 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -z "$ac_c_werror_flag"
2901 || test ! -s conftest.err'
2902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 (eval $ac_try) 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; } &&
2907 { ac_try='test -s conftest.$ac_objext'
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 (eval $ac_try) 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; }; then
2913 break
2914 else
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h. */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2926 #define _FILE_OFFSET_BITS 64
2927 #include <sys/types.h>
2928 /* Check that off_t can represent 2**63 - 1 correctly.
2929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2930 since some C++ compilers masquerading as C compilers
2931 incorrectly reject 9223372036854775807. */
2932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2934 && LARGE_OFF_T % 2147483647 == 1)
2935 ? 1 : -1];
2937 main ()
2941 return 0;
2943 _ACEOF
2944 rm -f conftest.$ac_objext
2945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2946 (eval $ac_compile) 2>conftest.er1
2947 ac_status=$?
2948 grep -v '^ *+' conftest.er1 >conftest.err
2949 rm -f conftest.er1
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try='test -z "$ac_c_werror_flag"
2954 || test ! -s conftest.err'
2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 (eval $ac_try) 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; } &&
2960 { ac_try='test -s conftest.$ac_objext'
2961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 (eval $ac_try) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; }; then
2966 ac_cv_sys_file_offset_bits=64; break
2967 else
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2973 break
2974 done
2976 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2977 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2978 if test "$ac_cv_sys_file_offset_bits" != no; then
2980 cat >>confdefs.h <<_ACEOF
2981 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2982 _ACEOF
2985 rm -f conftest*
2986 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2987 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2988 if test "${ac_cv_sys_large_files+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 while :; do
2992 ac_cv_sys_large_files=no
2993 cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h. */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
2999 #include <sys/types.h>
3000 /* Check that off_t can represent 2**63 - 1 correctly.
3001 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3002 since some C++ compilers masquerading as C compilers
3003 incorrectly reject 9223372036854775807. */
3004 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3005 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3006 && LARGE_OFF_T % 2147483647 == 1)
3007 ? 1 : -1];
3009 main ()
3013 return 0;
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3018 (eval $ac_compile) 2>conftest.er1
3019 ac_status=$?
3020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_c_werror_flag"
3026 || test ! -s conftest.err'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 (eval $ac_try) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; } &&
3032 { ac_try='test -s conftest.$ac_objext'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 (eval $ac_try) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3038 break
3039 else
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3045 cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h. */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3051 #define _LARGE_FILES 1
3052 #include <sys/types.h>
3053 /* Check that off_t can represent 2**63 - 1 correctly.
3054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3055 since some C++ compilers masquerading as C compilers
3056 incorrectly reject 9223372036854775807. */
3057 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3059 && LARGE_OFF_T % 2147483647 == 1)
3060 ? 1 : -1];
3062 main ()
3066 return 0;
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3071 (eval $ac_compile) 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
3078 { ac_try='test -z "$ac_c_werror_flag"
3079 || test ! -s conftest.err'
3080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081 (eval $ac_try) 2>&5
3082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; } &&
3085 { ac_try='test -s conftest.$ac_objext'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 (eval $ac_try) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3091 ac_cv_sys_large_files=1; break
3092 else
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3098 break
3099 done
3101 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3102 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3103 if test "$ac_cv_sys_large_files" != no; then
3105 cat >>confdefs.h <<_ACEOF
3106 #define _LARGE_FILES $ac_cv_sys_large_files
3107 _ACEOF
3110 rm -f conftest*
3114 # Identify characteristics of the host architecture.
3115 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3116 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3117 if test "${ac_cv_c_bigendian+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120 # See if sys/param.h defines the BYTE_ORDER macro.
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <sys/types.h>
3128 #include <sys/param.h>
3131 main ()
3133 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3134 bogus endian macros
3135 #endif
3138 return 0;
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143 (eval $ac_compile) 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_c_werror_flag"
3151 || test ! -s conftest.err'
3152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 (eval $ac_try) 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 (eval $ac_try) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 # It does; now see whether it defined to BIG_ENDIAN or not.
3164 cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h. */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3170 #include <sys/types.h>
3171 #include <sys/param.h>
3174 main ()
3176 #if BYTE_ORDER != BIG_ENDIAN
3177 not big endian
3178 #endif
3181 return 0;
3183 _ACEOF
3184 rm -f conftest.$ac_objext
3185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3186 (eval $ac_compile) 2>conftest.er1
3187 ac_status=$?
3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag"
3194 || test ! -s conftest.err'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; } &&
3200 { ac_try='test -s conftest.$ac_objext'
3201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202 (eval $ac_try) 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3206 ac_cv_c_bigendian=yes
3207 else
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 ac_cv_c_bigendian=no
3213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3214 else
3215 echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3218 # It does not; compile a test program.
3219 if test "$cross_compiling" = yes; then
3220 # try to guess the endianness by grepping values into an object file
3221 ac_cv_c_bigendian=unknown
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3229 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3230 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3231 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3232 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3233 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3235 main ()
3237 _ascii (); _ebcdic ();
3239 return 0;
3241 _ACEOF
3242 rm -f conftest.$ac_objext
3243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3244 (eval $ac_compile) 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } &&
3251 { ac_try='test -z "$ac_c_werror_flag"
3252 || test ! -s conftest.err'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 (eval $ac_try) 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; } &&
3258 { ac_try='test -s conftest.$ac_objext'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 (eval $ac_try) 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; }; then
3264 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3265 ac_cv_c_bigendian=yes
3267 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3268 if test "$ac_cv_c_bigendian" = unknown; then
3269 ac_cv_c_bigendian=no
3270 else
3271 # finding both strings is unlikely to happen, but who knows?
3272 ac_cv_c_bigendian=unknown
3275 else
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3281 else
3282 cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h. */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3289 main ()
3291 /* Are we little or big endian? From Harbison&Steele. */
3292 union
3294 long l;
3295 char c[sizeof (long)];
3296 } u;
3297 u.l = 1;
3298 exit (u.c[sizeof (long) - 1] == 1);
3300 _ACEOF
3301 rm -f conftest$ac_exeext
3302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3303 (eval $ac_link) 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308 (eval $ac_try) 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 ac_cv_c_bigendian=no
3313 else
3314 echo "$as_me: program exited with status $ac_status" >&5
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 ( exit $ac_status )
3319 ac_cv_c_bigendian=yes
3321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3326 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3327 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3328 case $ac_cv_c_bigendian in
3329 yes)
3331 cat >>confdefs.h <<\_ACEOF
3332 #define WORDS_BIGENDIAN 1
3333 _ACEOF
3338 { { echo "$as_me:$LINENO: error: unknown endianness
3339 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3340 echo "$as_me: error: unknown endianness
3341 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3342 { (exit 1); exit 1; }; } ;;
3343 esac
3345 ac_ext=c
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3351 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3352 # On Suns, sometimes $CPP names a directory.
3353 if test -n "$CPP" && test -d "$CPP"; then
3354 CPP=
3356 if test -z "$CPP"; then
3357 if test "${ac_cv_prog_CPP+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 # Double quotes because CPP needs to be expanded
3361 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3363 ac_preproc_ok=false
3364 for ac_c_preproc_warn_flag in '' yes
3366 # Use a header file that comes with gcc, so configuring glibc
3367 # with a fresh cross-compiler works.
3368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3369 # <limits.h> exists even on freestanding compilers.
3370 # On the NeXT, cc -E runs the code through the compiler's parser,
3371 # not just through cpp. "Syntax error" is here to catch this case.
3372 cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h. */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3378 #ifdef __STDC__
3379 # include <limits.h>
3380 #else
3381 # include <assert.h>
3382 #endif
3383 Syntax error
3384 _ACEOF
3385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } >/dev/null; then
3393 if test -s conftest.err; then
3394 ac_cpp_err=$ac_c_preproc_warn_flag
3395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3396 else
3397 ac_cpp_err=
3399 else
3400 ac_cpp_err=yes
3402 if test -z "$ac_cpp_err"; then
3404 else
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 # Broken: fails on valid input.
3409 continue
3411 rm -f conftest.err conftest.$ac_ext
3413 # OK, works on sane cases. Now check whether non-existent headers
3414 # can be detected and how.
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #include <ac_nonexistent.h>
3422 _ACEOF
3423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3425 ac_status=$?
3426 grep -v '^ *+' conftest.er1 >conftest.err
3427 rm -f conftest.er1
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } >/dev/null; then
3431 if test -s conftest.err; then
3432 ac_cpp_err=$ac_c_preproc_warn_flag
3433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3434 else
3435 ac_cpp_err=
3437 else
3438 ac_cpp_err=yes
3440 if test -z "$ac_cpp_err"; then
3441 # Broken: success on invalid input.
3442 continue
3443 else
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 # Passes both tests.
3448 ac_preproc_ok=:
3449 break
3451 rm -f conftest.err conftest.$ac_ext
3453 done
3454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3455 rm -f conftest.err conftest.$ac_ext
3456 if $ac_preproc_ok; then
3457 break
3460 done
3461 ac_cv_prog_CPP=$CPP
3464 CPP=$ac_cv_prog_CPP
3465 else
3466 ac_cv_prog_CPP=$CPP
3468 echo "$as_me:$LINENO: result: $CPP" >&5
3469 echo "${ECHO_T}$CPP" >&6
3470 ac_preproc_ok=false
3471 for ac_c_preproc_warn_flag in '' yes
3473 # Use a header file that comes with gcc, so configuring glibc
3474 # with a fresh cross-compiler works.
3475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3476 # <limits.h> exists even on freestanding compilers.
3477 # On the NeXT, cc -E runs the code through the compiler's parser,
3478 # not just through cpp. "Syntax error" is here to catch this case.
3479 cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h. */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3485 #ifdef __STDC__
3486 # include <limits.h>
3487 #else
3488 # include <assert.h>
3489 #endif
3490 Syntax error
3491 _ACEOF
3492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3494 ac_status=$?
3495 grep -v '^ *+' conftest.er1 >conftest.err
3496 rm -f conftest.er1
3497 cat conftest.err >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } >/dev/null; then
3500 if test -s conftest.err; then
3501 ac_cpp_err=$ac_c_preproc_warn_flag
3502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3503 else
3504 ac_cpp_err=
3506 else
3507 ac_cpp_err=yes
3509 if test -z "$ac_cpp_err"; then
3511 else
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3515 # Broken: fails on valid input.
3516 continue
3518 rm -f conftest.err conftest.$ac_ext
3520 # OK, works on sane cases. Now check whether non-existent headers
3521 # can be detected and how.
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h. */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #include <ac_nonexistent.h>
3529 _ACEOF
3530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } >/dev/null; then
3538 if test -s conftest.err; then
3539 ac_cpp_err=$ac_c_preproc_warn_flag
3540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3541 else
3542 ac_cpp_err=
3544 else
3545 ac_cpp_err=yes
3547 if test -z "$ac_cpp_err"; then
3548 # Broken: success on invalid input.
3549 continue
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 # Passes both tests.
3555 ac_preproc_ok=:
3556 break
3558 rm -f conftest.err conftest.$ac_ext
3560 done
3561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3562 rm -f conftest.err conftest.$ac_ext
3563 if $ac_preproc_ok; then
3565 else
3566 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3567 See \`config.log' for more details." >&5
3568 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3569 See \`config.log' for more details." >&2;}
3570 { (exit 1); exit 1; }; }
3573 ac_ext=c
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580 echo "$as_me:$LINENO: checking for egrep" >&5
3581 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3582 if test "${ac_cv_prog_egrep+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3586 then ac_cv_prog_egrep='grep -E'
3587 else ac_cv_prog_egrep='egrep'
3590 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3591 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3592 EGREP=$ac_cv_prog_egrep
3595 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3596 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3597 if test "${ac_cv_header_stdc+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600 cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h. */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <stdlib.h>
3607 #include <stdarg.h>
3608 #include <string.h>
3609 #include <float.h>
3612 main ()
3616 return 0;
3618 _ACEOF
3619 rm -f conftest.$ac_objext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3621 (eval $ac_compile) 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } &&
3628 { ac_try='test -z "$ac_c_werror_flag"
3629 || test ! -s conftest.err'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 (eval $ac_try) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; } &&
3635 { ac_try='test -s conftest.$ac_objext'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 (eval $ac_try) 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 ac_cv_header_stdc=yes
3642 else
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3646 ac_cv_header_stdc=no
3648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3650 if test $ac_cv_header_stdc = yes; then
3651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 #include <string.h>
3660 _ACEOF
3661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3662 $EGREP "memchr" >/dev/null 2>&1; then
3664 else
3665 ac_cv_header_stdc=no
3667 rm -f conftest*
3671 if test $ac_cv_header_stdc = yes; then
3672 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3673 cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h. */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3679 #include <stdlib.h>
3681 _ACEOF
3682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3683 $EGREP "free" >/dev/null 2>&1; then
3685 else
3686 ac_cv_header_stdc=no
3688 rm -f conftest*
3692 if test $ac_cv_header_stdc = yes; then
3693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3694 if test "$cross_compiling" = yes; then
3696 else
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 #include <ctype.h>
3704 #if ((' ' & 0x0FF) == 0x020)
3705 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3706 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3707 #else
3708 # define ISLOWER(c) \
3709 (('a' <= (c) && (c) <= 'i') \
3710 || ('j' <= (c) && (c) <= 'r') \
3711 || ('s' <= (c) && (c) <= 'z'))
3712 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3713 #endif
3715 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3717 main ()
3719 int i;
3720 for (i = 0; i < 256; i++)
3721 if (XOR (islower (i), ISLOWER (i))
3722 || toupper (i) != TOUPPER (i))
3723 exit(2);
3724 exit (0);
3726 _ACEOF
3727 rm -f conftest$ac_exeext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729 (eval $ac_link) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 (eval $ac_try) 2>&5
3735 ac_status=$?
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; }; then
3739 else
3740 echo "$as_me: program exited with status $ac_status" >&5
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3744 ( exit $ac_status )
3745 ac_cv_header_stdc=no
3747 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3751 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3752 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3753 if test $ac_cv_header_stdc = yes; then
3755 cat >>confdefs.h <<\_ACEOF
3756 #define STDC_HEADERS 1
3757 _ACEOF
3761 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3771 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3772 inttypes.h stdint.h unistd.h
3774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3775 echo "$as_me:$LINENO: checking for $ac_header" >&5
3776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780 cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h. */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3786 $ac_includes_default
3788 #include <$ac_header>
3789 _ACEOF
3790 rm -f conftest.$ac_objext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792 (eval $ac_compile) 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag"
3800 || test ! -s conftest.err'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; } &&
3806 { ac_try='test -s conftest.$ac_objext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 (eval $ac_try) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 eval "$as_ac_Header=yes"
3813 else
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3817 eval "$as_ac_Header=no"
3819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3824 cat >>confdefs.h <<_ACEOF
3825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3826 _ACEOF
3830 done
3833 echo "$as_me:$LINENO: checking for void *" >&5
3834 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3835 if test "${ac_cv_type_void_p+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 $ac_includes_default
3846 main ()
3848 if ((void * *) 0)
3849 return 0;
3850 if (sizeof (void *))
3851 return 0;
3853 return 0;
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858 (eval $ac_compile) 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag"
3866 || test ! -s conftest.err'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 (eval $ac_try) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; } &&
3872 { ac_try='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 (eval $ac_try) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 ac_cv_type_void_p=yes
3879 else
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3883 ac_cv_type_void_p=no
3885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3888 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3890 echo "$as_me:$LINENO: checking size of void *" >&5
3891 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3892 if test "${ac_cv_sizeof_void_p+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 if test "$ac_cv_type_void_p" = yes; then
3896 # The cast to unsigned long works around a bug in the HP C Compiler
3897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3899 # This bug is HP SR number 8606223364.
3900 if test "$cross_compiling" = yes; then
3901 # Depending upon the size, compute the lo and hi bounds.
3902 cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h. */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3908 $ac_includes_default
3910 main ()
3912 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3913 test_array [0] = 0
3916 return 0;
3918 _ACEOF
3919 rm -f conftest.$ac_objext
3920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3921 (eval $ac_compile) 2>conftest.er1
3922 ac_status=$?
3923 grep -v '^ *+' conftest.er1 >conftest.err
3924 rm -f conftest.er1
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } &&
3928 { ac_try='test -z "$ac_c_werror_flag"
3929 || test ! -s conftest.err'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 (eval $ac_try) 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; } &&
3935 { ac_try='test -s conftest.$ac_objext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 (eval $ac_try) 2>&5
3938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 ac_lo=0 ac_mid=0
3942 while :; do
3943 cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h. */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 $ac_includes_default
3951 main ()
3953 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3954 test_array [0] = 0
3957 return 0;
3959 _ACEOF
3960 rm -f conftest.$ac_objext
3961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962 (eval $ac_compile) 2>conftest.er1
3963 ac_status=$?
3964 grep -v '^ *+' conftest.er1 >conftest.err
3965 rm -f conftest.er1
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } &&
3969 { ac_try='test -z "$ac_c_werror_flag"
3970 || test ! -s conftest.err'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; } &&
3976 { ac_try='test -s conftest.$ac_objext'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_hi=$ac_mid; break
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 ac_lo=`expr $ac_mid + 1`
3988 if test $ac_lo -le $ac_mid; then
3989 ac_lo= ac_hi=
3990 break
3992 ac_mid=`expr 2 '*' $ac_mid + 1`
3994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995 done
3996 else
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 $ac_includes_default
4008 main ()
4010 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4011 test_array [0] = 0
4014 return 0;
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4039 ac_hi=-1 ac_mid=-1
4040 while :; do
4041 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h. */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 $ac_includes_default
4049 main ()
4051 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4052 test_array [0] = 0
4055 return 0;
4057 _ACEOF
4058 rm -f conftest.$ac_objext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_c_werror_flag"
4068 || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_lo=$ac_mid; break
4081 else
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 ac_hi=`expr '(' $ac_mid ')' - 1`
4086 if test $ac_mid -le $ac_hi; then
4087 ac_lo= ac_hi=
4088 break
4090 ac_mid=`expr 2 '*' $ac_mid`
4092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4093 done
4094 else
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 ac_lo= ac_hi=
4100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4103 # Binary search between lo and hi bounds.
4104 while test "x$ac_lo" != "x$ac_hi"; do
4105 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4106 cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h. */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 $ac_includes_default
4114 main ()
4116 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4117 test_array [0] = 0
4120 return 0;
4122 _ACEOF
4123 rm -f conftest.$ac_objext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125 (eval $ac_compile) 2>conftest.er1
4126 ac_status=$?
4127 grep -v '^ *+' conftest.er1 >conftest.err
4128 rm -f conftest.er1
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } &&
4132 { ac_try='test -z "$ac_c_werror_flag"
4133 || test ! -s conftest.err'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 (eval $ac_try) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; } &&
4139 { ac_try='test -s conftest.$ac_objext'
4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 (eval $ac_try) 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 ac_hi=$ac_mid
4146 else
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4150 ac_lo=`expr '(' $ac_mid ')' + 1`
4152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4153 done
4154 case $ac_lo in
4155 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4156 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4157 See \`config.log' for more details." >&5
4158 echo "$as_me: error: cannot compute sizeof (void *), 77
4159 See \`config.log' for more details." >&2;}
4160 { (exit 1); exit 1; }; } ;;
4161 esac
4162 else
4163 if test "$cross_compiling" = yes; then
4164 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4165 See \`config.log' for more details." >&5
4166 echo "$as_me: error: cannot run test program while cross compiling
4167 See \`config.log' for more details." >&2;}
4168 { (exit 1); exit 1; }; }
4169 else
4170 cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h. */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4176 $ac_includes_default
4177 long longval () { return (long) (sizeof (void *)); }
4178 unsigned long ulongval () { return (long) (sizeof (void *)); }
4179 #include <stdio.h>
4180 #include <stdlib.h>
4182 main ()
4185 FILE *f = fopen ("conftest.val", "w");
4186 if (! f)
4187 exit (1);
4188 if (((long) (sizeof (void *))) < 0)
4190 long i = longval ();
4191 if (i != ((long) (sizeof (void *))))
4192 exit (1);
4193 fprintf (f, "%ld\n", i);
4195 else
4197 unsigned long i = ulongval ();
4198 if (i != ((long) (sizeof (void *))))
4199 exit (1);
4200 fprintf (f, "%lu\n", i);
4202 exit (ferror (f) || fclose (f) != 0);
4205 return 0;
4207 _ACEOF
4208 rm -f conftest$ac_exeext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4210 (eval $ac_link) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 (eval $ac_try) 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
4219 ac_cv_sizeof_void_p=`cat conftest.val`
4220 else
4221 echo "$as_me: program exited with status $ac_status" >&5
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4225 ( exit $ac_status )
4226 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4227 See \`config.log' for more details." >&5
4228 echo "$as_me: error: cannot compute sizeof (void *), 77
4229 See \`config.log' for more details." >&2;}
4230 { (exit 1); exit 1; }; }
4232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4235 rm -f conftest.val
4236 else
4237 ac_cv_sizeof_void_p=0
4240 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4241 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4242 cat >>confdefs.h <<_ACEOF
4243 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4244 _ACEOF
4247 echo "$as_me:$LINENO: checking for long" >&5
4248 echo $ECHO_N "checking for long... $ECHO_C" >&6
4249 if test "${ac_cv_type_long+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 else
4252 cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h. */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 $ac_includes_default
4260 main ()
4262 if ((long *) 0)
4263 return 0;
4264 if (sizeof (long))
4265 return 0;
4267 return 0;
4269 _ACEOF
4270 rm -f conftest.$ac_objext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272 (eval $ac_compile) 2>conftest.er1
4273 ac_status=$?
4274 grep -v '^ *+' conftest.er1 >conftest.err
4275 rm -f conftest.er1
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try='test -z "$ac_c_werror_flag"
4280 || test ! -s conftest.err'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; } &&
4286 { ac_try='test -s conftest.$ac_objext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 (eval $ac_try) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 ac_cv_type_long=yes
4293 else
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4297 ac_cv_type_long=no
4299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4301 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4302 echo "${ECHO_T}$ac_cv_type_long" >&6
4304 echo "$as_me:$LINENO: checking size of long" >&5
4305 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4306 if test "${ac_cv_sizeof_long+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 else
4309 if test "$ac_cv_type_long" = yes; then
4310 # The cast to unsigned long works around a bug in the HP C Compiler
4311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4313 # This bug is HP SR number 8606223364.
4314 if test "$cross_compiling" = yes; then
4315 # Depending upon the size, compute the lo and hi bounds.
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 $ac_includes_default
4324 main ()
4326 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4327 test_array [0] = 0
4330 return 0;
4332 _ACEOF
4333 rm -f conftest.$ac_objext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335 (eval $ac_compile) 2>conftest.er1
4336 ac_status=$?
4337 grep -v '^ *+' conftest.er1 >conftest.err
4338 rm -f conftest.er1
4339 cat conftest.err >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try='test -z "$ac_c_werror_flag"
4343 || test ! -s conftest.err'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; } &&
4349 { ac_try='test -s conftest.$ac_objext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 ac_lo=0 ac_mid=0
4356 while :; do
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 $ac_includes_default
4365 main ()
4367 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4368 test_array [0] = 0
4371 return 0;
4373 _ACEOF
4374 rm -f conftest.$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -z "$ac_c_werror_flag"
4384 || test ! -s conftest.err'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try='test -s conftest.$ac_objext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 ac_hi=$ac_mid; break
4397 else
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 ac_lo=`expr $ac_mid + 1`
4402 if test $ac_lo -le $ac_mid; then
4403 ac_lo= ac_hi=
4404 break
4406 ac_mid=`expr 2 '*' $ac_mid + 1`
4408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4409 done
4410 else
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 $ac_includes_default
4422 main ()
4424 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4425 test_array [0] = 0
4428 return 0;
4430 _ACEOF
4431 rm -f conftest.$ac_objext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -z "$ac_c_werror_flag"
4441 || test ! -s conftest.err'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 ac_hi=-1 ac_mid=-1
4454 while :; do
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 $ac_includes_default
4463 main ()
4465 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4466 test_array [0] = 0
4469 return 0;
4471 _ACEOF
4472 rm -f conftest.$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>conftest.er1
4475 ac_status=$?
4476 grep -v '^ *+' conftest.er1 >conftest.err
4477 rm -f conftest.er1
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try='test -z "$ac_c_werror_flag"
4482 || test ! -s conftest.err'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 (eval $ac_try) 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; } &&
4488 { ac_try='test -s conftest.$ac_objext'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 (eval $ac_try) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 ac_lo=$ac_mid; break
4495 else
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4499 ac_hi=`expr '(' $ac_mid ')' - 1`
4500 if test $ac_mid -le $ac_hi; then
4501 ac_lo= ac_hi=
4502 break
4504 ac_mid=`expr 2 '*' $ac_mid`
4506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4507 done
4508 else
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4512 ac_lo= ac_hi=
4514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4517 # Binary search between lo and hi bounds.
4518 while test "x$ac_lo" != "x$ac_hi"; do
4519 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4520 cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h. */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 $ac_includes_default
4528 main ()
4530 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4531 test_array [0] = 0
4534 return 0;
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>conftest.er1
4540 ac_status=$?
4541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -z "$ac_c_werror_flag"
4547 || test ! -s conftest.err'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try='test -s conftest.$ac_objext'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4559 ac_hi=$ac_mid
4560 else
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 ac_lo=`expr '(' $ac_mid ')' + 1`
4566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4567 done
4568 case $ac_lo in
4569 ?*) ac_cv_sizeof_long=$ac_lo;;
4570 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4571 See \`config.log' for more details." >&5
4572 echo "$as_me: error: cannot compute sizeof (long), 77
4573 See \`config.log' for more details." >&2;}
4574 { (exit 1); exit 1; }; } ;;
4575 esac
4576 else
4577 if test "$cross_compiling" = yes; then
4578 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4579 See \`config.log' for more details." >&5
4580 echo "$as_me: error: cannot run test program while cross compiling
4581 See \`config.log' for more details." >&2;}
4582 { (exit 1); exit 1; }; }
4583 else
4584 cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 $ac_includes_default
4591 long longval () { return (long) (sizeof (long)); }
4592 unsigned long ulongval () { return (long) (sizeof (long)); }
4593 #include <stdio.h>
4594 #include <stdlib.h>
4596 main ()
4599 FILE *f = fopen ("conftest.val", "w");
4600 if (! f)
4601 exit (1);
4602 if (((long) (sizeof (long))) < 0)
4604 long i = longval ();
4605 if (i != ((long) (sizeof (long))))
4606 exit (1);
4607 fprintf (f, "%ld\n", i);
4609 else
4611 unsigned long i = ulongval ();
4612 if (i != ((long) (sizeof (long))))
4613 exit (1);
4614 fprintf (f, "%lu\n", i);
4616 exit (ferror (f) || fclose (f) != 0);
4619 return 0;
4621 _ACEOF
4622 rm -f conftest$ac_exeext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4624 (eval $ac_link) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 ac_cv_sizeof_long=`cat conftest.val`
4634 else
4635 echo "$as_me: program exited with status $ac_status" >&5
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4639 ( exit $ac_status )
4640 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4641 See \`config.log' for more details." >&5
4642 echo "$as_me: error: cannot compute sizeof (long), 77
4643 See \`config.log' for more details." >&2;}
4644 { (exit 1); exit 1; }; }
4646 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4649 rm -f conftest.val
4650 else
4651 ac_cv_sizeof_long=0
4654 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4655 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4656 cat >>confdefs.h <<_ACEOF
4657 #define SIZEOF_LONG $ac_cv_sizeof_long
4658 _ACEOF
4662 if test "x$host_m32" = x1; then
4663 # Force 32-bit mode.
4664 CFLAGS="$CFLAGS -m32"
4665 LDFLAGS="$LDFLAGS -m32"
4668 # Check LZO when compiling for the i386-pc.
4669 if test "$target_cpu"-"$platform" = i386-pc; then
4670 # There are three possibilities. LZO version 2 installed with the name
4671 # liblzo2, with the name liblzo, and LZO version 1.
4672 echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
4673 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6
4674 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 ac_check_lib_save_LIBS=$LIBS
4678 LIBS="-llzo2 $LIBS"
4679 cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h. */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4686 /* Override any gcc2 internal prototype to avoid an error. */
4687 #ifdef __cplusplus
4688 extern "C"
4689 #endif
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4692 char __lzo_init_v2 ();
4694 main ()
4696 __lzo_init_v2 ();
4698 return 0;
4700 _ACEOF
4701 rm -f conftest.$ac_objext conftest$ac_exeext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4703 (eval $ac_link) 2>conftest.er1
4704 ac_status=$?
4705 grep -v '^ *+' conftest.er1 >conftest.err
4706 rm -f conftest.er1
4707 cat conftest.err >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -z "$ac_c_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_cv_lib_lzo2___lzo_init_v2=yes
4724 else
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_cv_lib_lzo2___lzo_init_v2=no
4730 rm -f conftest.err conftest.$ac_objext \
4731 conftest$ac_exeext conftest.$ac_ext
4732 LIBS=$ac_check_lib_save_LIBS
4734 echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
4735 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6
4736 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
4737 LIBLZO="-llzo2"
4738 else
4739 echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
4740 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6
4741 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744 ac_check_lib_save_LIBS=$LIBS
4745 LIBS="-llzo $LIBS"
4746 cat >conftest.$ac_ext <<_ACEOF
4747 /* confdefs.h. */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4753 /* Override any gcc2 internal prototype to avoid an error. */
4754 #ifdef __cplusplus
4755 extern "C"
4756 #endif
4757 /* We use char because int might match the return type of a gcc2
4758 builtin and then its argument prototype would still apply. */
4759 char __lzo_init_v2 ();
4761 main ()
4763 __lzo_init_v2 ();
4765 return 0;
4767 _ACEOF
4768 rm -f conftest.$ac_objext conftest$ac_exeext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4770 (eval $ac_link) 2>conftest.er1
4771 ac_status=$?
4772 grep -v '^ *+' conftest.er1 >conftest.err
4773 rm -f conftest.er1
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -z "$ac_c_werror_flag"
4778 || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 (eval $ac_try) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest$ac_exeext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_cv_lib_lzo___lzo_init_v2=yes
4791 else
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4795 ac_cv_lib_lzo___lzo_init_v2=no
4797 rm -f conftest.err conftest.$ac_objext \
4798 conftest$ac_exeext conftest.$ac_ext
4799 LIBS=$ac_check_lib_save_LIBS
4801 echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
4802 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6
4803 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
4804 LIBLZO="-llzo"
4805 else
4806 echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
4807 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6
4808 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811 ac_check_lib_save_LIBS=$LIBS
4812 LIBS="-llzo $LIBS"
4813 cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h. */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 #ifdef __cplusplus
4822 extern "C"
4823 #endif
4824 /* We use char because int might match the return type of a gcc2
4825 builtin and then its argument prototype would still apply. */
4826 char __lzo_init2 ();
4828 main ()
4830 __lzo_init2 ();
4832 return 0;
4834 _ACEOF
4835 rm -f conftest.$ac_objext conftest$ac_exeext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4837 (eval $ac_link) 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try='test -z "$ac_c_werror_flag"
4845 || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 (eval $ac_try) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try='test -s conftest$ac_exeext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 ac_cv_lib_lzo___lzo_init2=yes
4858 else
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4862 ac_cv_lib_lzo___lzo_init2=no
4864 rm -f conftest.err conftest.$ac_objext \
4865 conftest$ac_exeext conftest.$ac_ext
4866 LIBS=$ac_check_lib_save_LIBS
4868 echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
4869 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6
4870 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
4871 LIBLZO="-llzo"
4872 else
4873 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
4874 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
4875 { (exit 1); exit 1; }; }
4883 LIBS="$LIBS $LIBLZO"
4884 echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
4885 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6
4886 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889 cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h. */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4895 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
4896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4897 #define lzo1x_999_compress innocuous_lzo1x_999_compress
4899 /* System header to define __stub macros and hopefully few prototypes,
4900 which can conflict with char lzo1x_999_compress (); below.
4901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4902 <limits.h> exists even on freestanding compilers. */
4904 #ifdef __STDC__
4905 # include <limits.h>
4906 #else
4907 # include <assert.h>
4908 #endif
4910 #undef lzo1x_999_compress
4912 /* Override any gcc2 internal prototype to avoid an error. */
4913 #ifdef __cplusplus
4914 extern "C"
4916 #endif
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4919 char lzo1x_999_compress ();
4920 /* The GNU C library defines this for functions which it implements
4921 to always fail with ENOSYS. Some functions are actually named
4922 something starting with __ and the normal name is an alias. */
4923 #if defined (__stub_lzo1x_999_compress) || defined (__stub___lzo1x_999_compress)
4924 choke me
4925 #else
4926 char (*f) () = lzo1x_999_compress;
4927 #endif
4928 #ifdef __cplusplus
4930 #endif
4933 main ()
4935 return f != lzo1x_999_compress;
4937 return 0;
4939 _ACEOF
4940 rm -f conftest.$ac_objext conftest$ac_exeext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4942 (eval $ac_link) 2>conftest.er1
4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try='test -z "$ac_c_werror_flag"
4950 || test ! -s conftest.err'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
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_exeext'
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_func_lzo1x_999_compress=yes
4963 else
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4967 ac_cv_func_lzo1x_999_compress=no
4969 rm -f conftest.err conftest.$ac_objext \
4970 conftest$ac_exeext conftest.$ac_ext
4972 echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
4973 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6
4974 if test $ac_cv_func_lzo1x_999_compress = yes; then
4976 else
4977 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
4978 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
4979 { (exit 1); exit 1; }; }
4983 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
4986 for ac_header in lzo/lzo1x.h lzo1x.h
4988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4990 echo "$as_me:$LINENO: checking for $ac_header" >&5
4991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4997 else
4998 # Is the header compilable?
4999 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5001 cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h. */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 $ac_includes_default
5008 #include <$ac_header>
5009 _ACEOF
5010 rm -f conftest.$ac_objext
5011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5012 (eval $ac_compile) 2>conftest.er1
5013 ac_status=$?
5014 grep -v '^ *+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } &&
5019 { ac_try='test -z "$ac_c_werror_flag"
5020 || test ! -s conftest.err'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 (eval $ac_try) 2>&5
5023 ac_status=$?
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; } &&
5026 { ac_try='test -s conftest.$ac_objext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 (eval $ac_try) 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 ac_header_compiler=yes
5033 else
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5037 ac_header_compiler=no
5039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5041 echo "${ECHO_T}$ac_header_compiler" >&6
5043 # Is the header present?
5044 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5046 cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 #include <$ac_header>
5053 _ACEOF
5054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } >/dev/null; then
5062 if test -s conftest.err; then
5063 ac_cpp_err=$ac_c_preproc_warn_flag
5064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5065 else
5066 ac_cpp_err=
5068 else
5069 ac_cpp_err=yes
5071 if test -z "$ac_cpp_err"; then
5072 ac_header_preproc=yes
5073 else
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5077 ac_header_preproc=no
5079 rm -f conftest.err conftest.$ac_ext
5080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5081 echo "${ECHO_T}$ac_header_preproc" >&6
5083 # So? What about this header?
5084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5085 yes:no: )
5086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5090 ac_header_preproc=yes
5092 no:yes:* )
5093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5106 cat <<\_ASBOX
5107 ## ------------------------------- ##
5108 ## Report this to bug-grub@gnu.org ##
5109 ## ------------------------------- ##
5110 _ASBOX
5112 sed "s/^/$as_me: WARNING: /" >&2
5114 esac
5115 echo "$as_me:$LINENO: checking for $ac_header" >&5
5116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120 eval "$as_ac_Header=\$ac_header_preproc"
5122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5127 cat >>confdefs.h <<_ACEOF
5128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5129 _ACEOF
5133 done
5137 # Check for functions.
5140 for ac_func in posix_memalign memalign
5142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5143 echo "$as_me:$LINENO: checking for $ac_func" >&5
5144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5145 if eval "test \"\${$as_ac_var+set}\" = set"; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148 cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h. */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5156 #define $ac_func innocuous_$ac_func
5158 /* System header to define __stub macros and hopefully few prototypes,
5159 which can conflict with char $ac_func (); below.
5160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5161 <limits.h> exists even on freestanding compilers. */
5163 #ifdef __STDC__
5164 # include <limits.h>
5165 #else
5166 # include <assert.h>
5167 #endif
5169 #undef $ac_func
5171 /* Override any gcc2 internal prototype to avoid an error. */
5172 #ifdef __cplusplus
5173 extern "C"
5175 #endif
5176 /* We use char because int might match the return type of a gcc2
5177 builtin and then its argument prototype would still apply. */
5178 char $ac_func ();
5179 /* The GNU C library defines this for functions which it implements
5180 to always fail with ENOSYS. Some functions are actually named
5181 something starting with __ and the normal name is an alias. */
5182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5183 choke me
5184 #else
5185 char (*f) () = $ac_func;
5186 #endif
5187 #ifdef __cplusplus
5189 #endif
5192 main ()
5194 return f != $ac_func;
5196 return 0;
5198 _ACEOF
5199 rm -f conftest.$ac_objext conftest$ac_exeext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5201 (eval $ac_link) 2>conftest.er1
5202 ac_status=$?
5203 grep -v '^ *+' conftest.er1 >conftest.err
5204 rm -f conftest.er1
5205 cat conftest.err >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } &&
5208 { ac_try='test -z "$ac_c_werror_flag"
5209 || test ! -s conftest.err'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; } &&
5215 { ac_try='test -s conftest$ac_exeext'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 (eval $ac_try) 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5221 eval "$as_ac_var=yes"
5222 else
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5226 eval "$as_ac_var=no"
5228 rm -f conftest.err conftest.$ac_objext \
5229 conftest$ac_exeext conftest.$ac_ext
5231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5233 if test `eval echo '${'$as_ac_var'}'` = yes; then
5234 cat >>confdefs.h <<_ACEOF
5235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5236 _ACEOF
5239 done
5243 # Check for target programs.
5246 # For cross-compiling.
5247 if test "x$target" != "x$host"; then
5248 # XXX this depends on the implementation of autoconf!
5249 tmp_ac_tool_prefix="$ac_tool_prefix"
5250 ac_tool_prefix=$target_alias-
5252 if test -n "$ac_tool_prefix"; then
5253 for ac_prog in gcc egcs cc
5255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5257 echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5259 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262 if test -n "$TARGET_CC"; then
5263 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
5273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5276 done
5277 done
5281 TARGET_CC=$ac_cv_prog_TARGET_CC
5282 if test -n "$TARGET_CC"; then
5283 echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5284 echo "${ECHO_T}$TARGET_CC" >&6
5285 else
5286 echo "$as_me:$LINENO: result: no" >&5
5287 echo "${ECHO_T}no" >&6
5290 test -n "$TARGET_CC" && break
5291 done
5293 if test -z "$TARGET_CC"; then
5294 ac_ct_TARGET_CC=$TARGET_CC
5295 for ac_prog in gcc egcs cc
5297 # Extract the first word of "$ac_prog", so it can be a program name with args.
5298 set dummy $ac_prog; ac_word=$2
5299 echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304 if test -n "$ac_ct_TARGET_CC"; then
5305 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
5315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5318 done
5319 done
5323 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
5324 if test -n "$ac_ct_TARGET_CC"; then
5325 echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
5326 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6
5327 else
5328 echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5332 test -n "$ac_ct_TARGET_CC" && break
5333 done
5334 test -n "$ac_ct_TARGET_CC" || ac_ct_TARGET_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
5335 echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
5336 { (exit 1); exit 1; }; }"
5338 TARGET_CC=$ac_ct_TARGET_CC
5341 if test -n "$ac_tool_prefix"; then
5342 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5343 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5344 echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349 if test -n "$OBJCOPY"; then
5350 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5363 done
5364 done
5368 OBJCOPY=$ac_cv_prog_OBJCOPY
5369 if test -n "$OBJCOPY"; then
5370 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
5371 echo "${ECHO_T}$OBJCOPY" >&6
5372 else
5373 echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6
5378 if test -z "$ac_cv_prog_OBJCOPY"; then
5379 ac_ct_OBJCOPY=$OBJCOPY
5380 # Extract the first word of "objcopy", so it can be a program name with args.
5381 set dummy objcopy; ac_word=$2
5382 echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387 if test -n "$ac_ct_OBJCOPY"; then
5388 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5401 done
5402 done
5406 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5407 if test -n "$ac_ct_OBJCOPY"; then
5408 echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
5409 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6
5410 else
5411 echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6
5415 OBJCOPY=$ac_ct_OBJCOPY
5416 else
5417 OBJCOPY="$ac_cv_prog_OBJCOPY"
5420 if test -n "$ac_tool_prefix"; then
5421 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5422 set dummy ${ac_tool_prefix}strip; ac_word=$2
5423 echo "$as_me:$LINENO: checking for $ac_word" >&5
5424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425 if test "${ac_cv_prog_STRIP+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428 if test -n "$STRIP"; then
5429 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5442 done
5443 done
5447 STRIP=$ac_cv_prog_STRIP
5448 if test -n "$STRIP"; then
5449 echo "$as_me:$LINENO: result: $STRIP" >&5
5450 echo "${ECHO_T}$STRIP" >&6
5451 else
5452 echo "$as_me:$LINENO: result: no" >&5
5453 echo "${ECHO_T}no" >&6
5457 if test -z "$ac_cv_prog_STRIP"; then
5458 ac_ct_STRIP=$STRIP
5459 # Extract the first word of "strip", so it can be a program name with args.
5460 set dummy strip; ac_word=$2
5461 echo "$as_me:$LINENO: checking for $ac_word" >&5
5462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5463 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466 if test -n "$ac_ct_STRIP"; then
5467 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_ac_ct_STRIP="strip"
5477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5480 done
5481 done
5485 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5486 if test -n "$ac_ct_STRIP"; then
5487 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5488 echo "${ECHO_T}$ac_ct_STRIP" >&6
5489 else
5490 echo "$as_me:$LINENO: result: no" >&5
5491 echo "${ECHO_T}no" >&6
5494 STRIP=$ac_ct_STRIP
5495 else
5496 STRIP="$ac_cv_prog_STRIP"
5499 if test -n "$ac_tool_prefix"; then
5500 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5501 set dummy ${ac_tool_prefix}nm; ac_word=$2
5502 echo "$as_me:$LINENO: checking for $ac_word" >&5
5503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5504 if test "${ac_cv_prog_NM+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507 if test -n "$NM"; then
5508 ac_cv_prog_NM="$NM" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517 ac_cv_prog_NM="${ac_tool_prefix}nm"
5518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5521 done
5522 done
5526 NM=$ac_cv_prog_NM
5527 if test -n "$NM"; then
5528 echo "$as_me:$LINENO: result: $NM" >&5
5529 echo "${ECHO_T}$NM" >&6
5530 else
5531 echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6
5536 if test -z "$ac_cv_prog_NM"; then
5537 ac_ct_NM=$NM
5538 # Extract the first word of "nm", so it can be a program name with args.
5539 set dummy nm; ac_word=$2
5540 echo "$as_me:$LINENO: checking for $ac_word" >&5
5541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5542 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545 if test -n "$ac_ct_NM"; then
5546 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5555 ac_cv_prog_ac_ct_NM="nm"
5556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 break 2
5559 done
5560 done
5564 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5565 if test -n "$ac_ct_NM"; then
5566 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
5567 echo "${ECHO_T}$ac_ct_NM" >&6
5568 else
5569 echo "$as_me:$LINENO: result: no" >&5
5570 echo "${ECHO_T}no" >&6
5573 NM=$ac_ct_NM
5574 else
5575 NM="$ac_cv_prog_NM"
5579 ac_tool_prefix="$tmp_ac_tool_prefix"
5580 else
5581 if test "x$TARGET_CC" = x; then
5582 TARGET_CC=$CC
5584 if test -n "$ac_tool_prefix"; then
5585 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5586 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5587 echo "$as_me:$LINENO: checking for $ac_word" >&5
5588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592 if test -n "$OBJCOPY"; then
5593 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5606 done
5607 done
5611 OBJCOPY=$ac_cv_prog_OBJCOPY
5612 if test -n "$OBJCOPY"; then
5613 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
5614 echo "${ECHO_T}$OBJCOPY" >&6
5615 else
5616 echo "$as_me:$LINENO: result: no" >&5
5617 echo "${ECHO_T}no" >&6
5621 if test -z "$ac_cv_prog_OBJCOPY"; then
5622 ac_ct_OBJCOPY=$OBJCOPY
5623 # Extract the first word of "objcopy", so it can be a program name with args.
5624 set dummy objcopy; ac_word=$2
5625 echo "$as_me:$LINENO: checking for $ac_word" >&5
5626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5627 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 if test -n "$ac_ct_OBJCOPY"; then
5631 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5644 done
5645 done
5649 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5650 if test -n "$ac_ct_OBJCOPY"; then
5651 echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
5652 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6
5653 else
5654 echo "$as_me:$LINENO: result: no" >&5
5655 echo "${ECHO_T}no" >&6
5658 OBJCOPY=$ac_ct_OBJCOPY
5659 else
5660 OBJCOPY="$ac_cv_prog_OBJCOPY"
5663 if test -n "$ac_tool_prefix"; then
5664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5665 set dummy ${ac_tool_prefix}strip; ac_word=$2
5666 echo "$as_me:$LINENO: checking for $ac_word" >&5
5667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5668 if test "${ac_cv_prog_STRIP+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671 if test -n "$STRIP"; then
5672 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5673 else
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5681 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 break 2
5685 done
5686 done
5690 STRIP=$ac_cv_prog_STRIP
5691 if test -n "$STRIP"; then
5692 echo "$as_me:$LINENO: result: $STRIP" >&5
5693 echo "${ECHO_T}$STRIP" >&6
5694 else
5695 echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5700 if test -z "$ac_cv_prog_STRIP"; then
5701 ac_ct_STRIP=$STRIP
5702 # Extract the first word of "strip", so it can be a program name with args.
5703 set dummy strip; ac_word=$2
5704 echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5706 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709 if test -n "$ac_ct_STRIP"; then
5710 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719 ac_cv_prog_ac_ct_STRIP="strip"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5723 done
5724 done
5728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5729 if test -n "$ac_ct_STRIP"; then
5730 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5731 echo "${ECHO_T}$ac_ct_STRIP" >&6
5732 else
5733 echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6
5737 STRIP=$ac_ct_STRIP
5738 else
5739 STRIP="$ac_cv_prog_STRIP"
5742 if test -n "$ac_tool_prefix"; then
5743 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5744 set dummy ${ac_tool_prefix}nm; ac_word=$2
5745 echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5747 if test "${ac_cv_prog_NM+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750 if test -n "$NM"; then
5751 ac_cv_prog_NM="$NM" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_NM="${ac_tool_prefix}nm"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 break 2
5764 done
5765 done
5769 NM=$ac_cv_prog_NM
5770 if test -n "$NM"; then
5771 echo "$as_me:$LINENO: result: $NM" >&5
5772 echo "${ECHO_T}$NM" >&6
5773 else
5774 echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5779 if test -z "$ac_cv_prog_NM"; then
5780 ac_ct_NM=$NM
5781 # Extract the first word of "nm", so it can be a program name with args.
5782 set dummy nm; ac_word=$2
5783 echo "$as_me:$LINENO: checking for $ac_word" >&5
5784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5785 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788 if test -n "$ac_ct_NM"; then
5789 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5790 else
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798 ac_cv_prog_ac_ct_NM="nm"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800 break 2
5802 done
5803 done
5807 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5808 if test -n "$ac_ct_NM"; then
5809 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
5810 echo "${ECHO_T}$ac_ct_NM" >&6
5811 else
5812 echo "$as_me:$LINENO: result: no" >&5
5813 echo "${ECHO_T}no" >&6
5816 NM=$ac_ct_NM
5817 else
5818 NM="$ac_cv_prog_NM"
5825 # Test the C compiler for the target environment.
5826 tmp_CC="$CC"
5827 tmp_CFLAGS="$CFLAGS"
5828 tmp_LDFLAGS="$LDFLAGS"
5829 tmp_CPPFLAGS="$CPPFLAGS"
5830 tmp_LIBS="$LIBS"
5831 CC="$TARGET_CC"
5832 CFLAGS="$TARGET_CFLAGS"
5833 CPPFLAGS="$TARGET_CPPFLAGS"
5834 LDFLAGS="$TARGET_LDFLAGS"
5835 LIBS=""
5837 if test "x$TARGET_CFLAGS" = x; then
5838 # debug flags.
5839 TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
5840 -Wundef -Wstrict-prototypes -g"
5842 # optimization flags.
5843 echo "$as_me:$LINENO: checking whether optimization for size works" >&5
5844 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6
5845 if test "${size_flag+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5849 CFLAGS=-Os
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5858 main ()
5862 return 0;
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 (eval $ac_try) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 size_flag=yes
5888 else
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 size_flag=no
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 echo "$as_me:$LINENO: result: $size_flag" >&5
5898 echo "${ECHO_T}$size_flag" >&6
5899 if test "x$size_flag" = xyes; then
5900 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
5901 else
5902 TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
5905 # Force no alignment to save space on i386.
5906 if test "x$target_cpu" = xi386; then
5907 echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
5908 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6
5909 if test "${falign_loop_flag+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5913 CFLAGS="-falign-loops=1"
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5922 main ()
5926 return 0;
5928 _ACEOF
5929 rm -f conftest.$ac_objext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931 (eval $ac_compile) 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_c_werror_flag"
5939 || test ! -s conftest.err'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 falign_loop_flag=yes
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5956 falign_loop_flag=no
5958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5961 echo "$as_me:$LINENO: result: $falign_loop_flag" >&5
5962 echo "${ECHO_T}$falign_loop_flag" >&6
5964 if test "x$falign_loop_flag" = xyes; then
5965 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
5966 else
5967 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
5972 if test "x$target_m32" = x1; then
5973 # Force 32-bit mode.
5974 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
5975 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
5978 echo "$as_me:$LINENO: checking whether the linker accepts \`--build-id=none'" >&5
5979 echo $ECHO_N "checking whether the linker accepts \`--build-id=none'... $ECHO_C" >&6
5980 save_LDFLAGS="$LDFLAGS"
5981 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5990 main ()
5994 return 0;
5996 _ACEOF
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try='test -s conftest$ac_exeext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 build_id_flag=yes
6020 else
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 build_id_flag=no
6026 rm -f conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
6028 echo "$as_me:$LINENO: result: $build_id_flag" >&5
6029 echo "${ECHO_T}$build_id_flag" >&6
6030 LDFLAGS="$save_LDFLAGS"
6031 if test "x$build_id_flag" = xyes; then
6032 TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
6036 # Compiler features.
6039 # Smashing stack protector.
6041 # Smashing stack protector.
6042 ssp_possible=yes
6043 echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-fstack-protector'" >&5
6044 echo $ECHO_N "checking whether \`$CC' accepts \`-fstack-protector'... $ECHO_C" >&6
6045 # Is this a reliable test case?
6046 cat >conftest.$ac_ext <<_ACEOF
6047 void foo (void) { volatile char a[8]; a[3]; }
6048 _ACEOF
6049 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
6050 # `ac_compile' like this correct, after all?
6051 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
6052 echo "$as_me:$LINENO: result: yes" >&5
6053 echo "${ECHO_T}yes" >&6
6054 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6055 rm -f conftest.s
6056 else
6057 ssp_possible=no
6058 echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6
6062 # Need that, because some distributions ship compilers that include
6063 # `-fstack-protector' in the default specs.
6064 if [ x"$ssp_possible" = xyes ]; then
6065 TARGET_CFLAGS=$TARGET_CFLAGS\ -fno-stack-protector
6072 # Set them to their new values for the tests below.
6073 CC="$TARGET_CC"
6074 CFLAGS="$TARGET_CFLAGS"
6075 CPPFLAGS="$TARGET_CPPFLAGS"
6076 LDFLAGS="$TARGET_LDFLAGS"
6078 # Defined in aclocal.m4.
6079 echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
6080 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6
6081 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084 cat > conftest.c <<\EOF
6085 void
6086 cmain (void)
6088 *((int *) 0x1000) = 2;
6092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } && test -s conftest.o; then :
6097 else
6098 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
6099 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
6100 { (exit 1); exit 1; }; }
6102 grub_cv_prog_objcopy_absolute=yes
6103 for link_addr in 2000 8000 7C00; do
6104 if { ac_try='${CC-cc} ${CFLAGS} ${LDFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then :
6110 else
6111 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
6112 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
6113 { (exit 1); exit 1; }; }
6115 if { ac_try='${OBJCOPY-objcopy} -O binary conftest.exec conftest'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then :
6121 else
6122 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
6123 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
6124 { (exit 1); exit 1; }; }
6126 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 mv -f conftest conftest.old
6133 else
6134 grub_cv_prog_objcopy_absolute=no
6135 break
6137 done
6138 rm -f conftest*
6141 echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
6142 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6
6144 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
6145 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
6146 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
6147 { (exit 1); exit 1; }; }
6151 echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
6152 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6
6153 if test "${grub_cv_asm_uscore+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156 cat > conftest.c <<\EOF
6158 func (int *list)
6160 *list = 0;
6161 return *list;
6165 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 (eval $ac_try) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } && test -s conftest.s; then
6171 true
6172 else
6173 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
6174 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
6175 { (exit 1); exit 1; }; }
6178 if grep _func conftest.s >/dev/null 2>&1; then
6179 grub_cv_asm_uscore=yes
6180 else
6181 grub_cv_asm_uscore=no
6184 rm -f conftest*
6188 if test "x$grub_cv_asm_uscore" = xyes; then
6190 cat >>confdefs.h <<_ACEOF
6191 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
6192 _ACEOF
6196 echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
6197 echo "${ECHO_T}$grub_cv_asm_uscore" >&6
6199 if test "x$target_cpu" = xi386; then
6201 echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
6202 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6
6203 if test "${grub_cv_check_start_symbol+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206 cat >conftest.$ac_ext <<_ACEOF
6207 /* confdefs.h. */
6208 _ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6214 main ()
6216 asm ("incl start")
6218 return 0;
6220 _ACEOF
6221 rm -f conftest.$ac_objext conftest$ac_exeext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6223 (eval $ac_link) 2>conftest.er1
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 (eval $ac_try) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest$ac_exeext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 grub_cv_check_start_symbol=yes
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 grub_cv_check_start_symbol=no
6250 rm -f conftest.err conftest.$ac_objext \
6251 conftest$ac_exeext conftest.$ac_ext
6255 echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
6256 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6
6258 echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
6259 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6
6260 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263 cat >conftest.$ac_ext <<_ACEOF
6264 /* confdefs.h. */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6271 main ()
6273 asm ("incl _start")
6275 return 0;
6277 _ACEOF
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280 (eval $ac_link) 2>conftest.er1
6281 ac_status=$?
6282 grep -v '^ *+' conftest.er1 >conftest.err
6283 rm -f conftest.er1
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try='test -z "$ac_c_werror_flag"
6288 || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try='test -s conftest$ac_exeext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 (eval $ac_try) 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 grub_cv_check_uscore_start_symbol=yes
6301 else
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6305 grub_cv_check_uscore_start_symbol=no
6307 rm -f conftest.err conftest.$ac_objext \
6308 conftest$ac_exeext conftest.$ac_ext
6312 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
6313 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6
6318 if test "x$grub_cv_check_start_symbol" = xyes; then
6319 cat >>confdefs.h <<\_ACEOF
6320 #define START_SYMBOL start
6321 _ACEOF
6323 elif test "x$grub_cv_check_uscore_start_symbol" = xyes; then
6324 cat >>confdefs.h <<\_ACEOF
6325 #define START_SYMBOL _start
6326 _ACEOF
6328 else
6329 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
6330 echo "$as_me: error: neither start nor _start is defined" >&2;}
6331 { (exit 1); exit 1; }; }
6335 echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
6336 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6
6337 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340 cat >conftest.$ac_ext <<_ACEOF
6341 /* confdefs.h. */
6342 _ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6348 main ()
6350 asm ("incl __bss_start")
6352 return 0;
6354 _ACEOF
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357 (eval $ac_link) 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -z "$ac_c_werror_flag"
6365 || test ! -s conftest.err'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try='test -s conftest$ac_exeext'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 (eval $ac_try) 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 grub_cv_check_uscore_uscore_bss_start_symbol=yes
6378 else
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 grub_cv_check_uscore_uscore_bss_start_symbol=no
6384 rm -f conftest.err conftest.$ac_objext \
6385 conftest$ac_exeext conftest.$ac_ext
6389 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
6390 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6
6392 echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
6393 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6
6394 if test "${grub_cv_check_edata_symbol+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397 cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h. */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6405 main ()
6407 asm ("incl edata")
6409 return 0;
6411 _ACEOF
6412 rm -f conftest.$ac_objext conftest$ac_exeext
6413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6414 (eval $ac_link) 2>conftest.er1
6415 ac_status=$?
6416 grep -v '^ *+' conftest.er1 >conftest.err
6417 rm -f conftest.er1
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } &&
6421 { ac_try='test -z "$ac_c_werror_flag"
6422 || test ! -s conftest.err'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 (eval $ac_try) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try='test -s conftest$ac_exeext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 (eval $ac_try) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 grub_cv_check_edata_symbol=yes
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 grub_cv_check_edata_symbol=no
6441 rm -f conftest.err conftest.$ac_objext \
6442 conftest$ac_exeext conftest.$ac_ext
6446 echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
6447 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6
6449 echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
6450 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6
6451 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454 cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h. */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6462 main ()
6464 asm ("incl _edata")
6466 return 0;
6468 _ACEOF
6469 rm -f conftest.$ac_objext conftest$ac_exeext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471 (eval $ac_link) 2>conftest.er1
6472 ac_status=$?
6473 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -f conftest.er1
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } &&
6478 { ac_try='test -z "$ac_c_werror_flag"
6479 || test ! -s conftest.err'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 (eval $ac_try) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; } &&
6485 { ac_try='test -s conftest$ac_exeext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 (eval $ac_try) 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 grub_cv_check_uscore_edata_symbol=yes
6492 else
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6496 grub_cv_check_uscore_edata_symbol=no
6498 rm -f conftest.err conftest.$ac_objext \
6499 conftest$ac_exeext conftest.$ac_ext
6503 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
6504 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6
6509 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
6510 cat >>confdefs.h <<\_ACEOF
6511 #define BSS_START_SYMBOL __bss_start
6512 _ACEOF
6514 elif test "x$grub_cv_check_edata_symbol" = xyes; then
6515 cat >>confdefs.h <<\_ACEOF
6516 #define BSS_START_SYMBOL edata
6517 _ACEOF
6519 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
6520 cat >>confdefs.h <<\_ACEOF
6521 #define BSS_START_SYMBOL _edata
6522 _ACEOF
6524 else
6525 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
6526 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
6527 { (exit 1); exit 1; }; }
6531 echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
6532 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6
6533 if test "${grub_cv_check_end_symbol+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536 cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h. */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6544 main ()
6546 asm ("incl end")
6548 return 0;
6550 _ACEOF
6551 rm -f conftest.$ac_objext conftest$ac_exeext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553 (eval $ac_link) 2>conftest.er1
6554 ac_status=$?
6555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try='test -z "$ac_c_werror_flag"
6561 || test ! -s conftest.err'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; } &&
6567 { ac_try='test -s conftest$ac_exeext'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 (eval $ac_try) 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6573 grub_cv_check_end_symbol=yes
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 grub_cv_check_end_symbol=no
6580 rm -f conftest.err conftest.$ac_objext \
6581 conftest$ac_exeext conftest.$ac_ext
6585 echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
6586 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6
6588 echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
6589 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6
6590 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593 cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h. */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6601 main ()
6603 asm ("incl _end")
6605 return 0;
6607 _ACEOF
6608 rm -f conftest.$ac_objext conftest$ac_exeext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6610 (eval $ac_link) 2>conftest.er1
6611 ac_status=$?
6612 grep -v '^ *+' conftest.er1 >conftest.err
6613 rm -f conftest.er1
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } &&
6617 { ac_try='test -z "$ac_c_werror_flag"
6618 || test ! -s conftest.err'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; } &&
6624 { ac_try='test -s conftest$ac_exeext'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 (eval $ac_try) 2>&5
6627 ac_status=$?
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; }; then
6630 grub_cv_check_uscore_end_symbol=yes
6631 else
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6635 grub_cv_check_uscore_end_symbol=no
6637 rm -f conftest.err conftest.$ac_objext \
6638 conftest$ac_exeext conftest.$ac_ext
6642 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
6643 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6
6648 if test "x$grub_cv_check_end_symbol" = xyes; then
6649 cat >>confdefs.h <<\_ACEOF
6650 #define END_SYMBOL end
6651 _ACEOF
6653 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
6654 cat >>confdefs.h <<\_ACEOF
6655 #define END_SYMBOL _end
6656 _ACEOF
6658 else
6659 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
6660 echo "$as_me: error: neither end nor _end is defined" >&2;}
6661 { (exit 1); exit 1; }; }
6665 echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
6666 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6
6667 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670 cat > conftest.s <<\EOF
6671 .code16
6672 l1: addr32 movb %al, l1
6675 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } && test -s conftest.o; then
6681 grub_cv_i386_asm_prefix_requirement=yes
6682 else
6683 grub_cv_i386_asm_prefix_requirement=no
6686 rm -f conftest*
6690 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
6691 grub_tmp_addr32="addr32"
6692 grub_tmp_data32="data32"
6693 else
6694 grub_tmp_addr32="addr32;"
6695 grub_tmp_data32="data32;"
6699 cat >>confdefs.h <<_ACEOF
6700 #define ADDR32 $grub_tmp_addr32
6701 _ACEOF
6704 cat >>confdefs.h <<_ACEOF
6705 #define DATA32 $grub_tmp_data32
6706 _ACEOF
6709 echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
6710 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6
6713 echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
6714 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6
6715 if test "${grub_cv_i386_asm_addr32+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718 cat > conftest.s.in <<\EOF
6719 .code16
6720 l1: @ADDR32@ movb %al, l1
6723 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
6724 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
6725 else
6726 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
6729 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 (eval $ac_try) 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; } && test -s conftest.o; then
6735 grub_cv_i386_asm_addr32=yes
6736 else
6737 grub_cv_i386_asm_addr32=no
6740 rm -f conftest*
6744 echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
6745 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6
6747 echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
6748 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6
6749 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752 cat > conftest.s <<\EOF
6753 lcall *(offset)
6754 offset:
6755 .long 0
6756 .word 0
6759 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 (eval $ac_try) 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } && test -s conftest.o; then
6765 grub_cv_i386_asm_absolute_without_asterisk=no
6766 else
6767 grub_cv_i386_asm_absolute_without_asterisk=yes
6770 rm -f conftest*
6774 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
6776 cat >>confdefs.h <<\_ACEOF
6777 #define ABSOLUTE_WITHOUT_ASTERISK 1
6778 _ACEOF
6782 echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
6783 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6
6785 echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
6786 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6
6787 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790 if test "$cross_compiling" = yes; then
6791 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6792 See \`config.log' for more details." >&5
6793 echo "$as_me: error: cannot run test program while cross compiling
6794 See \`config.log' for more details." >&2;}
6795 { (exit 1); exit 1; }; }
6796 else
6797 cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h. */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6804 static int
6805 test (int *n)
6807 return *n == -1;
6810 static int
6811 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
6813 int a = 0;
6814 int b = 0;
6815 int c = -1;
6816 return hook (a, b, &c);
6820 main (void)
6822 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
6824 return a == b && test (c);
6826 return testfunc (nestedfunc) ? 0 : 1;
6829 _ACEOF
6830 rm -f conftest$ac_exeext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6832 (eval $ac_link) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 (eval $ac_try) 2>&5
6838 ac_status=$?
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; }; then
6841 grub_cv_i386_check_nested_functions=no
6842 else
6843 echo "$as_me: program exited with status $ac_status" >&5
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 ( exit $ac_status )
6848 grub_cv_i386_check_nested_functions=yes
6850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6855 echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5
6856 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6
6858 if test "x$grub_cv_i386_check_nested_functions" = xyes; then
6860 cat >>confdefs.h <<\_ACEOF
6861 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2)))
6862 _ACEOF
6864 else
6866 cat >>confdefs.h <<\_ACEOF
6867 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2)))
6868 _ACEOF
6872 else
6874 cat >>confdefs.h <<\_ACEOF
6875 #define NESTED_FUNC_ATTR
6876 _ACEOF
6880 # Restore the flags.
6881 CC="$tmp_CC"
6882 CFLAGS="$tmp_CFLAGS"
6883 CPPFLAGS="$tmp_CPPFLAGS"
6884 LDFLAGS="$tmp_LDFLAGS"
6885 LIBS="$tmp_LIBS"
6888 # Check for options.
6891 # Memory manager debugging.
6892 # Check whether --enable-mm-debug or --disable-mm-debug was given.
6893 if test "${enable_mm_debug+set}" = set; then
6894 enableval="$enable_mm_debug"
6896 cat >>confdefs.h <<\_ACEOF
6897 #define MM_DEBUG 1
6898 _ACEOF
6902 # Check whether --enable-grub-emu or --disable-grub-emu was given.
6903 if test "${enable_grub_emu+set}" = set; then
6904 enableval="$enable_grub_emu"
6907 if [ x"$enable_grub_emu" = xyes ]; then
6908 # Check for curses libraries.
6909 echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
6910 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6
6911 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 ac_check_lib_save_LIBS=$LIBS
6915 LIBS="-lncurses $LIBS"
6916 cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h. */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6923 /* Override any gcc2 internal prototype to avoid an error. */
6924 #ifdef __cplusplus
6925 extern "C"
6926 #endif
6927 /* We use char because int might match the return type of a gcc2
6928 builtin and then its argument prototype would still apply. */
6929 char wgetch ();
6931 main ()
6933 wgetch ();
6935 return 0;
6937 _ACEOF
6938 rm -f conftest.$ac_objext conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>conftest.er1
6941 ac_status=$?
6942 grep -v '^ *+' conftest.er1 >conftest.err
6943 rm -f conftest.er1
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -z "$ac_c_werror_flag"
6948 || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try='test -s conftest$ac_exeext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_cv_lib_ncurses_wgetch=yes
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 ac_cv_lib_ncurses_wgetch=no
6967 rm -f conftest.err conftest.$ac_objext \
6968 conftest$ac_exeext conftest.$ac_ext
6969 LIBS=$ac_check_lib_save_LIBS
6971 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
6972 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6
6973 if test $ac_cv_lib_ncurses_wgetch = yes; then
6974 LIBCURSES="-lncurses"
6975 else
6976 echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
6977 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6
6978 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981 ac_check_lib_save_LIBS=$LIBS
6982 LIBS="-lcurses $LIBS"
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h. */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6990 /* Override any gcc2 internal prototype to avoid an error. */
6991 #ifdef __cplusplus
6992 extern "C"
6993 #endif
6994 /* We use char because int might match the return type of a gcc2
6995 builtin and then its argument prototype would still apply. */
6996 char wgetch ();
6998 main ()
7000 wgetch ();
7002 return 0;
7004 _ACEOF
7005 rm -f conftest.$ac_objext conftest$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_lib_curses_wgetch=yes
7028 else
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7032 ac_cv_lib_curses_wgetch=no
7034 rm -f conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7036 LIBS=$ac_check_lib_save_LIBS
7038 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
7039 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6
7040 if test $ac_cv_lib_curses_wgetch = yes; then
7041 LIBCURSES="-lcurses"
7042 else
7043 { { echo "$as_me:$LINENO: error: (n)curses libraries are required to build \`grub-emu'" >&5
7044 echo "$as_me: error: (n)curses libraries are required to build \`grub-emu'" >&2;}
7045 { (exit 1); exit 1; }; }
7052 # Check for headers.
7054 for ac_header in ncurses/curses.h
7056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7058 echo "$as_me:$LINENO: checking for $ac_header" >&5
7059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7065 else
7066 # Is the header compilable?
7067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7069 cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h. */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 $ac_includes_default
7076 #include <$ac_header>
7077 _ACEOF
7078 rm -f conftest.$ac_objext
7079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7080 (eval $ac_compile) 2>conftest.er1
7081 ac_status=$?
7082 grep -v '^ *+' conftest.er1 >conftest.err
7083 rm -f conftest.er1
7084 cat conftest.err >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } &&
7087 { ac_try='test -z "$ac_c_werror_flag"
7088 || test ! -s conftest.err'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 (eval $ac_try) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; } &&
7094 { ac_try='test -s conftest.$ac_objext'
7095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 (eval $ac_try) 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; }; then
7100 ac_header_compiler=yes
7101 else
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7105 ac_header_compiler=no
7107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7109 echo "${ECHO_T}$ac_header_compiler" >&6
7111 # Is the header present?
7112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7114 cat >conftest.$ac_ext <<_ACEOF
7115 /* confdefs.h. */
7116 _ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7120 #include <$ac_header>
7121 _ACEOF
7122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7124 ac_status=$?
7125 grep -v '^ *+' conftest.er1 >conftest.err
7126 rm -f conftest.er1
7127 cat conftest.err >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } >/dev/null; then
7130 if test -s conftest.err; then
7131 ac_cpp_err=$ac_c_preproc_warn_flag
7132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7133 else
7134 ac_cpp_err=
7136 else
7137 ac_cpp_err=yes
7139 if test -z "$ac_cpp_err"; then
7140 ac_header_preproc=yes
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_header_preproc=no
7147 rm -f conftest.err conftest.$ac_ext
7148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7149 echo "${ECHO_T}$ac_header_preproc" >&6
7151 # So? What about this header?
7152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7153 yes:no: )
7154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7158 ac_header_preproc=yes
7160 no:yes:* )
7161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7174 cat <<\_ASBOX
7175 ## ------------------------------- ##
7176 ## Report this to bug-grub@gnu.org ##
7177 ## ------------------------------- ##
7178 _ASBOX
7180 sed "s/^/$as_me: WARNING: /" >&2
7182 esac
7183 echo "$as_me:$LINENO: checking for $ac_header" >&5
7184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 eval "$as_ac_Header=\$ac_header_preproc"
7190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7195 cat >>confdefs.h <<_ACEOF
7196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7197 _ACEOF
7199 else
7201 for ac_header in ncurses.h
7203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7205 echo "$as_me:$LINENO: checking for $ac_header" >&5
7206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7212 else
7213 # Is the header compilable?
7214 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 $ac_includes_default
7223 #include <$ac_header>
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227 (eval $ac_compile) 2>conftest.er1
7228 ac_status=$?
7229 grep -v '^ *+' conftest.er1 >conftest.err
7230 rm -f conftest.er1
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try='test -z "$ac_c_werror_flag"
7235 || test ! -s conftest.err'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237 (eval $ac_try) 2>&5
7238 ac_status=$?
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; } &&
7241 { ac_try='test -s conftest.$ac_objext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 (eval $ac_try) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 ac_header_compiler=yes
7248 else
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7252 ac_header_compiler=no
7254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7256 echo "${ECHO_T}$ac_header_compiler" >&6
7258 # Is the header present?
7259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7261 cat >conftest.$ac_ext <<_ACEOF
7262 /* confdefs.h. */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 #include <$ac_header>
7268 _ACEOF
7269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } >/dev/null; then
7277 if test -s conftest.err; then
7278 ac_cpp_err=$ac_c_preproc_warn_flag
7279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7280 else
7281 ac_cpp_err=
7283 else
7284 ac_cpp_err=yes
7286 if test -z "$ac_cpp_err"; then
7287 ac_header_preproc=yes
7288 else
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7292 ac_header_preproc=no
7294 rm -f conftest.err conftest.$ac_ext
7295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7296 echo "${ECHO_T}$ac_header_preproc" >&6
7298 # So? What about this header?
7299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7300 yes:no: )
7301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7305 ac_header_preproc=yes
7307 no:yes:* )
7308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7321 cat <<\_ASBOX
7322 ## ------------------------------- ##
7323 ## Report this to bug-grub@gnu.org ##
7324 ## ------------------------------- ##
7325 _ASBOX
7327 sed "s/^/$as_me: WARNING: /" >&2
7329 esac
7330 echo "$as_me:$LINENO: checking for $ac_header" >&5
7331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335 eval "$as_ac_Header=\$ac_header_preproc"
7337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7342 cat >>confdefs.h <<_ACEOF
7343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7344 _ACEOF
7346 else
7348 for ac_header in curses.h
7350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7352 echo "$as_me:$LINENO: checking for $ac_header" >&5
7353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7359 else
7360 # Is the header compilable?
7361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7363 cat >conftest.$ac_ext <<_ACEOF
7364 /* confdefs.h. */
7365 _ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7369 $ac_includes_default
7370 #include <$ac_header>
7371 _ACEOF
7372 rm -f conftest.$ac_objext
7373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7374 (eval $ac_compile) 2>conftest.er1
7375 ac_status=$?
7376 grep -v '^ *+' conftest.er1 >conftest.err
7377 rm -f conftest.er1
7378 cat conftest.err >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } &&
7381 { ac_try='test -z "$ac_c_werror_flag"
7382 || test ! -s conftest.err'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 (eval $ac_try) 2>&5
7385 ac_status=$?
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; } &&
7388 { ac_try='test -s conftest.$ac_objext'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 (eval $ac_try) 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 ac_header_compiler=yes
7395 else
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7399 ac_header_compiler=no
7401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7403 echo "${ECHO_T}$ac_header_compiler" >&6
7405 # Is the header present?
7406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7408 cat >conftest.$ac_ext <<_ACEOF
7409 /* confdefs.h. */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 #include <$ac_header>
7415 _ACEOF
7416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7418 ac_status=$?
7419 grep -v '^ *+' conftest.er1 >conftest.err
7420 rm -f conftest.er1
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } >/dev/null; then
7424 if test -s conftest.err; then
7425 ac_cpp_err=$ac_c_preproc_warn_flag
7426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7427 else
7428 ac_cpp_err=
7430 else
7431 ac_cpp_err=yes
7433 if test -z "$ac_cpp_err"; then
7434 ac_header_preproc=yes
7435 else
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7439 ac_header_preproc=no
7441 rm -f conftest.err conftest.$ac_ext
7442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7443 echo "${ECHO_T}$ac_header_preproc" >&6
7445 # So? What about this header?
7446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7447 yes:no: )
7448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7452 ac_header_preproc=yes
7454 no:yes:* )
7455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7468 cat <<\_ASBOX
7469 ## ------------------------------- ##
7470 ## Report this to bug-grub@gnu.org ##
7471 ## ------------------------------- ##
7472 _ASBOX
7474 sed "s/^/$as_me: WARNING: /" >&2
7476 esac
7477 echo "$as_me:$LINENO: checking for $ac_header" >&5
7478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482 eval "$as_ac_Header=\$ac_header_preproc"
7484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7489 cat >>confdefs.h <<_ACEOF
7490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7491 _ACEOF
7493 else
7494 { { echo "$as_me:$LINENO: error: (n)curses header files are required to build \`grub-emu'" >&5
7495 echo "$as_me: error: (n)curses header files are required to build \`grub-emu'" >&2;}
7496 { (exit 1); exit 1; }; }
7499 done
7503 done
7507 done
7512 # Output files.
7513 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu include/grub/machine:include/grub/$target_cpu/$platform"
7515 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
7517 ac_config_files="$ac_config_files stamp-h"
7519 cat >confcache <<\_ACEOF
7520 # This file is a shell script that caches the results of configure
7521 # tests run on this system so they can be shared between configure
7522 # scripts and configure runs, see configure's option --config-cache.
7523 # It is not useful on other systems. If it contains results you don't
7524 # want to keep, you may remove or edit it.
7526 # config.status only pays attention to the cache file if you give it
7527 # the --recheck option to rerun configure.
7529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7531 # following values.
7533 _ACEOF
7535 # The following way of writing the cache mishandles newlines in values,
7536 # but we know of no workaround that is simple, portable, and efficient.
7537 # So, don't put newlines in cache variables' values.
7538 # Ultrix sh set writes to stderr and can't be redirected directly,
7539 # and sets the high bit in the cache file unless we assign to the vars.
7541 (set) 2>&1 |
7542 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7543 *ac_space=\ *)
7544 # `set' does not quote correctly, so add quotes (double-quote
7545 # substitution turns \\\\ into \\, and sed turns \\ into \).
7546 sed -n \
7547 "s/'/'\\\\''/g;
7548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7551 # `set' quotes correctly as required by POSIX, so do not add quotes.
7552 sed -n \
7553 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7555 esac;
7557 sed '
7558 t clear
7559 : clear
7560 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7561 t end
7562 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7563 : end' >>confcache
7564 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7565 if test -w $cache_file; then
7566 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7567 cat confcache >$cache_file
7568 else
7569 echo "not updating unwritable cache $cache_file"
7572 rm -f confcache
7574 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7575 # Let make expand exec_prefix.
7576 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7578 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7579 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7580 # trailing colons and then remove the whole line if VPATH becomes empty
7581 # (actually we leave an empty line to preserve line numbers).
7582 if test "x$srcdir" = x.; then
7583 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7584 s/:*\$(srcdir):*/:/;
7585 s/:*\${srcdir}:*/:/;
7586 s/:*@srcdir@:*/:/;
7587 s/^\([^=]*=[ ]*\):*/\1/;
7588 s/:*$//;
7589 s/^[^=]*=[ ]*$//;
7593 DEFS=-DHAVE_CONFIG_H
7595 ac_libobjs=
7596 ac_ltlibobjs=
7597 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7598 # 1. Remove the extension, and $U if already installed.
7599 ac_i=`echo "$ac_i" |
7600 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7601 # 2. Add them.
7602 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7603 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7604 done
7605 LIBOBJS=$ac_libobjs
7607 LTLIBOBJS=$ac_ltlibobjs
7611 : ${CONFIG_STATUS=./config.status}
7612 ac_clean_files_save=$ac_clean_files
7613 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7614 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7615 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7616 cat >$CONFIG_STATUS <<_ACEOF
7617 #! $SHELL
7618 # Generated by $as_me.
7619 # Run this file to recreate the current configuration.
7620 # Compiler output produced by configure, useful for debugging
7621 # configure, is in config.log if it exists.
7623 debug=false
7624 ac_cs_recheck=false
7625 ac_cs_silent=false
7626 SHELL=\${CONFIG_SHELL-$SHELL}
7627 _ACEOF
7629 cat >>$CONFIG_STATUS <<\_ACEOF
7630 ## --------------------- ##
7631 ## M4sh Initialization. ##
7632 ## --------------------- ##
7634 # Be Bourne compatible
7635 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7636 emulate sh
7637 NULLCMD=:
7638 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7639 # is contrary to our usage. Disable this feature.
7640 alias -g '${1+"$@"}'='"$@"'
7641 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7642 set -o posix
7644 DUALCASE=1; export DUALCASE # for MKS sh
7646 # Support unset when possible.
7647 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7648 as_unset=unset
7649 else
7650 as_unset=false
7654 # Work around bugs in pre-3.0 UWIN ksh.
7655 $as_unset ENV MAIL MAILPATH
7656 PS1='$ '
7657 PS2='> '
7658 PS4='+ '
7660 # NLS nuisances.
7661 for as_var in \
7662 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7663 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7664 LC_TELEPHONE LC_TIME
7666 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7667 eval $as_var=C; export $as_var
7668 else
7669 $as_unset $as_var
7671 done
7673 # Required to use basename.
7674 if expr a : '\(a\)' >/dev/null 2>&1; then
7675 as_expr=expr
7676 else
7677 as_expr=false
7680 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7681 as_basename=basename
7682 else
7683 as_basename=false
7687 # Name of the executable.
7688 as_me=`$as_basename "$0" ||
7689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7690 X"$0" : 'X\(//\)$' \| \
7691 X"$0" : 'X\(/\)$' \| \
7692 . : '\(.\)' 2>/dev/null ||
7693 echo X/"$0" |
7694 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7695 /^X\/\(\/\/\)$/{ s//\1/; q; }
7696 /^X\/\(\/\).*/{ s//\1/; q; }
7697 s/.*/./; q'`
7700 # PATH needs CR, and LINENO needs CR and PATH.
7701 # Avoid depending upon Character Ranges.
7702 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7703 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7704 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7705 as_cr_digits='0123456789'
7706 as_cr_alnum=$as_cr_Letters$as_cr_digits
7708 # The user is always right.
7709 if test "${PATH_SEPARATOR+set}" != set; then
7710 echo "#! /bin/sh" >conf$$.sh
7711 echo "exit 0" >>conf$$.sh
7712 chmod +x conf$$.sh
7713 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7714 PATH_SEPARATOR=';'
7715 else
7716 PATH_SEPARATOR=:
7718 rm -f conf$$.sh
7722 as_lineno_1=$LINENO
7723 as_lineno_2=$LINENO
7724 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7725 test "x$as_lineno_1" != "x$as_lineno_2" &&
7726 test "x$as_lineno_3" = "x$as_lineno_2" || {
7727 # Find who we are. Look in the path if we contain no path at all
7728 # relative or not.
7729 case $0 in
7730 *[\\/]* ) as_myself=$0 ;;
7731 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
7736 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7737 done
7740 esac
7741 # We did not find ourselves, most probably we were run as `sh COMMAND'
7742 # in which case we are not to be found in the path.
7743 if test "x$as_myself" = x; then
7744 as_myself=$0
7746 if test ! -f "$as_myself"; then
7747 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7748 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7749 { (exit 1); exit 1; }; }
7751 case $CONFIG_SHELL in
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for as_base in sh bash ksh sh5; do
7759 case $as_dir in
7761 if ("$as_dir/$as_base" -c '
7762 as_lineno_1=$LINENO
7763 as_lineno_2=$LINENO
7764 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7765 test "x$as_lineno_1" != "x$as_lineno_2" &&
7766 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7767 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7768 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7769 CONFIG_SHELL=$as_dir/$as_base
7770 export CONFIG_SHELL
7771 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7772 fi;;
7773 esac
7774 done
7775 done
7777 esac
7779 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7780 # uniformly replaced by the line number. The first 'sed' inserts a
7781 # line-number line before each line; the second 'sed' does the real
7782 # work. The second script uses 'N' to pair each line-number line
7783 # with the numbered line, and appends trailing '-' during
7784 # substitution so that $LINENO is not a special case at line end.
7785 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7786 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7787 sed '=' <$as_myself |
7788 sed '
7790 s,$,-,
7791 : loop
7792 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7793 t loop
7794 s,-$,,
7795 s,^['$as_cr_digits']*\n,,
7796 ' >$as_me.lineno &&
7797 chmod +x $as_me.lineno ||
7798 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7799 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7800 { (exit 1); exit 1; }; }
7802 # Don't try to exec as it changes $[0], causing all sort of problems
7803 # (the dirname of $[0] is not the place where we might find the
7804 # original and so on. Autoconf is especially sensible to this).
7805 . ./$as_me.lineno
7806 # Exit status is that of the last command.
7807 exit
7811 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7812 *c*,-n*) ECHO_N= ECHO_C='
7813 ' ECHO_T=' ' ;;
7814 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7815 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7816 esac
7818 if expr a : '\(a\)' >/dev/null 2>&1; then
7819 as_expr=expr
7820 else
7821 as_expr=false
7824 rm -f conf$$ conf$$.exe conf$$.file
7825 echo >conf$$.file
7826 if ln -s conf$$.file conf$$ 2>/dev/null; then
7827 # We could just check for DJGPP; but this test a) works b) is more generic
7828 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7829 if test -f conf$$.exe; then
7830 # Don't use ln at all; we don't have any links
7831 as_ln_s='cp -p'
7832 else
7833 as_ln_s='ln -s'
7835 elif ln conf$$.file conf$$ 2>/dev/null; then
7836 as_ln_s=ln
7837 else
7838 as_ln_s='cp -p'
7840 rm -f conf$$ conf$$.exe conf$$.file
7842 if mkdir -p . 2>/dev/null; then
7843 as_mkdir_p=:
7844 else
7845 test -d ./-p && rmdir ./-p
7846 as_mkdir_p=false
7849 as_executable_p="test -f"
7851 # Sed expression to map a string onto a valid CPP name.
7852 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7854 # Sed expression to map a string onto a valid variable name.
7855 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7858 # IFS
7859 # We need space, tab and new line, in precisely that order.
7860 as_nl='
7862 IFS=" $as_nl"
7864 # CDPATH.
7865 $as_unset CDPATH
7867 exec 6>&1
7869 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7870 # report actual input values of CONFIG_FILES etc. instead of their
7871 # values after options handling. Logging --version etc. is OK.
7872 exec 5>>config.log
7874 echo
7875 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7876 ## Running $as_me. ##
7877 _ASBOX
7878 } >&5
7879 cat >&5 <<_CSEOF
7881 This file was extended by GRUB $as_me 1.95, which was
7882 generated by GNU Autoconf 2.59. Invocation command line was
7884 CONFIG_FILES = $CONFIG_FILES
7885 CONFIG_HEADERS = $CONFIG_HEADERS
7886 CONFIG_LINKS = $CONFIG_LINKS
7887 CONFIG_COMMANDS = $CONFIG_COMMANDS
7888 $ $0 $@
7890 _CSEOF
7891 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7892 echo >&5
7893 _ACEOF
7895 # Files that config.status was made for.
7896 if test -n "$ac_config_files"; then
7897 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7900 if test -n "$ac_config_headers"; then
7901 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7904 if test -n "$ac_config_links"; then
7905 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7908 if test -n "$ac_config_commands"; then
7909 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7912 cat >>$CONFIG_STATUS <<\_ACEOF
7914 ac_cs_usage="\
7915 \`$as_me' instantiates files from templates according to the
7916 current configuration.
7918 Usage: $0 [OPTIONS] [FILE]...
7920 -h, --help print this help, then exit
7921 -V, --version print version number, then exit
7922 -q, --quiet do not print progress messages
7923 -d, --debug don't remove temporary files
7924 --recheck update $as_me by reconfiguring in the same conditions
7925 --file=FILE[:TEMPLATE]
7926 instantiate the configuration file FILE
7927 --header=FILE[:TEMPLATE]
7928 instantiate the configuration header FILE
7930 Configuration files:
7931 $config_files
7933 Configuration headers:
7934 $config_headers
7936 Configuration links:
7937 $config_links
7939 Report bugs to <bug-autoconf@gnu.org>."
7940 _ACEOF
7942 cat >>$CONFIG_STATUS <<_ACEOF
7943 ac_cs_version="\\
7944 GRUB config.status 1.95
7945 configured by $0, generated by GNU Autoconf 2.59,
7946 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7948 Copyright (C) 2003 Free Software Foundation, Inc.
7949 This config.status script is free software; the Free Software Foundation
7950 gives unlimited permission to copy, distribute and modify it."
7951 srcdir=$srcdir
7952 INSTALL="$INSTALL"
7953 _ACEOF
7955 cat >>$CONFIG_STATUS <<\_ACEOF
7956 # If no file are specified by the user, then we need to provide default
7957 # value. By we need to know if files were specified by the user.
7958 ac_need_defaults=:
7959 while test $# != 0
7961 case $1 in
7962 --*=*)
7963 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7964 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7965 ac_shift=:
7968 ac_option=$1
7969 ac_optarg=$2
7970 ac_shift=shift
7972 *) # This is not an option, so the user has probably given explicit
7973 # arguments.
7974 ac_option=$1
7975 ac_need_defaults=false;;
7976 esac
7978 case $ac_option in
7979 # Handling of the options.
7980 _ACEOF
7981 cat >>$CONFIG_STATUS <<\_ACEOF
7982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7983 ac_cs_recheck=: ;;
7984 --version | --vers* | -V )
7985 echo "$ac_cs_version"; exit 0 ;;
7986 --he | --h)
7987 # Conflict between --help and --header
7988 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7989 Try \`$0 --help' for more information." >&5
7990 echo "$as_me: error: ambiguous option: $1
7991 Try \`$0 --help' for more information." >&2;}
7992 { (exit 1); exit 1; }; };;
7993 --help | --hel | -h )
7994 echo "$ac_cs_usage"; exit 0 ;;
7995 --debug | --d* | -d )
7996 debug=: ;;
7997 --file | --fil | --fi | --f )
7998 $ac_shift
7999 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8000 ac_need_defaults=false;;
8001 --header | --heade | --head | --hea )
8002 $ac_shift
8003 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8004 ac_need_defaults=false;;
8005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8006 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8007 ac_cs_silent=: ;;
8009 # This is an error.
8010 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8011 Try \`$0 --help' for more information." >&5
8012 echo "$as_me: error: unrecognized option: $1
8013 Try \`$0 --help' for more information." >&2;}
8014 { (exit 1); exit 1; }; } ;;
8016 *) ac_config_targets="$ac_config_targets $1" ;;
8018 esac
8019 shift
8020 done
8022 ac_configure_extra_args=
8024 if $ac_cs_silent; then
8025 exec 6>/dev/null
8026 ac_configure_extra_args="$ac_configure_extra_args --silent"
8029 _ACEOF
8030 cat >>$CONFIG_STATUS <<_ACEOF
8031 if \$ac_cs_recheck; then
8032 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8033 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8036 _ACEOF
8042 cat >>$CONFIG_STATUS <<\_ACEOF
8043 for ac_config_target in $ac_config_targets
8045 case "$ac_config_target" in
8046 # Handling of arguments.
8047 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8048 "gensymlist.sh" ) CONFIG_FILES="$CONFIG_FILES gensymlist.sh" ;;
8049 "genkernsyms.sh" ) CONFIG_FILES="$CONFIG_FILES genkernsyms.sh" ;;
8050 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
8051 "include/grub/cpu" ) CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
8052 "include/grub/machine" ) CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
8053 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8054 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8055 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8056 { (exit 1); exit 1; }; };;
8057 esac
8058 done
8060 # If the user did not use the arguments to specify the items to instantiate,
8061 # then the envvar interface is used. Set only those that are not.
8062 # We use the long form for the default assignment because of an extremely
8063 # bizarre bug on SunOS 4.1.3.
8064 if $ac_need_defaults; then
8065 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8066 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8067 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8070 # Have a temporary directory for convenience. Make it in the build tree
8071 # simply because there is no reason to put it here, and in addition,
8072 # creating and moving files from /tmp can sometimes cause problems.
8073 # Create a temporary directory, and hook for its removal unless debugging.
8074 $debug ||
8076 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8077 trap '{ (exit 1); exit 1; }' 1 2 13 15
8080 # Create a (secure) tmp directory for tmp files.
8083 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8084 test -n "$tmp" && test -d "$tmp"
8085 } ||
8087 tmp=./confstat$$-$RANDOM
8088 (umask 077 && mkdir $tmp)
8089 } ||
8091 echo "$me: cannot create a temporary directory in ." >&2
8092 { (exit 1); exit 1; }
8095 _ACEOF
8097 cat >>$CONFIG_STATUS <<_ACEOF
8100 # CONFIG_FILES section.
8103 # No need to generate the scripts if there are no CONFIG_FILES.
8104 # This happens for instance when ./config.status config.h
8105 if test -n "\$CONFIG_FILES"; then
8106 # Protect against being on the right side of a sed subst in config.status.
8107 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8108 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8109 s,@SHELL@,$SHELL,;t t
8110 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8111 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8112 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8113 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8114 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8115 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8116 s,@exec_prefix@,$exec_prefix,;t t
8117 s,@prefix@,$prefix,;t t
8118 s,@program_transform_name@,$program_transform_name,;t t
8119 s,@bindir@,$bindir,;t t
8120 s,@sbindir@,$sbindir,;t t
8121 s,@libexecdir@,$libexecdir,;t t
8122 s,@datadir@,$datadir,;t t
8123 s,@sysconfdir@,$sysconfdir,;t t
8124 s,@sharedstatedir@,$sharedstatedir,;t t
8125 s,@localstatedir@,$localstatedir,;t t
8126 s,@libdir@,$libdir,;t t
8127 s,@includedir@,$includedir,;t t
8128 s,@oldincludedir@,$oldincludedir,;t t
8129 s,@infodir@,$infodir,;t t
8130 s,@mandir@,$mandir,;t t
8131 s,@build_alias@,$build_alias,;t t
8132 s,@host_alias@,$host_alias,;t t
8133 s,@target_alias@,$target_alias,;t t
8134 s,@DEFS@,$DEFS,;t t
8135 s,@ECHO_C@,$ECHO_C,;t t
8136 s,@ECHO_N@,$ECHO_N,;t t
8137 s,@ECHO_T@,$ECHO_T,;t t
8138 s,@LIBS@,$LIBS,;t t
8139 s,@build@,$build,;t t
8140 s,@build_cpu@,$build_cpu,;t t
8141 s,@build_vendor@,$build_vendor,;t t
8142 s,@build_os@,$build_os,;t t
8143 s,@host@,$host,;t t
8144 s,@host_cpu@,$host_cpu,;t t
8145 s,@host_vendor@,$host_vendor,;t t
8146 s,@host_os@,$host_os,;t t
8147 s,@target@,$target,;t t
8148 s,@target_cpu@,$target_cpu,;t t
8149 s,@target_vendor@,$target_vendor,;t t
8150 s,@target_os@,$target_os,;t t
8151 s,@platform@,$platform,;t t
8152 s,@CMP@,$CMP,;t t
8153 s,@YACC@,$YACC,;t t
8154 s,@UNIFONT_HEX@,$UNIFONT_HEX,;t t
8155 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8156 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8157 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8158 s,@AWK@,$AWK,;t t
8159 s,@SET_MAKE@,$SET_MAKE,;t t
8160 s,@RUBY@,$RUBY,;t t
8161 s,@CC@,$CC,;t t
8162 s,@CFLAGS@,$CFLAGS,;t t
8163 s,@LDFLAGS@,$LDFLAGS,;t t
8164 s,@CPPFLAGS@,$CPPFLAGS,;t t
8165 s,@ac_ct_CC@,$ac_ct_CC,;t t
8166 s,@EXEEXT@,$EXEEXT,;t t
8167 s,@OBJEXT@,$OBJEXT,;t t
8168 s,@CPP@,$CPP,;t t
8169 s,@EGREP@,$EGREP,;t t
8170 s,@LIBLZO@,$LIBLZO,;t t
8171 s,@TARGET_CC@,$TARGET_CC,;t t
8172 s,@ac_ct_TARGET_CC@,$ac_ct_TARGET_CC,;t t
8173 s,@OBJCOPY@,$OBJCOPY,;t t
8174 s,@ac_ct_OBJCOPY@,$ac_ct_OBJCOPY,;t t
8175 s,@STRIP@,$STRIP,;t t
8176 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8177 s,@NM@,$NM,;t t
8178 s,@ac_ct_NM@,$ac_ct_NM,;t t
8179 s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t
8180 s,@TARGET_CPPFLAGS@,$TARGET_CPPFLAGS,;t t
8181 s,@TARGET_LDFLAGS@,$TARGET_LDFLAGS,;t t
8182 s,@LIBCURSES@,$LIBCURSES,;t t
8183 s,@enable_grub_emu@,$enable_grub_emu,;t t
8184 s,@LIBOBJS@,$LIBOBJS,;t t
8185 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8186 CEOF
8188 _ACEOF
8190 cat >>$CONFIG_STATUS <<\_ACEOF
8191 # Split the substitutions into bite-sized pieces for seds with
8192 # small command number limits, like on Digital OSF/1 and HP-UX.
8193 ac_max_sed_lines=48
8194 ac_sed_frag=1 # Number of current file.
8195 ac_beg=1 # First line for current file.
8196 ac_end=$ac_max_sed_lines # Line after last line for current file.
8197 ac_more_lines=:
8198 ac_sed_cmds=
8199 while $ac_more_lines; do
8200 if test $ac_beg -gt 1; then
8201 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8202 else
8203 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8205 if test ! -s $tmp/subs.frag; then
8206 ac_more_lines=false
8207 else
8208 # The purpose of the label and of the branching condition is to
8209 # speed up the sed processing (if there are no `@' at all, there
8210 # is no need to browse any of the substitutions).
8211 # These are the two extra sed commands mentioned above.
8212 (echo ':t
8213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8214 if test -z "$ac_sed_cmds"; then
8215 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8216 else
8217 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8219 ac_sed_frag=`expr $ac_sed_frag + 1`
8220 ac_beg=$ac_end
8221 ac_end=`expr $ac_end + $ac_max_sed_lines`
8223 done
8224 if test -z "$ac_sed_cmds"; then
8225 ac_sed_cmds=cat
8227 fi # test -n "$CONFIG_FILES"
8229 _ACEOF
8230 cat >>$CONFIG_STATUS <<\_ACEOF
8231 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8232 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8233 case $ac_file in
8234 - | *:- | *:-:* ) # input from stdin
8235 cat >$tmp/stdin
8236 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8237 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8238 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8239 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8240 * ) ac_file_in=$ac_file.in ;;
8241 esac
8243 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8244 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8246 X"$ac_file" : 'X\(//\)[^/]' \| \
8247 X"$ac_file" : 'X\(//\)$' \| \
8248 X"$ac_file" : 'X\(/\)' \| \
8249 . : '\(.\)' 2>/dev/null ||
8250 echo X"$ac_file" |
8251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8252 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8253 /^X\(\/\/\)$/{ s//\1/; q; }
8254 /^X\(\/\).*/{ s//\1/; q; }
8255 s/.*/./; q'`
8256 { if $as_mkdir_p; then
8257 mkdir -p "$ac_dir"
8258 else
8259 as_dir="$ac_dir"
8260 as_dirs=
8261 while test ! -d "$as_dir"; do
8262 as_dirs="$as_dir $as_dirs"
8263 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8265 X"$as_dir" : 'X\(//\)[^/]' \| \
8266 X"$as_dir" : 'X\(//\)$' \| \
8267 X"$as_dir" : 'X\(/\)' \| \
8268 . : '\(.\)' 2>/dev/null ||
8269 echo X"$as_dir" |
8270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8272 /^X\(\/\/\)$/{ s//\1/; q; }
8273 /^X\(\/\).*/{ s//\1/; q; }
8274 s/.*/./; q'`
8275 done
8276 test ! -n "$as_dirs" || mkdir $as_dirs
8277 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8278 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8279 { (exit 1); exit 1; }; }; }
8281 ac_builddir=.
8283 if test "$ac_dir" != .; then
8284 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8285 # A "../" for each directory in $ac_dir_suffix.
8286 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8287 else
8288 ac_dir_suffix= ac_top_builddir=
8291 case $srcdir in
8292 .) # No --srcdir option. We are building in place.
8293 ac_srcdir=.
8294 if test -z "$ac_top_builddir"; then
8295 ac_top_srcdir=.
8296 else
8297 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8298 fi ;;
8299 [\\/]* | ?:[\\/]* ) # Absolute path.
8300 ac_srcdir=$srcdir$ac_dir_suffix;
8301 ac_top_srcdir=$srcdir ;;
8302 *) # Relative path.
8303 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8304 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8305 esac
8307 # Do not use `cd foo && pwd` to compute absolute paths, because
8308 # the directories may not exist.
8309 case `pwd` in
8310 .) ac_abs_builddir="$ac_dir";;
8312 case "$ac_dir" in
8313 .) ac_abs_builddir=`pwd`;;
8314 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8315 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8316 esac;;
8317 esac
8318 case $ac_abs_builddir in
8319 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8321 case ${ac_top_builddir}. in
8322 .) ac_abs_top_builddir=$ac_abs_builddir;;
8323 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8324 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8325 esac;;
8326 esac
8327 case $ac_abs_builddir in
8328 .) ac_abs_srcdir=$ac_srcdir;;
8330 case $ac_srcdir in
8331 .) ac_abs_srcdir=$ac_abs_builddir;;
8332 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8333 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8334 esac;;
8335 esac
8336 case $ac_abs_builddir in
8337 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8339 case $ac_top_srcdir in
8340 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8341 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8342 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8343 esac;;
8344 esac
8347 case $INSTALL in
8348 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8349 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8350 esac
8352 if test x"$ac_file" != x-; then
8353 { echo "$as_me:$LINENO: creating $ac_file" >&5
8354 echo "$as_me: creating $ac_file" >&6;}
8355 rm -f "$ac_file"
8357 # Let's still pretend it is `configure' which instantiates (i.e., don't
8358 # use $as_me), people would be surprised to read:
8359 # /* config.h. Generated by config.status. */
8360 if test x"$ac_file" = x-; then
8361 configure_input=
8362 else
8363 configure_input="$ac_file. "
8365 configure_input=$configure_input"Generated from `echo $ac_file_in |
8366 sed 's,.*/,,'` by configure."
8368 # First look for the input files in the build tree, otherwise in the
8369 # src tree.
8370 ac_file_inputs=`IFS=:
8371 for f in $ac_file_in; do
8372 case $f in
8373 -) echo $tmp/stdin ;;
8374 [\\/$]*)
8375 # Absolute (can't be DOS-style, as IFS=:)
8376 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8377 echo "$as_me: error: cannot find input file: $f" >&2;}
8378 { (exit 1); exit 1; }; }
8379 echo "$f";;
8380 *) # Relative
8381 if test -f "$f"; then
8382 # Build tree
8383 echo "$f"
8384 elif test -f "$srcdir/$f"; then
8385 # Source tree
8386 echo "$srcdir/$f"
8387 else
8388 # /dev/null tree
8389 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8390 echo "$as_me: error: cannot find input file: $f" >&2;}
8391 { (exit 1); exit 1; }; }
8392 fi;;
8393 esac
8394 done` || { (exit 1); exit 1; }
8395 _ACEOF
8396 cat >>$CONFIG_STATUS <<_ACEOF
8397 sed "$ac_vpsub
8398 $extrasub
8399 _ACEOF
8400 cat >>$CONFIG_STATUS <<\_ACEOF
8402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8403 s,@configure_input@,$configure_input,;t t
8404 s,@srcdir@,$ac_srcdir,;t t
8405 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8406 s,@top_srcdir@,$ac_top_srcdir,;t t
8407 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8408 s,@builddir@,$ac_builddir,;t t
8409 s,@abs_builddir@,$ac_abs_builddir,;t t
8410 s,@top_builddir@,$ac_top_builddir,;t t
8411 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8412 s,@INSTALL@,$ac_INSTALL,;t t
8413 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8414 rm -f $tmp/stdin
8415 if test x"$ac_file" != x-; then
8416 mv $tmp/out $ac_file
8417 else
8418 cat $tmp/out
8419 rm -f $tmp/out
8422 # Run the commands associated with the file.
8423 case $ac_file in
8424 stamp-h ) echo timestamp > stamp-h ;;
8425 esac
8426 done
8427 _ACEOF
8428 cat >>$CONFIG_STATUS <<\_ACEOF
8431 # CONFIG_HEADER section.
8434 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8435 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8437 # ac_d sets the value in "#define NAME VALUE" lines.
8438 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8439 ac_dB='[ ].*$,\1#\2'
8440 ac_dC=' '
8441 ac_dD=',;t'
8442 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8443 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8444 ac_uB='$,\1#\2define\3'
8445 ac_uC=' '
8446 ac_uD=',;t'
8448 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8450 case $ac_file in
8451 - | *:- | *:-:* ) # input from stdin
8452 cat >$tmp/stdin
8453 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8454 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8455 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8457 * ) ac_file_in=$ac_file.in ;;
8458 esac
8460 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8461 echo "$as_me: creating $ac_file" >&6;}
8463 # First look for the input files in the build tree, otherwise in the
8464 # src tree.
8465 ac_file_inputs=`IFS=:
8466 for f in $ac_file_in; do
8467 case $f in
8468 -) echo $tmp/stdin ;;
8469 [\\/$]*)
8470 # Absolute (can't be DOS-style, as IFS=:)
8471 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8472 echo "$as_me: error: cannot find input file: $f" >&2;}
8473 { (exit 1); exit 1; }; }
8474 # Do quote $f, to prevent DOS paths from being IFS'd.
8475 echo "$f";;
8476 *) # Relative
8477 if test -f "$f"; then
8478 # Build tree
8479 echo "$f"
8480 elif test -f "$srcdir/$f"; then
8481 # Source tree
8482 echo "$srcdir/$f"
8483 else
8484 # /dev/null tree
8485 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8486 echo "$as_me: error: cannot find input file: $f" >&2;}
8487 { (exit 1); exit 1; }; }
8488 fi;;
8489 esac
8490 done` || { (exit 1); exit 1; }
8491 # Remove the trailing spaces.
8492 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8494 _ACEOF
8496 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8497 # `conftest.undefs', that substitutes the proper values into
8498 # config.h.in to produce config.h. The first handles `#define'
8499 # templates, and the second `#undef' templates.
8500 # And first: Protect against being on the right side of a sed subst in
8501 # config.status. Protect against being in an unquoted here document
8502 # in config.status.
8503 rm -f conftest.defines conftest.undefs
8504 # Using a here document instead of a string reduces the quoting nightmare.
8505 # Putting comments in sed scripts is not portable.
8507 # `end' is used to avoid that the second main sed command (meant for
8508 # 0-ary CPP macros) applies to n-ary macro definitions.
8509 # See the Autoconf documentation for `clear'.
8510 cat >confdef2sed.sed <<\_ACEOF
8511 s/[\\&,]/\\&/g
8512 s,[\\$`],\\&,g
8513 t clear
8514 : clear
8515 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8516 t end
8517 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8518 : end
8519 _ACEOF
8520 # If some macros were called several times there might be several times
8521 # the same #defines, which is useless. Nevertheless, we may not want to
8522 # sort them, since we want the *last* AC-DEFINE to be honored.
8523 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8524 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8525 rm -f confdef2sed.sed
8527 # This sed command replaces #undef with comments. This is necessary, for
8528 # example, in the case of _POSIX_SOURCE, which is predefined and required
8529 # on some systems where configure will not decide to define it.
8530 cat >>conftest.undefs <<\_ACEOF
8531 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8532 _ACEOF
8534 # Break up conftest.defines because some shells have a limit on the size
8535 # of here documents, and old seds have small limits too (100 cmds).
8536 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8537 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8538 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8539 echo ' :' >>$CONFIG_STATUS
8540 rm -f conftest.tail
8541 while grep . conftest.defines >/dev/null
8543 # Write a limited-size here document to $tmp/defines.sed.
8544 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8545 # Speed up: don't consider the non `#define' lines.
8546 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8547 # Work around the forget-to-reset-the-flag bug.
8548 echo 't clr' >>$CONFIG_STATUS
8549 echo ': clr' >>$CONFIG_STATUS
8550 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8551 echo 'CEOF
8552 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8553 rm -f $tmp/in
8554 mv $tmp/out $tmp/in
8555 ' >>$CONFIG_STATUS
8556 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8557 rm -f conftest.defines
8558 mv conftest.tail conftest.defines
8559 done
8560 rm -f conftest.defines
8561 echo ' fi # grep' >>$CONFIG_STATUS
8562 echo >>$CONFIG_STATUS
8564 # Break up conftest.undefs because some shells have a limit on the size
8565 # of here documents, and old seds have small limits too (100 cmds).
8566 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8567 rm -f conftest.tail
8568 while grep . conftest.undefs >/dev/null
8570 # Write a limited-size here document to $tmp/undefs.sed.
8571 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8572 # Speed up: don't consider the non `#undef'
8573 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8574 # Work around the forget-to-reset-the-flag bug.
8575 echo 't clr' >>$CONFIG_STATUS
8576 echo ': clr' >>$CONFIG_STATUS
8577 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8578 echo 'CEOF
8579 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8580 rm -f $tmp/in
8581 mv $tmp/out $tmp/in
8582 ' >>$CONFIG_STATUS
8583 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8584 rm -f conftest.undefs
8585 mv conftest.tail conftest.undefs
8586 done
8587 rm -f conftest.undefs
8589 cat >>$CONFIG_STATUS <<\_ACEOF
8590 # Let's still pretend it is `configure' which instantiates (i.e., don't
8591 # use $as_me), people would be surprised to read:
8592 # /* config.h. Generated by config.status. */
8593 if test x"$ac_file" = x-; then
8594 echo "/* Generated by configure. */" >$tmp/config.h
8595 else
8596 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8598 cat $tmp/in >>$tmp/config.h
8599 rm -f $tmp/in
8600 if test x"$ac_file" != x-; then
8601 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8602 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8603 echo "$as_me: $ac_file is unchanged" >&6;}
8604 else
8605 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8607 X"$ac_file" : 'X\(//\)[^/]' \| \
8608 X"$ac_file" : 'X\(//\)$' \| \
8609 X"$ac_file" : 'X\(/\)' \| \
8610 . : '\(.\)' 2>/dev/null ||
8611 echo X"$ac_file" |
8612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8613 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8614 /^X\(\/\/\)$/{ s//\1/; q; }
8615 /^X\(\/\).*/{ s//\1/; q; }
8616 s/.*/./; q'`
8617 { if $as_mkdir_p; then
8618 mkdir -p "$ac_dir"
8619 else
8620 as_dir="$ac_dir"
8621 as_dirs=
8622 while test ! -d "$as_dir"; do
8623 as_dirs="$as_dir $as_dirs"
8624 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8626 X"$as_dir" : 'X\(//\)[^/]' \| \
8627 X"$as_dir" : 'X\(//\)$' \| \
8628 X"$as_dir" : 'X\(/\)' \| \
8629 . : '\(.\)' 2>/dev/null ||
8630 echo X"$as_dir" |
8631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8633 /^X\(\/\/\)$/{ s//\1/; q; }
8634 /^X\(\/\).*/{ s//\1/; q; }
8635 s/.*/./; q'`
8636 done
8637 test ! -n "$as_dirs" || mkdir $as_dirs
8638 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8639 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8640 { (exit 1); exit 1; }; }; }
8642 rm -f $ac_file
8643 mv $tmp/config.h $ac_file
8645 else
8646 cat $tmp/config.h
8647 rm -f $tmp/config.h
8649 done
8650 _ACEOF
8651 cat >>$CONFIG_STATUS <<\_ACEOF
8654 # CONFIG_LINKS section.
8657 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8658 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8659 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8661 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8662 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8664 if test ! -r $srcdir/$ac_source; then
8665 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8666 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8667 { (exit 1); exit 1; }; }
8669 rm -f $ac_dest
8671 # Make relative symlinks.
8672 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8673 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8674 X"$ac_dest" : 'X\(//\)[^/]' \| \
8675 X"$ac_dest" : 'X\(//\)$' \| \
8676 X"$ac_dest" : 'X\(/\)' \| \
8677 . : '\(.\)' 2>/dev/null ||
8678 echo X"$ac_dest" |
8679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8681 /^X\(\/\/\)$/{ s//\1/; q; }
8682 /^X\(\/\).*/{ s//\1/; q; }
8683 s/.*/./; q'`
8684 { if $as_mkdir_p; then
8685 mkdir -p "$ac_dest_dir"
8686 else
8687 as_dir="$ac_dest_dir"
8688 as_dirs=
8689 while test ! -d "$as_dir"; do
8690 as_dirs="$as_dir $as_dirs"
8691 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8693 X"$as_dir" : 'X\(//\)[^/]' \| \
8694 X"$as_dir" : 'X\(//\)$' \| \
8695 X"$as_dir" : 'X\(/\)' \| \
8696 . : '\(.\)' 2>/dev/null ||
8697 echo X"$as_dir" |
8698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8700 /^X\(\/\/\)$/{ s//\1/; q; }
8701 /^X\(\/\).*/{ s//\1/; q; }
8702 s/.*/./; q'`
8703 done
8704 test ! -n "$as_dirs" || mkdir $as_dirs
8705 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8706 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8707 { (exit 1); exit 1; }; }; }
8709 ac_builddir=.
8711 if test "$ac_dest_dir" != .; then
8712 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8713 # A "../" for each directory in $ac_dir_suffix.
8714 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8715 else
8716 ac_dir_suffix= ac_top_builddir=
8719 case $srcdir in
8720 .) # No --srcdir option. We are building in place.
8721 ac_srcdir=.
8722 if test -z "$ac_top_builddir"; then
8723 ac_top_srcdir=.
8724 else
8725 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8726 fi ;;
8727 [\\/]* | ?:[\\/]* ) # Absolute path.
8728 ac_srcdir=$srcdir$ac_dir_suffix;
8729 ac_top_srcdir=$srcdir ;;
8730 *) # Relative path.
8731 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8732 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8733 esac
8735 # Do not use `cd foo && pwd` to compute absolute paths, because
8736 # the directories may not exist.
8737 case `pwd` in
8738 .) ac_abs_builddir="$ac_dest_dir";;
8740 case "$ac_dest_dir" in
8741 .) ac_abs_builddir=`pwd`;;
8742 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8743 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8744 esac;;
8745 esac
8746 case $ac_abs_builddir in
8747 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8749 case ${ac_top_builddir}. in
8750 .) ac_abs_top_builddir=$ac_abs_builddir;;
8751 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8752 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8753 esac;;
8754 esac
8755 case $ac_abs_builddir in
8756 .) ac_abs_srcdir=$ac_srcdir;;
8758 case $ac_srcdir in
8759 .) ac_abs_srcdir=$ac_abs_builddir;;
8760 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8761 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8762 esac;;
8763 esac
8764 case $ac_abs_builddir in
8765 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8767 case $ac_top_srcdir in
8768 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8769 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8770 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8771 esac;;
8772 esac
8775 case $srcdir in
8776 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8777 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
8778 esac
8780 # Try a symlink, then a hard link, then a copy.
8781 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8782 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8783 cp -p $srcdir/$ac_source $ac_dest ||
8784 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8785 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8786 { (exit 1); exit 1; }; }
8787 done
8788 _ACEOF
8790 cat >>$CONFIG_STATUS <<\_ACEOF
8792 { (exit 0); exit 0; }
8793 _ACEOF
8794 chmod +x $CONFIG_STATUS
8795 ac_clean_files=$ac_clean_files_save
8798 # configure is writing to config.log, and then calls config.status.
8799 # config.status does its own redirection, appending to config.log.
8800 # Unfortunately, on DOS this fails, as config.log is still kept open
8801 # by configure, so config.status won't be able to write to it; its
8802 # output is simply discarded. So we exec the FD to /dev/null,
8803 # effectively closing config.log, so it can be properly (re)opened and
8804 # appended to by config.status. When coming back to configure, we
8805 # need to make the FD available again.
8806 if test "$no_create" != yes; then
8807 ac_cs_success=:
8808 ac_config_status_args=
8809 test "$silent" = yes &&
8810 ac_config_status_args="$ac_config_status_args --quiet"
8811 exec 5>/dev/null
8812 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8813 exec 5>>config.log
8814 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8815 # would make configure fail if this is the last instruction.
8816 $ac_cs_success || { (exit 1); exit 1; }