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