]> git.ipfire.org Git - thirdparty/bash.git/blame - configure
Imported from ../bash-2.05a.tar.gz.
[thirdparty/bash.git] / configure
CommitLineData
ccc6cda3 1#! /bin/sh
f73dda09
JA
2# From configure.in for Bash 2.05a, version 2.128, from autoconf version 2.52.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by Autoconf 2.52 for bash 2.05a.
5#
6# Report bugs to <bug-bash@gnu.org>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9# Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
ccc6cda3 12
f73dda09
JA
13# Avoid depending upon Character Ranges.
14as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17as_cr_digits='0123456789'
18as_cr_alnum=$as_cr_Letters$as_cr_digits
ccc6cda3 19
f73dda09
JA
20# Sed expression to map a string onto a valid variable name.
21as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
ccc6cda3 22
f73dda09
JA
23# Sed expression to map a string onto a valid CPP name.
24as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
ccc6cda3 25
f73dda09
JA
26# Be Bourne compatible
27if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 emulate sh
29 NULLCMD=:
30elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 set -o posix
32fi
ccc6cda3 33
f73dda09
JA
34# Name of the executable.
35as_me=`echo "$0" |sed 's,.*[\\/],,'`
ccc6cda3 36
f73dda09
JA
37if expr a : '\(a\)' >/dev/null 2>&1; then
38 as_expr=expr
39else
40 as_expr=false
41fi
ccc6cda3 42
f73dda09
JA
43rm -f conf$$ conf$$.exe conf$$.file
44echo >conf$$.file
45if ln -s conf$$.file conf$$ 2>/dev/null; then
46 # We could just check for DJGPP; but this test a) works b) is more generic
47 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48 if test -f conf$$.exe; then
49 # Don't use ln at all; we don't have any links
50 as_ln_s='cp -p'
51 else
52 as_ln_s='ln -s'
53 fi
54elif ln conf$$.file conf$$ 2>/dev/null; then
55 as_ln_s=ln
56else
57 as_ln_s='cp -p'
58fi
59rm -f conf$$ conf$$.exe conf$$.file
ccc6cda3 60
f73dda09 61as_executable_p="test -f"
ccc6cda3 62
f73dda09
JA
63# Support unset when possible.
64if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
65 as_unset=unset
66else
67 as_unset=false
68fi
ccc6cda3 69
f73dda09
JA
70# NLS nuisances.
71$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
72$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
73$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
74$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
75$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
76$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
77$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
78$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79
80# IFS
81# We need space, tab and new line, in precisely that order.
82as_nl='
83'
84IFS=" $as_nl"
85
86# CDPATH.
87$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88
89# Name of the host.
90# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
91# so uname gets run too.
92ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
93
94exec 6>&1
ccc6cda3 95
726f6388 96#
f73dda09
JA
97# Initializations.
98#
ccc6cda3 99ac_default_prefix=/usr/local
f73dda09
JA
100cross_compiling=no
101subdirs=
102MFLAGS= MAKEFLAGS=
103SHELL=${CONFIG_SHELL-/bin/sh}
104
105# Maximum number of lines to put in a shell here document.
106# This variable seems obsolete. It should probably be removed, and
107# only ac_max_sed_lines should be used.
108: ${ac_max_here_lines=38}
109
110ac_unique_file="shell.h"
111# Factoring default headers for most tests.
112ac_includes_default="\
113#include <stdio.h>
114#if HAVE_SYS_TYPES_H
115# include <sys/types.h>
116#endif
117#if HAVE_SYS_STAT_H
118# include <sys/stat.h>
119#endif
120#if STDC_HEADERS
121# include <stdlib.h>
122# include <stddef.h>
123#else
124# if HAVE_STDLIB_H
125# include <stdlib.h>
126# endif
127#endif
128#if HAVE_STRING_H
129# if !STDC_HEADERS && HAVE_MEMORY_H
130# include <memory.h>
131# endif
132# include <string.h>
133#endif
134#if HAVE_STRINGS_H
135# include <strings.h>
136#endif
137#if HAVE_INTTYPES_H
138# include <inttypes.h>
139#else
140# if HAVE_STDINT_H
141# include <stdint.h>
142# endif
143#endif
144#if HAVE_UNISTD_H
145# include <unistd.h>
146#endif"
ccc6cda3
JA
147
148# Initialize some variables set by options.
f73dda09
JA
149ac_init_help=
150ac_init_version=false
ccc6cda3
JA
151# The variables have the same names as the options, with
152# dashes changed to underlines.
f73dda09 153cache_file=/dev/null
ccc6cda3 154exec_prefix=NONE
ccc6cda3 155no_create=
ccc6cda3
JA
156no_recursion=
157prefix=NONE
158program_prefix=NONE
159program_suffix=NONE
160program_transform_name=s,x,x,
161silent=
162site=
163srcdir=
ccc6cda3
JA
164verbose=
165x_includes=NONE
166x_libraries=NONE
f73dda09
JA
167
168# Installation directory options.
169# These are left unexpanded so users can "make install exec_prefix=/foo"
170# and all the variables that are supposed to be based on exec_prefix
171# by default will actually change.
172# Use braces instead of parens because sh, perl, etc. also accept them.
ccc6cda3
JA
173bindir='${exec_prefix}/bin'
174sbindir='${exec_prefix}/sbin'
175libexecdir='${exec_prefix}/libexec'
176datadir='${prefix}/share'
177sysconfdir='${prefix}/etc'
178sharedstatedir='${prefix}/com'
179localstatedir='${prefix}/var'
180libdir='${exec_prefix}/lib'
181includedir='${prefix}/include'
182oldincludedir='/usr/include'
183infodir='${prefix}/info'
184mandir='${prefix}/man'
185
f73dda09
JA
186# Identity of this package.
187PACKAGE_NAME='bash'
188PACKAGE_TARNAME='bash'
189PACKAGE_VERSION='2.05a'
190PACKAGE_STRING='bash 2.05a'
191PACKAGE_BUGREPORT='bug-bash@gnu.org'
ccc6cda3
JA
192
193ac_prev=
194for ac_option
195do
ccc6cda3
JA
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
199 ac_prev=
200 continue
201 fi
202
f73dda09 203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
ccc6cda3
JA
204
205 # Accept the important Cygnus configure options, so we can diagnose typos.
206
f73dda09 207 case $ac_option in
ccc6cda3
JA
208
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 ac_prev=bindir ;;
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f73dda09 212 bindir=$ac_optarg ;;
ccc6cda3
JA
213
214 -build | --build | --buil | --bui | --bu)
f73dda09 215 ac_prev=build_alias ;;
ccc6cda3 216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f73dda09 217 build_alias=$ac_optarg ;;
ccc6cda3
JA
218
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
f73dda09
JA
224 cache_file=$ac_optarg ;;
225
226 --config-cache | -C)
227 cache_file=config.cache ;;
ccc6cda3
JA
228
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 ac_prev=datadir ;;
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 | --da=*)
f73dda09 233 datadir=$ac_optarg ;;
ccc6cda3
JA
234
235 -disable-* | --disable-*)
f73dda09 236 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
ccc6cda3 237 # Reject names that are not valid shell variable names.
f73dda09
JA
238 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
239 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
240 { (exit 1); exit 1; }; }
241 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
242 eval "enable_$ac_feature=no" ;;
ccc6cda3
JA
243
244 -enable-* | --enable-*)
f73dda09 245 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
ccc6cda3 246 # Reject names that are not valid shell variable names.
f73dda09
JA
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
251 case $ac_option in
252 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
ccc6cda3
JA
253 *) ac_optarg=yes ;;
254 esac
f73dda09 255 eval "enable_$ac_feature='$ac_optarg'" ;;
ccc6cda3
JA
256
257 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
258 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
259 | --exec | --exe | --ex)
260 ac_prev=exec_prefix ;;
261 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
262 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
263 | --exec=* | --exe=* | --ex=*)
f73dda09 264 exec_prefix=$ac_optarg ;;
ccc6cda3
JA
265
266 -gas | --gas | --ga | --g)
267 # Obsolete; use --with-gas.
268 with_gas=yes ;;
269
f73dda09
JA
270 -help | --help | --hel | --he | -h)
271 ac_init_help=long ;;
272 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
273 ac_init_help=recursive ;;
274 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
275 ac_init_help=short ;;
ccc6cda3
JA
276
277 -host | --host | --hos | --ho)
f73dda09 278 ac_prev=host_alias ;;
ccc6cda3 279 -host=* | --host=* | --hos=* | --ho=*)
f73dda09 280 host_alias=$ac_optarg ;;
ccc6cda3
JA
281
282 -includedir | --includedir | --includedi | --included | --include \
283 | --includ | --inclu | --incl | --inc)
284 ac_prev=includedir ;;
285 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
286 | --includ=* | --inclu=* | --incl=* | --inc=*)
f73dda09 287 includedir=$ac_optarg ;;
ccc6cda3
JA
288
289 -infodir | --infodir | --infodi | --infod | --info | --inf)
290 ac_prev=infodir ;;
291 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f73dda09 292 infodir=$ac_optarg ;;
ccc6cda3
JA
293
294 -libdir | --libdir | --libdi | --libd)
295 ac_prev=libdir ;;
296 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f73dda09 297 libdir=$ac_optarg ;;
ccc6cda3
JA
298
299 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
300 | --libexe | --libex | --libe)
301 ac_prev=libexecdir ;;
302 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
303 | --libexe=* | --libex=* | --libe=*)
f73dda09 304 libexecdir=$ac_optarg ;;
ccc6cda3
JA
305
306 -localstatedir | --localstatedir | --localstatedi | --localstated \
307 | --localstate | --localstat | --localsta | --localst \
308 | --locals | --local | --loca | --loc | --lo)
309 ac_prev=localstatedir ;;
310 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
311 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
312 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
f73dda09 313 localstatedir=$ac_optarg ;;
ccc6cda3
JA
314
315 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316 ac_prev=mandir ;;
317 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f73dda09 318 mandir=$ac_optarg ;;
ccc6cda3
JA
319
320 -nfp | --nfp | --nf)
321 # Obsolete; use --without-fp.
322 with_fp=no ;;
323
324 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 | --no-cr | --no-c)
326 no_create=yes ;;
327
328 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
329 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 no_recursion=yes ;;
331
332 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
333 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
334 | --oldin | --oldi | --old | --ol | --o)
335 ac_prev=oldincludedir ;;
336 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
337 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
338 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
f73dda09 339 oldincludedir=$ac_optarg ;;
ccc6cda3
JA
340
341 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342 ac_prev=prefix ;;
343 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f73dda09 344 prefix=$ac_optarg ;;
ccc6cda3
JA
345
346 -program-prefix | --program-prefix | --program-prefi | --program-pref \
347 | --program-pre | --program-pr | --program-p)
348 ac_prev=program_prefix ;;
349 -program-prefix=* | --program-prefix=* | --program-prefi=* \
350 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
f73dda09 351 program_prefix=$ac_optarg ;;
ccc6cda3
JA
352
353 -program-suffix | --program-suffix | --program-suffi | --program-suff \
354 | --program-suf | --program-su | --program-s)
355 ac_prev=program_suffix ;;
356 -program-suffix=* | --program-suffix=* | --program-suffi=* \
357 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
f73dda09 358 program_suffix=$ac_optarg ;;
ccc6cda3
JA
359
360 -program-transform-name | --program-transform-name \
361 | --program-transform-nam | --program-transform-na \
362 | --program-transform-n | --program-transform- \
363 | --program-transform | --program-transfor \
364 | --program-transfo | --program-transf \
365 | --program-trans | --program-tran \
366 | --progr-tra | --program-tr | --program-t)
367 ac_prev=program_transform_name ;;
368 -program-transform-name=* | --program-transform-name=* \
369 | --program-transform-nam=* | --program-transform-na=* \
370 | --program-transform-n=* | --program-transform-=* \
371 | --program-transform=* | --program-transfor=* \
372 | --program-transfo=* | --program-transf=* \
373 | --program-trans=* | --program-tran=* \
374 | --progr-tra=* | --program-tr=* | --program-t=*)
f73dda09 375 program_transform_name=$ac_optarg ;;
ccc6cda3
JA
376
377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
378 | -silent | --silent | --silen | --sile | --sil)
379 silent=yes ;;
380
381 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382 ac_prev=sbindir ;;
383 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384 | --sbi=* | --sb=*)
f73dda09 385 sbindir=$ac_optarg ;;
ccc6cda3
JA
386
387 -sharedstatedir | --sharedstatedir | --sharedstatedi \
388 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
389 | --sharedst | --shareds | --shared | --share | --shar \
390 | --sha | --sh)
391 ac_prev=sharedstatedir ;;
392 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
393 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
394 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395 | --sha=* | --sh=*)
f73dda09 396 sharedstatedir=$ac_optarg ;;
ccc6cda3
JA
397
398 -site | --site | --sit)
399 ac_prev=site ;;
400 -site=* | --site=* | --sit=*)
f73dda09 401 site=$ac_optarg ;;
ccc6cda3
JA
402
403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404 ac_prev=srcdir ;;
405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f73dda09 406 srcdir=$ac_optarg ;;
ccc6cda3
JA
407
408 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
409 | --syscon | --sysco | --sysc | --sys | --sy)
410 ac_prev=sysconfdir ;;
411 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
412 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
f73dda09 413 sysconfdir=$ac_optarg ;;
ccc6cda3
JA
414
415 -target | --target | --targe | --targ | --tar | --ta | --t)
f73dda09 416 ac_prev=target_alias ;;
ccc6cda3 417 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f73dda09 418 target_alias=$ac_optarg ;;
ccc6cda3
JA
419
420 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 verbose=yes ;;
422
f73dda09
JA
423 -version | --version | --versio | --versi | --vers | -V)
424 ac_init_version=: ;;
ccc6cda3
JA
425
426 -with-* | --with-*)
f73dda09 427 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
ccc6cda3 428 # Reject names that are not valid shell variable names.
f73dda09
JA
429 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
430 { echo "$as_me: error: invalid package name: $ac_package" >&2
431 { (exit 1); exit 1; }; }
ccc6cda3 432 ac_package=`echo $ac_package| sed 's/-/_/g'`
f73dda09
JA
433 case $ac_option in
434 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
ccc6cda3
JA
435 *) ac_optarg=yes ;;
436 esac
f73dda09 437 eval "with_$ac_package='$ac_optarg'" ;;
ccc6cda3
JA
438
439 -without-* | --without-*)
f73dda09 440 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
ccc6cda3 441 # Reject names that are not valid shell variable names.
f73dda09
JA
442 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
443 { echo "$as_me: error: invalid package name: $ac_package" >&2
444 { (exit 1); exit 1; }; }
445 ac_package=`echo $ac_package | sed 's/-/_/g'`
446 eval "with_$ac_package=no" ;;
ccc6cda3
JA
447
448 --x)
449 # Obsolete; use --with-x.
450 with_x=yes ;;
451
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev=x_includes ;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
f73dda09 457 x_includes=$ac_optarg ;;
ccc6cda3
JA
458
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev=x_libraries ;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
f73dda09 464 x_libraries=$ac_optarg ;;
ccc6cda3 465
f73dda09
JA
466 -*) { echo "$as_me: error: unrecognized option: $ac_option
467Try \`$0 --help' for more information." >&2
468 { (exit 1); exit 1; }; }
ccc6cda3
JA
469 ;;
470
f73dda09
JA
471 *=*)
472 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
473 # Reject names that are not valid shell variable names.
474 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
475 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
476 { (exit 1); exit 1; }; }
477 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
478 eval "$ac_envvar='$ac_optarg'"
479 export $ac_envvar ;;
480
ccc6cda3 481 *)
f73dda09
JA
482 # FIXME: should be removed in autoconf 3.0.
483 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
484 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
485 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
486 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
ccc6cda3
JA
487 ;;
488
489 esac
490done
491
492if test -n "$ac_prev"; then
f73dda09
JA
493 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
494 { echo "$as_me: error: missing argument to $ac_option" >&2
495 { (exit 1); exit 1; }; }
ccc6cda3 496fi
ccc6cda3 497
f73dda09
JA
498# Be sure to have absolute paths.
499for ac_var in exec_prefix prefix
500do
501 eval ac_val=$`echo $ac_var`
502 case $ac_val in
503 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
504 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
505 { (exit 1); exit 1; }; };;
506 esac
507done
ccc6cda3 508
f73dda09
JA
509# Be sure to have absolute paths.
510for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
511 localstatedir libdir includedir oldincludedir infodir mandir
ccc6cda3 512do
f73dda09
JA
513 eval ac_val=$`echo $ac_var`
514 case $ac_val in
515 [\\/$]* | ?:[\\/]* ) ;;
516 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
517 { (exit 1); exit 1; }; };;
ccc6cda3
JA
518 esac
519done
520
f73dda09
JA
521# There might be people who depend on the old broken behavior: `$host'
522# used to hold the argument of --host etc.
523build=$build_alias
524host=$host_alias
525target=$target_alias
526
527# FIXME: should be removed in autoconf 3.0.
528if test "x$host_alias" != x; then
529 if test "x$build_alias" = x; then
530 cross_compiling=maybe
531 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
532 If a cross compiler is detected then cross compile mode will be used." >&2
533 elif test "x$build_alias" != "x$host_alias"; then
534 cross_compiling=yes
535 fi
536fi
ccc6cda3 537
f73dda09
JA
538ac_tool_prefix=
539test -n "$host_alias" && ac_tool_prefix=$host_alias-
ccc6cda3 540
f73dda09 541test "$silent" = yes && exec 6>/dev/null
ccc6cda3
JA
542
543# Find the source files, if location was not specified.
544if test -z "$srcdir"; then
545 ac_srcdir_defaulted=yes
546 # Try the directory containing this script, then its parent.
547 ac_prog=$0
f73dda09 548 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
ccc6cda3
JA
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
550 srcdir=$ac_confdir
551 if test ! -r $srcdir/$ac_unique_file; then
552 srcdir=..
553 fi
554else
555 ac_srcdir_defaulted=no
556fi
557if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
f73dda09
JA
559 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
560 { (exit 1); exit 1; }; }
ccc6cda3 561 else
f73dda09
JA
562 { echo "$as_me: error: cannot find sources in $srcdir" >&2
563 { (exit 1); exit 1; }; }
ccc6cda3
JA
564 fi
565fi
f73dda09
JA
566srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
567ac_env_build_alias_set=${build_alias+set}
568ac_env_build_alias_value=$build_alias
569ac_cv_env_build_alias_set=${build_alias+set}
570ac_cv_env_build_alias_value=$build_alias
571ac_env_host_alias_set=${host_alias+set}
572ac_env_host_alias_value=$host_alias
573ac_cv_env_host_alias_set=${host_alias+set}
574ac_cv_env_host_alias_value=$host_alias
575ac_env_target_alias_set=${target_alias+set}
576ac_env_target_alias_value=$target_alias
577ac_cv_env_target_alias_set=${target_alias+set}
578ac_cv_env_target_alias_value=$target_alias
579ac_env_CC_set=${CC+set}
580ac_env_CC_value=$CC
581ac_cv_env_CC_set=${CC+set}
582ac_cv_env_CC_value=$CC
583ac_env_CFLAGS_set=${CFLAGS+set}
584ac_env_CFLAGS_value=$CFLAGS
585ac_cv_env_CFLAGS_set=${CFLAGS+set}
586ac_cv_env_CFLAGS_value=$CFLAGS
587ac_env_LDFLAGS_set=${LDFLAGS+set}
588ac_env_LDFLAGS_value=$LDFLAGS
589ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
590ac_cv_env_LDFLAGS_value=$LDFLAGS
591ac_env_CPPFLAGS_set=${CPPFLAGS+set}
592ac_env_CPPFLAGS_value=$CPPFLAGS
593ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
594ac_cv_env_CPPFLAGS_value=$CPPFLAGS
595ac_env_CPP_set=${CPP+set}
596ac_env_CPP_value=$CPP
597ac_cv_env_CPP_set=${CPP+set}
598ac_cv_env_CPP_value=$CPP
ccc6cda3 599
f73dda09
JA
600#
601# Report the --help message.
602#
603if test "$ac_init_help" = "long"; then
604 # Omit some internal or obsolete options to make the list less imposing.
605 # This message is too long to be a string in the A/UX 3.1 sh.
606 cat <<EOF
607\`configure' configures bash 2.05a to adapt to many kinds of systems.
ccc6cda3 608
f73dda09 609Usage: $0 [OPTION]... [VAR=VALUE]...
ccc6cda3 610
f73dda09
JA
611To assign environment variables (e.g., CC, CFLAGS...), specify them as
612VAR=VALUE. See below for descriptions of some of the useful variables.
613
614Defaults for the options are specified in brackets.
ccc6cda3 615
f73dda09
JA
616Configuration:
617 -h, --help display this help and exit
618 --help=short display options specific to this package
619 --help=recursive display the short help of all the included packages
620 -V, --version display version information and exit
621 -q, --quiet, --silent do not print \`checking...' messages
622 --cache-file=FILE cache test results in FILE [disabled]
623 -C, --config-cache alias for \`--cache-file=config.cache'
624 -n, --no-create do not create output files
625 --srcdir=DIR find the sources in DIR [configure dir or \`..']
ccc6cda3 626
f73dda09 627EOF
ccc6cda3 628
f73dda09
JA
629 cat <<EOF
630Installation directories:
631 --prefix=PREFIX install architecture-independent files in PREFIX
632 [$ac_default_prefix]
633 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
634 [PREFIX]
ccc6cda3 635
f73dda09
JA
636By default, \`make install' will install all the files in
637\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
638an installation prefix other than \`$ac_default_prefix' using \`--prefix',
639for instance \`--prefix=\$HOME'.
ccc6cda3 640
f73dda09 641For better control, use the options below.
ccc6cda3 642
f73dda09
JA
643Fine tuning of the installation directories:
644 --bindir=DIR user executables [EPREFIX/bin]
645 --sbindir=DIR system admin executables [EPREFIX/sbin]
646 --libexecdir=DIR program executables [EPREFIX/libexec]
647 --datadir=DIR read-only architecture-independent data [PREFIX/share]
648 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
649 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
650 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
651 --libdir=DIR object code libraries [EPREFIX/lib]
652 --includedir=DIR C header files [PREFIX/include]
653 --oldincludedir=DIR C header files for non-gcc [/usr/include]
654 --infodir=DIR info documentation [PREFIX/info]
655 --mandir=DIR man documentation [PREFIX/man]
656EOF
657
658 cat <<\EOF
659
660System types:
661 --build=BUILD configure for building on BUILD [guessed]
662 --host=HOST build programs to run on HOST [BUILD]
663EOF
ccc6cda3 664fi
ccc6cda3 665
f73dda09
JA
666if test -n "$ac_init_help"; then
667 case $ac_init_help in
668 short | recursive ) echo "Configuration of bash 2.05a:";;
669 esac
670 cat <<\EOF
ccc6cda3 671
f73dda09
JA
672Optional Features:
673 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
674 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
675--enable-minimal-config a minimal sh-like configuration
676--enable-alias enable shell aliases
677--enable-arith-for-command enable arithmetic for command
678--enable-array-variables include shell array variables
679--enable-bang-history turn on csh-style history substitution
680--enable-brace-expansion include brace expansion
681--enable-command-timing enable the time reserved word and command timing
682--enable-cond-command enable the conditional command
683--enable-directory-stack enable builtins pushd/popd/dirs
684--enable-disabled-builtins allow disabled builtins to still be invoked
685--enable-dparen-arithmetic include ((...)) command
686--enable-extended-glob include ksh-style extended pattern matching
687--enable-help-builtin include the help builtin
688--enable-history turn on command history
689--enable-job-control enable job control features
690--enable-largefile enable support for large files
691--enable-net-redirections enable /dev/tcp/host/port redirection
692--enable-process-substitution enable process substitution
693--enable-progcomp enable programmable completion and the complete builtin
694--enable-prompt-string-decoding turn on escape character decoding in prompts
695--enable-readline turn on command line editing
696--enable-restricted enable a restricted shell
697--enable-select include select command
698--enable-usg-echo-default a synonym for --enable-xpg-echo-default
699--enable-xpg-echo-default make the echo builtin expand escape sequences by default
700--enable-profiling allow profiling with gprof
701--enable-static-link link bash statically, for use as a root shell
702 --disable-largefile omit support for large files
703
704Optional Packages:
705 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
706 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
707--with-afs if you are running AFS
708--with-bash-malloc use the Bash version of malloc
709--with-curses use the curses library instead of the termcap library
710--with-gnu-malloc synonym for --with-bash-malloc
711--with-installed-readline use a version of the readline library that is already installed
712--with-purecov configure to postprocess with pure coverage
713--with-purify configure to postprocess with purify
714
715Some influential environment variables:
716 CC C compiler command
717 CFLAGS C compiler flags
718 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
719 nonstandard directory <lib dir>
720 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
721 headers in a nonstandard directory <include dir>
722 CPP C preprocessor
723
724Use these variables to override the choices made by `configure' or to help
725it to find libraries and programs with nonstandard names/locations.
726
727Report bugs to <bug-bash@gnu.org>.
728EOF
729fi
730
731if test "$ac_init_help" = "recursive"; then
732 # If there are subdirs, report their specific --help.
733 ac_popdir=`pwd`
734 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
735 cd $ac_subdir
736 # A "../" for each directory in /$ac_subdir.
737 ac_dots=`echo $ac_subdir |
738 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
739
740 case $srcdir in
741 .) # No --srcdir option. We are building in place.
742 ac_sub_srcdir=$srcdir ;;
743 [\\/]* | ?:[\\/]* ) # Absolute path.
744 ac_sub_srcdir=$srcdir/$ac_subdir ;;
745 *) # Relative path.
746 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
747 esac
ccc6cda3 748
f73dda09
JA
749 # Check for guested configure; otherwise get Cygnus style configure.
750 if test -f $ac_sub_srcdir/configure.gnu; then
751 echo
752 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
753 elif test -f $ac_sub_srcdir/configure; then
754 echo
755 $SHELL $ac_sub_srcdir/configure --help=recursive
756 elif test -f $ac_sub_srcdir/configure.ac ||
757 test -f $ac_sub_srcdir/configure.in; then
758 echo
759 $ac_configure --help
760 else
761 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
762 fi
763 cd $ac_popdir
764 done
765fi
ccc6cda3 766
f73dda09
JA
767test -n "$ac_init_help" && exit 0
768if $ac_init_version; then
769 cat <<\EOF
770bash configure 2.05a
771generated by GNU Autoconf 2.52
ccc6cda3 772
f73dda09
JA
773Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
774Free Software Foundation, Inc.
775This configure script is free software; the Free Software Foundation
776gives unlimited permission to copy, distribute and modify it.
777EOF
778 exit 0
779fi
780exec 5>config.log
781cat >&5 <<EOF
782This file contains any messages produced by compilers while
783running configure, to aid debugging if configure makes a mistake.
ccc6cda3 784
f73dda09
JA
785It was created by bash $as_me 2.05a, which was
786generated by GNU Autoconf 2.52. Invocation command line was
ccc6cda3 787
f73dda09 788 $ $0 $@
bb70624e 789
f73dda09
JA
790EOF
791{
792cat <<_ASUNAME
793## ---------- ##
794## Platform. ##
795## ---------- ##
796
797hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
798uname -m = `(uname -m) 2>/dev/null || echo unknown`
799uname -r = `(uname -r) 2>/dev/null || echo unknown`
800uname -s = `(uname -s) 2>/dev/null || echo unknown`
801uname -v = `(uname -v) 2>/dev/null || echo unknown`
802
803/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
804/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
805
806/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
807/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
808/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
809hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
810/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
811/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
812/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
813
814PATH = $PATH
815
816_ASUNAME
817} >&5
818
819cat >&5 <<EOF
820## ------------ ##
821## Core tests. ##
822## ------------ ##
823
824EOF
825
826# Keep a trace of the command line.
827# Strip out --no-create and --no-recursion so they do not pile up.
828# Also quote any args containing shell meta-characters.
829ac_configure_args=
830ac_sep=
831for ac_arg
832do
833 case $ac_arg in
834 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
835 | --no-cr | --no-c) ;;
836 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
837 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
838 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
839 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
840 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
841 ac_sep=" " ;;
842 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
843 ac_sep=" " ;;
844 esac
845 # Get rid of the leading space.
846done
847
848# When interrupted or exit'd, cleanup temporary files, and complete
849# config.log. We remove comments because anyway the quotes in there
850# would cause problems or look ugly.
851trap 'exit_status=$?
852 # Save into config.log some information that might help in debugging.
853 echo >&5
854 echo "## ----------------- ##" >&5
855 echo "## Cache variables. ##" >&5
856 echo "## ----------------- ##" >&5
857 echo >&5
858 # The following way of writing the cache mishandles newlines in values,
859{
860 (set) 2>&1 |
861 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
862 *ac_space=\ *)
863 sed -n \
864 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
866 ;;
867 *)
868 sed -n \
869 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
870 ;;
871 esac;
872} >&5
873 sed "/^$/d" confdefs.h >conftest.log
874 if test -s conftest.log; then
875 echo >&5
876 echo "## ------------ ##" >&5
877 echo "## confdefs.h. ##" >&5
878 echo "## ------------ ##" >&5
879 echo >&5
880 cat conftest.log >&5
881 fi
882 (echo; echo) >&5
883 test "$ac_signal" != 0 &&
884 echo "$as_me: caught signal $ac_signal" >&5
885 echo "$as_me: exit $exit_status" >&5
886 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
887 exit $exit_status
888 ' 0
889for ac_signal in 1 2 13 15; do
890 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
891done
892ac_signal=0
893
894# confdefs.h avoids OS command line length limits that DEFS can exceed.
895rm -rf conftest* confdefs.h
896# AIX cpp loses on an empty file, so make sure it contains at least a newline.
897echo >confdefs.h
898
899# Let the site file select an alternate cache file if it wants to.
900# Prefer explicitly selected file to automatically selected ones.
901if test -z "$CONFIG_SITE"; then
902 if test "x$prefix" != xNONE; then
903 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
904 else
905 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
906 fi
907fi
908for ac_site_file in $CONFIG_SITE; do
909 if test -r "$ac_site_file"; then
910 { echo "$as_me:910: loading site script $ac_site_file" >&5
911echo "$as_me: loading site script $ac_site_file" >&6;}
912 cat "$ac_site_file" >&5
913 . "$ac_site_file"
914 fi
915done
916
917if test -r "$cache_file"; then
918 # Some versions of bash will fail to source /dev/null (special
919 # files actually), so we avoid doing that.
920 if test -f "$cache_file"; then
921 { echo "$as_me:921: loading cache $cache_file" >&5
922echo "$as_me: loading cache $cache_file" >&6;}
923 case $cache_file in
924 [\\/]* | ?:[\\/]* ) . $cache_file;;
925 *) . ./$cache_file;;
926 esac
927 fi
928else
929 { echo "$as_me:929: creating cache $cache_file" >&5
930echo "$as_me: creating cache $cache_file" >&6;}
931 >$cache_file
932fi
933
934# Check that the precious variables saved in the cache have kept the same
935# value.
936ac_cache_corrupted=false
937for ac_var in `(set) 2>&1 |
938 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
939 eval ac_old_set=\$ac_cv_env_${ac_var}_set
940 eval ac_new_set=\$ac_env_${ac_var}_set
941 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
942 eval ac_new_val="\$ac_env_${ac_var}_value"
943 case $ac_old_set,$ac_new_set in
944 set,)
945 { echo "$as_me:945: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
946echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
947 ac_cache_corrupted=: ;;
948 ,set)
949 { echo "$as_me:949: error: \`$ac_var' was not set in the previous run" >&5
950echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
951 ac_cache_corrupted=: ;;
952 ,);;
953 *)
954 if test "x$ac_old_val" != "x$ac_new_val"; then
955 { echo "$as_me:955: error: \`$ac_var' has changed since the previous run:" >&5
956echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
957 { echo "$as_me:957: former value: $ac_old_val" >&5
958echo "$as_me: former value: $ac_old_val" >&2;}
959 { echo "$as_me:959: current value: $ac_new_val" >&5
960echo "$as_me: current value: $ac_new_val" >&2;}
961 ac_cache_corrupted=:
962 fi;;
963 esac
964 # Pass precious variables to config.status. It doesn't matter if
965 # we pass some twice (in addition to the command line arguments).
966 if test "$ac_new_set" = set; then
967 case $ac_new_val in
968 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
969 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
970 ac_configure_args="$ac_configure_args '$ac_arg'"
971 ;;
972 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
973 ;;
974 esac
975 fi
976done
977if $ac_cache_corrupted; then
978 { echo "$as_me:978: error: changes in the environment can compromise the build" >&5
979echo "$as_me: error: changes in the environment can compromise the build" >&2;}
980 { { echo "$as_me:980: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
981echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
982 { (exit 1); exit 1; }; }
983fi
984
985ac_ext=c
986ac_cpp='$CPP $CPPFLAGS'
987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
989ac_compiler_gnu=$ac_cv_c_compiler_gnu
990
991case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
992 *c*,-n*) ECHO_N= ECHO_C='
993' ECHO_T=' ' ;;
994 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
995 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
996esac
997echo "#! $SHELL" >conftest.sh
998echo "exit 0" >>conftest.sh
999chmod +x conftest.sh
1000if { (echo "$as_me:1000: PATH=\".;.\"; conftest.sh") >&5
1001 (PATH=".;."; conftest.sh) 2>&5
1002 ac_status=$?
1003 echo "$as_me:1003: \$? = $ac_status" >&5
1004 (exit $ac_status); }; then
1005 ac_path_separator=';'
1006else
1007 ac_path_separator=:
1008fi
1009PATH_SEPARATOR="$ac_path_separator"
1010rm -f conftest.sh
1011
1012ac_aux_dir=
1013for ac_dir in ./support $srcdir/./support; do
1014 if test -f $ac_dir/install-sh; then
1015 ac_aux_dir=$ac_dir
1016 ac_install_sh="$ac_aux_dir/install-sh -c"
1017 break
1018 elif test -f $ac_dir/install.sh; then
1019 ac_aux_dir=$ac_dir
1020 ac_install_sh="$ac_aux_dir/install.sh -c"
1021 break
1022 elif test -f $ac_dir/shtool; then
1023 ac_aux_dir=$ac_dir
1024 ac_install_sh="$ac_aux_dir/shtool install -c"
1025 break
1026 fi
1027done
1028if test -z "$ac_aux_dir"; then
1029 { { echo "$as_me:1029: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1030echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1031 { (exit 1); exit 1; }; }
1032fi
1033ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1034ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1035ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1036
1037ac_config_headers="$ac_config_headers config.h"
1038
1039BASHVERS=2.05a
1040
1041# Make sure we can run config.sub.
1042$ac_config_sub sun4 >/dev/null 2>&1 ||
1043 { { echo "$as_me:1043: error: cannot run $ac_config_sub" >&5
1044echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1045 { (exit 1); exit 1; }; }
1046
1047echo "$as_me:1047: checking build system type" >&5
1048echo $ECHO_N "checking build system type... $ECHO_C" >&6
1049if test "${ac_cv_build+set}" = set; then
1050 echo $ECHO_N "(cached) $ECHO_C" >&6
1051else
1052 ac_cv_build_alias=$build_alias
1053test -z "$ac_cv_build_alias" &&
1054 ac_cv_build_alias=`$ac_config_guess`
1055test -z "$ac_cv_build_alias" &&
1056 { { echo "$as_me:1056: error: cannot guess build type; you must specify one" >&5
1057echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1058 { (exit 1); exit 1; }; }
1059ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1060 { { echo "$as_me:1060: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1061echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1062 { (exit 1); exit 1; }; }
1063
1064fi
1065echo "$as_me:1065: result: $ac_cv_build" >&5
1066echo "${ECHO_T}$ac_cv_build" >&6
1067build=$ac_cv_build
1068build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1071
1072echo "$as_me:1072: checking host system type" >&5
1073echo $ECHO_N "checking host system type... $ECHO_C" >&6
1074if test "${ac_cv_host+set}" = set; then
1075 echo $ECHO_N "(cached) $ECHO_C" >&6
1076else
1077 ac_cv_host_alias=$host_alias
1078test -z "$ac_cv_host_alias" &&
1079 ac_cv_host_alias=$ac_cv_build_alias
1080ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1081 { { echo "$as_me:1081: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1082echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1083 { (exit 1); exit 1; }; }
1084
1085fi
1086echo "$as_me:1086: result: $ac_cv_host" >&5
1087echo "${ECHO_T}$ac_cv_host" >&6
1088host=$ac_cv_host
1089host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1090host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1091host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1092
1093opt_bash_malloc=yes
1094opt_purify=no
1095opt_purecov=no
1096opt_afs=no
1097opt_curses=no
1098opt_with_installed_readline=no
1099
1100#htmldir=
1101
1102case "${host_cpu}-${host_os}" in
1103alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
1104*[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
1105*-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
1106sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
1107sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
bb70624e
JA
1108mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
1109m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
1110sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
1111#*-freebsd*) opt_bash_malloc=no ;; # they claim it's better
f73dda09 1112*-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
bb70624e
JA
1113*-aix*) opt_bash_malloc=no ;; # AIX machines
1114*-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
28ef6c31
JA
1115*-macos*) opt_bash_malloc=no ;; # Apple MacOS X
1116*-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
1117*-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
bb70624e
JA
1118*-dgux*) opt_bash_malloc=no ;; # DG/UX machines
1119*-qnx*) opt_bash_malloc=no ;; # QNX 4.2
1120*-machten4) opt_bash_malloc=no ;; # MachTen 4.x
1121*-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1122*-beos*) opt_bash_malloc=no ;; # they say it's suitable
28ef6c31
JA
1123*-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
1124*-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
ccc6cda3
JA
1125esac
1126
d166f048
JA
1127# Check whether --with-afs or --without-afs was given.
1128if test "${with_afs+set}" = set; then
1129 withval="$with_afs"
1130 opt_afs=$withval
f73dda09 1131fi;
d166f048 1132
bb70624e
JA
1133# Check whether --with-bash-malloc or --without-bash-malloc was given.
1134if test "${with_bash_malloc+set}" = set; then
1135 withval="$with_bash_malloc"
1136 opt_bash_malloc=$withval
f73dda09 1137fi;
bb70624e 1138
d166f048
JA
1139# Check whether --with-curses or --without-curses was given.
1140if test "${with_curses+set}" = set; then
1141 withval="$with_curses"
1142 opt_curses=$withval
f73dda09 1143fi;
ccc6cda3 1144
d166f048
JA
1145# Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1146if test "${with_gnu_malloc+set}" = set; then
1147 withval="$with_gnu_malloc"
bb70624e 1148 opt_bash_malloc=$withval
f73dda09 1149fi;
d166f048 1150
b72432fd
JA
1151# Check whether --with-installed-readline or --without-installed-readline was given.
1152if test "${with_installed_readline+set}" = set; then
1153 withval="$with_installed_readline"
1154 opt_with_installed_readline=$withval
f73dda09 1155fi;
b72432fd 1156
d166f048
JA
1157# Check whether --with-purecov or --without-purecov was given.
1158if test "${with_purecov+set}" = set; then
1159 withval="$with_purecov"
1160 opt_purecov=$withval
f73dda09 1161fi;
d166f048 1162
ccc6cda3
JA
1163# Check whether --with-purify or --without-purify was given.
1164if test "${with_purify+set}" = set; then
1165 withval="$with_purify"
1166 opt_purify=$withval
f73dda09 1167fi;
ccc6cda3 1168
f73dda09 1169if test "$opt_bash_malloc" = yes; then
d166f048
JA
1170 MALLOC_TARGET=malloc
1171 MALLOC_SRC=malloc.c
f73dda09
JA
1172
1173 MALLOC_LIB='-lmalloc'
1174 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1175 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1176 MALLOC_DEP='$(MALLOC_LIBRARY)'
1177
1178 cat >>confdefs.h <<\EOF
bb70624e
JA
1179#define USING_BASH_MALLOC 1
1180EOF
1181
ccc6cda3 1182else
f73dda09
JA
1183 MALLOC_LIB=
1184 MALLOC_LIBRARY=
1185 MALLOC_LDFLAGS=
1186 MALLOC_DEP=
ccc6cda3
JA
1187fi
1188
1189if test "$opt_purify" = yes; then
d166f048 1190 PURIFY="purify "
ccc6cda3
JA
1191else
1192 PURIFY=
1193fi
1194
d166f048
JA
1195if test "$opt_purecov" = yes; then
1196 PURIFY="${PURIFY}purecov"
1197fi
1198
ccc6cda3 1199if test "$opt_afs" = yes; then
f73dda09 1200 cat >>confdefs.h <<\EOF
ccc6cda3
JA
1201#define AFS 1
1202EOF
1203
1204fi
1205
d166f048
JA
1206if test "$opt_curses" = yes; then
1207 prefer_curses=yes
1208fi
1209
ccc6cda3
JA
1210opt_minimal_config=no
1211
1212opt_job_control=yes
1213opt_alias=yes
1214opt_readline=yes
1215opt_history=yes
1216opt_bang_history=yes
1217opt_dirstack=yes
1218opt_restricted=yes
1219opt_process_subst=yes
1220opt_prompt_decoding=yes
1221opt_select=yes
1222opt_help=yes
1223opt_array_variables=yes
1224opt_dparen_arith=yes
cce855bc 1225opt_extended_glob=yes
ccc6cda3
JA
1226opt_brace_expansion=yes
1227opt_disabled_builtins=no
1228opt_command_timing=yes
bb70624e 1229opt_xpg_echo=no
cce855bc 1230opt_cond_command=yes
bb70624e
JA
1231opt_arith_for_command=yes
1232opt_net_redirs=yes
1233opt_progcomp=yes
f73dda09 1234opt_largefile=yes
cce855bc
JA
1235
1236opt_static_link=no
1237opt_profiling=no
ccc6cda3
JA
1238
1239# Check whether --enable-minimal-config or --disable-minimal-config was given.
1240if test "${enable_minimal_config+set}" = set; then
1241 enableval="$enable_minimal_config"
1242 opt_minimal_config=$enableval
f73dda09 1243fi;
ccc6cda3
JA
1244
1245if test $opt_minimal_config = yes; then
1246 opt_job_control=no opt_alias=no opt_readline=no
1247 opt_history=no opt_bang_history=no opt_dirstack=no
1248 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1249 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1250 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
bb70624e
JA
1251 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
1252 opt_net_redirs=no opt_progcomp=no
ccc6cda3
JA
1253fi
1254
ccc6cda3
JA
1255# Check whether --enable-alias or --disable-alias was given.
1256if test "${enable_alias+set}" = set; then
1257 enableval="$enable_alias"
1258 opt_alias=$enableval
f73dda09 1259fi;
bb70624e
JA
1260# Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1261if test "${enable_arith_for_command+set}" = set; then
1262 enableval="$enable_arith_for_command"
1263 opt_arith_for_command=$enableval
f73dda09 1264fi;
d166f048
JA
1265# Check whether --enable-array-variables or --disable-array-variables was given.
1266if test "${enable_array_variables+set}" = set; then
1267 enableval="$enable_array_variables"
1268 opt_array_variables=$enableval
f73dda09 1269fi;
ccc6cda3
JA
1270# Check whether --enable-bang-history or --disable-bang-history was given.
1271if test "${enable_bang_history+set}" = set; then
1272 enableval="$enable_bang_history"
1273 opt_bang_history=$enableval
f73dda09 1274fi;
d166f048
JA
1275# Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1276if test "${enable_brace_expansion+set}" = set; then
1277 enableval="$enable_brace_expansion"
1278 opt_brace_expansion=$enableval
f73dda09 1279fi;
d166f048
JA
1280# Check whether --enable-command-timing or --disable-command-timing was given.
1281if test "${enable_command_timing+set}" = set; then
1282 enableval="$enable_command_timing"
1283 opt_command_timing=$enableval
f73dda09 1284fi;
cce855bc
JA
1285# Check whether --enable-cond-command or --disable-cond-command was given.
1286if test "${enable_cond_command+set}" = set; then
1287 enableval="$enable_cond_command"
1288 opt_cond_command=$enableval
f73dda09 1289fi;
d166f048
JA
1290# Check whether --enable-directory-stack or --disable-directory-stack was given.
1291if test "${enable_directory_stack+set}" = set; then
1292 enableval="$enable_directory_stack"
1293 opt_dirstack=$enableval
f73dda09 1294fi;
d166f048
JA
1295# Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1296if test "${enable_disabled_builtins+set}" = set; then
1297 enableval="$enable_disabled_builtins"
1298 opt_disabled_builtins=$enableval
f73dda09 1299fi;
d166f048
JA
1300# Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1301if test "${enable_dparen_arithmetic+set}" = set; then
1302 enableval="$enable_dparen_arithmetic"
1303 opt_dparen_arith=$enableval
f73dda09 1304fi;
cce855bc
JA
1305# Check whether --enable-extended-glob or --disable-extended-glob was given.
1306if test "${enable_extended_glob+set}" = set; then
1307 enableval="$enable_extended_glob"
1308 opt_extended_glob=$enableval
f73dda09 1309fi;
ccc6cda3
JA
1310# Check whether --enable-help-builtin or --disable-help-builtin was given.
1311if test "${enable_help_builtin+set}" = set; then
1312 enableval="$enable_help_builtin"
1313 opt_help=$enableval
f73dda09 1314fi;
d166f048
JA
1315# Check whether --enable-history or --disable-history was given.
1316if test "${enable_history+set}" = set; then
1317 enableval="$enable_history"
1318 opt_history=$enableval
f73dda09 1319fi;
d166f048
JA
1320# Check whether --enable-job-control or --disable-job-control was given.
1321if test "${enable_job_control+set}" = set; then
1322 enableval="$enable_job_control"
1323 opt_job_control=$enableval
f73dda09
JA
1324fi;
1325# Check whether --enable-largefile or --disable-largefile was given.
1326if test "${enable_largefile+set}" = set; then
1327 enableval="$enable_largefile"
1328 opt_largefile=$enableval
1329fi;
bb70624e
JA
1330# Check whether --enable-net-redirections or --disable-net-redirections was given.
1331if test "${enable_net_redirections+set}" = set; then
1332 enableval="$enable_net_redirections"
1333 opt_net_redirs=$enableval
f73dda09 1334fi;
d166f048
JA
1335# Check whether --enable-process-substitution or --disable-process-substitution was given.
1336if test "${enable_process_substitution+set}" = set; then
1337 enableval="$enable_process_substitution"
1338 opt_process_subst=$enableval
f73dda09 1339fi;
bb70624e
JA
1340# Check whether --enable-progcomp or --disable-progcomp was given.
1341if test "${enable_progcomp+set}" = set; then
1342 enableval="$enable_progcomp"
1343 opt_progcomp=$enableval
f73dda09 1344fi;
d166f048
JA
1345# Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1346if test "${enable_prompt_string_decoding+set}" = set; then
1347 enableval="$enable_prompt_string_decoding"
1348 opt_prompt_decoding=$enableval
f73dda09 1349fi;
d166f048
JA
1350# Check whether --enable-readline or --disable-readline was given.
1351if test "${enable_readline+set}" = set; then
1352 enableval="$enable_readline"
1353 opt_readline=$enableval
f73dda09 1354fi;
d166f048
JA
1355# Check whether --enable-restricted or --disable-restricted was given.
1356if test "${enable_restricted+set}" = set; then
1357 enableval="$enable_restricted"
1358 opt_restricted=$enableval
f73dda09 1359fi;
d166f048
JA
1360# Check whether --enable-select or --disable-select was given.
1361if test "${enable_select+set}" = set; then
1362 enableval="$enable_select"
1363 opt_select=$enableval
f73dda09 1364fi;
ccc6cda3
JA
1365# Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1366if test "${enable_usg_echo_default+set}" = set; then
1367 enableval="$enable_usg_echo_default"
bb70624e 1368 opt_xpg_echo=$enableval
f73dda09 1369fi;
bb70624e
JA
1370# Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1371if test "${enable_xpg_echo_default+set}" = set; then
1372 enableval="$enable_xpg_echo_default"
1373 opt_xpg_echo=$enableval
f73dda09 1374fi;
ccc6cda3 1375
cce855bc
JA
1376# Check whether --enable-profiling or --disable-profiling was given.
1377if test "${enable_profiling+set}" = set; then
1378 enableval="$enable_profiling"
1379 opt_profiling=$enableval
f73dda09 1380fi;
cce855bc
JA
1381# Check whether --enable-static-link or --disable-static-link was given.
1382if test "${enable_static_link+set}" = set; then
1383 enableval="$enable_static_link"
1384 opt_static_link=$enableval
f73dda09 1385fi;
b72432fd 1386
ccc6cda3 1387if test $opt_alias = yes; then
f73dda09 1388cat >>confdefs.h <<\EOF
ccc6cda3
JA
1389#define ALIAS 1
1390EOF
1391
ccc6cda3
JA
1392fi
1393if test $opt_dirstack = yes; then
f73dda09 1394cat >>confdefs.h <<\EOF
ccc6cda3
JA
1395#define PUSHD_AND_POPD 1
1396EOF
1397
1398fi
1399if test $opt_restricted = yes; then
f73dda09 1400cat >>confdefs.h <<\EOF
ccc6cda3
JA
1401#define RESTRICTED_SHELL 1
1402EOF
1403
1404fi
1405if test $opt_process_subst = yes; then
f73dda09 1406cat >>confdefs.h <<\EOF
ccc6cda3
JA
1407#define PROCESS_SUBSTITUTION 1
1408EOF
1409
1410fi
1411if test $opt_prompt_decoding = yes; then
f73dda09 1412cat >>confdefs.h <<\EOF
ccc6cda3
JA
1413#define PROMPT_STRING_DECODE 1
1414EOF
1415
1416fi
1417if test $opt_select = yes; then
f73dda09 1418cat >>confdefs.h <<\EOF
ccc6cda3
JA
1419#define SELECT_COMMAND 1
1420EOF
1421
1422fi
1423if test $opt_help = yes; then
f73dda09 1424cat >>confdefs.h <<\EOF
ccc6cda3
JA
1425#define HELP_BUILTIN 1
1426EOF
1427
1428fi
1429if test $opt_array_variables = yes; then
f73dda09 1430cat >>confdefs.h <<\EOF
ccc6cda3
JA
1431#define ARRAY_VARS 1
1432EOF
1433
1434fi
1435if test $opt_dparen_arith = yes; then
f73dda09 1436cat >>confdefs.h <<\EOF
ccc6cda3
JA
1437#define DPAREN_ARITHMETIC 1
1438EOF
1439
1440fi
1441if test $opt_brace_expansion = yes; then
f73dda09 1442cat >>confdefs.h <<\EOF
ccc6cda3
JA
1443#define BRACE_EXPANSION 1
1444EOF
1445
1446fi
1447if test $opt_disabled_builtins = yes; then
f73dda09 1448cat >>confdefs.h <<\EOF
ccc6cda3
JA
1449#define DISABLED_BUILTINS 1
1450EOF
1451
1452fi
1453if test $opt_command_timing = yes; then
f73dda09 1454cat >>confdefs.h <<\EOF
ccc6cda3
JA
1455#define COMMAND_TIMING 1
1456EOF
1457
1458fi
bb70624e 1459if test $opt_xpg_echo = yes ; then
f73dda09 1460cat >>confdefs.h <<\EOF
bb70624e 1461#define DEFAULT_ECHO_TO_XPG 1
ccc6cda3
JA
1462EOF
1463
cce855bc
JA
1464fi
1465if test $opt_extended_glob = yes ; then
f73dda09 1466cat >>confdefs.h <<\EOF
cce855bc
JA
1467#define EXTENDED_GLOB 1
1468EOF
1469
1470fi
1471if test $opt_cond_command = yes ; then
f73dda09 1472cat >>confdefs.h <<\EOF
cce855bc
JA
1473#define COND_COMMAND 1
1474EOF
1475
bb70624e
JA
1476fi
1477if test $opt_arith_for_command = yes; then
f73dda09 1478cat >>confdefs.h <<\EOF
bb70624e
JA
1479#define ARITH_FOR_COMMAND 1
1480EOF
1481
1482fi
1483if test $opt_net_redirs = yes; then
f73dda09 1484cat >>confdefs.h <<\EOF
bb70624e
JA
1485#define NETWORK_REDIRECTIONS 1
1486EOF
1487
1488fi
1489if test $opt_progcomp = yes; then
f73dda09 1490cat >>confdefs.h <<\EOF
bb70624e
JA
1491#define PROGRAMMABLE_COMPLETION 1
1492EOF
1493
ccc6cda3
JA
1494fi
1495
d166f048
JA
1496if test "$opt_minimal_config" = yes; then
1497 TESTSCRIPT=run-minimal
1498else
1499 TESTSCRIPT=run-all
1500fi
1501
f73dda09
JA
1502echo ""
1503echo "Beginning configuration for bash-$BASHVERS for ${host_cpu}-${host_vendor}-${host_os}"
1504echo ""
d166f048 1505
f73dda09
JA
1506ac_ext=c
1507ac_cpp='$CPP $CPPFLAGS'
1508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511if test -n "$ac_tool_prefix"; then
1512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1513set dummy ${ac_tool_prefix}gcc; ac_word=$2
1514echo "$as_me:1514: checking for $ac_word" >&5
1515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516if test "${ac_cv_prog_CC+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1518else
1519 if test -n "$CC"; then
1520 ac_cv_prog_CC="$CC" # Let the user override the test.
1521else
1522 ac_save_IFS=$IFS; IFS=$ac_path_separator
1523ac_dummy="$PATH"
1524for ac_dir in $ac_dummy; do
1525 IFS=$ac_save_IFS
1526 test -z "$ac_dir" && ac_dir=.
1527 $as_executable_p "$ac_dir/$ac_word" || continue
1528ac_cv_prog_CC="${ac_tool_prefix}gcc"
1529echo "$as_me:1529: found $ac_dir/$ac_word" >&5
1530break
1531done
ccc6cda3 1532
f73dda09
JA
1533fi
1534fi
1535CC=$ac_cv_prog_CC
1536if test -n "$CC"; then
1537 echo "$as_me:1537: result: $CC" >&5
1538echo "${ECHO_T}$CC" >&6
1539else
1540 echo "$as_me:1540: result: no" >&5
1541echo "${ECHO_T}no" >&6
1542fi
ccc6cda3 1543
f73dda09
JA
1544fi
1545if test -z "$ac_cv_prog_CC"; then
1546 ac_ct_CC=$CC
1547 # Extract the first word of "gcc", so it can be a program name with args.
1548set dummy gcc; ac_word=$2
1549echo "$as_me:1549: checking for $ac_word" >&5
1550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554 if test -n "$ac_ct_CC"; then
1555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1556else
1557 ac_save_IFS=$IFS; IFS=$ac_path_separator
1558ac_dummy="$PATH"
1559for ac_dir in $ac_dummy; do
1560 IFS=$ac_save_IFS
1561 test -z "$ac_dir" && ac_dir=.
1562 $as_executable_p "$ac_dir/$ac_word" || continue
1563ac_cv_prog_ac_ct_CC="gcc"
1564echo "$as_me:1564: found $ac_dir/$ac_word" >&5
1565break
1566done
ccc6cda3 1567
f73dda09
JA
1568fi
1569fi
1570ac_ct_CC=$ac_cv_prog_ac_ct_CC
1571if test -n "$ac_ct_CC"; then
1572 echo "$as_me:1572: result: $ac_ct_CC" >&5
1573echo "${ECHO_T}$ac_ct_CC" >&6
1574else
1575 echo "$as_me:1575: result: no" >&5
1576echo "${ECHO_T}no" >&6
1577fi
ccc6cda3 1578
f73dda09
JA
1579 CC=$ac_ct_CC
1580else
1581 CC="$ac_cv_prog_CC"
1582fi
bb70624e 1583
f73dda09
JA
1584if test -z "$CC"; then
1585 if test -n "$ac_tool_prefix"; then
1586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1587set dummy ${ac_tool_prefix}cc; ac_word=$2
1588echo "$as_me:1588: checking for $ac_word" >&5
1589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1590if test "${ac_cv_prog_CC+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
1592else
1593 if test -n "$CC"; then
1594 ac_cv_prog_CC="$CC" # Let the user override the test.
1595else
f73dda09
JA
1596 ac_save_IFS=$IFS; IFS=$ac_path_separator
1597ac_dummy="$PATH"
1598for ac_dir in $ac_dummy; do
1599 IFS=$ac_save_IFS
1600 test -z "$ac_dir" && ac_dir=.
1601 $as_executable_p "$ac_dir/$ac_word" || continue
1602ac_cv_prog_CC="${ac_tool_prefix}cc"
1603echo "$as_me:1603: found $ac_dir/$ac_word" >&5
1604break
1605done
1606
ccc6cda3
JA
1607fi
1608fi
f73dda09 1609CC=$ac_cv_prog_CC
ccc6cda3 1610if test -n "$CC"; then
f73dda09
JA
1611 echo "$as_me:1611: result: $CC" >&5
1612echo "${ECHO_T}$CC" >&6
1613else
1614 echo "$as_me:1614: result: no" >&5
1615echo "${ECHO_T}no" >&6
1616fi
1617
1618fi
1619if test -z "$ac_cv_prog_CC"; then
1620 ac_ct_CC=$CC
1621 # Extract the first word of "cc", so it can be a program name with args.
1622set dummy cc; ac_word=$2
1623echo "$as_me:1623: checking for $ac_word" >&5
1624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 if test -n "$ac_ct_CC"; then
1629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1630else
1631 ac_save_IFS=$IFS; IFS=$ac_path_separator
1632ac_dummy="$PATH"
1633for ac_dir in $ac_dummy; do
1634 IFS=$ac_save_IFS
1635 test -z "$ac_dir" && ac_dir=.
1636 $as_executable_p "$ac_dir/$ac_word" || continue
1637ac_cv_prog_ac_ct_CC="cc"
1638echo "$as_me:1638: found $ac_dir/$ac_word" >&5
1639break
1640done
1641
1642fi
1643fi
1644ac_ct_CC=$ac_cv_prog_ac_ct_CC
1645if test -n "$ac_ct_CC"; then
1646 echo "$as_me:1646: result: $ac_ct_CC" >&5
1647echo "${ECHO_T}$ac_ct_CC" >&6
1648else
1649 echo "$as_me:1649: result: no" >&5
1650echo "${ECHO_T}no" >&6
1651fi
1652
1653 CC=$ac_ct_CC
ccc6cda3 1654else
f73dda09 1655 CC="$ac_cv_prog_CC"
ccc6cda3
JA
1656fi
1657
f73dda09 1658fi
ccc6cda3
JA
1659if test -z "$CC"; then
1660 # Extract the first word of "cc", so it can be a program name with args.
1661set dummy cc; ac_word=$2
f73dda09
JA
1662echo "$as_me:1662: checking for $ac_word" >&5
1663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664if test "${ac_cv_prog_CC+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
1666else
1667 if test -n "$CC"; then
1668 ac_cv_prog_CC="$CC" # Let the user override the test.
1669else
ccc6cda3 1670 ac_prog_rejected=no
f73dda09
JA
1671 ac_save_IFS=$IFS; IFS=$ac_path_separator
1672ac_dummy="$PATH"
1673for ac_dir in $ac_dummy; do
1674 IFS=$ac_save_IFS
1675 test -z "$ac_dir" && ac_dir=.
1676 $as_executable_p "$ac_dir/$ac_word" || continue
1677if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1678 ac_prog_rejected=yes
1679 continue
1680fi
1681ac_cv_prog_CC="cc"
1682echo "$as_me:1682: found $ac_dir/$ac_word" >&5
1683break
1684done
1685
ccc6cda3
JA
1686if test $ac_prog_rejected = yes; then
1687 # We found a bogon in the path, so make sure we never use it.
1688 set dummy $ac_cv_prog_CC
1689 shift
f73dda09 1690 if test $# != 0; then
ccc6cda3
JA
1691 # We chose a different compiler from the bogus one.
1692 # However, it has the same basename, so the bogon will be chosen
1693 # first if we set CC to just the basename; use the full file name.
1694 shift
f73dda09 1695 set dummy "$ac_dir/$ac_word" ${1+"$@"}
ccc6cda3
JA
1696 shift
1697 ac_cv_prog_CC="$@"
1698 fi
1699fi
1700fi
1701fi
f73dda09 1702CC=$ac_cv_prog_CC
ccc6cda3 1703if test -n "$CC"; then
f73dda09
JA
1704 echo "$as_me:1704: result: $CC" >&5
1705echo "${ECHO_T}$CC" >&6
ccc6cda3 1706else
f73dda09
JA
1707 echo "$as_me:1707: result: no" >&5
1708echo "${ECHO_T}no" >&6
ccc6cda3
JA
1709fi
1710
f73dda09
JA
1711fi
1712if test -z "$CC"; then
1713 if test -n "$ac_tool_prefix"; then
1714 for ac_prog in cl
1715 do
1716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1717set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1718echo "$as_me:1718: checking for $ac_word" >&5
1719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720if test "${ac_cv_prog_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e
JA
1722else
1723 if test -n "$CC"; then
1724 ac_cv_prog_CC="$CC" # Let the user override the test.
1725else
f73dda09
JA
1726 ac_save_IFS=$IFS; IFS=$ac_path_separator
1727ac_dummy="$PATH"
1728for ac_dir in $ac_dummy; do
1729 IFS=$ac_save_IFS
1730 test -z "$ac_dir" && ac_dir=.
1731 $as_executable_p "$ac_dir/$ac_word" || continue
1732ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1733echo "$as_me:1733: found $ac_dir/$ac_word" >&5
1734break
1735done
1736
bb70624e
JA
1737fi
1738fi
f73dda09 1739CC=$ac_cv_prog_CC
bb70624e 1740if test -n "$CC"; then
f73dda09
JA
1741 echo "$as_me:1741: result: $CC" >&5
1742echo "${ECHO_T}$CC" >&6
bb70624e 1743else
f73dda09
JA
1744 echo "$as_me:1744: result: no" >&5
1745echo "${ECHO_T}no" >&6
bb70624e 1746fi
ccc6cda3 1747
f73dda09
JA
1748 test -n "$CC" && break
1749 done
ccc6cda3 1750fi
f73dda09
JA
1751if test -z "$CC"; then
1752 ac_ct_CC=$CC
1753 for ac_prog in cl
1754do
1755 # Extract the first word of "$ac_prog", so it can be a program name with args.
1756set dummy $ac_prog; ac_word=$2
1757echo "$as_me:1757: checking for $ac_word" >&5
1758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1761else
1762 if test -n "$ac_ct_CC"; then
1763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1764else
1765 ac_save_IFS=$IFS; IFS=$ac_path_separator
1766ac_dummy="$PATH"
1767for ac_dir in $ac_dummy; do
1768 IFS=$ac_save_IFS
1769 test -z "$ac_dir" && ac_dir=.
1770 $as_executable_p "$ac_dir/$ac_word" || continue
1771ac_cv_prog_ac_ct_CC="$ac_prog"
1772echo "$as_me:1772: found $ac_dir/$ac_word" >&5
1773break
1774done
ccc6cda3 1775
ccc6cda3 1776fi
ccc6cda3 1777fi
f73dda09
JA
1778ac_ct_CC=$ac_cv_prog_ac_ct_CC
1779if test -n "$ac_ct_CC"; then
1780 echo "$as_me:1780: result: $ac_ct_CC" >&5
1781echo "${ECHO_T}$ac_ct_CC" >&6
1782else
1783 echo "$as_me:1783: result: no" >&5
1784echo "${ECHO_T}no" >&6
ccc6cda3
JA
1785fi
1786
f73dda09
JA
1787 test -n "$ac_ct_CC" && break
1788done
ccc6cda3 1789
f73dda09 1790 CC=$ac_ct_CC
bb70624e
JA
1791fi
1792
f73dda09
JA
1793fi
1794
1795test -z "$CC" && { { echo "$as_me:1795: error: no acceptable cc found in \$PATH" >&5
1796echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1797 { (exit 1); exit 1; }; }
1798
1799# Provide some information about the compiler.
1800echo "$as_me:1800:" \
1801 "checking for C compiler version" >&5
1802ac_compiler=`set X $ac_compile; echo $2`
1803{ (eval echo "$as_me:1803: \"$ac_compiler --version </dev/null >&5\"") >&5
1804 (eval $ac_compiler --version </dev/null >&5) 2>&5
1805 ac_status=$?
1806 echo "$as_me:1806: \$? = $ac_status" >&5
1807 (exit $ac_status); }
1808{ (eval echo "$as_me:1808: \"$ac_compiler -v </dev/null >&5\"") >&5
1809 (eval $ac_compiler -v </dev/null >&5) 2>&5
1810 ac_status=$?
1811 echo "$as_me:1811: \$? = $ac_status" >&5
1812 (exit $ac_status); }
1813{ (eval echo "$as_me:1813: \"$ac_compiler -V </dev/null >&5\"") >&5
1814 (eval $ac_compiler -V </dev/null >&5) 2>&5
1815 ac_status=$?
1816 echo "$as_me:1816: \$? = $ac_status" >&5
1817 (exit $ac_status); }
1818
1819cat >conftest.$ac_ext <<_ACEOF
1820#line 1820 "configure"
1821#include "confdefs.h"
1822
1823int
1824main ()
1825{
1826
1827 ;
1828 return 0;
1829}
1830_ACEOF
1831ac_clean_files_save=$ac_clean_files
1832ac_clean_files="$ac_clean_files a.out a.exe"
1833# Try to create an executable without -o first, disregard a.out.
1834# It will help us diagnose broken compilers, and finding out an intuition
1835# of exeext.
1836echo "$as_me:1836: checking for C compiler default output" >&5
1837echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1838ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1839if { (eval echo "$as_me:1839: \"$ac_link_default\"") >&5
1840 (eval $ac_link_default) 2>&5
1841 ac_status=$?
1842 echo "$as_me:1842: \$? = $ac_status" >&5
1843 (exit $ac_status); }; then
1844 # Find the output, starting from the most likely. This scheme is
1845# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1846# resort.
1847for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1848 ls a.out conftest 2>/dev/null;
1849 ls a.* conftest.* 2>/dev/null`; do
1850 case $ac_file in
1851 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1852 a.out ) # We found the default executable, but exeext='' is most
1853 # certainly right.
1854 break;;
1855 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1856 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1857 export ac_cv_exeext
1858 break;;
1859 * ) break;;
1860 esac
1861done
ccc6cda3 1862else
f73dda09
JA
1863 echo "$as_me: failed program was:" >&5
1864cat conftest.$ac_ext >&5
1865{ { echo "$as_me:1865: error: C compiler cannot create executables" >&5
1866echo "$as_me: error: C compiler cannot create executables" >&2;}
1867 { (exit 77); exit 77; }; }
1868fi
1869
1870ac_exeext=$ac_cv_exeext
1871echo "$as_me:1871: result: $ac_file" >&5
1872echo "${ECHO_T}$ac_file" >&6
1873
1874# Check the compiler produces executables we can run. If not, either
1875# the compiler is broken, or we cross compile.
1876echo "$as_me:1876: checking whether the C compiler works" >&5
1877echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1878# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1879# If not cross compiling, check that we can run a simple program.
1880if test "$cross_compiling" != yes; then
1881 if { ac_try='./$ac_file'
1882 { (eval echo "$as_me:1882: \"$ac_try\"") >&5
1883 (eval $ac_try) 2>&5
1884 ac_status=$?
1885 echo "$as_me:1885: \$? = $ac_status" >&5
1886 (exit $ac_status); }; }; then
1887 cross_compiling=no
1888 else
1889 if test "$cross_compiling" = maybe; then
1890 cross_compiling=yes
1891 else
1892 { { echo "$as_me:1892: error: cannot run C compiled programs.
1893If you meant to cross compile, use \`--host'." >&5
1894echo "$as_me: error: cannot run C compiled programs.
1895If you meant to cross compile, use \`--host'." >&2;}
1896 { (exit 1); exit 1; }; }
1897 fi
1898 fi
1899fi
1900echo "$as_me:1900: result: yes" >&5
1901echo "${ECHO_T}yes" >&6
1902
1903rm -f a.out a.exe conftest$ac_cv_exeext
1904ac_clean_files=$ac_clean_files_save
1905# Check the compiler produces executables we can run. If not, either
1906# the compiler is broken, or we cross compile.
1907echo "$as_me:1907: checking whether we are cross compiling" >&5
1908echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1909echo "$as_me:1909: result: $cross_compiling" >&5
1910echo "${ECHO_T}$cross_compiling" >&6
1911
1912echo "$as_me:1912: checking for executable suffix" >&5
1913echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1914if { (eval echo "$as_me:1914: \"$ac_link\"") >&5
1915 (eval $ac_link) 2>&5
1916 ac_status=$?
1917 echo "$as_me:1917: \$? = $ac_status" >&5
1918 (exit $ac_status); }; then
1919 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1920# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1921# work properly (i.e., refer to `conftest.exe'), while it won't with
1922# `rm'.
1923for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1924 case $ac_file in
1925 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1926 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1927 export ac_cv_exeext
1928 break;;
1929 * ) break;;
1930 esac
1931done
ccc6cda3 1932else
f73dda09
JA
1933 { { echo "$as_me:1933: error: cannot compute EXEEXT: cannot compile and link" >&5
1934echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1935 { (exit 1); exit 1; }; }
1936fi
1937
1938rm -f conftest$ac_cv_exeext
1939echo "$as_me:1939: result: $ac_cv_exeext" >&5
1940echo "${ECHO_T}$ac_cv_exeext" >&6
1941
1942rm -f conftest.$ac_ext
1943EXEEXT=$ac_cv_exeext
1944ac_exeext=$EXEEXT
1945echo "$as_me:1945: checking for object suffix" >&5
1946echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1947if test "${ac_cv_objext+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949else
1950 cat >conftest.$ac_ext <<_ACEOF
1951#line 1951 "configure"
1952#include "confdefs.h"
1953
1954int
1955main ()
1956{
1957
1958 ;
1959 return 0;
1960}
1961_ACEOF
1962rm -f conftest.o conftest.obj
1963if { (eval echo "$as_me:1963: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>&5
1965 ac_status=$?
1966 echo "$as_me:1966: \$? = $ac_status" >&5
1967 (exit $ac_status); }; then
1968 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1969 case $ac_file in
1970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1972 break;;
1973 esac
1974done
1975else
1976 echo "$as_me: failed program was:" >&5
1977cat conftest.$ac_ext >&5
1978{ { echo "$as_me:1978: error: cannot compute OBJEXT: cannot compile" >&5
1979echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1980 { (exit 1); exit 1; }; }
ccc6cda3 1981fi
ccc6cda3 1982
f73dda09 1983rm -f conftest.$ac_cv_objext conftest.$ac_ext
ccc6cda3 1984fi
f73dda09
JA
1985echo "$as_me:1985: result: $ac_cv_objext" >&5
1986echo "${ECHO_T}$ac_cv_objext" >&6
1987OBJEXT=$ac_cv_objext
1988ac_objext=$OBJEXT
1989echo "$as_me:1989: checking whether we are using the GNU C compiler" >&5
1990echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1991if test "${ac_cv_c_compiler_gnu+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993else
1994 cat >conftest.$ac_ext <<_ACEOF
1995#line 1995 "configure"
1996#include "confdefs.h"
1997
1998int
1999main ()
2000{
2001#ifndef __GNUC__
2002 choke me
2003#endif
2004
2005 ;
2006 return 0;
2007}
2008_ACEOF
2009rm -f conftest.$ac_objext
2010if { (eval echo "$as_me:2010: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>&5
2012 ac_status=$?
2013 echo "$as_me:2013: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try='test -s conftest.$ac_objext'
2016 { (eval echo "$as_me:2016: \"$ac_try\"") >&5
2017 (eval $ac_try) 2>&5
2018 ac_status=$?
2019 echo "$as_me:2019: \$? = $ac_status" >&5
2020 (exit $ac_status); }; }; then
2021 ac_compiler_gnu=yes
2022else
2023 echo "$as_me: failed program was:" >&5
2024cat conftest.$ac_ext >&5
2025ac_compiler_gnu=no
2026fi
2027rm -f conftest.$ac_objext conftest.$ac_ext
2028ac_cv_c_compiler_gnu=$ac_compiler_gnu
2029
2030fi
2031echo "$as_me:2031: result: $ac_cv_c_compiler_gnu" >&5
2032echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2033GCC=`test $ac_compiler_gnu = yes && echo yes`
2034ac_test_CFLAGS=${CFLAGS+set}
2035ac_save_CFLAGS=$CFLAGS
2036CFLAGS="-g"
2037echo "$as_me:2037: checking whether $CC accepts -g" >&5
2038echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2039if test "${ac_cv_prog_cc_g+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041else
2042 cat >conftest.$ac_ext <<_ACEOF
2043#line 2043 "configure"
2044#include "confdefs.h"
2045
2046int
2047main ()
2048{
ccc6cda3 2049
f73dda09
JA
2050 ;
2051 return 0;
2052}
2053_ACEOF
2054rm -f conftest.$ac_objext
2055if { (eval echo "$as_me:2055: \"$ac_compile\"") >&5
2056 (eval $ac_compile) 2>&5
2057 ac_status=$?
2058 echo "$as_me:2058: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
2060 { ac_try='test -s conftest.$ac_objext'
2061 { (eval echo "$as_me:2061: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:2064: \$? = $ac_status" >&5
2065 (exit $ac_status); }; }; then
2066 ac_cv_prog_cc_g=yes
2067else
2068 echo "$as_me: failed program was:" >&5
2069cat conftest.$ac_ext >&5
2070ac_cv_prog_cc_g=no
2071fi
2072rm -f conftest.$ac_objext conftest.$ac_ext
2073fi
2074echo "$as_me:2074: result: $ac_cv_prog_cc_g" >&5
2075echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
bb70624e 2076if test "$ac_test_CFLAGS" = set; then
f73dda09 2077 CFLAGS=$ac_save_CFLAGS
bb70624e
JA
2078elif test $ac_cv_prog_cc_g = yes; then
2079 if test "$GCC" = yes; then
ccc6cda3
JA
2080 CFLAGS="-g -O2"
2081 else
bb70624e 2082 CFLAGS="-g"
ccc6cda3
JA
2083 fi
2084else
bb70624e
JA
2085 if test "$GCC" = yes; then
2086 CFLAGS="-O2"
2087 else
2088 CFLAGS=
2089 fi
ccc6cda3 2090fi
f73dda09
JA
2091# Some people use a C++ compiler to compile C. Since we use `exit',
2092# in C++ we need to declare it. In case someone uses the same compiler
2093# for both compiling C and C++ we need to have the C++ compiler decide
2094# the declaration of exit, since it's the most demanding environment.
2095cat >conftest.$ac_ext <<_ACEOF
2096#ifndef __cplusplus
2097 choke me
2098#endif
2099_ACEOF
2100rm -f conftest.$ac_objext
2101if { (eval echo "$as_me:2101: \"$ac_compile\"") >&5
2102 (eval $ac_compile) 2>&5
2103 ac_status=$?
2104 echo "$as_me:2104: \$? = $ac_status" >&5
2105 (exit $ac_status); } &&
2106 { ac_try='test -s conftest.$ac_objext'
2107 { (eval echo "$as_me:2107: \"$ac_try\"") >&5
2108 (eval $ac_try) 2>&5
2109 ac_status=$?
2110 echo "$as_me:2110: \$? = $ac_status" >&5
2111 (exit $ac_status); }; }; then
2112 for ac_declaration in \
2113 ''\
2114 '#include <stdlib.h>' \
2115 'extern "C" void std::exit (int) throw (); using std::exit;' \
2116 'extern "C" void std::exit (int); using std::exit;' \
2117 'extern "C" void exit (int) throw ();' \
2118 'extern "C" void exit (int);' \
2119 'void exit (int);'
2120do
2121 cat >conftest.$ac_ext <<_ACEOF
2122#line 2122 "configure"
2123#include "confdefs.h"
2124#include <stdlib.h>
2125$ac_declaration
2126int
2127main ()
2128{
2129exit (42);
2130 ;
2131 return 0;
2132}
2133_ACEOF
2134rm -f conftest.$ac_objext
2135if { (eval echo "$as_me:2135: \"$ac_compile\"") >&5
2136 (eval $ac_compile) 2>&5
2137 ac_status=$?
2138 echo "$as_me:2138: \$? = $ac_status" >&5
2139 (exit $ac_status); } &&
2140 { ac_try='test -s conftest.$ac_objext'
2141 { (eval echo "$as_me:2141: \"$ac_try\"") >&5
2142 (eval $ac_try) 2>&5
2143 ac_status=$?
2144 echo "$as_me:2144: \$? = $ac_status" >&5
2145 (exit $ac_status); }; }; then
2146 :
2147else
2148 echo "$as_me: failed program was:" >&5
2149cat conftest.$ac_ext >&5
2150continue
2151fi
2152rm -f conftest.$ac_objext conftest.$ac_ext
2153 cat >conftest.$ac_ext <<_ACEOF
2154#line 2154 "configure"
2155#include "confdefs.h"
2156$ac_declaration
2157int
2158main ()
2159{
2160exit (42);
2161 ;
2162 return 0;
2163}
2164_ACEOF
2165rm -f conftest.$ac_objext
2166if { (eval echo "$as_me:2166: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>&5
2168 ac_status=$?
2169 echo "$as_me:2169: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -s conftest.$ac_objext'
2172 { (eval echo "$as_me:2172: \"$ac_try\"") >&5
2173 (eval $ac_try) 2>&5
2174 ac_status=$?
2175 echo "$as_me:2175: \$? = $ac_status" >&5
2176 (exit $ac_status); }; }; then
2177 break
2178else
2179 echo "$as_me: failed program was:" >&5
2180cat conftest.$ac_ext >&5
2181fi
2182rm -f conftest.$ac_objext conftest.$ac_ext
cce855bc 2183done
f73dda09
JA
2184rm -f conftest*
2185if test -n "$ac_declaration"; then
2186 echo '#ifdef __cplusplus' >>confdefs.h
2187 echo $ac_declaration >>confdefs.h
2188 echo '#endif' >>confdefs.h
2189fi
cce855bc 2190
f73dda09
JA
2191else
2192 echo "$as_me: failed program was:" >&5
2193cat conftest.$ac_ext >&5
2194fi
2195rm -f conftest.$ac_objext conftest.$ac_ext
2196ac_ext=c
2197ac_cpp='$CPP $CPPFLAGS'
2198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2200ac_compiler_gnu=$ac_cv_c_compiler_gnu
bb70624e 2201
f73dda09
JA
2202echo "$as_me:2202: checking for POSIXized ISC" >&5
2203echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
ccc6cda3 2204if test -d /etc/conf/kconfig.d &&
f73dda09 2205 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
ccc6cda3 2206then
f73dda09
JA
2207 echo "$as_me:2207: result: yes" >&5
2208echo "${ECHO_T}yes" >&6
ccc6cda3 2209 ISC=yes # If later tests want to check for ISC.
f73dda09
JA
2210
2211cat >>confdefs.h <<\EOF
ccc6cda3
JA
2212#define _POSIX_SOURCE 1
2213EOF
2214
2215 if test "$GCC" = yes; then
2216 CC="$CC -posix"
2217 else
2218 CC="$CC -Xp"
2219 fi
2220else
f73dda09
JA
2221 echo "$as_me:2221: result: no" >&5
2222echo "${ECHO_T}no" >&6
ccc6cda3
JA
2223 ISC=
2224fi
2225
f73dda09
JA
2226ac_ext=c
2227ac_cpp='$CPP $CPPFLAGS'
2228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231echo "$as_me:2231: checking how to run the C preprocessor" >&5
2232echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
ccc6cda3
JA
2233# On Suns, sometimes $CPP names a directory.
2234if test -n "$CPP" && test -d "$CPP"; then
2235 CPP=
2236fi
2237if test -z "$CPP"; then
f73dda09
JA
2238 if test "${ac_cv_prog_CPP+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2240else
2241 # Double quotes because CPP needs to be expanded
2242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2243 do
2244 ac_preproc_ok=false
2245for ac_c_preproc_warn_flag in '' yes
2246do
2247 # Use a header file that comes with gcc, so configuring glibc
2248 # with a fresh cross-compiler works.
ccc6cda3 2249 # On the NeXT, cc -E runs the code through the compiler's parser,
f73dda09
JA
2250 # not just through cpp. "Syntax error" is here to catch this case.
2251 cat >conftest.$ac_ext <<_ACEOF
2252#line 2252 "configure"
ccc6cda3
JA
2253#include "confdefs.h"
2254#include <assert.h>
f73dda09
JA
2255 Syntax error
2256_ACEOF
2257if { (eval echo "$as_me:2257: \"$ac_cpp conftest.$ac_ext\"") >&5
2258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2259 ac_status=$?
2260 egrep -v '^ *\+' conftest.er1 >conftest.err
2261 rm -f conftest.er1
2262 cat conftest.err >&5
2263 echo "$as_me:2263: \$? = $ac_status" >&5
2264 (exit $ac_status); } >/dev/null; then
2265 if test -s conftest.err; then
2266 ac_cpp_err=$ac_c_preproc_warn_flag
2267 else
2268 ac_cpp_err=
2269 fi
2270else
2271 ac_cpp_err=yes
2272fi
2273if test -z "$ac_cpp_err"; then
ccc6cda3
JA
2274 :
2275else
f73dda09 2276 echo "$as_me: failed program was:" >&5
ccc6cda3 2277 cat conftest.$ac_ext >&5
f73dda09
JA
2278 # Broken: fails on valid input.
2279continue
2280fi
2281rm -f conftest.err conftest.$ac_ext
2282
2283 # OK, works on sane cases. Now check whether non-existent headers
2284 # can be detected and how.
2285 cat >conftest.$ac_ext <<_ACEOF
2286#line 2286 "configure"
2287#include "confdefs.h"
2288#include <ac_nonexistent.h>
2289_ACEOF
2290if { (eval echo "$as_me:2290: \"$ac_cpp conftest.$ac_ext\"") >&5
2291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2292 ac_status=$?
2293 egrep -v '^ *\+' conftest.er1 >conftest.err
2294 rm -f conftest.er1
2295 cat conftest.err >&5
2296 echo "$as_me:2296: \$? = $ac_status" >&5
2297 (exit $ac_status); } >/dev/null; then
2298 if test -s conftest.err; then
2299 ac_cpp_err=$ac_c_preproc_warn_flag
2300 else
2301 ac_cpp_err=
2302 fi
2303else
2304 ac_cpp_err=yes
2305fi
2306if test -z "$ac_cpp_err"; then
2307 # Broken: success on invalid input.
2308continue
bb70624e 2309else
f73dda09 2310 echo "$as_me: failed program was:" >&5
bb70624e 2311 cat conftest.$ac_ext >&5
f73dda09
JA
2312 # Passes both tests.
2313ac_preproc_ok=:
2314break
2315fi
2316rm -f conftest.err conftest.$ac_ext
2317
2318done
2319# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2320rm -f conftest.err conftest.$ac_ext
2321if $ac_preproc_ok; then
2322 break
2323fi
2324
2325 done
2326 ac_cv_prog_CPP=$CPP
2327
2328fi
2329 CPP=$ac_cv_prog_CPP
2330else
2331 ac_cv_prog_CPP=$CPP
2332fi
2333echo "$as_me:2333: result: $CPP" >&5
2334echo "${ECHO_T}$CPP" >&6
2335ac_preproc_ok=false
2336for ac_c_preproc_warn_flag in '' yes
2337do
2338 # Use a header file that comes with gcc, so configuring glibc
2339 # with a fresh cross-compiler works.
2340 # On the NeXT, cc -E runs the code through the compiler's parser,
2341 # not just through cpp. "Syntax error" is here to catch this case.
2342 cat >conftest.$ac_ext <<_ACEOF
2343#line 2343 "configure"
ccc6cda3
JA
2344#include "confdefs.h"
2345#include <assert.h>
f73dda09
JA
2346 Syntax error
2347_ACEOF
2348if { (eval echo "$as_me:2348: \"$ac_cpp conftest.$ac_ext\"") >&5
2349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2350 ac_status=$?
2351 egrep -v '^ *\+' conftest.er1 >conftest.err
2352 rm -f conftest.er1
2353 cat conftest.err >&5
2354 echo "$as_me:2354: \$? = $ac_status" >&5
2355 (exit $ac_status); } >/dev/null; then
2356 if test -s conftest.err; then
2357 ac_cpp_err=$ac_c_preproc_warn_flag
2358 else
2359 ac_cpp_err=
2360 fi
2361else
2362 ac_cpp_err=yes
2363fi
2364if test -z "$ac_cpp_err"; then
ccc6cda3
JA
2365 :
2366else
f73dda09 2367 echo "$as_me: failed program was:" >&5
ccc6cda3 2368 cat conftest.$ac_ext >&5
f73dda09
JA
2369 # Broken: fails on valid input.
2370continue
2371fi
2372rm -f conftest.err conftest.$ac_ext
2373
2374 # OK, works on sane cases. Now check whether non-existent headers
2375 # can be detected and how.
2376 cat >conftest.$ac_ext <<_ACEOF
2377#line 2377 "configure"
2378#include "confdefs.h"
2379#include <ac_nonexistent.h>
2380_ACEOF
2381if { (eval echo "$as_me:2381: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 ac_status=$?
2384 egrep -v '^ *\+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
2387 echo "$as_me:2387: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev/null; then
2389 if test -s conftest.err; then
2390 ac_cpp_err=$ac_c_preproc_warn_flag
2391 else
2392 ac_cpp_err=
2393 fi
2394else
2395 ac_cpp_err=yes
bb70624e 2396fi
f73dda09
JA
2397if test -z "$ac_cpp_err"; then
2398 # Broken: success on invalid input.
2399continue
2400else
2401 echo "$as_me: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 # Passes both tests.
2404ac_preproc_ok=:
2405break
ccc6cda3 2406fi
f73dda09
JA
2407rm -f conftest.err conftest.$ac_ext
2408
2409done
2410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2411rm -f conftest.err conftest.$ac_ext
2412if $ac_preproc_ok; then
2413 :
ccc6cda3 2414else
f73dda09
JA
2415 { { echo "$as_me:2415: error: C preprocessor \"$CPP\" fails sanity check" >&5
2416echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2417 { (exit 1); exit 1; }; }
ccc6cda3 2418fi
ccc6cda3 2419
f73dda09
JA
2420ac_ext=c
2421ac_cpp='$CPP $CPPFLAGS'
2422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424ac_compiler_gnu=$ac_cv_c_compiler_gnu
2425
2426echo "$as_me:2426: checking for minix/config.h" >&5
2427echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2428if test "${ac_cv_header_minix_config_h+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 2430else
f73dda09
JA
2431 cat >conftest.$ac_ext <<_ACEOF
2432#line 2432 "configure"
ccc6cda3
JA
2433#include "confdefs.h"
2434#include <minix/config.h>
f73dda09
JA
2435_ACEOF
2436if { (eval echo "$as_me:2436: \"$ac_cpp conftest.$ac_ext\"") >&5
2437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2438 ac_status=$?
2439 egrep -v '^ *\+' conftest.er1 >conftest.err
2440 rm -f conftest.er1
2441 cat conftest.err >&5
2442 echo "$as_me:2442: \$? = $ac_status" >&5
2443 (exit $ac_status); } >/dev/null; then
2444 if test -s conftest.err; then
2445 ac_cpp_err=$ac_c_preproc_warn_flag
2446 else
2447 ac_cpp_err=
2448 fi
2449else
2450 ac_cpp_err=yes
2451fi
2452if test -z "$ac_cpp_err"; then
2453 ac_cv_header_minix_config_h=yes
ccc6cda3 2454else
f73dda09 2455 echo "$as_me: failed program was:" >&5
ccc6cda3 2456 cat conftest.$ac_ext >&5
f73dda09 2457 ac_cv_header_minix_config_h=no
ccc6cda3 2458fi
f73dda09 2459rm -f conftest.err conftest.$ac_ext
ccc6cda3 2460fi
f73dda09
JA
2461echo "$as_me:2461: result: $ac_cv_header_minix_config_h" >&5
2462echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2463if test $ac_cv_header_minix_config_h = yes; then
ccc6cda3
JA
2464 MINIX=yes
2465else
f73dda09 2466 MINIX=
ccc6cda3
JA
2467fi
2468
2469if test "$MINIX" = yes; then
f73dda09
JA
2470
2471cat >>confdefs.h <<\EOF
ccc6cda3
JA
2472#define _POSIX_SOURCE 1
2473EOF
2474
f73dda09 2475cat >>confdefs.h <<\EOF
ccc6cda3
JA
2476#define _POSIX_1_SOURCE 2
2477EOF
2478
f73dda09 2479cat >>confdefs.h <<\EOF
ccc6cda3
JA
2480#define _MINIX 1
2481EOF
2482
2483fi
2484
f73dda09
JA
2485case $host_os in
2486 *cygwin* ) CYGWIN=yes;;
2487 * ) CYGWIN=no;;
2488esac
2489
2490case $host_os in
2491 *mingw32* ) MINGW32=yes;;
2492 * ) MINGW32=no;;
2493esac
2494
2495# Check whether --enable-largefile or --disable-largefile was given.
2496if test "${enable_largefile+set}" = set; then
2497 enableval="$enable_largefile"
2498
2499fi;
2500if test "$enable_largefile" != no; then
ccc6cda3 2501
f73dda09
JA
2502 echo "$as_me:2502: checking for special C compiler options needed for large files" >&5
2503echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2504if test "${ac_cv_sys_largefile_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 2506else
f73dda09
JA
2507 ac_cv_sys_largefile_CC=no
2508 if test "$GCC" != yes; then
2509 ac_save_CC=$CC
2510 while :; do
2511 # IRIX 6.2 and later do not support large files by default,
2512 # so use the C compiler's -n32 option if that helps.
2513 cat >conftest.$ac_ext <<_ACEOF
2514#line 2514 "configure"
bb70624e 2515#include "confdefs.h"
f73dda09
JA
2516#include <sys/types.h>
2517 /* Check that off_t can represent 2**63 - 1 correctly.
2518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2519 since some C++ compilers masquerading as C compilers
2520 incorrectly reject 9223372036854775807. */
2521#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2523 && LARGE_OFF_T % 2147483647 == 1)
2524 ? 1 : -1];
2525int
2526main ()
2527{
bb70624e 2528
f73dda09
JA
2529 ;
2530 return 0;
2531}
2532_ACEOF
2533 rm -f conftest.$ac_objext
2534if { (eval echo "$as_me:2534: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>&5
2536 ac_status=$?
2537 echo "$as_me:2537: \$? = $ac_status" >&5
2538 (exit $ac_status); } &&
2539 { ac_try='test -s conftest.$ac_objext'
2540 { (eval echo "$as_me:2540: \"$ac_try\"") >&5
2541 (eval $ac_try) 2>&5
2542 ac_status=$?
2543 echo "$as_me:2543: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2545 break
bb70624e 2546else
f73dda09
JA
2547 echo "$as_me: failed program was:" >&5
2548cat conftest.$ac_ext >&5
2549fi
2550rm -f conftest.$ac_objext
2551 CC="$CC -n32"
2552 rm -f conftest.$ac_objext
2553if { (eval echo "$as_me:2553: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>&5
2555 ac_status=$?
2556 echo "$as_me:2556: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:2559: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:2562: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 ac_cv_sys_largefile_CC=' -n32'; break
2565else
2566 echo "$as_me: failed program was:" >&5
2567cat conftest.$ac_ext >&5
2568fi
2569rm -f conftest.$ac_objext
2570 break
2571 done
2572 CC=$ac_save_CC
2573 rm -f conftest.$ac_ext
2574 fi
bb70624e 2575fi
f73dda09
JA
2576echo "$as_me:2576: result: $ac_cv_sys_largefile_CC" >&5
2577echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2578 if test "$ac_cv_sys_largefile_CC" != no; then
2579 CC=$CC$ac_cv_sys_largefile_CC
2580 fi
bb70624e 2581
f73dda09
JA
2582 echo "$as_me:2582: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2583echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2584if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 2586else
f73dda09
JA
2587 while :; do
2588 ac_cv_sys_file_offset_bits=no
2589 cat >conftest.$ac_ext <<_ACEOF
2590#line 2590 "configure"
bb70624e 2591#include "confdefs.h"
f73dda09
JA
2592#include <sys/types.h>
2593 /* Check that off_t can represent 2**63 - 1 correctly.
2594 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2595 since some C++ compilers masquerading as C compilers
2596 incorrectly reject 9223372036854775807. */
2597#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2598 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2599 && LARGE_OFF_T % 2147483647 == 1)
2600 ? 1 : -1];
2601int
2602main ()
2603{
bb70624e 2604
f73dda09
JA
2605 ;
2606 return 0;
2607}
2608_ACEOF
2609rm -f conftest.$ac_objext
2610if { (eval echo "$as_me:2610: \"$ac_compile\"") >&5
2611 (eval $ac_compile) 2>&5
2612 ac_status=$?
2613 echo "$as_me:2613: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:2616: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:2619: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 break
bb70624e 2622else
f73dda09
JA
2623 echo "$as_me: failed program was:" >&5
2624cat conftest.$ac_ext >&5
bb70624e 2625fi
f73dda09
JA
2626rm -f conftest.$ac_objext conftest.$ac_ext
2627 cat >conftest.$ac_ext <<_ACEOF
2628#line 2628 "configure"
2629#include "confdefs.h"
2630#define _FILE_OFFSET_BITS 64
2631#include <sys/types.h>
2632 /* Check that off_t can represent 2**63 - 1 correctly.
2633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2634 since some C++ compilers masquerading as C compilers
2635 incorrectly reject 9223372036854775807. */
2636#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2638 && LARGE_OFF_T % 2147483647 == 1)
2639 ? 1 : -1];
2640int
2641main ()
2642{
bb70624e 2643
f73dda09
JA
2644 ;
2645 return 0;
2646}
2647_ACEOF
2648rm -f conftest.$ac_objext
2649if { (eval echo "$as_me:2649: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>&5
2651 ac_status=$?
2652 echo "$as_me:2652: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try='test -s conftest.$ac_objext'
2655 { (eval echo "$as_me:2655: \"$ac_try\"") >&5
2656 (eval $ac_try) 2>&5
2657 ac_status=$?
2658 echo "$as_me:2658: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2660 ac_cv_sys_file_offset_bits=64; break
2661else
2662 echo "$as_me: failed program was:" >&5
2663cat conftest.$ac_ext >&5
2664fi
2665rm -f conftest.$ac_objext conftest.$ac_ext
2666 break
2667done
2668fi
2669echo "$as_me:2669: result: $ac_cv_sys_file_offset_bits" >&5
2670echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2671if test "$ac_cv_sys_file_offset_bits" != no; then
bb70624e 2672
f73dda09
JA
2673cat >>confdefs.h <<EOF
2674#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2675EOF
bb70624e 2676
f73dda09
JA
2677fi
2678rm -f conftest*
2679 echo "$as_me:2679: checking for _LARGE_FILES value needed for large files" >&5
2680echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2681if test "${ac_cv_sys_large_files+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 2683else
f73dda09
JA
2684 while :; do
2685 ac_cv_sys_large_files=no
2686 cat >conftest.$ac_ext <<_ACEOF
2687#line 2687 "configure"
2688#include "confdefs.h"
2689#include <sys/types.h>
2690 /* Check that off_t can represent 2**63 - 1 correctly.
2691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2692 since some C++ compilers masquerading as C compilers
2693 incorrectly reject 9223372036854775807. */
2694#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2696 && LARGE_OFF_T % 2147483647 == 1)
2697 ? 1 : -1];
2698int
2699main ()
2700{
2701
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706rm -f conftest.$ac_objext
2707if { (eval echo "$as_me:2707: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>&5
2709 ac_status=$?
2710 echo "$as_me:2710: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:2713: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:2716: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2718 break
bb70624e 2719else
f73dda09
JA
2720 echo "$as_me: failed program was:" >&5
2721cat conftest.$ac_ext >&5
bb70624e 2722fi
f73dda09
JA
2723rm -f conftest.$ac_objext conftest.$ac_ext
2724 cat >conftest.$ac_ext <<_ACEOF
2725#line 2725 "configure"
2726#include "confdefs.h"
2727#define _LARGE_FILES 1
2728#include <sys/types.h>
2729 /* Check that off_t can represent 2**63 - 1 correctly.
2730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2731 since some C++ compilers masquerading as C compilers
2732 incorrectly reject 9223372036854775807. */
2733#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2735 && LARGE_OFF_T % 2147483647 == 1)
2736 ? 1 : -1];
2737int
2738main ()
2739{
bb70624e 2740
f73dda09
JA
2741 ;
2742 return 0;
2743}
2744_ACEOF
2745rm -f conftest.$ac_objext
2746if { (eval echo "$as_me:2746: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>&5
2748 ac_status=$?
2749 echo "$as_me:2749: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:2752: \"$ac_try\"") >&5
2753 (eval $ac_try) 2>&5
2754 ac_status=$?
2755 echo "$as_me:2755: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2757 ac_cv_sys_large_files=1; break
2758else
2759 echo "$as_me: failed program was:" >&5
2760cat conftest.$ac_ext >&5
2761fi
2762rm -f conftest.$ac_objext conftest.$ac_ext
2763 break
2764done
2765fi
2766echo "$as_me:2766: result: $ac_cv_sys_large_files" >&5
2767echo "${ECHO_T}$ac_cv_sys_large_files" >&6
2768if test "$ac_cv_sys_large_files" != no; then
bb70624e 2769
f73dda09
JA
2770cat >>confdefs.h <<EOF
2771#define _LARGE_FILES $ac_cv_sys_large_files
2772EOF
bb70624e 2773
f73dda09
JA
2774fi
2775rm -f conftest*
2776fi
cce855bc 2777
b72432fd
JA
2778SIGNAMES_H=lsignames.h
2779
cce855bc
JA
2780if test "x$cross_compiling" = "xyes"; then
2781 case "${host}" in
28ef6c31 2782 *-cygwin*)
cce855bc 2783 cross_cache=${srcdir}/cross-build/cygwin32.cache
b72432fd 2784 SIGNAMES_H='$(srcdir)/cross-build/win32sig.h'
cce855bc 2785 ;;
b72432fd
JA
2786 i[3456]86-*-beos*)
2787 cross_cache=${srcdir}/cross-build/x86-beos.cache
2788 SIGNAMES_H='${srcdir}/cross-build/beos-sig.h'
2789 ;;
2790 *) echo "configure: cross-compiling for $host is not supported" >&2
cce855bc
JA
2791 ;;
2792 esac
b72432fd
JA
2793 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
2794 echo "loading cross-build cache file ${cross_cache}"
2795 . ${cross_cache}
2796 fi
2797 unset cross_cache
cce855bc
JA
2798fi
2799
2800if test -z "$CC_FOR_BUILD"; then
2801 if test "x$cross_compiling" = "xno"; then
2802 CC_FOR_BUILD='$(CC)'
2803 else
2804 CC_FOR_BUILD=gcc
2805 fi
2806fi
2807
ccc6cda3
JA
2808test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
2809
2810test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
2811
cce855bc
JA
2812if test "$opt_profiling" = "yes"; then
2813 PROFILE_FLAGS=-pg
b72432fd
JA
2814 case "$host_os" in
2815 solaris2*) ;;
2816 *) opt_static_link=yes ;;
2817 esac
cce855bc
JA
2818fi
2819
2820if test "$opt_static_link" = yes; then
f73dda09
JA
2821 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
2822 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
b72432fd 2823 STATIC_LD="-static"
f73dda09
JA
2824 case "$host_os" in
2825 solaris2*) ;;
2826 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
2827 esac
cce855bc
JA
2828 fi
2829fi
2830
f73dda09
JA
2831if test $ac_cv_c_compiler_gnu = yes; then
2832 echo "$as_me:2832: checking whether $CC needs -traditional" >&5
2833echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2834if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
2836else
2837 ac_pattern="Autoconf.*'x'"
f73dda09
JA
2838 cat >conftest.$ac_ext <<_ACEOF
2839#line 2839 "configure"
ccc6cda3
JA
2840#include "confdefs.h"
2841#include <sgtty.h>
2842Autoconf TIOCGETP
f73dda09 2843_ACEOF
ccc6cda3
JA
2844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2845 egrep "$ac_pattern" >/dev/null 2>&1; then
ccc6cda3
JA
2846 ac_cv_prog_gcc_traditional=yes
2847else
ccc6cda3
JA
2848 ac_cv_prog_gcc_traditional=no
2849fi
2850rm -f conftest*
2851
ccc6cda3 2852 if test $ac_cv_prog_gcc_traditional = no; then
f73dda09
JA
2853 cat >conftest.$ac_ext <<_ACEOF
2854#line 2854 "configure"
ccc6cda3
JA
2855#include "confdefs.h"
2856#include <termio.h>
2857Autoconf TCGETA
f73dda09 2858_ACEOF
ccc6cda3
JA
2859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2860 egrep "$ac_pattern" >/dev/null 2>&1; then
ccc6cda3
JA
2861 ac_cv_prog_gcc_traditional=yes
2862fi
2863rm -f conftest*
2864
2865 fi
2866fi
f73dda09
JA
2867echo "$as_me:2867: result: $ac_cv_prog_gcc_traditional" >&5
2868echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
ccc6cda3
JA
2869 if test $ac_cv_prog_gcc_traditional = yes; then
2870 CC="$CC -traditional"
2871 fi
2872fi
2873
f73dda09 2874if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
b72432fd 2875then
f73dda09
JA
2876echo opt_with_installed_readline = $opt_with_installed_readline
2877 # If the user specified --with-installed-readline=PREFIX and PREFIX
2878 # is not `yes', set ac_cv_rl_prefix to PREFIX
2879 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
b72432fd 2880
bb70624e
JA
2881if test "X$bash_cv_termcap_lib" = "X"; then
2882_bash_needmsg=yes
2883else
f73dda09
JA
2884echo "$as_me:2884: checking which library has the termcap functions" >&5
2885echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
bb70624e
JA
2886_bash_needmsg=
2887fi
f73dda09
JA
2888if test "${bash_cv_termcap_lib+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 2890else
f73dda09
JA
2891 echo "$as_me:2891: checking for tgetent in -ltermcap" >&5
2892echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
2893if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 2895else
f73dda09 2896 ac_check_lib_save_LIBS=$LIBS
bb70624e 2897LIBS="-ltermcap $LIBS"
f73dda09
JA
2898cat >conftest.$ac_ext <<_ACEOF
2899#line 2899 "configure"
bb70624e 2900#include "confdefs.h"
f73dda09 2901
bb70624e 2902/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
2903#ifdef __cplusplus
2904extern "C"
2905#endif
bb70624e 2906/* We use char because int might match the return type of a gcc2
f73dda09
JA
2907 builtin and then its argument prototype would still apply. */
2908char tgetent ();
2909int
2910main ()
2911{
2912tgetent ();
2913 ;
2914 return 0;
2915}
2916_ACEOF
2917rm -f conftest.$ac_objext conftest$ac_exeext
2918if { (eval echo "$as_me:2918: \"$ac_link\"") >&5
2919 (eval $ac_link) 2>&5
2920 ac_status=$?
2921 echo "$as_me:2921: \$? = $ac_status" >&5
2922 (exit $ac_status); } &&
2923 { ac_try='test -s conftest$ac_exeext'
2924 { (eval echo "$as_me:2924: \"$ac_try\"") >&5
2925 (eval $ac_try) 2>&5
2926 ac_status=$?
2927 echo "$as_me:2927: \$? = $ac_status" >&5
2928 (exit $ac_status); }; }; then
2929 ac_cv_lib_termcap_tgetent=yes
2930else
2931 echo "$as_me: failed program was:" >&5
2932cat conftest.$ac_ext >&5
2933ac_cv_lib_termcap_tgetent=no
2934fi
2935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2936LIBS=$ac_check_lib_save_LIBS
2937fi
2938echo "$as_me:2938: result: $ac_cv_lib_termcap_tgetent" >&5
2939echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
2940if test $ac_cv_lib_termcap_tgetent = yes; then
bb70624e
JA
2941 bash_cv_termcap_lib=libtermcap
2942else
f73dda09
JA
2943 echo "$as_me:2943: checking for tgetent in -ltinfo" >&5
2944echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
2945if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 2947else
f73dda09
JA
2948 ac_check_lib_save_LIBS=$LIBS
2949LIBS="-ltinfo $LIBS"
2950cat >conftest.$ac_ext <<_ACEOF
2951#line 2951 "configure"
bb70624e 2952#include "confdefs.h"
f73dda09 2953
bb70624e 2954/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
2955#ifdef __cplusplus
2956extern "C"
2957#endif
bb70624e 2958/* We use char because int might match the return type of a gcc2
f73dda09
JA
2959 builtin and then its argument prototype would still apply. */
2960char tgetent ();
2961int
2962main ()
2963{
2964tgetent ();
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969rm -f conftest.$ac_objext conftest$ac_exeext
2970if { (eval echo "$as_me:2970: \"$ac_link\"") >&5
2971 (eval $ac_link) 2>&5
2972 ac_status=$?
2973 echo "$as_me:2973: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try='test -s conftest$ac_exeext'
2976 { (eval echo "$as_me:2976: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:2979: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 ac_cv_lib_tinfo_tgetent=yes
2982else
2983 echo "$as_me: failed program was:" >&5
2984cat conftest.$ac_ext >&5
2985ac_cv_lib_tinfo_tgetent=no
2986fi
2987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2988LIBS=$ac_check_lib_save_LIBS
2989fi
2990echo "$as_me:2990: result: $ac_cv_lib_tinfo_tgetent" >&5
2991echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
2992if test $ac_cv_lib_tinfo_tgetent = yes; then
2993 bash_cv_termcal_lib=libtinfo
2994else
2995 echo "$as_me:2995: checking for tgetent in -lcurses" >&5
2996echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
2997if test "${ac_cv_lib_curses_tgetent+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
2999else
3000 ac_check_lib_save_LIBS=$LIBS
3001LIBS="-lcurses $LIBS"
3002cat >conftest.$ac_ext <<_ACEOF
3003#line 3003 "configure"
3004#include "confdefs.h"
b72432fd 3005
f73dda09
JA
3006/* Override any gcc2 internal prototype to avoid an error. */
3007#ifdef __cplusplus
3008extern "C"
3009#endif
3010/* We use char because int might match the return type of a gcc2
3011 builtin and then its argument prototype would still apply. */
3012char tgetent ();
3013int
3014main ()
3015{
3016tgetent ();
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021rm -f conftest.$ac_objext conftest$ac_exeext
3022if { (eval echo "$as_me:3022: \"$ac_link\"") >&5
3023 (eval $ac_link) 2>&5
3024 ac_status=$?
3025 echo "$as_me:3025: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -s conftest$ac_exeext'
3028 { (eval echo "$as_me:3028: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:3031: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 ac_cv_lib_curses_tgetent=yes
3034else
3035 echo "$as_me: failed program was:" >&5
3036cat conftest.$ac_ext >&5
3037ac_cv_lib_curses_tgetent=no
3038fi
3039rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3040LIBS=$ac_check_lib_save_LIBS
3041fi
3042echo "$as_me:3042: result: $ac_cv_lib_curses_tgetent" >&5
3043echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
3044if test $ac_cv_lib_curses_tgetent = yes; then
bb70624e
JA
3045 bash_cv_termcap_lib=libcurses
3046else
f73dda09
JA
3047 echo "$as_me:3047: checking for tgetent in -lncurses" >&5
3048echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
3049if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 3051else
f73dda09 3052 ac_check_lib_save_LIBS=$LIBS
bb70624e 3053LIBS="-lncurses $LIBS"
f73dda09
JA
3054cat >conftest.$ac_ext <<_ACEOF
3055#line 3055 "configure"
bb70624e 3056#include "confdefs.h"
f73dda09 3057
bb70624e 3058/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
3059#ifdef __cplusplus
3060extern "C"
3061#endif
bb70624e 3062/* We use char because int might match the return type of a gcc2
f73dda09
JA
3063 builtin and then its argument prototype would still apply. */
3064char tgetent ();
3065int
3066main ()
3067{
3068tgetent ();
3069 ;
3070 return 0;
3071}
3072_ACEOF
3073rm -f conftest.$ac_objext conftest$ac_exeext
3074if { (eval echo "$as_me:3074: \"$ac_link\"") >&5
3075 (eval $ac_link) 2>&5
3076 ac_status=$?
3077 echo "$as_me:3077: \$? = $ac_status" >&5
3078 (exit $ac_status); } &&
3079 { ac_try='test -s conftest$ac_exeext'
3080 { (eval echo "$as_me:3080: \"$ac_try\"") >&5
3081 (eval $ac_try) 2>&5
3082 ac_status=$?
3083 echo "$as_me:3083: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
3085 ac_cv_lib_ncurses_tgetent=yes
3086else
3087 echo "$as_me: failed program was:" >&5
3088cat conftest.$ac_ext >&5
3089ac_cv_lib_ncurses_tgetent=no
3090fi
3091rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3092LIBS=$ac_check_lib_save_LIBS
3093fi
3094echo "$as_me:3094: result: $ac_cv_lib_ncurses_tgetent" >&5
3095echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
3096if test $ac_cv_lib_ncurses_tgetent = yes; then
3097 bash_cv_termcap_lib=libncurses
bb70624e 3098else
f73dda09 3099 bash_cv_termcap_lib=gnutermcap
bb70624e 3100fi
bb70624e 3101
bb70624e
JA
3102fi
3103
3104fi
3105
3106fi
3107
3108fi
3109
3110if test "X$_bash_needmsg" = "Xyes"; then
f73dda09
JA
3111echo "$as_me:3111: checking which library has the termcap functions" >&5
3112echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
bb70624e 3113fi
f73dda09
JA
3114echo "$as_me:3114: result: using $bash_cv_termcap_lib" >&5
3115echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
bb70624e
JA
3116if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
3117LDFLAGS="$LDFLAGS -L./lib/termcap"
3118TERMCAP_LIB="./lib/termcap/libtermcap.a"
3119TERMCAP_DEP="./lib/termcap/libtermcap.a"
3120elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
3121TERMCAP_LIB=-ltermcap
3122TERMCAP_DEP=
f73dda09
JA
3123elif test $bash_cv_termcap_lib = libtinfo; then
3124TERMCAP_LIB=-ltinfo
3125TERMCAP_DEP=
bb70624e
JA
3126elif test $bash_cv_termcap_lib = libncurses; then
3127TERMCAP_LIB=-lncurses
3128TERMCAP_DEP=
3129else
3130TERMCAP_LIB=-lcurses
3131TERMCAP_DEP=
3132fi
3133
f73dda09
JA
3134echo "$as_me:3134: checking version of installed readline library" >&5
3135echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
3136
3137# What a pain in the ass this is.
3138
3139# save cpp and ld options
3140_save_CFLAGS="$CFLAGS"
3141_save_LDFLAGS="$LDFLAGS"
3142_save_LIBS="$LIBS"
3143
3144# Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
3145# allows the caller to do something like $_rl_prefix=$withval if the user
3146# specifies --with-installed-readline=PREFIX as an argument to configure
3147
3148if test -z "$ac_cv_rl_prefix"; then
3149test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
3150fi
3151
3152eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
3153eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
3154
3155LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
3156CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
3157LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
3158
3159if test "$cross_compiling" = yes; then
3160 ac_cv_rl_version='4.2'
3161else
3162 cat >conftest.$ac_ext <<_ACEOF
3163#line 3163 "configure"
3164#include "confdefs.h"
3165
3166#include <stdio.h>
3167#include <readline/readline.h>
3168
3169main()
3170{
3171 FILE *fp;
3172 fp = fopen("conftest.rlv", "w");
3173 if (fp == 0) exit(1);
3174 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
3175 fclose(fp);
3176 exit(0);
3177}
3178
3179_ACEOF
3180rm -f conftest$ac_exeext
3181if { (eval echo "$as_me:3181: \"$ac_link\"") >&5
3182 (eval $ac_link) 2>&5
3183 ac_status=$?
3184 echo "$as_me:3184: \$? = $ac_status" >&5
3185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3186 { (eval echo "$as_me:3186: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
3189 echo "$as_me:3189: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_cv_rl_version=`cat conftest.rlv`
3192else
3193 echo "$as_me: program exited with status $ac_status" >&5
3194echo "$as_me: failed program was:" >&5
3195cat conftest.$ac_ext >&5
3196ac_cv_rl_version='0.0'
3197fi
3198rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3199fi
3200
3201CFLAGS="$_save_CFLAGS"
3202LDFLAGS="$_save_LDFLAGS"
3203LIBS="$_save_LIBS"
3204
3205RL_MAJOR=0
3206RL_MINOR=0
3207
3208# (
3209case "$ac_cv_rl_version" in
32102*|3*|4*|5*|6*|7*|8*|9*)
3211 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
3212 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:a-zA-Z*$::'`
3213 ;;
3214esac
3215
3216# (((
3217case $RL_MAJOR in
3218[0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
3219[0-9]) _RL_MAJOR=0$RL_MAJOR ;;
3220*) _RL_MAJOR=00 ;;
3221esac
3222
3223# (((
3224case $RL_MINOR in
3225[0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
3226[0-9]) _RL_MINOR=0$RL_MINOR ;;
3227*) _RL_MINOR=00 ;;
3228esac
3229
3230RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
3231
3232# Readline versions greater than 4.2 have these defines in readline.h
3233
3234if test $ac_cv_rl_version = '0.0' ; then
3235 { echo "$as_me:3235: WARNING: Could not test version of installed readline library." >&5
3236echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
3237elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
3238 # set these for use by the caller
3239 RL_PREFIX=$ac_cv_rl_prefix
3240 RL_LIBDIR=$ac_cv_rl_libdir
3241 RL_INCLUDEDIR=$ac_cv_rl_includedir
3242 echo "$as_me:3242: result: $ac_cv_rl_version" >&5
3243echo "${ECHO_T}$ac_cv_rl_version" >&6
3244else
3245
3246cat >>confdefs.h <<EOF
3247#define RL_READLINE_VERSION $RL_VERSION
3248EOF
3249
3250cat >>confdefs.h <<EOF
3251#define RL_VERSION_MAJOR $RL_MAJOR
3252EOF
3253
3254cat >>confdefs.h <<EOF
3255#define RL_VERSION_MINOR $RL_MINOR
3256EOF
3257
3258# set these for use by the caller
3259RL_PREFIX=$ac_cv_rl_prefix
3260RL_LIBDIR=$ac_cv_rl_libdir
3261RL_INCLUDEDIR=$ac_cv_rl_includedir
bb70624e 3262
f73dda09
JA
3263echo "$as_me:3263: result: $ac_cv_rl_version" >&5
3264echo "${ECHO_T}$ac_cv_rl_version" >&6
bb70624e 3265
f73dda09 3266fi
bb70624e 3267
f73dda09 3268 case "$ac_cv_rl_version" in
28ef6c31 3269 4.[2-9]*|5*|6*|7*|8*|9*) ;;
f73dda09
JA
3270 *) opt_with_installed_readline=no
3271 { echo "$as_me:3271: WARNING: installed readline library is too old to be linked with bash" >&5
3272echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
3273 { echo "$as_me:3273: WARNING: using private bash version" >&5
3274echo "$as_me: WARNING: using private bash version" >&2;}
bb70624e
JA
3275 ;;
3276 esac
bb70624e
JA
3277fi
3278
3279if test $opt_readline = yes; then
f73dda09 3280 cat >>confdefs.h <<\EOF
bb70624e
JA
3281#define READLINE 1
3282EOF
3283
3284 READLINE_LIB=-lreadline
f73dda09
JA
3285 if test "$opt_with_installed_readline" != "no" ; then
3286 case "$RL_INCLUDEDIR" in
3287 /usr/include) ;;
3288 *) RL_INCLUDE='-I${RL_INCLUDEDIR}'
3289 esac
bb70624e 3290 READLINE_DEP=
bb70624e
JA
3291 else
3292 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3293 READLINE_DEP='$(READLINE_LIBRARY)'
3294 fi
3295else
3296 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3297 READLINE_LIB= READLINE_DEP=
3298fi
3299if test $opt_history = yes || test $opt_bang_history = yes; then
3300 if test $opt_history = yes; then
f73dda09 3301 cat >>confdefs.h <<\EOF
bb70624e
JA
3302#define HISTORY 1
3303EOF
3304
3305 fi
3306 if test $opt_bang_history = yes; then
f73dda09 3307 cat >>confdefs.h <<\EOF
bb70624e
JA
3308#define BANG_HISTORY 1
3309EOF
b72432fd
JA
3310
3311 fi
3312 HISTORY_LIB=-lhistory
f73dda09
JA
3313 if test "$opt_with_installed_readline" != "no"; then
3314 HIST_LIBDIR=$RL_LIBDIR
b72432fd 3315 HISTORY_DEP=
f73dda09
JA
3316 case "$RL_INCLUDEDIR" in
3317 /usr/include) ;;
3318 *) RL_INCLUDE='-I${RL_INCLUDEDIR}'
3319 esac
b72432fd
JA
3320 else
3321 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3322 HISTORY_DEP='$(HISTORY_LIBRARY)'
3323 fi
3324else
3325 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3326 HISTORY_LIB= HISTORY_DEP=
3327fi
3328
ccc6cda3
JA
3329# Find a good install program. We prefer a C program (faster),
3330# so one script is as good as another. But avoid the broken or
3331# incompatible versions:
3332# SysV /etc/install, /usr/sbin/install
3333# SunOS /usr/etc/install
3334# IRIX /sbin/install
3335# AIX /bin/install
f73dda09 3336# AmigaOS /C/install, which installs bootblocks on floppy discs
bb70624e 3337# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ccc6cda3
JA
3338# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3339# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3340# ./install, which can be erroneously created by make from ./install.sh.
f73dda09
JA
3341echo "$as_me:3341: checking for a BSD compatible install" >&5
3342echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
ccc6cda3 3343if test -z "$INSTALL"; then
f73dda09
JA
3344if test "${ac_cv_path_install+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 3346else
f73dda09 3347 ac_save_IFS=$IFS; IFS=$ac_path_separator
ccc6cda3 3348 for ac_dir in $PATH; do
f73dda09 3349 IFS=$ac_save_IFS
ccc6cda3 3350 # Account for people who put trailing slashes in PATH elements.
f73dda09
JA
3351 case $ac_dir/ in
3352 / | ./ | .// | /cC/* \
3353 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3354 | /usr/ucb/* ) ;;
ccc6cda3
JA
3355 *)
3356 # OSF1 and SCO ODT 3.0 have their own names for install.
bb70624e
JA
3357 # Don't use installbsd from OSF since it installs stuff as root
3358 # by default.
3359 for ac_prog in ginstall scoinst install; do
f73dda09 3360 if $as_executable_p "$ac_dir/$ac_prog"; then
ccc6cda3 3361 if test $ac_prog = install &&
f73dda09 3362 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
ccc6cda3 3363 # AIX install. It has an incompatible calling convention.
ccc6cda3 3364 :
f73dda09
JA
3365 elif test $ac_prog = install &&
3366 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3367 # program-specific install script used by HP pwplus--don't use.
3368 :
ccc6cda3
JA
3369 else
3370 ac_cv_path_install="$ac_dir/$ac_prog -c"
3371 break 2
3372 fi
3373 fi
3374 done
3375 ;;
3376 esac
3377 done
ccc6cda3
JA
3378
3379fi
3380 if test "${ac_cv_path_install+set}" = set; then
f73dda09 3381 INSTALL=$ac_cv_path_install
ccc6cda3
JA
3382 else
3383 # As a last resort, use the slow shell script. We don't cache a
3384 # path for INSTALL within a source directory, because that will
3385 # break other packages using the cache if that directory is
3386 # removed, or if the path is relative.
f73dda09 3387 INSTALL=$ac_install_sh
ccc6cda3
JA
3388 fi
3389fi
f73dda09
JA
3390echo "$as_me:3390: result: $INSTALL" >&5
3391echo "${ECHO_T}$INSTALL" >&6
ccc6cda3
JA
3392
3393# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3394# It thinks the first close brace ends the variable substitution.
3395test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3396
f73dda09 3397test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
bb70624e 3398
ccc6cda3
JA
3399test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3400
3401# Extract the first word of "ar", so it can be a program name with args.
3402set dummy ar; ac_word=$2
f73dda09
JA
3403echo "$as_me:3403: checking for $ac_word" >&5
3404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3405if test "${ac_cv_prog_AR+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
3407else
3408 if test -n "$AR"; then
3409 ac_cv_prog_AR="$AR" # Let the user override the test.
3410else
f73dda09
JA
3411 ac_save_IFS=$IFS; IFS=$ac_path_separator
3412ac_dummy="$PATH"
3413for ac_dir in $ac_dummy; do
3414 IFS=$ac_save_IFS
3415 test -z "$ac_dir" && ac_dir=.
3416 $as_executable_p "$ac_dir/$ac_word" || continue
3417ac_cv_prog_AR=""
3418echo "$as_me:3418: found $ac_dir/$ac_word" >&5
3419break
3420done
3421
3422 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
ccc6cda3
JA
3423fi
3424fi
f73dda09 3425AR=$ac_cv_prog_AR
ccc6cda3 3426if test -n "$AR"; then
f73dda09
JA
3427 echo "$as_me:3427: result: $AR" >&5
3428echo "${ECHO_T}$AR" >&6
ccc6cda3 3429else
f73dda09
JA
3430 echo "$as_me:3430: result: no" >&5
3431echo "${ECHO_T}no" >&6
ccc6cda3
JA
3432fi
3433
b72432fd 3434test -n "$ARFLAGS" || ARFLAGS="cr"
f73dda09
JA
3435if test -n "$ac_tool_prefix"; then
3436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3437set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3438echo "$as_me:3438: checking for $ac_word" >&5
3439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440if test "${ac_cv_prog_RANLIB+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
3442else
3443 if test -n "$RANLIB"; then
3444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3445else
f73dda09
JA
3446 ac_save_IFS=$IFS; IFS=$ac_path_separator
3447ac_dummy="$PATH"
3448for ac_dir in $ac_dummy; do
3449 IFS=$ac_save_IFS
3450 test -z "$ac_dir" && ac_dir=.
3451 $as_executable_p "$ac_dir/$ac_word" || continue
3452ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3453echo "$as_me:3453: found $ac_dir/$ac_word" >&5
3454break
3455done
3456
ccc6cda3
JA
3457fi
3458fi
f73dda09 3459RANLIB=$ac_cv_prog_RANLIB
ccc6cda3 3460if test -n "$RANLIB"; then
f73dda09
JA
3461 echo "$as_me:3461: result: $RANLIB" >&5
3462echo "${ECHO_T}$RANLIB" >&6
3463else
3464 echo "$as_me:3464: result: no" >&5
3465echo "${ECHO_T}no" >&6
3466fi
3467
3468fi
3469if test -z "$ac_cv_prog_RANLIB"; then
3470 ac_ct_RANLIB=$RANLIB
3471 # Extract the first word of "ranlib", so it can be a program name with args.
3472set dummy ranlib; ac_word=$2
3473echo "$as_me:3473: checking for $ac_word" >&5
3474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3475if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3477else
3478 if test -n "$ac_ct_RANLIB"; then
3479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3480else
3481 ac_save_IFS=$IFS; IFS=$ac_path_separator
3482ac_dummy="$PATH"
3483for ac_dir in $ac_dummy; do
3484 IFS=$ac_save_IFS
3485 test -z "$ac_dir" && ac_dir=.
3486 $as_executable_p "$ac_dir/$ac_word" || continue
3487ac_cv_prog_ac_ct_RANLIB="ranlib"
3488echo "$as_me:3488: found $ac_dir/$ac_word" >&5
3489break
3490done
3491
3492 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3493fi
3494fi
3495ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3496if test -n "$ac_ct_RANLIB"; then
3497 echo "$as_me:3497: result: $ac_ct_RANLIB" >&5
3498echo "${ECHO_T}$ac_ct_RANLIB" >&6
ccc6cda3 3499else
f73dda09
JA
3500 echo "$as_me:3500: result: no" >&5
3501echo "${ECHO_T}no" >&6
3502fi
3503
3504 RANLIB=$ac_ct_RANLIB
3505else
3506 RANLIB="$ac_cv_prog_RANLIB"
ccc6cda3
JA
3507fi
3508
3509for ac_prog in 'bison -y' byacc
3510do
f73dda09 3511 # Extract the first word of "$ac_prog", so it can be a program name with args.
ccc6cda3 3512set dummy $ac_prog; ac_word=$2
f73dda09
JA
3513echo "$as_me:3513: checking for $ac_word" >&5
3514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515if test "${ac_cv_prog_YACC+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
3517else
3518 if test -n "$YACC"; then
3519 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3520else
f73dda09
JA
3521 ac_save_IFS=$IFS; IFS=$ac_path_separator
3522ac_dummy="$PATH"
3523for ac_dir in $ac_dummy; do
3524 IFS=$ac_save_IFS
3525 test -z "$ac_dir" && ac_dir=.
3526 $as_executable_p "$ac_dir/$ac_word" || continue
3527ac_cv_prog_YACC="$ac_prog"
3528echo "$as_me:3528: found $ac_dir/$ac_word" >&5
3529break
3530done
3531
ccc6cda3
JA
3532fi
3533fi
f73dda09 3534YACC=$ac_cv_prog_YACC
ccc6cda3 3535if test -n "$YACC"; then
f73dda09
JA
3536 echo "$as_me:3536: result: $YACC" >&5
3537echo "${ECHO_T}$YACC" >&6
ccc6cda3 3538else
f73dda09
JA
3539 echo "$as_me:3539: result: no" >&5
3540echo "${ECHO_T}no" >&6
ccc6cda3
JA
3541fi
3542
f73dda09 3543 test -n "$YACC" && break
ccc6cda3
JA
3544done
3545test -n "$YACC" || YACC="yacc"
3546
f73dda09
JA
3547echo "$as_me:3547: checking whether ${MAKE-make} sets \${MAKE}" >&5
3548echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3549set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3550if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 3552else
f73dda09 3553 cat >conftest.make <<\EOF
ccc6cda3
JA
3554all:
3555 @echo 'ac_maketemp="${MAKE}"'
3556EOF
3557# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
f73dda09 3558eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
ccc6cda3
JA
3559if test -n "$ac_maketemp"; then
3560 eval ac_cv_prog_make_${ac_make}_set=yes
3561else
3562 eval ac_cv_prog_make_${ac_make}_set=no
3563fi
f73dda09 3564rm -f conftest.make
ccc6cda3
JA
3565fi
3566if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
f73dda09
JA
3567 echo "$as_me:3567: result: yes" >&5
3568echo "${ECHO_T}yes" >&6
ccc6cda3
JA
3569 SET_MAKE=
3570else
f73dda09
JA
3571 echo "$as_me:3571: result: no" >&5
3572echo "${ECHO_T}no" >&6
ccc6cda3
JA
3573 SET_MAKE="MAKE=${MAKE-make}"
3574fi
3575
b72432fd 3576case "$host_os" in
bb70624e 3577opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
b72432fd
JA
3578*) MAKE_SHELL=/bin/sh ;;
3579esac
3580
f73dda09
JA
3581cat >>confdefs.h <<\EOF
3582#define _GNU_SOURCE 1
3583EOF
b72432fd 3584
f73dda09
JA
3585echo "$as_me:3585: checking for $CC option to accept ANSI C" >&5
3586echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3587if test "${ac_cv_prog_cc_stdc+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 3589else
f73dda09
JA
3590 ac_cv_prog_cc_stdc=no
3591ac_save_CC=$CC
3592cat >conftest.$ac_ext <<_ACEOF
3593#line 3593 "configure"
ccc6cda3 3594#include "confdefs.h"
f73dda09
JA
3595#include <stdarg.h>
3596#include <stdio.h>
3597#include <sys/types.h>
3598#include <sys/stat.h>
3599/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3600struct buf { int x; };
3601FILE * (*rcsopen) (struct buf *, struct stat *, int);
3602static char *e (p, i)
3603 char **p;
3604 int i;
3605{
3606 return p[i];
3607}
3608static char *f (char * (*g) (char **, int), char **p, ...)
3609{
3610 char *s;
3611 va_list v;
3612 va_start (v,p);
3613 s = g (p, va_arg (v,int));
3614 va_end (v);
3615 return s;
3616}
3617int test (int i, double x);
3618struct s1 {int (*f) (int a);};
3619struct s2 {int (*f) (double a);};
3620int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3621int argc;
3622char **argv;
3623int
3624main ()
3625{
3626return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3627 ;
3628 return 0;
3629}
3630_ACEOF
3631# Don't try gcc -ansi; that turns off useful extensions and
3632# breaks some systems' header files.
3633# AIX -qlanglvl=ansi
3634# Ultrix and OSF/1 -std1
3635# HP-UX 10.20 and later -Ae
3636# HP-UX older versions -Aa -D_HPUX_SOURCE
3637# SVR4 -Xc -D__EXTENSIONS__
3638for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3639do
3640 CC="$ac_save_CC $ac_arg"
3641 rm -f conftest.$ac_objext
3642if { (eval echo "$as_me:3642: \"$ac_compile\"") >&5
3643 (eval $ac_compile) 2>&5
3644 ac_status=$?
3645 echo "$as_me:3645: \$? = $ac_status" >&5
3646 (exit $ac_status); } &&
3647 { ac_try='test -s conftest.$ac_objext'
3648 { (eval echo "$as_me:3648: \"$ac_try\"") >&5
3649 (eval $ac_try) 2>&5
3650 ac_status=$?
3651 echo "$as_me:3651: \$? = $ac_status" >&5
3652 (exit $ac_status); }; }; then
3653 ac_cv_prog_cc_stdc=$ac_arg
3654break
3655else
3656 echo "$as_me: failed program was:" >&5
3657cat conftest.$ac_ext >&5
3658fi
3659rm -f conftest.$ac_objext
3660done
3661rm -f conftest.$ac_ext conftest.$ac_objext
3662CC=$ac_save_CC
ccc6cda3
JA
3663
3664fi
3665
f73dda09
JA
3666case "x$ac_cv_prog_cc_stdc" in
3667 x|xno)
3668 echo "$as_me:3668: result: none needed" >&5
3669echo "${ECHO_T}none needed" >&6 ;;
3670 *)
3671 echo "$as_me:3671: result: $ac_cv_prog_cc_stdc" >&5
3672echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3673 CC="$CC $ac_cv_prog_cc_stdc" ;;
3674esac
3675
3676echo "$as_me:3676: checking for an ANSI C-conforming const" >&5
3677echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3678if test "${ac_cv_c_const+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 3680else
f73dda09
JA
3681 cat >conftest.$ac_ext <<_ACEOF
3682#line 3682 "configure"
ccc6cda3
JA
3683#include "confdefs.h"
3684
f73dda09
JA
3685int
3686main ()
3687{
3688/* FIXME: Include the comments suggested by Paul. */
3689#ifndef __cplusplus
3690 /* Ultrix mips cc rejects this. */
3691 typedef int charset[2];
3692 const charset x;
3693 /* SunOS 4.1.1 cc rejects this. */
3694 char const *const *ccp;
3695 char **p;
3696 /* NEC SVR4.0.2 mips cc rejects this. */
3697 struct point {int x, y;};
3698 static struct point const zero = {0,0};
3699 /* AIX XL C 1.02.0.0 rejects this.
3700 It does not let you subtract one const X* pointer from another in
3701 an arm of an if-expression whose if-part is not a constant
3702 expression */
3703 const char *g = "string";
3704 ccp = &g + (g ? g-g : 0);
3705 /* HPUX 7.0 cc rejects these. */
3706 ++ccp;
3707 p = (char**) ccp;
3708 ccp = (char const *const *) p;
3709 { /* SCO 3.2v4 cc rejects this. */
3710 char *t;
3711 char const *s = 0 ? (char *) 0 : (char const *) 0;
3712
3713 *t++ = 0;
3714 }
3715 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3716 int x[] = {25, 17};
3717 const int *foo = &x[0];
3718 ++foo;
3719 }
3720 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3721 typedef const int *iptr;
3722 iptr p = 0;
3723 ++p;
3724 }
3725 { /* AIX XL C 1.02.0.0 rejects this saying
3726 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3727 struct s { int j; const int *ap[3]; };
3728 struct s *b; b->j = 5;
3729 }
3730 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3731 const int foo = 10;
3732 }
ccc6cda3
JA
3733#endif
3734
f73dda09
JA
3735 ;
3736 return 0;
3737}
3738_ACEOF
3739rm -f conftest.$ac_objext
3740if { (eval echo "$as_me:3740: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>&5
3742 ac_status=$?
3743 echo "$as_me:3743: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -s conftest.$ac_objext'
3746 { (eval echo "$as_me:3746: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:3749: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 ac_cv_c_const=yes
3752else
3753 echo "$as_me: failed program was:" >&5
3754cat conftest.$ac_ext >&5
3755ac_cv_c_const=no
3756fi
3757rm -f conftest.$ac_objext conftest.$ac_ext
3758fi
3759echo "$as_me:3759: result: $ac_cv_c_const" >&5
3760echo "${ECHO_T}$ac_cv_c_const" >&6
3761if test $ac_cv_c_const = no; then
3762
3763cat >>confdefs.h <<\EOF
3764#define const
ccc6cda3
JA
3765EOF
3766
3767fi
3768
f73dda09
JA
3769echo "$as_me:3769: checking for inline" >&5
3770echo $ECHO_N "checking for inline... $ECHO_C" >&6
3771if test "${ac_cv_c_inline+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 3773else
f73dda09
JA
3774 ac_cv_c_inline=no
3775for ac_kw in inline __inline__ __inline; do
3776 cat >conftest.$ac_ext <<_ACEOF
3777#line 3777 "configure"
ccc6cda3 3778#include "confdefs.h"
f73dda09
JA
3779#ifndef __cplusplus
3780static $ac_kw int static_foo () {return 0; }
3781$ac_kw int foo () {return 0; }
ccc6cda3
JA
3782#endif
3783
f73dda09
JA
3784_ACEOF
3785rm -f conftest.$ac_objext
3786if { (eval echo "$as_me:3786: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>&5
3788 ac_status=$?
3789 echo "$as_me:3789: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try='test -s conftest.$ac_objext'
3792 { (eval echo "$as_me:3792: \"$ac_try\"") >&5
3793 (eval $ac_try) 2>&5
3794 ac_status=$?
3795 echo "$as_me:3795: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 ac_cv_c_inline=$ac_kw; break
3798else
3799 echo "$as_me: failed program was:" >&5
3800cat conftest.$ac_ext >&5
3801fi
3802rm -f conftest.$ac_objext conftest.$ac_ext
3803done
ccc6cda3
JA
3804
3805fi
f73dda09
JA
3806echo "$as_me:3806: result: $ac_cv_c_inline" >&5
3807echo "${ECHO_T}$ac_cv_c_inline" >&6
3808case $ac_cv_c_inline in
3809 inline | yes) ;;
3810 no)
3811cat >>confdefs.h <<\EOF
3812#define inline
3813EOF
3814 ;;
3815 *) cat >>confdefs.h <<EOF
3816#define inline $ac_cv_c_inline
3817EOF
3818 ;;
3819esac
ccc6cda3 3820
f73dda09
JA
3821echo "$as_me:3821: checking whether byte ordering is bigendian" >&5
3822echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3823if test "${ac_cv_c_bigendian+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 3825else
f73dda09
JA
3826 ac_cv_c_bigendian=unknown
3827# See if sys/param.h defines the BYTE_ORDER macro.
3828cat >conftest.$ac_ext <<_ACEOF
3829#line 3829 "configure"
ccc6cda3 3830#include "confdefs.h"
f73dda09
JA
3831#include <sys/types.h>
3832#include <sys/param.h>
ccc6cda3 3833
f73dda09
JA
3834int
3835main ()
3836{
3837#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3838 bogus endian macros
ccc6cda3
JA
3839#endif
3840
f73dda09
JA
3841 ;
3842 return 0;
3843}
3844_ACEOF
3845rm -f conftest.$ac_objext
3846if { (eval echo "$as_me:3846: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>&5
3848 ac_status=$?
3849 echo "$as_me:3849: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -s conftest.$ac_objext'
3852 { (eval echo "$as_me:3852: \"$ac_try\"") >&5
3853 (eval $ac_try) 2>&5
3854 ac_status=$?
3855 echo "$as_me:3855: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 # It does; now see whether it defined to BIG_ENDIAN or not.
3858cat >conftest.$ac_ext <<_ACEOF
3859#line 3859 "configure"
3860#include "confdefs.h"
3861#include <sys/types.h>
3862#include <sys/param.h>
ccc6cda3 3863
f73dda09
JA
3864int
3865main ()
3866{
3867#if BYTE_ORDER != BIG_ENDIAN
3868 not big endian
3869#endif
ccc6cda3 3870
f73dda09
JA
3871 ;
3872 return 0;
3873}
3874_ACEOF
3875rm -f conftest.$ac_objext
3876if { (eval echo "$as_me:3876: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>&5
3878 ac_status=$?
3879 echo "$as_me:3879: \$? = $ac_status" >&5
3880 (exit $ac_status); } &&
3881 { ac_try='test -s conftest.$ac_objext'
3882 { (eval echo "$as_me:3882: \"$ac_try\"") >&5
3883 (eval $ac_try) 2>&5
3884 ac_status=$?
3885 echo "$as_me:3885: \$? = $ac_status" >&5
3886 (exit $ac_status); }; }; then
3887 ac_cv_c_bigendian=yes
ccc6cda3 3888else
f73dda09
JA
3889 echo "$as_me: failed program was:" >&5
3890cat conftest.$ac_ext >&5
3891ac_cv_c_bigendian=no
ccc6cda3 3892fi
f73dda09 3893rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3 3894else
f73dda09
JA
3895 echo "$as_me: failed program was:" >&5
3896cat conftest.$ac_ext >&5
3897fi
3898rm -f conftest.$ac_objext conftest.$ac_ext
3899if test $ac_cv_c_bigendian = unknown; then
3900if test "$cross_compiling" = yes; then
3901 { { echo "$as_me:3901: error: cannot run test program while cross compiling" >&5
3902echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3903 { (exit 1); exit 1; }; }
ccc6cda3 3904else
f73dda09
JA
3905 cat >conftest.$ac_ext <<_ACEOF
3906#line 3906 "configure"
ccc6cda3 3907#include "confdefs.h"
f73dda09
JA
3908int
3909main ()
ccc6cda3 3910{
f73dda09
JA
3911 /* Are we little or big endian? From Harbison&Steele. */
3912 union
3913 {
3914 long l;
3915 char c[sizeof (long)];
3916 } u;
3917 u.l = 1;
3918 exit (u.c[sizeof (long) - 1] == 1);
ccc6cda3 3919}
f73dda09
JA
3920_ACEOF
3921rm -f conftest$ac_exeext
3922if { (eval echo "$as_me:3922: \"$ac_link\"") >&5
3923 (eval $ac_link) 2>&5
3924 ac_status=$?
3925 echo "$as_me:3925: \$? = $ac_status" >&5
3926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3927 { (eval echo "$as_me:3927: \"$ac_try\"") >&5
3928 (eval $ac_try) 2>&5
3929 ac_status=$?
3930 echo "$as_me:3930: \$? = $ac_status" >&5
3931 (exit $ac_status); }; }; then
3932 ac_cv_c_bigendian=no
ccc6cda3 3933else
f73dda09
JA
3934 echo "$as_me: program exited with status $ac_status" >&5
3935echo "$as_me: failed program was:" >&5
3936cat conftest.$ac_ext >&5
3937ac_cv_c_bigendian=yes
3938fi
3939rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 3940fi
ccc6cda3 3941fi
ccc6cda3 3942fi
f73dda09
JA
3943echo "$as_me:3943: result: $ac_cv_c_bigendian" >&5
3944echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3945if test $ac_cv_c_bigendian = yes; then
ccc6cda3 3946
f73dda09
JA
3947cat >>confdefs.h <<\EOF
3948#define WORDS_BIGENDIAN 1
ccc6cda3
JA
3949EOF
3950
3951fi
3952
f73dda09
JA
3953echo "$as_me:3953: checking for preprocessor stringizing operator" >&5
3954echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
3955if test "${ac_cv_c_stringize+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 3957else
f73dda09
JA
3958 cat >conftest.$ac_ext <<_ACEOF
3959#line 3959 "configure"
ccc6cda3 3960#include "confdefs.h"
f73dda09 3961#define x(y) #y
ccc6cda3 3962
f73dda09
JA
3963char *s = x(teststring);
3964_ACEOF
3965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966 egrep "#teststring" >/dev/null 2>&1; then
3967 ac_cv_c_stringize=no
ccc6cda3 3968else
f73dda09 3969 ac_cv_c_stringize=yes
ccc6cda3 3970fi
f73dda09 3971rm -f conftest*
ccc6cda3
JA
3972
3973fi
f73dda09
JA
3974echo "$as_me:3974: result: $ac_cv_c_stringize" >&5
3975echo "${ECHO_T}$ac_cv_c_stringize" >&6
3976if test $ac_cv_c_stringize = yes; then
ccc6cda3 3977
f73dda09
JA
3978cat >>confdefs.h <<\EOF
3979#define HAVE_STRINGIZE 1
ccc6cda3
JA
3980EOF
3981
3982fi
3983
f73dda09
JA
3984echo "$as_me:3984: checking for long double" >&5
3985echo $ECHO_N "checking for long double... $ECHO_C" >&6
3986if test "${ac_cv_c_long_double+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 3988else
f73dda09
JA
3989 if test "$GCC" = yes; then
3990 ac_cv_c_long_double=yes
3991else
3992if test "$cross_compiling" = yes; then
3993 { { echo "$as_me:3993: error: cannot run test program while cross compiling" >&5
3994echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3995 { (exit 1); exit 1; }; }
ccc6cda3 3996else
f73dda09
JA
3997 cat >conftest.$ac_ext <<_ACEOF
3998#line 3998 "configure"
ccc6cda3 3999#include "confdefs.h"
f73dda09
JA
4000int
4001main ()
4002{
4003 /* The Stardent Vistra knows sizeof(long double), but does not
4004 support it. */
4005 long double foo = 0.0;
4006 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4007 exit (sizeof (long double) < sizeof (double));
ccc6cda3 4008}
f73dda09
JA
4009_ACEOF
4010rm -f conftest$ac_exeext
4011if { (eval echo "$as_me:4011: \"$ac_link\"") >&5
4012 (eval $ac_link) 2>&5
4013 ac_status=$?
4014 echo "$as_me:4014: \$? = $ac_status" >&5
4015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4016 { (eval echo "$as_me:4016: \"$ac_try\"") >&5
4017 (eval $ac_try) 2>&5
4018 ac_status=$?
4019 echo "$as_me:4019: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 ac_cv_c_long_double=yes
ccc6cda3 4022else
f73dda09
JA
4023 echo "$as_me: program exited with status $ac_status" >&5
4024echo "$as_me: failed program was:" >&5
4025cat conftest.$ac_ext >&5
4026ac_cv_c_long_double=no
4027fi
4028rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 4029fi
ccc6cda3 4030fi
ccc6cda3 4031fi
f73dda09
JA
4032echo "$as_me:4032: result: $ac_cv_c_long_double" >&5
4033echo "${ECHO_T}$ac_cv_c_long_double" >&6
4034if test $ac_cv_c_long_double = yes; then
ccc6cda3 4035
f73dda09
JA
4036cat >>confdefs.h <<\EOF
4037#define HAVE_LONG_DOUBLE 1
ccc6cda3
JA
4038EOF
4039
4040fi
4041
f73dda09
JA
4042echo "$as_me:4042: checking for function prototypes" >&5
4043echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4044if test "$ac_cv_prog_cc_stdc" != no; then
4045 echo "$as_me:4045: result: yes" >&5
4046echo "${ECHO_T}yes" >&6
ccc6cda3 4047
f73dda09
JA
4048cat >>confdefs.h <<\EOF
4049#define PROTOTYPES 1
ccc6cda3
JA
4050EOF
4051
4052else
f73dda09
JA
4053 echo "$as_me:4053: result: no" >&5
4054echo "${ECHO_T}no" >&6
ccc6cda3
JA
4055fi
4056
f73dda09
JA
4057echo "$as_me:4057: checking for ANSI C header files" >&5
4058echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4059if test "${ac_cv_header_stdc+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 4061else
f73dda09
JA
4062 cat >conftest.$ac_ext <<_ACEOF
4063#line 4063 "configure"
ccc6cda3 4064#include "confdefs.h"
f73dda09
JA
4065#include <stdlib.h>
4066#include <stdarg.h>
4067#include <string.h>
4068#include <float.h>
ccc6cda3 4069
f73dda09
JA
4070_ACEOF
4071if { (eval echo "$as_me:4071: \"$ac_cpp conftest.$ac_ext\"") >&5
4072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4073 ac_status=$?
4074 egrep -v '^ *\+' conftest.er1 >conftest.err
4075 rm -f conftest.er1
4076 cat conftest.err >&5
4077 echo "$as_me:4077: \$? = $ac_status" >&5
4078 (exit $ac_status); } >/dev/null; then
4079 if test -s conftest.err; then
4080 ac_cpp_err=$ac_c_preproc_warn_flag
4081 else
4082 ac_cpp_err=
4083 fi
4084else
4085 ac_cpp_err=yes
4086fi
4087if test -z "$ac_cpp_err"; then
4088 ac_cv_header_stdc=yes
4089else
4090 echo "$as_me: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4092 ac_cv_header_stdc=no
4093fi
4094rm -f conftest.err conftest.$ac_ext
ccc6cda3 4095
f73dda09
JA
4096if test $ac_cv_header_stdc = yes; then
4097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4098 cat >conftest.$ac_ext <<_ACEOF
4099#line 4099 "configure"
4100#include "confdefs.h"
4101#include <string.h>
ccc6cda3 4102
f73dda09
JA
4103_ACEOF
4104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105 egrep "memchr" >/dev/null 2>&1; then
4106 :
ccc6cda3 4107else
f73dda09 4108 ac_cv_header_stdc=no
ccc6cda3
JA
4109fi
4110rm -f conftest*
f73dda09 4111
ccc6cda3
JA
4112fi
4113
f73dda09
JA
4114if test $ac_cv_header_stdc = yes; then
4115 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4116 cat >conftest.$ac_ext <<_ACEOF
4117#line 4117 "configure"
4118#include "confdefs.h"
4119#include <stdlib.h>
ccc6cda3 4120
f73dda09
JA
4121_ACEOF
4122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4123 egrep "free" >/dev/null 2>&1; then
4124 :
ccc6cda3 4125else
f73dda09 4126 ac_cv_header_stdc=no
ccc6cda3 4127fi
f73dda09 4128rm -f conftest*
ccc6cda3
JA
4129
4130fi
4131
f73dda09
JA
4132if test $ac_cv_header_stdc = yes; then
4133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
ccc6cda3 4134 if test "$cross_compiling" = yes; then
f73dda09 4135 :
ccc6cda3 4136else
f73dda09
JA
4137 cat >conftest.$ac_ext <<_ACEOF
4138#line 4138 "configure"
ccc6cda3 4139#include "confdefs.h"
f73dda09
JA
4140#include <ctype.h>
4141#if ((' ' & 0x0FF) == 0x020)
4142# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4143# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4144#else
4145# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4146 || ('j' <= (c) && (c) <= 'r') \
4147 || ('s' <= (c) && (c) <= 'z'))
4148# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4149#endif
4150
4151#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4152int
4153main ()
4154{
ccc6cda3 4155 int i;
f73dda09
JA
4156 for (i = 0; i < 256; i++)
4157 if (XOR (islower (i), ISLOWER (i))
4158 || toupper (i) != TOUPPER (i))
4159 exit(2);
4160 exit (0);
ccc6cda3 4161}
f73dda09
JA
4162_ACEOF
4163rm -f conftest$ac_exeext
4164if { (eval echo "$as_me:4164: \"$ac_link\"") >&5
4165 (eval $ac_link) 2>&5
4166 ac_status=$?
4167 echo "$as_me:4167: \$? = $ac_status" >&5
4168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4169 { (eval echo "$as_me:4169: \"$ac_try\"") >&5
4170 (eval $ac_try) 2>&5
4171 ac_status=$?
4172 echo "$as_me:4172: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4174 :
ccc6cda3 4175else
f73dda09
JA
4176 echo "$as_me: program exited with status $ac_status" >&5
4177echo "$as_me: failed program was:" >&5
4178cat conftest.$ac_ext >&5
4179ac_cv_header_stdc=no
4180fi
4181rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 4182fi
ccc6cda3 4183fi
f73dda09
JA
4184fi
4185echo "$as_me:4185: result: $ac_cv_header_stdc" >&5
4186echo "${ECHO_T}$ac_cv_header_stdc" >&6
4187if test $ac_cv_header_stdc = yes; then
4188
4189cat >>confdefs.h <<\EOF
4190#define STDC_HEADERS 1
4191EOF
ccc6cda3
JA
4192
4193fi
4194
f73dda09
JA
4195# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4196
4197for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4198 inttypes.h stdint.h unistd.h
4199do
4200as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4201echo "$as_me:4201: checking for $ac_header" >&5
4202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4203if eval "test \"\${$as_ac_Header+set}\" = set"; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205else
4206 cat >conftest.$ac_ext <<_ACEOF
4207#line 4207 "configure"
4208#include "confdefs.h"
4209$ac_includes_default
4210#include <$ac_header>
4211_ACEOF
4212rm -f conftest.$ac_objext
4213if { (eval echo "$as_me:4213: \"$ac_compile\"") >&5
4214 (eval $ac_compile) 2>&5
4215 ac_status=$?
4216 echo "$as_me:4216: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try='test -s conftest.$ac_objext'
4219 { (eval echo "$as_me:4219: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:4222: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 eval "$as_ac_Header=yes"
4225else
4226 echo "$as_me: failed program was:" >&5
4227cat conftest.$ac_ext >&5
4228eval "$as_ac_Header=no"
4229fi
4230rm -f conftest.$ac_objext conftest.$ac_ext
4231fi
4232echo "$as_me:4232: result: `eval echo '${'$as_ac_Header'}'`" >&5
4233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4234if test `eval echo '${'$as_ac_Header'}'` = yes; then
4235 cat >>confdefs.h <<EOF
4236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ccc6cda3
JA
4237EOF
4238
4239fi
f73dda09 4240done
ccc6cda3 4241
f73dda09
JA
4242echo "$as_me:4242: checking whether char is unsigned" >&5
4243echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
4244if test "${ac_cv_c_char_unsigned+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 4246else
f73dda09
JA
4247 cat >conftest.$ac_ext <<_ACEOF
4248#line 4248 "configure"
ccc6cda3 4249#include "confdefs.h"
f73dda09
JA
4250$ac_includes_default
4251int
ccc6cda3
JA
4252main ()
4253{
f73dda09
JA
4254int _array_ [1 - 2 * !(((char) -1) < 0)]
4255 ;
4256 return 0;
ccc6cda3 4257}
f73dda09
JA
4258_ACEOF
4259rm -f conftest.$ac_objext
4260if { (eval echo "$as_me:4260: \"$ac_compile\"") >&5
4261 (eval $ac_compile) 2>&5
4262 ac_status=$?
4263 echo "$as_me:4263: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try='test -s conftest.$ac_objext'
4266 { (eval echo "$as_me:4266: \"$ac_try\"") >&5
4267 (eval $ac_try) 2>&5
4268 ac_status=$?
4269 echo "$as_me:4269: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 ac_cv_c_char_unsigned=no
ccc6cda3 4272else
f73dda09
JA
4273 echo "$as_me: failed program was:" >&5
4274cat conftest.$ac_ext >&5
4275ac_cv_c_char_unsigned=yes
ccc6cda3 4276fi
f73dda09 4277rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3 4278fi
f73dda09
JA
4279echo "$as_me:4279: result: $ac_cv_c_char_unsigned" >&5
4280echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
4281if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4282 cat >>confdefs.h <<\EOF
4283#define __CHAR_UNSIGNED__ 1
ccc6cda3
JA
4284EOF
4285
ccc6cda3
JA
4286fi
4287
f73dda09
JA
4288ac_header_dirent=no
4289for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4290 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4291echo "$as_me:4291: checking for $ac_hdr that defines DIR" >&5
4292echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4293if eval "test \"\${$as_ac_Header+set}\" = set"; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 4295else
f73dda09
JA
4296 cat >conftest.$ac_ext <<_ACEOF
4297#line 4297 "configure"
ccc6cda3
JA
4298#include "confdefs.h"
4299#include <sys/types.h>
f73dda09 4300#include <$ac_hdr>
ccc6cda3 4301
f73dda09
JA
4302int
4303main ()
4304{
4305if ((DIR *) 0)
4306return 0;
4307 ;
4308 return 0;
4309}
4310_ACEOF
4311rm -f conftest.$ac_objext
4312if { (eval echo "$as_me:4312: \"$ac_compile\"") >&5
4313 (eval $ac_compile) 2>&5
4314 ac_status=$?
4315 echo "$as_me:4315: \$? = $ac_status" >&5
4316 (exit $ac_status); } &&
4317 { ac_try='test -s conftest.$ac_objext'
4318 { (eval echo "$as_me:4318: \"$ac_try\"") >&5
4319 (eval $ac_try) 2>&5
4320 ac_status=$?
4321 echo "$as_me:4321: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 eval "$as_ac_Header=yes"
ccc6cda3 4324else
f73dda09
JA
4325 echo "$as_me: failed program was:" >&5
4326cat conftest.$ac_ext >&5
4327eval "$as_ac_Header=no"
ccc6cda3 4328fi
f73dda09 4329rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3 4330fi
f73dda09
JA
4331echo "$as_me:4331: result: `eval echo '${'$as_ac_Header'}'`" >&5
4332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4333if test `eval echo '${'$as_ac_Header'}'` = yes; then
4334 cat >>confdefs.h <<EOF
4335#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
ccc6cda3
JA
4336EOF
4337
f73dda09
JA
4338ac_header_dirent=$ac_hdr; break
4339fi
ccc6cda3 4340
f73dda09
JA
4341done
4342# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4343if test $ac_header_dirent = dirent.h; then
4344 echo "$as_me:4344: checking for opendir in -ldir" >&5
4345echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
4346if test "${ac_cv_lib_dir_opendir+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 4348else
f73dda09
JA
4349 ac_check_lib_save_LIBS=$LIBS
4350LIBS="-ldir $LIBS"
4351cat >conftest.$ac_ext <<_ACEOF
4352#line 4352 "configure"
ccc6cda3 4353#include "confdefs.h"
f73dda09 4354
ccc6cda3 4355/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
4356#ifdef __cplusplus
4357extern "C"
4358#endif
ccc6cda3 4359/* We use char because int might match the return type of a gcc2
f73dda09
JA
4360 builtin and then its argument prototype would still apply. */
4361char opendir ();
4362int
4363main ()
4364{
4365opendir ();
4366 ;
4367 return 0;
4368}
4369_ACEOF
4370rm -f conftest.$ac_objext conftest$ac_exeext
4371if { (eval echo "$as_me:4371: \"$ac_link\"") >&5
4372 (eval $ac_link) 2>&5
4373 ac_status=$?
4374 echo "$as_me:4374: \$? = $ac_status" >&5
4375 (exit $ac_status); } &&
4376 { ac_try='test -s conftest$ac_exeext'
4377 { (eval echo "$as_me:4377: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:4380: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_lib_dir_opendir=yes
4383else
4384 echo "$as_me: failed program was:" >&5
4385cat conftest.$ac_ext >&5
4386ac_cv_lib_dir_opendir=no
4387fi
4388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4389LIBS=$ac_check_lib_save_LIBS
4390fi
4391echo "$as_me:4391: result: $ac_cv_lib_dir_opendir" >&5
4392echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
4393if test $ac_cv_lib_dir_opendir = yes; then
4394 LIBS="$LIBS -ldir"
4395fi
ccc6cda3
JA
4396
4397else
f73dda09
JA
4398 echo "$as_me:4398: checking for opendir in -lx" >&5
4399echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
4400if test "${ac_cv_lib_x_opendir+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 4402else
f73dda09
JA
4403 ac_check_lib_save_LIBS=$LIBS
4404LIBS="-lx $LIBS"
4405cat >conftest.$ac_ext <<_ACEOF
4406#line 4406 "configure"
ccc6cda3 4407#include "confdefs.h"
f73dda09 4408
ccc6cda3 4409/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
4410#ifdef __cplusplus
4411extern "C"
4412#endif
ccc6cda3 4413/* We use char because int might match the return type of a gcc2
f73dda09
JA
4414 builtin and then its argument prototype would still apply. */
4415char opendir ();
4416int
4417main ()
4418{
4419opendir ();
4420 ;
4421 return 0;
4422}
4423_ACEOF
4424rm -f conftest.$ac_objext conftest$ac_exeext
4425if { (eval echo "$as_me:4425: \"$ac_link\"") >&5
4426 (eval $ac_link) 2>&5
4427 ac_status=$?
4428 echo "$as_me:4428: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -s conftest$ac_exeext'
4431 { (eval echo "$as_me:4431: \"$ac_try\"") >&5
4432 (eval $ac_try) 2>&5
4433 ac_status=$?
4434 echo "$as_me:4434: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4436 ac_cv_lib_x_opendir=yes
4437else
4438 echo "$as_me: failed program was:" >&5
4439cat conftest.$ac_ext >&5
4440ac_cv_lib_x_opendir=no
4441fi
4442rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4443LIBS=$ac_check_lib_save_LIBS
4444fi
4445echo "$as_me:4445: result: $ac_cv_lib_x_opendir" >&5
4446echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
4447if test $ac_cv_lib_x_opendir = yes; then
4448 LIBS="$LIBS -lx"
4449fi
ccc6cda3 4450
f73dda09 4451fi
ccc6cda3 4452
f73dda09
JA
4453echo "$as_me:4453: checking whether time.h and sys/time.h may both be included" >&5
4454echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4455if test "${ac_cv_header_time+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458 cat >conftest.$ac_ext <<_ACEOF
4459#line 4459 "configure"
4460#include "confdefs.h"
4461#include <sys/types.h>
4462#include <sys/time.h>
4463#include <time.h>
ccc6cda3 4464
f73dda09
JA
4465int
4466main ()
4467{
4468if ((struct tm *) 0)
4469return 0;
4470 ;
4471 return 0;
4472}
4473_ACEOF
4474rm -f conftest.$ac_objext
4475if { (eval echo "$as_me:4475: \"$ac_compile\"") >&5
4476 (eval $ac_compile) 2>&5
4477 ac_status=$?
4478 echo "$as_me:4478: \$? = $ac_status" >&5
4479 (exit $ac_status); } &&
4480 { ac_try='test -s conftest.$ac_objext'
4481 { (eval echo "$as_me:4481: \"$ac_try\"") >&5
4482 (eval $ac_try) 2>&5
4483 ac_status=$?
4484 echo "$as_me:4484: \$? = $ac_status" >&5
4485 (exit $ac_status); }; }; then
4486 ac_cv_header_time=yes
ccc6cda3 4487else
f73dda09
JA
4488 echo "$as_me: failed program was:" >&5
4489cat conftest.$ac_ext >&5
4490ac_cv_header_time=no
ccc6cda3 4491fi
f73dda09 4492rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3 4493fi
f73dda09
JA
4494echo "$as_me:4494: result: $ac_cv_header_time" >&5
4495echo "${ECHO_T}$ac_cv_header_time" >&6
4496if test $ac_cv_header_time = yes; then
ccc6cda3 4497
f73dda09
JA
4498cat >>confdefs.h <<\EOF
4499#define TIME_WITH_SYS_TIME 1
ccc6cda3
JA
4500EOF
4501
ccc6cda3
JA
4502fi
4503
f73dda09
JA
4504for ac_header in inttypes.h
4505do
4506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4507echo "$as_me:4507: checking for $ac_header" >&5
4508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4509if eval "test \"\${$as_ac_Header+set}\" = set"; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511else
4512 cat >conftest.$ac_ext <<_ACEOF
4513#line 4513 "configure"
4514#include "confdefs.h"
4515#include <$ac_header>
4516_ACEOF
4517if { (eval echo "$as_me:4517: \"$ac_cpp conftest.$ac_ext\"") >&5
4518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4519 ac_status=$?
4520 egrep -v '^ *\+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
4523 echo "$as_me:4523: \$? = $ac_status" >&5
4524 (exit $ac_status); } >/dev/null; then
4525 if test -s conftest.err; then
4526 ac_cpp_err=$ac_c_preproc_warn_flag
4527 else
4528 ac_cpp_err=
4529 fi
ccc6cda3 4530else
f73dda09
JA
4531 ac_cpp_err=yes
4532fi
4533if test -z "$ac_cpp_err"; then
4534 eval "$as_ac_Header=yes"
ccc6cda3 4535else
f73dda09 4536 echo "$as_me: failed program was:" >&5
ccc6cda3 4537 cat conftest.$ac_ext >&5
f73dda09 4538 eval "$as_ac_Header=no"
ccc6cda3 4539fi
f73dda09 4540rm -f conftest.err conftest.$ac_ext
ccc6cda3 4541fi
f73dda09
JA
4542echo "$as_me:4542: result: `eval echo '${'$as_ac_Header'}'`" >&5
4543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4544if test `eval echo '${'$as_ac_Header'}'` = yes; then
4545 cat >>confdefs.h <<EOF
4546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ccc6cda3
JA
4547EOF
4548
4549fi
f73dda09 4550done
ccc6cda3 4551
f73dda09
JA
4552for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
4553 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
4554 stddef.h stdint.h netdb.h grp.h strings.h
ccc6cda3 4555do
f73dda09
JA
4556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4557echo "$as_me:4557: checking for $ac_header" >&5
4558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4559if eval "test \"\${$as_ac_Header+set}\" = set"; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561else
4562 cat >conftest.$ac_ext <<_ACEOF
4563#line 4563 "configure"
4564#include "confdefs.h"
4565#include <$ac_header>
4566_ACEOF
4567if { (eval echo "$as_me:4567: \"$ac_cpp conftest.$ac_ext\"") >&5
4568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4569 ac_status=$?
4570 egrep -v '^ *\+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:4573: \$? = $ac_status" >&5
4574 (exit $ac_status); } >/dev/null; then
4575 if test -s conftest.err; then
4576 ac_cpp_err=$ac_c_preproc_warn_flag
4577 else
4578 ac_cpp_err=
4579 fi
ccc6cda3 4580else
f73dda09
JA
4581 ac_cpp_err=yes
4582fi
4583if test -z "$ac_cpp_err"; then
4584 eval "$as_ac_Header=yes"
ccc6cda3 4585else
f73dda09 4586 echo "$as_me: failed program was:" >&5
ccc6cda3 4587 cat conftest.$ac_ext >&5
f73dda09 4588 eval "$as_ac_Header=no"
ccc6cda3 4589fi
f73dda09 4590rm -f conftest.err conftest.$ac_ext
ccc6cda3 4591fi
f73dda09
JA
4592echo "$as_me:4592: result: `eval echo '${'$as_ac_Header'}'`" >&5
4593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4594if test `eval echo '${'$as_ac_Header'}'` = yes; then
4595 cat >>confdefs.h <<EOF
4596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ccc6cda3 4597EOF
f73dda09 4598
ccc6cda3
JA
4599fi
4600done
4601
f73dda09
JA
4602for ac_header in sys/ptem.h sys/pte.h sys/stream.h sys/select.h sys/file.h \
4603 sys/resource.h sys/param.h sys/socket.h \
4604 sys/time.h sys/times.h sys/wait.h
ccc6cda3 4605do
f73dda09
JA
4606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4607echo "$as_me:4607: checking for $ac_header" >&5
4608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4609if eval "test \"\${$as_ac_Header+set}\" = set"; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611else
4612 cat >conftest.$ac_ext <<_ACEOF
4613#line 4613 "configure"
4614#include "confdefs.h"
4615#include <$ac_header>
4616_ACEOF
4617if { (eval echo "$as_me:4617: \"$ac_cpp conftest.$ac_ext\"") >&5
4618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4619 ac_status=$?
4620 egrep -v '^ *\+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:4623: \$? = $ac_status" >&5
4624 (exit $ac_status); } >/dev/null; then
4625 if test -s conftest.err; then
4626 ac_cpp_err=$ac_c_preproc_warn_flag
4627 else
4628 ac_cpp_err=
4629 fi
ccc6cda3 4630else
f73dda09
JA
4631 ac_cpp_err=yes
4632fi
4633if test -z "$ac_cpp_err"; then
4634 eval "$as_ac_Header=yes"
ccc6cda3 4635else
f73dda09 4636 echo "$as_me: failed program was:" >&5
ccc6cda3 4637 cat conftest.$ac_ext >&5
f73dda09 4638 eval "$as_ac_Header=no"
ccc6cda3 4639fi
f73dda09 4640rm -f conftest.err conftest.$ac_ext
ccc6cda3 4641fi
f73dda09
JA
4642echo "$as_me:4642: result: `eval echo '${'$as_ac_Header'}'`" >&5
4643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4644if test `eval echo '${'$as_ac_Header'}'` = yes; then
4645 cat >>confdefs.h <<EOF
4646#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ccc6cda3 4647EOF
f73dda09 4648
ccc6cda3
JA
4649fi
4650done
4651
f73dda09 4652for ac_header in netinet/in.h arpa/inet.h
ccc6cda3 4653do
f73dda09
JA
4654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4655echo "$as_me:4655: checking for $ac_header" >&5
4656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4657if eval "test \"\${$as_ac_Header+set}\" = set"; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660 cat >conftest.$ac_ext <<_ACEOF
4661#line 4661 "configure"
4662#include "confdefs.h"
4663#include <$ac_header>
4664_ACEOF
4665if { (eval echo "$as_me:4665: \"$ac_cpp conftest.$ac_ext\"") >&5
4666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4667 ac_status=$?
4668 egrep -v '^ *\+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 echo "$as_me:4671: \$? = $ac_status" >&5
4672 (exit $ac_status); } >/dev/null; then
4673 if test -s conftest.err; then
4674 ac_cpp_err=$ac_c_preproc_warn_flag
4675 else
4676 ac_cpp_err=
4677 fi
ccc6cda3 4678else
f73dda09
JA
4679 ac_cpp_err=yes
4680fi
4681if test -z "$ac_cpp_err"; then
4682 eval "$as_ac_Header=yes"
ccc6cda3 4683else
f73dda09 4684 echo "$as_me: failed program was:" >&5
ccc6cda3 4685 cat conftest.$ac_ext >&5
f73dda09 4686 eval "$as_ac_Header=no"
ccc6cda3 4687fi
f73dda09 4688rm -f conftest.err conftest.$ac_ext
ccc6cda3 4689fi
f73dda09
JA
4690echo "$as_me:4690: result: `eval echo '${'$as_ac_Header'}'`" >&5
4691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4692if test `eval echo '${'$as_ac_Header'}'` = yes; then
4693 cat >>confdefs.h <<EOF
4694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ccc6cda3 4695EOF
f73dda09 4696
ccc6cda3
JA
4697fi
4698done
4699
f73dda09
JA
4700# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4701# for constant arguments. Useless!
4702echo "$as_me:4702: checking for working alloca.h" >&5
4703echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4704if test "${ac_cv_working_alloca_h+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 4706else
f73dda09
JA
4707 cat >conftest.$ac_ext <<_ACEOF
4708#line 4708 "configure"
ccc6cda3 4709#include "confdefs.h"
f73dda09
JA
4710#include <alloca.h>
4711int
4712main ()
4713{
4714char *p = (char *) alloca (2 * sizeof (int));
4715 ;
4716 return 0;
4717}
4718_ACEOF
4719rm -f conftest.$ac_objext conftest$ac_exeext
4720if { (eval echo "$as_me:4720: \"$ac_link\"") >&5
4721 (eval $ac_link) 2>&5
4722 ac_status=$?
4723 echo "$as_me:4723: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -s conftest$ac_exeext'
4726 { (eval echo "$as_me:4726: \"$ac_try\"") >&5
4727 (eval $ac_try) 2>&5
4728 ac_status=$?
4729 echo "$as_me:4729: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 ac_cv_working_alloca_h=yes
4732else
4733 echo "$as_me: failed program was:" >&5
4734cat conftest.$ac_ext >&5
4735ac_cv_working_alloca_h=no
4736fi
4737rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4738fi
4739echo "$as_me:4739: result: $ac_cv_working_alloca_h" >&5
4740echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4741if test $ac_cv_working_alloca_h = yes; then
4742
4743cat >>confdefs.h <<\EOF
4744#define HAVE_ALLOCA_H 1
4745EOF
ccc6cda3 4746
f73dda09 4747fi
ccc6cda3 4748
f73dda09
JA
4749echo "$as_me:4749: checking for alloca" >&5
4750echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4751if test "${ac_cv_func_alloca_works+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754 cat >conftest.$ac_ext <<_ACEOF
4755#line 4755 "configure"
4756#include "confdefs.h"
4757#ifdef __GNUC__
4758# define alloca __builtin_alloca
ccc6cda3 4759#else
f73dda09
JA
4760# ifdef _MSC_VER
4761# include <malloc.h>
4762# define alloca _alloca
4763# else
4764# if HAVE_ALLOCA_H
4765# include <alloca.h>
4766# else
4767# ifdef _AIX
4768 #pragma alloca
4769# else
4770# ifndef alloca /* predefined by HP cc +Olibcalls */
4771char *alloca ();
4772# endif
4773# endif
4774# endif
4775# endif
ccc6cda3
JA
4776#endif
4777
f73dda09
JA
4778int
4779main ()
4780{
4781char *p = (char *) alloca (1);
4782 ;
4783 return 0;
4784}
4785_ACEOF
4786rm -f conftest.$ac_objext conftest$ac_exeext
4787if { (eval echo "$as_me:4787: \"$ac_link\"") >&5
4788 (eval $ac_link) 2>&5
4789 ac_status=$?
4790 echo "$as_me:4790: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try='test -s conftest$ac_exeext'
4793 { (eval echo "$as_me:4793: \"$ac_try\"") >&5
4794 (eval $ac_try) 2>&5
4795 ac_status=$?
4796 echo "$as_me:4796: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4798 ac_cv_func_alloca_works=yes
ccc6cda3 4799else
f73dda09
JA
4800 echo "$as_me: failed program was:" >&5
4801cat conftest.$ac_ext >&5
4802ac_cv_func_alloca_works=no
ccc6cda3 4803fi
f73dda09 4804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ccc6cda3 4805fi
f73dda09
JA
4806echo "$as_me:4806: result: $ac_cv_func_alloca_works" >&5
4807echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4808
4809if test $ac_cv_func_alloca_works = yes; then
ccc6cda3 4810
f73dda09
JA
4811cat >>confdefs.h <<\EOF
4812#define HAVE_ALLOCA 1
ccc6cda3 4813EOF
f73dda09 4814
ccc6cda3 4815else
f73dda09
JA
4816 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4817# that cause trouble. Some versions do not even contain alloca or
4818# contain a buggy version. If you still want to use their alloca,
4819# use ar to extract alloca.o from them instead of compiling alloca.c.
ccc6cda3 4820
f73dda09 4821ALLOCA=alloca.$ac_objext
ccc6cda3 4822
f73dda09
JA
4823cat >>confdefs.h <<\EOF
4824#define C_ALLOCA 1
4825EOF
4826
4827echo "$as_me:4827: checking whether \`alloca.c' needs Cray hooks" >&5
4828echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4829if test "${ac_cv_os_cray+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 4831else
f73dda09
JA
4832 cat >conftest.$ac_ext <<_ACEOF
4833#line 4833 "configure"
ccc6cda3 4834#include "confdefs.h"
f73dda09
JA
4835#if defined(CRAY) && ! defined(CRAY2)
4836webecray
4837#else
4838wenotbecray
4839#endif
ccc6cda3 4840
f73dda09
JA
4841_ACEOF
4842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4843 egrep "webecray" >/dev/null 2>&1; then
4844 ac_cv_os_cray=yes
ccc6cda3 4845else
f73dda09 4846 ac_cv_os_cray=no
ccc6cda3
JA
4847fi
4848rm -f conftest*
ccc6cda3
JA
4849
4850fi
f73dda09
JA
4851echo "$as_me:4851: result: $ac_cv_os_cray" >&5
4852echo "${ECHO_T}$ac_cv_os_cray" >&6
4853if test $ac_cv_os_cray = yes; then
4854 for ac_func in _getb67 GETB67 getb67; do
4855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4856echo "$as_me:4856: checking for $ac_func" >&5
4857echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4858if eval "test \"\${$as_ac_var+set}\" = set"; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 4860else
f73dda09
JA
4861 cat >conftest.$ac_ext <<_ACEOF
4862#line 4862 "configure"
ccc6cda3
JA
4863#include "confdefs.h"
4864/* System header to define __stub macros and hopefully few prototypes,
f73dda09 4865 which can conflict with char $ac_func (); below. */
ccc6cda3
JA
4866#include <assert.h>
4867/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
4868#ifdef __cplusplus
4869extern "C"
4870#endif
ccc6cda3 4871/* We use char because int might match the return type of a gcc2
f73dda09
JA
4872 builtin and then its argument prototype would still apply. */
4873char $ac_func ();
4874char (*f) ();
ccc6cda3 4875
f73dda09
JA
4876int
4877main ()
4878{
ccc6cda3
JA
4879/* The GNU C library defines this for functions which it implements
4880 to always fail with ENOSYS. Some functions are actually named
4881 something starting with __ and the normal name is an alias. */
4882#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4883choke me
4884#else
f73dda09 4885f = $ac_func;
ccc6cda3
JA
4886#endif
4887
f73dda09
JA
4888 ;
4889 return 0;
4890}
4891_ACEOF
4892rm -f conftest.$ac_objext conftest$ac_exeext
4893if { (eval echo "$as_me:4893: \"$ac_link\"") >&5
4894 (eval $ac_link) 2>&5
4895 ac_status=$?
4896 echo "$as_me:4896: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try='test -s conftest$ac_exeext'
4899 { (eval echo "$as_me:4899: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:4902: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 eval "$as_ac_var=yes"
4905else
4906 echo "$as_me: failed program was:" >&5
4907cat conftest.$ac_ext >&5
4908eval "$as_ac_var=no"
4909fi
4910rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4911fi
4912echo "$as_me:4912: result: `eval echo '${'$as_ac_var'}'`" >&5
4913echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4914if test `eval echo '${'$as_ac_var'}'` = yes; then
4915
4916cat >>confdefs.h <<EOF
4917#define CRAY_STACKSEG_END $ac_func
ccc6cda3 4918EOF
ccc6cda3 4919
f73dda09 4920 break
ccc6cda3 4921fi
ccc6cda3 4922
f73dda09 4923 done
ccc6cda3
JA
4924fi
4925
f73dda09
JA
4926echo "$as_me:4926: checking stack direction for C alloca" >&5
4927echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4928if test "${ac_cv_c_stack_direction+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 4930else
f73dda09
JA
4931 if test "$cross_compiling" = yes; then
4932 ac_cv_c_stack_direction=0
4933else
4934 cat >conftest.$ac_ext <<_ACEOF
4935#line 4935 "configure"
ccc6cda3 4936#include "confdefs.h"
f73dda09
JA
4937int
4938find_stack_direction ()
4939{
4940 static char *addr = 0;
4941 auto char dummy;
4942 if (addr == 0)
4943 {
4944 addr = &dummy;
4945 return find_stack_direction ();
4946 }
4947 else
4948 return (&dummy > addr) ? 1 : -1;
4949}
ccc6cda3 4950
f73dda09
JA
4951int
4952main ()
4953{
4954 exit (find_stack_direction () < 0);
4955}
4956_ACEOF
4957rm -f conftest$ac_exeext
4958if { (eval echo "$as_me:4958: \"$ac_link\"") >&5
4959 (eval $ac_link) 2>&5
4960 ac_status=$?
4961 echo "$as_me:4961: \$? = $ac_status" >&5
4962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4963 { (eval echo "$as_me:4963: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:4966: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 ac_cv_c_stack_direction=1
ccc6cda3 4969else
f73dda09
JA
4970 echo "$as_me: program exited with status $ac_status" >&5
4971echo "$as_me: failed program was:" >&5
4972cat conftest.$ac_ext >&5
4973ac_cv_c_stack_direction=-1
ccc6cda3 4974fi
f73dda09 4975rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 4976fi
f73dda09
JA
4977fi
4978echo "$as_me:4978: result: $ac_cv_c_stack_direction" >&5
4979echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
ccc6cda3 4980
f73dda09
JA
4981cat >>confdefs.h <<EOF
4982#define STACK_DIRECTION $ac_cv_c_stack_direction
4983EOF
ccc6cda3 4984
ccc6cda3
JA
4985fi
4986
f73dda09
JA
4987echo "$as_me:4987: checking whether getpgrp takes no argument" >&5
4988echo $ECHO_N "checking whether getpgrp takes no argument... $ECHO_C" >&6
4989if test "${ac_cv_func_getpgrp_void+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 4991else
f73dda09
JA
4992 # Use it with a single arg.
4993cat >conftest.$ac_ext <<_ACEOF
4994#line 4994 "configure"
ccc6cda3 4995#include "confdefs.h"
f73dda09
JA
4996$ac_includes_default
4997int
4998main ()
4999{
5000getpgrp (0);
5001 ;
5002 return 0;
5003}
5004_ACEOF
5005rm -f conftest.$ac_objext
5006if { (eval echo "$as_me:5006: \"$ac_compile\"") >&5
5007 (eval $ac_compile) 2>&5
5008 ac_status=$?
5009 echo "$as_me:5009: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -s conftest.$ac_objext'
5012 { (eval echo "$as_me:5012: \"$ac_try\"") >&5
5013 (eval $ac_try) 2>&5
5014 ac_status=$?
5015 echo "$as_me:5015: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 ac_func_getpgrp_1=yes
5018else
5019 echo "$as_me: failed program was:" >&5
5020cat conftest.$ac_ext >&5
5021ac_func_getpgrp_1=no
5022fi
5023rm -f conftest.$ac_objext conftest.$ac_ext
5024# Use it with no arg.
5025cat >conftest.$ac_ext <<_ACEOF
5026#line 5026 "configure"
5027#include "confdefs.h"
5028$ac_includes_default
5029int
5030main ()
5031{
5032getpgrp ();
5033 ;
5034 return 0;
5035}
5036_ACEOF
5037rm -f conftest.$ac_objext
5038if { (eval echo "$as_me:5038: \"$ac_compile\"") >&5
5039 (eval $ac_compile) 2>&5
5040 ac_status=$?
5041 echo "$as_me:5041: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:5044: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:5047: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 ac_func_getpgrp_0=yes
5050else
5051 echo "$as_me: failed program was:" >&5
5052cat conftest.$ac_ext >&5
5053ac_func_getpgrp_0=no
5054fi
5055rm -f conftest.$ac_objext conftest.$ac_ext
5056# If both static checks agree, we are done.
5057case $ac_func_getpgrp_0:$ac_func_getpgrp_1 in
5058 yes:no) ac_cv_func_getpgrp_void=yes;;
5059 no:yes) ac_cv_func_getpgrp_void=false;;
5060 *) if test "$cross_compiling" = yes; then
5061 { { echo "$as_me:5061: error: cannot check getpgrp if cross compiling" >&5
5062echo "$as_me: error: cannot check getpgrp if cross compiling" >&2;}
5063 { (exit 1); exit 1; }; }
5064else
5065 cat >conftest.$ac_ext <<_ACEOF
5066#line 5066 "configure"
5067#include "confdefs.h"
5068$ac_includes_default
ccc6cda3 5069
f73dda09
JA
5070/*
5071 * If this system has a BSD-style getpgrp(),
5072 * which takes a pid argument, exit unsuccessfully.
5073 *
5074 * Snarfed from Chet Ramey's bash pgrp.c test program
5075 */
ccc6cda3 5076
f73dda09
JA
5077int pid;
5078int pg1, pg2, pg3, pg4;
5079int ng, np, s, child;
ccc6cda3 5080
f73dda09
JA
5081int
5082main ()
5083{
5084 pid = getpid ();
5085 pg1 = getpgrp (0);
5086 pg2 = getpgrp ();
5087 pg3 = getpgrp (pid);
5088 pg4 = getpgrp (1);
5089
5090 /* If all of these values are the same, it's pretty sure that we're
5091 on a system that ignores getpgrp's first argument. */
5092 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
5093 exit (0);
5094
5095 child = fork ();
5096 if (child < 0)
5097 exit(1);
5098 else if (child == 0)
5099 {
5100 np = getpid ();
5101 /* If this is Sys V, this will not work; pgrp will be set to np
5102 because setpgrp just changes a pgrp to be the same as the
5103 pid. */
5104 setpgrp (np, pg1);
5105 ng = getpgrp (0); /* Same result for Sys V and BSD */
5106 if (ng == pg1)
5107 exit (1);
5108 else
5109 exit (0);
5110 }
5111 else
5112 {
5113 wait (&s);
5114 exit (s>>8);
5115 }
5116}
5117
5118_ACEOF
5119rm -f conftest$ac_exeext
5120if { (eval echo "$as_me:5120: \"$ac_link\"") >&5
5121 (eval $ac_link) 2>&5
5122 ac_status=$?
5123 echo "$as_me:5123: \$? = $ac_status" >&5
5124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5125 { (eval echo "$as_me:5125: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:5128: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_func_getpgrp_void=yes
ccc6cda3 5131else
f73dda09
JA
5132 echo "$as_me: program exited with status $ac_status" >&5
5133echo "$as_me: failed program was:" >&5
5134cat conftest.$ac_ext >&5
5135ac_cv_func_getpgrp_void=no
ccc6cda3 5136fi
f73dda09
JA
5137rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5138fi;;
5139esac # $ac_func_getpgrp_0:$ac_func_getpgrp_1
5140
ccc6cda3 5141fi
f73dda09
JA
5142echo "$as_me:5142: result: $ac_cv_func_getpgrp_void" >&5
5143echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
5144if test $ac_cv_func_getpgrp_void = yes; then
ccc6cda3 5145
f73dda09
JA
5146cat >>confdefs.h <<\EOF
5147#define GETPGRP_VOID 1
ccc6cda3 5148EOF
ccc6cda3 5149
cce855bc 5150fi
ccc6cda3 5151
f73dda09
JA
5152echo "$as_me:5152: checking whether setvbuf arguments are reversed" >&5
5153echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
5154if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5156else
f73dda09
JA
5157 if test "$cross_compiling" = yes; then
5158 { { echo "$as_me:5158: error: cannot run test program while cross compiling" >&5
5159echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5160 { (exit 1); exit 1; }; }
5161else
5162 cat >conftest.$ac_ext <<_ACEOF
5163#line 5163 "configure"
ccc6cda3 5164#include "confdefs.h"
f73dda09
JA
5165#include <stdio.h>
5166/* If setvbuf has the reversed format, exit 0. */
5167int
5168main ()
5169{
5170 /* This call has the arguments reversed.
5171 A reversed system may check and see that the address of main
5172 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
5173 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
5174 exit(1);
5175 putc('\r', stdout);
5176 exit(0); /* Non-reversed systems segv here. */
5177}
5178_ACEOF
5179rm -f conftest$ac_exeext
5180if { (eval echo "$as_me:5180: \"$ac_link\"") >&5
5181 (eval $ac_link) 2>&5
5182 ac_status=$?
5183 echo "$as_me:5183: \$? = $ac_status" >&5
5184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5185 { (eval echo "$as_me:5185: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:5188: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 ac_cv_func_setvbuf_reversed=yes
ccc6cda3 5191else
f73dda09
JA
5192 echo "$as_me: program exited with status $ac_status" >&5
5193echo "$as_me: failed program was:" >&5
5194cat conftest.$ac_ext >&5
5195ac_cv_func_setvbuf_reversed=no
ccc6cda3 5196fi
f73dda09
JA
5197rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5198fi
5199rm -f core core.* *.core
ccc6cda3 5200fi
f73dda09
JA
5201echo "$as_me:5201: result: $ac_cv_func_setvbuf_reversed" >&5
5202echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
5203if test $ac_cv_func_setvbuf_reversed = yes; then
ccc6cda3 5204
f73dda09
JA
5205cat >>confdefs.h <<\EOF
5206#define SETVBUF_REVERSED 1
ccc6cda3
JA
5207EOF
5208
5209fi
5210
f73dda09 5211for ac_func in vprintf
ccc6cda3 5212do
f73dda09
JA
5213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5214echo "$as_me:5214: checking for $ac_func" >&5
5215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5216if eval "test \"\${$as_ac_var+set}\" = set"; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5218else
f73dda09
JA
5219 cat >conftest.$ac_ext <<_ACEOF
5220#line 5220 "configure"
ccc6cda3 5221#include "confdefs.h"
f73dda09
JA
5222/* System header to define __stub macros and hopefully few prototypes,
5223 which can conflict with char $ac_func (); below. */
5224#include <assert.h>
5225/* Override any gcc2 internal prototype to avoid an error. */
5226#ifdef __cplusplus
5227extern "C"
5228#endif
5229/* We use char because int might match the return type of a gcc2
5230 builtin and then its argument prototype would still apply. */
5231char $ac_func ();
5232char (*f) ();
5233
5234int
5235main ()
5236{
5237/* The GNU C library defines this for functions which it implements
5238 to always fail with ENOSYS. Some functions are actually named
5239 something starting with __ and the normal name is an alias. */
5240#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5241choke me
5242#else
5243f = $ac_func;
5244#endif
5245
5246 ;
5247 return 0;
5248}
5249_ACEOF
5250rm -f conftest.$ac_objext conftest$ac_exeext
5251if { (eval echo "$as_me:5251: \"$ac_link\"") >&5
5252 (eval $ac_link) 2>&5
5253 ac_status=$?
5254 echo "$as_me:5254: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try='test -s conftest$ac_exeext'
5257 { (eval echo "$as_me:5257: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:5260: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 eval "$as_ac_var=yes"
5263else
5264 echo "$as_me: failed program was:" >&5
5265cat conftest.$ac_ext >&5
5266eval "$as_ac_var=no"
5267fi
5268rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5269fi
5270echo "$as_me:5270: result: `eval echo '${'$as_ac_var'}'`" >&5
5271echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5272if test `eval echo '${'$as_ac_var'}'` = yes; then
5273 cat >>confdefs.h <<EOF
5274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5275EOF
5276
5277echo "$as_me:5277: checking for _doprnt" >&5
5278echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5279if test "${ac_cv_func__doprnt+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281else
5282 cat >conftest.$ac_ext <<_ACEOF
5283#line 5283 "configure"
ccc6cda3 5284#include "confdefs.h"
f73dda09
JA
5285/* System header to define __stub macros and hopefully few prototypes,
5286 which can conflict with char _doprnt (); below. */
5287#include <assert.h>
ccc6cda3 5288/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
5289#ifdef __cplusplus
5290extern "C"
5291#endif
ccc6cda3 5292/* We use char because int might match the return type of a gcc2
f73dda09
JA
5293 builtin and then its argument prototype would still apply. */
5294char _doprnt ();
5295char (*f) ();
ccc6cda3 5296
f73dda09
JA
5297int
5298main ()
5299{
5300/* The GNU C library defines this for functions which it implements
5301 to always fail with ENOSYS. Some functions are actually named
5302 something starting with __ and the normal name is an alias. */
5303#if defined (__stub__doprnt) || defined (__stub____doprnt)
5304choke me
5305#else
5306f = _doprnt;
5307#endif
5308
5309 ;
5310 return 0;
5311}
5312_ACEOF
5313rm -f conftest.$ac_objext conftest$ac_exeext
5314if { (eval echo "$as_me:5314: \"$ac_link\"") >&5
5315 (eval $ac_link) 2>&5
5316 ac_status=$?
5317 echo "$as_me:5317: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -s conftest$ac_exeext'
5320 { (eval echo "$as_me:5320: \"$ac_try\"") >&5
5321 (eval $ac_try) 2>&5
5322 ac_status=$?
5323 echo "$as_me:5323: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_cv_func__doprnt=yes
5326else
5327 echo "$as_me: failed program was:" >&5
5328cat conftest.$ac_ext >&5
5329ac_cv_func__doprnt=no
5330fi
5331rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5332fi
5333echo "$as_me:5333: result: $ac_cv_func__doprnt" >&5
5334echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5335if test $ac_cv_func__doprnt = yes; then
5336
5337cat >>confdefs.h <<\EOF
5338#define HAVE_DOPRNT 1
ccc6cda3 5339EOF
ccc6cda3
JA
5340
5341fi
f73dda09 5342
ccc6cda3 5343fi
f73dda09 5344done
ccc6cda3 5345
f73dda09
JA
5346echo "$as_me:5346: checking for working strcoll" >&5
5347echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
5348if test "${ac_cv_func_strcoll_works+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5350else
f73dda09
JA
5351 if test "$cross_compiling" = yes; then
5352 ac_cv_func_strcoll_works=no
ccc6cda3 5353else
f73dda09
JA
5354 cat >conftest.$ac_ext <<_ACEOF
5355#line 5355 "configure"
ccc6cda3 5356#include "confdefs.h"
f73dda09
JA
5357$ac_includes_default
5358int
5359main ()
5360{
5361exit (strcoll ("abc", "def") >= 0 ||
5362 strcoll ("ABC", "DEF") >= 0 ||
5363 strcoll ("123", "456") >= 0)
5364 ;
5365 return 0;
5366}
5367_ACEOF
5368rm -f conftest$ac_exeext
5369if { (eval echo "$as_me:5369: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>&5
5371 ac_status=$?
5372 echo "$as_me:5372: \$? = $ac_status" >&5
5373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5374 { (eval echo "$as_me:5374: \"$ac_try\"") >&5
5375 (eval $ac_try) 2>&5
5376 ac_status=$?
5377 echo "$as_me:5377: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_func_strcoll_works=yes
ccc6cda3 5380else
f73dda09
JA
5381 echo "$as_me: program exited with status $ac_status" >&5
5382echo "$as_me: failed program was:" >&5
5383cat conftest.$ac_ext >&5
5384ac_cv_func_strcoll_works=no
ccc6cda3 5385fi
f73dda09 5386rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 5387fi
f73dda09
JA
5388fi
5389echo "$as_me:5389: result: $ac_cv_func_strcoll_works" >&5
5390echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
5391if test $ac_cv_func_strcoll_works = yes; then
5392
5393cat >>confdefs.h <<\EOF
5394#define HAVE_STRCOLL 1
5395EOF
5396
ccc6cda3
JA
5397fi
5398
f73dda09
JA
5399if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
5400 MALLOC_TARGET=alloca
5401 MALLOC_SRC=alloca.c
5402
5403 MALLOC_LIB='-lmalloc'
5404 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
5405 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
5406 MALLOC_DEP='$(MALLOC_LIBRARY)'
ccc6cda3
JA
5407fi
5408
f73dda09
JA
5409if test "$ac_cv_func_vprintf" = no; then
5410 echo "$as_me:5410: checking for declaration of vprintf in stdio.h" >&5
5411echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
5412 cat >conftest.$ac_ext <<_ACEOF
5413#line 5413 "configure"
ccc6cda3 5414#include "confdefs.h"
f73dda09
JA
5415#include <stdio.h>
5416
5417_ACEOF
5418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5419 egrep "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
5420 ac_cv_func_vprintf=yes
ccc6cda3
JA
5421fi
5422rm -f conftest*
ccc6cda3 5423
f73dda09
JA
5424 echo "$as_me:5424: result: $ac_cv_func_vprintf" >&5
5425echo "${ECHO_T}$ac_cv_func_vprintf" >&6
5426 if test $ac_cv_func_vprintf = yes; then
5427 cat >>confdefs.h <<\EOF
5428#define HAVE_VPRINTF 1
ccc6cda3
JA
5429EOF
5430
f73dda09 5431 fi
ccc6cda3
JA
5432fi
5433
f73dda09
JA
5434if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
5435 LIBOBJS="$LIBOBJS vprint.$ac_objext"
5436fi
ccc6cda3 5437
f73dda09
JA
5438echo "$as_me:5438: checking return type of signal handlers" >&5
5439echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5440if test "${ac_cv_type_signal+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5442else
f73dda09
JA
5443 cat >conftest.$ac_ext <<_ACEOF
5444#line 5444 "configure"
ccc6cda3 5445#include "confdefs.h"
f73dda09
JA
5446#include <sys/types.h>
5447#include <signal.h>
5448#ifdef signal
5449# undef signal
5450#endif
5451#ifdef __cplusplus
5452extern "C" void (*signal (int, void (*)(int)))(int);
5453#else
5454void (*signal ()) ();
5455#endif
5456
5457int
5458main ()
5459{
5460int i;
5461 ;
5462 return 0;
5463}
5464_ACEOF
5465rm -f conftest.$ac_objext
5466if { (eval echo "$as_me:5466: \"$ac_compile\"") >&5
5467 (eval $ac_compile) 2>&5
5468 ac_status=$?
5469 echo "$as_me:5469: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -s conftest.$ac_objext'
5472 { (eval echo "$as_me:5472: \"$ac_try\"") >&5
5473 (eval $ac_try) 2>&5
5474 ac_status=$?
5475 echo "$as_me:5475: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 ac_cv_type_signal=void
ccc6cda3 5478else
f73dda09
JA
5479 echo "$as_me: failed program was:" >&5
5480cat conftest.$ac_ext >&5
5481ac_cv_type_signal=int
ccc6cda3 5482fi
f73dda09 5483rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3 5484fi
f73dda09
JA
5485echo "$as_me:5485: result: $ac_cv_type_signal" >&5
5486echo "${ECHO_T}$ac_cv_type_signal" >&6
5487
5488cat >>confdefs.h <<EOF
5489#define RETSIGTYPE $ac_cv_type_signal
ccc6cda3 5490EOF
ccc6cda3 5491
f73dda09
JA
5492echo "$as_me:5492: checking for __setostype" >&5
5493echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
5494if test "${ac_cv_func___setostype+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5496else
f73dda09
JA
5497 cat >conftest.$ac_ext <<_ACEOF
5498#line 5498 "configure"
ccc6cda3 5499#include "confdefs.h"
f73dda09
JA
5500/* System header to define __stub macros and hopefully few prototypes,
5501 which can conflict with char __setostype (); below. */
5502#include <assert.h>
5503/* Override any gcc2 internal prototype to avoid an error. */
5504#ifdef __cplusplus
5505extern "C"
5506#endif
5507/* We use char because int might match the return type of a gcc2
5508 builtin and then its argument prototype would still apply. */
5509char __setostype ();
5510char (*f) ();
5511
5512int
5513main ()
5514{
5515/* The GNU C library defines this for functions which it implements
5516 to always fail with ENOSYS. Some functions are actually named
5517 something starting with __ and the normal name is an alias. */
5518#if defined (__stub___setostype) || defined (__stub_____setostype)
5519choke me
5520#else
5521f = __setostype;
5522#endif
5523
5524 ;
5525 return 0;
5526}
5527_ACEOF
5528rm -f conftest.$ac_objext conftest$ac_exeext
5529if { (eval echo "$as_me:5529: \"$ac_link\"") >&5
5530 (eval $ac_link) 2>&5
5531 ac_status=$?
5532 echo "$as_me:5532: \$? = $ac_status" >&5
5533 (exit $ac_status); } &&
5534 { ac_try='test -s conftest$ac_exeext'
5535 { (eval echo "$as_me:5535: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:5538: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 ac_cv_func___setostype=yes
5541else
5542 echo "$as_me: failed program was:" >&5
5543cat conftest.$ac_ext >&5
5544ac_cv_func___setostype=no
5545fi
5546rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5547fi
5548echo "$as_me:5548: result: $ac_cv_func___setostype" >&5
5549echo "${ECHO_T}$ac_cv_func___setostype" >&6
5550if test $ac_cv_func___setostype = yes; then
5551 cat >>confdefs.h <<\EOF
5552#define HAVE_SETOSTYPE 1
5553EOF
5554
5555fi
5556
5557echo "$as_me:5557: checking for wait3" >&5
5558echo $ECHO_N "checking for wait3... $ECHO_C" >&6
5559if test "${ac_cv_func_wait3+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562 cat >conftest.$ac_ext <<_ACEOF
5563#line 5563 "configure"
5564#include "confdefs.h"
5565/* System header to define __stub macros and hopefully few prototypes,
5566 which can conflict with char wait3 (); below. */
5567#include <assert.h>
5568/* Override any gcc2 internal prototype to avoid an error. */
5569#ifdef __cplusplus
5570extern "C"
5571#endif
5572/* We use char because int might match the return type of a gcc2
5573 builtin and then its argument prototype would still apply. */
5574char wait3 ();
5575char (*f) ();
5576
5577int
5578main ()
5579{
5580/* The GNU C library defines this for functions which it implements
5581 to always fail with ENOSYS. Some functions are actually named
5582 something starting with __ and the normal name is an alias. */
5583#if defined (__stub_wait3) || defined (__stub___wait3)
5584choke me
5585#else
5586f = wait3;
5587#endif
5588
5589 ;
5590 return 0;
5591}
5592_ACEOF
5593rm -f conftest.$ac_objext conftest$ac_exeext
5594if { (eval echo "$as_me:5594: \"$ac_link\"") >&5
5595 (eval $ac_link) 2>&5
5596 ac_status=$?
5597 echo "$as_me:5597: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -s conftest$ac_exeext'
5600 { (eval echo "$as_me:5600: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:5603: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_func_wait3=yes
5606else
5607 echo "$as_me: failed program was:" >&5
5608cat conftest.$ac_ext >&5
5609ac_cv_func_wait3=no
5610fi
5611rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5612fi
5613echo "$as_me:5613: result: $ac_cv_func_wait3" >&5
5614echo "${ECHO_T}$ac_cv_func_wait3" >&6
5615if test $ac_cv_func_wait3 = yes; then
5616 cat >>confdefs.h <<\EOF
5617#define HAVE_WAIT3 1
5618EOF
5619
5620fi
5621
5622echo "$as_me:5622: checking for mkfifo" >&5
5623echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
5624if test "${ac_cv_func_mkfifo+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626else
5627 cat >conftest.$ac_ext <<_ACEOF
5628#line 5628 "configure"
5629#include "confdefs.h"
5630/* System header to define __stub macros and hopefully few prototypes,
5631 which can conflict with char mkfifo (); below. */
5632#include <assert.h>
5633/* Override any gcc2 internal prototype to avoid an error. */
5634#ifdef __cplusplus
5635extern "C"
5636#endif
5637/* We use char because int might match the return type of a gcc2
5638 builtin and then its argument prototype would still apply. */
5639char mkfifo ();
5640char (*f) ();
5641
5642int
5643main ()
5644{
5645/* The GNU C library defines this for functions which it implements
5646 to always fail with ENOSYS. Some functions are actually named
5647 something starting with __ and the normal name is an alias. */
5648#if defined (__stub_mkfifo) || defined (__stub___mkfifo)
5649choke me
5650#else
5651f = mkfifo;
5652#endif
5653
5654 ;
5655 return 0;
5656}
5657_ACEOF
5658rm -f conftest.$ac_objext conftest$ac_exeext
5659if { (eval echo "$as_me:5659: \"$ac_link\"") >&5
5660 (eval $ac_link) 2>&5
5661 ac_status=$?
5662 echo "$as_me:5662: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try='test -s conftest$ac_exeext'
5665 { (eval echo "$as_me:5665: \"$ac_try\"") >&5
5666 (eval $ac_try) 2>&5
5667 ac_status=$?
5668 echo "$as_me:5668: \$? = $ac_status" >&5
5669 (exit $ac_status); }; }; then
5670 ac_cv_func_mkfifo=yes
5671else
5672 echo "$as_me: failed program was:" >&5
5673cat conftest.$ac_ext >&5
5674ac_cv_func_mkfifo=no
5675fi
5676rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5677fi
5678echo "$as_me:5678: result: $ac_cv_func_mkfifo" >&5
5679echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
5680if test $ac_cv_func_mkfifo = yes; then
5681 cat >>confdefs.h <<\EOF
5682#define HAVE_MKFIFO 1
5683EOF
5684
5685else
5686 cat >>confdefs.h <<\EOF
5687#define MKFIFO_MISSING 1
5688EOF
5689
5690fi
5691
5692for ac_func in dup2 select getdtablesize getgroups gethostname \
5693 setdtablesize getpagesize killpg lstat getpeername sbrk \
5694 getrlimit getrusage gettimeofday waitpid tcgetpgrp \
5695 readlink
5696do
5697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5698echo "$as_me:5698: checking for $ac_func" >&5
5699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5700if eval "test \"\${$as_ac_var+set}\" = set"; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702else
5703 cat >conftest.$ac_ext <<_ACEOF
5704#line 5704 "configure"
5705#include "confdefs.h"
5706/* System header to define __stub macros and hopefully few prototypes,
5707 which can conflict with char $ac_func (); below. */
5708#include <assert.h>
5709/* Override any gcc2 internal prototype to avoid an error. */
5710#ifdef __cplusplus
5711extern "C"
5712#endif
5713/* We use char because int might match the return type of a gcc2
5714 builtin and then its argument prototype would still apply. */
5715char $ac_func ();
5716char (*f) ();
5717
5718int
5719main ()
5720{
5721/* The GNU C library defines this for functions which it implements
5722 to always fail with ENOSYS. Some functions are actually named
5723 something starting with __ and the normal name is an alias. */
5724#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5725choke me
5726#else
5727f = $ac_func;
5728#endif
5729
5730 ;
5731 return 0;
5732}
5733_ACEOF
5734rm -f conftest.$ac_objext conftest$ac_exeext
5735if { (eval echo "$as_me:5735: \"$ac_link\"") >&5
5736 (eval $ac_link) 2>&5
5737 ac_status=$?
5738 echo "$as_me:5738: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -s conftest$ac_exeext'
5741 { (eval echo "$as_me:5741: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:5744: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 eval "$as_ac_var=yes"
5747else
5748 echo "$as_me: failed program was:" >&5
5749cat conftest.$ac_ext >&5
5750eval "$as_ac_var=no"
5751fi
5752rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5753fi
5754echo "$as_me:5754: result: `eval echo '${'$as_ac_var'}'`" >&5
5755echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5756if test `eval echo '${'$as_ac_var'}'` = yes; then
5757 cat >>confdefs.h <<EOF
5758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5759EOF
5760
5761fi
5762done
5763
5764for ac_func in rename
5765do
5766as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5767echo "$as_me:5767: checking for $ac_func" >&5
5768echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5769if eval "test \"\${$as_ac_var+set}\" = set"; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772 cat >conftest.$ac_ext <<_ACEOF
5773#line 5773 "configure"
5774#include "confdefs.h"
5775/* System header to define __stub macros and hopefully few prototypes,
5776 which can conflict with char $ac_func (); below. */
5777#include <assert.h>
5778/* Override any gcc2 internal prototype to avoid an error. */
5779#ifdef __cplusplus
5780extern "C"
5781#endif
5782/* We use char because int might match the return type of a gcc2
5783 builtin and then its argument prototype would still apply. */
5784char $ac_func ();
5785char (*f) ();
5786
5787int
5788main ()
5789{
5790/* The GNU C library defines this for functions which it implements
5791 to always fail with ENOSYS. Some functions are actually named
5792 something starting with __ and the normal name is an alias. */
5793#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5794choke me
5795#else
5796f = $ac_func;
5797#endif
5798
5799 ;
5800 return 0;
5801}
5802_ACEOF
5803rm -f conftest.$ac_objext conftest$ac_exeext
5804if { (eval echo "$as_me:5804: \"$ac_link\"") >&5
5805 (eval $ac_link) 2>&5
5806 ac_status=$?
5807 echo "$as_me:5807: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -s conftest$ac_exeext'
5810 { (eval echo "$as_me:5810: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:5813: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 eval "$as_ac_var=yes"
5816else
5817 echo "$as_me: failed program was:" >&5
5818cat conftest.$ac_ext >&5
5819eval "$as_ac_var=no"
5820fi
5821rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5822fi
5823echo "$as_me:5823: result: `eval echo '${'$as_ac_var'}'`" >&5
5824echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5825if test `eval echo '${'$as_ac_var'}'` = yes; then
5826 cat >>confdefs.h <<EOF
5827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5828EOF
5829
5830else
5831 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5832fi
5833done
5834
5835for ac_func in bcopy bzero confstr sysconf pathconf setenv putenv \
5836 setlinebuf setvbuf setlocale strchr tcgetattr uname \
5837 ulimit tzset siginterrupt memmove ttyname times \
5838 getaddrinfo gethostbyname getservbyname inet_aton \
5839 vsnprintf snprintf vasprintf asprintf fnmatch
5840do
5841as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5842echo "$as_me:5842: checking for $ac_func" >&5
5843echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5844if eval "test \"\${$as_ac_var+set}\" = set"; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846else
5847 cat >conftest.$ac_ext <<_ACEOF
5848#line 5848 "configure"
5849#include "confdefs.h"
5850/* System header to define __stub macros and hopefully few prototypes,
5851 which can conflict with char $ac_func (); below. */
5852#include <assert.h>
5853/* Override any gcc2 internal prototype to avoid an error. */
5854#ifdef __cplusplus
5855extern "C"
5856#endif
5857/* We use char because int might match the return type of a gcc2
5858 builtin and then its argument prototype would still apply. */
5859char $ac_func ();
5860char (*f) ();
5861
5862int
5863main ()
5864{
5865/* The GNU C library defines this for functions which it implements
5866 to always fail with ENOSYS. Some functions are actually named
5867 something starting with __ and the normal name is an alias. */
5868#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5869choke me
5870#else
5871f = $ac_func;
5872#endif
5873
5874 ;
5875 return 0;
5876}
5877_ACEOF
5878rm -f conftest.$ac_objext conftest$ac_exeext
5879if { (eval echo "$as_me:5879: \"$ac_link\"") >&5
5880 (eval $ac_link) 2>&5
5881 ac_status=$?
5882 echo "$as_me:5882: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try='test -s conftest$ac_exeext'
5885 { (eval echo "$as_me:5885: \"$ac_try\"") >&5
5886 (eval $ac_try) 2>&5
5887 ac_status=$?
5888 echo "$as_me:5888: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5890 eval "$as_ac_var=yes"
5891else
5892 echo "$as_me: failed program was:" >&5
5893cat conftest.$ac_ext >&5
5894eval "$as_ac_var=no"
5895fi
5896rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5897fi
5898echo "$as_me:5898: result: `eval echo '${'$as_ac_var'}'`" >&5
5899echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5900if test `eval echo '${'$as_ac_var'}'` = yes; then
5901 cat >>confdefs.h <<EOF
5902#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5903EOF
5904
5905fi
5906done
5907
5908for ac_func in isascii isblank isgraph isprint isspace isxdigit
5909do
5910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5911echo "$as_me:5911: checking for $ac_func" >&5
5912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5913if eval "test \"\${$as_ac_var+set}\" = set"; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915else
5916 cat >conftest.$ac_ext <<_ACEOF
5917#line 5917 "configure"
5918#include "confdefs.h"
5919/* System header to define __stub macros and hopefully few prototypes,
5920 which can conflict with char $ac_func (); below. */
5921#include <assert.h>
5922/* Override any gcc2 internal prototype to avoid an error. */
5923#ifdef __cplusplus
5924extern "C"
5925#endif
5926/* We use char because int might match the return type of a gcc2
5927 builtin and then its argument prototype would still apply. */
5928char $ac_func ();
5929char (*f) ();
5930
5931int
5932main ()
5933{
5934/* The GNU C library defines this for functions which it implements
5935 to always fail with ENOSYS. Some functions are actually named
5936 something starting with __ and the normal name is an alias. */
5937#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5938choke me
5939#else
5940f = $ac_func;
5941#endif
5942
5943 ;
5944 return 0;
5945}
5946_ACEOF
5947rm -f conftest.$ac_objext conftest$ac_exeext
5948if { (eval echo "$as_me:5948: \"$ac_link\"") >&5
5949 (eval $ac_link) 2>&5
5950 ac_status=$?
5951 echo "$as_me:5951: \$? = $ac_status" >&5
5952 (exit $ac_status); } &&
5953 { ac_try='test -s conftest$ac_exeext'
5954 { (eval echo "$as_me:5954: \"$ac_try\"") >&5
5955 (eval $ac_try) 2>&5
5956 ac_status=$?
5957 echo "$as_me:5957: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 eval "$as_ac_var=yes"
5960else
5961 echo "$as_me: failed program was:" >&5
5962cat conftest.$ac_ext >&5
5963eval "$as_ac_var=no"
5964fi
5965rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5966fi
5967echo "$as_me:5967: result: `eval echo '${'$as_ac_var'}'`" >&5
5968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5969if test `eval echo '${'$as_ac_var'}'` = yes; then
5970 cat >>confdefs.h <<EOF
5971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5972EOF
5973
5974fi
5975done
5976
5977for ac_func in getcwd strcasecmp strerror strpbrk strtod
5978do
5979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5980echo "$as_me:5980: checking for $ac_func" >&5
5981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5982if eval "test \"\${$as_ac_var+set}\" = set"; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
5985 cat >conftest.$ac_ext <<_ACEOF
5986#line 5986 "configure"
5987#include "confdefs.h"
5988/* System header to define __stub macros and hopefully few prototypes,
5989 which can conflict with char $ac_func (); below. */
5990#include <assert.h>
5991/* Override any gcc2 internal prototype to avoid an error. */
5992#ifdef __cplusplus
5993extern "C"
5994#endif
5995/* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
5997char $ac_func ();
5998char (*f) ();
5999
6000int
6001main ()
6002{
6003/* The GNU C library defines this for functions which it implements
6004 to always fail with ENOSYS. Some functions are actually named
6005 something starting with __ and the normal name is an alias. */
6006#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6007choke me
6008#else
6009f = $ac_func;
6010#endif
6011
6012 ;
6013 return 0;
6014}
6015_ACEOF
6016rm -f conftest.$ac_objext conftest$ac_exeext
6017if { (eval echo "$as_me:6017: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>&5
6019 ac_status=$?
6020 echo "$as_me:6020: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -s conftest$ac_exeext'
6023 { (eval echo "$as_me:6023: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:6026: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 eval "$as_ac_var=yes"
6029else
6030 echo "$as_me: failed program was:" >&5
6031cat conftest.$ac_ext >&5
6032eval "$as_ac_var=no"
6033fi
6034rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6035fi
6036echo "$as_me:6036: result: `eval echo '${'$as_ac_var'}'`" >&5
6037echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6038if test `eval echo '${'$as_ac_var'}'` = yes; then
6039 cat >>confdefs.h <<EOF
6040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6041EOF
6042
6043else
6044 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6045fi
6046done
6047
6048for ac_func in strtol strtoul strtoll strtoull strtoimax strtoumax
6049do
6050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6051echo "$as_me:6051: checking for $ac_func" >&5
6052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6053if eval "test \"\${$as_ac_var+set}\" = set"; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055else
6056 cat >conftest.$ac_ext <<_ACEOF
6057#line 6057 "configure"
6058#include "confdefs.h"
6059/* System header to define __stub macros and hopefully few prototypes,
6060 which can conflict with char $ac_func (); below. */
6061#include <assert.h>
6062/* Override any gcc2 internal prototype to avoid an error. */
6063#ifdef __cplusplus
6064extern "C"
6065#endif
6066/* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6068char $ac_func ();
6069char (*f) ();
6070
6071int
6072main ()
6073{
6074/* The GNU C library defines this for functions which it implements
6075 to always fail with ENOSYS. Some functions are actually named
6076 something starting with __ and the normal name is an alias. */
6077#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6078choke me
6079#else
6080f = $ac_func;
6081#endif
6082
6083 ;
6084 return 0;
6085}
6086_ACEOF
6087rm -f conftest.$ac_objext conftest$ac_exeext
6088if { (eval echo "$as_me:6088: \"$ac_link\"") >&5
6089 (eval $ac_link) 2>&5
6090 ac_status=$?
6091 echo "$as_me:6091: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
6093 { ac_try='test -s conftest$ac_exeext'
6094 { (eval echo "$as_me:6094: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
6097 echo "$as_me:6097: \$? = $ac_status" >&5
6098 (exit $ac_status); }; }; then
6099 eval "$as_ac_var=yes"
6100else
6101 echo "$as_me: failed program was:" >&5
6102cat conftest.$ac_ext >&5
6103eval "$as_ac_var=no"
6104fi
6105rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6106fi
6107echo "$as_me:6107: result: `eval echo '${'$as_ac_var'}'`" >&5
6108echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6109if test `eval echo '${'$as_ac_var'}'` = yes; then
6110 cat >>confdefs.h <<EOF
6111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6112EOF
6113
6114else
6115 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6116fi
6117done
6118
6119echo "$as_me:6119: checking whether strtold is declared" >&5
6120echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
6121if test "${ac_cv_have_decl_strtold+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6123else
6124 cat >conftest.$ac_ext <<_ACEOF
6125#line 6125 "configure"
6126#include "confdefs.h"
6127$ac_includes_default
6128int
6129main ()
6130{
6131#ifndef strtold
6132 char *p = (char *) strtold;
6133#endif
6134
6135 ;
6136 return 0;
6137}
6138_ACEOF
6139rm -f conftest.$ac_objext
6140if { (eval echo "$as_me:6140: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>&5
6142 ac_status=$?
6143 echo "$as_me:6143: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -s conftest.$ac_objext'
6146 { (eval echo "$as_me:6146: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:6149: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_cv_have_decl_strtold=yes
6152else
6153 echo "$as_me: failed program was:" >&5
6154cat conftest.$ac_ext >&5
6155ac_cv_have_decl_strtold=no
6156fi
6157rm -f conftest.$ac_objext conftest.$ac_ext
6158fi
6159echo "$as_me:6159: result: $ac_cv_have_decl_strtold" >&5
6160echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
6161if test $ac_cv_have_decl_strtold = yes; then
6162
6163cat >>confdefs.h <<EOF
6164#define HAVE_DECL_STRTOLD 1
6165EOF
6166
6167else
6168 cat >>confdefs.h <<EOF
6169#define HAVE_DECL_STRTOLD 0
6170EOF
6171
6172fi
6173
6174echo "$as_me:6174: checking whether confstr is declared" >&5
6175echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
6176if test "${ac_cv_have_decl_confstr+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178else
6179 cat >conftest.$ac_ext <<_ACEOF
6180#line 6180 "configure"
6181#include "confdefs.h"
6182$ac_includes_default
6183int
6184main ()
6185{
6186#ifndef confstr
6187 char *p = (char *) confstr;
6188#endif
6189
6190 ;
6191 return 0;
6192}
6193_ACEOF
6194rm -f conftest.$ac_objext
6195if { (eval echo "$as_me:6195: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>&5
6197 ac_status=$?
6198 echo "$as_me:6198: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:6201: \"$ac_try\"") >&5
6202 (eval $ac_try) 2>&5
6203 ac_status=$?
6204 echo "$as_me:6204: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 ac_cv_have_decl_confstr=yes
6207else
6208 echo "$as_me: failed program was:" >&5
6209cat conftest.$ac_ext >&5
6210ac_cv_have_decl_confstr=no
6211fi
6212rm -f conftest.$ac_objext conftest.$ac_ext
6213fi
6214echo "$as_me:6214: result: $ac_cv_have_decl_confstr" >&5
6215echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
6216if test $ac_cv_have_decl_confstr = yes; then
6217
6218cat >>confdefs.h <<EOF
6219#define HAVE_DECL_CONFSTR 1
6220EOF
6221
6222else
6223 cat >>confdefs.h <<EOF
6224#define HAVE_DECL_CONFSTR 0
6225EOF
6226
6227fi
6228
6229echo "$as_me:6229: checking whether sbrk is declared" >&5
6230echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
6231if test "${ac_cv_have_decl_sbrk+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233else
6234 cat >conftest.$ac_ext <<_ACEOF
6235#line 6235 "configure"
6236#include "confdefs.h"
6237$ac_includes_default
6238int
6239main ()
6240{
6241#ifndef sbrk
6242 char *p = (char *) sbrk;
6243#endif
6244
6245 ;
6246 return 0;
6247}
6248_ACEOF
6249rm -f conftest.$ac_objext
6250if { (eval echo "$as_me:6250: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>&5
6252 ac_status=$?
6253 echo "$as_me:6253: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -s conftest.$ac_objext'
6256 { (eval echo "$as_me:6256: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:6259: \$? = $ac_status" >&5
6260 (exit $ac_status); }; }; then
6261 ac_cv_have_decl_sbrk=yes
6262else
6263 echo "$as_me: failed program was:" >&5
6264cat conftest.$ac_ext >&5
6265ac_cv_have_decl_sbrk=no
6266fi
6267rm -f conftest.$ac_objext conftest.$ac_ext
6268fi
6269echo "$as_me:6269: result: $ac_cv_have_decl_sbrk" >&5
6270echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
6271if test $ac_cv_have_decl_sbrk = yes; then
6272
6273cat >>confdefs.h <<EOF
6274#define HAVE_DECL_SBRK 1
6275EOF
6276
6277else
6278 cat >>confdefs.h <<EOF
6279#define HAVE_DECL_SBRK 0
6280EOF
6281
6282fi
6283
6284echo "$as_me:6284: checking whether printf is declared" >&5
6285echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
6286if test "${ac_cv_have_decl_printf+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6288else
6289 cat >conftest.$ac_ext <<_ACEOF
6290#line 6290 "configure"
6291#include "confdefs.h"
6292$ac_includes_default
6293int
6294main ()
6295{
6296#ifndef printf
6297 char *p = (char *) printf;
6298#endif
6299
6300 ;
6301 return 0;
6302}
6303_ACEOF
6304rm -f conftest.$ac_objext
6305if { (eval echo "$as_me:6305: \"$ac_compile\"") >&5
6306 (eval $ac_compile) 2>&5
6307 ac_status=$?
6308 echo "$as_me:6308: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try='test -s conftest.$ac_objext'
6311 { (eval echo "$as_me:6311: \"$ac_try\"") >&5
6312 (eval $ac_try) 2>&5
6313 ac_status=$?
6314 echo "$as_me:6314: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6316 ac_cv_have_decl_printf=yes
6317else
6318 echo "$as_me: failed program was:" >&5
6319cat conftest.$ac_ext >&5
6320ac_cv_have_decl_printf=no
6321fi
6322rm -f conftest.$ac_objext conftest.$ac_ext
6323fi
6324echo "$as_me:6324: result: $ac_cv_have_decl_printf" >&5
6325echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
6326if test $ac_cv_have_decl_printf = yes; then
6327
6328cat >>confdefs.h <<EOF
6329#define HAVE_DECL_PRINTF 1
6330EOF
6331
6332else
6333 cat >>confdefs.h <<EOF
6334#define HAVE_DECL_PRINTF 0
6335EOF
6336
6337fi
6338
6339echo "$as_me:6339: checking whether strsignal is declared" >&5
6340echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
6341if test "${ac_cv_have_decl_strsignal+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
6344 cat >conftest.$ac_ext <<_ACEOF
6345#line 6345 "configure"
6346#include "confdefs.h"
6347$ac_includes_default
6348int
6349main ()
6350{
6351#ifndef strsignal
6352 char *p = (char *) strsignal;
6353#endif
6354
6355 ;
6356 return 0;
6357}
6358_ACEOF
6359rm -f conftest.$ac_objext
6360if { (eval echo "$as_me:6360: \"$ac_compile\"") >&5
6361 (eval $ac_compile) 2>&5
6362 ac_status=$?
6363 echo "$as_me:6363: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -s conftest.$ac_objext'
6366 { (eval echo "$as_me:6366: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:6369: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 ac_cv_have_decl_strsignal=yes
6372else
6373 echo "$as_me: failed program was:" >&5
6374cat conftest.$ac_ext >&5
6375ac_cv_have_decl_strsignal=no
6376fi
6377rm -f conftest.$ac_objext conftest.$ac_ext
6378fi
6379echo "$as_me:6379: result: $ac_cv_have_decl_strsignal" >&5
6380echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
6381if test $ac_cv_have_decl_strsignal = yes; then
6382
6383cat >>confdefs.h <<EOF
6384#define HAVE_DECL_STRSIGNAL 1
6385EOF
6386
6387else
6388 cat >>confdefs.h <<EOF
6389#define HAVE_DECL_STRSIGNAL 0
6390EOF
6391
6392fi
6393
6394echo "$as_me:6394: checking for declaration of strtoimax" >&5
6395echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
6396if test "${bash_cv_decl_strtoimax+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399 cat >conftest.$ac_ext <<_ACEOF
6400#line 6400 "configure"
6401#include "confdefs.h"
6402
6403#if STDC_HEADERS
6404# include <stdlib.h>
6405#endif
6406#if HAVE_INTTYPES_H
6407# include <inttypes.h>
6408#endif
6409
6410int
6411main ()
6412{
6413return !strtoimax;
6414 ;
6415 return 0;
6416}
6417_ACEOF
6418rm -f conftest.$ac_objext conftest$ac_exeext
6419if { (eval echo "$as_me:6419: \"$ac_link\"") >&5
6420 (eval $ac_link) 2>&5
6421 ac_status=$?
6422 echo "$as_me:6422: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try='test -s conftest$ac_exeext'
6425 { (eval echo "$as_me:6425: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:6428: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 bash_cv_decl_strtoimax=yes
6431else
6432 echo "$as_me: failed program was:" >&5
6433cat conftest.$ac_ext >&5
6434bash_cv_decl_strtoimax=no
6435fi
6436rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6437fi
6438echo "$as_me:6438: result: $bash_cv_decl_strtoimax" >&5
6439echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
6440bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6441if test $bash_cv_decl_strtoimax = yes; then
6442 cat >>confdefs.h <<EOF
6443#define $bash_tr_func 1
6444EOF
6445
6446else
6447 cat >>confdefs.h <<EOF
6448#define $bash_tr_func 0
6449EOF
6450
6451fi
6452
6453echo "$as_me:6453: checking for declaration of strtol" >&5
6454echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
6455if test "${bash_cv_decl_strtol+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457else
6458 cat >conftest.$ac_ext <<_ACEOF
6459#line 6459 "configure"
6460#include "confdefs.h"
6461
6462#if STDC_HEADERS
6463# include <stdlib.h>
6464#endif
6465#if HAVE_INTTYPES_H
6466# include <inttypes.h>
6467#endif
6468
6469int
6470main ()
6471{
6472return !strtol;
6473 ;
6474 return 0;
6475}
6476_ACEOF
6477rm -f conftest.$ac_objext conftest$ac_exeext
6478if { (eval echo "$as_me:6478: \"$ac_link\"") >&5
6479 (eval $ac_link) 2>&5
6480 ac_status=$?
6481 echo "$as_me:6481: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -s conftest$ac_exeext'
6484 { (eval echo "$as_me:6484: \"$ac_try\"") >&5
6485 (eval $ac_try) 2>&5
6486 ac_status=$?
6487 echo "$as_me:6487: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
6489 bash_cv_decl_strtol=yes
6490else
6491 echo "$as_me: failed program was:" >&5
6492cat conftest.$ac_ext >&5
6493bash_cv_decl_strtol=no
6494fi
6495rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6496fi
6497echo "$as_me:6497: result: $bash_cv_decl_strtol" >&5
6498echo "${ECHO_T}$bash_cv_decl_strtol" >&6
6499bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6500if test $bash_cv_decl_strtol = yes; then
6501 cat >>confdefs.h <<EOF
6502#define $bash_tr_func 1
6503EOF
6504
6505else
6506 cat >>confdefs.h <<EOF
6507#define $bash_tr_func 0
6508EOF
6509
6510fi
6511
6512echo "$as_me:6512: checking for declaration of strtoll" >&5
6513echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
6514if test "${bash_cv_decl_strtoll+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516else
6517 cat >conftest.$ac_ext <<_ACEOF
6518#line 6518 "configure"
6519#include "confdefs.h"
6520
6521#if STDC_HEADERS
6522# include <stdlib.h>
6523#endif
6524#if HAVE_INTTYPES_H
6525# include <inttypes.h>
6526#endif
6527
6528int
6529main ()
6530{
6531return !strtoll;
6532 ;
6533 return 0;
6534}
6535_ACEOF
6536rm -f conftest.$ac_objext conftest$ac_exeext
6537if { (eval echo "$as_me:6537: \"$ac_link\"") >&5
6538 (eval $ac_link) 2>&5
6539 ac_status=$?
6540 echo "$as_me:6540: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try='test -s conftest$ac_exeext'
6543 { (eval echo "$as_me:6543: \"$ac_try\"") >&5
6544 (eval $ac_try) 2>&5
6545 ac_status=$?
6546 echo "$as_me:6546: \$? = $ac_status" >&5
6547 (exit $ac_status); }; }; then
6548 bash_cv_decl_strtoll=yes
6549else
6550 echo "$as_me: failed program was:" >&5
6551cat conftest.$ac_ext >&5
6552bash_cv_decl_strtoll=no
6553fi
6554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6555fi
6556echo "$as_me:6556: result: $bash_cv_decl_strtoll" >&5
6557echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
6558bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6559if test $bash_cv_decl_strtoll = yes; then
6560 cat >>confdefs.h <<EOF
6561#define $bash_tr_func 1
6562EOF
6563
6564else
6565 cat >>confdefs.h <<EOF
6566#define $bash_tr_func 0
6567EOF
6568
6569fi
6570
6571echo "$as_me:6571: checking for declaration of strtoul" >&5
6572echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
6573if test "${bash_cv_decl_strtoul+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575else
6576 cat >conftest.$ac_ext <<_ACEOF
6577#line 6577 "configure"
6578#include "confdefs.h"
6579
6580#if STDC_HEADERS
6581# include <stdlib.h>
6582#endif
6583#if HAVE_INTTYPES_H
6584# include <inttypes.h>
6585#endif
6586
6587int
6588main ()
6589{
6590return !strtoul;
6591 ;
6592 return 0;
6593}
6594_ACEOF
6595rm -f conftest.$ac_objext conftest$ac_exeext
6596if { (eval echo "$as_me:6596: \"$ac_link\"") >&5
6597 (eval $ac_link) 2>&5
6598 ac_status=$?
6599 echo "$as_me:6599: \$? = $ac_status" >&5
6600 (exit $ac_status); } &&
6601 { ac_try='test -s conftest$ac_exeext'
6602 { (eval echo "$as_me:6602: \"$ac_try\"") >&5
6603 (eval $ac_try) 2>&5
6604 ac_status=$?
6605 echo "$as_me:6605: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 bash_cv_decl_strtoul=yes
6608else
6609 echo "$as_me: failed program was:" >&5
6610cat conftest.$ac_ext >&5
6611bash_cv_decl_strtoul=no
6612fi
6613rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6614fi
6615echo "$as_me:6615: result: $bash_cv_decl_strtoul" >&5
6616echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
6617bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6618if test $bash_cv_decl_strtoul = yes; then
6619 cat >>confdefs.h <<EOF
6620#define $bash_tr_func 1
6621EOF
6622
6623else
6624 cat >>confdefs.h <<EOF
6625#define $bash_tr_func 0
6626EOF
6627
6628fi
6629
6630echo "$as_me:6630: checking for declaration of strtoull" >&5
6631echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
6632if test "${bash_cv_decl_strtoull+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634else
6635 cat >conftest.$ac_ext <<_ACEOF
6636#line 6636 "configure"
6637#include "confdefs.h"
6638
6639#if STDC_HEADERS
6640# include <stdlib.h>
6641#endif
6642#if HAVE_INTTYPES_H
6643# include <inttypes.h>
6644#endif
6645
6646int
6647main ()
6648{
6649return !strtoull;
6650 ;
6651 return 0;
6652}
6653_ACEOF
6654rm -f conftest.$ac_objext conftest$ac_exeext
6655if { (eval echo "$as_me:6655: \"$ac_link\"") >&5
6656 (eval $ac_link) 2>&5
6657 ac_status=$?
6658 echo "$as_me:6658: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try='test -s conftest$ac_exeext'
6661 { (eval echo "$as_me:6661: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:6664: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 bash_cv_decl_strtoull=yes
6667else
6668 echo "$as_me: failed program was:" >&5
6669cat conftest.$ac_ext >&5
6670bash_cv_decl_strtoull=no
6671fi
6672rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6673fi
6674echo "$as_me:6674: result: $bash_cv_decl_strtoull" >&5
6675echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
6676bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6677if test $bash_cv_decl_strtoull = yes; then
6678 cat >>confdefs.h <<EOF
6679#define $bash_tr_func 1
6680EOF
6681
6682else
6683 cat >>confdefs.h <<EOF
6684#define $bash_tr_func 0
6685EOF
6686
6687fi
6688
6689echo "$as_me:6689: checking for declaration of strtoumax" >&5
6690echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
6691if test "${bash_cv_decl_strtoumax+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693else
6694 cat >conftest.$ac_ext <<_ACEOF
6695#line 6695 "configure"
6696#include "confdefs.h"
6697
6698#if STDC_HEADERS
6699# include <stdlib.h>
6700#endif
6701#if HAVE_INTTYPES_H
6702# include <inttypes.h>
6703#endif
6704
6705int
6706main ()
6707{
6708return !strtoumax;
6709 ;
6710 return 0;
6711}
6712_ACEOF
6713rm -f conftest.$ac_objext conftest$ac_exeext
6714if { (eval echo "$as_me:6714: \"$ac_link\"") >&5
6715 (eval $ac_link) 2>&5
6716 ac_status=$?
6717 echo "$as_me:6717: \$? = $ac_status" >&5
6718 (exit $ac_status); } &&
6719 { ac_try='test -s conftest$ac_exeext'
6720 { (eval echo "$as_me:6720: \"$ac_try\"") >&5
6721 (eval $ac_try) 2>&5
6722 ac_status=$?
6723 echo "$as_me:6723: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 bash_cv_decl_strtoumax=yes
6726else
6727 echo "$as_me: failed program was:" >&5
6728cat conftest.$ac_ext >&5
6729bash_cv_decl_strtoumax=no
6730fi
6731rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6732fi
6733echo "$as_me:6733: result: $bash_cv_decl_strtoumax" >&5
6734echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
6735bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6736if test $bash_cv_decl_strtoumax = yes; then
6737 cat >>confdefs.h <<EOF
6738#define $bash_tr_func 1
6739EOF
6740
6741else
6742 cat >>confdefs.h <<EOF
6743#define $bash_tr_func 0
6744EOF
6745
6746fi
6747
6748for ac_header in libintl.h
6749do
6750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6751echo "$as_me:6751: checking for $ac_header" >&5
6752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6753if eval "test \"\${$as_ac_Header+set}\" = set"; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755else
6756 cat >conftest.$ac_ext <<_ACEOF
6757#line 6757 "configure"
6758#include "confdefs.h"
6759#include <$ac_header>
6760_ACEOF
6761if { (eval echo "$as_me:6761: \"$ac_cpp conftest.$ac_ext\"") >&5
6762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6763 ac_status=$?
6764 egrep -v '^ *\+' conftest.er1 >conftest.err
6765 rm -f conftest.er1
6766 cat conftest.err >&5
6767 echo "$as_me:6767: \$? = $ac_status" >&5
6768 (exit $ac_status); } >/dev/null; then
6769 if test -s conftest.err; then
6770 ac_cpp_err=$ac_c_preproc_warn_flag
6771 else
6772 ac_cpp_err=
6773 fi
6774else
6775 ac_cpp_err=yes
6776fi
6777if test -z "$ac_cpp_err"; then
6778 eval "$as_ac_Header=yes"
6779else
6780 echo "$as_me: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6782 eval "$as_ac_Header=no"
6783fi
6784rm -f conftest.err conftest.$ac_ext
6785fi
6786echo "$as_me:6786: result: `eval echo '${'$as_ac_Header'}'`" >&5
6787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6788if test `eval echo '${'$as_ac_Header'}'` = yes; then
6789 cat >>confdefs.h <<EOF
6790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6791EOF
6792
6793fi
6794done
6795
6796for ac_func in gettext textdomain bindtextdomain
6797do
6798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6799echo "$as_me:6799: checking for $ac_func" >&5
6800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6801if eval "test \"\${$as_ac_var+set}\" = set"; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804 cat >conftest.$ac_ext <<_ACEOF
6805#line 6805 "configure"
6806#include "confdefs.h"
6807/* System header to define __stub macros and hopefully few prototypes,
6808 which can conflict with char $ac_func (); below. */
6809#include <assert.h>
6810/* Override any gcc2 internal prototype to avoid an error. */
6811#ifdef __cplusplus
6812extern "C"
6813#endif
6814/* We use char because int might match the return type of a gcc2
6815 builtin and then its argument prototype would still apply. */
6816char $ac_func ();
6817char (*f) ();
6818
6819int
6820main ()
6821{
6822/* The GNU C library defines this for functions which it implements
6823 to always fail with ENOSYS. Some functions are actually named
6824 something starting with __ and the normal name is an alias. */
6825#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6826choke me
6827#else
6828f = $ac_func;
6829#endif
6830
6831 ;
6832 return 0;
6833}
6834_ACEOF
6835rm -f conftest.$ac_objext conftest$ac_exeext
6836if { (eval echo "$as_me:6836: \"$ac_link\"") >&5
6837 (eval $ac_link) 2>&5
6838 ac_status=$?
6839 echo "$as_me:6839: \$? = $ac_status" >&5
6840 (exit $ac_status); } &&
6841 { ac_try='test -s conftest$ac_exeext'
6842 { (eval echo "$as_me:6842: \"$ac_try\"") >&5
6843 (eval $ac_try) 2>&5
6844 ac_status=$?
6845 echo "$as_me:6845: \$? = $ac_status" >&5
6846 (exit $ac_status); }; }; then
6847 eval "$as_ac_var=yes"
6848else
6849 echo "$as_me: failed program was:" >&5
6850cat conftest.$ac_ext >&5
6851eval "$as_ac_var=no"
6852fi
6853rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6854fi
6855echo "$as_me:6855: result: `eval echo '${'$as_ac_var'}'`" >&5
6856echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6857if test `eval echo '${'$as_ac_var'}'` = yes; then
6858 cat >>confdefs.h <<EOF
6859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6860EOF
6861
6862fi
6863done
6864
6865if test "$ac_cv_func_bindtextdomain" = "no"; then
6866
6867echo "$as_me:6867: checking for bindtextdomain in -lintl" >&5
6868echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
6869if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872 ac_check_lib_save_LIBS=$LIBS
6873LIBS="-lintl $LIBS"
6874cat >conftest.$ac_ext <<_ACEOF
6875#line 6875 "configure"
6876#include "confdefs.h"
6877
6878/* Override any gcc2 internal prototype to avoid an error. */
6879#ifdef __cplusplus
6880extern "C"
6881#endif
6882/* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6884char bindtextdomain ();
6885int
6886main ()
6887{
6888bindtextdomain ();
6889 ;
6890 return 0;
6891}
6892_ACEOF
6893rm -f conftest.$ac_objext conftest$ac_exeext
6894if { (eval echo "$as_me:6894: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>&5
6896 ac_status=$?
6897 echo "$as_me:6897: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try='test -s conftest$ac_exeext'
6900 { (eval echo "$as_me:6900: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:6903: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 ac_cv_lib_intl_bindtextdomain=yes
6906else
6907 echo "$as_me: failed program was:" >&5
6908cat conftest.$ac_ext >&5
6909ac_cv_lib_intl_bindtextdomain=no
6910fi
6911rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6912LIBS=$ac_check_lib_save_LIBS
6913fi
6914echo "$as_me:6914: result: $ac_cv_lib_intl_bindtextdomain" >&5
6915echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
6916if test $ac_cv_lib_intl_bindtextdomain = yes; then
6917 cat >>confdefs.h <<EOF
6918#define HAVE_LIBINTL 1
6919EOF
6920
6921 LIBS="-lintl $LIBS"
6922
6923fi
6924
6925 if test "$ac_cv_lib_intl" = "yes"; then
6926
6927for ac_func in gettext textdomain bindtextdomain
6928do
6929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6930echo "$as_me:6930: checking for $ac_func" >&5
6931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6932if eval "test \"\${$as_ac_var+set}\" = set"; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6934else
6935 cat >conftest.$ac_ext <<_ACEOF
6936#line 6936 "configure"
6937#include "confdefs.h"
6938/* System header to define __stub macros and hopefully few prototypes,
6939 which can conflict with char $ac_func (); below. */
6940#include <assert.h>
6941/* Override any gcc2 internal prototype to avoid an error. */
6942#ifdef __cplusplus
6943extern "C"
6944#endif
6945/* We use char because int might match the return type of a gcc2
6946 builtin and then its argument prototype would still apply. */
6947char $ac_func ();
6948char (*f) ();
6949
6950int
6951main ()
6952{
6953/* The GNU C library defines this for functions which it implements
6954 to always fail with ENOSYS. Some functions are actually named
6955 something starting with __ and the normal name is an alias. */
6956#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6957choke me
6958#else
6959f = $ac_func;
6960#endif
6961
6962 ;
6963 return 0;
6964}
6965_ACEOF
6966rm -f conftest.$ac_objext conftest$ac_exeext
6967if { (eval echo "$as_me:6967: \"$ac_link\"") >&5
6968 (eval $ac_link) 2>&5
6969 ac_status=$?
6970 echo "$as_me:6970: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try='test -s conftest$ac_exeext'
6973 { (eval echo "$as_me:6973: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:6976: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 eval "$as_ac_var=yes"
6979else
6980 echo "$as_me: failed program was:" >&5
6981cat conftest.$ac_ext >&5
6982eval "$as_ac_var=no"
6983fi
6984rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6985fi
6986echo "$as_me:6986: result: `eval echo '${'$as_ac_var'}'`" >&5
6987echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6988if test `eval echo '${'$as_ac_var'}'` = yes; then
6989 cat >>confdefs.h <<EOF
6990#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ccc6cda3 6991EOF
f73dda09 6992
ccc6cda3 6993fi
f73dda09
JA
6994done
6995
6996 fi
ccc6cda3 6997fi
f73dda09
JA
6998
6999if test "$opt_static_link" != yes; then
7000
7001echo "$as_me:7001: checking for dlopen in -ldl" >&5
7002echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7003if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 7005else
f73dda09
JA
7006 ac_check_lib_save_LIBS=$LIBS
7007LIBS="-ldl $LIBS"
7008cat >conftest.$ac_ext <<_ACEOF
7009#line 7009 "configure"
7010#include "confdefs.h"
7011
7012/* Override any gcc2 internal prototype to avoid an error. */
7013#ifdef __cplusplus
7014extern "C"
7015#endif
7016/* We use char because int might match the return type of a gcc2
7017 builtin and then its argument prototype would still apply. */
7018char dlopen ();
7019int
7020main ()
7021{
7022dlopen ();
7023 ;
7024 return 0;
7025}
7026_ACEOF
7027rm -f conftest.$ac_objext conftest$ac_exeext
7028if { (eval echo "$as_me:7028: \"$ac_link\"") >&5
7029 (eval $ac_link) 2>&5
7030 ac_status=$?
7031 echo "$as_me:7031: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try='test -s conftest$ac_exeext'
7034 { (eval echo "$as_me:7034: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:7037: \$? = $ac_status" >&5
7038 (exit $ac_status); }; }; then
7039 ac_cv_lib_dl_dlopen=yes
7040else
7041 echo "$as_me: failed program was:" >&5
7042cat conftest.$ac_ext >&5
7043ac_cv_lib_dl_dlopen=no
7044fi
7045rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7046LIBS=$ac_check_lib_save_LIBS
7047fi
7048echo "$as_me:7048: result: $ac_cv_lib_dl_dlopen" >&5
7049echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7050if test $ac_cv_lib_dl_dlopen = yes; then
7051 cat >>confdefs.h <<EOF
7052#define HAVE_LIBDL 1
7053EOF
7054
7055 LIBS="-ldl $LIBS"
7056
ccc6cda3 7057fi
ccc6cda3 7058
f73dda09 7059for ac_func in dlopen dlclose dlsym
bb70624e 7060do
f73dda09
JA
7061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7062echo "$as_me:7062: checking for $ac_func" >&5
7063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7064if eval "test \"\${$as_ac_var+set}\" = set"; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 7066else
f73dda09
JA
7067 cat >conftest.$ac_ext <<_ACEOF
7068#line 7068 "configure"
bb70624e 7069#include "confdefs.h"
f73dda09
JA
7070/* System header to define __stub macros and hopefully few prototypes,
7071 which can conflict with char $ac_func (); below. */
7072#include <assert.h>
7073/* Override any gcc2 internal prototype to avoid an error. */
7074#ifdef __cplusplus
7075extern "C"
7076#endif
7077/* We use char because int might match the return type of a gcc2
7078 builtin and then its argument prototype would still apply. */
7079char $ac_func ();
7080char (*f) ();
7081
7082int
7083main ()
7084{
7085/* The GNU C library defines this for functions which it implements
7086 to always fail with ENOSYS. Some functions are actually named
7087 something starting with __ and the normal name is an alias. */
7088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7089choke me
7090#else
7091f = $ac_func;
7092#endif
7093
7094 ;
7095 return 0;
7096}
7097_ACEOF
7098rm -f conftest.$ac_objext conftest$ac_exeext
7099if { (eval echo "$as_me:7099: \"$ac_link\"") >&5
7100 (eval $ac_link) 2>&5
7101 ac_status=$?
7102 echo "$as_me:7102: \$? = $ac_status" >&5
7103 (exit $ac_status); } &&
7104 { ac_try='test -s conftest$ac_exeext'
7105 { (eval echo "$as_me:7105: \"$ac_try\"") >&5
7106 (eval $ac_try) 2>&5
7107 ac_status=$?
7108 echo "$as_me:7108: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
7110 eval "$as_ac_var=yes"
7111else
7112 echo "$as_me: failed program was:" >&5
7113cat conftest.$ac_ext >&5
7114eval "$as_ac_var=no"
7115fi
7116rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7117fi
7118echo "$as_me:7118: result: `eval echo '${'$as_ac_var'}'`" >&5
7119echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7120if test `eval echo '${'$as_ac_var'}'` = yes; then
7121 cat >>confdefs.h <<EOF
7122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bb70624e 7123EOF
f73dda09 7124
bb70624e 7125fi
f73dda09
JA
7126done
7127
bb70624e 7128fi
f73dda09
JA
7129
7130echo "$as_me:7130: checking for sys_siglist declaration in signal.h or unistd.h" >&5
7131echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
7132if test "${ac_cv_decl_sys_siglist+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134else
7135 cat >conftest.$ac_ext <<_ACEOF
7136#line 7136 "configure"
7137#include "confdefs.h"
7138#include <sys/types.h>
7139#include <signal.h>
7140/* NetBSD declares sys_siglist in unistd.h. */
7141#if HAVE_UNISTD_H
7142# include <unistd.h>
7143#endif
7144
7145int
7146main ()
7147{
7148char *msg = *(sys_siglist + 1);
7149 ;
7150 return 0;
7151}
7152_ACEOF
7153rm -f conftest.$ac_objext
7154if { (eval echo "$as_me:7154: \"$ac_compile\"") >&5
7155 (eval $ac_compile) 2>&5
7156 ac_status=$?
7157 echo "$as_me:7157: \$? = $ac_status" >&5
7158 (exit $ac_status); } &&
7159 { ac_try='test -s conftest.$ac_objext'
7160 { (eval echo "$as_me:7160: \"$ac_try\"") >&5
7161 (eval $ac_try) 2>&5
7162 ac_status=$?
7163 echo "$as_me:7163: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7165 ac_cv_decl_sys_siglist=yes
bb70624e 7166else
f73dda09
JA
7167 echo "$as_me: failed program was:" >&5
7168cat conftest.$ac_ext >&5
7169ac_cv_decl_sys_siglist=no
bb70624e 7170fi
f73dda09
JA
7171rm -f conftest.$ac_objext conftest.$ac_ext
7172fi
7173echo "$as_me:7173: result: $ac_cv_decl_sys_siglist" >&5
7174echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
7175if test $ac_cv_decl_sys_siglist = yes; then
bb70624e 7176
f73dda09
JA
7177cat >>confdefs.h <<\EOF
7178#define SYS_SIGLIST_DECLARED 1
7179EOF
7180
7181fi
bb70624e
JA
7182
7183if test "$ac_cv_func_inet_aton" != 'yes'; then
7184
f73dda09
JA
7185echo "$as_me:7185: checking for inet_aton" >&5
7186echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
7187if test "${bash_cv_func_inet_aton+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 7189else
f73dda09
JA
7190 cat >conftest.$ac_ext <<_ACEOF
7191#line 7191 "configure"
bb70624e
JA
7192#include "confdefs.h"
7193
7194#include <sys/types.h>
7195#include <netinet/in.h>
7196#include <arpa/inet.h>
7197struct in_addr ap;
f73dda09
JA
7198int
7199main ()
7200{
7201 inet_aton("127.0.0.1", &ap);
7202 ;
7203 return 0;
7204}
7205_ACEOF
7206rm -f conftest.$ac_objext conftest$ac_exeext
7207if { (eval echo "$as_me:7207: \"$ac_link\"") >&5
7208 (eval $ac_link) 2>&5
7209 ac_status=$?
7210 echo "$as_me:7210: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try='test -s conftest$ac_exeext'
7213 { (eval echo "$as_me:7213: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:7216: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
bb70624e
JA
7218 bash_cv_func_inet_aton=yes
7219else
f73dda09
JA
7220 echo "$as_me: failed program was:" >&5
7221cat conftest.$ac_ext >&5
7222bash_cv_func_inet_aton=no
bb70624e 7223fi
f73dda09 7224rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb70624e 7225fi
f73dda09
JA
7226echo "$as_me:7226: result: $bash_cv_func_inet_aton" >&5
7227echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
bb70624e 7228if test $bash_cv_func_inet_aton = yes; then
f73dda09 7229 cat >>confdefs.h <<\EOF
bb70624e
JA
7230#define HAVE_INET_ATON 1
7231EOF
7232
f73dda09
JA
7233else
7234 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
bb70624e
JA
7235fi
7236
7237fi
7238
7239case "$host_os" in
f73dda09
JA
7240irix4*)
7241echo "$as_me:7241: checking for getpwent in -lsun" >&5
7242echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
7243if test "${ac_cv_lib_sun_getpwent+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 7245else
f73dda09 7246 ac_check_lib_save_LIBS=$LIBS
bb70624e 7247LIBS="-lsun $LIBS"
f73dda09
JA
7248cat >conftest.$ac_ext <<_ACEOF
7249#line 7249 "configure"
bb70624e 7250#include "confdefs.h"
f73dda09 7251
bb70624e 7252/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
7253#ifdef __cplusplus
7254extern "C"
7255#endif
bb70624e 7256/* We use char because int might match the return type of a gcc2
f73dda09
JA
7257 builtin and then its argument prototype would still apply. */
7258char getpwent ();
7259int
7260main ()
7261{
7262getpwent ();
7263 ;
7264 return 0;
7265}
7266_ACEOF
7267rm -f conftest.$ac_objext conftest$ac_exeext
7268if { (eval echo "$as_me:7268: \"$ac_link\"") >&5
7269 (eval $ac_link) 2>&5
7270 ac_status=$?
7271 echo "$as_me:7271: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try='test -s conftest$ac_exeext'
7274 { (eval echo "$as_me:7274: \"$ac_try\"") >&5
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
7277 echo "$as_me:7277: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 ac_cv_lib_sun_getpwent=yes
7280else
7281 echo "$as_me: failed program was:" >&5
7282cat conftest.$ac_ext >&5
7283ac_cv_lib_sun_getpwent=no
7284fi
7285rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7286LIBS=$ac_check_lib_save_LIBS
7287fi
7288echo "$as_me:7288: result: $ac_cv_lib_sun_getpwent" >&5
7289echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
7290if test $ac_cv_lib_sun_getpwent = yes; then
7291 cat >>confdefs.h <<EOF
7292#define HAVE_LIBSUN 1
bb70624e
JA
7293EOF
7294
7295 LIBS="-lsun $LIBS"
7296
bb70624e
JA
7297fi
7298 ;;
7299esac
ccc6cda3 7300
d166f048 7301if test "$ac_cv_func_getpeername" = no; then
f73dda09 7302
ccc6cda3
JA
7303if test "X$bash_cv_have_socklib" = "X"; then
7304_bash_needmsg=
7305else
f73dda09
JA
7306echo "$as_me:7306: checking for socket library" >&5
7307echo $ECHO_N "checking for socket library... $ECHO_C" >&6
ccc6cda3
JA
7308_bash_needmsg=yes
7309fi
f73dda09
JA
7310if test "${bash_cv_have_socklib+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 7312else
f73dda09
JA
7313 echo "$as_me:7313: checking for getpeername in -lsocket" >&5
7314echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
7315if test "${ac_cv_lib_socket_getpeername+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 7317else
f73dda09 7318 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 7319LIBS="-lsocket -lnsl $LIBS"
f73dda09
JA
7320cat >conftest.$ac_ext <<_ACEOF
7321#line 7321 "configure"
ccc6cda3 7322#include "confdefs.h"
f73dda09 7323
ccc6cda3 7324/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
7325#ifdef __cplusplus
7326extern "C"
7327#endif
ccc6cda3 7328/* We use char because int might match the return type of a gcc2
f73dda09
JA
7329 builtin and then its argument prototype would still apply. */
7330char getpeername ();
7331int
7332main ()
7333{
7334getpeername ();
7335 ;
7336 return 0;
7337}
7338_ACEOF
7339rm -f conftest.$ac_objext conftest$ac_exeext
7340if { (eval echo "$as_me:7340: \"$ac_link\"") >&5
7341 (eval $ac_link) 2>&5
7342 ac_status=$?
7343 echo "$as_me:7343: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try='test -s conftest$ac_exeext'
7346 { (eval echo "$as_me:7346: \"$ac_try\"") >&5
7347 (eval $ac_try) 2>&5
7348 ac_status=$?
7349 echo "$as_me:7349: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 ac_cv_lib_socket_getpeername=yes
7352else
7353 echo "$as_me: failed program was:" >&5
7354cat conftest.$ac_ext >&5
7355ac_cv_lib_socket_getpeername=no
7356fi
7357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7358LIBS=$ac_check_lib_save_LIBS
7359fi
7360echo "$as_me:7360: result: $ac_cv_lib_socket_getpeername" >&5
7361echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
7362if test $ac_cv_lib_socket_getpeername = yes; then
ccc6cda3
JA
7363 bash_cv_have_socklib=yes
7364else
f73dda09 7365 bash_cv_have_socklib=no
ccc6cda3
JA
7366fi
7367
7368fi
7369
7370if test "X$_bash_needmsg" = Xyes; then
f73dda09
JA
7371 echo "$as_me:7371: result: $bash_cv_have_socklib" >&5
7372echo "${ECHO_T}$bash_cv_have_socklib" >&6
ccc6cda3
JA
7373 _bash_needmsg=
7374fi
7375if test $bash_cv_have_socklib = yes; then
7376 # check for libnsl, add it to LIBS if present
7377 if test "X$bash_cv_have_libnsl" = "X"; then
7378 _bash_needmsg=
7379 else
f73dda09
JA
7380 echo "$as_me:7380: checking for libnsl" >&5
7381echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
ccc6cda3
JA
7382 _bash_needmsg=yes
7383 fi
f73dda09
JA
7384 if test "${bash_cv_have_libnsl+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 7386else
f73dda09
JA
7387 echo "$as_me:7387: checking for t_open in -lnsl" >&5
7388echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
7389if test "${ac_cv_lib_nsl_t_open+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 7391else
f73dda09 7392 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 7393LIBS="-lnsl $LIBS"
f73dda09
JA
7394cat >conftest.$ac_ext <<_ACEOF
7395#line 7395 "configure"
ccc6cda3 7396#include "confdefs.h"
f73dda09 7397
ccc6cda3 7398/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
7399#ifdef __cplusplus
7400extern "C"
7401#endif
ccc6cda3 7402/* We use char because int might match the return type of a gcc2
f73dda09
JA
7403 builtin and then its argument prototype would still apply. */
7404char t_open ();
7405int
7406main ()
7407{
7408t_open ();
7409 ;
7410 return 0;
7411}
7412_ACEOF
7413rm -f conftest.$ac_objext conftest$ac_exeext
7414if { (eval echo "$as_me:7414: \"$ac_link\"") >&5
7415 (eval $ac_link) 2>&5
7416 ac_status=$?
7417 echo "$as_me:7417: \$? = $ac_status" >&5
7418 (exit $ac_status); } &&
7419 { ac_try='test -s conftest$ac_exeext'
7420 { (eval echo "$as_me:7420: \"$ac_try\"") >&5
7421 (eval $ac_try) 2>&5
7422 ac_status=$?
7423 echo "$as_me:7423: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7425 ac_cv_lib_nsl_t_open=yes
7426else
7427 echo "$as_me: failed program was:" >&5
7428cat conftest.$ac_ext >&5
7429ac_cv_lib_nsl_t_open=no
7430fi
7431rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7432LIBS=$ac_check_lib_save_LIBS
7433fi
7434echo "$as_me:7434: result: $ac_cv_lib_nsl_t_open" >&5
7435echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
7436if test $ac_cv_lib_nsl_t_open = yes; then
ccc6cda3
JA
7437 bash_cv_have_libnsl=yes
7438else
f73dda09 7439 bash_cv_have_libnsl=no
ccc6cda3
JA
7440fi
7441
7442fi
7443
7444 if test "X$_bash_needmsg" = Xyes; then
f73dda09
JA
7445 echo "$as_me:7445: result: $bash_cv_have_libnsl" >&5
7446echo "${ECHO_T}$bash_cv_have_libnsl" >&6
ccc6cda3
JA
7447 _bash_needmsg=
7448 fi
7449 if test $bash_cv_have_libnsl = yes; then
7450 LIBS="-lsocket -lnsl $LIBS"
7451 else
7452 LIBS="-lsocket $LIBS"
7453 fi
f73dda09 7454 cat >>confdefs.h <<\EOF
ccc6cda3
JA
7455#define HAVE_LIBSOCKET 1
7456EOF
7457
f73dda09 7458 cat >>confdefs.h <<\EOF
ccc6cda3
JA
7459#define HAVE_GETPEERNAME 1
7460EOF
7461
7462fi
7463
bb70624e
JA
7464fi
7465if test "$ac_cv_func_gethostbyname" = no; then
7466 if test "X$bash_cv_have_gethostbyname" = "X"; then
7467_bash_needmsg=yes
7468else
f73dda09
JA
7469echo "$as_me:7469: checking for gethostbyname in socket library" >&5
7470echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
bb70624e
JA
7471_bash_needmsg=
7472fi
f73dda09
JA
7473if test "${bash_cv_have_gethostbyname+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 7475else
f73dda09
JA
7476 cat >conftest.$ac_ext <<_ACEOF
7477#line 7477 "configure"
bb70624e
JA
7478#include "confdefs.h"
7479#include <netdb.h>
f73dda09
JA
7480int
7481main ()
7482{
bb70624e
JA
7483 struct hostent *hp;
7484 hp = gethostbyname("localhost");
7485
f73dda09
JA
7486 ;
7487 return 0;
7488}
7489_ACEOF
7490rm -f conftest.$ac_objext conftest$ac_exeext
7491if { (eval echo "$as_me:7491: \"$ac_link\"") >&5
7492 (eval $ac_link) 2>&5
7493 ac_status=$?
7494 echo "$as_me:7494: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try='test -s conftest$ac_exeext'
7497 { (eval echo "$as_me:7497: \"$ac_try\"") >&5
7498 (eval $ac_try) 2>&5
7499 ac_status=$?
7500 echo "$as_me:7500: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
bb70624e
JA
7502 bash_cv_have_gethostbyname=yes
7503else
f73dda09
JA
7504 echo "$as_me: failed program was:" >&5
7505cat conftest.$ac_ext >&5
7506bash_cv_have_gethostbyname=no
7507fi
7508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7509
7510fi
7511
7512if test "X$_bash_needmsg" = Xyes; then
7513 echo "$as_me:7513: checking for gethostbyname in socket library" >&5
7514echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
7515fi
7516echo "$as_me:7516: result: $bash_cv_have_gethostbyname" >&5
7517echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
7518if test "$bash_cv_have_gethostbyname" = yes; then
7519cat >>confdefs.h <<\EOF
7520#define HAVE_GETHOSTBYNAME 1
7521EOF
7522
7523fi
7524
7525fi
7526
7527echo "$as_me:7527: checking for uid_t in sys/types.h" >&5
7528echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7529if test "${ac_cv_type_uid_t+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7531else
7532 cat >conftest.$ac_ext <<_ACEOF
7533#line 7533 "configure"
7534#include "confdefs.h"
7535#include <sys/types.h>
7536
7537_ACEOF
7538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7539 egrep "uid_t" >/dev/null 2>&1; then
7540 ac_cv_type_uid_t=yes
7541else
7542 ac_cv_type_uid_t=no
7543fi
7544rm -f conftest*
7545
7546fi
7547echo "$as_me:7547: result: $ac_cv_type_uid_t" >&5
7548echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7549if test $ac_cv_type_uid_t = no; then
7550
7551cat >>confdefs.h <<\EOF
7552#define uid_t int
7553EOF
7554
7555cat >>confdefs.h <<\EOF
7556#define gid_t int
7557EOF
7558
7559fi
7560
7561echo "$as_me:7561: checking type of array argument to getgroups" >&5
7562echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7563if test "${ac_cv_type_getgroups+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7565else
7566 if test "$cross_compiling" = yes; then
7567 ac_cv_type_getgroups=cross
7568else
7569 cat >conftest.$ac_ext <<_ACEOF
7570#line 7570 "configure"
7571#include "confdefs.h"
7572/* Thanks to Mike Rendell for this test. */
7573#include <sys/types.h>
7574#define NGID 256
7575#undef MAX
7576#define MAX(x, y) ((x) > (y) ? (x) : (y))
7577
7578int
7579main ()
7580{
7581 gid_t gidset[NGID];
7582 int i, n;
7583 union { gid_t gval; long lval; } val;
7584
7585 val.lval = -1;
7586 for (i = 0; i < NGID; i++)
7587 gidset[i] = val.gval;
7588 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7589 gidset);
7590 /* Exit non-zero if getgroups seems to require an array of ints. This
7591 happens when gid_t is short but getgroups modifies an array of ints. */
7592 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7593}
7594_ACEOF
7595rm -f conftest$ac_exeext
7596if { (eval echo "$as_me:7596: \"$ac_link\"") >&5
7597 (eval $ac_link) 2>&5
7598 ac_status=$?
7599 echo "$as_me:7599: \$? = $ac_status" >&5
7600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7601 { (eval echo "$as_me:7601: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:7604: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_type_getgroups=gid_t
7607else
7608 echo "$as_me: program exited with status $ac_status" >&5
7609echo "$as_me: failed program was:" >&5
7610cat conftest.$ac_ext >&5
7611ac_cv_type_getgroups=int
7612fi
7613rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7614fi
7615if test $ac_cv_type_getgroups = cross; then
7616 cat >conftest.$ac_ext <<_ACEOF
7617#line 7617 "configure"
7618#include "confdefs.h"
7619#include <unistd.h>
7620
7621_ACEOF
7622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7623 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7624 ac_cv_type_getgroups=gid_t
7625else
7626 ac_cv_type_getgroups=int
bb70624e
JA
7627fi
7628rm -f conftest*
7629
7630fi
f73dda09
JA
7631fi
7632echo "$as_me:7632: result: $ac_cv_type_getgroups" >&5
7633echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7634
7635cat >>confdefs.h <<EOF
7636#define GETGROUPS_T $ac_cv_type_getgroups
7637EOF
7638
7639echo "$as_me:7639: checking for off_t" >&5
7640echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7641if test "${ac_cv_type_off_t+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7643else
7644 cat >conftest.$ac_ext <<_ACEOF
7645#line 7645 "configure"
7646#include "confdefs.h"
7647$ac_includes_default
7648int
7649main ()
7650{
7651if ((off_t *) 0)
7652 return 0;
7653if (sizeof (off_t))
7654 return 0;
7655 ;
7656 return 0;
7657}
7658_ACEOF
7659rm -f conftest.$ac_objext
7660if { (eval echo "$as_me:7660: \"$ac_compile\"") >&5
7661 (eval $ac_compile) 2>&5
7662 ac_status=$?
7663 echo "$as_me:7663: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -s conftest.$ac_objext'
7666 { (eval echo "$as_me:7666: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:7669: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_cv_type_off_t=yes
7672else
7673 echo "$as_me: failed program was:" >&5
7674cat conftest.$ac_ext >&5
7675ac_cv_type_off_t=no
7676fi
7677rm -f conftest.$ac_objext conftest.$ac_ext
7678fi
7679echo "$as_me:7679: result: $ac_cv_type_off_t" >&5
7680echo "${ECHO_T}$ac_cv_type_off_t" >&6
7681if test $ac_cv_type_off_t = yes; then
7682 :
7683else
7684
7685cat >>confdefs.h <<EOF
7686#define off_t long
7687EOF
7688
7689fi
7690
7691echo "$as_me:7691: checking for mode_t" >&5
7692echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7693if test "${ac_cv_type_mode_t+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7695else
7696 cat >conftest.$ac_ext <<_ACEOF
7697#line 7697 "configure"
7698#include "confdefs.h"
7699$ac_includes_default
7700int
7701main ()
7702{
7703if ((mode_t *) 0)
7704 return 0;
7705if (sizeof (mode_t))
7706 return 0;
7707 ;
7708 return 0;
7709}
7710_ACEOF
7711rm -f conftest.$ac_objext
7712if { (eval echo "$as_me:7712: \"$ac_compile\"") >&5
7713 (eval $ac_compile) 2>&5
7714 ac_status=$?
7715 echo "$as_me:7715: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
7717 { ac_try='test -s conftest.$ac_objext'
7718 { (eval echo "$as_me:7718: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:7721: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 ac_cv_type_mode_t=yes
7724else
7725 echo "$as_me: failed program was:" >&5
7726cat conftest.$ac_ext >&5
7727ac_cv_type_mode_t=no
7728fi
7729rm -f conftest.$ac_objext conftest.$ac_ext
7730fi
7731echo "$as_me:7731: result: $ac_cv_type_mode_t" >&5
7732echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7733if test $ac_cv_type_mode_t = yes; then
7734 :
7735else
bb70624e 7736
f73dda09
JA
7737cat >>confdefs.h <<EOF
7738#define mode_t int
bb70624e
JA
7739EOF
7740
7741fi
7742
f73dda09
JA
7743echo "$as_me:7743: checking for uid_t in sys/types.h" >&5
7744echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7745if test "${ac_cv_type_uid_t+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 7747else
f73dda09
JA
7748 cat >conftest.$ac_ext <<_ACEOF
7749#line 7749 "configure"
ccc6cda3
JA
7750#include "confdefs.h"
7751#include <sys/types.h>
f73dda09
JA
7752
7753_ACEOF
ccc6cda3
JA
7754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7755 egrep "uid_t" >/dev/null 2>&1; then
ccc6cda3
JA
7756 ac_cv_type_uid_t=yes
7757else
ccc6cda3
JA
7758 ac_cv_type_uid_t=no
7759fi
7760rm -f conftest*
7761
7762fi
f73dda09
JA
7763echo "$as_me:7763: result: $ac_cv_type_uid_t" >&5
7764echo "${ECHO_T}$ac_cv_type_uid_t" >&6
ccc6cda3 7765if test $ac_cv_type_uid_t = no; then
f73dda09
JA
7766
7767cat >>confdefs.h <<\EOF
ccc6cda3
JA
7768#define uid_t int
7769EOF
7770
f73dda09 7771cat >>confdefs.h <<\EOF
ccc6cda3
JA
7772#define gid_t int
7773EOF
7774
7775fi
7776
f73dda09
JA
7777echo "$as_me:7777: checking for pid_t" >&5
7778echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7779if test "${ac_cv_type_pid_t+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 7781else
f73dda09
JA
7782 cat >conftest.$ac_ext <<_ACEOF
7783#line 7783 "configure"
ccc6cda3 7784#include "confdefs.h"
f73dda09
JA
7785$ac_includes_default
7786int
7787main ()
ccc6cda3 7788{
f73dda09
JA
7789if ((pid_t *) 0)
7790 return 0;
7791if (sizeof (pid_t))
7792 return 0;
7793 ;
7794 return 0;
ccc6cda3 7795}
f73dda09
JA
7796_ACEOF
7797rm -f conftest.$ac_objext
7798if { (eval echo "$as_me:7798: \"$ac_compile\"") >&5
7799 (eval $ac_compile) 2>&5
7800 ac_status=$?
7801 echo "$as_me:7801: \$? = $ac_status" >&5
7802 (exit $ac_status); } &&
7803 { ac_try='test -s conftest.$ac_objext'
7804 { (eval echo "$as_me:7804: \"$ac_try\"") >&5
7805 (eval $ac_try) 2>&5
7806 ac_status=$?
7807 echo "$as_me:7807: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7809 ac_cv_type_pid_t=yes
ccc6cda3 7810else
f73dda09
JA
7811 echo "$as_me: failed program was:" >&5
7812cat conftest.$ac_ext >&5
7813ac_cv_type_pid_t=no
ccc6cda3 7814fi
f73dda09 7815rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3 7816fi
f73dda09
JA
7817echo "$as_me:7817: result: $ac_cv_type_pid_t" >&5
7818echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7819if test $ac_cv_type_pid_t = yes; then
7820 :
7821else
ccc6cda3 7822
f73dda09
JA
7823cat >>confdefs.h <<EOF
7824#define pid_t int
ccc6cda3 7825EOF
f73dda09 7826
ccc6cda3 7827fi
ccc6cda3 7828
f73dda09
JA
7829echo "$as_me:7829: checking for size_t" >&5
7830echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7831if test "${ac_cv_type_size_t+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7833else
7834 cat >conftest.$ac_ext <<_ACEOF
7835#line 7835 "configure"
7836#include "confdefs.h"
7837$ac_includes_default
7838int
7839main ()
7840{
7841if ((size_t *) 0)
7842 return 0;
7843if (sizeof (size_t))
7844 return 0;
7845 ;
7846 return 0;
7847}
7848_ACEOF
7849rm -f conftest.$ac_objext
7850if { (eval echo "$as_me:7850: \"$ac_compile\"") >&5
7851 (eval $ac_compile) 2>&5
7852 ac_status=$?
7853 echo "$as_me:7853: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -s conftest.$ac_objext'
7856 { (eval echo "$as_me:7856: \"$ac_try\"") >&5
7857 (eval $ac_try) 2>&5
7858 ac_status=$?
7859 echo "$as_me:7859: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
7861 ac_cv_type_size_t=yes
7862else
7863 echo "$as_me: failed program was:" >&5
7864cat conftest.$ac_ext >&5
7865ac_cv_type_size_t=no
ccc6cda3 7866fi
f73dda09 7867rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3 7868fi
f73dda09
JA
7869echo "$as_me:7869: result: $ac_cv_type_size_t" >&5
7870echo "${ECHO_T}$ac_cv_type_size_t" >&6
7871if test $ac_cv_type_size_t = yes; then
7872 :
7873else
ccc6cda3 7874
f73dda09
JA
7875cat >>confdefs.h <<EOF
7876#define size_t unsigned
ccc6cda3
JA
7877EOF
7878
f73dda09 7879fi
ccc6cda3 7880
f73dda09
JA
7881echo "$as_me:7881: checking for ssize_t" >&5
7882echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7883if test "${ac_cv_type_ssize_t+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 7885else
f73dda09
JA
7886 cat >conftest.$ac_ext <<_ACEOF
7887#line 7887 "configure"
ccc6cda3 7888#include "confdefs.h"
f73dda09
JA
7889$ac_includes_default
7890int
7891main ()
7892{
7893if ((ssize_t *) 0)
7894 return 0;
7895if (sizeof (ssize_t))
7896 return 0;
7897 ;
7898 return 0;
7899}
7900_ACEOF
7901rm -f conftest.$ac_objext
7902if { (eval echo "$as_me:7902: \"$ac_compile\"") >&5
7903 (eval $ac_compile) 2>&5
7904 ac_status=$?
7905 echo "$as_me:7905: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try='test -s conftest.$ac_objext'
7908 { (eval echo "$as_me:7908: \"$ac_try\"") >&5
7909 (eval $ac_try) 2>&5
7910 ac_status=$?
7911 echo "$as_me:7911: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7913 ac_cv_type_ssize_t=yes
7914else
7915 echo "$as_me: failed program was:" >&5
7916cat conftest.$ac_ext >&5
7917ac_cv_type_ssize_t=no
7918fi
7919rm -f conftest.$ac_objext conftest.$ac_ext
7920fi
7921echo "$as_me:7921: result: $ac_cv_type_ssize_t" >&5
7922echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7923if test $ac_cv_type_ssize_t = yes; then
7924 :
ccc6cda3 7925else
ccc6cda3 7926
f73dda09
JA
7927cat >>confdefs.h <<EOF
7928#define ssize_t int
ccc6cda3 7929EOF
ccc6cda3
JA
7930
7931fi
7932
f73dda09
JA
7933echo "$as_me:7933: checking for time_t" >&5
7934echo $ECHO_N "checking for time_t... $ECHO_C" >&6
7935if test "${ac_cv_type_time_t+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937else
7938 cat >conftest.$ac_ext <<_ACEOF
7939#line 7939 "configure"
ccc6cda3 7940#include "confdefs.h"
f73dda09
JA
7941$ac_includes_default
7942int
7943main ()
7944{
7945if ((time_t *) 0)
7946 return 0;
7947if (sizeof (time_t))
7948 return 0;
7949 ;
7950 return 0;
7951}
7952_ACEOF
7953rm -f conftest.$ac_objext
7954if { (eval echo "$as_me:7954: \"$ac_compile\"") >&5
7955 (eval $ac_compile) 2>&5
7956 ac_status=$?
7957 echo "$as_me:7957: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -s conftest.$ac_objext'
7960 { (eval echo "$as_me:7960: \"$ac_try\"") >&5
7961 (eval $ac_try) 2>&5
7962 ac_status=$?
7963 echo "$as_me:7963: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7965 ac_cv_type_time_t=yes
ccc6cda3 7966else
f73dda09
JA
7967 echo "$as_me: failed program was:" >&5
7968cat conftest.$ac_ext >&5
7969ac_cv_type_time_t=no
ccc6cda3 7970fi
f73dda09
JA
7971rm -f conftest.$ac_objext conftest.$ac_ext
7972fi
7973echo "$as_me:7973: result: $ac_cv_type_time_t" >&5
7974echo "${ECHO_T}$ac_cv_type_time_t" >&6
7975if test $ac_cv_type_time_t = yes; then
7976 :
7977else
7978
7979cat >>confdefs.h <<EOF
7980#define time_t long
7981EOF
ccc6cda3
JA
7982
7983fi
7984
f73dda09
JA
7985echo "$as_me:7985: checking for long long" >&5
7986echo $ECHO_N "checking for long long... $ECHO_C" >&6
7987if test "${bash_cv_type_long_long+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 7989else
f73dda09
JA
7990 cat >conftest.$ac_ext <<_ACEOF
7991#line 7991 "configure"
ccc6cda3 7992#include "confdefs.h"
ccc6cda3 7993
f73dda09
JA
7994long long ll = 1; int i = 63;
7995int
7996main ()
7997{
7998
7999long long llm = (long long) -1;
8000return ll << i | ll >> i | llm / ll | llm % ll;
8001
8002 ;
8003 return 0;
8004}
8005_ACEOF
8006rm -f conftest.$ac_objext conftest$ac_exeext
8007if { (eval echo "$as_me:8007: \"$ac_link\"") >&5
8008 (eval $ac_link) 2>&5
8009 ac_status=$?
8010 echo "$as_me:8010: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try='test -s conftest$ac_exeext'
8013 { (eval echo "$as_me:8013: \"$ac_try\"") >&5
8014 (eval $ac_try) 2>&5
8015 ac_status=$?
8016 echo "$as_me:8016: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 bash_cv_type_long_long='long long'
ccc6cda3 8019else
f73dda09
JA
8020 echo "$as_me: failed program was:" >&5
8021cat conftest.$ac_ext >&5
8022bash_cv_type_long_long='long'
ccc6cda3 8023fi
f73dda09 8024rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ccc6cda3 8025fi
f73dda09
JA
8026echo "$as_me:8026: result: $bash_cv_type_long_long" >&5
8027echo "${ECHO_T}$bash_cv_type_long_long" >&6
8028if test "$bash_cv_type_long_long" = 'long long'; then
8029 cat >>confdefs.h <<\EOF
8030#define HAVE_LONG_LONG 1
8031EOF
ccc6cda3 8032
ccc6cda3
JA
8033fi
8034
f73dda09
JA
8035echo "$as_me:8035: checking for unsigned long long" >&5
8036echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8037if test "${bash_cv_type_unsigned_long_long+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039else
8040 cat >conftest.$ac_ext <<_ACEOF
8041#line 8041 "configure"
8042#include "confdefs.h"
8043
8044unsigned long long ull = 1; int i = 63;
8045int
8046main ()
8047{
8048
8049unsigned long long ullmax = (unsigned long long) -1;
8050return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8051
8052 ;
8053 return 0;
8054}
8055_ACEOF
8056rm -f conftest.$ac_objext conftest$ac_exeext
8057if { (eval echo "$as_me:8057: \"$ac_link\"") >&5
8058 (eval $ac_link) 2>&5
8059 ac_status=$?
8060 echo "$as_me:8060: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -s conftest$ac_exeext'
8063 { (eval echo "$as_me:8063: \"$ac_try\"") >&5
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:8066: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 bash_cv_type_unsigned_long_long='unsigned long long'
8069else
8070 echo "$as_me: failed program was:" >&5
8071cat conftest.$ac_ext >&5
8072bash_cv_type_unsigned_long_long='unsigned long'
8073fi
8074rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8075fi
8076echo "$as_me:8076: result: $bash_cv_type_unsigned_long_long" >&5
8077echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
8078if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
8079 cat >>confdefs.h <<\EOF
8080#define HAVE_UNSIGNED_LONG_LONG 1
ccc6cda3
JA
8081EOF
8082
8083fi
8084
f73dda09
JA
8085echo "$as_me:8085: checking return type of signal handlers" >&5
8086echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8087if test "${ac_cv_type_signal+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 8089else
f73dda09
JA
8090 cat >conftest.$ac_ext <<_ACEOF
8091#line 8091 "configure"
ccc6cda3
JA
8092#include "confdefs.h"
8093#include <sys/types.h>
f73dda09
JA
8094#include <signal.h>
8095#ifdef signal
8096# undef signal
ccc6cda3 8097#endif
f73dda09
JA
8098#ifdef __cplusplus
8099extern "C" void (*signal (int, void (*)(int)))(int);
8100#else
8101void (*signal ()) ();
8102#endif
8103
8104int
8105main ()
8106{
8107int i;
8108 ;
8109 return 0;
8110}
8111_ACEOF
8112rm -f conftest.$ac_objext
8113if { (eval echo "$as_me:8113: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>&5
8115 ac_status=$?
8116 echo "$as_me:8116: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -s conftest.$ac_objext'
8119 { (eval echo "$as_me:8119: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:8122: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_type_signal=void
ccc6cda3 8125else
f73dda09
JA
8126 echo "$as_me: failed program was:" >&5
8127cat conftest.$ac_ext >&5
8128ac_cv_type_signal=int
ccc6cda3 8129fi
f73dda09 8130rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3 8131fi
f73dda09
JA
8132echo "$as_me:8132: result: $ac_cv_type_signal" >&5
8133echo "${ECHO_T}$ac_cv_type_signal" >&6
8134
8135cat >>confdefs.h <<EOF
8136#define RETSIGTYPE $ac_cv_type_signal
ccc6cda3
JA
8137EOF
8138
f73dda09
JA
8139echo "$as_me:8139: checking for char" >&5
8140echo $ECHO_N "checking for char... $ECHO_C" >&6
8141if test "${ac_cv_type_char+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144 cat >conftest.$ac_ext <<_ACEOF
8145#line 8145 "configure"
8146#include "confdefs.h"
8147$ac_includes_default
8148int
8149main ()
8150{
8151if ((char *) 0)
8152 return 0;
8153if (sizeof (char))
8154 return 0;
8155 ;
8156 return 0;
8157}
8158_ACEOF
8159rm -f conftest.$ac_objext
8160if { (eval echo "$as_me:8160: \"$ac_compile\"") >&5
8161 (eval $ac_compile) 2>&5
8162 ac_status=$?
8163 echo "$as_me:8163: \$? = $ac_status" >&5
8164 (exit $ac_status); } &&
8165 { ac_try='test -s conftest.$ac_objext'
8166 { (eval echo "$as_me:8166: \"$ac_try\"") >&5
8167 (eval $ac_try) 2>&5
8168 ac_status=$?
8169 echo "$as_me:8169: \$? = $ac_status" >&5
8170 (exit $ac_status); }; }; then
8171 ac_cv_type_char=yes
8172else
8173 echo "$as_me: failed program was:" >&5
8174cat conftest.$ac_ext >&5
8175ac_cv_type_char=no
8176fi
8177rm -f conftest.$ac_objext conftest.$ac_ext
8178fi
8179echo "$as_me:8179: result: $ac_cv_type_char" >&5
8180echo "${ECHO_T}$ac_cv_type_char" >&6
8181
8182echo "$as_me:8182: checking size of char" >&5
8183echo $ECHO_N "checking size of char... $ECHO_C" >&6
8184if test "${ac_cv_sizeof_char+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186else
8187 if test "$ac_cv_type_char" = yes; then
8188 if test "$cross_compiling" = yes; then
8189 # Depending upon the size, compute the lo and hi bounds.
8190cat >conftest.$ac_ext <<_ACEOF
8191#line 8191 "configure"
8192#include "confdefs.h"
8193$ac_includes_default
8194int
8195main ()
8196{
8197int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
8198 ;
8199 return 0;
8200}
8201_ACEOF
8202rm -f conftest.$ac_objext
8203if { (eval echo "$as_me:8203: \"$ac_compile\"") >&5
8204 (eval $ac_compile) 2>&5
8205 ac_status=$?
8206 echo "$as_me:8206: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -s conftest.$ac_objext'
8209 { (eval echo "$as_me:8209: \"$ac_try\"") >&5
8210 (eval $ac_try) 2>&5
8211 ac_status=$?
8212 echo "$as_me:8212: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8214 ac_lo=0 ac_mid=0
8215 while :; do
8216 cat >conftest.$ac_ext <<_ACEOF
8217#line 8217 "configure"
8218#include "confdefs.h"
8219$ac_includes_default
8220int
8221main ()
8222{
8223int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
8224 ;
8225 return 0;
8226}
8227_ACEOF
8228rm -f conftest.$ac_objext
8229if { (eval echo "$as_me:8229: \"$ac_compile\"") >&5
8230 (eval $ac_compile) 2>&5
8231 ac_status=$?
8232 echo "$as_me:8232: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try='test -s conftest.$ac_objext'
8235 { (eval echo "$as_me:8235: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:8238: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_hi=$ac_mid; break
8241else
8242 echo "$as_me: failed program was:" >&5
8243cat conftest.$ac_ext >&5
8244ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8245fi
8246rm -f conftest.$ac_objext conftest.$ac_ext
8247 done
8248else
8249 echo "$as_me: failed program was:" >&5
8250cat conftest.$ac_ext >&5
8251ac_hi=-1 ac_mid=-1
8252 while :; do
8253 cat >conftest.$ac_ext <<_ACEOF
8254#line 8254 "configure"
8255#include "confdefs.h"
8256$ac_includes_default
8257int
8258main ()
8259{
8260int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
8261 ;
8262 return 0;
8263}
8264_ACEOF
8265rm -f conftest.$ac_objext
8266if { (eval echo "$as_me:8266: \"$ac_compile\"") >&5
8267 (eval $ac_compile) 2>&5
8268 ac_status=$?
8269 echo "$as_me:8269: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -s conftest.$ac_objext'
8272 { (eval echo "$as_me:8272: \"$ac_try\"") >&5
8273 (eval $ac_try) 2>&5
8274 ac_status=$?
8275 echo "$as_me:8275: \$? = $ac_status" >&5
8276 (exit $ac_status); }; }; then
8277 ac_lo=$ac_mid; break
8278else
8279 echo "$as_me: failed program was:" >&5
8280cat conftest.$ac_ext >&5
8281ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8282fi
8283rm -f conftest.$ac_objext conftest.$ac_ext
8284 done
ccc6cda3 8285fi
f73dda09
JA
8286rm -f conftest.$ac_objext conftest.$ac_ext
8287# Binary search between lo and hi bounds.
8288while test "x$ac_lo" != "x$ac_hi"; do
8289 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8290 cat >conftest.$ac_ext <<_ACEOF
8291#line 8291 "configure"
8292#include "confdefs.h"
8293$ac_includes_default
8294int
8295main ()
8296{
8297int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
8298 ;
8299 return 0;
8300}
8301_ACEOF
8302rm -f conftest.$ac_objext
8303if { (eval echo "$as_me:8303: \"$ac_compile\"") >&5
8304 (eval $ac_compile) 2>&5
8305 ac_status=$?
8306 echo "$as_me:8306: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try='test -s conftest.$ac_objext'
8309 { (eval echo "$as_me:8309: \"$ac_try\"") >&5
8310 (eval $ac_try) 2>&5
8311 ac_status=$?
8312 echo "$as_me:8312: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_hi=$ac_mid
8315else
8316 echo "$as_me: failed program was:" >&5
8317cat conftest.$ac_ext >&5
8318ac_lo=`expr $ac_mid + 1`
8319fi
8320rm -f conftest.$ac_objext conftest.$ac_ext
8321done
8322ac_cv_sizeof_char=$ac_lo
ccc6cda3 8323else
f73dda09
JA
8324 if test "$cross_compiling" = yes; then
8325 { { echo "$as_me:8325: error: cannot run test program while cross compiling" >&5
8326echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8327 { (exit 1); exit 1; }; }
8328else
8329 cat >conftest.$ac_ext <<_ACEOF
8330#line 8330 "configure"
ccc6cda3 8331#include "confdefs.h"
f73dda09
JA
8332$ac_includes_default
8333int
8334main ()
8335{
8336FILE *f = fopen ("conftest.val", "w");
8337if (!f)
8338 exit (1);
8339fprintf (f, "%d", (sizeof (char)));
8340fclose (f);
8341 ;
8342 return 0;
8343}
8344_ACEOF
8345rm -f conftest$ac_exeext
8346if { (eval echo "$as_me:8346: \"$ac_link\"") >&5
8347 (eval $ac_link) 2>&5
8348 ac_status=$?
8349 echo "$as_me:8349: \$? = $ac_status" >&5
8350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8351 { (eval echo "$as_me:8351: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:8354: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_cv_sizeof_char=`cat conftest.val`
ccc6cda3 8357else
f73dda09
JA
8358 echo "$as_me: program exited with status $ac_status" >&5
8359echo "$as_me: failed program was:" >&5
8360cat conftest.$ac_ext >&5
ccc6cda3 8361fi
f73dda09 8362rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 8363fi
f73dda09
JA
8364fi
8365rm -f conftest.val
8366else
8367 ac_cv_sizeof_char=0
8368fi
8369fi
8370echo "$as_me:8370: result: $ac_cv_sizeof_char" >&5
8371echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8372cat >>confdefs.h <<EOF
8373#define SIZEOF_CHAR $ac_cv_sizeof_char
ccc6cda3
JA
8374EOF
8375
f73dda09
JA
8376echo "$as_me:8376: checking for short" >&5
8377echo $ECHO_N "checking for short... $ECHO_C" >&6
8378if test "${ac_cv_type_short+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380else
8381 cat >conftest.$ac_ext <<_ACEOF
8382#line 8382 "configure"
8383#include "confdefs.h"
8384$ac_includes_default
8385int
8386main ()
8387{
8388if ((short *) 0)
8389 return 0;
8390if (sizeof (short))
8391 return 0;
8392 ;
8393 return 0;
8394}
8395_ACEOF
8396rm -f conftest.$ac_objext
8397if { (eval echo "$as_me:8397: \"$ac_compile\"") >&5
8398 (eval $ac_compile) 2>&5
8399 ac_status=$?
8400 echo "$as_me:8400: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -s conftest.$ac_objext'
8403 { (eval echo "$as_me:8403: \"$ac_try\"") >&5
8404 (eval $ac_try) 2>&5
8405 ac_status=$?
8406 echo "$as_me:8406: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_cv_type_short=yes
8409else
8410 echo "$as_me: failed program was:" >&5
8411cat conftest.$ac_ext >&5
8412ac_cv_type_short=no
8413fi
8414rm -f conftest.$ac_objext conftest.$ac_ext
8415fi
8416echo "$as_me:8416: result: $ac_cv_type_short" >&5
8417echo "${ECHO_T}$ac_cv_type_short" >&6
8418
8419echo "$as_me:8419: checking size of short" >&5
8420echo $ECHO_N "checking size of short... $ECHO_C" >&6
8421if test "${ac_cv_sizeof_short+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8423else
8424 if test "$ac_cv_type_short" = yes; then
8425 if test "$cross_compiling" = yes; then
8426 # Depending upon the size, compute the lo and hi bounds.
8427cat >conftest.$ac_ext <<_ACEOF
8428#line 8428 "configure"
8429#include "confdefs.h"
8430$ac_includes_default
8431int
8432main ()
8433{
8434int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
8435 ;
8436 return 0;
8437}
8438_ACEOF
8439rm -f conftest.$ac_objext
8440if { (eval echo "$as_me:8440: \"$ac_compile\"") >&5
8441 (eval $ac_compile) 2>&5
8442 ac_status=$?
8443 echo "$as_me:8443: \$? = $ac_status" >&5
8444 (exit $ac_status); } &&
8445 { ac_try='test -s conftest.$ac_objext'
8446 { (eval echo "$as_me:8446: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:8449: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 ac_lo=0 ac_mid=0
8452 while :; do
8453 cat >conftest.$ac_ext <<_ACEOF
8454#line 8454 "configure"
8455#include "confdefs.h"
8456$ac_includes_default
8457int
8458main ()
8459{
8460int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
8461 ;
8462 return 0;
8463}
8464_ACEOF
8465rm -f conftest.$ac_objext
8466if { (eval echo "$as_me:8466: \"$ac_compile\"") >&5
8467 (eval $ac_compile) 2>&5
8468 ac_status=$?
8469 echo "$as_me:8469: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -s conftest.$ac_objext'
8472 { (eval echo "$as_me:8472: \"$ac_try\"") >&5
8473 (eval $ac_try) 2>&5
8474 ac_status=$?
8475 echo "$as_me:8475: \$? = $ac_status" >&5
8476 (exit $ac_status); }; }; then
8477 ac_hi=$ac_mid; break
8478else
8479 echo "$as_me: failed program was:" >&5
8480cat conftest.$ac_ext >&5
8481ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8482fi
8483rm -f conftest.$ac_objext conftest.$ac_ext
8484 done
8485else
8486 echo "$as_me: failed program was:" >&5
8487cat conftest.$ac_ext >&5
8488ac_hi=-1 ac_mid=-1
8489 while :; do
8490 cat >conftest.$ac_ext <<_ACEOF
8491#line 8491 "configure"
8492#include "confdefs.h"
8493$ac_includes_default
8494int
8495main ()
8496{
8497int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
8498 ;
8499 return 0;
8500}
8501_ACEOF
8502rm -f conftest.$ac_objext
8503if { (eval echo "$as_me:8503: \"$ac_compile\"") >&5
8504 (eval $ac_compile) 2>&5
8505 ac_status=$?
8506 echo "$as_me:8506: \$? = $ac_status" >&5
8507 (exit $ac_status); } &&
8508 { ac_try='test -s conftest.$ac_objext'
8509 { (eval echo "$as_me:8509: \"$ac_try\"") >&5
8510 (eval $ac_try) 2>&5
8511 ac_status=$?
8512 echo "$as_me:8512: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_lo=$ac_mid; break
8515else
8516 echo "$as_me: failed program was:" >&5
8517cat conftest.$ac_ext >&5
8518ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8519fi
8520rm -f conftest.$ac_objext conftest.$ac_ext
8521 done
ccc6cda3 8522fi
f73dda09
JA
8523rm -f conftest.$ac_objext conftest.$ac_ext
8524# Binary search between lo and hi bounds.
8525while test "x$ac_lo" != "x$ac_hi"; do
8526 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8527 cat >conftest.$ac_ext <<_ACEOF
8528#line 8528 "configure"
8529#include "confdefs.h"
8530$ac_includes_default
8531int
8532main ()
8533{
8534int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
8535 ;
8536 return 0;
8537}
8538_ACEOF
8539rm -f conftest.$ac_objext
8540if { (eval echo "$as_me:8540: \"$ac_compile\"") >&5
8541 (eval $ac_compile) 2>&5
8542 ac_status=$?
8543 echo "$as_me:8543: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try='test -s conftest.$ac_objext'
8546 { (eval echo "$as_me:8546: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:8549: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8551 ac_hi=$ac_mid
8552else
8553 echo "$as_me: failed program was:" >&5
8554cat conftest.$ac_ext >&5
8555ac_lo=`expr $ac_mid + 1`
8556fi
8557rm -f conftest.$ac_objext conftest.$ac_ext
8558done
8559ac_cv_sizeof_short=$ac_lo
8560else
8561 if test "$cross_compiling" = yes; then
8562 { { echo "$as_me:8562: error: cannot run test program while cross compiling" >&5
8563echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8564 { (exit 1); exit 1; }; }
ccc6cda3 8565else
f73dda09
JA
8566 cat >conftest.$ac_ext <<_ACEOF
8567#line 8567 "configure"
ccc6cda3 8568#include "confdefs.h"
f73dda09
JA
8569$ac_includes_default
8570int
8571main ()
8572{
8573FILE *f = fopen ("conftest.val", "w");
8574if (!f)
8575 exit (1);
8576fprintf (f, "%d", (sizeof (short)));
8577fclose (f);
8578 ;
8579 return 0;
8580}
8581_ACEOF
8582rm -f conftest$ac_exeext
8583if { (eval echo "$as_me:8583: \"$ac_link\"") >&5
8584 (eval $ac_link) 2>&5
8585 ac_status=$?
8586 echo "$as_me:8586: \$? = $ac_status" >&5
8587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8588 { (eval echo "$as_me:8588: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:8591: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_sizeof_short=`cat conftest.val`
ccc6cda3 8594else
f73dda09
JA
8595 echo "$as_me: program exited with status $ac_status" >&5
8596echo "$as_me: failed program was:" >&5
8597cat conftest.$ac_ext >&5
ccc6cda3 8598fi
f73dda09 8599rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 8600fi
ccc6cda3 8601fi
f73dda09 8602rm -f conftest.val
ccc6cda3 8603else
f73dda09 8604 ac_cv_sizeof_short=0
ccc6cda3 8605fi
ccc6cda3 8606fi
f73dda09
JA
8607echo "$as_me:8607: result: $ac_cv_sizeof_short" >&5
8608echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8609cat >>confdefs.h <<EOF
8610#define SIZEOF_SHORT $ac_cv_sizeof_short
ccc6cda3
JA
8611EOF
8612
f73dda09
JA
8613echo "$as_me:8613: checking for int" >&5
8614echo $ECHO_N "checking for int... $ECHO_C" >&6
8615if test "${ac_cv_type_int+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8617else
8618 cat >conftest.$ac_ext <<_ACEOF
8619#line 8619 "configure"
8620#include "confdefs.h"
8621$ac_includes_default
8622int
8623main ()
8624{
8625if ((int *) 0)
8626 return 0;
8627if (sizeof (int))
8628 return 0;
8629 ;
8630 return 0;
8631}
8632_ACEOF
8633rm -f conftest.$ac_objext
8634if { (eval echo "$as_me:8634: \"$ac_compile\"") >&5
8635 (eval $ac_compile) 2>&5
8636 ac_status=$?
8637 echo "$as_me:8637: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try='test -s conftest.$ac_objext'
8640 { (eval echo "$as_me:8640: \"$ac_try\"") >&5
8641 (eval $ac_try) 2>&5
8642 ac_status=$?
8643 echo "$as_me:8643: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 ac_cv_type_int=yes
8646else
8647 echo "$as_me: failed program was:" >&5
8648cat conftest.$ac_ext >&5
8649ac_cv_type_int=no
8650fi
8651rm -f conftest.$ac_objext conftest.$ac_ext
8652fi
8653echo "$as_me:8653: result: $ac_cv_type_int" >&5
8654echo "${ECHO_T}$ac_cv_type_int" >&6
8655
8656echo "$as_me:8656: checking size of int" >&5
8657echo $ECHO_N "checking size of int... $ECHO_C" >&6
8658if test "${ac_cv_sizeof_int+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8660else
8661 if test "$ac_cv_type_int" = yes; then
8662 if test "$cross_compiling" = yes; then
8663 # Depending upon the size, compute the lo and hi bounds.
8664cat >conftest.$ac_ext <<_ACEOF
8665#line 8665 "configure"
8666#include "confdefs.h"
8667$ac_includes_default
8668int
8669main ()
8670{
8671int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
8672 ;
8673 return 0;
8674}
8675_ACEOF
8676rm -f conftest.$ac_objext
8677if { (eval echo "$as_me:8677: \"$ac_compile\"") >&5
8678 (eval $ac_compile) 2>&5
8679 ac_status=$?
8680 echo "$as_me:8680: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
8682 { ac_try='test -s conftest.$ac_objext'
8683 { (eval echo "$as_me:8683: \"$ac_try\"") >&5
8684 (eval $ac_try) 2>&5
8685 ac_status=$?
8686 echo "$as_me:8686: \$? = $ac_status" >&5
8687 (exit $ac_status); }; }; then
8688 ac_lo=0 ac_mid=0
8689 while :; do
8690 cat >conftest.$ac_ext <<_ACEOF
8691#line 8691 "configure"
8692#include "confdefs.h"
8693$ac_includes_default
8694int
8695main ()
8696{
8697int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
8698 ;
8699 return 0;
8700}
8701_ACEOF
8702rm -f conftest.$ac_objext
8703if { (eval echo "$as_me:8703: \"$ac_compile\"") >&5
8704 (eval $ac_compile) 2>&5
8705 ac_status=$?
8706 echo "$as_me:8706: \$? = $ac_status" >&5
8707 (exit $ac_status); } &&
8708 { ac_try='test -s conftest.$ac_objext'
8709 { (eval echo "$as_me:8709: \"$ac_try\"") >&5
8710 (eval $ac_try) 2>&5
8711 ac_status=$?
8712 echo "$as_me:8712: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 ac_hi=$ac_mid; break
8715else
8716 echo "$as_me: failed program was:" >&5
8717cat conftest.$ac_ext >&5
8718ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8719fi
8720rm -f conftest.$ac_objext conftest.$ac_ext
8721 done
8722else
8723 echo "$as_me: failed program was:" >&5
8724cat conftest.$ac_ext >&5
8725ac_hi=-1 ac_mid=-1
8726 while :; do
8727 cat >conftest.$ac_ext <<_ACEOF
8728#line 8728 "configure"
8729#include "confdefs.h"
8730$ac_includes_default
8731int
8732main ()
8733{
8734int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
8735 ;
8736 return 0;
8737}
8738_ACEOF
8739rm -f conftest.$ac_objext
8740if { (eval echo "$as_me:8740: \"$ac_compile\"") >&5
8741 (eval $ac_compile) 2>&5
8742 ac_status=$?
8743 echo "$as_me:8743: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try='test -s conftest.$ac_objext'
8746 { (eval echo "$as_me:8746: \"$ac_try\"") >&5
8747 (eval $ac_try) 2>&5
8748 ac_status=$?
8749 echo "$as_me:8749: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_lo=$ac_mid; break
8752else
8753 echo "$as_me: failed program was:" >&5
8754cat conftest.$ac_ext >&5
8755ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8756fi
8757rm -f conftest.$ac_objext conftest.$ac_ext
8758 done
ccc6cda3 8759fi
f73dda09
JA
8760rm -f conftest.$ac_objext conftest.$ac_ext
8761# Binary search between lo and hi bounds.
8762while test "x$ac_lo" != "x$ac_hi"; do
8763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8764 cat >conftest.$ac_ext <<_ACEOF
8765#line 8765 "configure"
8766#include "confdefs.h"
8767$ac_includes_default
8768int
8769main ()
8770{
8771int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
8772 ;
8773 return 0;
8774}
8775_ACEOF
8776rm -f conftest.$ac_objext
8777if { (eval echo "$as_me:8777: \"$ac_compile\"") >&5
8778 (eval $ac_compile) 2>&5
8779 ac_status=$?
8780 echo "$as_me:8780: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try='test -s conftest.$ac_objext'
8783 { (eval echo "$as_me:8783: \"$ac_try\"") >&5
8784 (eval $ac_try) 2>&5
8785 ac_status=$?
8786 echo "$as_me:8786: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8788 ac_hi=$ac_mid
8789else
8790 echo "$as_me: failed program was:" >&5
8791cat conftest.$ac_ext >&5
8792ac_lo=`expr $ac_mid + 1`
8793fi
8794rm -f conftest.$ac_objext conftest.$ac_ext
8795done
8796ac_cv_sizeof_int=$ac_lo
8797else
8798 if test "$cross_compiling" = yes; then
8799 { { echo "$as_me:8799: error: cannot run test program while cross compiling" >&5
8800echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8801 { (exit 1); exit 1; }; }
ccc6cda3 8802else
f73dda09
JA
8803 cat >conftest.$ac_ext <<_ACEOF
8804#line 8804 "configure"
ccc6cda3 8805#include "confdefs.h"
f73dda09
JA
8806$ac_includes_default
8807int
8808main ()
8809{
8810FILE *f = fopen ("conftest.val", "w");
8811if (!f)
8812 exit (1);
8813fprintf (f, "%d", (sizeof (int)));
8814fclose (f);
8815 ;
8816 return 0;
8817}
8818_ACEOF
8819rm -f conftest$ac_exeext
8820if { (eval echo "$as_me:8820: \"$ac_link\"") >&5
8821 (eval $ac_link) 2>&5
8822 ac_status=$?
8823 echo "$as_me:8823: \$? = $ac_status" >&5
8824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8825 { (eval echo "$as_me:8825: \"$ac_try\"") >&5
8826 (eval $ac_try) 2>&5
8827 ac_status=$?
8828 echo "$as_me:8828: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
8830 ac_cv_sizeof_int=`cat conftest.val`
ccc6cda3 8831else
f73dda09
JA
8832 echo "$as_me: program exited with status $ac_status" >&5
8833echo "$as_me: failed program was:" >&5
8834cat conftest.$ac_ext >&5
ccc6cda3 8835fi
f73dda09 8836rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 8837fi
ccc6cda3 8838fi
f73dda09 8839rm -f conftest.val
ccc6cda3 8840else
f73dda09 8841 ac_cv_sizeof_int=0
ccc6cda3 8842fi
ccc6cda3 8843fi
f73dda09
JA
8844echo "$as_me:8844: result: $ac_cv_sizeof_int" >&5
8845echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8846cat >>confdefs.h <<EOF
8847#define SIZEOF_INT $ac_cv_sizeof_int
ccc6cda3
JA
8848EOF
8849
f73dda09
JA
8850echo "$as_me:8850: checking for long" >&5
8851echo $ECHO_N "checking for long... $ECHO_C" >&6
8852if test "${ac_cv_type_long+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 8854else
f73dda09
JA
8855 cat >conftest.$ac_ext <<_ACEOF
8856#line 8856 "configure"
ccc6cda3 8857#include "confdefs.h"
f73dda09
JA
8858$ac_includes_default
8859int
8860main ()
8861{
8862if ((long *) 0)
8863 return 0;
8864if (sizeof (long))
8865 return 0;
8866 ;
8867 return 0;
8868}
8869_ACEOF
8870rm -f conftest.$ac_objext
8871if { (eval echo "$as_me:8871: \"$ac_compile\"") >&5
8872 (eval $ac_compile) 2>&5
8873 ac_status=$?
8874 echo "$as_me:8874: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -s conftest.$ac_objext'
8877 { (eval echo "$as_me:8877: \"$ac_try\"") >&5
8878 (eval $ac_try) 2>&5
8879 ac_status=$?
8880 echo "$as_me:8880: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8882 ac_cv_type_long=yes
8883else
8884 echo "$as_me: failed program was:" >&5
8885cat conftest.$ac_ext >&5
8886ac_cv_type_long=no
8887fi
8888rm -f conftest.$ac_objext conftest.$ac_ext
8889fi
8890echo "$as_me:8890: result: $ac_cv_type_long" >&5
8891echo "${ECHO_T}$ac_cv_type_long" >&6
8892
8893echo "$as_me:8893: checking size of long" >&5
8894echo $ECHO_N "checking size of long... $ECHO_C" >&6
8895if test "${ac_cv_sizeof_long+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8897else
8898 if test "$ac_cv_type_long" = yes; then
8899 if test "$cross_compiling" = yes; then
8900 # Depending upon the size, compute the lo and hi bounds.
8901cat >conftest.$ac_ext <<_ACEOF
8902#line 8902 "configure"
8903#include "confdefs.h"
8904$ac_includes_default
8905int
8906main ()
8907{
8908int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
8909 ;
8910 return 0;
8911}
8912_ACEOF
8913rm -f conftest.$ac_objext
8914if { (eval echo "$as_me:8914: \"$ac_compile\"") >&5
8915 (eval $ac_compile) 2>&5
8916 ac_status=$?
8917 echo "$as_me:8917: \$? = $ac_status" >&5
8918 (exit $ac_status); } &&
8919 { ac_try='test -s conftest.$ac_objext'
8920 { (eval echo "$as_me:8920: \"$ac_try\"") >&5
8921 (eval $ac_try) 2>&5
8922 ac_status=$?
8923 echo "$as_me:8923: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
8925 ac_lo=0 ac_mid=0
8926 while :; do
8927 cat >conftest.$ac_ext <<_ACEOF
8928#line 8928 "configure"
8929#include "confdefs.h"
8930$ac_includes_default
8931int
8932main ()
8933{
8934int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
8935 ;
8936 return 0;
8937}
8938_ACEOF
8939rm -f conftest.$ac_objext
8940if { (eval echo "$as_me:8940: \"$ac_compile\"") >&5
8941 (eval $ac_compile) 2>&5
8942 ac_status=$?
8943 echo "$as_me:8943: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -s conftest.$ac_objext'
8946 { (eval echo "$as_me:8946: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:8949: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 ac_hi=$ac_mid; break
8952else
8953 echo "$as_me: failed program was:" >&5
8954cat conftest.$ac_ext >&5
8955ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8956fi
8957rm -f conftest.$ac_objext conftest.$ac_ext
8958 done
ccc6cda3 8959else
f73dda09
JA
8960 echo "$as_me: failed program was:" >&5
8961cat conftest.$ac_ext >&5
8962ac_hi=-1 ac_mid=-1
8963 while :; do
8964 cat >conftest.$ac_ext <<_ACEOF
8965#line 8965 "configure"
8966#include "confdefs.h"
8967$ac_includes_default
8968int
8969main ()
8970{
8971int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
8972 ;
8973 return 0;
8974}
8975_ACEOF
8976rm -f conftest.$ac_objext
8977if { (eval echo "$as_me:8977: \"$ac_compile\"") >&5
8978 (eval $ac_compile) 2>&5
8979 ac_status=$?
8980 echo "$as_me:8980: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -s conftest.$ac_objext'
8983 { (eval echo "$as_me:8983: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:8986: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8988 ac_lo=$ac_mid; break
8989else
8990 echo "$as_me: failed program was:" >&5
8991cat conftest.$ac_ext >&5
8992ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8993fi
8994rm -f conftest.$ac_objext conftest.$ac_ext
8995 done
ccc6cda3 8996fi
f73dda09
JA
8997rm -f conftest.$ac_objext conftest.$ac_ext
8998# Binary search between lo and hi bounds.
8999while test "x$ac_lo" != "x$ac_hi"; do
9000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9001 cat >conftest.$ac_ext <<_ACEOF
9002#line 9002 "configure"
9003#include "confdefs.h"
9004$ac_includes_default
9005int
9006main ()
9007{
9008int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
9009 ;
9010 return 0;
9011}
9012_ACEOF
9013rm -f conftest.$ac_objext
9014if { (eval echo "$as_me:9014: \"$ac_compile\"") >&5
9015 (eval $ac_compile) 2>&5
9016 ac_status=$?
9017 echo "$as_me:9017: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -s conftest.$ac_objext'
9020 { (eval echo "$as_me:9020: \"$ac_try\"") >&5
9021 (eval $ac_try) 2>&5
9022 ac_status=$?
9023 echo "$as_me:9023: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_hi=$ac_mid
9026else
9027 echo "$as_me: failed program was:" >&5
9028cat conftest.$ac_ext >&5
9029ac_lo=`expr $ac_mid + 1`
9030fi
9031rm -f conftest.$ac_objext conftest.$ac_ext
9032done
9033ac_cv_sizeof_long=$ac_lo
bb70624e
JA
9034else
9035 if test "$cross_compiling" = yes; then
f73dda09
JA
9036 { { echo "$as_me:9036: error: cannot run test program while cross compiling" >&5
9037echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9038 { (exit 1); exit 1; }; }
bb70624e 9039else
f73dda09
JA
9040 cat >conftest.$ac_ext <<_ACEOF
9041#line 9041 "configure"
bb70624e 9042#include "confdefs.h"
f73dda09
JA
9043$ac_includes_default
9044int
9045main ()
bb70624e 9046{
f73dda09
JA
9047FILE *f = fopen ("conftest.val", "w");
9048if (!f)
9049 exit (1);
9050fprintf (f, "%d", (sizeof (long)));
9051fclose (f);
9052 ;
9053 return 0;
bb70624e 9054}
f73dda09
JA
9055_ACEOF
9056rm -f conftest$ac_exeext
9057if { (eval echo "$as_me:9057: \"$ac_link\"") >&5
9058 (eval $ac_link) 2>&5
9059 ac_status=$?
9060 echo "$as_me:9060: \$? = $ac_status" >&5
9061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9062 { (eval echo "$as_me:9062: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:9065: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_sizeof_long=`cat conftest.val`
bb70624e 9068else
f73dda09
JA
9069 echo "$as_me: program exited with status $ac_status" >&5
9070echo "$as_me: failed program was:" >&5
9071cat conftest.$ac_ext >&5
bb70624e 9072fi
f73dda09 9073rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 9074fi
bb70624e 9075fi
f73dda09
JA
9076rm -f conftest.val
9077else
9078 ac_cv_sizeof_long=0
9079fi
9080fi
9081echo "$as_me:9081: result: $ac_cv_sizeof_long" >&5
9082echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9083cat >>confdefs.h <<EOF
9084#define SIZEOF_LONG $ac_cv_sizeof_long
bb70624e
JA
9085EOF
9086
f73dda09
JA
9087echo "$as_me:9087: checking for char *" >&5
9088echo $ECHO_N "checking for char *... $ECHO_C" >&6
9089if test "${ac_cv_type_char_p+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091else
9092 cat >conftest.$ac_ext <<_ACEOF
9093#line 9093 "configure"
9094#include "confdefs.h"
9095$ac_includes_default
9096int
9097main ()
9098{
9099if ((char * *) 0)
9100 return 0;
9101if (sizeof (char *))
9102 return 0;
9103 ;
9104 return 0;
9105}
9106_ACEOF
9107rm -f conftest.$ac_objext
9108if { (eval echo "$as_me:9108: \"$ac_compile\"") >&5
9109 (eval $ac_compile) 2>&5
9110 ac_status=$?
9111 echo "$as_me:9111: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -s conftest.$ac_objext'
9114 { (eval echo "$as_me:9114: \"$ac_try\"") >&5
9115 (eval $ac_try) 2>&5
9116 ac_status=$?
9117 echo "$as_me:9117: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
9119 ac_cv_type_char_p=yes
9120else
9121 echo "$as_me: failed program was:" >&5
9122cat conftest.$ac_ext >&5
9123ac_cv_type_char_p=no
9124fi
9125rm -f conftest.$ac_objext conftest.$ac_ext
9126fi
9127echo "$as_me:9127: result: $ac_cv_type_char_p" >&5
9128echo "${ECHO_T}$ac_cv_type_char_p" >&6
9129
9130echo "$as_me:9130: checking size of char *" >&5
9131echo $ECHO_N "checking size of char *... $ECHO_C" >&6
9132if test "${ac_cv_sizeof_char_p+set}" = set; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9134else
9135 if test "$ac_cv_type_char_p" = yes; then
9136 if test "$cross_compiling" = yes; then
9137 # Depending upon the size, compute the lo and hi bounds.
9138cat >conftest.$ac_ext <<_ACEOF
9139#line 9139 "configure"
9140#include "confdefs.h"
9141$ac_includes_default
9142int
9143main ()
9144{
9145int _array_ [1 - 2 * !((sizeof (char *)) >= 0)]
9146 ;
9147 return 0;
9148}
9149_ACEOF
9150rm -f conftest.$ac_objext
9151if { (eval echo "$as_me:9151: \"$ac_compile\"") >&5
9152 (eval $ac_compile) 2>&5
9153 ac_status=$?
9154 echo "$as_me:9154: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -s conftest.$ac_objext'
9157 { (eval echo "$as_me:9157: \"$ac_try\"") >&5
9158 (eval $ac_try) 2>&5
9159 ac_status=$?
9160 echo "$as_me:9160: \$? = $ac_status" >&5
9161 (exit $ac_status); }; }; then
9162 ac_lo=0 ac_mid=0
9163 while :; do
9164 cat >conftest.$ac_ext <<_ACEOF
9165#line 9165 "configure"
9166#include "confdefs.h"
9167$ac_includes_default
9168int
9169main ()
9170{
9171int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
9172 ;
9173 return 0;
9174}
9175_ACEOF
9176rm -f conftest.$ac_objext
9177if { (eval echo "$as_me:9177: \"$ac_compile\"") >&5
9178 (eval $ac_compile) 2>&5
9179 ac_status=$?
9180 echo "$as_me:9180: \$? = $ac_status" >&5
9181 (exit $ac_status); } &&
9182 { ac_try='test -s conftest.$ac_objext'
9183 { (eval echo "$as_me:9183: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:9186: \$? = $ac_status" >&5
9187 (exit $ac_status); }; }; then
9188 ac_hi=$ac_mid; break
9189else
9190 echo "$as_me: failed program was:" >&5
9191cat conftest.$ac_ext >&5
9192ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9193fi
9194rm -f conftest.$ac_objext conftest.$ac_ext
9195 done
9196else
9197 echo "$as_me: failed program was:" >&5
9198cat conftest.$ac_ext >&5
9199ac_hi=-1 ac_mid=-1
9200 while :; do
9201 cat >conftest.$ac_ext <<_ACEOF
9202#line 9202 "configure"
9203#include "confdefs.h"
9204$ac_includes_default
9205int
9206main ()
9207{
9208int _array_ [1 - 2 * !((sizeof (char *)) >= $ac_mid)]
9209 ;
9210 return 0;
9211}
9212_ACEOF
9213rm -f conftest.$ac_objext
9214if { (eval echo "$as_me:9214: \"$ac_compile\"") >&5
9215 (eval $ac_compile) 2>&5
9216 ac_status=$?
9217 echo "$as_me:9217: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -s conftest.$ac_objext'
9220 { (eval echo "$as_me:9220: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:9223: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_lo=$ac_mid; break
9226else
9227 echo "$as_me: failed program was:" >&5
9228cat conftest.$ac_ext >&5
9229ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9230fi
9231rm -f conftest.$ac_objext conftest.$ac_ext
9232 done
9233fi
9234rm -f conftest.$ac_objext conftest.$ac_ext
9235# Binary search between lo and hi bounds.
9236while test "x$ac_lo" != "x$ac_hi"; do
9237 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9238 cat >conftest.$ac_ext <<_ACEOF
9239#line 9239 "configure"
9240#include "confdefs.h"
9241$ac_includes_default
9242int
9243main ()
9244{
9245int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
9246 ;
9247 return 0;
9248}
9249_ACEOF
9250rm -f conftest.$ac_objext
9251if { (eval echo "$as_me:9251: \"$ac_compile\"") >&5
9252 (eval $ac_compile) 2>&5
9253 ac_status=$?
9254 echo "$as_me:9254: \$? = $ac_status" >&5
9255 (exit $ac_status); } &&
9256 { ac_try='test -s conftest.$ac_objext'
9257 { (eval echo "$as_me:9257: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:9260: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
9262 ac_hi=$ac_mid
9263else
9264 echo "$as_me: failed program was:" >&5
9265cat conftest.$ac_ext >&5
9266ac_lo=`expr $ac_mid + 1`
9267fi
9268rm -f conftest.$ac_objext conftest.$ac_ext
9269done
9270ac_cv_sizeof_char_p=$ac_lo
bb70624e
JA
9271else
9272 if test "$cross_compiling" = yes; then
f73dda09
JA
9273 { { echo "$as_me:9273: error: cannot run test program while cross compiling" >&5
9274echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9275 { (exit 1); exit 1; }; }
bb70624e 9276else
f73dda09
JA
9277 cat >conftest.$ac_ext <<_ACEOF
9278#line 9278 "configure"
bb70624e 9279#include "confdefs.h"
f73dda09
JA
9280$ac_includes_default
9281int
9282main ()
bb70624e 9283{
f73dda09
JA
9284FILE *f = fopen ("conftest.val", "w");
9285if (!f)
9286 exit (1);
9287fprintf (f, "%d", (sizeof (char *)));
9288fclose (f);
9289 ;
9290 return 0;
bb70624e 9291}
f73dda09
JA
9292_ACEOF
9293rm -f conftest$ac_exeext
9294if { (eval echo "$as_me:9294: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>&5
9296 ac_status=$?
9297 echo "$as_me:9297: \$? = $ac_status" >&5
9298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9299 { (eval echo "$as_me:9299: \"$ac_try\"") >&5
9300 (eval $ac_try) 2>&5
9301 ac_status=$?
9302 echo "$as_me:9302: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_cv_sizeof_char_p=`cat conftest.val`
bb70624e 9305else
f73dda09
JA
9306 echo "$as_me: program exited with status $ac_status" >&5
9307echo "$as_me: failed program was:" >&5
9308cat conftest.$ac_ext >&5
bb70624e 9309fi
f73dda09 9310rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 9311fi
bb70624e 9312fi
f73dda09
JA
9313rm -f conftest.val
9314else
9315 ac_cv_sizeof_char_p=0
9316fi
9317fi
9318echo "$as_me:9318: result: $ac_cv_sizeof_char_p" >&5
9319echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
9320cat >>confdefs.h <<EOF
9321#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
bb70624e
JA
9322EOF
9323
f73dda09
JA
9324echo "$as_me:9324: checking for double" >&5
9325echo $ECHO_N "checking for double... $ECHO_C" >&6
9326if test "${ac_cv_type_double+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 9328else
f73dda09
JA
9329 cat >conftest.$ac_ext <<_ACEOF
9330#line 9330 "configure"
9331#include "confdefs.h"
9332$ac_includes_default
9333int
9334main ()
9335{
9336if ((double *) 0)
9337 return 0;
9338if (sizeof (double))
9339 return 0;
9340 ;
9341 return 0;
9342}
9343_ACEOF
9344rm -f conftest.$ac_objext
9345if { (eval echo "$as_me:9345: \"$ac_compile\"") >&5
9346 (eval $ac_compile) 2>&5
9347 ac_status=$?
9348 echo "$as_me:9348: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -s conftest.$ac_objext'
9351 { (eval echo "$as_me:9351: \"$ac_try\"") >&5
9352 (eval $ac_try) 2>&5
9353 ac_status=$?
9354 echo "$as_me:9354: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 ac_cv_type_double=yes
9357else
9358 echo "$as_me: failed program was:" >&5
9359cat conftest.$ac_ext >&5
9360ac_cv_type_double=no
9361fi
9362rm -f conftest.$ac_objext conftest.$ac_ext
9363fi
9364echo "$as_me:9364: result: $ac_cv_type_double" >&5
9365echo "${ECHO_T}$ac_cv_type_double" >&6
9366
9367echo "$as_me:9367: checking size of double" >&5
9368echo $ECHO_N "checking size of double... $ECHO_C" >&6
9369if test "${ac_cv_sizeof_double+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9371else
9372 if test "$ac_cv_type_double" = yes; then
cce855bc 9373 if test "$cross_compiling" = yes; then
f73dda09
JA
9374 # Depending upon the size, compute the lo and hi bounds.
9375cat >conftest.$ac_ext <<_ACEOF
9376#line 9376 "configure"
cce855bc 9377#include "confdefs.h"
f73dda09
JA
9378$ac_includes_default
9379int
9380main ()
cce855bc 9381{
f73dda09
JA
9382int _array_ [1 - 2 * !((sizeof (double)) >= 0)]
9383 ;
9384 return 0;
cce855bc 9385}
f73dda09
JA
9386_ACEOF
9387rm -f conftest.$ac_objext
9388if { (eval echo "$as_me:9388: \"$ac_compile\"") >&5
9389 (eval $ac_compile) 2>&5
9390 ac_status=$?
9391 echo "$as_me:9391: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try='test -s conftest.$ac_objext'
9394 { (eval echo "$as_me:9394: \"$ac_try\"") >&5
9395 (eval $ac_try) 2>&5
9396 ac_status=$?
9397 echo "$as_me:9397: \$? = $ac_status" >&5
9398 (exit $ac_status); }; }; then
9399 ac_lo=0 ac_mid=0
9400 while :; do
9401 cat >conftest.$ac_ext <<_ACEOF
9402#line 9402 "configure"
9403#include "confdefs.h"
9404$ac_includes_default
9405int
9406main ()
9407{
9408int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)]
9409 ;
9410 return 0;
9411}
9412_ACEOF
9413rm -f conftest.$ac_objext
9414if { (eval echo "$as_me:9414: \"$ac_compile\"") >&5
9415 (eval $ac_compile) 2>&5
9416 ac_status=$?
9417 echo "$as_me:9417: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -s conftest.$ac_objext'
9420 { (eval echo "$as_me:9420: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:9423: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 ac_hi=$ac_mid; break
9426else
9427 echo "$as_me: failed program was:" >&5
9428cat conftest.$ac_ext >&5
9429ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9430fi
9431rm -f conftest.$ac_objext conftest.$ac_ext
9432 done
cce855bc 9433else
f73dda09
JA
9434 echo "$as_me: failed program was:" >&5
9435cat conftest.$ac_ext >&5
9436ac_hi=-1 ac_mid=-1
9437 while :; do
9438 cat >conftest.$ac_ext <<_ACEOF
9439#line 9439 "configure"
9440#include "confdefs.h"
9441$ac_includes_default
9442int
9443main ()
9444{
9445int _array_ [1 - 2 * !((sizeof (double)) >= $ac_mid)]
9446 ;
9447 return 0;
9448}
9449_ACEOF
9450rm -f conftest.$ac_objext
9451if { (eval echo "$as_me:9451: \"$ac_compile\"") >&5
9452 (eval $ac_compile) 2>&5
9453 ac_status=$?
9454 echo "$as_me:9454: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:9457: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:9460: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_lo=$ac_mid; break
9463else
9464 echo "$as_me: failed program was:" >&5
9465cat conftest.$ac_ext >&5
9466ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9467fi
9468rm -f conftest.$ac_objext conftest.$ac_ext
9469 done
cce855bc 9470fi
f73dda09
JA
9471rm -f conftest.$ac_objext conftest.$ac_ext
9472# Binary search between lo and hi bounds.
9473while test "x$ac_lo" != "x$ac_hi"; do
9474 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9475 cat >conftest.$ac_ext <<_ACEOF
9476#line 9476 "configure"
9477#include "confdefs.h"
9478$ac_includes_default
9479int
9480main ()
9481{
9482int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)]
9483 ;
9484 return 0;
9485}
9486_ACEOF
9487rm -f conftest.$ac_objext
9488if { (eval echo "$as_me:9488: \"$ac_compile\"") >&5
9489 (eval $ac_compile) 2>&5
9490 ac_status=$?
9491 echo "$as_me:9491: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try='test -s conftest.$ac_objext'
9494 { (eval echo "$as_me:9494: \"$ac_try\"") >&5
9495 (eval $ac_try) 2>&5
9496 ac_status=$?
9497 echo "$as_me:9497: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9499 ac_hi=$ac_mid
9500else
9501 echo "$as_me: failed program was:" >&5
9502cat conftest.$ac_ext >&5
9503ac_lo=`expr $ac_mid + 1`
9504fi
9505rm -f conftest.$ac_objext conftest.$ac_ext
9506done
9507ac_cv_sizeof_double=$ac_lo
cce855bc
JA
9508else
9509 if test "$cross_compiling" = yes; then
f73dda09
JA
9510 { { echo "$as_me:9510: error: cannot run test program while cross compiling" >&5
9511echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9512 { (exit 1); exit 1; }; }
cce855bc 9513else
f73dda09
JA
9514 cat >conftest.$ac_ext <<_ACEOF
9515#line 9515 "configure"
cce855bc 9516#include "confdefs.h"
f73dda09
JA
9517$ac_includes_default
9518int
9519main ()
cce855bc 9520{
f73dda09
JA
9521FILE *f = fopen ("conftest.val", "w");
9522if (!f)
9523 exit (1);
9524fprintf (f, "%d", (sizeof (double)));
9525fclose (f);
9526 ;
9527 return 0;
cce855bc 9528}
f73dda09
JA
9529_ACEOF
9530rm -f conftest$ac_exeext
9531if { (eval echo "$as_me:9531: \"$ac_link\"") >&5
9532 (eval $ac_link) 2>&5
9533 ac_status=$?
9534 echo "$as_me:9534: \$? = $ac_status" >&5
9535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9536 { (eval echo "$as_me:9536: \"$ac_try\"") >&5
9537 (eval $ac_try) 2>&5
9538 ac_status=$?
9539 echo "$as_me:9539: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_sizeof_double=`cat conftest.val`
cce855bc 9542else
f73dda09
JA
9543 echo "$as_me: program exited with status $ac_status" >&5
9544echo "$as_me: failed program was:" >&5
9545cat conftest.$ac_ext >&5
cce855bc 9546fi
f73dda09 9547rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cce855bc 9548fi
cce855bc 9549fi
f73dda09
JA
9550rm -f conftest.val
9551else
9552 ac_cv_sizeof_double=0
9553fi
9554fi
9555echo "$as_me:9555: result: $ac_cv_sizeof_double" >&5
9556echo "${ECHO_T}$ac_cv_sizeof_double" >&6
9557cat >>confdefs.h <<EOF
9558#define SIZEOF_DOUBLE $ac_cv_sizeof_double
cce855bc
JA
9559EOF
9560
f73dda09
JA
9561echo "$as_me:9561: checking for long long" >&5
9562echo $ECHO_N "checking for long long... $ECHO_C" >&6
9563if test "${ac_cv_type_long_long+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 9565else
f73dda09
JA
9566 cat >conftest.$ac_ext <<_ACEOF
9567#line 9567 "configure"
9568#include "confdefs.h"
9569$ac_includes_default
9570int
9571main ()
9572{
9573if ((long long *) 0)
9574 return 0;
9575if (sizeof (long long))
9576 return 0;
9577 ;
9578 return 0;
9579}
9580_ACEOF
9581rm -f conftest.$ac_objext
9582if { (eval echo "$as_me:9582: \"$ac_compile\"") >&5
9583 (eval $ac_compile) 2>&5
9584 ac_status=$?
9585 echo "$as_me:9585: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -s conftest.$ac_objext'
9588 { (eval echo "$as_me:9588: \"$ac_try\"") >&5
9589 (eval $ac_try) 2>&5
9590 ac_status=$?
9591 echo "$as_me:9591: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 ac_cv_type_long_long=yes
9594else
9595 echo "$as_me: failed program was:" >&5
9596cat conftest.$ac_ext >&5
9597ac_cv_type_long_long=no
9598fi
9599rm -f conftest.$ac_objext conftest.$ac_ext
9600fi
9601echo "$as_me:9601: result: $ac_cv_type_long_long" >&5
9602echo "${ECHO_T}$ac_cv_type_long_long" >&6
9603
9604echo "$as_me:9604: checking size of long long" >&5
9605echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9606if test "${ac_cv_sizeof_long_long+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608else
9609 if test "$ac_cv_type_long_long" = yes; then
cce855bc 9610 if test "$cross_compiling" = yes; then
f73dda09
JA
9611 # Depending upon the size, compute the lo and hi bounds.
9612cat >conftest.$ac_ext <<_ACEOF
9613#line 9613 "configure"
cce855bc 9614#include "confdefs.h"
f73dda09
JA
9615$ac_includes_default
9616int
9617main ()
cce855bc 9618{
f73dda09
JA
9619int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
9620 ;
9621 return 0;
cce855bc 9622}
f73dda09
JA
9623_ACEOF
9624rm -f conftest.$ac_objext
9625if { (eval echo "$as_me:9625: \"$ac_compile\"") >&5
9626 (eval $ac_compile) 2>&5
9627 ac_status=$?
9628 echo "$as_me:9628: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try='test -s conftest.$ac_objext'
9631 { (eval echo "$as_me:9631: \"$ac_try\"") >&5
9632 (eval $ac_try) 2>&5
9633 ac_status=$?
9634 echo "$as_me:9634: \$? = $ac_status" >&5
9635 (exit $ac_status); }; }; then
9636 ac_lo=0 ac_mid=0
9637 while :; do
9638 cat >conftest.$ac_ext <<_ACEOF
9639#line 9639 "configure"
9640#include "confdefs.h"
9641$ac_includes_default
9642int
9643main ()
9644{
9645int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
9646 ;
9647 return 0;
9648}
9649_ACEOF
9650rm -f conftest.$ac_objext
9651if { (eval echo "$as_me:9651: \"$ac_compile\"") >&5
9652 (eval $ac_compile) 2>&5
9653 ac_status=$?
9654 echo "$as_me:9654: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try='test -s conftest.$ac_objext'
9657 { (eval echo "$as_me:9657: \"$ac_try\"") >&5
9658 (eval $ac_try) 2>&5
9659 ac_status=$?
9660 echo "$as_me:9660: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 ac_hi=$ac_mid; break
9663else
9664 echo "$as_me: failed program was:" >&5
9665cat conftest.$ac_ext >&5
9666ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9667fi
9668rm -f conftest.$ac_objext conftest.$ac_ext
9669 done
cce855bc 9670else
f73dda09
JA
9671 echo "$as_me: failed program was:" >&5
9672cat conftest.$ac_ext >&5
9673ac_hi=-1 ac_mid=-1
9674 while :; do
9675 cat >conftest.$ac_ext <<_ACEOF
9676#line 9676 "configure"
9677#include "confdefs.h"
9678$ac_includes_default
9679int
9680main ()
9681{
9682int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
9683 ;
9684 return 0;
9685}
9686_ACEOF
9687rm -f conftest.$ac_objext
9688if { (eval echo "$as_me:9688: \"$ac_compile\"") >&5
9689 (eval $ac_compile) 2>&5
9690 ac_status=$?
9691 echo "$as_me:9691: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -s conftest.$ac_objext'
9694 { (eval echo "$as_me:9694: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:9697: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_lo=$ac_mid; break
9700else
9701 echo "$as_me: failed program was:" >&5
9702cat conftest.$ac_ext >&5
9703ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9704fi
9705rm -f conftest.$ac_objext conftest.$ac_ext
9706 done
cce855bc 9707fi
f73dda09
JA
9708rm -f conftest.$ac_objext conftest.$ac_ext
9709# Binary search between lo and hi bounds.
9710while test "x$ac_lo" != "x$ac_hi"; do
9711 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9712 cat >conftest.$ac_ext <<_ACEOF
9713#line 9713 "configure"
9714#include "confdefs.h"
9715$ac_includes_default
9716int
9717main ()
9718{
9719int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
9720 ;
9721 return 0;
9722}
9723_ACEOF
9724rm -f conftest.$ac_objext
9725if { (eval echo "$as_me:9725: \"$ac_compile\"") >&5
9726 (eval $ac_compile) 2>&5
9727 ac_status=$?
9728 echo "$as_me:9728: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -s conftest.$ac_objext'
9731 { (eval echo "$as_me:9731: \"$ac_try\"") >&5
9732 (eval $ac_try) 2>&5
9733 ac_status=$?
9734 echo "$as_me:9734: \$? = $ac_status" >&5
9735 (exit $ac_status); }; }; then
9736 ac_hi=$ac_mid
9737else
9738 echo "$as_me: failed program was:" >&5
9739cat conftest.$ac_ext >&5
9740ac_lo=`expr $ac_mid + 1`
9741fi
9742rm -f conftest.$ac_objext conftest.$ac_ext
9743done
9744ac_cv_sizeof_long_long=$ac_lo
b72432fd 9745else
bb70624e 9746 if test "$cross_compiling" = yes; then
f73dda09
JA
9747 { { echo "$as_me:9747: error: cannot run test program while cross compiling" >&5
9748echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9749 { (exit 1); exit 1; }; }
bb70624e 9750else
f73dda09
JA
9751 cat >conftest.$ac_ext <<_ACEOF
9752#line 9752 "configure"
bb70624e 9753#include "confdefs.h"
f73dda09
JA
9754$ac_includes_default
9755int
9756main ()
bb70624e 9757{
f73dda09
JA
9758FILE *f = fopen ("conftest.val", "w");
9759if (!f)
9760 exit (1);
9761fprintf (f, "%d", (sizeof (long long)));
9762fclose (f);
9763 ;
9764 return 0;
bb70624e 9765}
f73dda09
JA
9766_ACEOF
9767rm -f conftest$ac_exeext
9768if { (eval echo "$as_me:9768: \"$ac_link\"") >&5
9769 (eval $ac_link) 2>&5
9770 ac_status=$?
9771 echo "$as_me:9771: \$? = $ac_status" >&5
9772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9773 { (eval echo "$as_me:9773: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:9776: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 ac_cv_sizeof_long_long=`cat conftest.val`
bb70624e 9779else
f73dda09
JA
9780 echo "$as_me: program exited with status $ac_status" >&5
9781echo "$as_me: failed program was:" >&5
9782cat conftest.$ac_ext >&5
bb70624e 9783fi
f73dda09 9784rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 9785fi
bb70624e 9786fi
f73dda09
JA
9787rm -f conftest.val
9788else
9789 ac_cv_sizeof_long_long=0
9790fi
9791fi
9792echo "$as_me:9792: result: $ac_cv_sizeof_long_long" >&5
9793echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9794cat >>confdefs.h <<EOF
9795#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
bb70624e
JA
9796EOF
9797
f73dda09
JA
9798echo "$as_me:9798: checking for u_int" >&5
9799echo $ECHO_N "checking for u_int... $ECHO_C" >&6
9800if test "${ac_cv_type_u_int+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 9802else
f73dda09
JA
9803 cat >conftest.$ac_ext <<_ACEOF
9804#line 9804 "configure"
bb70624e 9805#include "confdefs.h"
f73dda09
JA
9806$ac_includes_default
9807int
9808main ()
9809{
9810if ((u_int *) 0)
9811 return 0;
9812if (sizeof (u_int))
9813 return 0;
9814 ;
9815 return 0;
9816}
9817_ACEOF
9818rm -f conftest.$ac_objext
9819if { (eval echo "$as_me:9819: \"$ac_compile\"") >&5
9820 (eval $ac_compile) 2>&5
9821 ac_status=$?
9822 echo "$as_me:9822: \$? = $ac_status" >&5
9823 (exit $ac_status); } &&
9824 { ac_try='test -s conftest.$ac_objext'
9825 { (eval echo "$as_me:9825: \"$ac_try\"") >&5
9826 (eval $ac_try) 2>&5
9827 ac_status=$?
9828 echo "$as_me:9828: \$? = $ac_status" >&5
9829 (exit $ac_status); }; }; then
bb70624e
JA
9830 ac_cv_type_u_int=yes
9831else
f73dda09
JA
9832 echo "$as_me: failed program was:" >&5
9833cat conftest.$ac_ext >&5
9834ac_cv_type_u_int=no
bb70624e 9835fi
f73dda09 9836rm -f conftest.$ac_objext conftest.$ac_ext
bb70624e 9837fi
f73dda09
JA
9838echo "$as_me:9838: result: $ac_cv_type_u_int" >&5
9839echo "${ECHO_T}$ac_cv_type_u_int" >&6
9840if test $ac_cv_type_u_int = yes; then
9841 :
9842else
9843
9844cat >>confdefs.h <<EOF
bb70624e
JA
9845#define u_int unsigned int
9846EOF
9847
9848fi
9849
f73dda09
JA
9850echo "$as_me:9850: checking for u_long" >&5
9851echo $ECHO_N "checking for u_long... $ECHO_C" >&6
9852if test "${ac_cv_type_u_long+set}" = set; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 9854else
f73dda09
JA
9855 cat >conftest.$ac_ext <<_ACEOF
9856#line 9856 "configure"
bb70624e 9857#include "confdefs.h"
f73dda09
JA
9858$ac_includes_default
9859int
9860main ()
9861{
9862if ((u_long *) 0)
9863 return 0;
9864if (sizeof (u_long))
9865 return 0;
9866 ;
9867 return 0;
9868}
9869_ACEOF
9870rm -f conftest.$ac_objext
9871if { (eval echo "$as_me:9871: \"$ac_compile\"") >&5
9872 (eval $ac_compile) 2>&5
9873 ac_status=$?
9874 echo "$as_me:9874: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -s conftest.$ac_objext'
9877 { (eval echo "$as_me:9877: \"$ac_try\"") >&5
9878 (eval $ac_try) 2>&5
9879 ac_status=$?
9880 echo "$as_me:9880: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
bb70624e
JA
9882 ac_cv_type_u_long=yes
9883else
f73dda09
JA
9884 echo "$as_me: failed program was:" >&5
9885cat conftest.$ac_ext >&5
9886ac_cv_type_u_long=no
bb70624e 9887fi
f73dda09 9888rm -f conftest.$ac_objext conftest.$ac_ext
bb70624e 9889fi
f73dda09
JA
9890echo "$as_me:9890: result: $ac_cv_type_u_long" >&5
9891echo "${ECHO_T}$ac_cv_type_u_long" >&6
9892if test $ac_cv_type_u_long = yes; then
9893 :
9894else
9895
9896cat >>confdefs.h <<EOF
bb70624e
JA
9897#define u_long unsigned long
9898EOF
9899
9900fi
9901
bb70624e 9902if test "$ac_cv_sizeof_short" = 2; then
f73dda09
JA
9903 echo "$as_me:9903: checking for bits16_t" >&5
9904echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
9905if test "${ac_cv_type_bits16_t+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 9907else
f73dda09
JA
9908 cat >conftest.$ac_ext <<_ACEOF
9909#line 9909 "configure"
bb70624e 9910#include "confdefs.h"
f73dda09
JA
9911$ac_includes_default
9912int
9913main ()
9914{
9915if ((bits16_t *) 0)
9916 return 0;
9917if (sizeof (bits16_t))
9918 return 0;
9919 ;
9920 return 0;
9921}
9922_ACEOF
9923rm -f conftest.$ac_objext
9924if { (eval echo "$as_me:9924: \"$ac_compile\"") >&5
9925 (eval $ac_compile) 2>&5
9926 ac_status=$?
9927 echo "$as_me:9927: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try='test -s conftest.$ac_objext'
9930 { (eval echo "$as_me:9930: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:9933: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
bb70624e
JA
9935 ac_cv_type_bits16_t=yes
9936else
f73dda09
JA
9937 echo "$as_me: failed program was:" >&5
9938cat conftest.$ac_ext >&5
9939ac_cv_type_bits16_t=no
bb70624e 9940fi
f73dda09 9941rm -f conftest.$ac_objext conftest.$ac_ext
bb70624e 9942fi
f73dda09
JA
9943echo "$as_me:9943: result: $ac_cv_type_bits16_t" >&5
9944echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
9945if test $ac_cv_type_bits16_t = yes; then
9946 :
9947else
9948
9949cat >>confdefs.h <<EOF
bb70624e
JA
9950#define bits16_t short
9951EOF
9952
9953fi
9954
9955elif test "$ac_cv_sizeof_char" = 2; then
f73dda09
JA
9956 echo "$as_me:9956: checking for bits16_t" >&5
9957echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
9958if test "${ac_cv_type_bits16_t+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 9960else
f73dda09
JA
9961 cat >conftest.$ac_ext <<_ACEOF
9962#line 9962 "configure"
bb70624e 9963#include "confdefs.h"
f73dda09
JA
9964$ac_includes_default
9965int
9966main ()
9967{
9968if ((bits16_t *) 0)
9969 return 0;
9970if (sizeof (bits16_t))
9971 return 0;
9972 ;
9973 return 0;
9974}
9975_ACEOF
9976rm -f conftest.$ac_objext
9977if { (eval echo "$as_me:9977: \"$ac_compile\"") >&5
9978 (eval $ac_compile) 2>&5
9979 ac_status=$?
9980 echo "$as_me:9980: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try='test -s conftest.$ac_objext'
9983 { (eval echo "$as_me:9983: \"$ac_try\"") >&5
9984 (eval $ac_try) 2>&5
9985 ac_status=$?
9986 echo "$as_me:9986: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
bb70624e
JA
9988 ac_cv_type_bits16_t=yes
9989else
f73dda09
JA
9990 echo "$as_me: failed program was:" >&5
9991cat conftest.$ac_ext >&5
9992ac_cv_type_bits16_t=no
bb70624e 9993fi
f73dda09 9994rm -f conftest.$ac_objext conftest.$ac_ext
bb70624e 9995fi
f73dda09
JA
9996echo "$as_me:9996: result: $ac_cv_type_bits16_t" >&5
9997echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
9998if test $ac_cv_type_bits16_t = yes; then
9999 :
10000else
10001
10002cat >>confdefs.h <<EOF
bb70624e
JA
10003#define bits16_t char
10004EOF
10005
10006fi
10007
10008else
f73dda09
JA
10009 echo "$as_me:10009: checking for bits16_t" >&5
10010echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
10011if test "${ac_cv_type_bits16_t+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 10013else
f73dda09
JA
10014 cat >conftest.$ac_ext <<_ACEOF
10015#line 10015 "configure"
b72432fd 10016#include "confdefs.h"
f73dda09
JA
10017$ac_includes_default
10018int
10019main ()
10020{
10021if ((bits16_t *) 0)
10022 return 0;
10023if (sizeof (bits16_t))
10024 return 0;
10025 ;
10026 return 0;
10027}
10028_ACEOF
10029rm -f conftest.$ac_objext
10030if { (eval echo "$as_me:10030: \"$ac_compile\"") >&5
10031 (eval $ac_compile) 2>&5
10032 ac_status=$?
10033 echo "$as_me:10033: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -s conftest.$ac_objext'
10036 { (eval echo "$as_me:10036: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10038 ac_status=$?
10039 echo "$as_me:10039: \$? = $ac_status" >&5
10040 (exit $ac_status); }; }; then
bb70624e 10041 ac_cv_type_bits16_t=yes
b72432fd 10042else
f73dda09
JA
10043 echo "$as_me: failed program was:" >&5
10044cat conftest.$ac_ext >&5
10045ac_cv_type_bits16_t=no
b72432fd 10046fi
f73dda09 10047rm -f conftest.$ac_objext conftest.$ac_ext
b72432fd 10048fi
f73dda09
JA
10049echo "$as_me:10049: result: $ac_cv_type_bits16_t" >&5
10050echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
10051if test $ac_cv_type_bits16_t = yes; then
10052 :
10053else
10054
10055cat >>confdefs.h <<EOF
bb70624e 10056#define bits16_t short
b72432fd
JA
10057EOF
10058
bb70624e 10059fi
b72432fd 10060
bb70624e 10061fi
b72432fd 10062
bb70624e 10063if test "$ac_cv_sizeof_short" = 2; then
f73dda09
JA
10064 echo "$as_me:10064: checking for u_bits16_t" >&5
10065echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
10066if test "${ac_cv_type_u_bits16_t+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 10068else
f73dda09
JA
10069 cat >conftest.$ac_ext <<_ACEOF
10070#line 10070 "configure"
cce855bc 10071#include "confdefs.h"
f73dda09
JA
10072$ac_includes_default
10073int
10074main ()
10075{
10076if ((u_bits16_t *) 0)
10077 return 0;
10078if (sizeof (u_bits16_t))
10079 return 0;
10080 ;
10081 return 0;
10082}
10083_ACEOF
10084rm -f conftest.$ac_objext
10085if { (eval echo "$as_me:10085: \"$ac_compile\"") >&5
10086 (eval $ac_compile) 2>&5
10087 ac_status=$?
10088 echo "$as_me:10088: \$? = $ac_status" >&5
10089 (exit $ac_status); } &&
10090 { ac_try='test -s conftest.$ac_objext'
10091 { (eval echo "$as_me:10091: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10093 ac_status=$?
10094 echo "$as_me:10094: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }; then
bb70624e 10096 ac_cv_type_u_bits16_t=yes
cce855bc 10097else
f73dda09
JA
10098 echo "$as_me: failed program was:" >&5
10099cat conftest.$ac_ext >&5
10100ac_cv_type_u_bits16_t=no
cce855bc 10101fi
f73dda09 10102rm -f conftest.$ac_objext conftest.$ac_ext
cce855bc 10103fi
f73dda09
JA
10104echo "$as_me:10104: result: $ac_cv_type_u_bits16_t" >&5
10105echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
10106if test $ac_cv_type_u_bits16_t = yes; then
10107 :
10108else
10109
10110cat >>confdefs.h <<EOF
bb70624e 10111#define u_bits16_t unsigned short
cce855bc
JA
10112EOF
10113
10114fi
10115
bb70624e 10116elif test "$ac_cv_sizeof_char" = 2; then
f73dda09
JA
10117 echo "$as_me:10117: checking for u_bits16_t" >&5
10118echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
10119if test "${ac_cv_type_u_bits16_t+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 10121else
f73dda09
JA
10122 cat >conftest.$ac_ext <<_ACEOF
10123#line 10123 "configure"
cce855bc 10124#include "confdefs.h"
f73dda09
JA
10125$ac_includes_default
10126int
10127main ()
10128{
10129if ((u_bits16_t *) 0)
10130 return 0;
10131if (sizeof (u_bits16_t))
10132 return 0;
10133 ;
10134 return 0;
10135}
10136_ACEOF
10137rm -f conftest.$ac_objext
10138if { (eval echo "$as_me:10138: \"$ac_compile\"") >&5
10139 (eval $ac_compile) 2>&5
10140 ac_status=$?
10141 echo "$as_me:10141: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -s conftest.$ac_objext'
10144 { (eval echo "$as_me:10144: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10146 ac_status=$?
10147 echo "$as_me:10147: \$? = $ac_status" >&5
10148 (exit $ac_status); }; }; then
bb70624e 10149 ac_cv_type_u_bits16_t=yes
cce855bc 10150else
f73dda09
JA
10151 echo "$as_me: failed program was:" >&5
10152cat conftest.$ac_ext >&5
10153ac_cv_type_u_bits16_t=no
cce855bc 10154fi
f73dda09 10155rm -f conftest.$ac_objext conftest.$ac_ext
cce855bc 10156fi
f73dda09
JA
10157echo "$as_me:10157: result: $ac_cv_type_u_bits16_t" >&5
10158echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
10159if test $ac_cv_type_u_bits16_t = yes; then
10160 :
10161else
10162
10163cat >>confdefs.h <<EOF
bb70624e 10164#define u_bits16_t unsigned char
b72432fd 10165EOF
cce855bc
JA
10166
10167fi
10168
b72432fd 10169else
f73dda09
JA
10170 echo "$as_me:10170: checking for u_bits16_t" >&5
10171echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
10172if test "${ac_cv_type_u_bits16_t+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 10174else
f73dda09
JA
10175 cat >conftest.$ac_ext <<_ACEOF
10176#line 10176 "configure"
b72432fd 10177#include "confdefs.h"
f73dda09
JA
10178$ac_includes_default
10179int
10180main ()
10181{
10182if ((u_bits16_t *) 0)
10183 return 0;
10184if (sizeof (u_bits16_t))
10185 return 0;
10186 ;
10187 return 0;
10188}
10189_ACEOF
10190rm -f conftest.$ac_objext
10191if { (eval echo "$as_me:10191: \"$ac_compile\"") >&5
10192 (eval $ac_compile) 2>&5
10193 ac_status=$?
10194 echo "$as_me:10194: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -s conftest.$ac_objext'
10197 { (eval echo "$as_me:10197: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10199 ac_status=$?
10200 echo "$as_me:10200: \$? = $ac_status" >&5
10201 (exit $ac_status); }; }; then
bb70624e 10202 ac_cv_type_u_bits16_t=yes
b72432fd 10203else
f73dda09
JA
10204 echo "$as_me: failed program was:" >&5
10205cat conftest.$ac_ext >&5
10206ac_cv_type_u_bits16_t=no
cce855bc 10207fi
f73dda09 10208rm -f conftest.$ac_objext conftest.$ac_ext
b72432fd 10209fi
f73dda09
JA
10210echo "$as_me:10210: result: $ac_cv_type_u_bits16_t" >&5
10211echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
10212if test $ac_cv_type_u_bits16_t = yes; then
10213 :
10214else
10215
10216cat >>confdefs.h <<EOF
bb70624e 10217#define u_bits16_t unsigned short
cce855bc
JA
10218EOF
10219
b72432fd
JA
10220fi
10221
10222fi
10223
b72432fd 10224if test "$ac_cv_sizeof_int" = 4; then
f73dda09
JA
10225 echo "$as_me:10225: checking for bits32_t" >&5
10226echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
10227if test "${ac_cv_type_bits32_t+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 10229else
f73dda09
JA
10230 cat >conftest.$ac_ext <<_ACEOF
10231#line 10231 "configure"
b72432fd 10232#include "confdefs.h"
f73dda09
JA
10233$ac_includes_default
10234int
10235main ()
10236{
10237if ((bits32_t *) 0)
10238 return 0;
10239if (sizeof (bits32_t))
10240 return 0;
10241 ;
10242 return 0;
10243}
10244_ACEOF
10245rm -f conftest.$ac_objext
10246if { (eval echo "$as_me:10246: \"$ac_compile\"") >&5
10247 (eval $ac_compile) 2>&5
10248 ac_status=$?
10249 echo "$as_me:10249: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -s conftest.$ac_objext'
10252 { (eval echo "$as_me:10252: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10254 ac_status=$?
10255 echo "$as_me:10255: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
bb70624e 10257 ac_cv_type_bits32_t=yes
b72432fd 10258else
f73dda09
JA
10259 echo "$as_me: failed program was:" >&5
10260cat conftest.$ac_ext >&5
10261ac_cv_type_bits32_t=no
b72432fd 10262fi
f73dda09 10263rm -f conftest.$ac_objext conftest.$ac_ext
cce855bc 10264fi
f73dda09
JA
10265echo "$as_me:10265: result: $ac_cv_type_bits32_t" >&5
10266echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
10267if test $ac_cv_type_bits32_t = yes; then
10268 :
10269else
10270
10271cat >>confdefs.h <<EOF
bb70624e 10272#define bits32_t int
b72432fd 10273EOF
cce855bc
JA
10274
10275fi
b72432fd
JA
10276
10277elif test "$ac_cv_sizeof_long" = 4; then
f73dda09
JA
10278 echo "$as_me:10278: checking for bits32_t" >&5
10279echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
10280if test "${ac_cv_type_bits32_t+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 10282else
f73dda09
JA
10283 cat >conftest.$ac_ext <<_ACEOF
10284#line 10284 "configure"
cce855bc 10285#include "confdefs.h"
f73dda09
JA
10286$ac_includes_default
10287int
10288main ()
10289{
10290if ((bits32_t *) 0)
10291 return 0;
10292if (sizeof (bits32_t))
10293 return 0;
10294 ;
10295 return 0;
10296}
10297_ACEOF
10298rm -f conftest.$ac_objext
10299if { (eval echo "$as_me:10299: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>&5
10301 ac_status=$?
10302 echo "$as_me:10302: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try='test -s conftest.$ac_objext'
10305 { (eval echo "$as_me:10305: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10307 ac_status=$?
10308 echo "$as_me:10308: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
bb70624e 10310 ac_cv_type_bits32_t=yes
cce855bc 10311else
f73dda09
JA
10312 echo "$as_me: failed program was:" >&5
10313cat conftest.$ac_ext >&5
10314ac_cv_type_bits32_t=no
cce855bc 10315fi
f73dda09 10316rm -f conftest.$ac_objext conftest.$ac_ext
cce855bc 10317fi
f73dda09
JA
10318echo "$as_me:10318: result: $ac_cv_type_bits32_t" >&5
10319echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
10320if test $ac_cv_type_bits32_t = yes; then
10321 :
10322else
10323
10324cat >>confdefs.h <<EOF
bb70624e 10325#define bits32_t long
cce855bc
JA
10326EOF
10327
10328fi
10329
cce855bc 10330else
f73dda09
JA
10331 echo "$as_me:10331: checking for bits32_t" >&5
10332echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
10333if test "${ac_cv_type_bits32_t+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 10335else
f73dda09
JA
10336 cat >conftest.$ac_ext <<_ACEOF
10337#line 10337 "configure"
10338#include "confdefs.h"
10339$ac_includes_default
10340int
10341main ()
10342{
10343if ((bits32_t *) 0)
10344 return 0;
10345if (sizeof (bits32_t))
10346 return 0;
10347 ;
10348 return 0;
10349}
10350_ACEOF
10351rm -f conftest.$ac_objext
10352if { (eval echo "$as_me:10352: \"$ac_compile\"") >&5
10353 (eval $ac_compile) 2>&5
10354 ac_status=$?
10355 echo "$as_me:10355: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -s conftest.$ac_objext'
10358 { (eval echo "$as_me:10358: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10360 ac_status=$?
10361 echo "$as_me:10361: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
bb70624e 10363 ac_cv_type_bits32_t=yes
cce855bc 10364else
f73dda09
JA
10365 echo "$as_me: failed program was:" >&5
10366cat conftest.$ac_ext >&5
10367ac_cv_type_bits32_t=no
cce855bc 10368fi
f73dda09 10369rm -f conftest.$ac_objext conftest.$ac_ext
cce855bc 10370fi
f73dda09
JA
10371echo "$as_me:10371: result: $ac_cv_type_bits32_t" >&5
10372echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
10373if test $ac_cv_type_bits32_t = yes; then
10374 :
10375else
10376
10377cat >>confdefs.h <<EOF
bb70624e 10378#define bits32_t int
b72432fd 10379EOF
cce855bc
JA
10380
10381fi
10382
cce855bc 10383fi
cce855bc 10384
bb70624e 10385if test "$ac_cv_sizeof_int" = 4; then
f73dda09
JA
10386 echo "$as_me:10386: checking for u_bits32_t" >&5
10387echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
10388if test "${ac_cv_type_u_bits32_t+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 10390else
f73dda09
JA
10391 cat >conftest.$ac_ext <<_ACEOF
10392#line 10392 "configure"
b72432fd 10393#include "confdefs.h"
f73dda09
JA
10394$ac_includes_default
10395int
10396main ()
10397{
10398if ((u_bits32_t *) 0)
10399 return 0;
10400if (sizeof (u_bits32_t))
10401 return 0;
10402 ;
10403 return 0;
10404}
10405_ACEOF
10406rm -f conftest.$ac_objext
10407if { (eval echo "$as_me:10407: \"$ac_compile\"") >&5
10408 (eval $ac_compile) 2>&5
10409 ac_status=$?
10410 echo "$as_me:10410: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -s conftest.$ac_objext'
10413 { (eval echo "$as_me:10413: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10415 ac_status=$?
10416 echo "$as_me:10416: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
bb70624e 10418 ac_cv_type_u_bits32_t=yes
b72432fd 10419else
f73dda09
JA
10420 echo "$as_me: failed program was:" >&5
10421cat conftest.$ac_ext >&5
10422ac_cv_type_u_bits32_t=no
b72432fd 10423fi
f73dda09 10424rm -f conftest.$ac_objext conftest.$ac_ext
cce855bc 10425fi
f73dda09
JA
10426echo "$as_me:10426: result: $ac_cv_type_u_bits32_t" >&5
10427echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
10428if test $ac_cv_type_u_bits32_t = yes; then
10429 :
10430else
10431
10432cat >>confdefs.h <<EOF
bb70624e 10433#define u_bits32_t unsigned int
b72432fd 10434EOF
cce855bc
JA
10435
10436fi
10437
bb70624e 10438elif test "$ac_cv_sizeof_long" = 4; then
f73dda09
JA
10439 echo "$as_me:10439: checking for u_bits32_t" >&5
10440echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
10441if test "${ac_cv_type_u_bits32_t+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 10443else
f73dda09
JA
10444 cat >conftest.$ac_ext <<_ACEOF
10445#line 10445 "configure"
cce855bc 10446#include "confdefs.h"
f73dda09
JA
10447$ac_includes_default
10448int
10449main ()
10450{
10451if ((u_bits32_t *) 0)
10452 return 0;
10453if (sizeof (u_bits32_t))
10454 return 0;
10455 ;
10456 return 0;
10457}
10458_ACEOF
10459rm -f conftest.$ac_objext
10460if { (eval echo "$as_me:10460: \"$ac_compile\"") >&5
10461 (eval $ac_compile) 2>&5
10462 ac_status=$?
10463 echo "$as_me:10463: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -s conftest.$ac_objext'
10466 { (eval echo "$as_me:10466: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:10469: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
bb70624e 10471 ac_cv_type_u_bits32_t=yes
cce855bc 10472else
f73dda09
JA
10473 echo "$as_me: failed program was:" >&5
10474cat conftest.$ac_ext >&5
10475ac_cv_type_u_bits32_t=no
cce855bc 10476fi
f73dda09 10477rm -f conftest.$ac_objext conftest.$ac_ext
cce855bc 10478fi
f73dda09
JA
10479echo "$as_me:10479: result: $ac_cv_type_u_bits32_t" >&5
10480echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
10481if test $ac_cv_type_u_bits32_t = yes; then
10482 :
10483else
10484
10485cat >>confdefs.h <<EOF
bb70624e 10486#define u_bits32_t unsigned long
cce855bc
JA
10487EOF
10488
10489fi
10490
cce855bc 10491else
f73dda09
JA
10492 echo "$as_me:10492: checking for u_bits32_t" >&5
10493echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
10494if test "${ac_cv_type_u_bits32_t+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 10496else
f73dda09
JA
10497 cat >conftest.$ac_ext <<_ACEOF
10498#line 10498 "configure"
b72432fd 10499#include "confdefs.h"
f73dda09
JA
10500$ac_includes_default
10501int
10502main ()
10503{
10504if ((u_bits32_t *) 0)
10505 return 0;
10506if (sizeof (u_bits32_t))
10507 return 0;
10508 ;
10509 return 0;
10510}
10511_ACEOF
10512rm -f conftest.$ac_objext
10513if { (eval echo "$as_me:10513: \"$ac_compile\"") >&5
10514 (eval $ac_compile) 2>&5
10515 ac_status=$?
10516 echo "$as_me:10516: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
10518 { ac_try='test -s conftest.$ac_objext'
10519 { (eval echo "$as_me:10519: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10521 ac_status=$?
10522 echo "$as_me:10522: \$? = $ac_status" >&5
10523 (exit $ac_status); }; }; then
bb70624e 10524 ac_cv_type_u_bits32_t=yes
b72432fd 10525else
f73dda09
JA
10526 echo "$as_me: failed program was:" >&5
10527cat conftest.$ac_ext >&5
10528ac_cv_type_u_bits32_t=no
b72432fd 10529fi
f73dda09 10530rm -f conftest.$ac_objext conftest.$ac_ext
b72432fd 10531fi
f73dda09
JA
10532echo "$as_me:10532: result: $ac_cv_type_u_bits32_t" >&5
10533echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
10534if test $ac_cv_type_u_bits32_t = yes; then
10535 :
10536else
10537
10538cat >>confdefs.h <<EOF
bb70624e 10539#define u_bits32_t unsigned int
b72432fd
JA
10540EOF
10541
10542fi
cce855bc 10543
b72432fd
JA
10544fi
10545
f73dda09
JA
10546if test "$ac_cv_sizeof_char_p" = 8; then
10547 echo "$as_me:10547: checking for bits64_t" >&5
10548echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10549if test "${ac_cv_type_bits64_t+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 10551else
f73dda09
JA
10552 cat >conftest.$ac_ext <<_ACEOF
10553#line 10553 "configure"
cce855bc 10554#include "confdefs.h"
f73dda09
JA
10555$ac_includes_default
10556int
10557main ()
10558{
10559if ((bits64_t *) 0)
10560 return 0;
10561if (sizeof (bits64_t))
10562 return 0;
10563 ;
10564 return 0;
10565}
10566_ACEOF
10567rm -f conftest.$ac_objext
10568if { (eval echo "$as_me:10568: \"$ac_compile\"") >&5
10569 (eval $ac_compile) 2>&5
10570 ac_status=$?
10571 echo "$as_me:10571: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -s conftest.$ac_objext'
10574 { (eval echo "$as_me:10574: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:10577: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
b72432fd
JA
10579 ac_cv_type_bits64_t=yes
10580else
f73dda09
JA
10581 echo "$as_me: failed program was:" >&5
10582cat conftest.$ac_ext >&5
10583ac_cv_type_bits64_t=no
b72432fd 10584fi
f73dda09 10585rm -f conftest.$ac_objext conftest.$ac_ext
b72432fd 10586fi
f73dda09
JA
10587echo "$as_me:10587: result: $ac_cv_type_bits64_t" >&5
10588echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10589if test $ac_cv_type_bits64_t = yes; then
10590 :
10591else
10592
10593cat >>confdefs.h <<EOF
b72432fd
JA
10594#define bits64_t char *
10595EOF
10596
10597fi
10598
10599elif test "$ac_cv_sizeof_double" = 8; then
f73dda09
JA
10600 echo "$as_me:10600: checking for bits64_t" >&5
10601echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10602if test "${ac_cv_type_bits64_t+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 10604else
f73dda09
JA
10605 cat >conftest.$ac_ext <<_ACEOF
10606#line 10606 "configure"
b72432fd 10607#include "confdefs.h"
f73dda09
JA
10608$ac_includes_default
10609int
10610main ()
10611{
10612if ((bits64_t *) 0)
10613 return 0;
10614if (sizeof (bits64_t))
10615 return 0;
10616 ;
10617 return 0;
10618}
10619_ACEOF
10620rm -f conftest.$ac_objext
10621if { (eval echo "$as_me:10621: \"$ac_compile\"") >&5
10622 (eval $ac_compile) 2>&5
10623 ac_status=$?
10624 echo "$as_me:10624: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try='test -s conftest.$ac_objext'
10627 { (eval echo "$as_me:10627: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10629 ac_status=$?
10630 echo "$as_me:10630: \$? = $ac_status" >&5
10631 (exit $ac_status); }; }; then
b72432fd 10632 ac_cv_type_bits64_t=yes
cce855bc 10633else
f73dda09
JA
10634 echo "$as_me: failed program was:" >&5
10635cat conftest.$ac_ext >&5
10636ac_cv_type_bits64_t=no
cce855bc 10637fi
f73dda09 10638rm -f conftest.$ac_objext conftest.$ac_ext
cce855bc 10639fi
f73dda09
JA
10640echo "$as_me:10640: result: $ac_cv_type_bits64_t" >&5
10641echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10642if test $ac_cv_type_bits64_t = yes; then
10643 :
10644else
10645
10646cat >>confdefs.h <<EOF
b72432fd
JA
10647#define bits64_t double
10648EOF
cce855bc
JA
10649
10650fi
10651
f73dda09
JA
10652elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
10653 echo "$as_me:10653: checking for bits64_t" >&5
10654echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10655if test "${ac_cv_type_bits64_t+set}" = set; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 10657else
f73dda09
JA
10658 cat >conftest.$ac_ext <<_ACEOF
10659#line 10659 "configure"
b72432fd 10660#include "confdefs.h"
f73dda09
JA
10661$ac_includes_default
10662int
10663main ()
10664{
10665if ((bits64_t *) 0)
10666 return 0;
10667if (sizeof (bits64_t))
10668 return 0;
10669 ;
10670 return 0;
10671}
10672_ACEOF
10673rm -f conftest.$ac_objext
10674if { (eval echo "$as_me:10674: \"$ac_compile\"") >&5
10675 (eval $ac_compile) 2>&5
10676 ac_status=$?
10677 echo "$as_me:10677: \$? = $ac_status" >&5
10678 (exit $ac_status); } &&
10679 { ac_try='test -s conftest.$ac_objext'
10680 { (eval echo "$as_me:10680: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10682 ac_status=$?
10683 echo "$as_me:10683: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
b72432fd
JA
10685 ac_cv_type_bits64_t=yes
10686else
f73dda09
JA
10687 echo "$as_me: failed program was:" >&5
10688cat conftest.$ac_ext >&5
10689ac_cv_type_bits64_t=no
10690fi
10691rm -f conftest.$ac_objext conftest.$ac_ext
10692fi
10693echo "$as_me:10693: result: $ac_cv_type_bits64_t" >&5
10694echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10695if test $ac_cv_type_bits64_t = yes; then
10696 :
10697else
10698
10699cat >>confdefs.h <<EOF
10700#define bits64_t long long
10701EOF
10702
cce855bc 10703fi
b72432fd 10704
f73dda09
JA
10705elif test "$ac_cv_sizeof_long" = 8; then
10706 echo "$as_me:10706: checking for bits64_t" >&5
10707echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10708if test "${ac_cv_type_bits64_t+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710else
10711 cat >conftest.$ac_ext <<_ACEOF
10712#line 10712 "configure"
10713#include "confdefs.h"
10714$ac_includes_default
10715int
10716main ()
10717{
10718if ((bits64_t *) 0)
10719 return 0;
10720if (sizeof (bits64_t))
10721 return 0;
10722 ;
10723 return 0;
10724}
10725_ACEOF
10726rm -f conftest.$ac_objext
10727if { (eval echo "$as_me:10727: \"$ac_compile\"") >&5
10728 (eval $ac_compile) 2>&5
10729 ac_status=$?
10730 echo "$as_me:10730: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
10732 { ac_try='test -s conftest.$ac_objext'
10733 { (eval echo "$as_me:10733: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10735 ac_status=$?
10736 echo "$as_me:10736: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_type_bits64_t=yes
10739else
10740 echo "$as_me: failed program was:" >&5
10741cat conftest.$ac_ext >&5
10742ac_cv_type_bits64_t=no
10743fi
10744rm -f conftest.$ac_objext conftest.$ac_ext
b72432fd 10745fi
f73dda09
JA
10746echo "$as_me:10746: result: $ac_cv_type_bits64_t" >&5
10747echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10748if test $ac_cv_type_bits64_t = yes; then
10749 :
10750else
10751
10752cat >>confdefs.h <<EOF
b72432fd 10753#define bits64_t long
cce855bc
JA
10754EOF
10755
b72432fd
JA
10756fi
10757
cce855bc 10758else
f73dda09
JA
10759 echo "$as_me:10759: checking for bits64_t" >&5
10760echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10761if test "${ac_cv_type_bits64_t+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 10763else
f73dda09
JA
10764 cat >conftest.$ac_ext <<_ACEOF
10765#line 10765 "configure"
b72432fd 10766#include "confdefs.h"
f73dda09
JA
10767$ac_includes_default
10768int
10769main ()
10770{
10771if ((bits64_t *) 0)
10772 return 0;
10773if (sizeof (bits64_t))
10774 return 0;
10775 ;
10776 return 0;
10777}
10778_ACEOF
10779rm -f conftest.$ac_objext
10780if { (eval echo "$as_me:10780: \"$ac_compile\"") >&5
10781 (eval $ac_compile) 2>&5
10782 ac_status=$?
10783 echo "$as_me:10783: \$? = $ac_status" >&5
10784 (exit $ac_status); } &&
10785 { ac_try='test -s conftest.$ac_objext'
10786 { (eval echo "$as_me:10786: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10788 ac_status=$?
10789 echo "$as_me:10789: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
b72432fd
JA
10791 ac_cv_type_bits64_t=yes
10792else
f73dda09
JA
10793 echo "$as_me: failed program was:" >&5
10794cat conftest.$ac_ext >&5
10795ac_cv_type_bits64_t=no
b72432fd 10796fi
f73dda09 10797rm -f conftest.$ac_objext conftest.$ac_ext
b72432fd 10798fi
f73dda09
JA
10799echo "$as_me:10799: result: $ac_cv_type_bits64_t" >&5
10800echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10801if test $ac_cv_type_bits64_t = yes; then
10802 :
10803else
10804
10805cat >>confdefs.h <<EOF
b72432fd 10806#define bits64_t double
cce855bc
JA
10807EOF
10808
10809fi
10810
10811fi
10812
bb70624e 10813if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
f73dda09
JA
10814 echo "$as_me:10814: checking for ptrdiff_t" >&5
10815echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10816if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 10818else
f73dda09
JA
10819 cat >conftest.$ac_ext <<_ACEOF
10820#line 10820 "configure"
bb70624e 10821#include "confdefs.h"
f73dda09
JA
10822$ac_includes_default
10823int
10824main ()
10825{
10826if ((ptrdiff_t *) 0)
10827 return 0;
10828if (sizeof (ptrdiff_t))
10829 return 0;
10830 ;
10831 return 0;
10832}
10833_ACEOF
10834rm -f conftest.$ac_objext
10835if { (eval echo "$as_me:10835: \"$ac_compile\"") >&5
10836 (eval $ac_compile) 2>&5
10837 ac_status=$?
10838 echo "$as_me:10838: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try='test -s conftest.$ac_objext'
10841 { (eval echo "$as_me:10841: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:10844: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
bb70624e
JA
10846 ac_cv_type_ptrdiff_t=yes
10847else
f73dda09
JA
10848 echo "$as_me: failed program was:" >&5
10849cat conftest.$ac_ext >&5
10850ac_cv_type_ptrdiff_t=no
bb70624e 10851fi
f73dda09 10852rm -f conftest.$ac_objext conftest.$ac_ext
bb70624e 10853fi
f73dda09
JA
10854echo "$as_me:10854: result: $ac_cv_type_ptrdiff_t" >&5
10855echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10856if test $ac_cv_type_ptrdiff_t = yes; then
10857 :
10858else
10859
10860cat >>confdefs.h <<EOF
bb70624e
JA
10861#define ptrdiff_t int
10862EOF
10863
10864fi
10865
10866elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
f73dda09
JA
10867 echo "$as_me:10867: checking for ptrdiff_t" >&5
10868echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10869if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 10871else
f73dda09
JA
10872 cat >conftest.$ac_ext <<_ACEOF
10873#line 10873 "configure"
bb70624e 10874#include "confdefs.h"
f73dda09
JA
10875$ac_includes_default
10876int
10877main ()
10878{
10879if ((ptrdiff_t *) 0)
10880 return 0;
10881if (sizeof (ptrdiff_t))
10882 return 0;
10883 ;
10884 return 0;
10885}
10886_ACEOF
10887rm -f conftest.$ac_objext
10888if { (eval echo "$as_me:10888: \"$ac_compile\"") >&5
10889 (eval $ac_compile) 2>&5
10890 ac_status=$?
10891 echo "$as_me:10891: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try='test -s conftest.$ac_objext'
10894 { (eval echo "$as_me:10894: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:10897: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
bb70624e
JA
10899 ac_cv_type_ptrdiff_t=yes
10900else
f73dda09
JA
10901 echo "$as_me: failed program was:" >&5
10902cat conftest.$ac_ext >&5
10903ac_cv_type_ptrdiff_t=no
bb70624e 10904fi
f73dda09 10905rm -f conftest.$ac_objext conftest.$ac_ext
bb70624e 10906fi
f73dda09
JA
10907echo "$as_me:10907: result: $ac_cv_type_ptrdiff_t" >&5
10908echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10909if test $ac_cv_type_ptrdiff_t = yes; then
10910 :
10911else
10912
10913cat >>confdefs.h <<EOF
bb70624e
JA
10914#define ptrdiff_t long
10915EOF
10916
10917fi
10918
f73dda09
JA
10919elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
10920 echo "$as_me:10920: checking for ptrdiff_t" >&5
10921echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10922if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 10924else
f73dda09
JA
10925 cat >conftest.$ac_ext <<_ACEOF
10926#line 10926 "configure"
bb70624e 10927#include "confdefs.h"
f73dda09
JA
10928$ac_includes_default
10929int
10930main ()
10931{
10932if ((ptrdiff_t *) 0)
10933 return 0;
10934if (sizeof (ptrdiff_t))
10935 return 0;
10936 ;
10937 return 0;
10938}
10939_ACEOF
10940rm -f conftest.$ac_objext
10941if { (eval echo "$as_me:10941: \"$ac_compile\"") >&5
10942 (eval $ac_compile) 2>&5
10943 ac_status=$?
10944 echo "$as_me:10944: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -s conftest.$ac_objext'
10947 { (eval echo "$as_me:10947: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:10950: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
bb70624e
JA
10952 ac_cv_type_ptrdiff_t=yes
10953else
f73dda09
JA
10954 echo "$as_me: failed program was:" >&5
10955cat conftest.$ac_ext >&5
10956ac_cv_type_ptrdiff_t=no
10957fi
10958rm -f conftest.$ac_objext conftest.$ac_ext
10959fi
10960echo "$as_me:10960: result: $ac_cv_type_ptrdiff_t" >&5
10961echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10962if test $ac_cv_type_ptrdiff_t = yes; then
10963 :
10964else
10965
10966cat >>confdefs.h <<EOF
10967#define ptrdiff_t long long
10968EOF
10969
bb70624e 10970fi
bb70624e 10971
f73dda09
JA
10972else
10973 echo "$as_me:10973: checking for ptrdiff_t" >&5
10974echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10975if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10977else
10978 cat >conftest.$ac_ext <<_ACEOF
10979#line 10979 "configure"
10980#include "confdefs.h"
10981$ac_includes_default
10982int
10983main ()
10984{
10985if ((ptrdiff_t *) 0)
10986 return 0;
10987if (sizeof (ptrdiff_t))
10988 return 0;
10989 ;
10990 return 0;
10991}
10992_ACEOF
10993rm -f conftest.$ac_objext
10994if { (eval echo "$as_me:10994: \"$ac_compile\"") >&5
10995 (eval $ac_compile) 2>&5
10996 ac_status=$?
10997 echo "$as_me:10997: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try='test -s conftest.$ac_objext'
11000 { (eval echo "$as_me:11000: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:11003: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 ac_cv_type_ptrdiff_t=yes
11006else
11007 echo "$as_me: failed program was:" >&5
11008cat conftest.$ac_ext >&5
11009ac_cv_type_ptrdiff_t=no
bb70624e 11010fi
f73dda09
JA
11011rm -f conftest.$ac_objext conftest.$ac_ext
11012fi
11013echo "$as_me:11013: result: $ac_cv_type_ptrdiff_t" >&5
11014echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11015if test $ac_cv_type_ptrdiff_t = yes; then
11016 :
11017else
11018
11019cat >>confdefs.h <<EOF
bb70624e
JA
11020#define ptrdiff_t int
11021EOF
11022
11023fi
11024
11025fi
11026
f73dda09
JA
11027echo "$as_me:11027: checking whether stat file-mode macros are broken" >&5
11028echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11029if test "${ac_cv_header_stat_broken+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 11031else
f73dda09
JA
11032 cat >conftest.$ac_ext <<_ACEOF
11033#line 11033 "configure"
ccc6cda3
JA
11034#include "confdefs.h"
11035#include <sys/types.h>
11036#include <sys/stat.h>
11037
11038#if defined(S_ISBLK) && defined(S_IFDIR)
11039# if S_ISBLK (S_IFDIR)
11040You lose.
11041# endif
11042#endif
11043
11044#if defined(S_ISBLK) && defined(S_IFCHR)
11045# if S_ISBLK (S_IFCHR)
11046You lose.
11047# endif
11048#endif
11049
11050#if defined(S_ISLNK) && defined(S_IFREG)
11051# if S_ISLNK (S_IFREG)
11052You lose.
11053# endif
11054#endif
11055
11056#if defined(S_ISSOCK) && defined(S_IFREG)
11057# if S_ISSOCK (S_IFREG)
11058You lose.
f73dda09
JA
11059# endif
11060#endif
11061
11062_ACEOF
11063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11064 egrep "You lose" >/dev/null 2>&1; then
11065 ac_cv_header_stat_broken=yes
ccc6cda3 11066else
f73dda09 11067 ac_cv_header_stat_broken=no
ccc6cda3
JA
11068fi
11069rm -f conftest*
ccc6cda3
JA
11070
11071fi
f73dda09
JA
11072echo "$as_me:11072: result: $ac_cv_header_stat_broken" >&5
11073echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11074if test $ac_cv_header_stat_broken = yes; then
ccc6cda3 11075
f73dda09
JA
11076cat >>confdefs.h <<\EOF
11077#define STAT_MACROS_BROKEN 1
ccc6cda3
JA
11078EOF
11079
11080fi
11081
f73dda09
JA
11082echo "$as_me:11082: checking whether #! works in shell scripts" >&5
11083echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
11084if test "${ac_cv_sys_interpreter+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
11086else
11087 echo '#! /bin/cat
11088exit 69
f73dda09 11089' >conftest
ccc6cda3
JA
11090chmod u+x conftest
11091(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
11092if test $? -ne 69; then
11093 ac_cv_sys_interpreter=yes
11094else
11095 ac_cv_sys_interpreter=no
11096fi
11097rm -f conftest
11098fi
f73dda09
JA
11099echo "$as_me:11099: result: $ac_cv_sys_interpreter" >&5
11100echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
11101interpval=$ac_cv_sys_interpreter
ccc6cda3
JA
11102
11103if test $ac_cv_sys_interpreter = yes; then
f73dda09 11104cat >>confdefs.h <<\EOF
ccc6cda3
JA
11105#define HAVE_HASH_BANG_EXEC 1
11106EOF
11107
ccc6cda3
JA
11108fi
11109
ccc6cda3 11110if test "$ac_cv_func_lstat" = "no"; then
f73dda09
JA
11111echo "$as_me:11111: checking for lstat" >&5
11112echo $ECHO_N "checking for lstat... $ECHO_C" >&6
11113if test "${bash_cv_func_lstat+set}" = set; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 11115else
f73dda09
JA
11116 cat >conftest.$ac_ext <<_ACEOF
11117#line 11117 "configure"
ccc6cda3
JA
11118#include "confdefs.h"
11119
11120#include <sys/types.h>
11121#include <sys/stat.h>
11122
f73dda09
JA
11123int
11124main ()
11125{
11126 lstat(".",(struct stat *)0);
11127 ;
11128 return 0;
11129}
11130_ACEOF
11131rm -f conftest.$ac_objext conftest$ac_exeext
11132if { (eval echo "$as_me:11132: \"$ac_link\"") >&5
11133 (eval $ac_link) 2>&5
11134 ac_status=$?
11135 echo "$as_me:11135: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try='test -s conftest$ac_exeext'
11138 { (eval echo "$as_me:11138: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11140 ac_status=$?
11141 echo "$as_me:11141: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
ccc6cda3
JA
11143 bash_cv_func_lstat=yes
11144else
f73dda09
JA
11145 echo "$as_me: failed program was:" >&5
11146cat conftest.$ac_ext >&5
11147bash_cv_func_lstat=no
ccc6cda3 11148fi
f73dda09 11149rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ccc6cda3 11150fi
f73dda09
JA
11151echo "$as_me:11151: result: $bash_cv_func_lstat" >&5
11152echo "${ECHO_T}$bash_cv_func_lstat" >&6
ccc6cda3 11153if test $bash_cv_func_lstat = yes; then
f73dda09 11154 cat >>confdefs.h <<\EOF
ccc6cda3
JA
11155#define HAVE_LSTAT 1
11156EOF
11157
11158fi
11159
11160fi
11161
f73dda09
JA
11162echo "$as_me:11162: checking if dup2 fails to clear the close-on-exec flag" >&5
11163echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
11164if test "${bash_cv_dup2_broken+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
11166else
11167 if test "$cross_compiling" = yes; then
f73dda09
JA
11168 { echo "$as_me:11168: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
11169echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
cce855bc 11170 bash_cv_dup2_broken=no
ccc6cda3 11171else
f73dda09
JA
11172 cat >conftest.$ac_ext <<_ACEOF
11173#line 11173 "configure"
ccc6cda3
JA
11174#include "confdefs.h"
11175
11176#include <sys/types.h>
11177#include <fcntl.h>
11178main()
11179{
11180 int fd1, fd2, fl;
11181 fd1 = open("/dev/null", 2);
11182 if (fcntl(fd1, 2, 1) < 0)
11183 exit(1);
11184 fd2 = dup2(fd1, 1);
11185 if (fd2 < 0)
11186 exit(2);
11187 fl = fcntl(fd2, 1, 0);
11188 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
11189 exit(fl != 1);
11190}
11191
f73dda09
JA
11192_ACEOF
11193rm -f conftest$ac_exeext
11194if { (eval echo "$as_me:11194: \"$ac_link\"") >&5
11195 (eval $ac_link) 2>&5
11196 ac_status=$?
11197 echo "$as_me:11197: \$? = $ac_status" >&5
11198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11199 { (eval echo "$as_me:11199: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11201 ac_status=$?
11202 echo "$as_me:11202: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
ccc6cda3
JA
11204 bash_cv_dup2_broken=yes
11205else
f73dda09
JA
11206 echo "$as_me: program exited with status $ac_status" >&5
11207echo "$as_me: failed program was:" >&5
11208cat conftest.$ac_ext >&5
11209bash_cv_dup2_broken=no
ccc6cda3 11210fi
f73dda09 11211rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
11212fi
11213
ccc6cda3
JA
11214fi
11215
f73dda09
JA
11216echo "$as_me:11216: result: $bash_cv_dup2_broken" >&5
11217echo "${ECHO_T}$bash_cv_dup2_broken" >&6
ccc6cda3 11218if test $bash_cv_dup2_broken = yes; then
f73dda09 11219cat >>confdefs.h <<\EOF
ccc6cda3
JA
11220#define DUP2_BROKEN 1
11221EOF
11222
11223fi
11224
f73dda09
JA
11225echo "$as_me:11225: checking whether pgrps need synchronization" >&5
11226echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
11227if test "${bash_cv_pgrp_pipe+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
11229else
11230 if test "$cross_compiling" = yes; then
f73dda09
JA
11231 { echo "$as_me:11231: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
11232echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
cce855bc 11233 bash_cv_pgrp_pipe=no
ccc6cda3 11234else
f73dda09
JA
11235 cat >conftest.$ac_ext <<_ACEOF
11236#line 11236 "configure"
ccc6cda3
JA
11237#include "confdefs.h"
11238
11239#ifdef HAVE_UNISTD_H
11240# include <unistd.h>
11241#endif
11242main()
11243{
11244# ifdef GETPGRP_VOID
11245# define getpgID() getpgrp()
11246# else
11247# define getpgID() getpgrp(0)
11248# define setpgid(x,y) setpgrp(x,y)
11249# endif
11250 int pid1, pid2, fds[2];
11251 int status;
11252 char ok;
11253
11254 switch (pid1 = fork()) {
11255 case -1:
11256 exit(1);
11257 case 0:
11258 setpgid(0, getpid());
11259 exit(0);
11260 }
11261 setpgid(pid1, pid1);
11262
11263 sleep(2); /* let first child die */
11264
11265 if (pipe(fds) < 0)
11266 exit(2);
11267
11268 switch (pid2 = fork()) {
11269 case -1:
11270 exit(3);
11271 case 0:
11272 setpgid(0, pid1);
11273 ok = getpgID() == pid1;
11274 write(fds[1], &ok, 1);
11275 exit(0);
11276 }
11277 setpgid(pid2, pid1);
11278
11279 close(fds[1]);
11280 if (read(fds[0], &ok, 1) != 1)
11281 exit(4);
11282 wait(&status);
11283 wait(&status);
11284 exit(ok ? 0 : 5);
11285}
11286
f73dda09
JA
11287_ACEOF
11288rm -f conftest$ac_exeext
11289if { (eval echo "$as_me:11289: \"$ac_link\"") >&5
11290 (eval $ac_link) 2>&5
11291 ac_status=$?
11292 echo "$as_me:11292: \$? = $ac_status" >&5
11293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11294 { (eval echo "$as_me:11294: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11296 ac_status=$?
11297 echo "$as_me:11297: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
ccc6cda3
JA
11299 bash_cv_pgrp_pipe=no
11300else
f73dda09
JA
11301 echo "$as_me: program exited with status $ac_status" >&5
11302echo "$as_me: failed program was:" >&5
11303cat conftest.$ac_ext >&5
11304bash_cv_pgrp_pipe=yes
ccc6cda3 11305fi
f73dda09 11306rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
11307fi
11308
ccc6cda3
JA
11309fi
11310
f73dda09
JA
11311echo "$as_me:11311: result: $bash_cv_pgrp_pipe" >&5
11312echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
ccc6cda3 11313if test $bash_cv_pgrp_pipe = yes; then
f73dda09 11314cat >>confdefs.h <<\EOF
ccc6cda3
JA
11315#define PGRP_PIPE 1
11316EOF
11317
11318fi
11319
f73dda09
JA
11320echo "$as_me:11320: checking for type of signal functions" >&5
11321echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11322if test "${bash_cv_signal_vintage+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 11324else
f73dda09
JA
11325
11326 cat >conftest.$ac_ext <<_ACEOF
11327#line 11327 "configure"
ccc6cda3 11328#include "confdefs.h"
d166f048 11329#include <signal.h>
f73dda09
JA
11330int
11331main ()
11332{
d166f048
JA
11333
11334 sigset_t ss;
11335 struct sigaction sa;
11336 sigemptyset(&ss); sigsuspend(&ss);
11337 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11338 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
f73dda09
JA
11339
11340 ;
11341 return 0;
11342}
11343_ACEOF
11344rm -f conftest.$ac_objext conftest$ac_exeext
11345if { (eval echo "$as_me:11345: \"$ac_link\"") >&5
11346 (eval $ac_link) 2>&5
11347 ac_status=$?
11348 echo "$as_me:11348: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try='test -s conftest$ac_exeext'
11351 { (eval echo "$as_me:11351: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11353 ac_status=$?
11354 echo "$as_me:11354: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
d166f048 11356 bash_cv_signal_vintage=posix
ccc6cda3 11357else
f73dda09
JA
11358 echo "$as_me: failed program was:" >&5
11359cat conftest.$ac_ext >&5
11360
11361 cat >conftest.$ac_ext <<_ACEOF
11362#line 11362 "configure"
d166f048
JA
11363#include "confdefs.h"
11364#include <signal.h>
f73dda09
JA
11365int
11366main ()
11367{
d166f048
JA
11368
11369 int mask = sigmask(SIGINT);
11370 sigsetmask(mask); sigblock(mask); sigpause(mask);
f73dda09
JA
11371
11372 ;
11373 return 0;
11374}
11375_ACEOF
11376rm -f conftest.$ac_objext conftest$ac_exeext
11377if { (eval echo "$as_me:11377: \"$ac_link\"") >&5
11378 (eval $ac_link) 2>&5
11379 ac_status=$?
11380 echo "$as_me:11380: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -s conftest$ac_exeext'
11383 { (eval echo "$as_me:11383: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:11386: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
d166f048
JA
11388 bash_cv_signal_vintage=4.2bsd
11389else
f73dda09
JA
11390 echo "$as_me: failed program was:" >&5
11391cat conftest.$ac_ext >&5
11392
11393 cat >conftest.$ac_ext <<_ACEOF
11394#line 11394 "configure"
d166f048
JA
11395#include "confdefs.h"
11396
11397 #include <signal.h>
11398 RETSIGTYPE foo() { }
f73dda09
JA
11399int
11400main ()
11401{
d166f048
JA
11402
11403 int mask = sigmask(SIGINT);
11404 sigset(SIGINT, foo); sigrelse(SIGINT);
11405 sighold(SIGINT); sigpause(SIGINT);
f73dda09
JA
11406
11407 ;
11408 return 0;
11409}
11410_ACEOF
11411rm -f conftest.$ac_objext conftest$ac_exeext
11412if { (eval echo "$as_me:11412: \"$ac_link\"") >&5
11413 (eval $ac_link) 2>&5
11414 ac_status=$?
11415 echo "$as_me:11415: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try='test -s conftest$ac_exeext'
11418 { (eval echo "$as_me:11418: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11420 ac_status=$?
11421 echo "$as_me:11421: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
d166f048
JA
11423 bash_cv_signal_vintage=svr3
11424else
f73dda09
JA
11425 echo "$as_me: failed program was:" >&5
11426cat conftest.$ac_ext >&5
11427bash_cv_signal_vintage=v7
11428
d166f048 11429fi
f73dda09
JA
11430rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11431
d166f048 11432fi
f73dda09 11433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d166f048
JA
11434
11435fi
f73dda09 11436rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d166f048
JA
11437
11438fi
11439
f73dda09
JA
11440echo "$as_me:11440: result: $bash_cv_signal_vintage" >&5
11441echo "${ECHO_T}$bash_cv_signal_vintage" >&6
d166f048 11442if test "$bash_cv_signal_vintage" = posix; then
f73dda09 11443cat >>confdefs.h <<\EOF
d166f048
JA
11444#define HAVE_POSIX_SIGNALS 1
11445EOF
11446
11447elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
f73dda09 11448cat >>confdefs.h <<\EOF
d166f048
JA
11449#define HAVE_BSD_SIGNALS 1
11450EOF
11451
11452elif test "$bash_cv_signal_vintage" = svr3; then
f73dda09 11453cat >>confdefs.h <<\EOF
d166f048
JA
11454#define HAVE_USG_SIGHOLD 1
11455EOF
11456
11457fi
11458
f73dda09
JA
11459echo "$as_me:11459: checking for sys_errlist and sys_nerr" >&5
11460echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
11461if test "${bash_cv_sys_errlist+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 11463else
f73dda09
JA
11464 cat >conftest.$ac_ext <<_ACEOF
11465#line 11465 "configure"
cce855bc 11466#include "confdefs.h"
f73dda09
JA
11467#include <errno.h>
11468int
cce855bc
JA
11469main ()
11470{
d166f048
JA
11471extern char *sys_errlist[];
11472 extern int sys_nerr;
11473 char *msg = sys_errlist[sys_nerr - 1];
f73dda09
JA
11474 ;
11475 return 0;
11476}
11477_ACEOF
11478rm -f conftest.$ac_objext conftest$ac_exeext
11479if { (eval echo "$as_me:11479: \"$ac_link\"") >&5
11480 (eval $ac_link) 2>&5
11481 ac_status=$?
11482 echo "$as_me:11482: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -s conftest$ac_exeext'
11485 { (eval echo "$as_me:11485: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11487 ac_status=$?
11488 echo "$as_me:11488: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
d166f048
JA
11490 bash_cv_sys_errlist=yes
11491else
f73dda09
JA
11492 echo "$as_me: failed program was:" >&5
11493cat conftest.$ac_ext >&5
11494bash_cv_sys_errlist=no
d166f048 11495fi
f73dda09 11496rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d166f048 11497fi
f73dda09
JA
11498echo "$as_me:11498: result: $bash_cv_sys_errlist" >&5
11499echo "${ECHO_T}$bash_cv_sys_errlist" >&6
d166f048 11500if test $bash_cv_sys_errlist = yes; then
f73dda09 11501cat >>confdefs.h <<\EOF
d166f048
JA
11502#define HAVE_SYS_ERRLIST 1
11503EOF
11504
11505fi
11506
f73dda09
JA
11507echo "$as_me:11507: checking for sys_siglist in system C library" >&5
11508echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
11509if test "${bash_cv_sys_siglist+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
11511else
11512 if test "$cross_compiling" = yes; then
f73dda09
JA
11513 { echo "$as_me:11513: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
11514echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
cce855bc 11515 bash_cv_sys_siglist=no
ccc6cda3 11516else
f73dda09
JA
11517 cat >conftest.$ac_ext <<_ACEOF
11518#line 11518 "configure"
ccc6cda3
JA
11519#include "confdefs.h"
11520
11521#include <sys/types.h>
11522#include <signal.h>
11523#ifdef HAVE_UNISTD_H
11524#include <unistd.h>
11525#endif
11526#ifndef SYS_SIGLIST_DECLARED
11527extern char *sys_siglist[];
11528#endif
11529main()
11530{
11531char *msg = sys_siglist[2];
11532exit(msg == 0);
11533}
f73dda09
JA
11534_ACEOF
11535rm -f conftest$ac_exeext
11536if { (eval echo "$as_me:11536: \"$ac_link\"") >&5
11537 (eval $ac_link) 2>&5
11538 ac_status=$?
11539 echo "$as_me:11539: \$? = $ac_status" >&5
11540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11541 { (eval echo "$as_me:11541: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:11544: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
ccc6cda3
JA
11546 bash_cv_sys_siglist=yes
11547else
f73dda09
JA
11548 echo "$as_me: program exited with status $ac_status" >&5
11549echo "$as_me: failed program was:" >&5
11550cat conftest.$ac_ext >&5
11551bash_cv_sys_siglist=no
ccc6cda3 11552fi
f73dda09 11553rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 11554fi
ccc6cda3 11555fi
cce855bc 11556
f73dda09
JA
11557echo "$as_me:11557: result: $bash_cv_sys_siglist" >&5
11558echo "${ECHO_T}$bash_cv_sys_siglist" >&6
ccc6cda3 11559if test $bash_cv_sys_siglist = yes; then
f73dda09 11560cat >>confdefs.h <<\EOF
ccc6cda3
JA
11561#define HAVE_SYS_SIGLIST 1
11562EOF
11563
11564fi
11565
f73dda09
JA
11566echo "$as_me:11566: checking for _sys_siglist in signal.h or unistd.h" >&5
11567echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
11568if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
e8ce775d 11570else
f73dda09
JA
11571 cat >conftest.$ac_ext <<_ACEOF
11572#line 11572 "configure"
e8ce775d
JA
11573#include "confdefs.h"
11574
11575#include <sys/types.h>
11576#include <signal.h>
11577#ifdef HAVE_UNISTD_H
11578#include <unistd.h>
11579#endif
f73dda09
JA
11580int
11581main ()
11582{
11583 char *msg = _sys_siglist[2];
11584 ;
11585 return 0;
11586}
11587_ACEOF
11588rm -f conftest.$ac_objext
11589if { (eval echo "$as_me:11589: \"$ac_compile\"") >&5
11590 (eval $ac_compile) 2>&5
11591 ac_status=$?
11592 echo "$as_me:11592: \$? = $ac_status" >&5
11593 (exit $ac_status); } &&
11594 { ac_try='test -s conftest.$ac_objext'
11595 { (eval echo "$as_me:11595: \"$ac_try\"") >&5
11596 (eval $ac_try) 2>&5
11597 ac_status=$?
11598 echo "$as_me:11598: \$? = $ac_status" >&5
11599 (exit $ac_status); }; }; then
e8ce775d
JA
11600 bash_cv_decl_under_sys_siglist=yes
11601else
f73dda09
JA
11602 echo "$as_me: failed program was:" >&5
11603cat conftest.$ac_ext >&5
11604bash_cv_decl_under_sys_siglist=no
e8ce775d 11605fi
f73dda09 11606rm -f conftest.$ac_objext conftest.$ac_ext
e8ce775d 11607fi
f73dda09
JA
11608echo "$as_me:11608: result: $bash_cv_decl_under_sys_siglist" >&5
11609echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
e8ce775d 11610if test $bash_cv_decl_under_sys_siglist = yes; then
f73dda09 11611cat >>confdefs.h <<\EOF
e8ce775d
JA
11612#define UNDER_SYS_SIGLIST_DECLARED 1
11613EOF
11614
11615fi
11616
f73dda09
JA
11617echo "$as_me:11617: checking for _sys_siglist in system C library" >&5
11618echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
11619if test "${bash_cv_under_sys_siglist+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
11621else
11622 if test "$cross_compiling" = yes; then
f73dda09
JA
11623 { echo "$as_me:11623: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
11624echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
cce855bc 11625 bash_cv_under_sys_siglist=no
ccc6cda3 11626else
f73dda09
JA
11627 cat >conftest.$ac_ext <<_ACEOF
11628#line 11628 "configure"
ccc6cda3
JA
11629#include "confdefs.h"
11630
11631#include <sys/types.h>
11632#include <signal.h>
11633#ifdef HAVE_UNISTD_H
11634#include <unistd.h>
11635#endif
e8ce775d 11636#ifndef UNDER_SYS_SIGLIST_DECLARED
ccc6cda3
JA
11637extern char *_sys_siglist[];
11638#endif
11639main()
11640{
e8ce775d 11641char *msg = (char *)_sys_siglist[2];
ccc6cda3
JA
11642exit(msg == 0);
11643}
f73dda09
JA
11644_ACEOF
11645rm -f conftest$ac_exeext
11646if { (eval echo "$as_me:11646: \"$ac_link\"") >&5
11647 (eval $ac_link) 2>&5
11648 ac_status=$?
11649 echo "$as_me:11649: \$? = $ac_status" >&5
11650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11651 { (eval echo "$as_me:11651: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:11654: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
ccc6cda3
JA
11656 bash_cv_under_sys_siglist=yes
11657else
f73dda09
JA
11658 echo "$as_me: program exited with status $ac_status" >&5
11659echo "$as_me: failed program was:" >&5
11660cat conftest.$ac_ext >&5
11661bash_cv_under_sys_siglist=no
ccc6cda3 11662fi
f73dda09 11663rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 11664fi
ccc6cda3 11665fi
cce855bc 11666
f73dda09
JA
11667echo "$as_me:11667: result: $bash_cv_under_sys_siglist" >&5
11668echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
ccc6cda3 11669if test $bash_cv_under_sys_siglist = yes; then
f73dda09 11670cat >>confdefs.h <<\EOF
ccc6cda3
JA
11671#define HAVE_UNDER_SYS_SIGLIST 1
11672EOF
11673
11674fi
11675
f73dda09
JA
11676echo "$as_me:11676: checking whether signal handlers are of type void" >&5
11677echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
11678if test "${bash_cv_void_sighandler+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 11680else
f73dda09
JA
11681 cat >conftest.$ac_ext <<_ACEOF
11682#line 11682 "configure"
ccc6cda3
JA
11683#include "confdefs.h"
11684#include <sys/types.h>
11685#include <signal.h>
11686#ifdef signal
11687#undef signal
11688#endif
11689#ifdef __cplusplus
11690extern "C"
11691#endif
11692void (*signal ()) ();
f73dda09
JA
11693int
11694main ()
11695{
ccc6cda3 11696int i;
f73dda09
JA
11697 ;
11698 return 0;
11699}
11700_ACEOF
11701rm -f conftest.$ac_objext
11702if { (eval echo "$as_me:11702: \"$ac_compile\"") >&5
11703 (eval $ac_compile) 2>&5
11704 ac_status=$?
11705 echo "$as_me:11705: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -s conftest.$ac_objext'
11708 { (eval echo "$as_me:11708: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11710 ac_status=$?
11711 echo "$as_me:11711: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }; then
ccc6cda3
JA
11713 bash_cv_void_sighandler=yes
11714else
f73dda09
JA
11715 echo "$as_me: failed program was:" >&5
11716cat conftest.$ac_ext >&5
11717bash_cv_void_sighandler=no
ccc6cda3 11718fi
f73dda09 11719rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3 11720fi
f73dda09
JA
11721echo "$as_me:11721: result: $bash_cv_void_sighandler" >&5
11722echo "${ECHO_T}$bash_cv_void_sighandler" >&6
ccc6cda3 11723if test $bash_cv_void_sighandler = yes; then
f73dda09 11724cat >>confdefs.h <<\EOF
ccc6cda3
JA
11725#define VOID_SIGHANDLER 1
11726EOF
11727
11728fi
11729
f73dda09
JA
11730echo "$as_me:11730: checking for clock_t" >&5
11731echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11732if test "${bash_cv_type_clock_t+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 11734else
f73dda09
JA
11735 cat >conftest.$ac_ext <<_ACEOF
11736#line 11736 "configure"
ccc6cda3
JA
11737#include "confdefs.h"
11738#include <sys/types.h>
11739#if STDC_HEADERS
11740#include <stdlib.h>
f73dda09
JA
11741#include <stddef.h>
11742#endif
11743#if HAVE_INTTYPES_H
11744#include <inttypes.h>
ccc6cda3
JA
11745#endif
11746#include <sys/times.h>
11747
f73dda09 11748_ACEOF
ccc6cda3
JA
11749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11750 egrep "clock_t" >/dev/null 2>&1; then
ccc6cda3
JA
11751 bash_cv_type_clock_t=yes
11752else
ccc6cda3
JA
11753 bash_cv_type_clock_t=no
11754fi
11755rm -f conftest*
11756
11757fi
11758
f73dda09
JA
11759echo "$as_me:11759: result: $bash_cv_type_clock_t" >&5
11760echo "${ECHO_T}$bash_cv_type_clock_t" >&6
ccc6cda3
JA
11761
11762if test $bash_cv_type_clock_t = no; then
f73dda09 11763 cat >>confdefs.h <<EOF
ccc6cda3
JA
11764#define clock_t long
11765EOF
11766
11767fi
11768
f73dda09
JA
11769echo "$as_me:11769: checking for sigset_t" >&5
11770echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
11771if test "${bash_cv_type_sigset_t+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 11773else
f73dda09
JA
11774 cat >conftest.$ac_ext <<_ACEOF
11775#line 11775 "configure"
ccc6cda3
JA
11776#include "confdefs.h"
11777#include <sys/types.h>
11778#if STDC_HEADERS
11779#include <stdlib.h>
f73dda09
JA
11780#include <stddef.h>
11781#endif
11782#if HAVE_INTTYPES_H
11783#include <inttypes.h>
ccc6cda3
JA
11784#endif
11785#include <signal.h>
11786
f73dda09 11787_ACEOF
ccc6cda3
JA
11788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11789 egrep "sigset_t" >/dev/null 2>&1; then
ccc6cda3
JA
11790 bash_cv_type_sigset_t=yes
11791else
ccc6cda3
JA
11792 bash_cv_type_sigset_t=no
11793fi
11794rm -f conftest*
11795
11796fi
11797
f73dda09
JA
11798echo "$as_me:11798: result: $bash_cv_type_sigset_t" >&5
11799echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
ccc6cda3
JA
11800
11801if test $bash_cv_type_sigset_t = no; then
f73dda09 11802 cat >>confdefs.h <<EOF
ccc6cda3
JA
11803#define sigset_t int
11804EOF
11805
11806fi
11807
f73dda09
JA
11808echo "$as_me:11808: checking for quad_t" >&5
11809echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
11810if test "${bash_cv_type_quad_t+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 11812else
f73dda09
JA
11813 cat >conftest.$ac_ext <<_ACEOF
11814#line 11814 "configure"
ccc6cda3
JA
11815#include "confdefs.h"
11816#include <sys/types.h>
11817#if STDC_HEADERS
11818#include <stdlib.h>
f73dda09
JA
11819#include <stddef.h>
11820#endif
11821#if HAVE_INTTYPES_H
11822#include <inttypes.h>
ccc6cda3
JA
11823#endif
11824
f73dda09 11825_ACEOF
ccc6cda3
JA
11826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11827 egrep "quad_t" >/dev/null 2>&1; then
ccc6cda3
JA
11828 bash_cv_type_quad_t=yes
11829else
ccc6cda3
JA
11830 bash_cv_type_quad_t=no
11831fi
11832rm -f conftest*
11833
11834fi
11835
f73dda09
JA
11836echo "$as_me:11836: result: $bash_cv_type_quad_t" >&5
11837echo "${ECHO_T}$bash_cv_type_quad_t" >&6
ccc6cda3 11838if test $bash_cv_type_quad_t = yes; then
f73dda09 11839 cat >>confdefs.h <<\EOF
ccc6cda3
JA
11840#define HAVE_QUAD_T 1
11841EOF
11842
11843 fi
11844if test $bash_cv_type_quad_t = no; then
f73dda09 11845 cat >>confdefs.h <<EOF
ccc6cda3
JA
11846#define quad_t long
11847EOF
11848
11849fi
11850
f73dda09
JA
11851echo "$as_me:11851: checking for intmax_t" >&5
11852echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
11853if test "${bash_cv_type_intmax_t+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11855else
11856 cat >conftest.$ac_ext <<_ACEOF
11857#line 11857 "configure"
11858#include "confdefs.h"
11859#include <sys/types.h>
11860#if STDC_HEADERS
11861#include <stdlib.h>
11862#include <stddef.h>
11863#endif
11864#if HAVE_INTTYPES_H
11865#include <inttypes.h>
11866#endif
11867
11868_ACEOF
11869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11870 egrep "intmax_t" >/dev/null 2>&1; then
11871 bash_cv_type_intmax_t=yes
11872else
11873 bash_cv_type_intmax_t=no
11874fi
11875rm -f conftest*
11876
11877fi
11878
11879echo "$as_me:11879: result: $bash_cv_type_intmax_t" >&5
11880echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
11881
11882if test $bash_cv_type_intmax_t = no; then
11883 cat >>confdefs.h <<EOF
11884#define intmax_t $bash_cv_type_long_long
11885EOF
11886
11887fi
11888
11889echo "$as_me:11889: checking for uintmax_t" >&5
11890echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
11891if test "${bash_cv_type_uintmax_t+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893else
11894 cat >conftest.$ac_ext <<_ACEOF
11895#line 11895 "configure"
11896#include "confdefs.h"
11897#include <sys/types.h>
11898#if STDC_HEADERS
11899#include <stdlib.h>
11900#include <stddef.h>
11901#endif
11902#if HAVE_INTTYPES_H
11903#include <inttypes.h>
11904#endif
11905
11906_ACEOF
11907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11908 egrep "uintmax_t" >/dev/null 2>&1; then
11909 bash_cv_type_uintmax_t=yes
11910else
11911 bash_cv_type_uintmax_t=no
11912fi
11913rm -f conftest*
11914
11915fi
11916
11917echo "$as_me:11917: result: $bash_cv_type_uintmax_t" >&5
11918echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
11919
11920if test $bash_cv_type_uintmax_t = no; then
11921 cat >>confdefs.h <<EOF
11922#define uintmax_t $bash_cv_type_unsigned_long_long
11923EOF
11924
11925fi
11926
11927if test "$ac_cv_header_sys_socket_h" = "yes"; then
11928
11929echo "$as_me:11929: checking for socklen_t" >&5
11930echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11931if test "${bash_cv_type_socklen_t+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11933else
11934 cat >conftest.$ac_ext <<_ACEOF
11935#line 11935 "configure"
11936#include "confdefs.h"
11937#include <sys/types.h>
11938#if STDC_HEADERS
11939#include <stdlib.h>
11940#include <stddef.h>
11941#endif
11942#if HAVE_INTTYPES_H
11943#include <inttypes.h>
11944#endif
11945#include <sys/socket.h>
11946
11947_ACEOF
11948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11949 egrep "socklen_t" >/dev/null 2>&1; then
11950 bash_cv_type_socklen_t=yes
11951else
11952 bash_cv_type_socklen_t=no
11953fi
11954rm -f conftest*
11955
11956fi
11957
11958echo "$as_me:11958: result: $bash_cv_type_socklen_t" >&5
11959echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
11960if test $bash_cv_type_socklen_t = yes; then
11961 cat >>confdefs.h <<\EOF
11962#define HAVE_SOCKLEN_T 1
11963EOF
11964
11965 fi
11966if test $bash_cv_type_socklen_t = no; then
11967 cat >>confdefs.h <<EOF
11968#define socklen_t int
11969EOF
11970
11971fi
11972
11973fi
11974echo "$as_me:11974: checking for size and type of struct rlimit fields" >&5
11975echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
11976if test "${bash_cv_type_rlimit+set}" = set; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 11978else
f73dda09
JA
11979 cat >conftest.$ac_ext <<_ACEOF
11980#line 11980 "configure"
ccc6cda3
JA
11981#include "confdefs.h"
11982#include <sys/types.h>
cce855bc 11983#include <sys/resource.h>
f73dda09
JA
11984int
11985main ()
11986{
ccc6cda3 11987rlim_t xxx;
f73dda09
JA
11988 ;
11989 return 0;
11990}
11991_ACEOF
11992rm -f conftest.$ac_objext
11993if { (eval echo "$as_me:11993: \"$ac_compile\"") >&5
11994 (eval $ac_compile) 2>&5
11995 ac_status=$?
11996 echo "$as_me:11996: \$? = $ac_status" >&5
11997 (exit $ac_status); } &&
11998 { ac_try='test -s conftest.$ac_objext'
11999 { (eval echo "$as_me:11999: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:12002: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
ccc6cda3
JA
12004 bash_cv_type_rlimit=rlim_t
12005else
f73dda09
JA
12006 echo "$as_me: failed program was:" >&5
12007cat conftest.$ac_ext >&5
12008
ccc6cda3 12009if test "$cross_compiling" = yes; then
f73dda09
JA
12010 { echo "$as_me:12010: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
12011echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
cce855bc 12012 bash_cv_type_rlimit=long
ccc6cda3 12013else
f73dda09
JA
12014 cat >conftest.$ac_ext <<_ACEOF
12015#line 12015 "configure"
ccc6cda3
JA
12016#include "confdefs.h"
12017
12018#include <sys/types.h>
12019#include <sys/time.h>
12020#include <sys/resource.h>
12021main()
12022{
12023#ifdef HAVE_QUAD_T
12024 struct rlimit rl;
12025 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
12026 exit(0);
12027#endif
12028 exit(1);
12029}
f73dda09
JA
12030_ACEOF
12031rm -f conftest$ac_exeext
12032if { (eval echo "$as_me:12032: \"$ac_link\"") >&5
12033 (eval $ac_link) 2>&5
12034 ac_status=$?
12035 echo "$as_me:12035: \$? = $ac_status" >&5
12036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12037 { (eval echo "$as_me:12037: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:12040: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
ccc6cda3
JA
12042 bash_cv_type_rlimit=quad_t
12043else
f73dda09
JA
12044 echo "$as_me: program exited with status $ac_status" >&5
12045echo "$as_me: failed program was:" >&5
12046cat conftest.$ac_ext >&5
12047bash_cv_type_rlimit=long
ccc6cda3 12048fi
f73dda09 12049rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 12050fi
ccc6cda3 12051fi
f73dda09 12052rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
12053
12054fi
12055
f73dda09
JA
12056echo "$as_me:12056: result: $bash_cv_type_rlimit" >&5
12057echo "${ECHO_T}$bash_cv_type_rlimit" >&6
ccc6cda3 12058if test $bash_cv_type_rlimit = quad_t; then
f73dda09 12059cat >>confdefs.h <<\EOF
ccc6cda3
JA
12060#define RLIMTYPE quad_t
12061EOF
12062
12063elif test $bash_cv_type_rlimit = rlim_t; then
f73dda09 12064cat >>confdefs.h <<\EOF
ccc6cda3
JA
12065#define RLIMTYPE rlim_t
12066EOF
12067
12068fi
12069
f73dda09
JA
12070echo "$as_me:12070: checking for struct termios.c_line" >&5
12071echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
12072if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 12074else
f73dda09
JA
12075 cat >conftest.$ac_ext <<_ACEOF
12076#line 12076 "configure"
ccc6cda3 12077#include "confdefs.h"
f73dda09 12078
ccc6cda3
JA
12079#include <sys/types.h>
12080#include <termios.h>
f73dda09
JA
12081
12082int
12083main ()
12084{
12085static struct termios ac_aggr;
12086if (ac_aggr.c_line)
12087return 0;
12088 ;
12089 return 0;
12090}
12091_ACEOF
12092rm -f conftest.$ac_objext
12093if { (eval echo "$as_me:12093: \"$ac_compile\"") >&5
12094 (eval $ac_compile) 2>&5
12095 ac_status=$?
12096 echo "$as_me:12096: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -s conftest.$ac_objext'
12099 { (eval echo "$as_me:12099: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:12102: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_cv_member_struct_termios_c_line=yes
12105else
12106 echo "$as_me: failed program was:" >&5
12107cat conftest.$ac_ext >&5
12108ac_cv_member_struct_termios_c_line=no
12109fi
12110rm -f conftest.$ac_objext conftest.$ac_ext
12111fi
12112echo "$as_me:12112: result: $ac_cv_member_struct_termios_c_line" >&5
12113echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
12114if test $ac_cv_member_struct_termios_c_line = yes; then
12115 cat >>confdefs.h <<\EOF
ccc6cda3
JA
12116#define TERMIOS_LDISC 1
12117EOF
12118
12119fi
12120
f73dda09
JA
12121echo "$as_me:12121: checking for struct termio.c_line" >&5
12122echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
12123if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
12124 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 12125else
f73dda09
JA
12126 cat >conftest.$ac_ext <<_ACEOF
12127#line 12127 "configure"
ccc6cda3 12128#include "confdefs.h"
f73dda09 12129
ccc6cda3
JA
12130#include <sys/types.h>
12131#include <termio.h>
f73dda09
JA
12132
12133int
12134main ()
12135{
12136static struct termio ac_aggr;
12137if (ac_aggr.c_line)
12138return 0;
12139 ;
12140 return 0;
12141}
12142_ACEOF
12143rm -f conftest.$ac_objext
12144if { (eval echo "$as_me:12144: \"$ac_compile\"") >&5
12145 (eval $ac_compile) 2>&5
12146 ac_status=$?
12147 echo "$as_me:12147: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try='test -s conftest.$ac_objext'
12150 { (eval echo "$as_me:12150: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12152 ac_status=$?
12153 echo "$as_me:12153: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
12155 ac_cv_member_struct_termio_c_line=yes
12156else
12157 echo "$as_me: failed program was:" >&5
12158cat conftest.$ac_ext >&5
12159ac_cv_member_struct_termio_c_line=no
12160fi
12161rm -f conftest.$ac_objext conftest.$ac_ext
12162fi
12163echo "$as_me:12163: result: $ac_cv_member_struct_termio_c_line" >&5
12164echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
12165if test $ac_cv_member_struct_termio_c_line = yes; then
12166 cat >>confdefs.h <<\EOF
ccc6cda3
JA
12167#define TERMIO_LDISC 1
12168EOF
12169
12170fi
12171
f73dda09
JA
12172echo "$as_me:12172: checking if struct dirent has a d_ino member" >&5
12173echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6
12174if test "${bash_cv_dirent_has_dino+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 12176else
f73dda09
JA
12177 cat >conftest.$ac_ext <<_ACEOF
12178#line 12178 "configure"
ccc6cda3
JA
12179#include "confdefs.h"
12180
12181#include <stdio.h>
12182#include <sys/types.h>
12183#ifdef HAVE_UNISTD_H
12184# include <unistd.h>
12185#endif /* HAVE_UNISTD_H */
12186#if defined(HAVE_DIRENT_H)
12187# include <dirent.h>
12188#else
12189# define dirent direct
12190# ifdef HAVE_SYS_NDIR_H
12191# include <sys/ndir.h>
12192# endif /* SYSNDIR */
12193# ifdef HAVE_SYS_DIR_H
12194# include <sys/dir.h>
12195# endif /* SYSDIR */
12196# ifdef HAVE_NDIR_H
12197# include <ndir.h>
12198# endif
12199#endif /* HAVE_DIRENT_H */
12200
f73dda09
JA
12201int
12202main ()
12203{
ccc6cda3
JA
12204
12205struct dirent d; int z; z = d.d_ino;
12206
f73dda09
JA
12207 ;
12208 return 0;
12209}
12210_ACEOF
12211rm -f conftest.$ac_objext
12212if { (eval echo "$as_me:12212: \"$ac_compile\"") >&5
12213 (eval $ac_compile) 2>&5
12214 ac_status=$?
12215 echo "$as_me:12215: \$? = $ac_status" >&5
12216 (exit $ac_status); } &&
12217 { ac_try='test -s conftest.$ac_objext'
12218 { (eval echo "$as_me:12218: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12220 ac_status=$?
12221 echo "$as_me:12221: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
ccc6cda3
JA
12223 bash_cv_dirent_has_dino=yes
12224else
f73dda09
JA
12225 echo "$as_me: failed program was:" >&5
12226cat conftest.$ac_ext >&5
12227bash_cv_dirent_has_dino=no
ccc6cda3 12228fi
f73dda09 12229rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
12230fi
12231
f73dda09
JA
12232echo "$as_me:12232: result: $bash_cv_dirent_has_dino" >&5
12233echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
ccc6cda3 12234if test $bash_cv_dirent_has_dino = yes; then
f73dda09 12235cat >>confdefs.h <<\EOF
ccc6cda3
JA
12236#define STRUCT_DIRENT_HAS_D_INO 1
12237EOF
12238
12239fi
12240
f73dda09
JA
12241echo "$as_me:12241: checking if struct dirent has a d_fileno member" >&5
12242echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6
12243if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048 12245else
f73dda09
JA
12246 cat >conftest.$ac_ext <<_ACEOF
12247#line 12247 "configure"
d166f048
JA
12248#include "confdefs.h"
12249
12250#include <stdio.h>
12251#include <sys/types.h>
12252#ifdef HAVE_UNISTD_H
12253# include <unistd.h>
12254#endif /* HAVE_UNISTD_H */
12255#if defined(HAVE_DIRENT_H)
12256# include <dirent.h>
12257#else
12258# define dirent direct
12259# ifdef HAVE_SYS_NDIR_H
12260# include <sys/ndir.h>
12261# endif /* SYSNDIR */
12262# ifdef HAVE_SYS_DIR_H
12263# include <sys/dir.h>
12264# endif /* SYSDIR */
12265# ifdef HAVE_NDIR_H
12266# include <ndir.h>
12267# endif
12268#endif /* HAVE_DIRENT_H */
12269
f73dda09
JA
12270int
12271main ()
12272{
d166f048
JA
12273
12274struct dirent d; int z; z = d.d_fileno;
12275
f73dda09
JA
12276 ;
12277 return 0;
12278}
12279_ACEOF
12280rm -f conftest.$ac_objext
12281if { (eval echo "$as_me:12281: \"$ac_compile\"") >&5
12282 (eval $ac_compile) 2>&5
12283 ac_status=$?
12284 echo "$as_me:12284: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -s conftest.$ac_objext'
12287 { (eval echo "$as_me:12287: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12289 ac_status=$?
12290 echo "$as_me:12290: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
d166f048
JA
12292 bash_cv_dirent_has_d_fileno=yes
12293else
f73dda09
JA
12294 echo "$as_me: failed program was:" >&5
12295cat conftest.$ac_ext >&5
12296bash_cv_dirent_has_d_fileno=no
d166f048 12297fi
f73dda09 12298rm -f conftest.$ac_objext conftest.$ac_ext
d166f048
JA
12299fi
12300
f73dda09
JA
12301echo "$as_me:12301: result: $bash_cv_dirent_has_d_fileno" >&5
12302echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
d166f048 12303if test $bash_cv_dirent_has_d_fileno = yes; then
f73dda09 12304cat >>confdefs.h <<\EOF
d166f048
JA
12305#define STRUCT_DIRENT_HAS_D_FILENO 1
12306EOF
12307
12308fi
12309
f73dda09
JA
12310echo "$as_me:12310: checking for struct winsize in sys/ioctl.h and termios.h" >&5
12311echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
12312if test "${bash_cv_struct_winsize_header+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048 12314else
f73dda09
JA
12315 cat >conftest.$ac_ext <<_ACEOF
12316#line 12316 "configure"
d166f048
JA
12317#include "confdefs.h"
12318#include <sys/types.h>
12319#include <sys/ioctl.h>
f73dda09
JA
12320int
12321main ()
12322{
d166f048 12323struct winsize x;
f73dda09
JA
12324 ;
12325 return 0;
12326}
12327_ACEOF
12328rm -f conftest.$ac_objext
12329if { (eval echo "$as_me:12329: \"$ac_compile\"") >&5
12330 (eval $ac_compile) 2>&5
12331 ac_status=$?
12332 echo "$as_me:12332: \$? = $ac_status" >&5
12333 (exit $ac_status); } &&
12334 { ac_try='test -s conftest.$ac_objext'
12335 { (eval echo "$as_me:12335: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:12338: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
cce855bc
JA
12340 bash_cv_struct_winsize_header=ioctl_h
12341else
f73dda09
JA
12342 echo "$as_me: failed program was:" >&5
12343cat conftest.$ac_ext >&5
12344cat >conftest.$ac_ext <<_ACEOF
12345#line 12345 "configure"
cce855bc
JA
12346#include "confdefs.h"
12347#include <sys/types.h>
12348#include <termios.h>
f73dda09
JA
12349int
12350main ()
12351{
cce855bc 12352struct winsize x;
f73dda09
JA
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357rm -f conftest.$ac_objext
12358if { (eval echo "$as_me:12358: \"$ac_compile\"") >&5
12359 (eval $ac_compile) 2>&5
12360 ac_status=$?
12361 echo "$as_me:12361: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -s conftest.$ac_objext'
12364 { (eval echo "$as_me:12364: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:12367: \$? = $ac_status" >&5
12368 (exit $ac_status); }; }; then
cce855bc 12369 bash_cv_struct_winsize_header=termios_h
d166f048 12370else
f73dda09
JA
12371 echo "$as_me: failed program was:" >&5
12372cat conftest.$ac_ext >&5
12373bash_cv_struct_winsize_header=other
cce855bc 12374fi
f73dda09 12375rm -f conftest.$ac_objext conftest.$ac_ext
cce855bc 12376
d166f048 12377fi
f73dda09 12378rm -f conftest.$ac_objext conftest.$ac_ext
d166f048
JA
12379fi
12380
cce855bc 12381if test $bash_cv_struct_winsize_header = ioctl_h; then
f73dda09
JA
12382 echo "$as_me:12382: result: sys/ioctl.h" >&5
12383echo "${ECHO_T}sys/ioctl.h" >&6
12384 cat >>confdefs.h <<\EOF
d166f048
JA
12385#define STRUCT_WINSIZE_IN_SYS_IOCTL 1
12386EOF
12387
cce855bc 12388elif test $bash_cv_struct_winsize_header = termios_h; then
f73dda09
JA
12389 echo "$as_me:12389: result: termios.h" >&5
12390echo "${ECHO_T}termios.h" >&6
12391 cat >>confdefs.h <<\EOF
cce855bc
JA
12392#define STRUCT_WINSIZE_IN_TERMIOS 1
12393EOF
12394
12395else
f73dda09
JA
12396 echo "$as_me:12396: result: not found" >&5
12397echo "${ECHO_T}not found" >&6
d166f048
JA
12398fi
12399
f73dda09
JA
12400echo "$as_me:12400: checking for struct timeval in sys/time.h and time.h" >&5
12401echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
12402if test "${bash_cv_struct_timeval+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 12404else
f73dda09
JA
12405
12406cat >conftest.$ac_ext <<_ACEOF
12407#line 12407 "configure"
bb70624e
JA
12408#include "confdefs.h"
12409#include <sys/time.h>
f73dda09
JA
12410
12411_ACEOF
bb70624e
JA
12412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12413 egrep "struct timeval" >/dev/null 2>&1; then
bb70624e
JA
12414 bash_cv_struct_timeval=yes
12415else
f73dda09
JA
12416 cat >conftest.$ac_ext <<_ACEOF
12417#line 12417 "configure"
bb70624e
JA
12418#include "confdefs.h"
12419#include <time.h>
f73dda09
JA
12420
12421_ACEOF
bb70624e
JA
12422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12423 egrep "struct timeval" >/dev/null 2>&1; then
bb70624e
JA
12424 bash_cv_struct_timeval=yes
12425else
bb70624e
JA
12426 bash_cv_struct_timeval=no
12427fi
12428rm -f conftest*
12429
12430fi
12431rm -f conftest*
12432
bb70624e
JA
12433fi
12434
f73dda09
JA
12435echo "$as_me:12435: result: $bash_cv_struct_timeval" >&5
12436echo "${ECHO_T}$bash_cv_struct_timeval" >&6
bb70624e 12437if test $bash_cv_struct_timeval = yes; then
f73dda09 12438 cat >>confdefs.h <<\EOF
bb70624e
JA
12439#define HAVE_TIMEVAL 1
12440EOF
12441
12442fi
12443
f73dda09
JA
12444echo "$as_me:12444: checking for struct stat.st_blocks" >&5
12445echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12446if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448else
12449 cat >conftest.$ac_ext <<_ACEOF
12450#line 12450 "configure"
12451#include "confdefs.h"
12452$ac_includes_default
12453int
12454main ()
12455{
12456static struct stat ac_aggr;
12457if (ac_aggr.st_blocks)
12458return 0;
12459 ;
12460 return 0;
12461}
12462_ACEOF
12463rm -f conftest.$ac_objext
12464if { (eval echo "$as_me:12464: \"$ac_compile\"") >&5
12465 (eval $ac_compile) 2>&5
12466 ac_status=$?
12467 echo "$as_me:12467: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -s conftest.$ac_objext'
12470 { (eval echo "$as_me:12470: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 echo "$as_me:12473: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_cv_member_struct_stat_st_blocks=yes
12476else
12477 echo "$as_me: failed program was:" >&5
12478cat conftest.$ac_ext >&5
12479ac_cv_member_struct_stat_st_blocks=no
12480fi
12481rm -f conftest.$ac_objext conftest.$ac_ext
12482fi
12483echo "$as_me:12483: result: $ac_cv_member_struct_stat_st_blocks" >&5
12484echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12485if test $ac_cv_member_struct_stat_st_blocks = yes; then
12486
12487cat >>confdefs.h <<EOF
12488#define HAVE_STRUCT_STAT_ST_BLOCKS 1
12489EOF
12490
12491fi
d166f048 12492
f73dda09
JA
12493echo "$as_me:12493: checking for the existence of strsignal" >&5
12494echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
12495if test "${bash_cv_have_strsignal+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 12497else
f73dda09
JA
12498 cat >conftest.$ac_ext <<_ACEOF
12499#line 12499 "configure"
ccc6cda3
JA
12500#include "confdefs.h"
12501#include <sys/types.h>
12502#include <signal.h>
f73dda09
JA
12503int
12504main ()
12505{
ccc6cda3 12506char *s = (char *)strsignal(2);
f73dda09
JA
12507 ;
12508 return 0;
12509}
12510_ACEOF
12511rm -f conftest.$ac_objext conftest$ac_exeext
12512if { (eval echo "$as_me:12512: \"$ac_link\"") >&5
12513 (eval $ac_link) 2>&5
12514 ac_status=$?
12515 echo "$as_me:12515: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -s conftest$ac_exeext'
12518 { (eval echo "$as_me:12518: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:12521: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
ccc6cda3
JA
12523 bash_cv_have_strsignal=yes
12524else
f73dda09
JA
12525 echo "$as_me: failed program was:" >&5
12526cat conftest.$ac_ext >&5
12527bash_cv_have_strsignal=no
ccc6cda3 12528fi
f73dda09 12529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ccc6cda3
JA
12530fi
12531
f73dda09
JA
12532echo "$as_me:12532: result: $bash_cv_have_strsignal" >&5
12533echo "${ECHO_T}$bash_cv_have_strsignal" >&6
ccc6cda3 12534if test $bash_cv_have_strsignal = yes; then
f73dda09 12535cat >>confdefs.h <<\EOF
ccc6cda3
JA
12536#define HAVE_STRSIGNAL 1
12537EOF
12538
12539fi
12540
f73dda09
JA
12541echo "$as_me:12541: checking if opendir() opens non-directories" >&5
12542echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
12543if test "${bash_cv_opendir_not_robust+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
12545else
12546 if test "$cross_compiling" = yes; then
f73dda09
JA
12547 { echo "$as_me:12547: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
12548echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
12549 bash_cv_opendir_not_robust=no
12550
ccc6cda3 12551else
f73dda09
JA
12552 cat >conftest.$ac_ext <<_ACEOF
12553#line 12553 "configure"
ccc6cda3
JA
12554#include "confdefs.h"
12555
12556#include <stdio.h>
12557#include <sys/types.h>
12558#include <fcntl.h>
12559#ifdef HAVE_UNISTD_H
12560# include <unistd.h>
12561#endif /* HAVE_UNISTD_H */
12562#if defined(HAVE_DIRENT_H)
12563# include <dirent.h>
12564#else
12565# define dirent direct
12566# ifdef HAVE_SYS_NDIR_H
12567# include <sys/ndir.h>
12568# endif /* SYSNDIR */
12569# ifdef HAVE_SYS_DIR_H
12570# include <sys/dir.h>
12571# endif /* SYSDIR */
12572# ifdef HAVE_NDIR_H
12573# include <ndir.h>
12574# endif
12575#endif /* HAVE_DIRENT_H */
12576main()
12577{
12578DIR *dir;
bb70624e
JA
12579int fd, err;
12580err = mkdir("/tmp/bash-aclocal", 0700);
12581if (err < 0) {
12582 perror("mkdir");
12583 exit(1);
12584}
12585unlink("/tmp/bash-aclocal/not_a_directory");
12586fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
ccc6cda3
JA
12587write(fd, "\n", 1);
12588close(fd);
bb70624e
JA
12589dir = opendir("/tmp/bash-aclocal/not_a_directory");
12590unlink("/tmp/bash-aclocal/not_a_directory");
12591rmdir("/tmp/bash-aclocal");
ccc6cda3
JA
12592exit (dir == 0);
12593}
f73dda09
JA
12594_ACEOF
12595rm -f conftest$ac_exeext
12596if { (eval echo "$as_me:12596: \"$ac_link\"") >&5
12597 (eval $ac_link) 2>&5
12598 ac_status=$?
12599 echo "$as_me:12599: \$? = $ac_status" >&5
12600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12601 { (eval echo "$as_me:12601: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:12604: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
ccc6cda3
JA
12606 bash_cv_opendir_not_robust=yes
12607else
f73dda09
JA
12608 echo "$as_me: program exited with status $ac_status" >&5
12609echo "$as_me: failed program was:" >&5
12610cat conftest.$ac_ext >&5
12611bash_cv_opendir_not_robust=no
ccc6cda3 12612fi
f73dda09 12613rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 12614fi
ccc6cda3
JA
12615fi
12616
f73dda09
JA
12617echo "$as_me:12617: result: $bash_cv_opendir_not_robust" >&5
12618echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
ccc6cda3 12619if test $bash_cv_opendir_not_robust = yes; then
f73dda09 12620cat >>confdefs.h <<\EOF
ccc6cda3
JA
12621#define OPENDIR_NOT_ROBUST 1
12622EOF
12623
12624fi
12625
f73dda09
JA
12626echo "$as_me:12626: checking whether ulimit can substitute for getdtablesize" >&5
12627echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
12628if test "${bash_cv_ulimit_maxfds+set}" = set; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
12630else
12631 if test "$cross_compiling" = yes; then
f73dda09
JA
12632 { echo "$as_me:12632: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
12633echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
12634 bash_cv_ulimit_maxfds=no
12635
ccc6cda3 12636else
f73dda09
JA
12637 cat >conftest.$ac_ext <<_ACEOF
12638#line 12638 "configure"
ccc6cda3
JA
12639#include "confdefs.h"
12640
12641main()
12642{
12643long maxfds = ulimit(4, 0L);
12644exit (maxfds == -1L);
12645}
12646
f73dda09
JA
12647_ACEOF
12648rm -f conftest$ac_exeext
12649if { (eval echo "$as_me:12649: \"$ac_link\"") >&5
12650 (eval $ac_link) 2>&5
12651 ac_status=$?
12652 echo "$as_me:12652: \$? = $ac_status" >&5
12653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12654 { (eval echo "$as_me:12654: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:12657: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
ccc6cda3
JA
12659 bash_cv_ulimit_maxfds=yes
12660else
f73dda09
JA
12661 echo "$as_me: program exited with status $ac_status" >&5
12662echo "$as_me: failed program was:" >&5
12663cat conftest.$ac_ext >&5
12664bash_cv_ulimit_maxfds=no
ccc6cda3 12665fi
f73dda09 12666rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 12667fi
ccc6cda3
JA
12668fi
12669
f73dda09
JA
12670echo "$as_me:12670: result: $bash_cv_ulimit_maxfds" >&5
12671echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
ccc6cda3 12672if test $bash_cv_ulimit_maxfds = yes; then
f73dda09 12673cat >>confdefs.h <<\EOF
ccc6cda3
JA
12674#define ULIMIT_MAXFDS 1
12675EOF
12676
12677fi
12678
f73dda09
JA
12679echo "$as_me:12679: checking to see if getenv can be redefined" >&5
12680echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
12681if test "${bash_cv_getenv_redef+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
12683else
12684 if test "$cross_compiling" = yes; then
f73dda09
JA
12685 { echo "$as_me:12685: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
12686echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
cce855bc
JA
12687 bash_cv_getenv_redef=yes
12688
ccc6cda3 12689else
f73dda09
JA
12690 cat >conftest.$ac_ext <<_ACEOF
12691#line 12691 "configure"
ccc6cda3
JA
12692#include "confdefs.h"
12693
12694#ifdef HAVE_UNISTD_H
12695# include <unistd.h>
12696#endif
12697#ifndef __STDC__
12698# ifndef const
12699# define const
12700# endif
12701#endif
12702char *
12703getenv (name)
12704#if defined (__linux__) || defined (__bsdi__) || defined (convex)
12705 const char *name;
12706#else
12707 char const *name;
12708#endif /* !__linux__ && !__bsdi__ && !convex */
12709{
12710return "42";
12711}
12712main()
12713{
12714char *s;
12715/* The next allows this program to run, but does not allow bash to link
12716 when it redefines getenv. I'm not really interested in figuring out
12717 why not. */
12718#if defined (NeXT)
12719exit(1);
12720#endif
12721s = getenv("ABCDE");
12722exit(s == 0); /* force optimizer to leave getenv in */
12723}
12724
f73dda09
JA
12725_ACEOF
12726rm -f conftest$ac_exeext
12727if { (eval echo "$as_me:12727: \"$ac_link\"") >&5
12728 (eval $ac_link) 2>&5
12729 ac_status=$?
12730 echo "$as_me:12730: \$? = $ac_status" >&5
12731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12732 { (eval echo "$as_me:12732: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12734 ac_status=$?
12735 echo "$as_me:12735: \$? = $ac_status" >&5
12736 (exit $ac_status); }; }; then
ccc6cda3
JA
12737 bash_cv_getenv_redef=yes
12738else
f73dda09
JA
12739 echo "$as_me: program exited with status $ac_status" >&5
12740echo "$as_me: failed program was:" >&5
12741cat conftest.$ac_ext >&5
12742bash_cv_getenv_redef=no
ccc6cda3 12743fi
f73dda09 12744rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 12745fi
ccc6cda3
JA
12746fi
12747
f73dda09
JA
12748echo "$as_me:12748: result: $bash_cv_getenv_redef" >&5
12749echo "${ECHO_T}$bash_cv_getenv_redef" >&6
ccc6cda3 12750if test $bash_cv_getenv_redef = yes; then
f73dda09 12751cat >>confdefs.h <<\EOF
ccc6cda3
JA
12752#define CAN_REDEFINE_GETENV 1
12753EOF
12754
12755fi
12756
f73dda09
JA
12757if test "$ac_func_getcwd" = "yes"; then
12758echo "$as_me:12758: checking if getcwd() calls popen()" >&5
12759echo $ECHO_N "checking if getcwd() calls popen()... $ECHO_C" >&6
12760if test "${bash_cv_getcwd_calls_popen+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
12762else
12763 if test "$cross_compiling" = yes; then
f73dda09
JA
12764 { echo "$as_me:12764: WARNING: cannot check whether getcwd calls popen if cross compiling -- defaulting to no" >&5
12765echo "$as_me: WARNING: cannot check whether getcwd calls popen if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
12766 bash_cv_getcwd_calls_popen=no
12767
ccc6cda3 12768else
f73dda09
JA
12769 cat >conftest.$ac_ext <<_ACEOF
12770#line 12770 "configure"
ccc6cda3
JA
12771#include "confdefs.h"
12772
12773#include <stdio.h>
12774#ifdef HAVE_UNISTD_H
12775#include <unistd.h>
12776#endif
12777
12778#ifndef __STDC__
12779#ifndef const
12780#define const
12781#endif
12782#endif
12783
12784int popen_called;
12785
12786FILE *
12787popen(command, type)
12788 const char *command;
12789 const char *type;
12790{
12791 popen_called = 1;
12792 return (FILE *)NULL;
12793}
12794
12795FILE *_popen(command, type)
12796 const char *command;
12797 const char *type;
12798{
12799 return (popen (command, type));
12800}
12801
12802int
12803pclose(stream)
12804FILE *stream;
12805{
12806 return 0;
12807}
12808
12809int
12810_pclose(stream)
12811FILE *stream;
12812{
12813 return 0;
12814}
12815
12816main()
12817{
12818 char lbuf[32];
12819 popen_called = 0;
12820 getcwd(lbuf, 32);
12821 exit (popen_called);
12822}
12823
f73dda09
JA
12824_ACEOF
12825rm -f conftest$ac_exeext
12826if { (eval echo "$as_me:12826: \"$ac_link\"") >&5
12827 (eval $ac_link) 2>&5
12828 ac_status=$?
12829 echo "$as_me:12829: \$? = $ac_status" >&5
12830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12831 { (eval echo "$as_me:12831: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12833 ac_status=$?
12834 echo "$as_me:12834: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
ccc6cda3
JA
12836 bash_cv_getcwd_calls_popen=no
12837else
f73dda09
JA
12838 echo "$as_me: program exited with status $ac_status" >&5
12839echo "$as_me: failed program was:" >&5
12840cat conftest.$ac_ext >&5
12841bash_cv_getcwd_calls_popen=yes
ccc6cda3 12842fi
f73dda09 12843rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 12844fi
ccc6cda3
JA
12845fi
12846
f73dda09
JA
12847echo "$as_me:12847: result: $bash_cv_getcwd_calls_popen" >&5
12848echo "${ECHO_T}$bash_cv_getcwd_calls_popen" >&6
ccc6cda3 12849if test $bash_cv_getcwd_calls_popen = yes; then
f73dda09 12850cat >>confdefs.h <<\EOF
ccc6cda3
JA
12851#define GETCWD_BROKEN 1
12852EOF
12853
f73dda09 12854LIBOBJS="$LIBOBJS getcwd.$ac_objext"
ccc6cda3
JA
12855fi
12856
ccc6cda3
JA
12857fi
12858
f73dda09
JA
12859echo "$as_me:12859: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
12860echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
12861if test "${bash_cv_func_sigsetjmp+set}" = set; then
12862 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
12863else
12864 if test "$cross_compiling" = yes; then
f73dda09
JA
12865 { echo "$as_me:12865: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
12866echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
12867 bash_cv_func_sigsetjmp=missing
12868
ccc6cda3 12869else
f73dda09
JA
12870 cat >conftest.$ac_ext <<_ACEOF
12871#line 12871 "configure"
ccc6cda3
JA
12872#include "confdefs.h"
12873
12874#ifdef HAVE_UNISTD_H
12875#include <unistd.h>
12876#endif
12877#include <sys/types.h>
12878#include <signal.h>
12879#include <setjmp.h>
12880
12881main()
12882{
12883#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
12884exit (1);
12885#else
12886
12887int code;
12888sigset_t set, oset;
12889sigjmp_buf xx;
12890
12891/* get the mask */
12892sigemptyset(&set);
12893sigemptyset(&oset);
12894sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
12895sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
12896
12897/* save it */
12898code = sigsetjmp(xx, 1);
12899if (code)
12900 exit(0); /* could get sigmask and compare to oset here. */
12901
12902/* change it */
12903sigaddset(&set, SIGINT);
12904sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
12905
12906/* and siglongjmp */
12907siglongjmp(xx, 10);
12908exit(1);
12909#endif
12910}
f73dda09
JA
12911_ACEOF
12912rm -f conftest$ac_exeext
12913if { (eval echo "$as_me:12913: \"$ac_link\"") >&5
12914 (eval $ac_link) 2>&5
12915 ac_status=$?
12916 echo "$as_me:12916: \$? = $ac_status" >&5
12917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12918 { (eval echo "$as_me:12918: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:12921: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
ccc6cda3
JA
12923 bash_cv_func_sigsetjmp=present
12924else
f73dda09
JA
12925 echo "$as_me: program exited with status $ac_status" >&5
12926echo "$as_me: failed program was:" >&5
12927cat conftest.$ac_ext >&5
12928bash_cv_func_sigsetjmp=missing
ccc6cda3 12929fi
f73dda09 12930rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 12931fi
ccc6cda3
JA
12932fi
12933
f73dda09
JA
12934echo "$as_me:12934: result: $bash_cv_func_sigsetjmp" >&5
12935echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
ccc6cda3 12936if test $bash_cv_func_sigsetjmp = present; then
f73dda09 12937cat >>confdefs.h <<\EOF
ccc6cda3
JA
12938#define HAVE_POSIX_SIGSETJMP 1
12939EOF
12940
12941fi
12942
f73dda09
JA
12943echo "$as_me:12943: checking whether or not strcoll and strcmp differ" >&5
12944echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
12945if test "${bash_cv_func_strcoll_broken+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048
JA
12947else
12948 if test "$cross_compiling" = yes; then
f73dda09
JA
12949 { echo "$as_me:12949: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
12950echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
12951 bash_cv_func_strcoll_broken=no
12952
d166f048 12953else
f73dda09
JA
12954 cat >conftest.$ac_ext <<_ACEOF
12955#line 12955 "configure"
d166f048
JA
12956#include "confdefs.h"
12957
12958#include <stdio.h>
12959#if defined (HAVE_LOCALE_H)
12960#include <locale.h>
12961#endif
12962
12963main(c, v)
12964int c;
12965char *v[];
12966{
12967 int r1, r2;
12968 char *deflocale, *defcoll;
12969
12970#ifdef HAVE_SETLOCALE
12971 deflocale = setlocale(LC_ALL, "");
12972 defcoll = setlocale(LC_COLLATE, "");
12973#endif
12974
12975#ifdef HAVE_STRCOLL
12976 /* These two values are taken from tests/glob-test. */
12977 r1 = strcoll("abd", "aXd");
12978#else
12979 r1 = 0;
12980#endif
12981 r2 = strcmp("abd", "aXd");
12982
12983 /* These two should both be greater than 0. It is permissible for
12984 a system to return different values, as long as the sign is the
12985 same. */
12986
12987 /* Exit with 1 (failure) if these two values are both > 0, since
12988 this tests whether strcoll(3) is broken with respect to strcmp(3)
12989 in the default locale. */
12990 exit (r1 > 0 && r2 > 0);
12991}
12992
f73dda09
JA
12993_ACEOF
12994rm -f conftest$ac_exeext
12995if { (eval echo "$as_me:12995: \"$ac_link\"") >&5
12996 (eval $ac_link) 2>&5
12997 ac_status=$?
12998 echo "$as_me:12998: \$? = $ac_status" >&5
12999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13000 { (eval echo "$as_me:13000: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13002 ac_status=$?
13003 echo "$as_me:13003: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
d166f048
JA
13005 bash_cv_func_strcoll_broken=yes
13006else
f73dda09
JA
13007 echo "$as_me: program exited with status $ac_status" >&5
13008echo "$as_me: failed program was:" >&5
13009cat conftest.$ac_ext >&5
13010bash_cv_func_strcoll_broken=no
d166f048 13011fi
f73dda09 13012rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d166f048 13013fi
d166f048
JA
13014fi
13015
f73dda09
JA
13016echo "$as_me:13016: result: $bash_cv_func_strcoll_broken" >&5
13017echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
d166f048 13018if test $bash_cv_func_strcoll_broken = yes; then
f73dda09 13019cat >>confdefs.h <<\EOF
d166f048
JA
13020#define STRCOLL_BROKEN 1
13021EOF
13022
13023fi
13024
f73dda09
JA
13025echo "$as_me:13025: checking for printf floating point output in hex notation" >&5
13026echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
13027if test "${bash_cv_printf_a_format+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13029else
13030 if test "$cross_compiling" = yes; then
13031 { echo "$as_me:13031: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
13032echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
13033 bash_cv_printf_a_format=no
13034
13035else
13036 cat >conftest.$ac_ext <<_ACEOF
13037#line 13037 "configure"
13038#include "confdefs.h"
13039
13040#include <stdio.h>
13041#include <string.h>
13042
13043int
13044main()
13045{
13046 double y = 0.0;
13047 char abuf[1024];
13048
13049 sprintf(abuf, "%A", y);
13050 exit(strchr(abuf, 'P') == (char *)0);
13051}
13052
13053_ACEOF
13054rm -f conftest$ac_exeext
13055if { (eval echo "$as_me:13055: \"$ac_link\"") >&5
13056 (eval $ac_link) 2>&5
13057 ac_status=$?
13058 echo "$as_me:13058: \$? = $ac_status" >&5
13059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13060 { (eval echo "$as_me:13060: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13062 ac_status=$?
13063 echo "$as_me:13063: \$? = $ac_status" >&5
13064 (exit $ac_status); }; }; then
13065 bash_cv_printf_a_format=yes
13066else
13067 echo "$as_me: program exited with status $ac_status" >&5
13068echo "$as_me: failed program was:" >&5
13069cat conftest.$ac_ext >&5
13070bash_cv_printf_a_format=no
13071fi
13072rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13073fi
13074fi
d166f048 13075
f73dda09
JA
13076echo "$as_me:13076: result: $bash_cv_printf_a_format" >&5
13077echo "${ECHO_T}$bash_cv_printf_a_format" >&6
13078if test $bash_cv_printf_a_format = yes; then
13079cat >>confdefs.h <<\EOF
13080#define HAVE_PRINTF_A_FORMAT 1
13081EOF
d166f048 13082
f73dda09 13083fi
ccc6cda3 13084
f73dda09
JA
13085echo "$as_me:13085: checking if signal handlers must be reinstalled when invoked" >&5
13086echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
13087if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
13089else
13090 if test "$cross_compiling" = yes; then
f73dda09
JA
13091 { echo "$as_me:13091: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
13092echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
13093 bash_cv_must_reinstall_sighandlers=no
13094
ccc6cda3 13095else
f73dda09
JA
13096 cat >conftest.$ac_ext <<_ACEOF
13097#line 13097 "configure"
ccc6cda3
JA
13098#include "confdefs.h"
13099
13100#include <signal.h>
13101#ifdef HAVE_UNISTD_H
13102#include <unistd.h>
13103#endif
13104
13105typedef RETSIGTYPE sigfunc();
13106
13107int nsigint;
13108
13109#ifdef HAVE_POSIX_SIGNALS
13110sigfunc *
13111set_signal_handler(sig, handler)
13112 int sig;
13113 sigfunc *handler;
13114{
13115 struct sigaction act, oact;
13116 act.sa_handler = handler;
13117 act.sa_flags = 0;
13118 sigemptyset (&act.sa_mask);
13119 sigemptyset (&oact.sa_mask);
13120 sigaction (sig, &act, &oact);
13121 return (oact.sa_handler);
13122}
13123#else
13124#define set_signal_handler(s, h) signal(s, h)
13125#endif
13126
13127RETSIGTYPE
13128sigint(s)
13129int s;
13130{
13131 nsigint++;
13132}
13133
13134main()
13135{
13136 nsigint = 0;
13137 set_signal_handler(SIGINT, sigint);
13138 kill((int)getpid(), SIGINT);
13139 kill((int)getpid(), SIGINT);
13140 exit(nsigint != 2);
13141}
13142
f73dda09
JA
13143_ACEOF
13144rm -f conftest$ac_exeext
13145if { (eval echo "$as_me:13145: \"$ac_link\"") >&5
13146 (eval $ac_link) 2>&5
13147 ac_status=$?
13148 echo "$as_me:13148: \$? = $ac_status" >&5
13149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13150 { (eval echo "$as_me:13150: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13152 ac_status=$?
13153 echo "$as_me:13153: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
ccc6cda3
JA
13155 bash_cv_must_reinstall_sighandlers=no
13156else
f73dda09
JA
13157 echo "$as_me: program exited with status $ac_status" >&5
13158echo "$as_me: failed program was:" >&5
13159cat conftest.$ac_ext >&5
13160bash_cv_must_reinstall_sighandlers=yes
ccc6cda3 13161fi
f73dda09 13162rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 13163fi
ccc6cda3
JA
13164fi
13165
f73dda09
JA
13166echo "$as_me:13166: result: $bash_cv_must_reinstall_sighandlers" >&5
13167echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
ccc6cda3 13168if test $bash_cv_must_reinstall_sighandlers = yes; then
f73dda09 13169cat >>confdefs.h <<\EOF
ccc6cda3
JA
13170#define MUST_REINSTALL_SIGHANDLERS 1
13171EOF
13172
13173fi
13174
f73dda09
JA
13175echo "$as_me:13175: checking for presence of necessary job control definitions" >&5
13176echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
13177if test "${bash_cv_job_control_missing+set}" = set; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
13179else
13180 if test "$cross_compiling" = yes; then
f73dda09
JA
13181 { echo "$as_me:13181: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
13182echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
13183 bash_cv_job_control_missing=missing
13184
ccc6cda3 13185else
f73dda09
JA
13186 cat >conftest.$ac_ext <<_ACEOF
13187#line 13187 "configure"
ccc6cda3
JA
13188#include "confdefs.h"
13189
13190#include <sys/types.h>
13191#ifdef HAVE_SYS_WAIT_H
13192#include <sys/wait.h>
13193#endif
13194#ifdef HAVE_UNISTD_H
13195#include <unistd.h>
13196#endif
13197#include <signal.h>
13198
13199/* Add more tests in here as appropriate. */
13200main()
13201{
13202/* signal type */
13203#if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
13204exit(1);
13205#endif
13206
13207/* signals and tty control. */
13208#if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
13209exit (1);
13210#endif
13211
13212/* process control */
f73dda09 13213#if !defined (WNOHANG) || !defined (WUNTRACED)
ccc6cda3
JA
13214exit(1);
13215#endif
13216
13217/* Posix systems have tcgetpgrp and waitpid. */
13218#if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
13219exit(1);
13220#endif
13221
13222#if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
13223exit(1);
13224#endif
13225
13226/* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
13227#if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
13228exit(1);
13229#endif
13230
13231exit(0);
13232}
f73dda09
JA
13233_ACEOF
13234rm -f conftest$ac_exeext
13235if { (eval echo "$as_me:13235: \"$ac_link\"") >&5
13236 (eval $ac_link) 2>&5
13237 ac_status=$?
13238 echo "$as_me:13238: \$? = $ac_status" >&5
13239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13240 { (eval echo "$as_me:13240: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13242 ac_status=$?
13243 echo "$as_me:13243: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
ccc6cda3
JA
13245 bash_cv_job_control_missing=present
13246else
f73dda09
JA
13247 echo "$as_me: program exited with status $ac_status" >&5
13248echo "$as_me: failed program was:" >&5
13249cat conftest.$ac_ext >&5
13250bash_cv_job_control_missing=missing
ccc6cda3 13251fi
f73dda09 13252rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 13253fi
ccc6cda3
JA
13254fi
13255
f73dda09
JA
13256echo "$as_me:13256: result: $bash_cv_job_control_missing" >&5
13257echo "${ECHO_T}$bash_cv_job_control_missing" >&6
ccc6cda3 13258if test $bash_cv_job_control_missing = missing; then
f73dda09 13259cat >>confdefs.h <<\EOF
ccc6cda3
JA
13260#define JOB_CONTROL_MISSING 1
13261EOF
13262
13263fi
13264
f73dda09
JA
13265echo "$as_me:13265: checking for presence of named pipes" >&5
13266echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
13267if test "${bash_cv_sys_named_pipes+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
13269else
13270 if test "$cross_compiling" = yes; then
f73dda09
JA
13271 { echo "$as_me:13271: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
13272echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
13273 bash_cv_sys_named_pipes=missing
13274
ccc6cda3 13275else
f73dda09
JA
13276 cat >conftest.$ac_ext <<_ACEOF
13277#line 13277 "configure"
ccc6cda3
JA
13278#include "confdefs.h"
13279
13280#include <sys/types.h>
13281#include <sys/stat.h>
13282#ifdef HAVE_UNISTD_H
13283#include <unistd.h>
13284#endif
13285
13286/* Add more tests in here as appropriate. */
13287main()
13288{
bb70624e 13289int fd, err;
ccc6cda3
JA
13290
13291#if defined (HAVE_MKFIFO)
13292exit (0);
13293#endif
13294
13295#if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
13296exit (1);
13297#endif
13298
13299#if defined (NeXT)
13300exit (1);
13301#endif
bb70624e
JA
13302err = mkdir("/tmp/bash-aclocal", 0700);
13303if (err < 0) {
13304 perror ("mkdir");
13305 exit(1);
13306}
13307fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
13308if (fd == -1) {
13309 rmdir ("/tmp/bash-aclocal");
ccc6cda3 13310 exit (1);
bb70624e 13311}
ccc6cda3 13312close(fd);
bb70624e
JA
13313unlink ("/tmp/bash-aclocal/sh-np-autoconf");
13314rmdir ("/tmp/bash-aclocal");
ccc6cda3
JA
13315exit(0);
13316}
f73dda09
JA
13317_ACEOF
13318rm -f conftest$ac_exeext
13319if { (eval echo "$as_me:13319: \"$ac_link\"") >&5
13320 (eval $ac_link) 2>&5
13321 ac_status=$?
13322 echo "$as_me:13322: \$? = $ac_status" >&5
13323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13324 { (eval echo "$as_me:13324: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13326 ac_status=$?
13327 echo "$as_me:13327: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
ccc6cda3
JA
13329 bash_cv_sys_named_pipes=present
13330else
f73dda09
JA
13331 echo "$as_me: program exited with status $ac_status" >&5
13332echo "$as_me: failed program was:" >&5
13333cat conftest.$ac_ext >&5
13334bash_cv_sys_named_pipes=missing
ccc6cda3 13335fi
f73dda09 13336rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 13337fi
ccc6cda3
JA
13338fi
13339
f73dda09
JA
13340echo "$as_me:13340: result: $bash_cv_sys_named_pipes" >&5
13341echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
ccc6cda3 13342if test $bash_cv_sys_named_pipes = missing; then
f73dda09 13343cat >>confdefs.h <<\EOF
ccc6cda3
JA
13344#define NAMED_PIPES_MISSING 1
13345EOF
13346
13347fi
13348
f73dda09
JA
13349echo "$as_me:13349: checking POSIX termios" >&5
13350echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
13351if test "${ac_cv_sys_posix_termios+set}" = set; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13353else
13354 cat >conftest.$ac_ext <<_ACEOF
13355#line 13355 "configure"
13356#include "confdefs.h"
13357#include <sys/types.h>
13358#include <unistd.h>
13359#include <termios.h>
13360int
13361main ()
13362{
13363/* SunOS 4.0.3 has termios.h but not the library calls. */
13364 tcgetattr(0, 0);
13365 ;
13366 return 0;
13367}
13368_ACEOF
13369rm -f conftest.$ac_objext conftest$ac_exeext
13370if { (eval echo "$as_me:13370: \"$ac_link\"") >&5
13371 (eval $ac_link) 2>&5
13372 ac_status=$?
13373 echo "$as_me:13373: \$? = $ac_status" >&5
13374 (exit $ac_status); } &&
13375 { ac_try='test -s conftest$ac_exeext'
13376 { (eval echo "$as_me:13376: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13378 ac_status=$?
13379 echo "$as_me:13379: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 ac_cv_sys_posix_termios=yes
13382else
13383 echo "$as_me: failed program was:" >&5
13384cat conftest.$ac_ext >&5
13385ac_cv_sys_posix_termios=no
13386fi
13387rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13388fi
13389echo "$as_me:13389: result: $ac_cv_sys_posix_termios" >&5
13390echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
13391
13392if test $ac_cv_sys_posix_termios = yes; then
13393 echo "$as_me:13393: checking whether termios.h defines TIOCGWINSZ" >&5
13394echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13395if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13397else
13398 cat >conftest.$ac_ext <<_ACEOF
13399#line 13399 "configure"
13400#include "confdefs.h"
13401#include <sys/types.h>
13402#include <termios.h>
13403#ifdef TIOCGWINSZ
13404 yes
13405#endif
13406
13407_ACEOF
13408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13409 egrep "yes" >/dev/null 2>&1; then
13410 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13411else
13412 ac_cv_sys_tiocgwinsz_in_termios_h=no
13413fi
13414rm -f conftest*
13415
13416fi
13417echo "$as_me:13417: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13418echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
d166f048 13419
f73dda09
JA
13420fi
13421if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13422 echo "$as_me:13422: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13423echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13424if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 13426else
f73dda09
JA
13427 cat >conftest.$ac_ext <<_ACEOF
13428#line 13428 "configure"
ccc6cda3
JA
13429#include "confdefs.h"
13430#include <sys/types.h>
13431#include <sys/ioctl.h>
f73dda09
JA
13432#ifdef TIOCGWINSZ
13433 yes
13434#endif
13435
13436_ACEOF
13437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13438 egrep "yes" >/dev/null 2>&1; then
13439 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
ccc6cda3 13440else
f73dda09 13441 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
ccc6cda3
JA
13442fi
13443rm -f conftest*
f73dda09 13444
ccc6cda3 13445fi
f73dda09
JA
13446echo "$as_me:13446: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13447echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13448
13449 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
ccc6cda3 13450
f73dda09 13451cat >>confdefs.h <<\EOF
ccc6cda3
JA
13452#define GWINSZ_IN_SYS_IOCTL 1
13453EOF
13454
f73dda09 13455 fi
ccc6cda3
JA
13456fi
13457
f73dda09
JA
13458echo "$as_me:13458: checking for TIOCSTAT in sys/ioctl.h" >&5
13459echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
13460if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 13462else
f73dda09
JA
13463 cat >conftest.$ac_ext <<_ACEOF
13464#line 13464 "configure"
ccc6cda3
JA
13465#include "confdefs.h"
13466#include <sys/types.h>
13467#include <sys/ioctl.h>
f73dda09
JA
13468int
13469main ()
13470{
ccc6cda3 13471int x = TIOCSTAT;
f73dda09
JA
13472 ;
13473 return 0;
13474}
13475_ACEOF
13476rm -f conftest.$ac_objext
13477if { (eval echo "$as_me:13477: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>&5
13479 ac_status=$?
13480 echo "$as_me:13480: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -s conftest.$ac_objext'
13483 { (eval echo "$as_me:13483: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:13486: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
ccc6cda3
JA
13488 bash_cv_tiocstat_in_ioctl=yes
13489else
f73dda09
JA
13490 echo "$as_me: failed program was:" >&5
13491cat conftest.$ac_ext >&5
13492bash_cv_tiocstat_in_ioctl=no
ccc6cda3 13493fi
f73dda09 13494rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
13495fi
13496
f73dda09
JA
13497echo "$as_me:13497: result: $bash_cv_tiocstat_in_ioctl" >&5
13498echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
13499if test $bash_cv_tiocstat_in_ioctl = yes; then
13500cat >>confdefs.h <<\EOF
ccc6cda3
JA
13501#define TIOCSTAT_IN_SYS_IOCTL 1
13502EOF
13503
13504fi
13505
f73dda09
JA
13506echo "$as_me:13506: checking for FIONREAD in sys/ioctl.h" >&5
13507echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
13508if test "${bash_cv_fionread_in_ioctl+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 13510else
f73dda09
JA
13511 cat >conftest.$ac_ext <<_ACEOF
13512#line 13512 "configure"
ccc6cda3
JA
13513#include "confdefs.h"
13514#include <sys/types.h>
13515#include <sys/ioctl.h>
f73dda09
JA
13516int
13517main ()
13518{
ccc6cda3 13519int x = FIONREAD;
f73dda09
JA
13520 ;
13521 return 0;
13522}
13523_ACEOF
13524rm -f conftest.$ac_objext
13525if { (eval echo "$as_me:13525: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>&5
13527 ac_status=$?
13528 echo "$as_me:13528: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -s conftest.$ac_objext'
13531 { (eval echo "$as_me:13531: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13533 ac_status=$?
13534 echo "$as_me:13534: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
ccc6cda3
JA
13536 bash_cv_fionread_in_ioctl=yes
13537else
f73dda09
JA
13538 echo "$as_me: failed program was:" >&5
13539cat conftest.$ac_ext >&5
13540bash_cv_fionread_in_ioctl=no
ccc6cda3 13541fi
f73dda09 13542rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
13543fi
13544
f73dda09
JA
13545echo "$as_me:13545: result: $bash_cv_fionread_in_ioctl" >&5
13546echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
13547if test $bash_cv_fionread_in_ioctl = yes; then
13548cat >>confdefs.h <<\EOF
ccc6cda3
JA
13549#define FIONREAD_IN_SYS_IOCTL 1
13550EOF
13551
13552fi
13553
f73dda09
JA
13554echo "$as_me:13554: checking for speed_t in sys/types.h" >&5
13555echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
13556if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048 13558else
f73dda09
JA
13559 cat >conftest.$ac_ext <<_ACEOF
13560#line 13560 "configure"
d166f048
JA
13561#include "confdefs.h"
13562#include <sys/types.h>
f73dda09
JA
13563int
13564main ()
13565{
d166f048 13566speed_t x;
f73dda09
JA
13567 ;
13568 return 0;
13569}
13570_ACEOF
13571rm -f conftest.$ac_objext
13572if { (eval echo "$as_me:13572: \"$ac_compile\"") >&5
13573 (eval $ac_compile) 2>&5
13574 ac_status=$?
13575 echo "$as_me:13575: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -s conftest.$ac_objext'
13578 { (eval echo "$as_me:13578: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13580 ac_status=$?
13581 echo "$as_me:13581: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
d166f048
JA
13583 bash_cv_speed_t_in_sys_types=yes
13584else
f73dda09
JA
13585 echo "$as_me: failed program was:" >&5
13586cat conftest.$ac_ext >&5
13587bash_cv_speed_t_in_sys_types=no
d166f048 13588fi
f73dda09 13589rm -f conftest.$ac_objext conftest.$ac_ext
d166f048
JA
13590fi
13591
f73dda09
JA
13592echo "$as_me:13592: result: $bash_cv_speed_t_in_sys_types" >&5
13593echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
13594if test $bash_cv_speed_t_in_sys_types = yes; then
13595cat >>confdefs.h <<\EOF
d166f048
JA
13596#define SPEED_T_IN_SYS_TYPES 1
13597EOF
13598
13599fi
13600
f73dda09
JA
13601echo "$as_me:13601: checking whether getpw functions are declared in pwd.h" >&5
13602echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
13603if test "${bash_cv_getpw_declared+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 13605else
f73dda09
JA
13606 cat >conftest.$ac_ext <<_ACEOF
13607#line 13607 "configure"
ccc6cda3 13608#include "confdefs.h"
28ef6c31 13609
ccc6cda3 13610#include <sys/types.h>
28ef6c31
JA
13611#ifdef HAVE_UNISTD_H
13612# include <unistd.h>
13613#endif
ccc6cda3 13614#include <pwd.h>
28ef6c31 13615
f73dda09 13616_ACEOF
28ef6c31
JA
13617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13618 egrep "getpwuid" >/dev/null 2>&1; then
28ef6c31 13619 bash_cv_getpw_declared=yes
ccc6cda3 13620else
28ef6c31 13621 bash_cv_getpw_declared=no
ccc6cda3
JA
13622fi
13623rm -f conftest*
28ef6c31 13624
ccc6cda3
JA
13625fi
13626
f73dda09
JA
13627echo "$as_me:13627: result: $bash_cv_getpw_declared" >&5
13628echo "${ECHO_T}$bash_cv_getpw_declared" >&6
28ef6c31 13629if test $bash_cv_getpw_declared = yes; then
f73dda09 13630cat >>confdefs.h <<\EOF
ccc6cda3
JA
13631#define HAVE_GETPW_DECLS 1
13632EOF
13633
13634fi
13635
f73dda09
JA
13636echo "$as_me:13636: checking for unusable real-time signals due to large values" >&5
13637echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
13638if test "${bash_cv_unusable_rtsigs+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
28ef6c31
JA
13640else
13641 if test "$cross_compiling" = yes; then
f73dda09
JA
13642 { echo "$as_me:13642: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
13643echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
28ef6c31
JA
13644 bash_cv_unusable_rtsigs=yes
13645
13646else
f73dda09
JA
13647 cat >conftest.$ac_ext <<_ACEOF
13648#line 13648 "configure"
28ef6c31
JA
13649#include "confdefs.h"
13650
13651#include <sys/types.h>
13652#include <signal.h>
13653
13654#ifndef NSIG
13655# define NSIG 64
13656#endif
13657
13658main ()
13659{
13660 int n_sigs = 2 * NSIG;
13661#ifdef SIGRTMIN
13662 int rtmin = SIGRTMIN;
13663#else
13664 int rtmin = 0;
13665#endif
13666
13667 exit(rtmin < n_sigs);
13668}
f73dda09
JA
13669_ACEOF
13670rm -f conftest$ac_exeext
13671if { (eval echo "$as_me:13671: \"$ac_link\"") >&5
13672 (eval $ac_link) 2>&5
13673 ac_status=$?
13674 echo "$as_me:13674: \$? = $ac_status" >&5
13675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13676 { (eval echo "$as_me:13676: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13678 ac_status=$?
13679 echo "$as_me:13679: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
28ef6c31
JA
13681 bash_cv_unusable_rtsigs=yes
13682else
f73dda09
JA
13683 echo "$as_me: program exited with status $ac_status" >&5
13684echo "$as_me: failed program was:" >&5
13685cat conftest.$ac_ext >&5
13686bash_cv_unusable_rtsigs=no
28ef6c31 13687fi
f73dda09 13688rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28ef6c31 13689fi
28ef6c31
JA
13690fi
13691
f73dda09
JA
13692echo "$as_me:13692: result: $bash_cv_unusable_rtsigs" >&5
13693echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
28ef6c31 13694if test $bash_cv_unusable_rtsigs = yes; then
f73dda09 13695cat >>confdefs.h <<\EOF
28ef6c31
JA
13696#define UNUSABLE_RT_SIGNALS 1
13697EOF
13698
13699fi
13700
f73dda09
JA
13701if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
13702 SIGLIST_O=siglist.o
13703else
13704 SIGLIST_O=
13705fi
ccc6cda3
JA
13706
13707case "$host_os" in
f73dda09
JA
13708hpux*) echo "$as_me:13708: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
13709echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
13710if test "${bash_cv_kernel_rlimit+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 13712else
f73dda09
JA
13713 cat >conftest.$ac_ext <<_ACEOF
13714#line 13714 "configure"
ccc6cda3
JA
13715#include "confdefs.h"
13716
13717#include <sys/types.h>
13718#include <sys/resource.h>
13719
f73dda09
JA
13720int
13721main ()
13722{
ccc6cda3
JA
13723
13724 int f;
13725 f = RLIMIT_DATA;
13726
f73dda09
JA
13727 ;
13728 return 0;
13729}
13730_ACEOF
13731rm -f conftest.$ac_objext
13732if { (eval echo "$as_me:13732: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>&5
13734 ac_status=$?
13735 echo "$as_me:13735: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -s conftest.$ac_objext'
13738 { (eval echo "$as_me:13738: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13740 ac_status=$?
13741 echo "$as_me:13741: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
ccc6cda3
JA
13743 bash_cv_kernel_rlimit=no
13744else
f73dda09
JA
13745 echo "$as_me: failed program was:" >&5
13746cat conftest.$ac_ext >&5
13747cat >conftest.$ac_ext <<_ACEOF
13748#line 13748 "configure"
ccc6cda3
JA
13749#include "confdefs.h"
13750
cce855bc
JA
13751#include <sys/types.h>
13752#define _KERNEL
13753#include <sys/resource.h>
13754#undef _KERNEL
13755
f73dda09
JA
13756int
13757main ()
13758{
ccc6cda3
JA
13759
13760 int f;
13761 f = RLIMIT_DATA;
cce855bc 13762
f73dda09
JA
13763 ;
13764 return 0;
13765}
13766_ACEOF
13767rm -f conftest.$ac_objext
13768if { (eval echo "$as_me:13768: \"$ac_compile\"") >&5
13769 (eval $ac_compile) 2>&5
13770 ac_status=$?
13771 echo "$as_me:13771: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -s conftest.$ac_objext'
13774 { (eval echo "$as_me:13774: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:13777: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
ccc6cda3
JA
13779 bash_cv_kernel_rlimit=yes
13780else
f73dda09
JA
13781 echo "$as_me: failed program was:" >&5
13782cat conftest.$ac_ext >&5
13783bash_cv_kernel_rlimit=no
ccc6cda3 13784fi
f73dda09 13785rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
13786
13787fi
f73dda09 13788rm -f conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
13789fi
13790
f73dda09
JA
13791echo "$as_me:13791: result: $bash_cv_kernel_rlimit" >&5
13792echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
ccc6cda3 13793if test $bash_cv_kernel_rlimit = yes; then
f73dda09 13794cat >>confdefs.h <<\EOF
ccc6cda3
JA
13795#define RLIMIT_NEEDS_KERNEL 1
13796EOF
13797
13798fi
13799 ;;
13800esac
13801
13802if test "$opt_readline" = yes; then
d166f048
JA
13803case "$host_os" in
13804aix*) prefer_curses=yes ;;
13805esac
ccc6cda3
JA
13806
13807if test "X$bash_cv_termcap_lib" = "X"; then
13808_bash_needmsg=yes
13809else
f73dda09
JA
13810echo "$as_me:13810: checking which library has the termcap functions" >&5
13811echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
ccc6cda3
JA
13812_bash_needmsg=
13813fi
f73dda09
JA
13814if test "${bash_cv_termcap_lib+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 13816else
f73dda09
JA
13817 echo "$as_me:13817: checking for tgetent in -ltermcap" >&5
13818echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13819if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 13821else
f73dda09 13822 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 13823LIBS="-ltermcap $LIBS"
f73dda09
JA
13824cat >conftest.$ac_ext <<_ACEOF
13825#line 13825 "configure"
ccc6cda3 13826#include "confdefs.h"
f73dda09 13827
ccc6cda3 13828/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
13829#ifdef __cplusplus
13830extern "C"
13831#endif
ccc6cda3 13832/* We use char because int might match the return type of a gcc2
f73dda09
JA
13833 builtin and then its argument prototype would still apply. */
13834char tgetent ();
13835int
13836main ()
13837{
13838tgetent ();
13839 ;
13840 return 0;
13841}
13842_ACEOF
13843rm -f conftest.$ac_objext conftest$ac_exeext
13844if { (eval echo "$as_me:13844: \"$ac_link\"") >&5
13845 (eval $ac_link) 2>&5
13846 ac_status=$?
13847 echo "$as_me:13847: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -s conftest$ac_exeext'
13850 { (eval echo "$as_me:13850: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:13853: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 ac_cv_lib_termcap_tgetent=yes
13856else
13857 echo "$as_me: failed program was:" >&5
13858cat conftest.$ac_ext >&5
13859ac_cv_lib_termcap_tgetent=no
13860fi
13861rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13862LIBS=$ac_check_lib_save_LIBS
13863fi
13864echo "$as_me:13864: result: $ac_cv_lib_termcap_tgetent" >&5
13865echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13866if test $ac_cv_lib_termcap_tgetent = yes; then
ccc6cda3
JA
13867 bash_cv_termcap_lib=libtermcap
13868else
f73dda09
JA
13869 echo "$as_me:13869: checking for tgetent in -ltinfo" >&5
13870echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
13871if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 13873else
f73dda09
JA
13874 ac_check_lib_save_LIBS=$LIBS
13875LIBS="-ltinfo $LIBS"
13876cat >conftest.$ac_ext <<_ACEOF
13877#line 13877 "configure"
ccc6cda3 13878#include "confdefs.h"
f73dda09 13879
ccc6cda3 13880/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
13881#ifdef __cplusplus
13882extern "C"
13883#endif
ccc6cda3 13884/* We use char because int might match the return type of a gcc2
f73dda09
JA
13885 builtin and then its argument prototype would still apply. */
13886char tgetent ();
13887int
13888main ()
13889{
13890tgetent ();
13891 ;
13892 return 0;
13893}
13894_ACEOF
13895rm -f conftest.$ac_objext conftest$ac_exeext
13896if { (eval echo "$as_me:13896: \"$ac_link\"") >&5
13897 (eval $ac_link) 2>&5
13898 ac_status=$?
13899 echo "$as_me:13899: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -s conftest$ac_exeext'
13902 { (eval echo "$as_me:13902: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13904 ac_status=$?
13905 echo "$as_me:13905: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 ac_cv_lib_tinfo_tgetent=yes
13908else
13909 echo "$as_me: failed program was:" >&5
13910cat conftest.$ac_ext >&5
13911ac_cv_lib_tinfo_tgetent=no
13912fi
13913rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13914LIBS=$ac_check_lib_save_LIBS
13915fi
13916echo "$as_me:13916: result: $ac_cv_lib_tinfo_tgetent" >&5
13917echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
13918if test $ac_cv_lib_tinfo_tgetent = yes; then
13919 bash_cv_termcal_lib=libtinfo
13920else
13921 echo "$as_me:13921: checking for tgetent in -lcurses" >&5
13922echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13923if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13925else
13926 ac_check_lib_save_LIBS=$LIBS
13927LIBS="-lcurses $LIBS"
13928cat >conftest.$ac_ext <<_ACEOF
13929#line 13929 "configure"
13930#include "confdefs.h"
ccc6cda3 13931
f73dda09
JA
13932/* Override any gcc2 internal prototype to avoid an error. */
13933#ifdef __cplusplus
13934extern "C"
13935#endif
13936/* We use char because int might match the return type of a gcc2
13937 builtin and then its argument prototype would still apply. */
13938char tgetent ();
13939int
13940main ()
13941{
13942tgetent ();
13943 ;
13944 return 0;
13945}
13946_ACEOF
13947rm -f conftest.$ac_objext conftest$ac_exeext
13948if { (eval echo "$as_me:13948: \"$ac_link\"") >&5
13949 (eval $ac_link) 2>&5
13950 ac_status=$?
13951 echo "$as_me:13951: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try='test -s conftest$ac_exeext'
13954 { (eval echo "$as_me:13954: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13956 ac_status=$?
13957 echo "$as_me:13957: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 ac_cv_lib_curses_tgetent=yes
13960else
13961 echo "$as_me: failed program was:" >&5
13962cat conftest.$ac_ext >&5
13963ac_cv_lib_curses_tgetent=no
13964fi
13965rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13966LIBS=$ac_check_lib_save_LIBS
13967fi
13968echo "$as_me:13968: result: $ac_cv_lib_curses_tgetent" >&5
13969echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13970if test $ac_cv_lib_curses_tgetent = yes; then
ccc6cda3
JA
13971 bash_cv_termcap_lib=libcurses
13972else
f73dda09
JA
13973 echo "$as_me:13973: checking for tgetent in -lncurses" >&5
13974echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13975if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 13977else
f73dda09 13978 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 13979LIBS="-lncurses $LIBS"
f73dda09
JA
13980cat >conftest.$ac_ext <<_ACEOF
13981#line 13981 "configure"
ccc6cda3 13982#include "confdefs.h"
f73dda09 13983
ccc6cda3 13984/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
13985#ifdef __cplusplus
13986extern "C"
13987#endif
ccc6cda3 13988/* We use char because int might match the return type of a gcc2
f73dda09
JA
13989 builtin and then its argument prototype would still apply. */
13990char tgetent ();
13991int
13992main ()
13993{
13994tgetent ();
13995 ;
13996 return 0;
13997}
13998_ACEOF
13999rm -f conftest.$ac_objext conftest$ac_exeext
14000if { (eval echo "$as_me:14000: \"$ac_link\"") >&5
14001 (eval $ac_link) 2>&5
14002 ac_status=$?
14003 echo "$as_me:14003: \$? = $ac_status" >&5
14004 (exit $ac_status); } &&
14005 { ac_try='test -s conftest$ac_exeext'
14006 { (eval echo "$as_me:14006: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14008 ac_status=$?
14009 echo "$as_me:14009: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }; then
14011 ac_cv_lib_ncurses_tgetent=yes
14012else
14013 echo "$as_me: failed program was:" >&5
14014cat conftest.$ac_ext >&5
14015ac_cv_lib_ncurses_tgetent=no
14016fi
14017rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14018LIBS=$ac_check_lib_save_LIBS
14019fi
14020echo "$as_me:14020: result: $ac_cv_lib_ncurses_tgetent" >&5
14021echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
14022if test $ac_cv_lib_ncurses_tgetent = yes; then
14023 bash_cv_termcap_lib=libncurses
ccc6cda3 14024else
f73dda09 14025 bash_cv_termcap_lib=gnutermcap
ccc6cda3 14026fi
ccc6cda3 14027
ccc6cda3
JA
14028fi
14029
14030fi
14031
14032fi
14033
14034fi
14035
14036if test "X$_bash_needmsg" = "Xyes"; then
f73dda09
JA
14037echo "$as_me:14037: checking which library has the termcap functions" >&5
14038echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
ccc6cda3 14039fi
f73dda09
JA
14040echo "$as_me:14040: result: using $bash_cv_termcap_lib" >&5
14041echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
cce855bc 14042if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
ccc6cda3
JA
14043LDFLAGS="$LDFLAGS -L./lib/termcap"
14044TERMCAP_LIB="./lib/termcap/libtermcap.a"
14045TERMCAP_DEP="./lib/termcap/libtermcap.a"
d166f048 14046elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
ccc6cda3
JA
14047TERMCAP_LIB=-ltermcap
14048TERMCAP_DEP=
f73dda09
JA
14049elif test $bash_cv_termcap_lib = libtinfo; then
14050TERMCAP_LIB=-ltinfo
14051TERMCAP_DEP=
ccc6cda3
JA
14052elif test $bash_cv_termcap_lib = libncurses; then
14053TERMCAP_LIB=-lncurses
14054TERMCAP_DEP=
14055else
14056TERMCAP_LIB=-lcurses
14057TERMCAP_DEP=
14058fi
14059
14060fi
14061
f73dda09
JA
14062echo "$as_me:14062: checking whether /dev/fd is available" >&5
14063echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
14064if test "${bash_cv_dev_fd+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048
JA
14066else
14067 if test -d /dev/fd && test -r /dev/fd/0; then
14068 bash_cv_dev_fd=standard
14069 elif test -d /proc/self/fd && test -r /proc/self/fd/0; then
14070 bash_cv_dev_fd=whacky
14071 else
14072 bash_cv_dev_fd=absent
14073 fi
14074
14075fi
14076
f73dda09
JA
14077echo "$as_me:14077: result: $bash_cv_dev_fd" >&5
14078echo "${ECHO_T}$bash_cv_dev_fd" >&6
d166f048 14079if test $bash_cv_dev_fd = "standard"; then
f73dda09 14080 cat >>confdefs.h <<\EOF
d166f048
JA
14081#define HAVE_DEV_FD 1
14082EOF
14083
f73dda09 14084 cat >>confdefs.h <<\EOF
d166f048
JA
14085#define DEV_FD_PREFIX "/dev/fd/"
14086EOF
14087
14088elif test $bash_cv_dev_fd = "whacky"; then
f73dda09 14089 cat >>confdefs.h <<\EOF
d166f048
JA
14090#define HAVE_DEV_FD 1
14091EOF
14092
f73dda09 14093 cat >>confdefs.h <<\EOF
d166f048
JA
14094#define DEV_FD_PREFIX "/proc/self/fd/"
14095EOF
14096
14097fi
14098
f73dda09
JA
14099echo "$as_me:14099: checking whether /dev/stdin stdout stderr are available" >&5
14100echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
14101if test "${bash_cv_dev_stdin+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e
JA
14103else
14104 if test -d /dev/fd && test -r /dev/stdin; then
14105 bash_cv_dev_stdin=present
14106 elif test -d /proc/self/fd && test -r /dev/stdin; then
14107 bash_cv_dev_stdin=present
14108 else
14109 bash_cv_dev_stdin=absent
14110 fi
14111
14112fi
14113
f73dda09
JA
14114echo "$as_me:14114: result: $bash_cv_dev_stdin" >&5
14115echo "${ECHO_T}$bash_cv_dev_stdin" >&6
bb70624e 14116if test $bash_cv_dev_stdin = "present"; then
f73dda09 14117 cat >>confdefs.h <<\EOF
bb70624e
JA
14118#define HAVE_DEV_STDIN 1
14119EOF
14120
14121fi
14122
f73dda09
JA
14123echo "$as_me:14123: checking for default mail directory" >&5
14124echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
14125if test "${bash_cv_mail_dir+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
14127else
14128 if test -d /var/mail; then
14129 bash_cv_mail_dir=/var/mail
14130 elif test -d /usr/mail; then
14131 bash_cv_mail_dir=/usr/mail
ccc6cda3
JA
14132 elif test -d /var/spool/mail; then
14133 bash_cv_mail_dir=/var/spool/mail
e8ce775d
JA
14134 elif test -d /usr/spool/mail; then
14135 bash_cv_mail_dir=/usr/spool/mail
ccc6cda3
JA
14136 else
14137 bash_cv_mail_dir=unknown
14138 fi
14139
14140fi
14141
f73dda09
JA
14142echo "$as_me:14142: result: $bash_cv_mail_dir" >&5
14143echo "${ECHO_T}$bash_cv_mail_dir" >&6
ccc6cda3 14144if test $bash_cv_mail_dir = "/var/mail"; then
f73dda09 14145 cat >>confdefs.h <<\EOF
ccc6cda3
JA
14146#define DEFAULT_MAIL_DIRECTORY "/var/mail"
14147EOF
14148
14149elif test $bash_cv_mail_dir = "/usr/mail"; then
f73dda09 14150 cat >>confdefs.h <<\EOF
ccc6cda3
JA
14151#define DEFAULT_MAIL_DIRECTORY "/usr/mail"
14152EOF
14153
14154elif test $bash_cv_mail_dir = "/var/spool/mail"; then
f73dda09 14155 cat >>confdefs.h <<\EOF
ccc6cda3
JA
14156#define DEFAULT_MAIL_DIRECTORY "/var/spool/mail"
14157EOF
14158
14159elif test $bash_cv_mail_dir = "/usr/spool/mail"; then
f73dda09 14160 cat >>confdefs.h <<\EOF
ccc6cda3
JA
14161#define DEFAULT_MAIL_DIRECTORY "/usr/spool/mail"
14162EOF
14163
14164else
f73dda09 14165 cat >>confdefs.h <<\EOF
ccc6cda3
JA
14166#define DEFAULT_MAIL_DIRECTORY "unknown"
14167EOF
14168
14169fi
14170
ccc6cda3
JA
14171if test "$bash_cv_job_control_missing" = missing; then
14172 opt_job_control=no
14173fi
14174
14175if test "$opt_job_control" = yes; then
f73dda09 14176cat >>confdefs.h <<\EOF
ccc6cda3
JA
14177#define JOB_CONTROL 1
14178EOF
14179
14180JOBS_O=jobs.o
14181else
14182JOBS_O=nojobs.o
14183fi
14184
d166f048
JA
14185LOCAL_DEFS=-DSHELL
14186
b72432fd 14187case "${host_os}" in
f73dda09 14188sysv4.2*) cat >>confdefs.h <<\EOF
ccc6cda3
JA
14189#define SVR4_2 1
14190EOF
14191
f73dda09 14192 cat >>confdefs.h <<\EOF
ccc6cda3
JA
14193#define SVR4 1
14194EOF
14195 ;;
f73dda09 14196sysv4*) cat >>confdefs.h <<\EOF
ccc6cda3
JA
14197#define SVR4 1
14198EOF
14199 ;;
f73dda09 14200sysv5*) cat >>confdefs.h <<\EOF
b72432fd
JA
14201#define SVR5 1
14202EOF
14203 ;;
14204hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
ccc6cda3
JA
14205hpux*) LOCAL_CFLAGS=-DHPUX ;;
14206dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
bb70624e
JA
14207isc*) LOCAL_CFLAGS=-Disc386 ;;
14208rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
f73dda09 14209darwin*) LOCAL_CFLAGS=-DMACOSX ;;
b72432fd 14210sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DNO_MEMSCRAMBLE -DPATH_MAX=1024" ;;
ccc6cda3
JA
14211sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DNO_MEMSCRAMBLE -DPATH_MAX=1024" ;;
14212sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
d166f048
JA
14213sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
14214solaris2.5*) LOCAL_CFLAGS=-DSunOS5 ;;
b72432fd 14215lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
d166f048 14216linux*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
d166f048 14217*qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s -lunix -lncurses" ;;
b72432fd 14218powerux*) LOCAL_LIBS="-lgen" ;;
28ef6c31 14219cygwin*) LOCAL_LIBS="-luser32" ;;
f73dda09 14220opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO" ;;
b72432fd
JA
14221esac
14222
14223case "${host_os}-${CC}" in
14224aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
14225aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
14226bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
ccc6cda3
JA
14227esac
14228
bb70624e 14229case "${host_os}" in
28ef6c31
JA
14230freebsd[3-9]*)
14231 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
bb70624e
JA
14232 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
14233 fi ;;
28ef6c31 14234freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
bb70624e
JA
14235esac
14236
ccc6cda3
JA
14237case "$host_cpu" in
14238*cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
14239esac
14240
14241case "$host_cpu-$host_os" in
14242ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
14243esac
14244
14245case "$host_cpu-$host_vendor-$host_os" in
14246m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
14247mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
14248esac
14249
b72432fd
JA
14250#
14251# Shared object configuration section. These values are generated by
14252# ${srcdir}/support/shobj-conf
14253#
14254if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
14255then
f73dda09
JA
14256 echo "$as_me:14256: checking shared object configuration for loadable builtins" >&5
14257echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
28ef6c31 14258 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
f73dda09
JA
14259
14260 echo "$as_me:14260: result: $SHOBJ_STATUS" >&5
14261echo "${ECHO_T}$SHOBJ_STATUS" >&6
b72432fd
JA
14262fi
14263
ccc6cda3
JA
14264# try to create a directory tree if the source is elsewhere
14265# this should be packaged into a script accessible via ${srcdir}/support
14266case "$srcdir" in
14267.) ;;
cce855bc 14268*) for d in doc tests support lib examples; do # dirs
ccc6cda3
JA
14269 test -d $d || mkdir $d
14270 done
cce855bc 14271 for ld in readline glob tilde malloc sh termcap; do # libdirs
ccc6cda3
JA
14272 test -d lib/$ld || mkdir lib/$ld
14273 done
cce855bc 14274 test -d examples/loadables || mkdir examples/loadables # loadable builtins
bb70624e 14275 test -d examples/loadables/perl || mkdir examples/loadables/perl
ccc6cda3
JA
14276 ;;
14277esac
14278
14279BUILD_DIR=`pwd`
14280
d166f048
JA
14281#AC_SUBST(ALLOCA_SOURCE)
14282#AC_SUBST(ALLOCA_OBJECT)
14283
f73dda09
JA
14284ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile examples/loadables/Makefile examples/loadables/perl/Makefile"
14285ac_config_commands="$ac_config_commands default"
14286cat >confcache <<\_ACEOF
ccc6cda3
JA
14287# This file is a shell script that caches the results of configure
14288# tests run on this system so they can be shared between configure
f73dda09
JA
14289# scripts and configure runs, see configure's option --config-cache.
14290# It is not useful on other systems. If it contains results you don't
14291# want to keep, you may remove or edit it.
726f6388 14292#
f73dda09
JA
14293# config.status only pays attention to the cache file if you give it
14294# the --recheck option to rerun configure.
ccc6cda3 14295#
f73dda09
JA
14296# `ac_cv_env_foo' variables (set or unset) will be overriden when
14297# loading this file, other *unset* `ac_cv_foo' will be assigned the
14298# following values.
14299
14300_ACEOF
14301
ccc6cda3
JA
14302# The following way of writing the cache mishandles newlines in values,
14303# but we know of no workaround that is simple, portable, and efficient.
14304# So, don't put newlines in cache variables' values.
14305# Ultrix sh set writes to stderr and can't be redirected directly,
14306# and sets the high bit in the cache file unless we assign to the vars.
f73dda09
JA
14307{
14308 (set) 2>&1 |
14309 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14310 *ac_space=\ *)
14311 # `set' does not quote correctly, so add quotes (double-quote
14312 # substitution turns \\\\ into \\, and sed turns \\ into \).
14313 sed -n \
14314 "s/'/'\\\\''/g;
14315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14316 ;;
14317 *)
14318 # `set' quotes correctly as required by POSIX, so do not add quotes.
14319 sed -n \
14320 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14321 ;;
14322 esac;
14323} |
14324 sed '
14325 t clear
14326 : clear
14327 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14328 t end
14329 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14330 : end' >>confcache
14331if cmp -s $cache_file confcache; then :; else
ccc6cda3 14332 if test -w $cache_file; then
f73dda09
JA
14333 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14334 cat confcache >$cache_file
ccc6cda3
JA
14335 else
14336 echo "not updating unwritable cache $cache_file"
14337 fi
14338fi
14339rm -f confcache
14340
ccc6cda3
JA
14341test "x$prefix" = xNONE && prefix=$ac_default_prefix
14342# Let make expand exec_prefix.
14343test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14344
f73dda09
JA
14345# VPATH may cause trouble with some makes, so we remove $(srcdir),
14346# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14347# trailing colons and then remove the whole line if VPATH becomes empty
14348# (actually we leave an empty line to preserve line numbers).
ccc6cda3 14349if test "x$srcdir" = x.; then
f73dda09
JA
14350 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14351s/:*\$(srcdir):*/:/;
14352s/:*\${srcdir}:*/:/;
14353s/:*@srcdir@:*/:/;
14354s/^\([^=]*=[ ]*\):*/\1/;
14355s/:*$//;
14356s/^[^=]*=[ ]*$//;
14357}'
ccc6cda3
JA
14358fi
14359
ccc6cda3
JA
14360DEFS=-DHAVE_CONFIG_H
14361
ccc6cda3 14362: ${CONFIG_STATUS=./config.status}
f73dda09
JA
14363ac_clean_files_save=$ac_clean_files
14364ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14365{ echo "$as_me:14365: creating $CONFIG_STATUS" >&5
14366echo "$as_me: creating $CONFIG_STATUS" >&6;}
14367cat >$CONFIG_STATUS <<_ACEOF
14368#! $SHELL
ccc6cda3
JA
14369# Generated automatically by configure.
14370# Run this file to recreate the current configuration.
ccc6cda3 14371# Compiler output produced by configure, useful for debugging
f73dda09 14372# configure, is in config.log if it exists.
ccc6cda3 14373
f73dda09
JA
14374debug=false
14375SHELL=\${CONFIG_SHELL-$SHELL}
14376ac_cs_invocation="\$0 \$@"
14377
14378_ACEOF
14379
14380cat >>$CONFIG_STATUS <<\_ACEOF
14381# Be Bourne compatible
14382if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14383 emulate sh
14384 NULLCMD=:
14385elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14386 set -o posix
14387fi
14388
14389# Name of the executable.
14390as_me=`echo "$0" |sed 's,.*[\\/],,'`
14391
14392if expr a : '\(a\)' >/dev/null 2>&1; then
14393 as_expr=expr
14394else
14395 as_expr=false
14396fi
14397
14398rm -f conf$$ conf$$.exe conf$$.file
14399echo >conf$$.file
14400if ln -s conf$$.file conf$$ 2>/dev/null; then
14401 # We could just check for DJGPP; but this test a) works b) is more generic
14402 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14403 if test -f conf$$.exe; then
14404 # Don't use ln at all; we don't have any links
14405 as_ln_s='cp -p'
14406 else
14407 as_ln_s='ln -s'
14408 fi
14409elif ln conf$$.file conf$$ 2>/dev/null; then
14410 as_ln_s=ln
14411else
14412 as_ln_s='cp -p'
14413fi
14414rm -f conf$$ conf$$.exe conf$$.file
14415
14416as_executable_p="test -f"
14417
14418# Support unset when possible.
14419if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14420 as_unset=unset
14421else
14422 as_unset=false
14423fi
14424
14425# NLS nuisances.
14426$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
14427$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
14428$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
14429$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
14430$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
14431$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
14432$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
14433$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
14434
14435# IFS
14436# We need space, tab and new line, in precisely that order.
14437as_nl='
14438'
14439IFS=" $as_nl"
14440
14441# CDPATH.
14442$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
14443
14444exec 6>&1
14445
14446_ACEOF
14447
14448# Files that config.status was made for.
14449if test -n "$ac_config_files"; then
14450 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14451fi
14452
14453if test -n "$ac_config_headers"; then
14454 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14455fi
14456
14457if test -n "$ac_config_links"; then
14458 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14459fi
14460
14461if test -n "$ac_config_commands"; then
14462 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14463fi
14464
14465cat >>$CONFIG_STATUS <<\EOF
14466
14467ac_cs_usage="\
14468\`$as_me' instantiates files from templates according to the
14469current configuration.
14470
14471Usage: $0 [OPTIONS] [FILE]...
14472
14473 -h, --help print this help, then exit
14474 -V, --version print version number, then exit
14475 -d, --debug don't remove temporary files
14476 --recheck update $as_me by reconfiguring in the same conditions
14477 --file=FILE[:TEMPLATE]
14478 instantiate the configuration file FILE
14479 --header=FILE[:TEMPLATE]
14480 instantiate the configuration header FILE
14481
14482Configuration files:
14483$config_files
14484
14485Configuration headers:
14486$config_headers
14487
14488Configuration commands:
14489$config_commands
14490
14491Report bugs to <bug-autoconf@gnu.org>."
14492EOF
14493
14494cat >>$CONFIG_STATUS <<EOF
14495ac_cs_version="\\
14496bash config.status 2.05a
14497configured by $0, generated by GNU Autoconf 2.52,
14498 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14499
14500Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14501Free Software Foundation, Inc.
14502This config.status script is free software; the Free Software Foundation
14503gives unlimited permission to copy, distribute and modify it."
14504srcdir=$srcdir
14505INSTALL="$INSTALL"
14506EOF
14507
14508cat >>$CONFIG_STATUS <<\EOF
14509# If no file are specified by the user, then we need to provide default
14510# value. By we need to know if files were specified by the user.
14511ac_need_defaults=:
14512while test $# != 0
ccc6cda3 14513do
f73dda09
JA
14514 case $1 in
14515 --*=*)
14516 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14517 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14518 shift
14519 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14520 shift
14521 ;;
14522 -*);;
14523 *) # This is not an option, so the user has probably given explicit
14524 # arguments.
14525 ac_need_defaults=false;;
14526 esac
14527
14528 case $1 in
14529 # Handling of the options.
14530EOF
14531cat >>$CONFIG_STATUS <<EOF
ccc6cda3 14532 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
f73dda09
JA
14533 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14534 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14535EOF
14536cat >>$CONFIG_STATUS <<\EOF
14537 --version | --vers* | -V )
14538 echo "$ac_cs_version"; exit 0 ;;
14539 --he | --h)
14540 # Conflict between --help and --header
14541 { { echo "$as_me:14541: error: ambiguous option: $1
14542Try \`$0 --help' for more information." >&5
14543echo "$as_me: error: ambiguous option: $1
14544Try \`$0 --help' for more information." >&2;}
14545 { (exit 1); exit 1; }; };;
14546 --help | --hel | -h )
14547 echo "$ac_cs_usage"; exit 0 ;;
14548 --debug | --d* | -d )
14549 debug=: ;;
14550 --file | --fil | --fi | --f )
14551 shift
14552 CONFIG_FILES="$CONFIG_FILES $1"
14553 ac_need_defaults=false;;
14554 --header | --heade | --head | --hea )
14555 shift
14556 CONFIG_HEADERS="$CONFIG_HEADERS $1"
14557 ac_need_defaults=false;;
14558
14559 # This is an error.
14560 -*) { { echo "$as_me:14560: error: unrecognized option: $1
14561Try \`$0 --help' for more information." >&5
14562echo "$as_me: error: unrecognized option: $1
14563Try \`$0 --help' for more information." >&2;}
14564 { (exit 1); exit 1; }; } ;;
14565
14566 *) ac_config_targets="$ac_config_targets $1" ;;
14567
ccc6cda3 14568 esac
f73dda09 14569 shift
ccc6cda3
JA
14570done
14571
f73dda09
JA
14572exec 5>>config.log
14573cat >&5 << _ACEOF
ccc6cda3 14574
f73dda09
JA
14575## ----------------------- ##
14576## Running config.status. ##
14577## ----------------------- ##
14578
14579This file was extended by $as_me (bash 2.05a) 2.52, executed with
14580 CONFIG_FILES = $CONFIG_FILES
14581 CONFIG_HEADERS = $CONFIG_HEADERS
14582 CONFIG_LINKS = $CONFIG_LINKS
14583 CONFIG_COMMANDS = $CONFIG_COMMANDS
14584 > $ac_cs_invocation
14585on `(hostname || uname -n) 2>/dev/null | sed 1q`
14586
14587_ACEOF
ccc6cda3 14588EOF
ccc6cda3 14589
f73dda09
JA
14590cat >>$CONFIG_STATUS <<\EOF
14591for ac_config_target in $ac_config_targets
14592do
14593 case "$ac_config_target" in
14594 # Handling of arguments.
14595 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14596 "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
14597 "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
14598 "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
14599 "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
14600 "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
14601 "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
14602 "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
14603 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14604 "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
14605 "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
14606 "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
14607 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14608 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14609 *) { { echo "$as_me:14609: error: invalid argument: $ac_config_target" >&5
14610echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14611 { (exit 1); exit 1; }; };;
14612 esac
14613done
14614
14615# If the user did not use the arguments to specify the items to instantiate,
14616# then the envvar interface is used. Set only those that are not.
14617# We use the long form for the default assignment because of an extremely
14618# bizarre bug on SunOS 4.1.3.
14619if $ac_need_defaults; then
14620 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14621 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14622 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14623fi
14624
14625# Create a temporary directory, and hook for its removal unless debugging.
14626$debug ||
14627{
14628 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14629 trap '{ (exit 1); exit 1; }' 1 2 13 15
14630}
14631
14632# Create a (secure) tmp directory for tmp files.
14633: ${TMPDIR=/tmp}
14634{
14635 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14636 test -n "$tmp" && test -d "$tmp"
14637} ||
14638{
14639 tmp=$TMPDIR/cs$$-$RANDOM
14640 (umask 077 && mkdir $tmp)
14641} ||
14642{
14643 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14644 { (exit 1); exit 1; }
14645}
ccc6cda3 14646
ccc6cda3
JA
14647EOF
14648
f73dda09 14649cat >>$CONFIG_STATUS <<EOF
ccc6cda3 14650
f73dda09
JA
14651#
14652# CONFIG_FILES section.
14653#
14654
14655# No need to generate the scripts if there are no CONFIG_FILES.
14656# This happens for instance when ./config.status config.h
14657if test -n "\$CONFIG_FILES"; then
14658 # Protect against being on the right side of a sed subst in config.status.
14659 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14660 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14661s,@SHELL@,$SHELL,;t t
14662s,@exec_prefix@,$exec_prefix,;t t
14663s,@prefix@,$prefix,;t t
14664s,@program_transform_name@,$program_transform_name,;t t
14665s,@bindir@,$bindir,;t t
14666s,@sbindir@,$sbindir,;t t
14667s,@libexecdir@,$libexecdir,;t t
14668s,@datadir@,$datadir,;t t
14669s,@sysconfdir@,$sysconfdir,;t t
14670s,@sharedstatedir@,$sharedstatedir,;t t
14671s,@localstatedir@,$localstatedir,;t t
14672s,@libdir@,$libdir,;t t
14673s,@includedir@,$includedir,;t t
14674s,@oldincludedir@,$oldincludedir,;t t
14675s,@infodir@,$infodir,;t t
14676s,@mandir@,$mandir,;t t
14677s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14678s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14679s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14680s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14681s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14682s,@build_alias@,$build_alias,;t t
14683s,@host_alias@,$host_alias,;t t
14684s,@target_alias@,$target_alias,;t t
14685s,@ECHO_C@,$ECHO_C,;t t
14686s,@ECHO_N@,$ECHO_N,;t t
14687s,@ECHO_T@,$ECHO_T,;t t
14688s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14689s,@DEFS@,$DEFS,;t t
14690s,@LIBS@,$LIBS,;t t
14691s,@build@,$build,;t t
14692s,@build_cpu@,$build_cpu,;t t
14693s,@build_vendor@,$build_vendor,;t t
14694s,@build_os@,$build_os,;t t
14695s,@host@,$host,;t t
14696s,@host_cpu@,$host_cpu,;t t
14697s,@host_vendor@,$host_vendor,;t t
14698s,@host_os@,$host_os,;t t
14699s,@TESTSCRIPT@,$TESTSCRIPT,;t t
14700s,@PURIFY@,$PURIFY,;t t
14701s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
14702s,@MALLOC_SRC@,$MALLOC_SRC,;t t
14703s,@MALLOC_LIB@,$MALLOC_LIB,;t t
14704s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
14705s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
14706s,@MALLOC_DEP@,$MALLOC_DEP,;t t
14707s,@htmldir@,$htmldir,;t t
14708s,@CC@,$CC,;t t
14709s,@CFLAGS@,$CFLAGS,;t t
14710s,@LDFLAGS@,$LDFLAGS,;t t
14711s,@CPPFLAGS@,$CPPFLAGS,;t t
14712s,@ac_ct_CC@,$ac_ct_CC,;t t
14713s,@EXEEXT@,$EXEEXT,;t t
14714s,@OBJEXT@,$OBJEXT,;t t
14715s,@CPP@,$CPP,;t t
14716s,@SIGNAMES_H@,$SIGNAMES_H,;t t
14717s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
14718s,@STATIC_LD@,$STATIC_LD,;t t
14719s,@RL_VERSION@,$RL_VERSION,;t t
14720s,@RL_MAJOR@,$RL_MAJOR,;t t
14721s,@RL_MINOR@,$RL_MINOR,;t t
14722s,@READLINE_LIB@,$READLINE_LIB,;t t
14723s,@READLINE_DEP@,$READLINE_DEP,;t t
14724s,@RL_LIBDIR@,$RL_LIBDIR,;t t
14725s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
14726s,@RL_INCLUDE@,$RL_INCLUDE,;t t
14727s,@HISTORY_LIB@,$HISTORY_LIB,;t t
14728s,@HISTORY_DEP@,$HISTORY_DEP,;t t
14729s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
14730s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14731s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14732s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14733s,@AR@,$AR,;t t
14734s,@RANLIB@,$RANLIB,;t t
14735s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14736s,@YACC@,$YACC,;t t
14737s,@SET_MAKE@,$SET_MAKE,;t t
14738s,@MAKE_SHELL@,$MAKE_SHELL,;t t
14739s,@ALLOCA@,$ALLOCA,;t t
14740s,@LIBOBJS@,$LIBOBJS,;t t
14741s,@SIGLIST_O@,$SIGLIST_O,;t t
14742s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
14743s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
14744s,@JOBS_O@,$JOBS_O,;t t
14745s,@SHOBJ_CC@,$SHOBJ_CC,;t t
14746s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
14747s,@SHOBJ_LD@,$SHOBJ_LD,;t t
14748s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
14749s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
14750s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
14751s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
14752s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
14753s,@incdir@,$incdir,;t t
14754s,@BUILD_DIR@,$BUILD_DIR,;t t
14755s,@ARFLAGS@,$ARFLAGS,;t t
14756s,@BASHVERS@,$BASHVERS,;t t
14757s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
14758s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
14759s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
14760s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
14761CEOF
14762
14763EOF
14764
14765 cat >>$CONFIG_STATUS <<\EOF
14766 # Split the substitutions into bite-sized pieces for seds with
14767 # small command number limits, like on Digital OSF/1 and HP-UX.
14768 ac_max_sed_lines=48
14769 ac_sed_frag=1 # Number of current file.
14770 ac_beg=1 # First line for current file.
14771 ac_end=$ac_max_sed_lines # Line after last line for current file.
14772 ac_more_lines=:
14773 ac_sed_cmds=
14774 while $ac_more_lines; do
14775 if test $ac_beg -gt 1; then
14776 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14777 else
14778 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14779 fi
14780 if test ! -s $tmp/subs.frag; then
14781 ac_more_lines=false
ccc6cda3 14782 else
f73dda09
JA
14783 # The purpose of the label and of the branching condition is to
14784 # speed up the sed processing (if there are no `@' at all, there
14785 # is no need to browse any of the substitutions).
14786 # These are the two extra sed commands mentioned above.
14787 (echo ':t
14788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14789 if test -z "$ac_sed_cmds"; then
14790 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14791 else
14792 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14793 fi
14794 ac_sed_frag=`expr $ac_sed_frag + 1`
14795 ac_beg=$ac_end
14796 ac_end=`expr $ac_end + $ac_max_sed_lines`
ccc6cda3 14797 fi
f73dda09
JA
14798 done
14799 if test -z "$ac_sed_cmds"; then
14800 ac_sed_cmds=cat
ccc6cda3 14801 fi
f73dda09 14802fi # test -n "$CONFIG_FILES"
ccc6cda3 14803
ccc6cda3 14804EOF
f73dda09
JA
14805cat >>$CONFIG_STATUS <<\EOF
14806for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
ccc6cda3 14807 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
f73dda09
JA
14808 case $ac_file in
14809 - | *:- | *:-:* ) # input from stdin
14810 cat >$tmp/stdin
14811 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14813 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14815 * ) ac_file_in=$ac_file.in ;;
ccc6cda3
JA
14816 esac
14817
f73dda09
JA
14818 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14819 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14820 X"$ac_file" : 'X\(//\)[^/]' \| \
14821 X"$ac_file" : 'X\(//\)$' \| \
14822 X"$ac_file" : 'X\(/\)' \| \
14823 . : '\(.\)' 2>/dev/null ||
14824echo X"$ac_file" |
14825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14827 /^X\(\/\/\)$/{ s//\1/; q; }
14828 /^X\(\/\).*/{ s//\1/; q; }
14829 s/.*/./; q'`
ccc6cda3 14830 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
f73dda09
JA
14831 { case "$ac_dir" in
14832 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14833 *) as_incr_dir=.;;
14834esac
14835as_dummy="$ac_dir"
14836for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14837 case $as_mkdir_dir in
14838 # Skip DOS drivespec
14839 ?:) as_incr_dir=$as_mkdir_dir ;;
14840 *)
14841 as_incr_dir=$as_incr_dir/$as_mkdir_dir
14842 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
14843 ;;
14844 esac
14845done; }
14846
14847 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
ccc6cda3 14848 # A "../" for each directory in $ac_dir_suffix.
f73dda09 14849 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
ccc6cda3
JA
14850 else
14851 ac_dir_suffix= ac_dots=
14852 fi
14853
f73dda09
JA
14854 case $srcdir in
14855 .) ac_srcdir=.
14856 if test -z "$ac_dots"; then
14857 ac_top_srcdir=.
14858 else
14859 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
14860 fi ;;
14861 [\\/]* | ?:[\\/]* )
14862 ac_srcdir=$srcdir$ac_dir_suffix;
14863 ac_top_srcdir=$srcdir ;;
ccc6cda3 14864 *) # Relative path.
f73dda09
JA
14865 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
14866 ac_top_srcdir=$ac_dots$srcdir ;;
ccc6cda3
JA
14867 esac
14868
f73dda09
JA
14869 case $INSTALL in
14870 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14871 *) ac_INSTALL=$ac_dots$INSTALL ;;
ccc6cda3
JA
14872 esac
14873
f73dda09
JA
14874 if test x"$ac_file" != x-; then
14875 { echo "$as_me:14875: creating $ac_file" >&5
14876echo "$as_me: creating $ac_file" >&6;}
14877 rm -f "$ac_file"
14878 fi
14879 # Let's still pretend it is `configure' which instantiates (i.e., don't
14880 # use $as_me), people would be surprised to read:
14881 # /* config.h. Generated automatically by config.status. */
14882 configure_input="Generated automatically from `echo $ac_file_in |
14883 sed 's,.*/,,'` by configure."
14884
14885 # First look for the input files in the build tree, otherwise in the
14886 # src tree.
14887 ac_file_inputs=`IFS=:
14888 for f in $ac_file_in; do
14889 case $f in
14890 -) echo $tmp/stdin ;;
14891 [\\/$]*)
14892 # Absolute (can't be DOS-style, as IFS=:)
14893 test -f "$f" || { { echo "$as_me:14893: error: cannot find input file: $f" >&5
14894echo "$as_me: error: cannot find input file: $f" >&2;}
14895 { (exit 1); exit 1; }; }
14896 echo $f;;
14897 *) # Relative
14898 if test -f "$f"; then
14899 # Build tree
14900 echo $f
14901 elif test -f "$srcdir/$f"; then
14902 # Source tree
14903 echo $srcdir/$f
14904 else
14905 # /dev/null tree
14906 { { echo "$as_me:14906: error: cannot find input file: $f" >&5
14907echo "$as_me: error: cannot find input file: $f" >&2;}
14908 { (exit 1); exit 1; }; }
14909 fi;;
14910 esac
14911 done` || { (exit 1); exit 1; }
14912EOF
14913cat >>$CONFIG_STATUS <<EOF
14914 sed "$ac_vpsub
14915$extrasub
14916EOF
14917cat >>$CONFIG_STATUS <<\EOF
14918:t
14919/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14920s,@configure_input@,$configure_input,;t t
14921s,@srcdir@,$ac_srcdir,;t t
14922s,@top_srcdir@,$ac_top_srcdir,;t t
14923s,@INSTALL@,$ac_INSTALL,;t t
14924" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14925 rm -f $tmp/stdin
14926 if test x"$ac_file" != x-; then
14927 mv $tmp/out $ac_file
14928 else
14929 cat $tmp/out
14930 rm -f $tmp/out
14931 fi
14932
14933done
14934EOF
14935cat >>$CONFIG_STATUS <<\EOF
ccc6cda3 14936
f73dda09
JA
14937#
14938# CONFIG_HEADER section.
14939#
ccc6cda3
JA
14940
14941# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14942# NAME is the cpp macro being defined and VALUE is the value it is being given.
14943#
14944# ac_d sets the value in "#define NAME VALUE" lines.
f73dda09
JA
14945ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14946ac_dB='[ ].*$,\1#\2'
14947ac_dC=' '
14948ac_dD=',;t'
14949# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14950ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14951ac_uB='$,\1#\2define\3'
ccc6cda3 14952ac_uC=' '
f73dda09 14953ac_uD=',;t'
ccc6cda3 14954
f73dda09 14955for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
ccc6cda3 14956 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
f73dda09
JA
14957 case $ac_file in
14958 - | *:- | *:-:* ) # input from stdin
14959 cat >$tmp/stdin
14960 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14961 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14962 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14963 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14964 * ) ac_file_in=$ac_file.in ;;
ccc6cda3
JA
14965 esac
14966
f73dda09
JA
14967 test x"$ac_file" != x- && { echo "$as_me:14967: creating $ac_file" >&5
14968echo "$as_me: creating $ac_file" >&6;}
14969
14970 # First look for the input files in the build tree, otherwise in the
14971 # src tree.
14972 ac_file_inputs=`IFS=:
14973 for f in $ac_file_in; do
14974 case $f in
14975 -) echo $tmp/stdin ;;
14976 [\\/$]*)
14977 # Absolute (can't be DOS-style, as IFS=:)
14978 test -f "$f" || { { echo "$as_me:14978: error: cannot find input file: $f" >&5
14979echo "$as_me: error: cannot find input file: $f" >&2;}
14980 { (exit 1); exit 1; }; }
14981 echo $f;;
14982 *) # Relative
14983 if test -f "$f"; then
14984 # Build tree
14985 echo $f
14986 elif test -f "$srcdir/$f"; then
14987 # Source tree
14988 echo $srcdir/$f
14989 else
14990 # /dev/null tree
14991 { { echo "$as_me:14991: error: cannot find input file: $f" >&5
14992echo "$as_me: error: cannot find input file: $f" >&2;}
14993 { (exit 1); exit 1; }; }
14994 fi;;
14995 esac
14996 done` || { (exit 1); exit 1; }
14997 # Remove the trailing spaces.
14998 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14999
15000EOF
15001
15002# Transform confdefs.h into two sed scripts, `conftest.defines' and
15003# `conftest.undefs', that substitutes the proper values into
15004# config.h.in to produce config.h. The first handles `#define'
15005# templates, and the second `#undef' templates.
15006# And first: Protect against being on the right side of a sed subst in
15007# config.status. Protect against being in an unquoted here document
15008# in config.status.
15009rm -f conftest.defines conftest.undefs
15010# Using a here document instead of a string reduces the quoting nightmare.
15011# Putting comments in sed scripts is not portable.
15012#
15013# `end' is used to avoid that the second main sed command (meant for
15014# 0-ary CPP macros) applies to n-ary macro definitions.
15015# See the Autoconf documentation for `clear'.
15016cat >confdef2sed.sed <<\EOF
15017s/[\\&,]/\\&/g
15018s,[\\$`],\\&,g
15019t clear
15020: clear
15021s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
15022t end
15023s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15024: end
15025EOF
15026# If some macros were called several times there might be several times
15027# the same #defines, which is useless. Nevertheless, we may not want to
15028# sort them, since we want the *last* AC-DEFINE to be honored.
15029uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15030sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15031rm -f confdef2sed.sed
ccc6cda3
JA
15032
15033# This sed command replaces #undef with comments. This is necessary, for
15034# example, in the case of _POSIX_SOURCE, which is predefined and required
15035# on some systems where configure will not decide to define it.
f73dda09
JA
15036cat >>conftest.undefs <<\EOF
15037s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
ccc6cda3
JA
15038EOF
15039
f73dda09
JA
15040# Break up conftest.defines because some shells have a limit on the size
15041# of here documents, and old seds have small limits too (100 cmds).
15042echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15043echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15044echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15045echo ' :' >>$CONFIG_STATUS
15046rm -f conftest.tail
15047while grep . conftest.defines >/dev/null
15048do
15049 # Write a limited-size here document to $tmp/defines.sed.
15050 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15051 # Speed up: don't consider the non `#define' lines.
15052 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15053 # Work around the forget-to-reset-the-flag bug.
15054 echo 't clr' >>$CONFIG_STATUS
15055 echo ': clr' >>$CONFIG_STATUS
15056 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15057 echo 'CEOF
15058 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15059 rm -f $tmp/in
15060 mv $tmp/out $tmp/in
15061' >>$CONFIG_STATUS
15062 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15063 rm -f conftest.defines
15064 mv conftest.tail conftest.defines
15065done
15066rm -f conftest.defines
15067echo ' fi # egrep' >>$CONFIG_STATUS
15068echo >>$CONFIG_STATUS
ccc6cda3 15069
f73dda09
JA
15070# Break up conftest.undefs because some shells have a limit on the size
15071# of here documents, and old seds have small limits too (100 cmds).
15072echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
ccc6cda3 15073rm -f conftest.tail
f73dda09 15074while grep . conftest.undefs >/dev/null
ccc6cda3 15075do
f73dda09
JA
15076 # Write a limited-size here document to $tmp/undefs.sed.
15077 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15078 # Speed up: don't consider the non `#undef'
15079 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15080 # Work around the forget-to-reset-the-flag bug.
15081 echo 't clr' >>$CONFIG_STATUS
15082 echo ': clr' >>$CONFIG_STATUS
15083 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
ccc6cda3 15084 echo 'CEOF
f73dda09
JA
15085 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15086 rm -f $tmp/in
15087 mv $tmp/out $tmp/in
15088' >>$CONFIG_STATUS
15089 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15090 rm -f conftest.undefs
15091 mv conftest.tail conftest.undefs
ccc6cda3 15092done
f73dda09
JA
15093rm -f conftest.undefs
15094
15095cat >>$CONFIG_STATUS <<\EOF
15096 # Let's still pretend it is `configure' which instantiates (i.e., don't
15097 # use $as_me), people would be surprised to read:
15098 # /* config.h. Generated automatically by config.status. */
15099 if test x"$ac_file" = x-; then
15100 echo "/* Generated automatically by configure. */" >$tmp/config.h
ccc6cda3 15101 else
f73dda09
JA
15102 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
15103 fi
15104 cat $tmp/in >>$tmp/config.h
15105 rm -f $tmp/in
15106 if test x"$ac_file" != x-; then
15107 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15108 { echo "$as_me:15108: $ac_file is unchanged" >&5
15109echo "$as_me: $ac_file is unchanged" >&6;}
15110 else
15111 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15112 X"$ac_file" : 'X\(//\)[^/]' \| \
15113 X"$ac_file" : 'X\(//\)$' \| \
15114 X"$ac_file" : 'X\(/\)' \| \
15115 . : '\(.\)' 2>/dev/null ||
15116echo X"$ac_file" |
15117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15119 /^X\(\/\/\)$/{ s//\1/; q; }
15120 /^X\(\/\).*/{ s//\1/; q; }
15121 s/.*/./; q'`
ccc6cda3 15122 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
f73dda09
JA
15123 { case "$ac_dir" in
15124 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15125 *) as_incr_dir=.;;
15126esac
15127as_dummy="$ac_dir"
15128for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15129 case $as_mkdir_dir in
15130 # Skip DOS drivespec
15131 ?:) as_incr_dir=$as_mkdir_dir ;;
15132 *)
15133 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15134 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
15135 ;;
15136 esac
15137done; }
15138
15139 fi
15140 rm -f $ac_file
15141 mv $tmp/config.h $ac_file
ccc6cda3 15142 fi
f73dda09
JA
15143 else
15144 cat $tmp/config.h
15145 rm -f $tmp/config.h
ccc6cda3 15146 fi
f73dda09 15147done
ccc6cda3 15148EOF
f73dda09 15149cat >>$CONFIG_STATUS <<\EOF
ccc6cda3 15150
f73dda09
JA
15151#
15152# CONFIG_COMMANDS section.
15153#
15154for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15155 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15156 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
ccc6cda3 15157
f73dda09
JA
15158 case $ac_dest in
15159 default )
ccc6cda3
JA
15160# Makefile uses this timestamp file to record whether config.h is up to date.
15161echo timestamp > stamp-h
f73dda09
JA
15162 ;;
15163 esac
15164done
15165EOF
ccc6cda3 15166
f73dda09
JA
15167cat >>$CONFIG_STATUS <<\EOF
15168
15169{ (exit 0); exit 0; }
ccc6cda3
JA
15170EOF
15171chmod +x $CONFIG_STATUS
f73dda09
JA
15172ac_clean_files=$ac_clean_files_save
15173
15174# configure is writing to config.log, and then calls config.status.
15175# config.status does its own redirection, appending to config.log.
15176# Unfortunately, on DOS this fails, as config.log is still kept open
15177# by configure, so config.status won't be able to write to it; its
15178# output is simply discarded. So we exec the FD to /dev/null,
15179# effectively closing config.log, so it can be properly (re)opened and
15180# appended to by config.status. When coming back to configure, we
15181# need to make the FD available again.
15182if test "$no_create" != yes; then
15183 ac_cs_success=:
15184 exec 5>/dev/null
15185 $SHELL $CONFIG_STATUS || ac_cs_success=false
15186 exec 5>>config.log
15187 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15188 # would make configure fail if this is the last instruction.
15189 $ac_cs_success || { (exit 1); exit 1; }
15190fi
ccc6cda3 15191