Imported from ../bash-2.05b.tar.gz.
[platform/upstream/bash.git] / configure
1 #! /bin/sh
2 # From configure.in for Bash 2.05b, version 2.144, from autoconf version 2.52.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52 for bash 2.05b.
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.
12
13 # Avoid depending upon Character Ranges.
14 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17 as_cr_digits='0123456789'
18 as_cr_alnum=$as_cr_Letters$as_cr_digits
19
20 # Sed expression to map a string onto a valid variable name.
21 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22
23 # Sed expression to map a string onto a valid CPP name.
24 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25
26 # Be Bourne compatible
27 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28   emulate sh
29   NULLCMD=:
30 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31   set -o posix
32 fi
33
34 # Name of the executable.
35 as_me=`echo "$0" |sed 's,.*[\\/],,'`
36
37 if expr a : '\(a\)' >/dev/null 2>&1; then
38   as_expr=expr
39 else
40   as_expr=false
41 fi
42
43 rm -f conf$$ conf$$.exe conf$$.file
44 echo >conf$$.file
45 if 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
54 elif ln conf$$.file conf$$ 2>/dev/null; then
55   as_ln_s=ln
56 else
57   as_ln_s='cp -p'
58 fi
59 rm -f conf$$ conf$$.exe conf$$.file
60
61 as_executable_p="test -f"
62
63 # Support unset when possible.
64 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
65   as_unset=unset
66 else
67   as_unset=false
68 fi
69
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.
82 as_nl='
83 '
84 IFS="   $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.
92 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
93
94 exec 6>&1
95
96 #
97 # Initializations.
98 #
99 ac_default_prefix=/usr/local
100 cross_compiling=no
101 subdirs=
102 MFLAGS= MAKEFLAGS=
103 SHELL=${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
110 ac_unique_file="shell.h"
111 # Factoring default headers for most tests.
112 ac_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"
147
148 # Initialize some variables set by options.
149 ac_init_help=
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
153 cache_file=/dev/null
154 exec_prefix=NONE
155 no_create=
156 no_recursion=
157 prefix=NONE
158 program_prefix=NONE
159 program_suffix=NONE
160 program_transform_name=s,x,x,
161 silent=
162 site=
163 srcdir=
164 verbose=
165 x_includes=NONE
166 x_libraries=NONE
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.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datadir='${prefix}/share'
177 sysconfdir='${prefix}/etc'
178 sharedstatedir='${prefix}/com'
179 localstatedir='${prefix}/var'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${prefix}/info'
184 mandir='${prefix}/man'
185
186 # Identity of this package.
187 PACKAGE_NAME='bash'
188 PACKAGE_TARNAME='bash'
189 PACKAGE_VERSION='2.05b'
190 PACKAGE_STRING='bash 2.05b'
191 PACKAGE_BUGREPORT='bug-bash@gnu.org'
192
193 ac_prev=
194 for ac_option
195 do
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
203   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204
205   # Accept the important Cygnus configure options, so we can diagnose typos.
206
207   case $ac_option in
208
209   -bindir | --bindir | --bindi | --bind | --bin | --bi)
210     ac_prev=bindir ;;
211   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212     bindir=$ac_optarg ;;
213
214   -build | --build | --buil | --bui | --bu)
215     ac_prev=build_alias ;;
216   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
217     build_alias=$ac_optarg ;;
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=*)
224     cache_file=$ac_optarg ;;
225
226   --config-cache | -C)
227     cache_file=config.cache ;;
228
229   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230     ac_prev=datadir ;;
231   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232   | --da=*)
233     datadir=$ac_optarg ;;
234
235   -disable-* | --disable-*)
236     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
237     # Reject names that are not valid shell variable names.
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" ;;
243
244   -enable-* | --enable-*)
245     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
246     # Reject names that are not valid shell variable names.
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"`;;
253       *) ac_optarg=yes ;;
254     esac
255     eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
264     exec_prefix=$ac_optarg ;;
265
266   -gas | --gas | --ga | --g)
267     # Obsolete; use --with-gas.
268     with_gas=yes ;;
269
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 ;;
276
277   -host | --host | --hos | --ho)
278     ac_prev=host_alias ;;
279   -host=* | --host=* | --hos=* | --ho=*)
280     host_alias=$ac_optarg ;;
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=*)
287     includedir=$ac_optarg ;;
288
289   -infodir | --infodir | --infodi | --infod | --info | --inf)
290     ac_prev=infodir ;;
291   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
292     infodir=$ac_optarg ;;
293
294   -libdir | --libdir | --libdi | --libd)
295     ac_prev=libdir ;;
296   -libdir=* | --libdir=* | --libdi=* | --libd=*)
297     libdir=$ac_optarg ;;
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=*)
304     libexecdir=$ac_optarg ;;
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=*)
313     localstatedir=$ac_optarg ;;
314
315   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316     ac_prev=mandir ;;
317   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318     mandir=$ac_optarg ;;
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=*)
339     oldincludedir=$ac_optarg ;;
340
341   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342     ac_prev=prefix ;;
343   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344     prefix=$ac_optarg ;;
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=*)
351     program_prefix=$ac_optarg ;;
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=*)
358     program_suffix=$ac_optarg ;;
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=*)
375     program_transform_name=$ac_optarg ;;
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=*)
385     sbindir=$ac_optarg ;;
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=*)
396     sharedstatedir=$ac_optarg ;;
397
398   -site | --site | --sit)
399     ac_prev=site ;;
400   -site=* | --site=* | --sit=*)
401     site=$ac_optarg ;;
402
403   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404     ac_prev=srcdir ;;
405   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406     srcdir=$ac_optarg ;;
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=*)
413     sysconfdir=$ac_optarg ;;
414
415   -target | --target | --targe | --targ | --tar | --ta | --t)
416     ac_prev=target_alias ;;
417   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
418     target_alias=$ac_optarg ;;
419
420   -v | -verbose | --verbose | --verbos | --verbo | --verb)
421     verbose=yes ;;
422
423   -version | --version | --versio | --versi | --vers | -V)
424     ac_init_version=: ;;
425
426   -with-* | --with-*)
427     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
428     # Reject names that are not valid shell variable names.
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; }; }
432     ac_package=`echo $ac_package| sed 's/-/_/g'`
433     case $ac_option in
434       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435       *) ac_optarg=yes ;;
436     esac
437     eval "with_$ac_package='$ac_optarg'" ;;
438
439   -without-* | --without-*)
440     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
441     # Reject names that are not valid shell variable names.
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" ;;
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=*)
457     x_includes=$ac_optarg ;;
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=*)
464     x_libraries=$ac_optarg ;;
465
466   -*) { echo "$as_me: error: unrecognized option: $ac_option
467 Try \`$0 --help' for more information." >&2
468    { (exit 1); exit 1; }; }
469     ;;
470
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
481   *)
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}
487     ;;
488
489   esac
490 done
491
492 if test -n "$ac_prev"; then
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; }; }
496 fi
497
498 # Be sure to have absolute paths.
499 for ac_var in exec_prefix prefix
500 do
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
507 done
508
509 # Be sure to have absolute paths.
510 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
511               localstatedir libdir includedir oldincludedir infodir mandir
512 do
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; }; };;
518   esac
519 done
520
521 # There might be people who depend on the old broken behavior: `$host'
522 # used to hold the argument of --host etc.
523 build=$build_alias
524 host=$host_alias
525 target=$target_alias
526
527 # FIXME: should be removed in autoconf 3.0.
528 if 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
536 fi
537
538 ac_tool_prefix=
539 test -n "$host_alias" && ac_tool_prefix=$host_alias-
540
541 test "$silent" = yes && exec 6>/dev/null
542
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545   ac_srcdir_defaulted=yes
546   # Try the directory containing this script, then its parent.
547   ac_prog=$0
548   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
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
554 else
555   ac_srcdir_defaulted=no
556 fi
557 if test ! -r $srcdir/$ac_unique_file; then
558   if test "$ac_srcdir_defaulted" = yes; then
559     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
560    { (exit 1); exit 1; }; }
561   else
562     { echo "$as_me: error: cannot find sources in $srcdir" >&2
563    { (exit 1); exit 1; }; }
564   fi
565 fi
566 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
567 ac_env_build_alias_set=${build_alias+set}
568 ac_env_build_alias_value=$build_alias
569 ac_cv_env_build_alias_set=${build_alias+set}
570 ac_cv_env_build_alias_value=$build_alias
571 ac_env_host_alias_set=${host_alias+set}
572 ac_env_host_alias_value=$host_alias
573 ac_cv_env_host_alias_set=${host_alias+set}
574 ac_cv_env_host_alias_value=$host_alias
575 ac_env_target_alias_set=${target_alias+set}
576 ac_env_target_alias_value=$target_alias
577 ac_cv_env_target_alias_set=${target_alias+set}
578 ac_cv_env_target_alias_value=$target_alias
579 ac_env_CC_set=${CC+set}
580 ac_env_CC_value=$CC
581 ac_cv_env_CC_set=${CC+set}
582 ac_cv_env_CC_value=$CC
583 ac_env_CFLAGS_set=${CFLAGS+set}
584 ac_env_CFLAGS_value=$CFLAGS
585 ac_cv_env_CFLAGS_set=${CFLAGS+set}
586 ac_cv_env_CFLAGS_value=$CFLAGS
587 ac_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_env_LDFLAGS_value=$LDFLAGS
589 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
590 ac_cv_env_LDFLAGS_value=$LDFLAGS
591 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_env_CPPFLAGS_value=$CPPFLAGS
593 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
594 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
595 ac_env_CPP_set=${CPP+set}
596 ac_env_CPP_value=$CPP
597 ac_cv_env_CPP_set=${CPP+set}
598 ac_cv_env_CPP_value=$CPP
599
600 #
601 # Report the --help message.
602 #
603 if 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.05b to adapt to many kinds of systems.
608
609 Usage: $0 [OPTION]... [VAR=VALUE]...
610
611 To assign environment variables (e.g., CC, CFLAGS...), specify them as
612 VAR=VALUE.  See below for descriptions of some of the useful variables.
613
614 Defaults for the options are specified in brackets.
615
616 Configuration:
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 \`..']
626
627 EOF
628
629   cat <<EOF
630 Installation 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]
635
636 By default, \`make install' will install all the files in
637 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
638 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
639 for instance \`--prefix=\$HOME'.
640
641 For better control, use the options below.
642
643 Fine 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]
656 EOF
657
658   cat <<\EOF
659
660 System types:
661   --build=BUILD     configure for building on BUILD [guessed]
662   --host=HOST       build programs to run on HOST [BUILD]
663 EOF
664 fi
665
666 if test -n "$ac_init_help"; then
667   case $ac_init_help in
668      short | recursive ) echo "Configuration of bash 2.05b:";;
669    esac
670   cat <<\EOF
671
672 Optional 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
678                           enable arithmetic for command
679   --enable-array-variables
680                           include shell array variables
681   --enable-bang-history   turn on csh-style history substitution
682   --enable-brace-expansion
683                           include brace expansion
684   --enable-command-timing enable the time reserved word and command timing
685   --enable-cond-command   enable the conditional command
686   --enable-directory-stack
687                           enable builtins pushd/popd/dirs
688   --enable-disabled-builtins
689                           allow disabled builtins to still be invoked
690   --enable-dparen-arithmetic
691                           include ((...)) command
692   --enable-extended-glob  include ksh-style extended pattern matching
693   --enable-help-builtin   include the help builtin
694   --enable-history        turn on command history
695   --enable-job-control    enable job control features
696   --enable-net-redirections
697                           enable /dev/tcp/host/port redirection
698   --enable-process-substitution
699                           enable process substitution
700   --enable-progcomp       enable programmable completion and the complete
701                           builtin
702   --enable-prompt-string-decoding
703                           turn on escape character decoding in prompts
704   --enable-readline       turn on command line editing
705   --enable-restricted     enable a restricted shell
706   --enable-select         include select command
707   --enable-separate-helpfiles
708                           use external files for help builtin documentation
709   --enable-usg-echo-default
710                           a synonym for --enable-xpg-echo-default
711   --enable-xpg-echo-default
712                           make the echo builtin expand escape sequences by
713                           default
714   --enable-mem-scramble   scramble memory on calls to malloc and free
715   --enable-profiling      allow profiling with gprof
716   --enable-static-link    link bash statically, for use as a root shell
717   --disable-largefile     omit support for large files
718
719 Optional Packages:
720   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
721   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
722   --with-afs              if you are running AFS
723   --with-bash-malloc      use the Bash version of malloc
724   --with-curses           use the curses library instead of the termcap
725                           library
726   --with-gnu-malloc       synonym for --with-bash-malloc
727   --with-installed-readline
728                           use a version of the readline library that is
729                           already installed
730   --with-purecov          configure to postprocess with pure coverage
731   --with-purify           configure to postprocess with purify
732
733 Some influential environment variables:
734   CC          C compiler command
735   CFLAGS      C compiler flags
736   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
737               nonstandard directory <lib dir>
738   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
739               headers in a nonstandard directory <include dir>
740   CPP         C preprocessor
741
742 Use these variables to override the choices made by `configure' or to help
743 it to find libraries and programs with nonstandard names/locations.
744
745 Report bugs to <bug-bash@gnu.org>.
746 EOF
747 fi
748
749 if test "$ac_init_help" = "recursive"; then
750   # If there are subdirs, report their specific --help.
751   ac_popdir=`pwd`
752   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
753     cd $ac_subdir
754     # A "../" for each directory in /$ac_subdir.
755     ac_dots=`echo $ac_subdir |
756              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
757
758     case $srcdir in
759     .) # No --srcdir option.  We are building in place.
760       ac_sub_srcdir=$srcdir ;;
761     [\\/]* | ?:[\\/]* ) # Absolute path.
762       ac_sub_srcdir=$srcdir/$ac_subdir ;;
763     *) # Relative path.
764       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
765     esac
766
767     # Check for guested configure; otherwise get Cygnus style configure.
768     if test -f $ac_sub_srcdir/configure.gnu; then
769       echo
770       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
771     elif test -f $ac_sub_srcdir/configure; then
772       echo
773       $SHELL $ac_sub_srcdir/configure  --help=recursive
774     elif test -f $ac_sub_srcdir/configure.ac ||
775            test -f $ac_sub_srcdir/configure.in; then
776       echo
777       $ac_configure --help
778     else
779       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
780     fi
781     cd $ac_popdir
782   done
783 fi
784
785 test -n "$ac_init_help" && exit 0
786 if $ac_init_version; then
787   cat <<\EOF
788 bash configure 2.05b
789 generated by GNU Autoconf 2.52
790
791 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
792 Free Software Foundation, Inc.
793 This configure script is free software; the Free Software Foundation
794 gives unlimited permission to copy, distribute and modify it.
795 EOF
796   exit 0
797 fi
798 exec 5>config.log
799 cat >&5 <<EOF
800 This file contains any messages produced by compilers while
801 running configure, to aid debugging if configure makes a mistake.
802
803 It was created by bash $as_me 2.05b, which was
804 generated by GNU Autoconf 2.52.  Invocation command line was
805
806   $ $0 $@
807
808 EOF
809 {
810 cat <<_ASUNAME
811 ## ---------- ##
812 ## Platform.  ##
813 ## ---------- ##
814
815 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
816 uname -m = `(uname -m) 2>/dev/null || echo unknown`
817 uname -r = `(uname -r) 2>/dev/null || echo unknown`
818 uname -s = `(uname -s) 2>/dev/null || echo unknown`
819 uname -v = `(uname -v) 2>/dev/null || echo unknown`
820
821 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
822 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
823
824 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
825 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
826 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
827 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
828 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
829 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
830 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
831
832 PATH = $PATH
833
834 _ASUNAME
835 } >&5
836
837 cat >&5 <<EOF
838 ## ------------ ##
839 ## Core tests.  ##
840 ## ------------ ##
841
842 EOF
843
844 # Keep a trace of the command line.
845 # Strip out --no-create and --no-recursion so they do not pile up.
846 # Also quote any args containing shell meta-characters.
847 ac_configure_args=
848 ac_sep=
849 for ac_arg
850 do
851   case $ac_arg in
852   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
853   | --no-cr | --no-c) ;;
854   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
855   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
856   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
857     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
858     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
859     ac_sep=" " ;;
860   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
861      ac_sep=" " ;;
862   esac
863   # Get rid of the leading space.
864 done
865
866 # When interrupted or exit'd, cleanup temporary files, and complete
867 # config.log.  We remove comments because anyway the quotes in there
868 # would cause problems or look ugly.
869 trap 'exit_status=$?
870   # Save into config.log some information that might help in debugging.
871   echo >&5
872   echo "## ----------------- ##" >&5
873   echo "## Cache variables.  ##" >&5
874   echo "## ----------------- ##" >&5
875   echo >&5
876   # The following way of writing the cache mishandles newlines in values,
877 {
878   (set) 2>&1 |
879     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
880     *ac_space=\ *)
881       sed -n \
882         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
883           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
884       ;;
885     *)
886       sed -n \
887         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
888       ;;
889     esac;
890 } >&5
891   sed "/^$/d" confdefs.h >conftest.log
892   if test -s conftest.log; then
893     echo >&5
894     echo "## ------------ ##" >&5
895     echo "## confdefs.h.  ##" >&5
896     echo "## ------------ ##" >&5
897     echo >&5
898     cat conftest.log >&5
899   fi
900   (echo; echo) >&5
901   test "$ac_signal" != 0 &&
902     echo "$as_me: caught signal $ac_signal" >&5
903   echo "$as_me: exit $exit_status" >&5
904   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
905     exit $exit_status
906      ' 0
907 for ac_signal in 1 2 13 15; do
908   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
909 done
910 ac_signal=0
911
912 # confdefs.h avoids OS command line length limits that DEFS can exceed.
913 rm -rf conftest* confdefs.h
914 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
915 echo >confdefs.h
916
917 # Let the site file select an alternate cache file if it wants to.
918 # Prefer explicitly selected file to automatically selected ones.
919 if test -z "$CONFIG_SITE"; then
920   if test "x$prefix" != xNONE; then
921     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
922   else
923     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
924   fi
925 fi
926 for ac_site_file in $CONFIG_SITE; do
927   if test -r "$ac_site_file"; then
928     { echo "$as_me:928: loading site script $ac_site_file" >&5
929 echo "$as_me: loading site script $ac_site_file" >&6;}
930     cat "$ac_site_file" >&5
931     . "$ac_site_file"
932   fi
933 done
934
935 if test -r "$cache_file"; then
936   # Some versions of bash will fail to source /dev/null (special
937   # files actually), so we avoid doing that.
938   if test -f "$cache_file"; then
939     { echo "$as_me:939: loading cache $cache_file" >&5
940 echo "$as_me: loading cache $cache_file" >&6;}
941     case $cache_file in
942       [\\/]* | ?:[\\/]* ) . $cache_file;;
943       *)                      . ./$cache_file;;
944     esac
945   fi
946 else
947   { echo "$as_me:947: creating cache $cache_file" >&5
948 echo "$as_me: creating cache $cache_file" >&6;}
949   >$cache_file
950 fi
951
952 # Check that the precious variables saved in the cache have kept the same
953 # value.
954 ac_cache_corrupted=false
955 for ac_var in `(set) 2>&1 |
956                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
957   eval ac_old_set=\$ac_cv_env_${ac_var}_set
958   eval ac_new_set=\$ac_env_${ac_var}_set
959   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
960   eval ac_new_val="\$ac_env_${ac_var}_value"
961   case $ac_old_set,$ac_new_set in
962     set,)
963       { echo "$as_me:963: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
964 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
965       ac_cache_corrupted=: ;;
966     ,set)
967       { echo "$as_me:967: error: \`$ac_var' was not set in the previous run" >&5
968 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
969       ac_cache_corrupted=: ;;
970     ,);;
971     *)
972       if test "x$ac_old_val" != "x$ac_new_val"; then
973         { echo "$as_me:973: error: \`$ac_var' has changed since the previous run:" >&5
974 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
975         { echo "$as_me:975:   former value:  $ac_old_val" >&5
976 echo "$as_me:   former value:  $ac_old_val" >&2;}
977         { echo "$as_me:977:   current value: $ac_new_val" >&5
978 echo "$as_me:   current value: $ac_new_val" >&2;}
979         ac_cache_corrupted=:
980       fi;;
981   esac
982   # Pass precious variables to config.status.  It doesn't matter if
983   # we pass some twice (in addition to the command line arguments).
984   if test "$ac_new_set" = set; then
985     case $ac_new_val in
986     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
987       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
988       ac_configure_args="$ac_configure_args '$ac_arg'"
989       ;;
990     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
991        ;;
992     esac
993   fi
994 done
995 if $ac_cache_corrupted; then
996   { echo "$as_me:996: error: changes in the environment can compromise the build" >&5
997 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
998   { { echo "$as_me:998: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
999 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1000    { (exit 1); exit 1; }; }
1001 fi
1002
1003 ac_ext=c
1004 ac_cpp='$CPP $CPPFLAGS'
1005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1008
1009 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1010   *c*,-n*) ECHO_N= ECHO_C='
1011 ' ECHO_T='      ' ;;
1012   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1013   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1014 esac
1015 echo "#! $SHELL" >conftest.sh
1016 echo  "exit 0"   >>conftest.sh
1017 chmod +x conftest.sh
1018 if { (echo "$as_me:1018: PATH=\".;.\"; conftest.sh") >&5
1019   (PATH=".;."; conftest.sh) 2>&5
1020   ac_status=$?
1021   echo "$as_me:1021: \$? = $ac_status" >&5
1022   (exit $ac_status); }; then
1023   ac_path_separator=';'
1024 else
1025   ac_path_separator=:
1026 fi
1027 PATH_SEPARATOR="$ac_path_separator"
1028 rm -f conftest.sh
1029
1030 ac_aux_dir=
1031 for ac_dir in ./support $srcdir/./support; do
1032   if test -f $ac_dir/install-sh; then
1033     ac_aux_dir=$ac_dir
1034     ac_install_sh="$ac_aux_dir/install-sh -c"
1035     break
1036   elif test -f $ac_dir/install.sh; then
1037     ac_aux_dir=$ac_dir
1038     ac_install_sh="$ac_aux_dir/install.sh -c"
1039     break
1040   elif test -f $ac_dir/shtool; then
1041     ac_aux_dir=$ac_dir
1042     ac_install_sh="$ac_aux_dir/shtool install -c"
1043     break
1044   fi
1045 done
1046 if test -z "$ac_aux_dir"; then
1047   { { echo "$as_me:1047: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1048 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1049    { (exit 1); exit 1; }; }
1050 fi
1051 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1052 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1053 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1054
1055 ac_config_headers="$ac_config_headers config.h"
1056
1057 BASHVERS=2.05b
1058 RELSTATUS=release
1059
1060 case "$RELSTATUS" in
1061 alp*|bet*|dev*|rc*)     DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1062 *)      DEBUG= MALLOC_DEBUG= ;;
1063 esac
1064
1065 # Make sure we can run config.sub.
1066 $ac_config_sub sun4 >/dev/null 2>&1 ||
1067   { { echo "$as_me:1067: error: cannot run $ac_config_sub" >&5
1068 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1069    { (exit 1); exit 1; }; }
1070
1071 echo "$as_me:1071: checking build system type" >&5
1072 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1073 if test "${ac_cv_build+set}" = set; then
1074   echo $ECHO_N "(cached) $ECHO_C" >&6
1075 else
1076   ac_cv_build_alias=$build_alias
1077 test -z "$ac_cv_build_alias" &&
1078   ac_cv_build_alias=`$ac_config_guess`
1079 test -z "$ac_cv_build_alias" &&
1080   { { echo "$as_me:1080: error: cannot guess build type; you must specify one" >&5
1081 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1082    { (exit 1); exit 1; }; }
1083 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1084   { { echo "$as_me:1084: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1085 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1086    { (exit 1); exit 1; }; }
1087
1088 fi
1089 echo "$as_me:1089: result: $ac_cv_build" >&5
1090 echo "${ECHO_T}$ac_cv_build" >&6
1091 build=$ac_cv_build
1092 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1093 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1094 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1095
1096 echo "$as_me:1096: checking host system type" >&5
1097 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1098 if test "${ac_cv_host+set}" = set; then
1099   echo $ECHO_N "(cached) $ECHO_C" >&6
1100 else
1101   ac_cv_host_alias=$host_alias
1102 test -z "$ac_cv_host_alias" &&
1103   ac_cv_host_alias=$ac_cv_build_alias
1104 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1105   { { echo "$as_me:1105: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1106 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1107    { (exit 1); exit 1; }; }
1108
1109 fi
1110 echo "$as_me:1110: result: $ac_cv_host" >&5
1111 echo "${ECHO_T}$ac_cv_host" >&6
1112 host=$ac_cv_host
1113 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1114 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1115 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1116
1117 opt_bash_malloc=yes
1118 opt_purify=no
1119 opt_purecov=no
1120 opt_afs=no
1121 opt_curses=no
1122 opt_with_installed_readline=no
1123
1124 #htmldir=
1125
1126 case "${host_cpu}-${host_os}" in
1127 alpha*-*)       opt_bash_malloc=no ;;   # alpha running osf/1 or linux
1128 *[Cc]ray*-*)    opt_bash_malloc=no ;;   # Crays
1129 *-osf1*)        opt_bash_malloc=no ;;   # other osf/1 machines
1130 sparc-svr4*)    opt_bash_malloc=no ;;   # sparc SVR4, SVR4.2
1131 sparc-netbsd*)  opt_bash_malloc=no ;;   # needs 8-byte alignment
1132 mips-irix6*)    opt_bash_malloc=no ;;   # needs 8-byte alignment
1133 m68k-sysv)      opt_bash_malloc=no ;;   # fixes file descriptor leak in closedir
1134 sparc-linux*)   opt_bash_malloc=no ;;   # sparc running linux; requires ELF
1135 #*-freebsd*)    opt_bash_malloc=no ;;   # they claim it's better; I disagree
1136 *-openbsd*)     opt_bash_malloc=no ;;   # they claim it needs eight-bit alignment
1137 *-aix*)         opt_bash_malloc=no ;;   # AIX machines
1138 *-nextstep*)    opt_bash_malloc=no ;;   # NeXT machines running NeXTstep
1139 *-macos*)       opt_bash_malloc=no ;;   # Apple MacOS X
1140 *-rhapsody*)    opt_bash_malloc=no ;;   # Apple Rhapsody (MacOS X)
1141 *-darwin*)      opt_bash_malloc=no ;;   # Apple Darwin (MacOS X)
1142 *-dgux*)        opt_bash_malloc=no ;;   # DG/UX machines
1143 *-qnx*)         opt_bash_malloc=no ;;   # QNX 4.2
1144 *-machten4)     opt_bash_malloc=no ;;   # MachTen 4.x
1145 *-bsdi2.1|*-bsdi3.?)    opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1146 *-beos*)        opt_bash_malloc=no ;;   # they say it's suitable
1147 *-cygwin*)      opt_bash_malloc=no ;;   # Cygnus's CYGWIN environment
1148 *-opennt*|*-interix*)   opt_bash_malloc=no ;;   # Interix, now owned by Microsoft
1149 esac
1150
1151 # memory scrambling on free()
1152 case "${host_os}" in
1153 sco3.2v5*|sco3.2v4*)    opt_memscramble=no ;;
1154 *)                      opt_memscramble=yes ;;
1155 esac
1156
1157 # Check whether --with-afs or --without-afs was given.
1158 if test "${with_afs+set}" = set; then
1159   withval="$with_afs"
1160   opt_afs=$withval
1161 fi;
1162
1163 # Check whether --with-bash-malloc or --without-bash-malloc was given.
1164 if test "${with_bash_malloc+set}" = set; then
1165   withval="$with_bash_malloc"
1166   opt_bash_malloc=$withval
1167 fi;
1168
1169 # Check whether --with-curses or --without-curses was given.
1170 if test "${with_curses+set}" = set; then
1171   withval="$with_curses"
1172   opt_curses=$withval
1173 fi;
1174
1175 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1176 if test "${with_gnu_malloc+set}" = set; then
1177   withval="$with_gnu_malloc"
1178   opt_bash_malloc=$withval
1179 fi;
1180
1181 # Check whether --with-installed-readline or --without-installed-readline was given.
1182 if test "${with_installed_readline+set}" = set; then
1183   withval="$with_installed_readline"
1184   opt_with_installed_readline=$withval
1185 fi;
1186
1187 # Check whether --with-purecov or --without-purecov was given.
1188 if test "${with_purecov+set}" = set; then
1189   withval="$with_purecov"
1190   opt_purecov=$withval
1191 fi;
1192
1193 # Check whether --with-purify or --without-purify was given.
1194 if test "${with_purify+set}" = set; then
1195   withval="$with_purify"
1196   opt_purify=$withval
1197 fi;
1198
1199 if test "$opt_bash_malloc" = yes; then
1200         MALLOC_TARGET=malloc
1201         MALLOC_SRC=malloc.c
1202
1203         MALLOC_LIB='-lmalloc'
1204         MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1205         MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1206         MALLOC_DEP='$(MALLOC_LIBRARY)'
1207
1208         cat >>confdefs.h <<\EOF
1209 #define USING_BASH_MALLOC 1
1210 EOF
1211
1212 else
1213         MALLOC_LIB=
1214         MALLOC_LIBRARY=
1215         MALLOC_LDFLAGS=
1216         MALLOC_DEP=
1217 fi
1218
1219 if test "$opt_purify" = yes; then
1220         PURIFY="purify "
1221         cat >>confdefs.h <<\EOF
1222 #define DISABLE_MALLOC_WRAPPERS 1
1223 EOF
1224
1225 else
1226         PURIFY=
1227 fi
1228
1229 if test "$opt_purecov" = yes; then
1230         PURIFY="${PURIFY}purecov"
1231 fi
1232
1233 if test "$opt_afs" = yes; then
1234         cat >>confdefs.h <<\EOF
1235 #define AFS 1
1236 EOF
1237
1238 fi
1239
1240 if test "$opt_curses" = yes; then
1241         prefer_curses=yes
1242 fi
1243
1244 opt_minimal_config=no
1245
1246 opt_job_control=yes
1247 opt_alias=yes
1248 opt_readline=yes
1249 opt_history=yes
1250 opt_bang_history=yes
1251 opt_dirstack=yes
1252 opt_restricted=yes
1253 opt_process_subst=yes
1254 opt_prompt_decoding=yes
1255 opt_select=yes
1256 opt_help=yes
1257 opt_array_variables=yes
1258 opt_dparen_arith=yes
1259 opt_extended_glob=yes
1260 opt_brace_expansion=yes
1261 opt_disabled_builtins=no
1262 opt_command_timing=yes
1263 opt_xpg_echo=no
1264 opt_cond_command=yes
1265 opt_arith_for_command=yes
1266 opt_net_redirs=yes
1267 opt_progcomp=yes
1268 opt_separate_help=no
1269
1270 opt_static_link=no
1271 opt_profiling=no
1272
1273 # Check whether --enable-minimal-config or --disable-minimal-config was given.
1274 if test "${enable_minimal_config+set}" = set; then
1275   enableval="$enable_minimal_config"
1276   opt_minimal_config=$enableval
1277 fi;
1278
1279 if test $opt_minimal_config = yes; then
1280         opt_job_control=no opt_alias=no opt_readline=no
1281         opt_history=no opt_bang_history=no opt_dirstack=no
1282         opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1283         opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1284         opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
1285         opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
1286         opt_net_redirs=no opt_progcomp=no opt_separate_help=no
1287 fi
1288
1289 # Check whether --enable-alias or --disable-alias was given.
1290 if test "${enable_alias+set}" = set; then
1291   enableval="$enable_alias"
1292   opt_alias=$enableval
1293 fi;
1294 # Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1295 if test "${enable_arith_for_command+set}" = set; then
1296   enableval="$enable_arith_for_command"
1297   opt_arith_for_command=$enableval
1298 fi;
1299 # Check whether --enable-array-variables or --disable-array-variables was given.
1300 if test "${enable_array_variables+set}" = set; then
1301   enableval="$enable_array_variables"
1302   opt_array_variables=$enableval
1303 fi;
1304 # Check whether --enable-bang-history or --disable-bang-history was given.
1305 if test "${enable_bang_history+set}" = set; then
1306   enableval="$enable_bang_history"
1307   opt_bang_history=$enableval
1308 fi;
1309 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1310 if test "${enable_brace_expansion+set}" = set; then
1311   enableval="$enable_brace_expansion"
1312   opt_brace_expansion=$enableval
1313 fi;
1314 # Check whether --enable-command-timing or --disable-command-timing was given.
1315 if test "${enable_command_timing+set}" = set; then
1316   enableval="$enable_command_timing"
1317   opt_command_timing=$enableval
1318 fi;
1319 # Check whether --enable-cond-command or --disable-cond-command was given.
1320 if test "${enable_cond_command+set}" = set; then
1321   enableval="$enable_cond_command"
1322   opt_cond_command=$enableval
1323 fi;
1324 # Check whether --enable-directory-stack or --disable-directory-stack was given.
1325 if test "${enable_directory_stack+set}" = set; then
1326   enableval="$enable_directory_stack"
1327   opt_dirstack=$enableval
1328 fi;
1329 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1330 if test "${enable_disabled_builtins+set}" = set; then
1331   enableval="$enable_disabled_builtins"
1332   opt_disabled_builtins=$enableval
1333 fi;
1334 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1335 if test "${enable_dparen_arithmetic+set}" = set; then
1336   enableval="$enable_dparen_arithmetic"
1337   opt_dparen_arith=$enableval
1338 fi;
1339 # Check whether --enable-extended-glob or --disable-extended-glob was given.
1340 if test "${enable_extended_glob+set}" = set; then
1341   enableval="$enable_extended_glob"
1342   opt_extended_glob=$enableval
1343 fi;
1344 # Check whether --enable-help-builtin or --disable-help-builtin was given.
1345 if test "${enable_help_builtin+set}" = set; then
1346   enableval="$enable_help_builtin"
1347   opt_help=$enableval
1348 fi;
1349 # Check whether --enable-history or --disable-history was given.
1350 if test "${enable_history+set}" = set; then
1351   enableval="$enable_history"
1352   opt_history=$enableval
1353 fi;
1354 # Check whether --enable-job-control or --disable-job-control was given.
1355 if test "${enable_job_control+set}" = set; then
1356   enableval="$enable_job_control"
1357   opt_job_control=$enableval
1358 fi;
1359 # Check whether --enable-net-redirections or --disable-net-redirections was given.
1360 if test "${enable_net_redirections+set}" = set; then
1361   enableval="$enable_net_redirections"
1362   opt_net_redirs=$enableval
1363 fi;
1364 # Check whether --enable-process-substitution or --disable-process-substitution was given.
1365 if test "${enable_process_substitution+set}" = set; then
1366   enableval="$enable_process_substitution"
1367   opt_process_subst=$enableval
1368 fi;
1369 # Check whether --enable-progcomp or --disable-progcomp was given.
1370 if test "${enable_progcomp+set}" = set; then
1371   enableval="$enable_progcomp"
1372   opt_progcomp=$enableval
1373 fi;
1374 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1375 if test "${enable_prompt_string_decoding+set}" = set; then
1376   enableval="$enable_prompt_string_decoding"
1377   opt_prompt_decoding=$enableval
1378 fi;
1379 # Check whether --enable-readline or --disable-readline was given.
1380 if test "${enable_readline+set}" = set; then
1381   enableval="$enable_readline"
1382   opt_readline=$enableval
1383 fi;
1384 # Check whether --enable-restricted or --disable-restricted was given.
1385 if test "${enable_restricted+set}" = set; then
1386   enableval="$enable_restricted"
1387   opt_restricted=$enableval
1388 fi;
1389 # Check whether --enable-select or --disable-select was given.
1390 if test "${enable_select+set}" = set; then
1391   enableval="$enable_select"
1392   opt_select=$enableval
1393 fi;
1394 # Check whether --enable-separate-helpfiles or --disable-separate-helpfiles was given.
1395 if test "${enable_separate_helpfiles+set}" = set; then
1396   enableval="$enable_separate_helpfiles"
1397   opt_separate_help=$enableval
1398 fi;
1399 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1400 if test "${enable_usg_echo_default+set}" = set; then
1401   enableval="$enable_usg_echo_default"
1402   opt_xpg_echo=$enableval
1403 fi;
1404 # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1405 if test "${enable_xpg_echo_default+set}" = set; then
1406   enableval="$enable_xpg_echo_default"
1407   opt_xpg_echo=$enableval
1408 fi;
1409
1410 # Check whether --enable-mem-scramble or --disable-mem-scramble was given.
1411 if test "${enable_mem_scramble+set}" = set; then
1412   enableval="$enable_mem_scramble"
1413   opt_memscramble=$enableval
1414 fi;
1415 # Check whether --enable-profiling or --disable-profiling was given.
1416 if test "${enable_profiling+set}" = set; then
1417   enableval="$enable_profiling"
1418   opt_profiling=$enableval
1419 fi;
1420 # Check whether --enable-static-link or --disable-static-link was given.
1421 if test "${enable_static_link+set}" = set; then
1422   enableval="$enable_static_link"
1423   opt_static_link=$enableval
1424 fi;
1425
1426 if test $opt_alias = yes; then
1427 cat >>confdefs.h <<\EOF
1428 #define ALIAS 1
1429 EOF
1430
1431 fi
1432 if test $opt_dirstack = yes; then
1433 cat >>confdefs.h <<\EOF
1434 #define PUSHD_AND_POPD 1
1435 EOF
1436
1437 fi
1438 if test $opt_restricted = yes; then
1439 cat >>confdefs.h <<\EOF
1440 #define RESTRICTED_SHELL 1
1441 EOF
1442
1443 fi
1444 if test $opt_process_subst = yes; then
1445 cat >>confdefs.h <<\EOF
1446 #define PROCESS_SUBSTITUTION 1
1447 EOF
1448
1449 fi
1450 if test $opt_prompt_decoding = yes; then
1451 cat >>confdefs.h <<\EOF
1452 #define PROMPT_STRING_DECODE 1
1453 EOF
1454
1455 fi
1456 if test $opt_select = yes; then
1457 cat >>confdefs.h <<\EOF
1458 #define SELECT_COMMAND 1
1459 EOF
1460
1461 fi
1462 if test $opt_help = yes; then
1463 cat >>confdefs.h <<\EOF
1464 #define HELP_BUILTIN 1
1465 EOF
1466
1467 fi
1468 if test $opt_array_variables = yes; then
1469 cat >>confdefs.h <<\EOF
1470 #define ARRAY_VARS 1
1471 EOF
1472
1473 fi
1474 if test $opt_dparen_arith = yes; then
1475 cat >>confdefs.h <<\EOF
1476 #define DPAREN_ARITHMETIC 1
1477 EOF
1478
1479 fi
1480 if test $opt_brace_expansion = yes; then
1481 cat >>confdefs.h <<\EOF
1482 #define BRACE_EXPANSION 1
1483 EOF
1484
1485 fi
1486 if test $opt_disabled_builtins = yes; then
1487 cat >>confdefs.h <<\EOF
1488 #define DISABLED_BUILTINS 1
1489 EOF
1490
1491 fi
1492 if test $opt_command_timing = yes; then
1493 cat >>confdefs.h <<\EOF
1494 #define COMMAND_TIMING 1
1495 EOF
1496
1497 fi
1498 if test $opt_xpg_echo = yes ; then
1499 cat >>confdefs.h <<\EOF
1500 #define DEFAULT_ECHO_TO_XPG 1
1501 EOF
1502
1503 fi
1504 if test $opt_extended_glob = yes ; then
1505 cat >>confdefs.h <<\EOF
1506 #define EXTENDED_GLOB 1
1507 EOF
1508
1509 fi
1510 if test $opt_cond_command = yes ; then
1511 cat >>confdefs.h <<\EOF
1512 #define COND_COMMAND 1
1513 EOF
1514
1515 fi
1516 if test $opt_arith_for_command = yes; then
1517 cat >>confdefs.h <<\EOF
1518 #define ARITH_FOR_COMMAND 1
1519 EOF
1520
1521 fi
1522 if test $opt_net_redirs = yes; then
1523 cat >>confdefs.h <<\EOF
1524 #define NETWORK_REDIRECTIONS 1
1525 EOF
1526
1527 fi
1528 if test $opt_progcomp = yes; then
1529 cat >>confdefs.h <<\EOF
1530 #define PROGRAMMABLE_COMPLETION 1
1531 EOF
1532
1533 fi
1534
1535 if test $opt_memscramble = yes; then
1536 cat >>confdefs.h <<\EOF
1537 #define MEMSCRAMBLE 1
1538 EOF
1539
1540 fi
1541
1542 if test "$opt_minimal_config" = yes; then
1543         TESTSCRIPT=run-minimal
1544 else
1545         TESTSCRIPT=run-all
1546 fi
1547
1548 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
1549 if test "$opt_separate_help" != no; then
1550         if test "$opt_separate_help" = "yes" ; then
1551                 HELPDIR='${datadir}/bash'
1552         else
1553                 HELPDIR=$opt_separate_help
1554         fi
1555         HELPDIRDEFINE='-H ${HELPDIR}'
1556         HELPINSTALL='install-help'
1557 fi
1558
1559 echo ""
1560 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
1561 echo ""
1562
1563 ac_ext=c
1564 ac_cpp='$CPP $CPPFLAGS'
1565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1568 if test -n "$ac_tool_prefix"; then
1569   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1570 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1571 echo "$as_me:1571: checking for $ac_word" >&5
1572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573 if test "${ac_cv_prog_CC+set}" = set; then
1574   echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576   if test -n "$CC"; then
1577   ac_cv_prog_CC="$CC" # Let the user override the test.
1578 else
1579   ac_save_IFS=$IFS; IFS=$ac_path_separator
1580 ac_dummy="$PATH"
1581 for ac_dir in $ac_dummy; do
1582   IFS=$ac_save_IFS
1583   test -z "$ac_dir" && ac_dir=.
1584   $as_executable_p "$ac_dir/$ac_word" || continue
1585 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1586 echo "$as_me:1586: found $ac_dir/$ac_word" >&5
1587 break
1588 done
1589
1590 fi
1591 fi
1592 CC=$ac_cv_prog_CC
1593 if test -n "$CC"; then
1594   echo "$as_me:1594: result: $CC" >&5
1595 echo "${ECHO_T}$CC" >&6
1596 else
1597   echo "$as_me:1597: result: no" >&5
1598 echo "${ECHO_T}no" >&6
1599 fi
1600
1601 fi
1602 if test -z "$ac_cv_prog_CC"; then
1603   ac_ct_CC=$CC
1604   # Extract the first word of "gcc", so it can be a program name with args.
1605 set dummy gcc; ac_word=$2
1606 echo "$as_me:1606: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   if test -n "$ac_ct_CC"; then
1612   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1613 else
1614   ac_save_IFS=$IFS; IFS=$ac_path_separator
1615 ac_dummy="$PATH"
1616 for ac_dir in $ac_dummy; do
1617   IFS=$ac_save_IFS
1618   test -z "$ac_dir" && ac_dir=.
1619   $as_executable_p "$ac_dir/$ac_word" || continue
1620 ac_cv_prog_ac_ct_CC="gcc"
1621 echo "$as_me:1621: found $ac_dir/$ac_word" >&5
1622 break
1623 done
1624
1625 fi
1626 fi
1627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1628 if test -n "$ac_ct_CC"; then
1629   echo "$as_me:1629: result: $ac_ct_CC" >&5
1630 echo "${ECHO_T}$ac_ct_CC" >&6
1631 else
1632   echo "$as_me:1632: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1634 fi
1635
1636   CC=$ac_ct_CC
1637 else
1638   CC="$ac_cv_prog_CC"
1639 fi
1640
1641 if test -z "$CC"; then
1642   if test -n "$ac_tool_prefix"; then
1643   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1644 set dummy ${ac_tool_prefix}cc; ac_word=$2
1645 echo "$as_me:1645: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_CC+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650   if test -n "$CC"; then
1651   ac_cv_prog_CC="$CC" # Let the user override the test.
1652 else
1653   ac_save_IFS=$IFS; IFS=$ac_path_separator
1654 ac_dummy="$PATH"
1655 for ac_dir in $ac_dummy; do
1656   IFS=$ac_save_IFS
1657   test -z "$ac_dir" && ac_dir=.
1658   $as_executable_p "$ac_dir/$ac_word" || continue
1659 ac_cv_prog_CC="${ac_tool_prefix}cc"
1660 echo "$as_me:1660: found $ac_dir/$ac_word" >&5
1661 break
1662 done
1663
1664 fi
1665 fi
1666 CC=$ac_cv_prog_CC
1667 if test -n "$CC"; then
1668   echo "$as_me:1668: result: $CC" >&5
1669 echo "${ECHO_T}$CC" >&6
1670 else
1671   echo "$as_me:1671: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1673 fi
1674
1675 fi
1676 if test -z "$ac_cv_prog_CC"; then
1677   ac_ct_CC=$CC
1678   # Extract the first word of "cc", so it can be a program name with args.
1679 set dummy cc; ac_word=$2
1680 echo "$as_me:1680: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1683   echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685   if test -n "$ac_ct_CC"; then
1686   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1687 else
1688   ac_save_IFS=$IFS; IFS=$ac_path_separator
1689 ac_dummy="$PATH"
1690 for ac_dir in $ac_dummy; do
1691   IFS=$ac_save_IFS
1692   test -z "$ac_dir" && ac_dir=.
1693   $as_executable_p "$ac_dir/$ac_word" || continue
1694 ac_cv_prog_ac_ct_CC="cc"
1695 echo "$as_me:1695: found $ac_dir/$ac_word" >&5
1696 break
1697 done
1698
1699 fi
1700 fi
1701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1702 if test -n "$ac_ct_CC"; then
1703   echo "$as_me:1703: result: $ac_ct_CC" >&5
1704 echo "${ECHO_T}$ac_ct_CC" >&6
1705 else
1706   echo "$as_me:1706: result: no" >&5
1707 echo "${ECHO_T}no" >&6
1708 fi
1709
1710   CC=$ac_ct_CC
1711 else
1712   CC="$ac_cv_prog_CC"
1713 fi
1714
1715 fi
1716 if test -z "$CC"; then
1717   # Extract the first word of "cc", so it can be a program name with args.
1718 set dummy cc; ac_word=$2
1719 echo "$as_me:1719: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_CC+set}" = set; then
1722   echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724   if test -n "$CC"; then
1725   ac_cv_prog_CC="$CC" # Let the user override the test.
1726 else
1727   ac_prog_rejected=no
1728   ac_save_IFS=$IFS; IFS=$ac_path_separator
1729 ac_dummy="$PATH"
1730 for ac_dir in $ac_dummy; do
1731   IFS=$ac_save_IFS
1732   test -z "$ac_dir" && ac_dir=.
1733   $as_executable_p "$ac_dir/$ac_word" || continue
1734 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1735   ac_prog_rejected=yes
1736   continue
1737 fi
1738 ac_cv_prog_CC="cc"
1739 echo "$as_me:1739: found $ac_dir/$ac_word" >&5
1740 break
1741 done
1742
1743 if test $ac_prog_rejected = yes; then
1744   # We found a bogon in the path, so make sure we never use it.
1745   set dummy $ac_cv_prog_CC
1746   shift
1747   if test $# != 0; then
1748     # We chose a different compiler from the bogus one.
1749     # However, it has the same basename, so the bogon will be chosen
1750     # first if we set CC to just the basename; use the full file name.
1751     shift
1752     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1753     shift
1754     ac_cv_prog_CC="$@"
1755   fi
1756 fi
1757 fi
1758 fi
1759 CC=$ac_cv_prog_CC
1760 if test -n "$CC"; then
1761   echo "$as_me:1761: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1763 else
1764   echo "$as_me:1764: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768 fi
1769 if test -z "$CC"; then
1770   if test -n "$ac_tool_prefix"; then
1771   for ac_prog in cl
1772   do
1773     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1775 echo "$as_me:1775: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_CC+set}" = set; then
1778   echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780   if test -n "$CC"; then
1781   ac_cv_prog_CC="$CC" # Let the user override the test.
1782 else
1783   ac_save_IFS=$IFS; IFS=$ac_path_separator
1784 ac_dummy="$PATH"
1785 for ac_dir in $ac_dummy; do
1786   IFS=$ac_save_IFS
1787   test -z "$ac_dir" && ac_dir=.
1788   $as_executable_p "$ac_dir/$ac_word" || continue
1789 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1790 echo "$as_me:1790: found $ac_dir/$ac_word" >&5
1791 break
1792 done
1793
1794 fi
1795 fi
1796 CC=$ac_cv_prog_CC
1797 if test -n "$CC"; then
1798   echo "$as_me:1798: result: $CC" >&5
1799 echo "${ECHO_T}$CC" >&6
1800 else
1801   echo "$as_me:1801: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1803 fi
1804
1805     test -n "$CC" && break
1806   done
1807 fi
1808 if test -z "$CC"; then
1809   ac_ct_CC=$CC
1810   for ac_prog in cl
1811 do
1812   # Extract the first word of "$ac_prog", so it can be a program name with args.
1813 set dummy $ac_prog; ac_word=$2
1814 echo "$as_me:1814: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1817   echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819   if test -n "$ac_ct_CC"; then
1820   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1821 else
1822   ac_save_IFS=$IFS; IFS=$ac_path_separator
1823 ac_dummy="$PATH"
1824 for ac_dir in $ac_dummy; do
1825   IFS=$ac_save_IFS
1826   test -z "$ac_dir" && ac_dir=.
1827   $as_executable_p "$ac_dir/$ac_word" || continue
1828 ac_cv_prog_ac_ct_CC="$ac_prog"
1829 echo "$as_me:1829: found $ac_dir/$ac_word" >&5
1830 break
1831 done
1832
1833 fi
1834 fi
1835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1836 if test -n "$ac_ct_CC"; then
1837   echo "$as_me:1837: result: $ac_ct_CC" >&5
1838 echo "${ECHO_T}$ac_ct_CC" >&6
1839 else
1840   echo "$as_me:1840: result: no" >&5
1841 echo "${ECHO_T}no" >&6
1842 fi
1843
1844   test -n "$ac_ct_CC" && break
1845 done
1846
1847   CC=$ac_ct_CC
1848 fi
1849
1850 fi
1851
1852 test -z "$CC" && { { echo "$as_me:1852: error: no acceptable cc found in \$PATH" >&5
1853 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1854    { (exit 1); exit 1; }; }
1855
1856 # Provide some information about the compiler.
1857 echo "$as_me:1857:" \
1858      "checking for C compiler version" >&5
1859 ac_compiler=`set X $ac_compile; echo $2`
1860 { (eval echo "$as_me:1860: \"$ac_compiler --version </dev/null >&5\"") >&5
1861   (eval $ac_compiler --version </dev/null >&5) 2>&5
1862   ac_status=$?
1863   echo "$as_me:1863: \$? = $ac_status" >&5
1864   (exit $ac_status); }
1865 { (eval echo "$as_me:1865: \"$ac_compiler -v </dev/null >&5\"") >&5
1866   (eval $ac_compiler -v </dev/null >&5) 2>&5
1867   ac_status=$?
1868   echo "$as_me:1868: \$? = $ac_status" >&5
1869   (exit $ac_status); }
1870 { (eval echo "$as_me:1870: \"$ac_compiler -V </dev/null >&5\"") >&5
1871   (eval $ac_compiler -V </dev/null >&5) 2>&5
1872   ac_status=$?
1873   echo "$as_me:1873: \$? = $ac_status" >&5
1874   (exit $ac_status); }
1875
1876 cat >conftest.$ac_ext <<_ACEOF
1877 #line 1877 "configure"
1878 #include "confdefs.h"
1879
1880 int
1881 main ()
1882 {
1883
1884   ;
1885   return 0;
1886 }
1887 _ACEOF
1888 ac_clean_files_save=$ac_clean_files
1889 ac_clean_files="$ac_clean_files a.out a.exe"
1890 # Try to create an executable without -o first, disregard a.out.
1891 # It will help us diagnose broken compilers, and finding out an intuition
1892 # of exeext.
1893 echo "$as_me:1893: checking for C compiler default output" >&5
1894 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1895 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1896 if { (eval echo "$as_me:1896: \"$ac_link_default\"") >&5
1897   (eval $ac_link_default) 2>&5
1898   ac_status=$?
1899   echo "$as_me:1899: \$? = $ac_status" >&5
1900   (exit $ac_status); }; then
1901   # Find the output, starting from the most likely.  This scheme is
1902 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1903 # resort.
1904 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1905                 ls a.out conftest 2>/dev/null;
1906                 ls a.* conftest.* 2>/dev/null`; do
1907   case $ac_file in
1908     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1909     a.out ) # We found the default executable, but exeext='' is most
1910             # certainly right.
1911             break;;
1912     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1913           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1914           export ac_cv_exeext
1915           break;;
1916     * ) break;;
1917   esac
1918 done
1919 else
1920   echo "$as_me: failed program was:" >&5
1921 cat conftest.$ac_ext >&5
1922 { { echo "$as_me:1922: error: C compiler cannot create executables" >&5
1923 echo "$as_me: error: C compiler cannot create executables" >&2;}
1924    { (exit 77); exit 77; }; }
1925 fi
1926
1927 ac_exeext=$ac_cv_exeext
1928 echo "$as_me:1928: result: $ac_file" >&5
1929 echo "${ECHO_T}$ac_file" >&6
1930
1931 # Check the compiler produces executables we can run.  If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:1933: checking whether the C compiler works" >&5
1934 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1936 # If not cross compiling, check that we can run a simple program.
1937 if test "$cross_compiling" != yes; then
1938   if { ac_try='./$ac_file'
1939   { (eval echo "$as_me:1939: \"$ac_try\"") >&5
1940   (eval $ac_try) 2>&5
1941   ac_status=$?
1942   echo "$as_me:1942: \$? = $ac_status" >&5
1943   (exit $ac_status); }; }; then
1944     cross_compiling=no
1945   else
1946     if test "$cross_compiling" = maybe; then
1947         cross_compiling=yes
1948     else
1949         { { echo "$as_me:1949: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'." >&5
1951 echo "$as_me: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'." >&2;}
1953    { (exit 1); exit 1; }; }
1954     fi
1955   fi
1956 fi
1957 echo "$as_me:1957: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1959
1960 rm -f a.out a.exe conftest$ac_cv_exeext
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run.  If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:1964: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:1966: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1968
1969 echo "$as_me:1969: checking for executable suffix" >&5
1970 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1971 if { (eval echo "$as_me:1971: \"$ac_link\"") >&5
1972   (eval $ac_link) 2>&5
1973   ac_status=$?
1974   echo "$as_me:1974: \$? = $ac_status" >&5
1975   (exit $ac_status); }; then
1976   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1979 # `rm'.
1980 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1981   case $ac_file in
1982     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1983     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1984           export ac_cv_exeext
1985           break;;
1986     * ) break;;
1987   esac
1988 done
1989 else
1990   { { echo "$as_me:1990: error: cannot compute EXEEXT: cannot compile and link" >&5
1991 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1992    { (exit 1); exit 1; }; }
1993 fi
1994
1995 rm -f conftest$ac_cv_exeext
1996 echo "$as_me:1996: result: $ac_cv_exeext" >&5
1997 echo "${ECHO_T}$ac_cv_exeext" >&6
1998
1999 rm -f conftest.$ac_ext
2000 EXEEXT=$ac_cv_exeext
2001 ac_exeext=$EXEEXT
2002 echo "$as_me:2002: checking for object suffix" >&5
2003 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2004 if test "${ac_cv_objext+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   cat >conftest.$ac_ext <<_ACEOF
2008 #line 2008 "configure"
2009 #include "confdefs.h"
2010
2011 int
2012 main ()
2013 {
2014
2015   ;
2016   return 0;
2017 }
2018 _ACEOF
2019 rm -f conftest.o conftest.obj
2020 if { (eval echo "$as_me:2020: \"$ac_compile\"") >&5
2021   (eval $ac_compile) 2>&5
2022   ac_status=$?
2023   echo "$as_me:2023: \$? = $ac_status" >&5
2024   (exit $ac_status); }; then
2025   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2026   case $ac_file in
2027     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2028     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2029        break;;
2030   esac
2031 done
2032 else
2033   echo "$as_me: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2035 { { echo "$as_me:2035: error: cannot compute OBJEXT: cannot compile" >&5
2036 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2037    { (exit 1); exit 1; }; }
2038 fi
2039
2040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2041 fi
2042 echo "$as_me:2042: result: $ac_cv_objext" >&5
2043 echo "${ECHO_T}$ac_cv_objext" >&6
2044 OBJEXT=$ac_cv_objext
2045 ac_objext=$OBJEXT
2046 echo "$as_me:2046: checking whether we are using the GNU C compiler" >&5
2047 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2048 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   cat >conftest.$ac_ext <<_ACEOF
2052 #line 2052 "configure"
2053 #include "confdefs.h"
2054
2055 int
2056 main ()
2057 {
2058 #ifndef __GNUC__
2059        choke me
2060 #endif
2061
2062   ;
2063   return 0;
2064 }
2065 _ACEOF
2066 rm -f conftest.$ac_objext
2067 if { (eval echo "$as_me:2067: \"$ac_compile\"") >&5
2068   (eval $ac_compile) 2>&5
2069   ac_status=$?
2070   echo "$as_me:2070: \$? = $ac_status" >&5
2071   (exit $ac_status); } &&
2072          { ac_try='test -s conftest.$ac_objext'
2073   { (eval echo "$as_me:2073: \"$ac_try\"") >&5
2074   (eval $ac_try) 2>&5
2075   ac_status=$?
2076   echo "$as_me:2076: \$? = $ac_status" >&5
2077   (exit $ac_status); }; }; then
2078   ac_compiler_gnu=yes
2079 else
2080   echo "$as_me: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2082 ac_compiler_gnu=no
2083 fi
2084 rm -f conftest.$ac_objext conftest.$ac_ext
2085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2086
2087 fi
2088 echo "$as_me:2088: result: $ac_cv_c_compiler_gnu" >&5
2089 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2090 GCC=`test $ac_compiler_gnu = yes && echo yes`
2091 ac_test_CFLAGS=${CFLAGS+set}
2092 ac_save_CFLAGS=$CFLAGS
2093 CFLAGS="-g"
2094 echo "$as_me:2094: checking whether $CC accepts -g" >&5
2095 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2096 if test "${ac_cv_prog_cc_g+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   cat >conftest.$ac_ext <<_ACEOF
2100 #line 2100 "configure"
2101 #include "confdefs.h"
2102
2103 int
2104 main ()
2105 {
2106
2107   ;
2108   return 0;
2109 }
2110 _ACEOF
2111 rm -f conftest.$ac_objext
2112 if { (eval echo "$as_me:2112: \"$ac_compile\"") >&5
2113   (eval $ac_compile) 2>&5
2114   ac_status=$?
2115   echo "$as_me:2115: \$? = $ac_status" >&5
2116   (exit $ac_status); } &&
2117          { ac_try='test -s conftest.$ac_objext'
2118   { (eval echo "$as_me:2118: \"$ac_try\"") >&5
2119   (eval $ac_try) 2>&5
2120   ac_status=$?
2121   echo "$as_me:2121: \$? = $ac_status" >&5
2122   (exit $ac_status); }; }; then
2123   ac_cv_prog_cc_g=yes
2124 else
2125   echo "$as_me: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2127 ac_cv_prog_cc_g=no
2128 fi
2129 rm -f conftest.$ac_objext conftest.$ac_ext
2130 fi
2131 echo "$as_me:2131: result: $ac_cv_prog_cc_g" >&5
2132 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2133 if test "$ac_test_CFLAGS" = set; then
2134   CFLAGS=$ac_save_CFLAGS
2135 elif test $ac_cv_prog_cc_g = yes; then
2136   if test "$GCC" = yes; then
2137     CFLAGS="-g -O2"
2138   else
2139     CFLAGS="-g"
2140   fi
2141 else
2142   if test "$GCC" = yes; then
2143     CFLAGS="-O2"
2144   else
2145     CFLAGS=
2146   fi
2147 fi
2148 # Some people use a C++ compiler to compile C.  Since we use `exit',
2149 # in C++ we need to declare it.  In case someone uses the same compiler
2150 # for both compiling C and C++ we need to have the C++ compiler decide
2151 # the declaration of exit, since it's the most demanding environment.
2152 cat >conftest.$ac_ext <<_ACEOF
2153 #ifndef __cplusplus
2154   choke me
2155 #endif
2156 _ACEOF
2157 rm -f conftest.$ac_objext
2158 if { (eval echo "$as_me:2158: \"$ac_compile\"") >&5
2159   (eval $ac_compile) 2>&5
2160   ac_status=$?
2161   echo "$as_me:2161: \$? = $ac_status" >&5
2162   (exit $ac_status); } &&
2163          { ac_try='test -s conftest.$ac_objext'
2164   { (eval echo "$as_me:2164: \"$ac_try\"") >&5
2165   (eval $ac_try) 2>&5
2166   ac_status=$?
2167   echo "$as_me:2167: \$? = $ac_status" >&5
2168   (exit $ac_status); }; }; then
2169   for ac_declaration in \
2170    ''\
2171    '#include <stdlib.h>' \
2172    'extern "C" void std::exit (int) throw (); using std::exit;' \
2173    'extern "C" void std::exit (int); using std::exit;' \
2174    'extern "C" void exit (int) throw ();' \
2175    'extern "C" void exit (int);' \
2176    'void exit (int);'
2177 do
2178   cat >conftest.$ac_ext <<_ACEOF
2179 #line 2179 "configure"
2180 #include "confdefs.h"
2181 #include <stdlib.h>
2182 $ac_declaration
2183 int
2184 main ()
2185 {
2186 exit (42);
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:2192: \"$ac_compile\"") >&5
2193   (eval $ac_compile) 2>&5
2194   ac_status=$?
2195   echo "$as_me:2195: \$? = $ac_status" >&5
2196   (exit $ac_status); } &&
2197          { ac_try='test -s conftest.$ac_objext'
2198   { (eval echo "$as_me:2198: \"$ac_try\"") >&5
2199   (eval $ac_try) 2>&5
2200   ac_status=$?
2201   echo "$as_me:2201: \$? = $ac_status" >&5
2202   (exit $ac_status); }; }; then
2203   :
2204 else
2205   echo "$as_me: failed program was:" >&5
2206 cat conftest.$ac_ext >&5
2207 continue
2208 fi
2209 rm -f conftest.$ac_objext conftest.$ac_ext
2210   cat >conftest.$ac_ext <<_ACEOF
2211 #line 2211 "configure"
2212 #include "confdefs.h"
2213 $ac_declaration
2214 int
2215 main ()
2216 {
2217 exit (42);
2218   ;
2219   return 0;
2220 }
2221 _ACEOF
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:2223: \"$ac_compile\"") >&5
2224   (eval $ac_compile) 2>&5
2225   ac_status=$?
2226   echo "$as_me:2226: \$? = $ac_status" >&5
2227   (exit $ac_status); } &&
2228          { ac_try='test -s conftest.$ac_objext'
2229   { (eval echo "$as_me:2229: \"$ac_try\"") >&5
2230   (eval $ac_try) 2>&5
2231   ac_status=$?
2232   echo "$as_me:2232: \$? = $ac_status" >&5
2233   (exit $ac_status); }; }; then
2234   break
2235 else
2236   echo "$as_me: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2238 fi
2239 rm -f conftest.$ac_objext conftest.$ac_ext
2240 done
2241 rm -f conftest*
2242 if test -n "$ac_declaration"; then
2243   echo '#ifdef __cplusplus' >>confdefs.h
2244   echo $ac_declaration      >>confdefs.h
2245   echo '#endif'             >>confdefs.h
2246 fi
2247
2248 else
2249   echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 fi
2252 rm -f conftest.$ac_objext conftest.$ac_ext
2253 ac_ext=c
2254 ac_cpp='$CPP $CPPFLAGS'
2255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2258
2259 echo "$as_me:2259: checking for POSIXized ISC" >&5
2260 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2261 if test -d /etc/conf/kconfig.d &&
2262    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2263 then
2264   echo "$as_me:2264: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6
2266   ISC=yes # If later tests want to check for ISC.
2267
2268 cat >>confdefs.h <<\EOF
2269 #define _POSIX_SOURCE 1
2270 EOF
2271
2272   if test "$GCC" = yes; then
2273     CC="$CC -posix"
2274   else
2275     CC="$CC -Xp"
2276   fi
2277 else
2278   echo "$as_me:2278: result: no" >&5
2279 echo "${ECHO_T}no" >&6
2280   ISC=
2281 fi
2282
2283 ac_ext=c
2284 ac_cpp='$CPP $CPPFLAGS'
2285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288 echo "$as_me:2288: checking how to run the C preprocessor" >&5
2289 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2290 # On Suns, sometimes $CPP names a directory.
2291 if test -n "$CPP" && test -d "$CPP"; then
2292   CPP=
2293 fi
2294 if test -z "$CPP"; then
2295   if test "${ac_cv_prog_CPP+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298       # Double quotes because CPP needs to be expanded
2299     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2300     do
2301       ac_preproc_ok=false
2302 for ac_c_preproc_warn_flag in '' yes
2303 do
2304   # Use a header file that comes with gcc, so configuring glibc
2305   # with a fresh cross-compiler works.
2306   # On the NeXT, cc -E runs the code through the compiler's parser,
2307   # not just through cpp. "Syntax error" is here to catch this case.
2308   cat >conftest.$ac_ext <<_ACEOF
2309 #line 2309 "configure"
2310 #include "confdefs.h"
2311 #include <assert.h>
2312                      Syntax error
2313 _ACEOF
2314 if { (eval echo "$as_me:2314: \"$ac_cpp conftest.$ac_ext\"") >&5
2315   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2316   ac_status=$?
2317   egrep -v '^ *\+' conftest.er1 >conftest.err
2318   rm -f conftest.er1
2319   cat conftest.err >&5
2320   echo "$as_me:2320: \$? = $ac_status" >&5
2321   (exit $ac_status); } >/dev/null; then
2322   if test -s conftest.err; then
2323     ac_cpp_err=$ac_c_preproc_warn_flag
2324   else
2325     ac_cpp_err=
2326   fi
2327 else
2328   ac_cpp_err=yes
2329 fi
2330 if test -z "$ac_cpp_err"; then
2331   :
2332 else
2333   echo "$as_me: failed program was:" >&5
2334   cat conftest.$ac_ext >&5
2335   # Broken: fails on valid input.
2336 continue
2337 fi
2338 rm -f conftest.err conftest.$ac_ext
2339
2340   # OK, works on sane cases.  Now check whether non-existent headers
2341   # can be detected and how.
2342   cat >conftest.$ac_ext <<_ACEOF
2343 #line 2343 "configure"
2344 #include "confdefs.h"
2345 #include <ac_nonexistent.h>
2346 _ACEOF
2347 if { (eval echo "$as_me:2347: \"$ac_cpp conftest.$ac_ext\"") >&5
2348   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2349   ac_status=$?
2350   egrep -v '^ *\+' conftest.er1 >conftest.err
2351   rm -f conftest.er1
2352   cat conftest.err >&5
2353   echo "$as_me:2353: \$? = $ac_status" >&5
2354   (exit $ac_status); } >/dev/null; then
2355   if test -s conftest.err; then
2356     ac_cpp_err=$ac_c_preproc_warn_flag
2357   else
2358     ac_cpp_err=
2359   fi
2360 else
2361   ac_cpp_err=yes
2362 fi
2363 if test -z "$ac_cpp_err"; then
2364   # Broken: success on invalid input.
2365 continue
2366 else
2367   echo "$as_me: failed program was:" >&5
2368   cat conftest.$ac_ext >&5
2369   # Passes both tests.
2370 ac_preproc_ok=:
2371 break
2372 fi
2373 rm -f conftest.err conftest.$ac_ext
2374
2375 done
2376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2377 rm -f conftest.err conftest.$ac_ext
2378 if $ac_preproc_ok; then
2379   break
2380 fi
2381
2382     done
2383     ac_cv_prog_CPP=$CPP
2384
2385 fi
2386   CPP=$ac_cv_prog_CPP
2387 else
2388   ac_cv_prog_CPP=$CPP
2389 fi
2390 echo "$as_me:2390: result: $CPP" >&5
2391 echo "${ECHO_T}$CPP" >&6
2392 ac_preproc_ok=false
2393 for ac_c_preproc_warn_flag in '' yes
2394 do
2395   # Use a header file that comes with gcc, so configuring glibc
2396   # with a fresh cross-compiler works.
2397   # On the NeXT, cc -E runs the code through the compiler's parser,
2398   # not just through cpp. "Syntax error" is here to catch this case.
2399   cat >conftest.$ac_ext <<_ACEOF
2400 #line 2400 "configure"
2401 #include "confdefs.h"
2402 #include <assert.h>
2403                      Syntax error
2404 _ACEOF
2405 if { (eval echo "$as_me:2405: \"$ac_cpp conftest.$ac_ext\"") >&5
2406   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2407   ac_status=$?
2408   egrep -v '^ *\+' conftest.er1 >conftest.err
2409   rm -f conftest.er1
2410   cat conftest.err >&5
2411   echo "$as_me:2411: \$? = $ac_status" >&5
2412   (exit $ac_status); } >/dev/null; then
2413   if test -s conftest.err; then
2414     ac_cpp_err=$ac_c_preproc_warn_flag
2415   else
2416     ac_cpp_err=
2417   fi
2418 else
2419   ac_cpp_err=yes
2420 fi
2421 if test -z "$ac_cpp_err"; then
2422   :
2423 else
2424   echo "$as_me: failed program was:" >&5
2425   cat conftest.$ac_ext >&5
2426   # Broken: fails on valid input.
2427 continue
2428 fi
2429 rm -f conftest.err conftest.$ac_ext
2430
2431   # OK, works on sane cases.  Now check whether non-existent headers
2432   # can be detected and how.
2433   cat >conftest.$ac_ext <<_ACEOF
2434 #line 2434 "configure"
2435 #include "confdefs.h"
2436 #include <ac_nonexistent.h>
2437 _ACEOF
2438 if { (eval echo "$as_me:2438: \"$ac_cpp conftest.$ac_ext\"") >&5
2439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2440   ac_status=$?
2441   egrep -v '^ *\+' conftest.er1 >conftest.err
2442   rm -f conftest.er1
2443   cat conftest.err >&5
2444   echo "$as_me:2444: \$? = $ac_status" >&5
2445   (exit $ac_status); } >/dev/null; then
2446   if test -s conftest.err; then
2447     ac_cpp_err=$ac_c_preproc_warn_flag
2448   else
2449     ac_cpp_err=
2450   fi
2451 else
2452   ac_cpp_err=yes
2453 fi
2454 if test -z "$ac_cpp_err"; then
2455   # Broken: success on invalid input.
2456 continue
2457 else
2458   echo "$as_me: failed program was:" >&5
2459   cat conftest.$ac_ext >&5
2460   # Passes both tests.
2461 ac_preproc_ok=:
2462 break
2463 fi
2464 rm -f conftest.err conftest.$ac_ext
2465
2466 done
2467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2468 rm -f conftest.err conftest.$ac_ext
2469 if $ac_preproc_ok; then
2470   :
2471 else
2472   { { echo "$as_me:2472: error: C preprocessor \"$CPP\" fails sanity check" >&5
2473 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2474    { (exit 1); exit 1; }; }
2475 fi
2476
2477 ac_ext=c
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482
2483 echo "$as_me:2483: checking for minix/config.h" >&5
2484 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2485 if test "${ac_cv_header_minix_config_h+set}" = set; then
2486   echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488   cat >conftest.$ac_ext <<_ACEOF
2489 #line 2489 "configure"
2490 #include "confdefs.h"
2491 #include <minix/config.h>
2492 _ACEOF
2493 if { (eval echo "$as_me:2493: \"$ac_cpp conftest.$ac_ext\"") >&5
2494   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2495   ac_status=$?
2496   egrep -v '^ *\+' conftest.er1 >conftest.err
2497   rm -f conftest.er1
2498   cat conftest.err >&5
2499   echo "$as_me:2499: \$? = $ac_status" >&5
2500   (exit $ac_status); } >/dev/null; then
2501   if test -s conftest.err; then
2502     ac_cpp_err=$ac_c_preproc_warn_flag
2503   else
2504     ac_cpp_err=
2505   fi
2506 else
2507   ac_cpp_err=yes
2508 fi
2509 if test -z "$ac_cpp_err"; then
2510   ac_cv_header_minix_config_h=yes
2511 else
2512   echo "$as_me: failed program was:" >&5
2513   cat conftest.$ac_ext >&5
2514   ac_cv_header_minix_config_h=no
2515 fi
2516 rm -f conftest.err conftest.$ac_ext
2517 fi
2518 echo "$as_me:2518: result: $ac_cv_header_minix_config_h" >&5
2519 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2520 if test $ac_cv_header_minix_config_h = yes; then
2521   MINIX=yes
2522 else
2523   MINIX=
2524 fi
2525
2526 if test "$MINIX" = yes; then
2527
2528 cat >>confdefs.h <<\EOF
2529 #define _POSIX_SOURCE 1
2530 EOF
2531
2532 cat >>confdefs.h <<\EOF
2533 #define _POSIX_1_SOURCE 2
2534 EOF
2535
2536 cat >>confdefs.h <<\EOF
2537 #define _MINIX 1
2538 EOF
2539
2540 fi
2541
2542 case $host_os in
2543   *cygwin* ) CYGWIN=yes;;
2544          * ) CYGWIN=no;;
2545 esac
2546
2547 case $host_os in
2548   *mingw32* ) MINGW32=yes;;
2549           * ) MINGW32=no;;
2550 esac
2551
2552 # Check whether --enable-largefile or --disable-largefile was given.
2553 if test "${enable_largefile+set}" = set; then
2554   enableval="$enable_largefile"
2555
2556 fi;
2557 if test "$enable_largefile" != no; then
2558
2559   echo "$as_me:2559: checking for special C compiler options needed for large files" >&5
2560 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2561 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2562   echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564   ac_cv_sys_largefile_CC=no
2565      if test "$GCC" != yes; then
2566        ac_save_CC=$CC
2567        while :; do
2568          # IRIX 6.2 and later do not support large files by default,
2569          # so use the C compiler's -n32 option if that helps.
2570          cat >conftest.$ac_ext <<_ACEOF
2571 #line 2571 "configure"
2572 #include "confdefs.h"
2573 #include <sys/types.h>
2574  /* Check that off_t can represent 2**63 - 1 correctly.
2575     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2576     since some C++ compilers masquerading as C compilers
2577     incorrectly reject 9223372036854775807.  */
2578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2579   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2580                        && LARGE_OFF_T % 2147483647 == 1)
2581                       ? 1 : -1];
2582 int
2583 main ()
2584 {
2585
2586   ;
2587   return 0;
2588 }
2589 _ACEOF
2590          rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:2591: \"$ac_compile\"") >&5
2592   (eval $ac_compile) 2>&5
2593   ac_status=$?
2594   echo "$as_me:2594: \$? = $ac_status" >&5
2595   (exit $ac_status); } &&
2596          { ac_try='test -s conftest.$ac_objext'
2597   { (eval echo "$as_me:2597: \"$ac_try\"") >&5
2598   (eval $ac_try) 2>&5
2599   ac_status=$?
2600   echo "$as_me:2600: \$? = $ac_status" >&5
2601   (exit $ac_status); }; }; then
2602   break
2603 else
2604   echo "$as_me: failed program was:" >&5
2605 cat conftest.$ac_ext >&5
2606 fi
2607 rm -f conftest.$ac_objext
2608          CC="$CC -n32"
2609          rm -f conftest.$ac_objext
2610 if { (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   ac_cv_sys_largefile_CC=' -n32'; break
2622 else
2623   echo "$as_me: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2625 fi
2626 rm -f conftest.$ac_objext
2627          break
2628        done
2629        CC=$ac_save_CC
2630        rm -f conftest.$ac_ext
2631     fi
2632 fi
2633 echo "$as_me:2633: result: $ac_cv_sys_largefile_CC" >&5
2634 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2635   if test "$ac_cv_sys_largefile_CC" != no; then
2636     CC=$CC$ac_cv_sys_largefile_CC
2637   fi
2638
2639   echo "$as_me:2639: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2640 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2641 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2642   echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644   while :; do
2645   ac_cv_sys_file_offset_bits=no
2646   cat >conftest.$ac_ext <<_ACEOF
2647 #line 2647 "configure"
2648 #include "confdefs.h"
2649 #include <sys/types.h>
2650  /* Check that off_t can represent 2**63 - 1 correctly.
2651     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2652     since some C++ compilers masquerading as C compilers
2653     incorrectly reject 9223372036854775807.  */
2654 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2655   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2656                        && LARGE_OFF_T % 2147483647 == 1)
2657                       ? 1 : -1];
2658 int
2659 main ()
2660 {
2661
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:2667: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>&5
2669   ac_status=$?
2670   echo "$as_me:2670: \$? = $ac_status" >&5
2671   (exit $ac_status); } &&
2672          { ac_try='test -s conftest.$ac_objext'
2673   { (eval echo "$as_me:2673: \"$ac_try\"") >&5
2674   (eval $ac_try) 2>&5
2675   ac_status=$?
2676   echo "$as_me:2676: \$? = $ac_status" >&5
2677   (exit $ac_status); }; }; then
2678   break
2679 else
2680   echo "$as_me: failed program was:" >&5
2681 cat conftest.$ac_ext >&5
2682 fi
2683 rm -f conftest.$ac_objext conftest.$ac_ext
2684   cat >conftest.$ac_ext <<_ACEOF
2685 #line 2685 "configure"
2686 #include "confdefs.h"
2687 #define _FILE_OFFSET_BITS 64
2688 #include <sys/types.h>
2689  /* Check that off_t can represent 2**63 - 1 correctly.
2690     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2691     since some C++ compilers masquerading as C compilers
2692     incorrectly reject 9223372036854775807.  */
2693 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2694   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2695                        && LARGE_OFF_T % 2147483647 == 1)
2696                       ? 1 : -1];
2697 int
2698 main ()
2699 {
2700
2701   ;
2702   return 0;
2703 }
2704 _ACEOF
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:2706: \"$ac_compile\"") >&5
2707   (eval $ac_compile) 2>&5
2708   ac_status=$?
2709   echo "$as_me:2709: \$? = $ac_status" >&5
2710   (exit $ac_status); } &&
2711          { ac_try='test -s conftest.$ac_objext'
2712   { (eval echo "$as_me:2712: \"$ac_try\"") >&5
2713   (eval $ac_try) 2>&5
2714   ac_status=$?
2715   echo "$as_me:2715: \$? = $ac_status" >&5
2716   (exit $ac_status); }; }; then
2717   ac_cv_sys_file_offset_bits=64; break
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2721 fi
2722 rm -f conftest.$ac_objext conftest.$ac_ext
2723   break
2724 done
2725 fi
2726 echo "$as_me:2726: result: $ac_cv_sys_file_offset_bits" >&5
2727 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2728 if test "$ac_cv_sys_file_offset_bits" != no; then
2729
2730 cat >>confdefs.h <<EOF
2731 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2732 EOF
2733
2734 fi
2735 rm -f conftest*
2736   echo "$as_me:2736: checking for _LARGE_FILES value needed for large files" >&5
2737 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2738 if test "${ac_cv_sys_large_files+set}" = set; then
2739   echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741   while :; do
2742   ac_cv_sys_large_files=no
2743   cat >conftest.$ac_ext <<_ACEOF
2744 #line 2744 "configure"
2745 #include "confdefs.h"
2746 #include <sys/types.h>
2747  /* Check that off_t can represent 2**63 - 1 correctly.
2748     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2749     since some C++ compilers masquerading as C compilers
2750     incorrectly reject 9223372036854775807.  */
2751 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2752   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2753                        && LARGE_OFF_T % 2147483647 == 1)
2754                       ? 1 : -1];
2755 int
2756 main ()
2757 {
2758
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:2764: \"$ac_compile\"") >&5
2765   (eval $ac_compile) 2>&5
2766   ac_status=$?
2767   echo "$as_me:2767: \$? = $ac_status" >&5
2768   (exit $ac_status); } &&
2769          { ac_try='test -s conftest.$ac_objext'
2770   { (eval echo "$as_me:2770: \"$ac_try\"") >&5
2771   (eval $ac_try) 2>&5
2772   ac_status=$?
2773   echo "$as_me:2773: \$? = $ac_status" >&5
2774   (exit $ac_status); }; }; then
2775   break
2776 else
2777   echo "$as_me: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2779 fi
2780 rm -f conftest.$ac_objext conftest.$ac_ext
2781   cat >conftest.$ac_ext <<_ACEOF
2782 #line 2782 "configure"
2783 #include "confdefs.h"
2784 #define _LARGE_FILES 1
2785 #include <sys/types.h>
2786  /* Check that off_t can represent 2**63 - 1 correctly.
2787     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2788     since some C++ compilers masquerading as C compilers
2789     incorrectly reject 9223372036854775807.  */
2790 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2791   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2792                        && LARGE_OFF_T % 2147483647 == 1)
2793                       ? 1 : -1];
2794 int
2795 main ()
2796 {
2797
2798   ;
2799   return 0;
2800 }
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:2803: \"$ac_compile\"") >&5
2804   (eval $ac_compile) 2>&5
2805   ac_status=$?
2806   echo "$as_me:2806: \$? = $ac_status" >&5
2807   (exit $ac_status); } &&
2808          { ac_try='test -s conftest.$ac_objext'
2809   { (eval echo "$as_me:2809: \"$ac_try\"") >&5
2810   (eval $ac_try) 2>&5
2811   ac_status=$?
2812   echo "$as_me:2812: \$? = $ac_status" >&5
2813   (exit $ac_status); }; }; then
2814   ac_cv_sys_large_files=1; break
2815 else
2816   echo "$as_me: failed program was:" >&5
2817 cat conftest.$ac_ext >&5
2818 fi
2819 rm -f conftest.$ac_objext conftest.$ac_ext
2820   break
2821 done
2822 fi
2823 echo "$as_me:2823: result: $ac_cv_sys_large_files" >&5
2824 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
2825 if test "$ac_cv_sys_large_files" != no; then
2826
2827 cat >>confdefs.h <<EOF
2828 #define _LARGE_FILES $ac_cv_sys_large_files
2829 EOF
2830
2831 fi
2832 rm -f conftest*
2833 fi
2834
2835 SIGNAMES_H=lsignames.h
2836
2837 if test "x$cross_compiling" = "xyes"; then
2838     case "${host}" in
2839     *-cygwin*)
2840         cross_cache=${srcdir}/cross-build/cygwin32.cache
2841         SIGNAMES_H='$(srcdir)/cross-build/win32sig.h'
2842         ;;
2843     i[3456]86-*-beos*)
2844         cross_cache=${srcdir}/cross-build/x86-beos.cache
2845         SIGNAMES_H='${srcdir}/cross-build/beos-sig.h'
2846         ;;
2847     *)  echo "configure: cross-compiling for $host is not supported" >&2
2848         ;;
2849     esac
2850     if test -n "${cross_cache}" && test -r "${cross_cache}"; then
2851         echo "loading cross-build cache file ${cross_cache}"
2852         . ${cross_cache}
2853     fi
2854     unset cross_cache
2855 fi
2856
2857 if test -z "$CC_FOR_BUILD"; then
2858     if test "x$cross_compiling" = "xno"; then
2859         CC_FOR_BUILD='$(CC)'
2860     else
2861         CC_FOR_BUILD=gcc
2862     fi
2863 fi
2864
2865 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
2866
2867 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
2868
2869 if test "$opt_profiling" = "yes"; then
2870         PROFILE_FLAGS=-pg
2871         case "$host_os" in
2872         solaris2*)      ;;
2873         *)              opt_static_link=yes ;;
2874         esac
2875         DEBUG= MALLOC_DEBUG=
2876 fi
2877
2878 if test "$opt_static_link" = yes; then
2879         # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
2880         if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
2881                 STATIC_LD="-static"
2882                 case "$host_os" in
2883                 solaris2*)      ;;
2884                 *)              LDFLAGS="$LDFLAGS -static" ;;   # XXX experimental
2885                 esac
2886         fi
2887 fi
2888
2889 test -z "$CPPFLAGS_FOR_BUILD" && CPPFLAGS_FOR_BUILD="$CPPFLAGS"
2890 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
2891
2892 if test $ac_cv_c_compiler_gnu = yes; then
2893     echo "$as_me:2893: checking whether $CC needs -traditional" >&5
2894 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2895 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2896   echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898     ac_pattern="Autoconf.*'x'"
2899   cat >conftest.$ac_ext <<_ACEOF
2900 #line 2900 "configure"
2901 #include "confdefs.h"
2902 #include <sgtty.h>
2903 Autoconf TIOCGETP
2904 _ACEOF
2905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2906   egrep "$ac_pattern" >/dev/null 2>&1; then
2907   ac_cv_prog_gcc_traditional=yes
2908 else
2909   ac_cv_prog_gcc_traditional=no
2910 fi
2911 rm -f conftest*
2912
2913   if test $ac_cv_prog_gcc_traditional = no; then
2914     cat >conftest.$ac_ext <<_ACEOF
2915 #line 2915 "configure"
2916 #include "confdefs.h"
2917 #include <termio.h>
2918 Autoconf TCGETA
2919 _ACEOF
2920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2921   egrep "$ac_pattern" >/dev/null 2>&1; then
2922   ac_cv_prog_gcc_traditional=yes
2923 fi
2924 rm -f conftest*
2925
2926   fi
2927 fi
2928 echo "$as_me:2928: result: $ac_cv_prog_gcc_traditional" >&5
2929 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2930   if test $ac_cv_prog_gcc_traditional = yes; then
2931     CC="$CC -traditional"
2932   fi
2933 fi
2934
2935 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
2936 then
2937         # If the user specified --with-installed-readline=PREFIX and PREFIX
2938         # is not `yes', set ac_cv_rl_prefix to PREFIX
2939         test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
2940
2941 if test "X$bash_cv_termcap_lib" = "X"; then
2942 _bash_needmsg=yes
2943 else
2944 echo "$as_me:2944: checking which library has the termcap functions" >&5
2945 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
2946 _bash_needmsg=
2947 fi
2948 if test "${bash_cv_termcap_lib+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   echo "$as_me:2951: checking for tgetent in -ltermcap" >&5
2952 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
2953 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
2954   echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956   ac_check_lib_save_LIBS=$LIBS
2957 LIBS="-ltermcap  $LIBS"
2958 cat >conftest.$ac_ext <<_ACEOF
2959 #line 2959 "configure"
2960 #include "confdefs.h"
2961
2962 /* Override any gcc2 internal prototype to avoid an error.  */
2963 #ifdef __cplusplus
2964 extern "C"
2965 #endif
2966 /* We use char because int might match the return type of a gcc2
2967    builtin and then its argument prototype would still apply.  */
2968 char tgetent ();
2969 int
2970 main ()
2971 {
2972 tgetent ();
2973   ;
2974   return 0;
2975 }
2976 _ACEOF
2977 rm -f conftest.$ac_objext conftest$ac_exeext
2978 if { (eval echo "$as_me:2978: \"$ac_link\"") >&5
2979   (eval $ac_link) 2>&5
2980   ac_status=$?
2981   echo "$as_me:2981: \$? = $ac_status" >&5
2982   (exit $ac_status); } &&
2983          { ac_try='test -s conftest$ac_exeext'
2984   { (eval echo "$as_me:2984: \"$ac_try\"") >&5
2985   (eval $ac_try) 2>&5
2986   ac_status=$?
2987   echo "$as_me:2987: \$? = $ac_status" >&5
2988   (exit $ac_status); }; }; then
2989   ac_cv_lib_termcap_tgetent=yes
2990 else
2991   echo "$as_me: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2993 ac_cv_lib_termcap_tgetent=no
2994 fi
2995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2996 LIBS=$ac_check_lib_save_LIBS
2997 fi
2998 echo "$as_me:2998: result: $ac_cv_lib_termcap_tgetent" >&5
2999 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
3000 if test $ac_cv_lib_termcap_tgetent = yes; then
3001   bash_cv_termcap_lib=libtermcap
3002 else
3003   echo "$as_me:3003: checking for tgetent in -ltinfo" >&5
3004 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
3005 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   ac_check_lib_save_LIBS=$LIBS
3009 LIBS="-ltinfo  $LIBS"
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #line 3011 "configure"
3012 #include "confdefs.h"
3013
3014 /* Override any gcc2 internal prototype to avoid an error.  */
3015 #ifdef __cplusplus
3016 extern "C"
3017 #endif
3018 /* We use char because int might match the return type of a gcc2
3019    builtin and then its argument prototype would still apply.  */
3020 char tgetent ();
3021 int
3022 main ()
3023 {
3024 tgetent ();
3025   ;
3026   return 0;
3027 }
3028 _ACEOF
3029 rm -f conftest.$ac_objext conftest$ac_exeext
3030 if { (eval echo "$as_me:3030: \"$ac_link\"") >&5
3031   (eval $ac_link) 2>&5
3032   ac_status=$?
3033   echo "$as_me:3033: \$? = $ac_status" >&5
3034   (exit $ac_status); } &&
3035          { ac_try='test -s conftest$ac_exeext'
3036   { (eval echo "$as_me:3036: \"$ac_try\"") >&5
3037   (eval $ac_try) 2>&5
3038   ac_status=$?
3039   echo "$as_me:3039: \$? = $ac_status" >&5
3040   (exit $ac_status); }; }; then
3041   ac_cv_lib_tinfo_tgetent=yes
3042 else
3043   echo "$as_me: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3045 ac_cv_lib_tinfo_tgetent=no
3046 fi
3047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3048 LIBS=$ac_check_lib_save_LIBS
3049 fi
3050 echo "$as_me:3050: result: $ac_cv_lib_tinfo_tgetent" >&5
3051 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
3052 if test $ac_cv_lib_tinfo_tgetent = yes; then
3053   bash_cv_termcap_lib=libtinfo
3054 else
3055   echo "$as_me:3055: checking for tgetent in -lcurses" >&5
3056 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
3057 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
3058   echo $ECHO_N "(cached) $ECHO_C" >&6
3059 else
3060   ac_check_lib_save_LIBS=$LIBS
3061 LIBS="-lcurses  $LIBS"
3062 cat >conftest.$ac_ext <<_ACEOF
3063 #line 3063 "configure"
3064 #include "confdefs.h"
3065
3066 /* Override any gcc2 internal prototype to avoid an error.  */
3067 #ifdef __cplusplus
3068 extern "C"
3069 #endif
3070 /* We use char because int might match the return type of a gcc2
3071    builtin and then its argument prototype would still apply.  */
3072 char tgetent ();
3073 int
3074 main ()
3075 {
3076 tgetent ();
3077   ;
3078   return 0;
3079 }
3080 _ACEOF
3081 rm -f conftest.$ac_objext conftest$ac_exeext
3082 if { (eval echo "$as_me:3082: \"$ac_link\"") >&5
3083   (eval $ac_link) 2>&5
3084   ac_status=$?
3085   echo "$as_me:3085: \$? = $ac_status" >&5
3086   (exit $ac_status); } &&
3087          { ac_try='test -s conftest$ac_exeext'
3088   { (eval echo "$as_me:3088: \"$ac_try\"") >&5
3089   (eval $ac_try) 2>&5
3090   ac_status=$?
3091   echo "$as_me:3091: \$? = $ac_status" >&5
3092   (exit $ac_status); }; }; then
3093   ac_cv_lib_curses_tgetent=yes
3094 else
3095   echo "$as_me: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3097 ac_cv_lib_curses_tgetent=no
3098 fi
3099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3100 LIBS=$ac_check_lib_save_LIBS
3101 fi
3102 echo "$as_me:3102: result: $ac_cv_lib_curses_tgetent" >&5
3103 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
3104 if test $ac_cv_lib_curses_tgetent = yes; then
3105   bash_cv_termcap_lib=libcurses
3106 else
3107   echo "$as_me:3107: checking for tgetent in -lncurses" >&5
3108 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
3109 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112   ac_check_lib_save_LIBS=$LIBS
3113 LIBS="-lncurses  $LIBS"
3114 cat >conftest.$ac_ext <<_ACEOF
3115 #line 3115 "configure"
3116 #include "confdefs.h"
3117
3118 /* Override any gcc2 internal prototype to avoid an error.  */
3119 #ifdef __cplusplus
3120 extern "C"
3121 #endif
3122 /* We use char because int might match the return type of a gcc2
3123    builtin and then its argument prototype would still apply.  */
3124 char tgetent ();
3125 int
3126 main ()
3127 {
3128 tgetent ();
3129   ;
3130   return 0;
3131 }
3132 _ACEOF
3133 rm -f conftest.$ac_objext conftest$ac_exeext
3134 if { (eval echo "$as_me:3134: \"$ac_link\"") >&5
3135   (eval $ac_link) 2>&5
3136   ac_status=$?
3137   echo "$as_me:3137: \$? = $ac_status" >&5
3138   (exit $ac_status); } &&
3139          { ac_try='test -s conftest$ac_exeext'
3140   { (eval echo "$as_me:3140: \"$ac_try\"") >&5
3141   (eval $ac_try) 2>&5
3142   ac_status=$?
3143   echo "$as_me:3143: \$? = $ac_status" >&5
3144   (exit $ac_status); }; }; then
3145   ac_cv_lib_ncurses_tgetent=yes
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 cat conftest.$ac_ext >&5
3149 ac_cv_lib_ncurses_tgetent=no
3150 fi
3151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3152 LIBS=$ac_check_lib_save_LIBS
3153 fi
3154 echo "$as_me:3154: result: $ac_cv_lib_ncurses_tgetent" >&5
3155 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
3156 if test $ac_cv_lib_ncurses_tgetent = yes; then
3157   bash_cv_termcap_lib=libncurses
3158 else
3159   bash_cv_termcap_lib=gnutermcap
3160 fi
3161
3162 fi
3163
3164 fi
3165
3166 fi
3167
3168 fi
3169
3170 if test "X$_bash_needmsg" = "Xyes"; then
3171 echo "$as_me:3171: checking which library has the termcap functions" >&5
3172 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
3173 fi
3174 echo "$as_me:3174: result: using $bash_cv_termcap_lib" >&5
3175 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
3176 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
3177 LDFLAGS="$LDFLAGS -L./lib/termcap"
3178 TERMCAP_LIB="./lib/termcap/libtermcap.a"
3179 TERMCAP_DEP="./lib/termcap/libtermcap.a"
3180 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
3181 TERMCAP_LIB=-ltermcap
3182 TERMCAP_DEP=
3183 elif test $bash_cv_termcap_lib = libtinfo; then
3184 TERMCAP_LIB=-ltinfo
3185 TERMCAP_DEP=
3186 elif test $bash_cv_termcap_lib = libncurses; then
3187 TERMCAP_LIB=-lncurses
3188 TERMCAP_DEP=
3189 else
3190 TERMCAP_LIB=-lcurses
3191 TERMCAP_DEP=
3192 fi
3193
3194 echo "$as_me:3194: checking version of installed readline library" >&5
3195 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
3196
3197 # What a pain in the ass this is.
3198
3199 # save cpp and ld options
3200 _save_CFLAGS="$CFLAGS"
3201 _save_LDFLAGS="$LDFLAGS"
3202 _save_LIBS="$LIBS"
3203
3204 # Don't set ac_cv_rl_prefix if the caller has already assigned a value.  This
3205 # allows the caller to do something like $_rl_prefix=$withval if the user
3206 # specifies --with-installed-readline=PREFIX as an argument to configure
3207
3208 if test -z "$ac_cv_rl_prefix"; then
3209 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
3210 fi
3211
3212 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
3213 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
3214
3215 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
3216 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
3217 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
3218
3219 if test "$cross_compiling" = yes; then
3220   ac_cv_rl_version='4.2'
3221 else
3222   cat >conftest.$ac_ext <<_ACEOF
3223 #line 3223 "configure"
3224 #include "confdefs.h"
3225
3226 #include <stdio.h>
3227 #include <readline/readline.h>
3228
3229 main()
3230 {
3231         FILE *fp;
3232         fp = fopen("conftest.rlv", "w");
3233         if (fp == 0) exit(1);
3234         fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
3235         fclose(fp);
3236         exit(0);
3237 }
3238
3239 _ACEOF
3240 rm -f conftest$ac_exeext
3241 if { (eval echo "$as_me:3241: \"$ac_link\"") >&5
3242   (eval $ac_link) 2>&5
3243   ac_status=$?
3244   echo "$as_me:3244: \$? = $ac_status" >&5
3245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3246   { (eval echo "$as_me:3246: \"$ac_try\"") >&5
3247   (eval $ac_try) 2>&5
3248   ac_status=$?
3249   echo "$as_me:3249: \$? = $ac_status" >&5
3250   (exit $ac_status); }; }; then
3251   ac_cv_rl_version=`cat conftest.rlv`
3252 else
3253   echo "$as_me: program exited with status $ac_status" >&5
3254 echo "$as_me: failed program was:" >&5
3255 cat conftest.$ac_ext >&5
3256 ac_cv_rl_version='0.0'
3257 fi
3258 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3259 fi
3260
3261 CFLAGS="$_save_CFLAGS"
3262 LDFLAGS="$_save_LDFLAGS"
3263 LIBS="$_save_LIBS"
3264
3265 RL_MAJOR=0
3266 RL_MINOR=0
3267
3268 # (
3269 case "$ac_cv_rl_version" in
3270 2*|3*|4*|5*|6*|7*|8*|9*)
3271         RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
3272         RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
3273         ;;
3274 esac
3275
3276 # (((
3277 case $RL_MAJOR in
3278 [0-9][0-9])     _RL_MAJOR=$RL_MAJOR ;;
3279 [0-9])  _RL_MAJOR=0$RL_MAJOR ;;
3280 *)              _RL_MAJOR=00 ;;
3281 esac
3282
3283 # (((
3284 case $RL_MINOR in
3285 [0-9][0-9])     _RL_MINOR=$RL_MINOR ;;
3286 [0-9])  _RL_MINOR=0$RL_MINOR ;;
3287 *)              _RL_MINOR=00 ;;
3288 esac
3289
3290 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
3291
3292 # Readline versions greater than 4.2 have these defines in readline.h
3293
3294 if test $ac_cv_rl_version = '0.0' ; then
3295         { echo "$as_me:3295: WARNING: Could not test version of installed readline library." >&5
3296 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
3297 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
3298         # set these for use by the caller
3299         RL_PREFIX=$ac_cv_rl_prefix
3300         RL_LIBDIR=$ac_cv_rl_libdir
3301         RL_INCLUDEDIR=$ac_cv_rl_includedir
3302         echo "$as_me:3302: result: $ac_cv_rl_version" >&5
3303 echo "${ECHO_T}$ac_cv_rl_version" >&6
3304 else
3305
3306 cat >>confdefs.h <<EOF
3307 #define RL_READLINE_VERSION $RL_VERSION
3308 EOF
3309
3310 cat >>confdefs.h <<EOF
3311 #define RL_VERSION_MAJOR $RL_MAJOR
3312 EOF
3313
3314 cat >>confdefs.h <<EOF
3315 #define RL_VERSION_MINOR $RL_MINOR
3316 EOF
3317
3318 # set these for use by the caller
3319 RL_PREFIX=$ac_cv_rl_prefix
3320 RL_LIBDIR=$ac_cv_rl_libdir
3321 RL_INCLUDEDIR=$ac_cv_rl_includedir
3322
3323 echo "$as_me:3323: result: $ac_cv_rl_version" >&5
3324 echo "${ECHO_T}$ac_cv_rl_version" >&6
3325
3326 fi
3327
3328         case "$ac_cv_rl_version" in
3329         4.[3-9]*|5*|6*|7*|8*|9*)        ;;
3330         *)      opt_with_installed_readline=no
3331                 { echo "$as_me:3331: WARNING: installed readline library is too old to be linked with bash" >&5
3332 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
3333                 { echo "$as_me:3333: WARNING: using private bash version" >&5
3334 echo "$as_me: WARNING: using private bash version" >&2;}
3335                 ;;
3336         esac
3337 fi
3338
3339 if test $opt_readline = yes; then
3340         cat >>confdefs.h <<\EOF
3341 #define READLINE 1
3342 EOF
3343
3344         READLINE_LIB=-lreadline
3345         if test "$opt_with_installed_readline" != "no" ; then
3346                 case "$RL_INCLUDEDIR" in
3347                 /usr/include)   ;;
3348                 *)              RL_INCLUDE='-I${RL_INCLUDEDIR}'
3349                 esac
3350                 READLINE_DEP=
3351         else
3352                 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3353                 READLINE_DEP='$(READLINE_LIBRARY)'
3354         fi
3355 else
3356         RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3357         READLINE_LIB= READLINE_DEP=
3358 fi
3359 if test $opt_history = yes || test $opt_bang_history = yes; then
3360         if test $opt_history = yes; then
3361                 cat >>confdefs.h <<\EOF
3362 #define HISTORY 1
3363 EOF
3364
3365         fi
3366         if test $opt_bang_history = yes; then
3367                 cat >>confdefs.h <<\EOF
3368 #define BANG_HISTORY 1
3369 EOF
3370
3371         fi
3372         HISTORY_LIB=-lhistory
3373         if test "$opt_with_installed_readline" != "no"; then
3374                 HIST_LIBDIR=$RL_LIBDIR
3375                 HISTORY_DEP=
3376                 case "$RL_INCLUDEDIR" in
3377                 /usr/include)   ;;
3378                 *)              RL_INCLUDE='-I${RL_INCLUDEDIR}'
3379                 esac
3380         else
3381                 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3382                 HISTORY_DEP='$(HISTORY_LIBRARY)'
3383         fi
3384 else
3385         HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3386         HISTORY_LIB= HISTORY_DEP=
3387 fi
3388
3389 # Find a good install program.  We prefer a C program (faster),
3390 # so one script is as good as another.  But avoid the broken or
3391 # incompatible versions:
3392 # SysV /etc/install, /usr/sbin/install
3393 # SunOS /usr/etc/install
3394 # IRIX /sbin/install
3395 # AIX /bin/install
3396 # AmigaOS /C/install, which installs bootblocks on floppy discs
3397 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3398 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3399 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3400 # ./install, which can be erroneously created by make from ./install.sh.
3401 echo "$as_me:3401: checking for a BSD compatible install" >&5
3402 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3403 if test -z "$INSTALL"; then
3404 if test "${ac_cv_path_install+set}" = set; then
3405   echo $ECHO_N "(cached) $ECHO_C" >&6
3406 else
3407     ac_save_IFS=$IFS; IFS=$ac_path_separator
3408   for ac_dir in $PATH; do
3409     IFS=$ac_save_IFS
3410     # Account for people who put trailing slashes in PATH elements.
3411     case $ac_dir/ in
3412     / | ./ | .// | /cC/* \
3413     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3414     | /usr/ucb/* ) ;;
3415     *)
3416       # OSF1 and SCO ODT 3.0 have their own names for install.
3417       # Don't use installbsd from OSF since it installs stuff as root
3418       # by default.
3419       for ac_prog in ginstall scoinst install; do
3420         if $as_executable_p "$ac_dir/$ac_prog"; then
3421           if test $ac_prog = install &&
3422             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3423             # AIX install.  It has an incompatible calling convention.
3424             :
3425           elif test $ac_prog = install &&
3426             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3427             # program-specific install script used by HP pwplus--don't use.
3428             :
3429           else
3430             ac_cv_path_install="$ac_dir/$ac_prog -c"
3431             break 2
3432           fi
3433         fi
3434       done
3435       ;;
3436     esac
3437   done
3438
3439 fi
3440   if test "${ac_cv_path_install+set}" = set; then
3441     INSTALL=$ac_cv_path_install
3442   else
3443     # As a last resort, use the slow shell script.  We don't cache a
3444     # path for INSTALL within a source directory, because that will
3445     # break other packages using the cache if that directory is
3446     # removed, or if the path is relative.
3447     INSTALL=$ac_install_sh
3448   fi
3449 fi
3450 echo "$as_me:3450: result: $INSTALL" >&5
3451 echo "${ECHO_T}$INSTALL" >&6
3452
3453 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3454 # It thinks the first close brace ends the variable substitution.
3455 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3456
3457 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3458
3459 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3460
3461 # Extract the first word of "ar", so it can be a program name with args.
3462 set dummy ar; ac_word=$2
3463 echo "$as_me:3463: checking for $ac_word" >&5
3464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3465 if test "${ac_cv_prog_AR+set}" = set; then
3466   echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468   if test -n "$AR"; then
3469   ac_cv_prog_AR="$AR" # Let the user override the test.
3470 else
3471   ac_save_IFS=$IFS; IFS=$ac_path_separator
3472 ac_dummy="$PATH"
3473 for ac_dir in $ac_dummy; do
3474   IFS=$ac_save_IFS
3475   test -z "$ac_dir" && ac_dir=.
3476   $as_executable_p "$ac_dir/$ac_word" || continue
3477 ac_cv_prog_AR=""
3478 echo "$as_me:3478: found $ac_dir/$ac_word" >&5
3479 break
3480 done
3481
3482   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3483 fi
3484 fi
3485 AR=$ac_cv_prog_AR
3486 if test -n "$AR"; then
3487   echo "$as_me:3487: result: $AR" >&5
3488 echo "${ECHO_T}$AR" >&6
3489 else
3490   echo "$as_me:3490: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3492 fi
3493
3494 test -n "$ARFLAGS" || ARFLAGS="cr"
3495 if test -n "$ac_tool_prefix"; then
3496   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3497 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3498 echo "$as_me:3498: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_prog_RANLIB+set}" = set; then
3501   echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503   if test -n "$RANLIB"; then
3504   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3505 else
3506   ac_save_IFS=$IFS; IFS=$ac_path_separator
3507 ac_dummy="$PATH"
3508 for ac_dir in $ac_dummy; do
3509   IFS=$ac_save_IFS
3510   test -z "$ac_dir" && ac_dir=.
3511   $as_executable_p "$ac_dir/$ac_word" || continue
3512 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3513 echo "$as_me:3513: found $ac_dir/$ac_word" >&5
3514 break
3515 done
3516
3517 fi
3518 fi
3519 RANLIB=$ac_cv_prog_RANLIB
3520 if test -n "$RANLIB"; then
3521   echo "$as_me:3521: result: $RANLIB" >&5
3522 echo "${ECHO_T}$RANLIB" >&6
3523 else
3524   echo "$as_me:3524: result: no" >&5
3525 echo "${ECHO_T}no" >&6
3526 fi
3527
3528 fi
3529 if test -z "$ac_cv_prog_RANLIB"; then
3530   ac_ct_RANLIB=$RANLIB
3531   # Extract the first word of "ranlib", so it can be a program name with args.
3532 set dummy ranlib; ac_word=$2
3533 echo "$as_me:3533: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3535 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3536   echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538   if test -n "$ac_ct_RANLIB"; then
3539   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3540 else
3541   ac_save_IFS=$IFS; IFS=$ac_path_separator
3542 ac_dummy="$PATH"
3543 for ac_dir in $ac_dummy; do
3544   IFS=$ac_save_IFS
3545   test -z "$ac_dir" && ac_dir=.
3546   $as_executable_p "$ac_dir/$ac_word" || continue
3547 ac_cv_prog_ac_ct_RANLIB="ranlib"
3548 echo "$as_me:3548: found $ac_dir/$ac_word" >&5
3549 break
3550 done
3551
3552   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3553 fi
3554 fi
3555 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3556 if test -n "$ac_ct_RANLIB"; then
3557   echo "$as_me:3557: result: $ac_ct_RANLIB" >&5
3558 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3559 else
3560   echo "$as_me:3560: result: no" >&5
3561 echo "${ECHO_T}no" >&6
3562 fi
3563
3564   RANLIB=$ac_ct_RANLIB
3565 else
3566   RANLIB="$ac_cv_prog_RANLIB"
3567 fi
3568
3569 for ac_prog in 'bison -y' byacc
3570 do
3571   # Extract the first word of "$ac_prog", so it can be a program name with args.
3572 set dummy $ac_prog; ac_word=$2
3573 echo "$as_me:3573: checking for $ac_word" >&5
3574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3575 if test "${ac_cv_prog_YACC+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   if test -n "$YACC"; then
3579   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3580 else
3581   ac_save_IFS=$IFS; IFS=$ac_path_separator
3582 ac_dummy="$PATH"
3583 for ac_dir in $ac_dummy; do
3584   IFS=$ac_save_IFS
3585   test -z "$ac_dir" && ac_dir=.
3586   $as_executable_p "$ac_dir/$ac_word" || continue
3587 ac_cv_prog_YACC="$ac_prog"
3588 echo "$as_me:3588: found $ac_dir/$ac_word" >&5
3589 break
3590 done
3591
3592 fi
3593 fi
3594 YACC=$ac_cv_prog_YACC
3595 if test -n "$YACC"; then
3596   echo "$as_me:3596: result: $YACC" >&5
3597 echo "${ECHO_T}$YACC" >&6
3598 else
3599   echo "$as_me:3599: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3601 fi
3602
3603   test -n "$YACC" && break
3604 done
3605 test -n "$YACC" || YACC="yacc"
3606
3607 echo "$as_me:3607: checking whether ${MAKE-make} sets \${MAKE}" >&5
3608 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3609 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3610 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3611   echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613   cat >conftest.make <<\EOF
3614 all:
3615         @echo 'ac_maketemp="${MAKE}"'
3616 EOF
3617 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3618 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3619 if test -n "$ac_maketemp"; then
3620   eval ac_cv_prog_make_${ac_make}_set=yes
3621 else
3622   eval ac_cv_prog_make_${ac_make}_set=no
3623 fi
3624 rm -f conftest.make
3625 fi
3626 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3627   echo "$as_me:3627: result: yes" >&5
3628 echo "${ECHO_T}yes" >&6
3629   SET_MAKE=
3630 else
3631   echo "$as_me:3631: result: no" >&5
3632 echo "${ECHO_T}no" >&6
3633   SET_MAKE="MAKE=${MAKE-make}"
3634 fi
3635
3636 case "$host_os" in
3637 opennt*|interix*)       MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
3638 *)                      MAKE_SHELL=/bin/sh ;;
3639 esac
3640
3641 cat >>confdefs.h <<\EOF
3642 #define _GNU_SOURCE 1
3643 EOF
3644
3645 echo "$as_me:3645: checking for $CC option to accept ANSI C" >&5
3646 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3647 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3648   echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650   ac_cv_prog_cc_stdc=no
3651 ac_save_CC=$CC
3652 cat >conftest.$ac_ext <<_ACEOF
3653 #line 3653 "configure"
3654 #include "confdefs.h"
3655 #include <stdarg.h>
3656 #include <stdio.h>
3657 #include <sys/types.h>
3658 #include <sys/stat.h>
3659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3660 struct buf { int x; };
3661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3662 static char *e (p, i)
3663      char **p;
3664      int i;
3665 {
3666   return p[i];
3667 }
3668 static char *f (char * (*g) (char **, int), char **p, ...)
3669 {
3670   char *s;
3671   va_list v;
3672   va_start (v,p);
3673   s = g (p, va_arg (v,int));
3674   va_end (v);
3675   return s;
3676 }
3677 int test (int i, double x);
3678 struct s1 {int (*f) (int a);};
3679 struct s2 {int (*f) (double a);};
3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3681 int argc;
3682 char **argv;
3683 int
3684 main ()
3685 {
3686 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3687   ;
3688   return 0;
3689 }
3690 _ACEOF
3691 # Don't try gcc -ansi; that turns off useful extensions and
3692 # breaks some systems' header files.
3693 # AIX                   -qlanglvl=ansi
3694 # Ultrix and OSF/1      -std1
3695 # HP-UX 10.20 and later -Ae
3696 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3697 # SVR4                  -Xc -D__EXTENSIONS__
3698 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3699 do
3700   CC="$ac_save_CC $ac_arg"
3701   rm -f conftest.$ac_objext
3702 if { (eval echo "$as_me:3702: \"$ac_compile\"") >&5
3703   (eval $ac_compile) 2>&5
3704   ac_status=$?
3705   echo "$as_me:3705: \$? = $ac_status" >&5
3706   (exit $ac_status); } &&
3707          { ac_try='test -s conftest.$ac_objext'
3708   { (eval echo "$as_me:3708: \"$ac_try\"") >&5
3709   (eval $ac_try) 2>&5
3710   ac_status=$?
3711   echo "$as_me:3711: \$? = $ac_status" >&5
3712   (exit $ac_status); }; }; then
3713   ac_cv_prog_cc_stdc=$ac_arg
3714 break
3715 else
3716   echo "$as_me: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3718 fi
3719 rm -f conftest.$ac_objext
3720 done
3721 rm -f conftest.$ac_ext conftest.$ac_objext
3722 CC=$ac_save_CC
3723
3724 fi
3725
3726 case "x$ac_cv_prog_cc_stdc" in
3727   x|xno)
3728     echo "$as_me:3728: result: none needed" >&5
3729 echo "${ECHO_T}none needed" >&6 ;;
3730   *)
3731     echo "$as_me:3731: result: $ac_cv_prog_cc_stdc" >&5
3732 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3733     CC="$CC $ac_cv_prog_cc_stdc" ;;
3734 esac
3735
3736 echo "$as_me:3736: checking for an ANSI C-conforming const" >&5
3737 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3738 if test "${ac_cv_c_const+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   cat >conftest.$ac_ext <<_ACEOF
3742 #line 3742 "configure"
3743 #include "confdefs.h"
3744
3745 int
3746 main ()
3747 {
3748 /* FIXME: Include the comments suggested by Paul. */
3749 #ifndef __cplusplus
3750   /* Ultrix mips cc rejects this.  */
3751   typedef int charset[2];
3752   const charset x;
3753   /* SunOS 4.1.1 cc rejects this.  */
3754   char const *const *ccp;
3755   char **p;
3756   /* NEC SVR4.0.2 mips cc rejects this.  */
3757   struct point {int x, y;};
3758   static struct point const zero = {0,0};
3759   /* AIX XL C 1.02.0.0 rejects this.
3760      It does not let you subtract one const X* pointer from another in
3761      an arm of an if-expression whose if-part is not a constant
3762      expression */
3763   const char *g = "string";
3764   ccp = &g + (g ? g-g : 0);
3765   /* HPUX 7.0 cc rejects these. */
3766   ++ccp;
3767   p = (char**) ccp;
3768   ccp = (char const *const *) p;
3769   { /* SCO 3.2v4 cc rejects this.  */
3770     char *t;
3771     char const *s = 0 ? (char *) 0 : (char const *) 0;
3772
3773     *t++ = 0;
3774   }
3775   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3776     int x[] = {25, 17};
3777     const int *foo = &x[0];
3778     ++foo;
3779   }
3780   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3781     typedef const int *iptr;
3782     iptr p = 0;
3783     ++p;
3784   }
3785   { /* AIX XL C 1.02.0.0 rejects this saying
3786        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3787     struct s { int j; const int *ap[3]; };
3788     struct s *b; b->j = 5;
3789   }
3790   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3791     const int foo = 10;
3792   }
3793 #endif
3794
3795   ;
3796   return 0;
3797 }
3798 _ACEOF
3799 rm -f conftest.$ac_objext
3800 if { (eval echo "$as_me:3800: \"$ac_compile\"") >&5
3801   (eval $ac_compile) 2>&5
3802   ac_status=$?
3803   echo "$as_me:3803: \$? = $ac_status" >&5
3804   (exit $ac_status); } &&
3805          { ac_try='test -s conftest.$ac_objext'
3806   { (eval echo "$as_me:3806: \"$ac_try\"") >&5
3807   (eval $ac_try) 2>&5
3808   ac_status=$?
3809   echo "$as_me:3809: \$? = $ac_status" >&5
3810   (exit $ac_status); }; }; then
3811   ac_cv_c_const=yes
3812 else
3813   echo "$as_me: failed program was:" >&5
3814 cat conftest.$ac_ext >&5
3815 ac_cv_c_const=no
3816 fi
3817 rm -f conftest.$ac_objext conftest.$ac_ext
3818 fi
3819 echo "$as_me:3819: result: $ac_cv_c_const" >&5
3820 echo "${ECHO_T}$ac_cv_c_const" >&6
3821 if test $ac_cv_c_const = no; then
3822
3823 cat >>confdefs.h <<\EOF
3824 #define const
3825 EOF
3826
3827 fi
3828
3829 echo "$as_me:3829: checking for inline" >&5
3830 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3831 if test "${ac_cv_c_inline+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834   ac_cv_c_inline=no
3835 for ac_kw in inline __inline__ __inline; do
3836   cat >conftest.$ac_ext <<_ACEOF
3837 #line 3837 "configure"
3838 #include "confdefs.h"
3839 #ifndef __cplusplus
3840 static $ac_kw int static_foo () {return 0; }
3841 $ac_kw int foo () {return 0; }
3842 #endif
3843
3844 _ACEOF
3845 rm -f conftest.$ac_objext
3846 if { (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   ac_cv_c_inline=$ac_kw; break
3858 else
3859   echo "$as_me: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3861 fi
3862 rm -f conftest.$ac_objext conftest.$ac_ext
3863 done
3864
3865 fi
3866 echo "$as_me:3866: result: $ac_cv_c_inline" >&5
3867 echo "${ECHO_T}$ac_cv_c_inline" >&6
3868 case $ac_cv_c_inline in
3869   inline | yes) ;;
3870   no)
3871 cat >>confdefs.h <<\EOF
3872 #define inline
3873 EOF
3874  ;;
3875   *)  cat >>confdefs.h <<EOF
3876 #define inline $ac_cv_c_inline
3877 EOF
3878  ;;
3879 esac
3880
3881 echo "$as_me:3881: checking whether byte ordering is bigendian" >&5
3882 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3883 if test "${ac_cv_c_bigendian+set}" = set; then
3884   echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886   ac_cv_c_bigendian=unknown
3887 # See if sys/param.h defines the BYTE_ORDER macro.
3888 cat >conftest.$ac_ext <<_ACEOF
3889 #line 3889 "configure"
3890 #include "confdefs.h"
3891 #include <sys/types.h>
3892 #include <sys/param.h>
3893
3894 int
3895 main ()
3896 {
3897 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3898  bogus endian macros
3899 #endif
3900
3901   ;
3902   return 0;
3903 }
3904 _ACEOF
3905 rm -f conftest.$ac_objext
3906 if { (eval echo "$as_me:3906: \"$ac_compile\"") >&5
3907   (eval $ac_compile) 2>&5
3908   ac_status=$?
3909   echo "$as_me:3909: \$? = $ac_status" >&5
3910   (exit $ac_status); } &&
3911          { ac_try='test -s conftest.$ac_objext'
3912   { (eval echo "$as_me:3912: \"$ac_try\"") >&5
3913   (eval $ac_try) 2>&5
3914   ac_status=$?
3915   echo "$as_me:3915: \$? = $ac_status" >&5
3916   (exit $ac_status); }; }; then
3917   # It does; now see whether it defined to BIG_ENDIAN or not.
3918 cat >conftest.$ac_ext <<_ACEOF
3919 #line 3919 "configure"
3920 #include "confdefs.h"
3921 #include <sys/types.h>
3922 #include <sys/param.h>
3923
3924 int
3925 main ()
3926 {
3927 #if BYTE_ORDER != BIG_ENDIAN
3928  not big endian
3929 #endif
3930
3931   ;
3932   return 0;
3933 }
3934 _ACEOF
3935 rm -f conftest.$ac_objext
3936 if { (eval echo "$as_me:3936: \"$ac_compile\"") >&5
3937   (eval $ac_compile) 2>&5
3938   ac_status=$?
3939   echo "$as_me:3939: \$? = $ac_status" >&5
3940   (exit $ac_status); } &&
3941          { ac_try='test -s conftest.$ac_objext'
3942   { (eval echo "$as_me:3942: \"$ac_try\"") >&5
3943   (eval $ac_try) 2>&5
3944   ac_status=$?
3945   echo "$as_me:3945: \$? = $ac_status" >&5
3946   (exit $ac_status); }; }; then
3947   ac_cv_c_bigendian=yes
3948 else
3949   echo "$as_me: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3951 ac_cv_c_bigendian=no
3952 fi
3953 rm -f conftest.$ac_objext conftest.$ac_ext
3954 else
3955   echo "$as_me: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3957 fi
3958 rm -f conftest.$ac_objext conftest.$ac_ext
3959 if test $ac_cv_c_bigendian = unknown; then
3960 if test "$cross_compiling" = yes; then
3961   { { echo "$as_me:3961: error: cannot run test program while cross compiling" >&5
3962 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3963    { (exit 1); exit 1; }; }
3964 else
3965   cat >conftest.$ac_ext <<_ACEOF
3966 #line 3966 "configure"
3967 #include "confdefs.h"
3968 int
3969 main ()
3970 {
3971   /* Are we little or big endian?  From Harbison&Steele.  */
3972   union
3973   {
3974     long l;
3975     char c[sizeof (long)];
3976   } u;
3977   u.l = 1;
3978   exit (u.c[sizeof (long) - 1] == 1);
3979 }
3980 _ACEOF
3981 rm -f conftest$ac_exeext
3982 if { (eval echo "$as_me:3982: \"$ac_link\"") >&5
3983   (eval $ac_link) 2>&5
3984   ac_status=$?
3985   echo "$as_me:3985: \$? = $ac_status" >&5
3986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3987   { (eval echo "$as_me:3987: \"$ac_try\"") >&5
3988   (eval $ac_try) 2>&5
3989   ac_status=$?
3990   echo "$as_me:3990: \$? = $ac_status" >&5
3991   (exit $ac_status); }; }; then
3992   ac_cv_c_bigendian=no
3993 else
3994   echo "$as_me: program exited with status $ac_status" >&5
3995 echo "$as_me: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
3997 ac_cv_c_bigendian=yes
3998 fi
3999 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4000 fi
4001 fi
4002 fi
4003 echo "$as_me:4003: result: $ac_cv_c_bigendian" >&5
4004 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4005 if test $ac_cv_c_bigendian = yes; then
4006
4007 cat >>confdefs.h <<\EOF
4008 #define WORDS_BIGENDIAN 1
4009 EOF
4010
4011 fi
4012
4013 echo "$as_me:4013: checking for preprocessor stringizing operator" >&5
4014 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
4015 if test "${ac_cv_c_stringize+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   cat >conftest.$ac_ext <<_ACEOF
4019 #line 4019 "configure"
4020 #include "confdefs.h"
4021 #define x(y) #y
4022
4023 char *s = x(teststring);
4024 _ACEOF
4025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4026   egrep "#teststring" >/dev/null 2>&1; then
4027   ac_cv_c_stringize=no
4028 else
4029   ac_cv_c_stringize=yes
4030 fi
4031 rm -f conftest*
4032
4033 fi
4034 echo "$as_me:4034: result: $ac_cv_c_stringize" >&5
4035 echo "${ECHO_T}$ac_cv_c_stringize" >&6
4036 if test $ac_cv_c_stringize = yes; then
4037
4038 cat >>confdefs.h <<\EOF
4039 #define HAVE_STRINGIZE 1
4040 EOF
4041
4042 fi
4043
4044 echo "$as_me:4044: checking for long double" >&5
4045 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4046 if test "${ac_cv_c_long_double+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   if test "$GCC" = yes; then
4050   ac_cv_c_long_double=yes
4051 else
4052 if test "$cross_compiling" = yes; then
4053   { { echo "$as_me:4053: error: cannot run test program while cross compiling" >&5
4054 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4055    { (exit 1); exit 1; }; }
4056 else
4057   cat >conftest.$ac_ext <<_ACEOF
4058 #line 4058 "configure"
4059 #include "confdefs.h"
4060 int
4061 main ()
4062 {
4063   /* The Stardent Vistra knows sizeof(long double), but does not
4064      support it.  */
4065   long double foo = 0.0;
4066   /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
4067   exit (sizeof (long double) < sizeof (double));
4068 }
4069 _ACEOF
4070 rm -f conftest$ac_exeext
4071 if { (eval echo "$as_me:4071: \"$ac_link\"") >&5
4072   (eval $ac_link) 2>&5
4073   ac_status=$?
4074   echo "$as_me:4074: \$? = $ac_status" >&5
4075   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4076   { (eval echo "$as_me:4076: \"$ac_try\"") >&5
4077   (eval $ac_try) 2>&5
4078   ac_status=$?
4079   echo "$as_me:4079: \$? = $ac_status" >&5
4080   (exit $ac_status); }; }; then
4081   ac_cv_c_long_double=yes
4082 else
4083   echo "$as_me: program exited with status $ac_status" >&5
4084 echo "$as_me: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4086 ac_cv_c_long_double=no
4087 fi
4088 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4089 fi
4090 fi
4091 fi
4092 echo "$as_me:4092: result: $ac_cv_c_long_double" >&5
4093 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4094 if test $ac_cv_c_long_double = yes; then
4095
4096 cat >>confdefs.h <<\EOF
4097 #define HAVE_LONG_DOUBLE 1
4098 EOF
4099
4100 fi
4101
4102 echo "$as_me:4102: checking for function prototypes" >&5
4103 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4104 if test "$ac_cv_prog_cc_stdc" != no; then
4105   echo "$as_me:4105: result: yes" >&5
4106 echo "${ECHO_T}yes" >&6
4107
4108 cat >>confdefs.h <<\EOF
4109 #define PROTOTYPES 1
4110 EOF
4111
4112 else
4113   echo "$as_me:4113: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117 echo "$as_me:4117: checking for ANSI C header files" >&5
4118 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4119 if test "${ac_cv_header_stdc+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   cat >conftest.$ac_ext <<_ACEOF
4123 #line 4123 "configure"
4124 #include "confdefs.h"
4125 #include <stdlib.h>
4126 #include <stdarg.h>
4127 #include <string.h>
4128 #include <float.h>
4129
4130 _ACEOF
4131 if { (eval echo "$as_me:4131: \"$ac_cpp conftest.$ac_ext\"") >&5
4132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4133   ac_status=$?
4134   egrep -v '^ *\+' conftest.er1 >conftest.err
4135   rm -f conftest.er1
4136   cat conftest.err >&5
4137   echo "$as_me:4137: \$? = $ac_status" >&5
4138   (exit $ac_status); } >/dev/null; then
4139   if test -s conftest.err; then
4140     ac_cpp_err=$ac_c_preproc_warn_flag
4141   else
4142     ac_cpp_err=
4143   fi
4144 else
4145   ac_cpp_err=yes
4146 fi
4147 if test -z "$ac_cpp_err"; then
4148   ac_cv_header_stdc=yes
4149 else
4150   echo "$as_me: failed program was:" >&5
4151   cat conftest.$ac_ext >&5
4152   ac_cv_header_stdc=no
4153 fi
4154 rm -f conftest.err conftest.$ac_ext
4155
4156 if test $ac_cv_header_stdc = yes; then
4157   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4158   cat >conftest.$ac_ext <<_ACEOF
4159 #line 4159 "configure"
4160 #include "confdefs.h"
4161 #include <string.h>
4162
4163 _ACEOF
4164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4165   egrep "memchr" >/dev/null 2>&1; then
4166   :
4167 else
4168   ac_cv_header_stdc=no
4169 fi
4170 rm -f conftest*
4171
4172 fi
4173
4174 if test $ac_cv_header_stdc = yes; then
4175   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4176   cat >conftest.$ac_ext <<_ACEOF
4177 #line 4177 "configure"
4178 #include "confdefs.h"
4179 #include <stdlib.h>
4180
4181 _ACEOF
4182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4183   egrep "free" >/dev/null 2>&1; then
4184   :
4185 else
4186   ac_cv_header_stdc=no
4187 fi
4188 rm -f conftest*
4189
4190 fi
4191
4192 if test $ac_cv_header_stdc = yes; then
4193   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4194   if test "$cross_compiling" = yes; then
4195   :
4196 else
4197   cat >conftest.$ac_ext <<_ACEOF
4198 #line 4198 "configure"
4199 #include "confdefs.h"
4200 #include <ctype.h>
4201 #if ((' ' & 0x0FF) == 0x020)
4202 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4203 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4204 #else
4205 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4206                      || ('j' <= (c) && (c) <= 'r') \
4207                      || ('s' <= (c) && (c) <= 'z'))
4208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4209 #endif
4210
4211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4212 int
4213 main ()
4214 {
4215   int i;
4216   for (i = 0; i < 256; i++)
4217     if (XOR (islower (i), ISLOWER (i))
4218         || toupper (i) != TOUPPER (i))
4219       exit(2);
4220   exit (0);
4221 }
4222 _ACEOF
4223 rm -f conftest$ac_exeext
4224 if { (eval echo "$as_me:4224: \"$ac_link\"") >&5
4225   (eval $ac_link) 2>&5
4226   ac_status=$?
4227   echo "$as_me:4227: \$? = $ac_status" >&5
4228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229   { (eval echo "$as_me:4229: \"$ac_try\"") >&5
4230   (eval $ac_try) 2>&5
4231   ac_status=$?
4232   echo "$as_me:4232: \$? = $ac_status" >&5
4233   (exit $ac_status); }; }; then
4234   :
4235 else
4236   echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4239 ac_cv_header_stdc=no
4240 fi
4241 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4242 fi
4243 fi
4244 fi
4245 echo "$as_me:4245: result: $ac_cv_header_stdc" >&5
4246 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4247 if test $ac_cv_header_stdc = yes; then
4248
4249 cat >>confdefs.h <<\EOF
4250 #define STDC_HEADERS 1
4251 EOF
4252
4253 fi
4254
4255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4256
4257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4258                   inttypes.h stdint.h unistd.h
4259 do
4260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4261 echo "$as_me:4261: checking for $ac_header" >&5
4262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   cat >conftest.$ac_ext <<_ACEOF
4267 #line 4267 "configure"
4268 #include "confdefs.h"
4269 $ac_includes_default
4270 #include <$ac_header>
4271 _ACEOF
4272 rm -f conftest.$ac_objext
4273 if { (eval echo "$as_me:4273: \"$ac_compile\"") >&5
4274   (eval $ac_compile) 2>&5
4275   ac_status=$?
4276   echo "$as_me:4276: \$? = $ac_status" >&5
4277   (exit $ac_status); } &&
4278          { ac_try='test -s conftest.$ac_objext'
4279   { (eval echo "$as_me:4279: \"$ac_try\"") >&5
4280   (eval $ac_try) 2>&5
4281   ac_status=$?
4282   echo "$as_me:4282: \$? = $ac_status" >&5
4283   (exit $ac_status); }; }; then
4284   eval "$as_ac_Header=yes"
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4288 eval "$as_ac_Header=no"
4289 fi
4290 rm -f conftest.$ac_objext conftest.$ac_ext
4291 fi
4292 echo "$as_me:4292: result: `eval echo '${'$as_ac_Header'}'`" >&5
4293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4295   cat >>confdefs.h <<EOF
4296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4297 EOF
4298
4299 fi
4300 done
4301
4302 echo "$as_me:4302: checking whether char is unsigned" >&5
4303 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
4304 if test "${ac_cv_c_char_unsigned+set}" = set; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307   cat >conftest.$ac_ext <<_ACEOF
4308 #line 4308 "configure"
4309 #include "confdefs.h"
4310 $ac_includes_default
4311 int
4312 main ()
4313 {
4314 int _array_ [1 - 2 * !(((char) -1) < 0)]
4315   ;
4316   return 0;
4317 }
4318 _ACEOF
4319 rm -f conftest.$ac_objext
4320 if { (eval echo "$as_me:4320: \"$ac_compile\"") >&5
4321   (eval $ac_compile) 2>&5
4322   ac_status=$?
4323   echo "$as_me:4323: \$? = $ac_status" >&5
4324   (exit $ac_status); } &&
4325          { ac_try='test -s conftest.$ac_objext'
4326   { (eval echo "$as_me:4326: \"$ac_try\"") >&5
4327   (eval $ac_try) 2>&5
4328   ac_status=$?
4329   echo "$as_me:4329: \$? = $ac_status" >&5
4330   (exit $ac_status); }; }; then
4331   ac_cv_c_char_unsigned=no
4332 else
4333   echo "$as_me: failed program was:" >&5
4334 cat conftest.$ac_ext >&5
4335 ac_cv_c_char_unsigned=yes
4336 fi
4337 rm -f conftest.$ac_objext conftest.$ac_ext
4338 fi
4339 echo "$as_me:4339: result: $ac_cv_c_char_unsigned" >&5
4340 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
4341 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4342   cat >>confdefs.h <<\EOF
4343 #define __CHAR_UNSIGNED__ 1
4344 EOF
4345
4346 fi
4347
4348 ac_header_dirent=no
4349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4350   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4351 echo "$as_me:4351: checking for $ac_hdr that defines DIR" >&5
4352 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4354   echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356   cat >conftest.$ac_ext <<_ACEOF
4357 #line 4357 "configure"
4358 #include "confdefs.h"
4359 #include <sys/types.h>
4360 #include <$ac_hdr>
4361
4362 int
4363 main ()
4364 {
4365 if ((DIR *) 0)
4366 return 0;
4367   ;
4368   return 0;
4369 }
4370 _ACEOF
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:4372: \"$ac_compile\"") >&5
4373   (eval $ac_compile) 2>&5
4374   ac_status=$?
4375   echo "$as_me:4375: \$? = $ac_status" >&5
4376   (exit $ac_status); } &&
4377          { ac_try='test -s conftest.$ac_objext'
4378   { (eval echo "$as_me:4378: \"$ac_try\"") >&5
4379   (eval $ac_try) 2>&5
4380   ac_status=$?
4381   echo "$as_me:4381: \$? = $ac_status" >&5
4382   (exit $ac_status); }; }; then
4383   eval "$as_ac_Header=yes"
4384 else
4385   echo "$as_me: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 eval "$as_ac_Header=no"
4388 fi
4389 rm -f conftest.$ac_objext conftest.$ac_ext
4390 fi
4391 echo "$as_me:4391: result: `eval echo '${'$as_ac_Header'}'`" >&5
4392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4394   cat >>confdefs.h <<EOF
4395 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4396 EOF
4397
4398 ac_header_dirent=$ac_hdr; break
4399 fi
4400
4401 done
4402 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4403 if test $ac_header_dirent = dirent.h; then
4404   echo "$as_me:4404: checking for opendir in -ldir" >&5
4405 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
4406 if test "${ac_cv_lib_dir_opendir+set}" = set; then
4407   echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409   ac_check_lib_save_LIBS=$LIBS
4410 LIBS="-ldir  $LIBS"
4411 cat >conftest.$ac_ext <<_ACEOF
4412 #line 4412 "configure"
4413 #include "confdefs.h"
4414
4415 /* Override any gcc2 internal prototype to avoid an error.  */
4416 #ifdef __cplusplus
4417 extern "C"
4418 #endif
4419 /* We use char because int might match the return type of a gcc2
4420    builtin and then its argument prototype would still apply.  */
4421 char opendir ();
4422 int
4423 main ()
4424 {
4425 opendir ();
4426   ;
4427   return 0;
4428 }
4429 _ACEOF
4430 rm -f conftest.$ac_objext conftest$ac_exeext
4431 if { (eval echo "$as_me:4431: \"$ac_link\"") >&5
4432   (eval $ac_link) 2>&5
4433   ac_status=$?
4434   echo "$as_me:4434: \$? = $ac_status" >&5
4435   (exit $ac_status); } &&
4436          { ac_try='test -s conftest$ac_exeext'
4437   { (eval echo "$as_me:4437: \"$ac_try\"") >&5
4438   (eval $ac_try) 2>&5
4439   ac_status=$?
4440   echo "$as_me:4440: \$? = $ac_status" >&5
4441   (exit $ac_status); }; }; then
4442   ac_cv_lib_dir_opendir=yes
4443 else
4444   echo "$as_me: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4446 ac_cv_lib_dir_opendir=no
4447 fi
4448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4449 LIBS=$ac_check_lib_save_LIBS
4450 fi
4451 echo "$as_me:4451: result: $ac_cv_lib_dir_opendir" >&5
4452 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
4453 if test $ac_cv_lib_dir_opendir = yes; then
4454   LIBS="$LIBS -ldir"
4455 fi
4456
4457 else
4458   echo "$as_me:4458: checking for opendir in -lx" >&5
4459 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
4460 if test "${ac_cv_lib_x_opendir+set}" = set; then
4461   echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463   ac_check_lib_save_LIBS=$LIBS
4464 LIBS="-lx  $LIBS"
4465 cat >conftest.$ac_ext <<_ACEOF
4466 #line 4466 "configure"
4467 #include "confdefs.h"
4468
4469 /* Override any gcc2 internal prototype to avoid an error.  */
4470 #ifdef __cplusplus
4471 extern "C"
4472 #endif
4473 /* We use char because int might match the return type of a gcc2
4474    builtin and then its argument prototype would still apply.  */
4475 char opendir ();
4476 int
4477 main ()
4478 {
4479 opendir ();
4480   ;
4481   return 0;
4482 }
4483 _ACEOF
4484 rm -f conftest.$ac_objext conftest$ac_exeext
4485 if { (eval echo "$as_me:4485: \"$ac_link\"") >&5
4486   (eval $ac_link) 2>&5
4487   ac_status=$?
4488   echo "$as_me:4488: \$? = $ac_status" >&5
4489   (exit $ac_status); } &&
4490          { ac_try='test -s conftest$ac_exeext'
4491   { (eval echo "$as_me:4491: \"$ac_try\"") >&5
4492   (eval $ac_try) 2>&5
4493   ac_status=$?
4494   echo "$as_me:4494: \$? = $ac_status" >&5
4495   (exit $ac_status); }; }; then
4496   ac_cv_lib_x_opendir=yes
4497 else
4498   echo "$as_me: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4500 ac_cv_lib_x_opendir=no
4501 fi
4502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4503 LIBS=$ac_check_lib_save_LIBS
4504 fi
4505 echo "$as_me:4505: result: $ac_cv_lib_x_opendir" >&5
4506 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
4507 if test $ac_cv_lib_x_opendir = yes; then
4508   LIBS="$LIBS -lx"
4509 fi
4510
4511 fi
4512
4513 echo "$as_me:4513: checking whether time.h and sys/time.h may both be included" >&5
4514 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4515 if test "${ac_cv_header_time+set}" = set; then
4516   echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518   cat >conftest.$ac_ext <<_ACEOF
4519 #line 4519 "configure"
4520 #include "confdefs.h"
4521 #include <sys/types.h>
4522 #include <sys/time.h>
4523 #include <time.h>
4524
4525 int
4526 main ()
4527 {
4528 if ((struct tm *) 0)
4529 return 0;
4530   ;
4531   return 0;
4532 }
4533 _ACEOF
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:4535: \"$ac_compile\"") >&5
4536   (eval $ac_compile) 2>&5
4537   ac_status=$?
4538   echo "$as_me:4538: \$? = $ac_status" >&5
4539   (exit $ac_status); } &&
4540          { ac_try='test -s conftest.$ac_objext'
4541   { (eval echo "$as_me:4541: \"$ac_try\"") >&5
4542   (eval $ac_try) 2>&5
4543   ac_status=$?
4544   echo "$as_me:4544: \$? = $ac_status" >&5
4545   (exit $ac_status); }; }; then
4546   ac_cv_header_time=yes
4547 else
4548   echo "$as_me: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4550 ac_cv_header_time=no
4551 fi
4552 rm -f conftest.$ac_objext conftest.$ac_ext
4553 fi
4554 echo "$as_me:4554: result: $ac_cv_header_time" >&5
4555 echo "${ECHO_T}$ac_cv_header_time" >&6
4556 if test $ac_cv_header_time = yes; then
4557
4558 cat >>confdefs.h <<\EOF
4559 #define TIME_WITH_SYS_TIME 1
4560 EOF
4561
4562 fi
4563
4564 for ac_header in inttypes.h
4565 do
4566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4567 echo "$as_me:4567: checking for $ac_header" >&5
4568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572   cat >conftest.$ac_ext <<_ACEOF
4573 #line 4573 "configure"
4574 #include "confdefs.h"
4575 #include <$ac_header>
4576 _ACEOF
4577 if { (eval echo "$as_me:4577: \"$ac_cpp conftest.$ac_ext\"") >&5
4578   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4579   ac_status=$?
4580   egrep -v '^ *\+' conftest.er1 >conftest.err
4581   rm -f conftest.er1
4582   cat conftest.err >&5
4583   echo "$as_me:4583: \$? = $ac_status" >&5
4584   (exit $ac_status); } >/dev/null; then
4585   if test -s conftest.err; then
4586     ac_cpp_err=$ac_c_preproc_warn_flag
4587   else
4588     ac_cpp_err=
4589   fi
4590 else
4591   ac_cpp_err=yes
4592 fi
4593 if test -z "$ac_cpp_err"; then
4594   eval "$as_ac_Header=yes"
4595 else
4596   echo "$as_me: failed program was:" >&5
4597   cat conftest.$ac_ext >&5
4598   eval "$as_ac_Header=no"
4599 fi
4600 rm -f conftest.err conftest.$ac_ext
4601 fi
4602 echo "$as_me:4602: result: `eval echo '${'$as_ac_Header'}'`" >&5
4603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4605   cat >>confdefs.h <<EOF
4606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4607 EOF
4608
4609 fi
4610 done
4611
4612 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
4613                  memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
4614                  stddef.h stdint.h netdb.h grp.h strings.h
4615 do
4616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4617 echo "$as_me:4617: checking for $ac_header" >&5
4618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   cat >conftest.$ac_ext <<_ACEOF
4623 #line 4623 "configure"
4624 #include "confdefs.h"
4625 #include <$ac_header>
4626 _ACEOF
4627 if { (eval echo "$as_me:4627: \"$ac_cpp conftest.$ac_ext\"") >&5
4628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4629   ac_status=$?
4630   egrep -v '^ *\+' conftest.er1 >conftest.err
4631   rm -f conftest.er1
4632   cat conftest.err >&5
4633   echo "$as_me:4633: \$? = $ac_status" >&5
4634   (exit $ac_status); } >/dev/null; then
4635   if test -s conftest.err; then
4636     ac_cpp_err=$ac_c_preproc_warn_flag
4637   else
4638     ac_cpp_err=
4639   fi
4640 else
4641   ac_cpp_err=yes
4642 fi
4643 if test -z "$ac_cpp_err"; then
4644   eval "$as_ac_Header=yes"
4645 else
4646   echo "$as_me: failed program was:" >&5
4647   cat conftest.$ac_ext >&5
4648   eval "$as_ac_Header=no"
4649 fi
4650 rm -f conftest.err conftest.$ac_ext
4651 fi
4652 echo "$as_me:4652: result: `eval echo '${'$as_ac_Header'}'`" >&5
4653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4655   cat >>confdefs.h <<EOF
4656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4657 EOF
4658
4659 fi
4660 done
4661
4662 for ac_header in sys/ptem.h sys/pte.h sys/stream.h sys/select.h sys/file.h \
4663                  sys/resource.h sys/param.h sys/socket.h \
4664                  sys/time.h sys/times.h sys/wait.h
4665 do
4666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4667 echo "$as_me:4667: checking for $ac_header" >&5
4668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4670   echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672   cat >conftest.$ac_ext <<_ACEOF
4673 #line 4673 "configure"
4674 #include "confdefs.h"
4675 #include <$ac_header>
4676 _ACEOF
4677 if { (eval echo "$as_me:4677: \"$ac_cpp conftest.$ac_ext\"") >&5
4678   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4679   ac_status=$?
4680   egrep -v '^ *\+' conftest.er1 >conftest.err
4681   rm -f conftest.er1
4682   cat conftest.err >&5
4683   echo "$as_me:4683: \$? = $ac_status" >&5
4684   (exit $ac_status); } >/dev/null; then
4685   if test -s conftest.err; then
4686     ac_cpp_err=$ac_c_preproc_warn_flag
4687   else
4688     ac_cpp_err=
4689   fi
4690 else
4691   ac_cpp_err=yes
4692 fi
4693 if test -z "$ac_cpp_err"; then
4694   eval "$as_ac_Header=yes"
4695 else
4696   echo "$as_me: failed program was:" >&5
4697   cat conftest.$ac_ext >&5
4698   eval "$as_ac_Header=no"
4699 fi
4700 rm -f conftest.err conftest.$ac_ext
4701 fi
4702 echo "$as_me:4702: result: `eval echo '${'$as_ac_Header'}'`" >&5
4703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4705   cat >>confdefs.h <<EOF
4706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4707 EOF
4708
4709 fi
4710 done
4711
4712 for ac_header in netinet/in.h arpa/inet.h
4713 do
4714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4715 echo "$as_me:4715: checking for $ac_header" >&5
4716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4718   echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720   cat >conftest.$ac_ext <<_ACEOF
4721 #line 4721 "configure"
4722 #include "confdefs.h"
4723 #include <$ac_header>
4724 _ACEOF
4725 if { (eval echo "$as_me:4725: \"$ac_cpp conftest.$ac_ext\"") >&5
4726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4727   ac_status=$?
4728   egrep -v '^ *\+' conftest.er1 >conftest.err
4729   rm -f conftest.er1
4730   cat conftest.err >&5
4731   echo "$as_me:4731: \$? = $ac_status" >&5
4732   (exit $ac_status); } >/dev/null; then
4733   if test -s conftest.err; then
4734     ac_cpp_err=$ac_c_preproc_warn_flag
4735   else
4736     ac_cpp_err=
4737   fi
4738 else
4739   ac_cpp_err=yes
4740 fi
4741 if test -z "$ac_cpp_err"; then
4742   eval "$as_ac_Header=yes"
4743 else
4744   echo "$as_me: failed program was:" >&5
4745   cat conftest.$ac_ext >&5
4746   eval "$as_ac_Header=no"
4747 fi
4748 rm -f conftest.err conftest.$ac_ext
4749 fi
4750 echo "$as_me:4750: result: `eval echo '${'$as_ac_Header'}'`" >&5
4751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4753   cat >>confdefs.h <<EOF
4754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4755 EOF
4756
4757 fi
4758 done
4759
4760 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4761 # for constant arguments.  Useless!
4762 echo "$as_me:4762: checking for working alloca.h" >&5
4763 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4764 if test "${ac_cv_working_alloca_h+set}" = set; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767   cat >conftest.$ac_ext <<_ACEOF
4768 #line 4768 "configure"
4769 #include "confdefs.h"
4770 #include <alloca.h>
4771 int
4772 main ()
4773 {
4774 char *p = (char *) alloca (2 * sizeof (int));
4775   ;
4776   return 0;
4777 }
4778 _ACEOF
4779 rm -f conftest.$ac_objext conftest$ac_exeext
4780 if { (eval echo "$as_me:4780: \"$ac_link\"") >&5
4781   (eval $ac_link) 2>&5
4782   ac_status=$?
4783   echo "$as_me:4783: \$? = $ac_status" >&5
4784   (exit $ac_status); } &&
4785          { ac_try='test -s conftest$ac_exeext'
4786   { (eval echo "$as_me:4786: \"$ac_try\"") >&5
4787   (eval $ac_try) 2>&5
4788   ac_status=$?
4789   echo "$as_me:4789: \$? = $ac_status" >&5
4790   (exit $ac_status); }; }; then
4791   ac_cv_working_alloca_h=yes
4792 else
4793   echo "$as_me: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4795 ac_cv_working_alloca_h=no
4796 fi
4797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4798 fi
4799 echo "$as_me:4799: result: $ac_cv_working_alloca_h" >&5
4800 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4801 if test $ac_cv_working_alloca_h = yes; then
4802
4803 cat >>confdefs.h <<\EOF
4804 #define HAVE_ALLOCA_H 1
4805 EOF
4806
4807 fi
4808
4809 echo "$as_me:4809: checking for alloca" >&5
4810 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4811 if test "${ac_cv_func_alloca_works+set}" = set; then
4812   echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814   cat >conftest.$ac_ext <<_ACEOF
4815 #line 4815 "configure"
4816 #include "confdefs.h"
4817 #ifdef __GNUC__
4818 # define alloca __builtin_alloca
4819 #else
4820 # ifdef _MSC_VER
4821 #  include <malloc.h>
4822 #  define alloca _alloca
4823 # else
4824 #  if HAVE_ALLOCA_H
4825 #   include <alloca.h>
4826 #  else
4827 #   ifdef _AIX
4828  #pragma alloca
4829 #   else
4830 #    ifndef alloca /* predefined by HP cc +Olibcalls */
4831 char *alloca ();
4832 #    endif
4833 #   endif
4834 #  endif
4835 # endif
4836 #endif
4837
4838 int
4839 main ()
4840 {
4841 char *p = (char *) alloca (1);
4842   ;
4843   return 0;
4844 }
4845 _ACEOF
4846 rm -f conftest.$ac_objext conftest$ac_exeext
4847 if { (eval echo "$as_me:4847: \"$ac_link\"") >&5
4848   (eval $ac_link) 2>&5
4849   ac_status=$?
4850   echo "$as_me:4850: \$? = $ac_status" >&5
4851   (exit $ac_status); } &&
4852          { ac_try='test -s conftest$ac_exeext'
4853   { (eval echo "$as_me:4853: \"$ac_try\"") >&5
4854   (eval $ac_try) 2>&5
4855   ac_status=$?
4856   echo "$as_me:4856: \$? = $ac_status" >&5
4857   (exit $ac_status); }; }; then
4858   ac_cv_func_alloca_works=yes
4859 else
4860   echo "$as_me: failed program was:" >&5
4861 cat conftest.$ac_ext >&5
4862 ac_cv_func_alloca_works=no
4863 fi
4864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4865 fi
4866 echo "$as_me:4866: result: $ac_cv_func_alloca_works" >&5
4867 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4868
4869 if test $ac_cv_func_alloca_works = yes; then
4870
4871 cat >>confdefs.h <<\EOF
4872 #define HAVE_ALLOCA 1
4873 EOF
4874
4875 else
4876   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4877 # that cause trouble.  Some versions do not even contain alloca or
4878 # contain a buggy version.  If you still want to use their alloca,
4879 # use ar to extract alloca.o from them instead of compiling alloca.c.
4880
4881 ALLOCA=alloca.$ac_objext
4882
4883 cat >>confdefs.h <<\EOF
4884 #define C_ALLOCA 1
4885 EOF
4886
4887 echo "$as_me:4887: checking whether \`alloca.c' needs Cray hooks" >&5
4888 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4889 if test "${ac_cv_os_cray+set}" = set; then
4890   echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892   cat >conftest.$ac_ext <<_ACEOF
4893 #line 4893 "configure"
4894 #include "confdefs.h"
4895 #if defined(CRAY) && ! defined(CRAY2)
4896 webecray
4897 #else
4898 wenotbecray
4899 #endif
4900
4901 _ACEOF
4902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4903   egrep "webecray" >/dev/null 2>&1; then
4904   ac_cv_os_cray=yes
4905 else
4906   ac_cv_os_cray=no
4907 fi
4908 rm -f conftest*
4909
4910 fi
4911 echo "$as_me:4911: result: $ac_cv_os_cray" >&5
4912 echo "${ECHO_T}$ac_cv_os_cray" >&6
4913 if test $ac_cv_os_cray = yes; then
4914   for ac_func in _getb67 GETB67 getb67; do
4915     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4916 echo "$as_me:4916: checking for $ac_func" >&5
4917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4918 if eval "test \"\${$as_ac_var+set}\" = set"; then
4919   echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921   cat >conftest.$ac_ext <<_ACEOF
4922 #line 4922 "configure"
4923 #include "confdefs.h"
4924 /* System header to define __stub macros and hopefully few prototypes,
4925     which can conflict with char $ac_func (); below.  */
4926 #include <assert.h>
4927 /* Override any gcc2 internal prototype to avoid an error.  */
4928 #ifdef __cplusplus
4929 extern "C"
4930 #endif
4931 /* We use char because int might match the return type of a gcc2
4932    builtin and then its argument prototype would still apply.  */
4933 char $ac_func ();
4934 char (*f) ();
4935
4936 int
4937 main ()
4938 {
4939 /* The GNU C library defines this for functions which it implements
4940     to always fail with ENOSYS.  Some functions are actually named
4941     something starting with __ and the normal name is an alias.  */
4942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4943 choke me
4944 #else
4945 f = $ac_func;
4946 #endif
4947
4948   ;
4949   return 0;
4950 }
4951 _ACEOF
4952 rm -f conftest.$ac_objext conftest$ac_exeext
4953 if { (eval echo "$as_me:4953: \"$ac_link\"") >&5
4954   (eval $ac_link) 2>&5
4955   ac_status=$?
4956   echo "$as_me:4956: \$? = $ac_status" >&5
4957   (exit $ac_status); } &&
4958          { ac_try='test -s conftest$ac_exeext'
4959   { (eval echo "$as_me:4959: \"$ac_try\"") >&5
4960   (eval $ac_try) 2>&5
4961   ac_status=$?
4962   echo "$as_me:4962: \$? = $ac_status" >&5
4963   (exit $ac_status); }; }; then
4964   eval "$as_ac_var=yes"
4965 else
4966   echo "$as_me: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4968 eval "$as_ac_var=no"
4969 fi
4970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4971 fi
4972 echo "$as_me:4972: result: `eval echo '${'$as_ac_var'}'`" >&5
4973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4974 if test `eval echo '${'$as_ac_var'}'` = yes; then
4975
4976 cat >>confdefs.h <<EOF
4977 #define CRAY_STACKSEG_END $ac_func
4978 EOF
4979
4980     break
4981 fi
4982
4983   done
4984 fi
4985
4986 echo "$as_me:4986: checking stack direction for C alloca" >&5
4987 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4988 if test "${ac_cv_c_stack_direction+set}" = set; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991   if test "$cross_compiling" = yes; then
4992   ac_cv_c_stack_direction=0
4993 else
4994   cat >conftest.$ac_ext <<_ACEOF
4995 #line 4995 "configure"
4996 #include "confdefs.h"
4997 int
4998 find_stack_direction ()
4999 {
5000   static char *addr = 0;
5001   auto char dummy;
5002   if (addr == 0)
5003     {
5004       addr = &dummy;
5005       return find_stack_direction ();
5006     }
5007   else
5008     return (&dummy > addr) ? 1 : -1;
5009 }
5010
5011 int
5012 main ()
5013 {
5014   exit (find_stack_direction () < 0);
5015 }
5016 _ACEOF
5017 rm -f conftest$ac_exeext
5018 if { (eval echo "$as_me:5018: \"$ac_link\"") >&5
5019   (eval $ac_link) 2>&5
5020   ac_status=$?
5021   echo "$as_me:5021: \$? = $ac_status" >&5
5022   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5023   { (eval echo "$as_me:5023: \"$ac_try\"") >&5
5024   (eval $ac_try) 2>&5
5025   ac_status=$?
5026   echo "$as_me:5026: \$? = $ac_status" >&5
5027   (exit $ac_status); }; }; then
5028   ac_cv_c_stack_direction=1
5029 else
5030   echo "$as_me: program exited with status $ac_status" >&5
5031 echo "$as_me: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5033 ac_cv_c_stack_direction=-1
5034 fi
5035 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5036 fi
5037 fi
5038 echo "$as_me:5038: result: $ac_cv_c_stack_direction" >&5
5039 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5040
5041 cat >>confdefs.h <<EOF
5042 #define STACK_DIRECTION $ac_cv_c_stack_direction
5043 EOF
5044
5045 fi
5046
5047 echo "$as_me:5047: checking whether getpgrp takes no argument" >&5
5048 echo $ECHO_N "checking whether getpgrp takes no argument... $ECHO_C" >&6
5049 if test "${ac_cv_func_getpgrp_void+set}" = set; then
5050   echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052   # Use it with a single arg.
5053 cat >conftest.$ac_ext <<_ACEOF
5054 #line 5054 "configure"
5055 #include "confdefs.h"
5056 $ac_includes_default
5057 int
5058 main ()
5059 {
5060 getpgrp (0);
5061   ;
5062   return 0;
5063 }
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:5066: \"$ac_compile\"") >&5
5067   (eval $ac_compile) 2>&5
5068   ac_status=$?
5069   echo "$as_me:5069: \$? = $ac_status" >&5
5070   (exit $ac_status); } &&
5071          { ac_try='test -s conftest.$ac_objext'
5072   { (eval echo "$as_me:5072: \"$ac_try\"") >&5
5073   (eval $ac_try) 2>&5
5074   ac_status=$?
5075   echo "$as_me:5075: \$? = $ac_status" >&5
5076   (exit $ac_status); }; }; then
5077   ac_func_getpgrp_1=yes
5078 else
5079   echo "$as_me: failed program was:" >&5
5080 cat conftest.$ac_ext >&5
5081 ac_func_getpgrp_1=no
5082 fi
5083 rm -f conftest.$ac_objext conftest.$ac_ext
5084 # Use it with no arg.
5085 cat >conftest.$ac_ext <<_ACEOF
5086 #line 5086 "configure"
5087 #include "confdefs.h"
5088 $ac_includes_default
5089 int
5090 main ()
5091 {
5092 getpgrp ();
5093   ;
5094   return 0;
5095 }
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:5098: \"$ac_compile\"") >&5
5099   (eval $ac_compile) 2>&5
5100   ac_status=$?
5101   echo "$as_me:5101: \$? = $ac_status" >&5
5102   (exit $ac_status); } &&
5103          { ac_try='test -s conftest.$ac_objext'
5104   { (eval echo "$as_me:5104: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:5107: \$? = $ac_status" >&5
5108   (exit $ac_status); }; }; then
5109   ac_func_getpgrp_0=yes
5110 else
5111   echo "$as_me: failed program was:" >&5
5112 cat conftest.$ac_ext >&5
5113 ac_func_getpgrp_0=no
5114 fi
5115 rm -f conftest.$ac_objext conftest.$ac_ext
5116 # If both static checks agree, we are done.
5117 case $ac_func_getpgrp_0:$ac_func_getpgrp_1 in
5118   yes:no) ac_cv_func_getpgrp_void=yes;;
5119   no:yes) ac_cv_func_getpgrp_void=false;;
5120   *) if test "$cross_compiling" = yes; then
5121   { { echo "$as_me:5121: error: cannot check getpgrp if cross compiling" >&5
5122 echo "$as_me: error: cannot check getpgrp if cross compiling" >&2;}
5123    { (exit 1); exit 1; }; }
5124 else
5125   cat >conftest.$ac_ext <<_ACEOF
5126 #line 5126 "configure"
5127 #include "confdefs.h"
5128 $ac_includes_default
5129
5130 /*
5131  * If this system has a BSD-style getpgrp(),
5132  * which takes a pid argument, exit unsuccessfully.
5133  *
5134  * Snarfed from Chet Ramey's bash pgrp.c test program
5135  */
5136
5137 int     pid;
5138 int     pg1, pg2, pg3, pg4;
5139 int     ng, np, s, child;
5140
5141 int
5142 main ()
5143 {
5144   pid = getpid ();
5145   pg1 = getpgrp (0);
5146   pg2 = getpgrp ();
5147   pg3 = getpgrp (pid);
5148   pg4 = getpgrp (1);
5149
5150   /* If all of these values are the same, it's pretty sure that we're
5151      on a system that ignores getpgrp's first argument.  */
5152   if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
5153     exit (0);
5154
5155   child = fork ();
5156   if (child < 0)
5157     exit(1);
5158   else if (child == 0)
5159     {
5160       np = getpid ();
5161       /*  If this is Sys V, this will not work; pgrp will be set to np
5162          because setpgrp just changes a pgrp to be the same as the
5163          pid.  */
5164       setpgrp (np, pg1);
5165       ng = getpgrp (0);        /* Same result for Sys V and BSD */
5166       if (ng == pg1)
5167         exit (1);
5168       else
5169         exit (0);
5170     }
5171   else
5172     {
5173       wait (&s);
5174       exit (s>>8);
5175     }
5176 }
5177
5178 _ACEOF
5179 rm -f conftest$ac_exeext
5180 if { (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_getpgrp_void=yes
5191 else
5192   echo "$as_me: program exited with status $ac_status" >&5
5193 echo "$as_me: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5195 ac_cv_func_getpgrp_void=no
5196 fi
5197 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5198 fi;;
5199 esac # $ac_func_getpgrp_0:$ac_func_getpgrp_1
5200
5201 fi
5202 echo "$as_me:5202: result: $ac_cv_func_getpgrp_void" >&5
5203 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
5204 if test $ac_cv_func_getpgrp_void = yes; then
5205
5206 cat >>confdefs.h <<\EOF
5207 #define GETPGRP_VOID 1
5208 EOF
5209
5210 fi
5211
5212 echo "$as_me:5212: checking whether setvbuf arguments are reversed" >&5
5213 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
5214 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   if test "$cross_compiling" = yes; then
5218   { { echo "$as_me:5218: error: cannot run test program while cross compiling" >&5
5219 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5220    { (exit 1); exit 1; }; }
5221 else
5222   cat >conftest.$ac_ext <<_ACEOF
5223 #line 5223 "configure"
5224 #include "confdefs.h"
5225 #include <stdio.h>
5226 /* If setvbuf has the reversed format, exit 0. */
5227 int
5228 main ()
5229 {
5230   /* This call has the arguments reversed.
5231      A reversed system may check and see that the address of main
5232      is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
5233   if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
5234     exit(1);
5235   putc('\r', stdout);
5236   exit(0);                      /* Non-reversed systems segv here.  */
5237 }
5238 _ACEOF
5239 rm -f conftest$ac_exeext
5240 if { (eval echo "$as_me:5240: \"$ac_link\"") >&5
5241   (eval $ac_link) 2>&5
5242   ac_status=$?
5243   echo "$as_me:5243: \$? = $ac_status" >&5
5244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5245   { (eval echo "$as_me:5245: \"$ac_try\"") >&5
5246   (eval $ac_try) 2>&5
5247   ac_status=$?
5248   echo "$as_me:5248: \$? = $ac_status" >&5
5249   (exit $ac_status); }; }; then
5250   ac_cv_func_setvbuf_reversed=yes
5251 else
5252   echo "$as_me: program exited with status $ac_status" >&5
5253 echo "$as_me: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5255 ac_cv_func_setvbuf_reversed=no
5256 fi
5257 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5258 fi
5259 rm -f core core.* *.core
5260 fi
5261 echo "$as_me:5261: result: $ac_cv_func_setvbuf_reversed" >&5
5262 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
5263 if test $ac_cv_func_setvbuf_reversed = yes; then
5264
5265 cat >>confdefs.h <<\EOF
5266 #define SETVBUF_REVERSED 1
5267 EOF
5268
5269 fi
5270
5271 for ac_func in vprintf
5272 do
5273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5274 echo "$as_me:5274: checking for $ac_func" >&5
5275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5276 if eval "test \"\${$as_ac_var+set}\" = set"; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279   cat >conftest.$ac_ext <<_ACEOF
5280 #line 5280 "configure"
5281 #include "confdefs.h"
5282 /* System header to define __stub macros and hopefully few prototypes,
5283     which can conflict with char $ac_func (); below.  */
5284 #include <assert.h>
5285 /* Override any gcc2 internal prototype to avoid an error.  */
5286 #ifdef __cplusplus
5287 extern "C"
5288 #endif
5289 /* We use char because int might match the return type of a gcc2
5290    builtin and then its argument prototype would still apply.  */
5291 char $ac_func ();
5292 char (*f) ();
5293
5294 int
5295 main ()
5296 {
5297 /* The GNU C library defines this for functions which it implements
5298     to always fail with ENOSYS.  Some functions are actually named
5299     something starting with __ and the normal name is an alias.  */
5300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5301 choke me
5302 #else
5303 f = $ac_func;
5304 #endif
5305
5306   ;
5307   return 0;
5308 }
5309 _ACEOF
5310 rm -f conftest.$ac_objext conftest$ac_exeext
5311 if { (eval echo "$as_me:5311: \"$ac_link\"") >&5
5312   (eval $ac_link) 2>&5
5313   ac_status=$?
5314   echo "$as_me:5314: \$? = $ac_status" >&5
5315   (exit $ac_status); } &&
5316          { ac_try='test -s conftest$ac_exeext'
5317   { (eval echo "$as_me:5317: \"$ac_try\"") >&5
5318   (eval $ac_try) 2>&5
5319   ac_status=$?
5320   echo "$as_me:5320: \$? = $ac_status" >&5
5321   (exit $ac_status); }; }; then
5322   eval "$as_ac_var=yes"
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5326 eval "$as_ac_var=no"
5327 fi
5328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5329 fi
5330 echo "$as_me:5330: result: `eval echo '${'$as_ac_var'}'`" >&5
5331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5332 if test `eval echo '${'$as_ac_var'}'` = yes; then
5333   cat >>confdefs.h <<EOF
5334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5335 EOF
5336
5337 echo "$as_me:5337: checking for _doprnt" >&5
5338 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5339 if test "${ac_cv_func__doprnt+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   cat >conftest.$ac_ext <<_ACEOF
5343 #line 5343 "configure"
5344 #include "confdefs.h"
5345 /* System header to define __stub macros and hopefully few prototypes,
5346     which can conflict with char _doprnt (); below.  */
5347 #include <assert.h>
5348 /* Override any gcc2 internal prototype to avoid an error.  */
5349 #ifdef __cplusplus
5350 extern "C"
5351 #endif
5352 /* We use char because int might match the return type of a gcc2
5353    builtin and then its argument prototype would still apply.  */
5354 char _doprnt ();
5355 char (*f) ();
5356
5357 int
5358 main ()
5359 {
5360 /* The GNU C library defines this for functions which it implements
5361     to always fail with ENOSYS.  Some functions are actually named
5362     something starting with __ and the normal name is an alias.  */
5363 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5364 choke me
5365 #else
5366 f = _doprnt;
5367 #endif
5368
5369   ;
5370   return 0;
5371 }
5372 _ACEOF
5373 rm -f conftest.$ac_objext conftest$ac_exeext
5374 if { (eval echo "$as_me:5374: \"$ac_link\"") >&5
5375   (eval $ac_link) 2>&5
5376   ac_status=$?
5377   echo "$as_me:5377: \$? = $ac_status" >&5
5378   (exit $ac_status); } &&
5379          { ac_try='test -s conftest$ac_exeext'
5380   { (eval echo "$as_me:5380: \"$ac_try\"") >&5
5381   (eval $ac_try) 2>&5
5382   ac_status=$?
5383   echo "$as_me:5383: \$? = $ac_status" >&5
5384   (exit $ac_status); }; }; then
5385   ac_cv_func__doprnt=yes
5386 else
5387   echo "$as_me: failed program was:" >&5
5388 cat conftest.$ac_ext >&5
5389 ac_cv_func__doprnt=no
5390 fi
5391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5392 fi
5393 echo "$as_me:5393: result: $ac_cv_func__doprnt" >&5
5394 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5395 if test $ac_cv_func__doprnt = yes; then
5396
5397 cat >>confdefs.h <<\EOF
5398 #define HAVE_DOPRNT 1
5399 EOF
5400
5401 fi
5402
5403 fi
5404 done
5405
5406 echo "$as_me:5406: checking for working strcoll" >&5
5407 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
5408 if test "${ac_cv_func_strcoll_works+set}" = set; then
5409   echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411   if test "$cross_compiling" = yes; then
5412   ac_cv_func_strcoll_works=no
5413 else
5414   cat >conftest.$ac_ext <<_ACEOF
5415 #line 5415 "configure"
5416 #include "confdefs.h"
5417 $ac_includes_default
5418 int
5419 main ()
5420 {
5421 exit (strcoll ("abc", "def") >= 0 ||
5422          strcoll ("ABC", "DEF") >= 0 ||
5423          strcoll ("123", "456") >= 0)
5424   ;
5425   return 0;
5426 }
5427 _ACEOF
5428 rm -f conftest$ac_exeext
5429 if { (eval echo "$as_me:5429: \"$ac_link\"") >&5
5430   (eval $ac_link) 2>&5
5431   ac_status=$?
5432   echo "$as_me:5432: \$? = $ac_status" >&5
5433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5434   { (eval echo "$as_me:5434: \"$ac_try\"") >&5
5435   (eval $ac_try) 2>&5
5436   ac_status=$?
5437   echo "$as_me:5437: \$? = $ac_status" >&5
5438   (exit $ac_status); }; }; then
5439   ac_cv_func_strcoll_works=yes
5440 else
5441   echo "$as_me: program exited with status $ac_status" >&5
5442 echo "$as_me: failed program was:" >&5
5443 cat conftest.$ac_ext >&5
5444 ac_cv_func_strcoll_works=no
5445 fi
5446 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5447 fi
5448 fi
5449 echo "$as_me:5449: result: $ac_cv_func_strcoll_works" >&5
5450 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
5451 if test $ac_cv_func_strcoll_works = yes; then
5452
5453 cat >>confdefs.h <<\EOF
5454 #define HAVE_STRCOLL 1
5455 EOF
5456
5457 fi
5458
5459 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
5460         MALLOC_TARGET=alloca
5461         MALLOC_SRC=alloca.c
5462
5463         MALLOC_LIB='-lmalloc'
5464         MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
5465         MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
5466         MALLOC_DEP='$(MALLOC_LIBRARY)'
5467 fi
5468
5469 if test "$ac_cv_func_vprintf" = no; then
5470     echo "$as_me:5470: checking for declaration of vprintf in stdio.h" >&5
5471 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
5472     cat >conftest.$ac_ext <<_ACEOF
5473 #line 5473 "configure"
5474 #include "confdefs.h"
5475 #include <stdio.h>
5476
5477 _ACEOF
5478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5479   egrep "[int[  ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
5480   ac_cv_func_vprintf=yes
5481 fi
5482 rm -f conftest*
5483
5484     echo "$as_me:5484: result: $ac_cv_func_vprintf" >&5
5485 echo "${ECHO_T}$ac_cv_func_vprintf" >&6
5486     if test $ac_cv_func_vprintf = yes; then
5487         cat >>confdefs.h <<\EOF
5488 #define HAVE_VPRINTF 1
5489 EOF
5490
5491     fi
5492 fi
5493
5494 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
5495   LIBOBJS="$LIBOBJS vprint.$ac_objext"
5496 fi
5497
5498 echo "$as_me:5498: checking return type of signal handlers" >&5
5499 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5500 if test "${ac_cv_type_signal+set}" = set; then
5501   echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503   cat >conftest.$ac_ext <<_ACEOF
5504 #line 5504 "configure"
5505 #include "confdefs.h"
5506 #include <sys/types.h>
5507 #include <signal.h>
5508 #ifdef signal
5509 # undef signal
5510 #endif
5511 #ifdef __cplusplus
5512 extern "C" void (*signal (int, void (*)(int)))(int);
5513 #else
5514 void (*signal ()) ();
5515 #endif
5516
5517 int
5518 main ()
5519 {
5520 int i;
5521   ;
5522   return 0;
5523 }
5524 _ACEOF
5525 rm -f conftest.$ac_objext
5526 if { (eval echo "$as_me:5526: \"$ac_compile\"") >&5
5527   (eval $ac_compile) 2>&5
5528   ac_status=$?
5529   echo "$as_me:5529: \$? = $ac_status" >&5
5530   (exit $ac_status); } &&
5531          { ac_try='test -s conftest.$ac_objext'
5532   { (eval echo "$as_me:5532: \"$ac_try\"") >&5
5533   (eval $ac_try) 2>&5
5534   ac_status=$?
5535   echo "$as_me:5535: \$? = $ac_status" >&5
5536   (exit $ac_status); }; }; then
5537   ac_cv_type_signal=void
5538 else
5539   echo "$as_me: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5541 ac_cv_type_signal=int
5542 fi
5543 rm -f conftest.$ac_objext conftest.$ac_ext
5544 fi
5545 echo "$as_me:5545: result: $ac_cv_type_signal" >&5
5546 echo "${ECHO_T}$ac_cv_type_signal" >&6
5547
5548 cat >>confdefs.h <<EOF
5549 #define RETSIGTYPE $ac_cv_type_signal
5550 EOF
5551
5552 echo "$as_me:5552: checking for __setostype" >&5
5553 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
5554 if test "${ac_cv_func___setostype+set}" = set; then
5555   echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557   cat >conftest.$ac_ext <<_ACEOF
5558 #line 5558 "configure"
5559 #include "confdefs.h"
5560 /* System header to define __stub macros and hopefully few prototypes,
5561     which can conflict with char __setostype (); below.  */
5562 #include <assert.h>
5563 /* Override any gcc2 internal prototype to avoid an error.  */
5564 #ifdef __cplusplus
5565 extern "C"
5566 #endif
5567 /* We use char because int might match the return type of a gcc2
5568    builtin and then its argument prototype would still apply.  */
5569 char __setostype ();
5570 char (*f) ();
5571
5572 int
5573 main ()
5574 {
5575 /* The GNU C library defines this for functions which it implements
5576     to always fail with ENOSYS.  Some functions are actually named
5577     something starting with __ and the normal name is an alias.  */
5578 #if defined (__stub___setostype) || defined (__stub_____setostype)
5579 choke me
5580 #else
5581 f = __setostype;
5582 #endif
5583
5584   ;
5585   return 0;
5586 }
5587 _ACEOF
5588 rm -f conftest.$ac_objext conftest$ac_exeext
5589 if { (eval echo "$as_me:5589: \"$ac_link\"") >&5
5590   (eval $ac_link) 2>&5
5591   ac_status=$?
5592   echo "$as_me:5592: \$? = $ac_status" >&5
5593   (exit $ac_status); } &&
5594          { ac_try='test -s conftest$ac_exeext'
5595   { (eval echo "$as_me:5595: \"$ac_try\"") >&5
5596   (eval $ac_try) 2>&5
5597   ac_status=$?
5598   echo "$as_me:5598: \$? = $ac_status" >&5
5599   (exit $ac_status); }; }; then
5600   ac_cv_func___setostype=yes
5601 else
5602   echo "$as_me: failed program was:" >&5
5603 cat conftest.$ac_ext >&5
5604 ac_cv_func___setostype=no
5605 fi
5606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5607 fi
5608 echo "$as_me:5608: result: $ac_cv_func___setostype" >&5
5609 echo "${ECHO_T}$ac_cv_func___setostype" >&6
5610 if test $ac_cv_func___setostype = yes; then
5611   cat >>confdefs.h <<\EOF
5612 #define HAVE_SETOSTYPE 1
5613 EOF
5614
5615 fi
5616
5617 echo "$as_me:5617: checking for wait3" >&5
5618 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
5619 if test "${ac_cv_func_wait3+set}" = set; then
5620   echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622   cat >conftest.$ac_ext <<_ACEOF
5623 #line 5623 "configure"
5624 #include "confdefs.h"
5625 /* System header to define __stub macros and hopefully few prototypes,
5626     which can conflict with char wait3 (); below.  */
5627 #include <assert.h>
5628 /* Override any gcc2 internal prototype to avoid an error.  */
5629 #ifdef __cplusplus
5630 extern "C"
5631 #endif
5632 /* We use char because int might match the return type of a gcc2
5633    builtin and then its argument prototype would still apply.  */
5634 char wait3 ();
5635 char (*f) ();
5636
5637 int
5638 main ()
5639 {
5640 /* The GNU C library defines this for functions which it implements
5641     to always fail with ENOSYS.  Some functions are actually named
5642     something starting with __ and the normal name is an alias.  */
5643 #if defined (__stub_wait3) || defined (__stub___wait3)
5644 choke me
5645 #else
5646 f = wait3;
5647 #endif
5648
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 rm -f conftest.$ac_objext conftest$ac_exeext
5654 if { (eval echo "$as_me:5654: \"$ac_link\"") >&5
5655   (eval $ac_link) 2>&5
5656   ac_status=$?
5657   echo "$as_me:5657: \$? = $ac_status" >&5
5658   (exit $ac_status); } &&
5659          { ac_try='test -s conftest$ac_exeext'
5660   { (eval echo "$as_me:5660: \"$ac_try\"") >&5
5661   (eval $ac_try) 2>&5
5662   ac_status=$?
5663   echo "$as_me:5663: \$? = $ac_status" >&5
5664   (exit $ac_status); }; }; then
5665   ac_cv_func_wait3=yes
5666 else
5667   echo "$as_me: failed program was:" >&5
5668 cat conftest.$ac_ext >&5
5669 ac_cv_func_wait3=no
5670 fi
5671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5672 fi
5673 echo "$as_me:5673: result: $ac_cv_func_wait3" >&5
5674 echo "${ECHO_T}$ac_cv_func_wait3" >&6
5675 if test $ac_cv_func_wait3 = yes; then
5676   cat >>confdefs.h <<\EOF
5677 #define HAVE_WAIT3 1
5678 EOF
5679
5680 fi
5681
5682 echo "$as_me:5682: checking for isinf" >&5
5683 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
5684 if test "${ac_cv_func_isinf+set}" = set; then
5685   echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687   cat >conftest.$ac_ext <<_ACEOF
5688 #line 5688 "configure"
5689 #include "confdefs.h"
5690 /* System header to define __stub macros and hopefully few prototypes,
5691     which can conflict with char isinf (); below.  */
5692 #include <assert.h>
5693 /* Override any gcc2 internal prototype to avoid an error.  */
5694 #ifdef __cplusplus
5695 extern "C"
5696 #endif
5697 /* We use char because int might match the return type of a gcc2
5698    builtin and then its argument prototype would still apply.  */
5699 char isinf ();
5700 char (*f) ();
5701
5702 int
5703 main ()
5704 {
5705 /* The GNU C library defines this for functions which it implements
5706     to always fail with ENOSYS.  Some functions are actually named
5707     something starting with __ and the normal name is an alias.  */
5708 #if defined (__stub_isinf) || defined (__stub___isinf)
5709 choke me
5710 #else
5711 f = isinf;
5712 #endif
5713
5714   ;
5715   return 0;
5716 }
5717 _ACEOF
5718 rm -f conftest.$ac_objext conftest$ac_exeext
5719 if { (eval echo "$as_me:5719: \"$ac_link\"") >&5
5720   (eval $ac_link) 2>&5
5721   ac_status=$?
5722   echo "$as_me:5722: \$? = $ac_status" >&5
5723   (exit $ac_status); } &&
5724          { ac_try='test -s conftest$ac_exeext'
5725   { (eval echo "$as_me:5725: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:5728: \$? = $ac_status" >&5
5729   (exit $ac_status); }; }; then
5730   ac_cv_func_isinf=yes
5731 else
5732   echo "$as_me: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5734 ac_cv_func_isinf=no
5735 fi
5736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5737 fi
5738 echo "$as_me:5738: result: $ac_cv_func_isinf" >&5
5739 echo "${ECHO_T}$ac_cv_func_isinf" >&6
5740 if test $ac_cv_func_isinf = yes; then
5741   cat >>confdefs.h <<\EOF
5742 #define HAVE_ISINF_IN_LIBC 1
5743 EOF
5744
5745 fi
5746
5747 echo "$as_me:5747: checking for mkfifo" >&5
5748 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
5749 if test "${ac_cv_func_mkfifo+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   cat >conftest.$ac_ext <<_ACEOF
5753 #line 5753 "configure"
5754 #include "confdefs.h"
5755 /* System header to define __stub macros and hopefully few prototypes,
5756     which can conflict with char mkfifo (); below.  */
5757 #include <assert.h>
5758 /* Override any gcc2 internal prototype to avoid an error.  */
5759 #ifdef __cplusplus
5760 extern "C"
5761 #endif
5762 /* We use char because int might match the return type of a gcc2
5763    builtin and then its argument prototype would still apply.  */
5764 char mkfifo ();
5765 char (*f) ();
5766
5767 int
5768 main ()
5769 {
5770 /* The GNU C library defines this for functions which it implements
5771     to always fail with ENOSYS.  Some functions are actually named
5772     something starting with __ and the normal name is an alias.  */
5773 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
5774 choke me
5775 #else
5776 f = mkfifo;
5777 #endif
5778
5779   ;
5780   return 0;
5781 }
5782 _ACEOF
5783 rm -f conftest.$ac_objext conftest$ac_exeext
5784 if { (eval echo "$as_me:5784: \"$ac_link\"") >&5
5785   (eval $ac_link) 2>&5
5786   ac_status=$?
5787   echo "$as_me:5787: \$? = $ac_status" >&5
5788   (exit $ac_status); } &&
5789          { ac_try='test -s conftest$ac_exeext'
5790   { (eval echo "$as_me:5790: \"$ac_try\"") >&5
5791   (eval $ac_try) 2>&5
5792   ac_status=$?
5793   echo "$as_me:5793: \$? = $ac_status" >&5
5794   (exit $ac_status); }; }; then
5795   ac_cv_func_mkfifo=yes
5796 else
5797   echo "$as_me: failed program was:" >&5
5798 cat conftest.$ac_ext >&5
5799 ac_cv_func_mkfifo=no
5800 fi
5801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5802 fi
5803 echo "$as_me:5803: result: $ac_cv_func_mkfifo" >&5
5804 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
5805 if test $ac_cv_func_mkfifo = yes; then
5806   cat >>confdefs.h <<\EOF
5807 #define HAVE_MKFIFO 1
5808 EOF
5809
5810 else
5811   cat >>confdefs.h <<\EOF
5812 #define MKFIFO_MISSING 1
5813 EOF
5814
5815 fi
5816
5817 for ac_func in dup2 select getdtablesize getgroups gethostname \
5818                 setdtablesize getpagesize killpg lstat getpeername sbrk \
5819                 getrlimit getrusage gettimeofday waitpid tcgetpgrp \
5820                 readlink
5821 do
5822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5823 echo "$as_me:5823: checking for $ac_func" >&5
5824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5825 if eval "test \"\${$as_ac_var+set}\" = set"; then
5826   echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828   cat >conftest.$ac_ext <<_ACEOF
5829 #line 5829 "configure"
5830 #include "confdefs.h"
5831 /* System header to define __stub macros and hopefully few prototypes,
5832     which can conflict with char $ac_func (); below.  */
5833 #include <assert.h>
5834 /* Override any gcc2 internal prototype to avoid an error.  */
5835 #ifdef __cplusplus
5836 extern "C"
5837 #endif
5838 /* We use char because int might match the return type of a gcc2
5839    builtin and then its argument prototype would still apply.  */
5840 char $ac_func ();
5841 char (*f) ();
5842
5843 int
5844 main ()
5845 {
5846 /* The GNU C library defines this for functions which it implements
5847     to always fail with ENOSYS.  Some functions are actually named
5848     something starting with __ and the normal name is an alias.  */
5849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5850 choke me
5851 #else
5852 f = $ac_func;
5853 #endif
5854
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext conftest$ac_exeext
5860 if { (eval echo "$as_me:5860: \"$ac_link\"") >&5
5861   (eval $ac_link) 2>&5
5862   ac_status=$?
5863   echo "$as_me:5863: \$? = $ac_status" >&5
5864   (exit $ac_status); } &&
5865          { ac_try='test -s conftest$ac_exeext'
5866   { (eval echo "$as_me:5866: \"$ac_try\"") >&5
5867   (eval $ac_try) 2>&5
5868   ac_status=$?
5869   echo "$as_me:5869: \$? = $ac_status" >&5
5870   (exit $ac_status); }; }; then
5871   eval "$as_ac_var=yes"
5872 else
5873   echo "$as_me: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5875 eval "$as_ac_var=no"
5876 fi
5877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5878 fi
5879 echo "$as_me:5879: result: `eval echo '${'$as_ac_var'}'`" >&5
5880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5881 if test `eval echo '${'$as_ac_var'}'` = yes; then
5882   cat >>confdefs.h <<EOF
5883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5884 EOF
5885
5886 fi
5887 done
5888
5889 for ac_func in rename
5890 do
5891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5892 echo "$as_me:5892: checking for $ac_func" >&5
5893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5894 if eval "test \"\${$as_ac_var+set}\" = set"; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   cat >conftest.$ac_ext <<_ACEOF
5898 #line 5898 "configure"
5899 #include "confdefs.h"
5900 /* System header to define __stub macros and hopefully few prototypes,
5901     which can conflict with char $ac_func (); below.  */
5902 #include <assert.h>
5903 /* Override any gcc2 internal prototype to avoid an error.  */
5904 #ifdef __cplusplus
5905 extern "C"
5906 #endif
5907 /* We use char because int might match the return type of a gcc2
5908    builtin and then its argument prototype would still apply.  */
5909 char $ac_func ();
5910 char (*f) ();
5911
5912 int
5913 main ()
5914 {
5915 /* The GNU C library defines this for functions which it implements
5916     to always fail with ENOSYS.  Some functions are actually named
5917     something starting with __ and the normal name is an alias.  */
5918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5919 choke me
5920 #else
5921 f = $ac_func;
5922 #endif
5923
5924   ;
5925   return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (eval echo "$as_me:5929: \"$ac_link\"") >&5
5930   (eval $ac_link) 2>&5
5931   ac_status=$?
5932   echo "$as_me:5932: \$? = $ac_status" >&5
5933   (exit $ac_status); } &&
5934          { ac_try='test -s conftest$ac_exeext'
5935   { (eval echo "$as_me:5935: \"$ac_try\"") >&5
5936   (eval $ac_try) 2>&5
5937   ac_status=$?
5938   echo "$as_me:5938: \$? = $ac_status" >&5
5939   (exit $ac_status); }; }; then
5940   eval "$as_ac_var=yes"
5941 else
5942   echo "$as_me: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5944 eval "$as_ac_var=no"
5945 fi
5946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5947 fi
5948 echo "$as_me:5948: result: `eval echo '${'$as_ac_var'}'`" >&5
5949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5950 if test `eval echo '${'$as_ac_var'}'` = yes; then
5951   cat >>confdefs.h <<EOF
5952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5953 EOF
5954
5955 else
5956   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5957 fi
5958 done
5959
5960 for ac_func in bcopy bzero confstr sysconf pathconf setenv putenv unsetenv \
5961                 setlinebuf setvbuf setlocale strchr tcgetattr uname \
5962                 ulimit tzset siginterrupt memmove ttyname times \
5963                 getaddrinfo gethostbyname getservbyname getservent inet_aton \
5964                 vsnprintf snprintf vasprintf asprintf fnmatch
5965 do
5966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5967 echo "$as_me:5967: checking for $ac_func" >&5
5968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5969 if eval "test \"\${$as_ac_var+set}\" = set"; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972   cat >conftest.$ac_ext <<_ACEOF
5973 #line 5973 "configure"
5974 #include "confdefs.h"
5975 /* System header to define __stub macros and hopefully few prototypes,
5976     which can conflict with char $ac_func (); below.  */
5977 #include <assert.h>
5978 /* Override any gcc2 internal prototype to avoid an error.  */
5979 #ifdef __cplusplus
5980 extern "C"
5981 #endif
5982 /* We use char because int might match the return type of a gcc2
5983    builtin and then its argument prototype would still apply.  */
5984 char $ac_func ();
5985 char (*f) ();
5986
5987 int
5988 main ()
5989 {
5990 /* The GNU C library defines this for functions which it implements
5991     to always fail with ENOSYS.  Some functions are actually named
5992     something starting with __ and the normal name is an alias.  */
5993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5994 choke me
5995 #else
5996 f = $ac_func;
5997 #endif
5998
5999   ;
6000   return 0;
6001 }
6002 _ACEOF
6003 rm -f conftest.$ac_objext conftest$ac_exeext
6004 if { (eval echo "$as_me:6004: \"$ac_link\"") >&5
6005   (eval $ac_link) 2>&5
6006   ac_status=$?
6007   echo "$as_me:6007: \$? = $ac_status" >&5
6008   (exit $ac_status); } &&
6009          { ac_try='test -s conftest$ac_exeext'
6010   { (eval echo "$as_me:6010: \"$ac_try\"") >&5
6011   (eval $ac_try) 2>&5
6012   ac_status=$?
6013   echo "$as_me:6013: \$? = $ac_status" >&5
6014   (exit $ac_status); }; }; then
6015   eval "$as_ac_var=yes"
6016 else
6017   echo "$as_me: failed program was:" >&5
6018 cat conftest.$ac_ext >&5
6019 eval "$as_ac_var=no"
6020 fi
6021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6022 fi
6023 echo "$as_me:6023: result: `eval echo '${'$as_ac_var'}'`" >&5
6024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6025 if test `eval echo '${'$as_ac_var'}'` = yes; then
6026   cat >>confdefs.h <<EOF
6027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6028 EOF
6029
6030 fi
6031 done
6032
6033 for ac_func in isascii isblank isgraph isprint isspace isxdigit
6034 do
6035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6036 echo "$as_me:6036: checking for $ac_func" >&5
6037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6038 if eval "test \"\${$as_ac_var+set}\" = set"; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   cat >conftest.$ac_ext <<_ACEOF
6042 #line 6042 "configure"
6043 #include "confdefs.h"
6044 /* System header to define __stub macros and hopefully few prototypes,
6045     which can conflict with char $ac_func (); below.  */
6046 #include <assert.h>
6047 /* Override any gcc2 internal prototype to avoid an error.  */
6048 #ifdef __cplusplus
6049 extern "C"
6050 #endif
6051 /* We use char because int might match the return type of a gcc2
6052    builtin and then its argument prototype would still apply.  */
6053 char $ac_func ();
6054 char (*f) ();
6055
6056 int
6057 main ()
6058 {
6059 /* The GNU C library defines this for functions which it implements
6060     to always fail with ENOSYS.  Some functions are actually named
6061     something starting with __ and the normal name is an alias.  */
6062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6063 choke me
6064 #else
6065 f = $ac_func;
6066 #endif
6067
6068   ;
6069   return 0;
6070 }
6071 _ACEOF
6072 rm -f conftest.$ac_objext conftest$ac_exeext
6073 if { (eval echo "$as_me:6073: \"$ac_link\"") >&5
6074   (eval $ac_link) 2>&5
6075   ac_status=$?
6076   echo "$as_me:6076: \$? = $ac_status" >&5
6077   (exit $ac_status); } &&
6078          { ac_try='test -s conftest$ac_exeext'
6079   { (eval echo "$as_me:6079: \"$ac_try\"") >&5
6080   (eval $ac_try) 2>&5
6081   ac_status=$?
6082   echo "$as_me:6082: \$? = $ac_status" >&5
6083   (exit $ac_status); }; }; then
6084   eval "$as_ac_var=yes"
6085 else
6086   echo "$as_me: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6088 eval "$as_ac_var=no"
6089 fi
6090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6091 fi
6092 echo "$as_me:6092: result: `eval echo '${'$as_ac_var'}'`" >&5
6093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6094 if test `eval echo '${'$as_ac_var'}'` = yes; then
6095   cat >>confdefs.h <<EOF
6096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6097 EOF
6098
6099 fi
6100 done
6101
6102 for ac_func in getcwd strcasecmp strerror strftime strpbrk memset
6103 do
6104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6105 echo "$as_me:6105: checking for $ac_func" >&5
6106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6107 if eval "test \"\${$as_ac_var+set}\" = set"; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   cat >conftest.$ac_ext <<_ACEOF
6111 #line 6111 "configure"
6112 #include "confdefs.h"
6113 /* System header to define __stub macros and hopefully few prototypes,
6114     which can conflict with char $ac_func (); below.  */
6115 #include <assert.h>
6116 /* Override any gcc2 internal prototype to avoid an error.  */
6117 #ifdef __cplusplus
6118 extern "C"
6119 #endif
6120 /* We use char because int might match the return type of a gcc2
6121    builtin and then its argument prototype would still apply.  */
6122 char $ac_func ();
6123 char (*f) ();
6124
6125 int
6126 main ()
6127 {
6128 /* The GNU C library defines this for functions which it implements
6129     to always fail with ENOSYS.  Some functions are actually named
6130     something starting with __ and the normal name is an alias.  */
6131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6132 choke me
6133 #else
6134 f = $ac_func;
6135 #endif
6136
6137   ;
6138   return 0;
6139 }
6140 _ACEOF
6141 rm -f conftest.$ac_objext conftest$ac_exeext
6142 if { (eval echo "$as_me:6142: \"$ac_link\"") >&5
6143   (eval $ac_link) 2>&5
6144   ac_status=$?
6145   echo "$as_me:6145: \$? = $ac_status" >&5
6146   (exit $ac_status); } &&
6147          { ac_try='test -s conftest$ac_exeext'
6148   { (eval echo "$as_me:6148: \"$ac_try\"") >&5
6149   (eval $ac_try) 2>&5
6150   ac_status=$?
6151   echo "$as_me:6151: \$? = $ac_status" >&5
6152   (exit $ac_status); }; }; then
6153   eval "$as_ac_var=yes"
6154 else
6155   echo "$as_me: failed program was:" >&5
6156 cat conftest.$ac_ext >&5
6157 eval "$as_ac_var=no"
6158 fi
6159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6160 fi
6161 echo "$as_me:6161: result: `eval echo '${'$as_ac_var'}'`" >&5
6162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6163 if test `eval echo '${'$as_ac_var'}'` = yes; then
6164   cat >>confdefs.h <<EOF
6165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6166 EOF
6167
6168 else
6169   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6170 fi
6171 done
6172
6173 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
6174 do
6175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6176 echo "$as_me:6176: checking for $ac_func" >&5
6177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6178 if eval "test \"\${$as_ac_var+set}\" = set"; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   cat >conftest.$ac_ext <<_ACEOF
6182 #line 6182 "configure"
6183 #include "confdefs.h"
6184 /* System header to define __stub macros and hopefully few prototypes,
6185     which can conflict with char $ac_func (); below.  */
6186 #include <assert.h>
6187 /* Override any gcc2 internal prototype to avoid an error.  */
6188 #ifdef __cplusplus
6189 extern "C"
6190 #endif
6191 /* We use char because int might match the return type of a gcc2
6192    builtin and then its argument prototype would still apply.  */
6193 char $ac_func ();
6194 char (*f) ();
6195
6196 int
6197 main ()
6198 {
6199 /* The GNU C library defines this for functions which it implements
6200     to always fail with ENOSYS.  Some functions are actually named
6201     something starting with __ and the normal name is an alias.  */
6202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6203 choke me
6204 #else
6205 f = $ac_func;
6206 #endif
6207
6208   ;
6209   return 0;
6210 }
6211 _ACEOF
6212 rm -f conftest.$ac_objext conftest$ac_exeext
6213 if { (eval echo "$as_me:6213: \"$ac_link\"") >&5
6214   (eval $ac_link) 2>&5
6215   ac_status=$?
6216   echo "$as_me:6216: \$? = $ac_status" >&5
6217   (exit $ac_status); } &&
6218          { ac_try='test -s conftest$ac_exeext'
6219   { (eval echo "$as_me:6219: \"$ac_try\"") >&5
6220   (eval $ac_try) 2>&5
6221   ac_status=$?
6222   echo "$as_me:6222: \$? = $ac_status" >&5
6223   (exit $ac_status); }; }; then
6224   eval "$as_ac_var=yes"
6225 else
6226   echo "$as_me: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6228 eval "$as_ac_var=no"
6229 fi
6230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6231 fi
6232 echo "$as_me:6232: result: `eval echo '${'$as_ac_var'}'`" >&5
6233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6234 if test `eval echo '${'$as_ac_var'}'` = yes; then
6235   cat >>confdefs.h <<EOF
6236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6237 EOF
6238
6239 else
6240   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6241 fi
6242 done
6243
6244 echo "$as_me:6244: checking whether confstr is declared" >&5
6245 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
6246 if test "${ac_cv_have_decl_confstr+set}" = set; then
6247   echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249   cat >conftest.$ac_ext <<_ACEOF
6250 #line 6250 "configure"
6251 #include "confdefs.h"
6252 $ac_includes_default
6253 int
6254 main ()
6255 {
6256 #ifndef confstr
6257   char *p = (char *) confstr;
6258 #endif
6259
6260   ;
6261   return 0;
6262 }
6263 _ACEOF
6264 rm -f conftest.$ac_objext
6265 if { (eval echo "$as_me:6265: \"$ac_compile\"") >&5
6266   (eval $ac_compile) 2>&5
6267   ac_status=$?
6268   echo "$as_me:6268: \$? = $ac_status" >&5
6269   (exit $ac_status); } &&
6270          { ac_try='test -s conftest.$ac_objext'
6271   { (eval echo "$as_me:6271: \"$ac_try\"") >&5
6272   (eval $ac_try) 2>&5
6273   ac_status=$?
6274   echo "$as_me:6274: \$? = $ac_status" >&5
6275   (exit $ac_status); }; }; then
6276   ac_cv_have_decl_confstr=yes
6277 else
6278   echo "$as_me: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6280 ac_cv_have_decl_confstr=no
6281 fi
6282 rm -f conftest.$ac_objext conftest.$ac_ext
6283 fi
6284 echo "$as_me:6284: result: $ac_cv_have_decl_confstr" >&5
6285 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
6286 if test $ac_cv_have_decl_confstr = yes; then
6287
6288 cat >>confdefs.h <<EOF
6289 #define HAVE_DECL_CONFSTR 1
6290 EOF
6291
6292 else
6293   cat >>confdefs.h <<EOF
6294 #define HAVE_DECL_CONFSTR 0
6295 EOF
6296
6297 fi
6298
6299 echo "$as_me:6299: checking whether printf is declared" >&5
6300 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
6301 if test "${ac_cv_have_decl_printf+set}" = set; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304   cat >conftest.$ac_ext <<_ACEOF
6305 #line 6305 "configure"
6306 #include "confdefs.h"
6307 $ac_includes_default
6308 int
6309 main ()
6310 {
6311 #ifndef printf
6312   char *p = (char *) printf;
6313 #endif
6314
6315   ;
6316   return 0;
6317 }
6318 _ACEOF
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:6320: \"$ac_compile\"") >&5
6321   (eval $ac_compile) 2>&5
6322   ac_status=$?
6323   echo "$as_me:6323: \$? = $ac_status" >&5
6324   (exit $ac_status); } &&
6325          { ac_try='test -s conftest.$ac_objext'
6326   { (eval echo "$as_me:6326: \"$ac_try\"") >&5
6327   (eval $ac_try) 2>&5
6328   ac_status=$?
6329   echo "$as_me:6329: \$? = $ac_status" >&5
6330   (exit $ac_status); }; }; then
6331   ac_cv_have_decl_printf=yes
6332 else
6333   echo "$as_me: failed program was:" >&5
6334 cat conftest.$ac_ext >&5
6335 ac_cv_have_decl_printf=no
6336 fi
6337 rm -f conftest.$ac_objext conftest.$ac_ext
6338 fi
6339 echo "$as_me:6339: result: $ac_cv_have_decl_printf" >&5
6340 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
6341 if test $ac_cv_have_decl_printf = yes; then
6342
6343 cat >>confdefs.h <<EOF
6344 #define HAVE_DECL_PRINTF 1
6345 EOF
6346
6347 else
6348   cat >>confdefs.h <<EOF
6349 #define HAVE_DECL_PRINTF 0
6350 EOF
6351
6352 fi
6353
6354 echo "$as_me:6354: checking whether sbrk is declared" >&5
6355 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
6356 if test "${ac_cv_have_decl_sbrk+set}" = set; then
6357   echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359   cat >conftest.$ac_ext <<_ACEOF
6360 #line 6360 "configure"
6361 #include "confdefs.h"
6362 $ac_includes_default
6363 int
6364 main ()
6365 {
6366 #ifndef sbrk
6367   char *p = (char *) sbrk;
6368 #endif
6369
6370   ;
6371   return 0;
6372 }
6373 _ACEOF
6374 rm -f conftest.$ac_objext
6375 if { (eval echo "$as_me:6375: \"$ac_compile\"") >&5
6376   (eval $ac_compile) 2>&5
6377   ac_status=$?
6378   echo "$as_me:6378: \$? = $ac_status" >&5
6379   (exit $ac_status); } &&
6380          { ac_try='test -s conftest.$ac_objext'
6381   { (eval echo "$as_me:6381: \"$ac_try\"") >&5
6382   (eval $ac_try) 2>&5
6383   ac_status=$?
6384   echo "$as_me:6384: \$? = $ac_status" >&5
6385   (exit $ac_status); }; }; then
6386   ac_cv_have_decl_sbrk=yes
6387 else
6388   echo "$as_me: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6390 ac_cv_have_decl_sbrk=no
6391 fi
6392 rm -f conftest.$ac_objext conftest.$ac_ext
6393 fi
6394 echo "$as_me:6394: result: $ac_cv_have_decl_sbrk" >&5
6395 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
6396 if test $ac_cv_have_decl_sbrk = yes; then
6397
6398 cat >>confdefs.h <<EOF
6399 #define HAVE_DECL_SBRK 1
6400 EOF
6401
6402 else
6403   cat >>confdefs.h <<EOF
6404 #define HAVE_DECL_SBRK 0
6405 EOF
6406
6407 fi
6408
6409 echo "$as_me:6409: checking whether strcpy is declared" >&5
6410 echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6
6411 if test "${ac_cv_have_decl_strcpy+set}" = set; then
6412   echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414   cat >conftest.$ac_ext <<_ACEOF
6415 #line 6415 "configure"
6416 #include "confdefs.h"
6417 $ac_includes_default
6418 int
6419 main ()
6420 {
6421 #ifndef strcpy
6422   char *p = (char *) strcpy;
6423 #endif
6424
6425   ;
6426   return 0;
6427 }
6428 _ACEOF
6429 rm -f conftest.$ac_objext
6430 if { (eval echo "$as_me:6430: \"$ac_compile\"") >&5
6431   (eval $ac_compile) 2>&5
6432   ac_status=$?
6433   echo "$as_me:6433: \$? = $ac_status" >&5
6434   (exit $ac_status); } &&
6435          { ac_try='test -s conftest.$ac_objext'
6436   { (eval echo "$as_me:6436: \"$ac_try\"") >&5
6437   (eval $ac_try) 2>&5
6438   ac_status=$?
6439   echo "$as_me:6439: \$? = $ac_status" >&5
6440   (exit $ac_status); }; }; then
6441   ac_cv_have_decl_strcpy=yes
6442 else
6443   echo "$as_me: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6445 ac_cv_have_decl_strcpy=no
6446 fi
6447 rm -f conftest.$ac_objext conftest.$ac_ext
6448 fi
6449 echo "$as_me:6449: result: $ac_cv_have_decl_strcpy" >&5
6450 echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6
6451 if test $ac_cv_have_decl_strcpy = yes; then
6452
6453 cat >>confdefs.h <<EOF
6454 #define HAVE_DECL_STRCPY 1
6455 EOF
6456
6457 else
6458   cat >>confdefs.h <<EOF
6459 #define HAVE_DECL_STRCPY 0
6460 EOF
6461
6462 fi
6463
6464 echo "$as_me:6464: checking whether strsignal is declared" >&5
6465 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
6466 if test "${ac_cv_have_decl_strsignal+set}" = set; then
6467   echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469   cat >conftest.$ac_ext <<_ACEOF
6470 #line 6470 "configure"
6471 #include "confdefs.h"
6472 $ac_includes_default
6473 int
6474 main ()
6475 {
6476 #ifndef strsignal
6477   char *p = (char *) strsignal;
6478 #endif
6479
6480   ;
6481   return 0;
6482 }
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (eval echo "$as_me:6485: \"$ac_compile\"") >&5
6486   (eval $ac_compile) 2>&5
6487   ac_status=$?
6488   echo "$as_me:6488: \$? = $ac_status" >&5
6489   (exit $ac_status); } &&
6490          { ac_try='test -s conftest.$ac_objext'
6491   { (eval echo "$as_me:6491: \"$ac_try\"") >&5
6492   (eval $ac_try) 2>&5
6493   ac_status=$?
6494   echo "$as_me:6494: \$? = $ac_status" >&5
6495   (exit $ac_status); }; }; then
6496   ac_cv_have_decl_strsignal=yes
6497 else
6498   echo "$as_me: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6500 ac_cv_have_decl_strsignal=no
6501 fi
6502 rm -f conftest.$ac_objext conftest.$ac_ext
6503 fi
6504 echo "$as_me:6504: result: $ac_cv_have_decl_strsignal" >&5
6505 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
6506 if test $ac_cv_have_decl_strsignal = yes; then
6507
6508 cat >>confdefs.h <<EOF
6509 #define HAVE_DECL_STRSIGNAL 1
6510 EOF
6511
6512 else
6513   cat >>confdefs.h <<EOF
6514 #define HAVE_DECL_STRSIGNAL 0
6515 EOF
6516
6517 fi
6518
6519 echo "$as_me:6519: checking whether strtold is declared" >&5
6520 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
6521 if test "${ac_cv_have_decl_strtold+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   cat >conftest.$ac_ext <<_ACEOF
6525 #line 6525 "configure"
6526 #include "confdefs.h"
6527 $ac_includes_default
6528 int
6529 main ()
6530 {
6531 #ifndef strtold
6532   char *p = (char *) strtold;
6533 #endif
6534
6535   ;
6536   return 0;
6537 }
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:6540: \"$ac_compile\"") >&5
6541   (eval $ac_compile) 2>&5
6542   ac_status=$?
6543   echo "$as_me:6543: \$? = $ac_status" >&5
6544   (exit $ac_status); } &&
6545          { ac_try='test -s conftest.$ac_objext'
6546   { (eval echo "$as_me:6546: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:6549: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   ac_cv_have_decl_strtold=yes
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 ac_cv_have_decl_strtold=no
6556 fi
6557 rm -f conftest.$ac_objext conftest.$ac_ext
6558 fi
6559 echo "$as_me:6559: result: $ac_cv_have_decl_strtold" >&5
6560 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
6561 if test $ac_cv_have_decl_strtold = yes; then
6562
6563 cat >>confdefs.h <<EOF
6564 #define HAVE_DECL_STRTOLD 1
6565 EOF
6566
6567 else
6568   cat >>confdefs.h <<EOF
6569 #define HAVE_DECL_STRTOLD 0
6570 EOF
6571
6572 fi
6573
6574 echo "$as_me:6574: checking for declaration of strtoimax" >&5
6575 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
6576 if test "${bash_cv_decl_strtoimax+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   cat >conftest.$ac_ext <<_ACEOF
6580 #line 6580 "configure"
6581 #include "confdefs.h"
6582
6583 #if STDC_HEADERS
6584 #  include <stdlib.h>
6585 #endif
6586 #if HAVE_INTTYPES_H
6587 #  include <inttypes.h>
6588 #endif
6589
6590 int
6591 main ()
6592 {
6593 return !strtoimax;
6594   ;
6595   return 0;
6596 }
6597 _ACEOF
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:6599: \"$ac_link\"") >&5
6600   (eval $ac_link) 2>&5
6601   ac_status=$?
6602   echo "$as_me:6602: \$? = $ac_status" >&5
6603   (exit $ac_status); } &&
6604          { ac_try='test -s conftest$ac_exeext'
6605   { (eval echo "$as_me:6605: \"$ac_try\"") >&5
6606   (eval $ac_try) 2>&5
6607   ac_status=$?
6608   echo "$as_me:6608: \$? = $ac_status" >&5
6609   (exit $ac_status); }; }; then
6610   bash_cv_decl_strtoimax=yes
6611 else
6612   echo "$as_me: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 bash_cv_decl_strtoimax=no
6615 fi
6616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6617 fi
6618 echo "$as_me:6618: result: $bash_cv_decl_strtoimax" >&5
6619 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
6620 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6621 if test $bash_cv_decl_strtoimax = yes; then
6622   cat >>confdefs.h <<EOF
6623 #define $bash_tr_func 1
6624 EOF
6625
6626 else
6627   cat >>confdefs.h <<EOF
6628 #define $bash_tr_func 0
6629 EOF
6630
6631 fi
6632
6633 echo "$as_me:6633: checking for declaration of strtol" >&5
6634 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
6635 if test "${bash_cv_decl_strtol+set}" = set; then
6636   echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638   cat >conftest.$ac_ext <<_ACEOF
6639 #line 6639 "configure"
6640 #include "confdefs.h"
6641
6642 #if STDC_HEADERS
6643 #  include <stdlib.h>
6644 #endif
6645 #if HAVE_INTTYPES_H
6646 #  include <inttypes.h>
6647 #endif
6648
6649 int
6650 main ()
6651 {
6652 return !strtol;
6653   ;
6654   return 0;
6655 }
6656 _ACEOF
6657 rm -f conftest.$ac_objext conftest$ac_exeext
6658 if { (eval echo "$as_me:6658: \"$ac_link\"") >&5
6659   (eval $ac_link) 2>&5
6660   ac_status=$?
6661   echo "$as_me:6661: \$? = $ac_status" >&5
6662   (exit $ac_status); } &&
6663          { ac_try='test -s conftest$ac_exeext'
6664   { (eval echo "$as_me:6664: \"$ac_try\"") >&5
6665   (eval $ac_try) 2>&5
6666   ac_status=$?
6667   echo "$as_me:6667: \$? = $ac_status" >&5
6668   (exit $ac_status); }; }; then
6669   bash_cv_decl_strtol=yes
6670 else
6671   echo "$as_me: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6673 bash_cv_decl_strtol=no
6674 fi
6675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6676 fi
6677 echo "$as_me:6677: result: $bash_cv_decl_strtol" >&5
6678 echo "${ECHO_T}$bash_cv_decl_strtol" >&6
6679 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6680 if test $bash_cv_decl_strtol = yes; then
6681   cat >>confdefs.h <<EOF
6682 #define $bash_tr_func 1
6683 EOF
6684
6685 else
6686   cat >>confdefs.h <<EOF
6687 #define $bash_tr_func 0
6688 EOF
6689
6690 fi
6691
6692 echo "$as_me:6692: checking for declaration of strtoll" >&5
6693 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
6694 if test "${bash_cv_decl_strtoll+set}" = set; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697   cat >conftest.$ac_ext <<_ACEOF
6698 #line 6698 "configure"
6699 #include "confdefs.h"
6700
6701 #if STDC_HEADERS
6702 #  include <stdlib.h>
6703 #endif
6704 #if HAVE_INTTYPES_H
6705 #  include <inttypes.h>
6706 #endif
6707
6708 int
6709 main ()
6710 {
6711 return !strtoll;
6712   ;
6713   return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext conftest$ac_exeext
6717 if { (eval echo "$as_me:6717: \"$ac_link\"") >&5
6718   (eval $ac_link) 2>&5
6719   ac_status=$?
6720   echo "$as_me:6720: \$? = $ac_status" >&5
6721   (exit $ac_status); } &&
6722          { ac_try='test -s conftest$ac_exeext'
6723   { (eval echo "$as_me:6723: \"$ac_try\"") >&5
6724   (eval $ac_try) 2>&5
6725   ac_status=$?
6726   echo "$as_me:6726: \$? = $ac_status" >&5
6727   (exit $ac_status); }; }; then
6728   bash_cv_decl_strtoll=yes
6729 else
6730   echo "$as_me: failed program was:" >&5
6731 cat conftest.$ac_ext >&5
6732 bash_cv_decl_strtoll=no
6733 fi
6734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6735 fi
6736 echo "$as_me:6736: result: $bash_cv_decl_strtoll" >&5
6737 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
6738 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6739 if test $bash_cv_decl_strtoll = yes; then
6740   cat >>confdefs.h <<EOF
6741 #define $bash_tr_func 1
6742 EOF
6743
6744 else
6745   cat >>confdefs.h <<EOF
6746 #define $bash_tr_func 0
6747 EOF
6748
6749 fi
6750
6751 echo "$as_me:6751: checking for declaration of strtoul" >&5
6752 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
6753 if test "${bash_cv_decl_strtoul+set}" = set; then
6754   echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756   cat >conftest.$ac_ext <<_ACEOF
6757 #line 6757 "configure"
6758 #include "confdefs.h"
6759
6760 #if STDC_HEADERS
6761 #  include <stdlib.h>
6762 #endif
6763 #if HAVE_INTTYPES_H
6764 #  include <inttypes.h>
6765 #endif
6766
6767 int
6768 main ()
6769 {
6770 return !strtoul;
6771   ;
6772   return 0;
6773 }
6774 _ACEOF
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (eval echo "$as_me:6776: \"$ac_link\"") >&5
6777   (eval $ac_link) 2>&5
6778   ac_status=$?
6779   echo "$as_me:6779: \$? = $ac_status" >&5
6780   (exit $ac_status); } &&
6781          { ac_try='test -s conftest$ac_exeext'
6782   { (eval echo "$as_me:6782: \"$ac_try\"") >&5
6783   (eval $ac_try) 2>&5
6784   ac_status=$?
6785   echo "$as_me:6785: \$? = $ac_status" >&5
6786   (exit $ac_status); }; }; then
6787   bash_cv_decl_strtoul=yes
6788 else
6789   echo "$as_me: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 bash_cv_decl_strtoul=no
6792 fi
6793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6794 fi
6795 echo "$as_me:6795: result: $bash_cv_decl_strtoul" >&5
6796 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
6797 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6798 if test $bash_cv_decl_strtoul = yes; then
6799   cat >>confdefs.h <<EOF
6800 #define $bash_tr_func 1
6801 EOF
6802
6803 else
6804   cat >>confdefs.h <<EOF
6805 #define $bash_tr_func 0
6806 EOF
6807
6808 fi
6809
6810 echo "$as_me:6810: checking for declaration of strtoull" >&5
6811 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
6812 if test "${bash_cv_decl_strtoull+set}" = set; then
6813   echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815   cat >conftest.$ac_ext <<_ACEOF
6816 #line 6816 "configure"
6817 #include "confdefs.h"
6818
6819 #if STDC_HEADERS
6820 #  include <stdlib.h>
6821 #endif
6822 #if HAVE_INTTYPES_H
6823 #  include <inttypes.h>
6824 #endif
6825
6826 int
6827 main ()
6828 {
6829 return !strtoull;
6830   ;
6831   return 0;
6832 }
6833 _ACEOF
6834 rm -f conftest.$ac_objext conftest$ac_exeext
6835 if { (eval echo "$as_me:6835: \"$ac_link\"") >&5
6836   (eval $ac_link) 2>&5
6837   ac_status=$?
6838   echo "$as_me:6838: \$? = $ac_status" >&5
6839   (exit $ac_status); } &&
6840          { ac_try='test -s conftest$ac_exeext'
6841   { (eval echo "$as_me:6841: \"$ac_try\"") >&5
6842   (eval $ac_try) 2>&5
6843   ac_status=$?
6844   echo "$as_me:6844: \$? = $ac_status" >&5
6845   (exit $ac_status); }; }; then
6846   bash_cv_decl_strtoull=yes
6847 else
6848   echo "$as_me: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6850 bash_cv_decl_strtoull=no
6851 fi
6852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6853 fi
6854 echo "$as_me:6854: result: $bash_cv_decl_strtoull" >&5
6855 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
6856 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6857 if test $bash_cv_decl_strtoull = yes; then
6858   cat >>confdefs.h <<EOF
6859 #define $bash_tr_func 1
6860 EOF
6861
6862 else
6863   cat >>confdefs.h <<EOF
6864 #define $bash_tr_func 0
6865 EOF
6866
6867 fi
6868
6869 echo "$as_me:6869: checking for declaration of strtoumax" >&5
6870 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
6871 if test "${bash_cv_decl_strtoumax+set}" = set; then
6872   echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874   cat >conftest.$ac_ext <<_ACEOF
6875 #line 6875 "configure"
6876 #include "confdefs.h"
6877
6878 #if STDC_HEADERS
6879 #  include <stdlib.h>
6880 #endif
6881 #if HAVE_INTTYPES_H
6882 #  include <inttypes.h>
6883 #endif
6884
6885 int
6886 main ()
6887 {
6888 return !strtoumax;
6889   ;
6890   return 0;
6891 }
6892 _ACEOF
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (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   bash_cv_decl_strtoumax=yes
6906 else
6907   echo "$as_me: failed program was:" >&5
6908 cat conftest.$ac_ext >&5
6909 bash_cv_decl_strtoumax=no
6910 fi
6911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6912 fi
6913 echo "$as_me:6913: result: $bash_cv_decl_strtoumax" >&5
6914 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
6915 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6916 if test $bash_cv_decl_strtoumax = yes; then
6917   cat >>confdefs.h <<EOF
6918 #define $bash_tr_func 1
6919 EOF
6920
6921 else
6922   cat >>confdefs.h <<EOF
6923 #define $bash_tr_func 0
6924 EOF
6925
6926 fi
6927
6928 for ac_header in sys/time.h unistd.h
6929 do
6930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6931 echo "$as_me:6931: checking for $ac_header" >&5
6932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   cat >conftest.$ac_ext <<_ACEOF
6937 #line 6937 "configure"
6938 #include "confdefs.h"
6939 #include <$ac_header>
6940 _ACEOF
6941 if { (eval echo "$as_me:6941: \"$ac_cpp conftest.$ac_ext\"") >&5
6942   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6943   ac_status=$?
6944   egrep -v '^ *\+' conftest.er1 >conftest.err
6945   rm -f conftest.er1
6946   cat conftest.err >&5
6947   echo "$as_me:6947: \$? = $ac_status" >&5
6948   (exit $ac_status); } >/dev/null; then
6949   if test -s conftest.err; then
6950     ac_cpp_err=$ac_c_preproc_warn_flag
6951   else
6952     ac_cpp_err=
6953   fi
6954 else
6955   ac_cpp_err=yes
6956 fi
6957 if test -z "$ac_cpp_err"; then
6958   eval "$as_ac_Header=yes"
6959 else
6960   echo "$as_me: failed program was:" >&5
6961   cat conftest.$ac_ext >&5
6962   eval "$as_ac_Header=no"
6963 fi
6964 rm -f conftest.err conftest.$ac_ext
6965 fi
6966 echo "$as_me:6966: result: `eval echo '${'$as_ac_Header'}'`" >&5
6967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6969   cat >>confdefs.h <<EOF
6970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6971 EOF
6972
6973 fi
6974 done
6975
6976 for ac_func in alarm
6977 do
6978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6979 echo "$as_me:6979: checking for $ac_func" >&5
6980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6981 if eval "test \"\${$as_ac_var+set}\" = set"; then
6982   echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984   cat >conftest.$ac_ext <<_ACEOF
6985 #line 6985 "configure"
6986 #include "confdefs.h"
6987 /* System header to define __stub macros and hopefully few prototypes,
6988     which can conflict with char $ac_func (); below.  */
6989 #include <assert.h>
6990 /* Override any gcc2 internal prototype to avoid an error.  */
6991 #ifdef __cplusplus
6992 extern "C"
6993 #endif
6994 /* We use char because int might match the return type of a gcc2
6995    builtin and then its argument prototype would still apply.  */
6996 char $ac_func ();
6997 char (*f) ();
6998
6999 int
7000 main ()
7001 {
7002 /* The GNU C library defines this for functions which it implements
7003     to always fail with ENOSYS.  Some functions are actually named
7004     something starting with __ and the normal name is an alias.  */
7005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7006 choke me
7007 #else
7008 f = $ac_func;
7009 #endif
7010
7011   ;
7012   return 0;
7013 }
7014 _ACEOF
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (eval echo "$as_me:7016: \"$ac_link\"") >&5
7017   (eval $ac_link) 2>&5
7018   ac_status=$?
7019   echo "$as_me:7019: \$? = $ac_status" >&5
7020   (exit $ac_status); } &&
7021          { ac_try='test -s conftest$ac_exeext'
7022   { (eval echo "$as_me:7022: \"$ac_try\"") >&5
7023   (eval $ac_try) 2>&5
7024   ac_status=$?
7025   echo "$as_me:7025: \$? = $ac_status" >&5
7026   (exit $ac_status); }; }; then
7027   eval "$as_ac_var=yes"
7028 else
7029   echo "$as_me: failed program was:" >&5
7030 cat conftest.$ac_ext >&5
7031 eval "$as_ac_var=no"
7032 fi
7033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7034 fi
7035 echo "$as_me:7035: result: `eval echo '${'$as_ac_var'}'`" >&5
7036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7037 if test `eval echo '${'$as_ac_var'}'` = yes; then
7038   cat >>confdefs.h <<EOF
7039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7040 EOF
7041
7042 fi
7043 done
7044
7045 echo "$as_me:7045: checking for working mktime" >&5
7046 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
7047 if test "${ac_cv_func_working_mktime+set}" = set; then
7048   echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050   if test "$cross_compiling" = yes; then
7051   ac_cv_func_working_mktime=no
7052 else
7053   cat >conftest.$ac_ext <<_ACEOF
7054 #line 7054 "configure"
7055 #include "confdefs.h"
7056 /* Test program from Paul Eggert and Tony Leneis.  */
7057 #if TIME_WITH_SYS_TIME
7058 # include <sys/time.h>
7059 # include <time.h>
7060 #else
7061 # if HAVE_SYS_TIME_H
7062 #  include <sys/time.h>
7063 # else
7064 #  include <time.h>
7065 # endif
7066 #endif
7067
7068 #if HAVE_UNISTD_H
7069 # include <unistd.h>
7070 #endif
7071
7072 #if !HAVE_ALARM
7073 # define alarm(X) /* empty */
7074 #endif
7075
7076 /* Work around redefinition to rpl_putenv by other config tests.  */
7077 #undef putenv
7078
7079 static time_t time_t_max;
7080
7081 /* Values we'll use to set the TZ environment variable.  */
7082 static const char *const tz_strings[] = {
7083   (const char *) 0, "TZ=GMT0", "TZ=JST-9",
7084   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
7085 };
7086 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
7087
7088 /* Fail if mktime fails to convert a date in the spring-forward gap.
7089    Based on a problem report from Andreas Jaeger.  */
7090 static void
7091 spring_forward_gap ()
7092 {
7093   /* glibc (up to about 1998-10-07) failed this test. */
7094   struct tm tm;
7095
7096   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
7097      instead of "TZ=America/Vancouver" in order to detect the bug even
7098      on systems that don't support the Olson extension, or don't have the
7099      full zoneinfo tables installed.  */
7100   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
7101
7102   tm.tm_year = 98;
7103   tm.tm_mon = 3;
7104   tm.tm_mday = 5;
7105   tm.tm_hour = 2;
7106   tm.tm_min = 0;
7107   tm.tm_sec = 0;
7108   tm.tm_isdst = -1;
7109   if (mktime (&tm) == (time_t)-1)
7110     exit (1);
7111 }
7112
7113 static void
7114 mktime_test (now)
7115      time_t now;
7116 {
7117   struct tm *lt;
7118   if ((lt = localtime (&now)) && mktime (lt) != now)
7119     exit (1);
7120   now = time_t_max - now;
7121   if ((lt = localtime (&now)) && mktime (lt) != now)
7122     exit (1);
7123 }
7124
7125 static void
7126 irix_6_4_bug ()
7127 {
7128   /* Based on code from Ariel Faigon.  */
7129   struct tm tm;
7130   tm.tm_year = 96;
7131   tm.tm_mon = 3;
7132   tm.tm_mday = 0;
7133   tm.tm_hour = 0;
7134   tm.tm_min = 0;
7135   tm.tm_sec = 0;
7136   tm.tm_isdst = -1;
7137   mktime (&tm);
7138   if (tm.tm_mon != 2 || tm.tm_mday != 31)
7139     exit (1);
7140 }
7141
7142 static void
7143 bigtime_test (j)
7144      int j;
7145 {
7146   struct tm tm;
7147   time_t now;
7148   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
7149   now = mktime (&tm);
7150   if (now != (time_t) -1)
7151     {
7152       struct tm *lt = localtime (&now);
7153       if (! (lt
7154              && lt->tm_year == tm.tm_year
7155              && lt->tm_mon == tm.tm_mon
7156              && lt->tm_mday == tm.tm_mday
7157              && lt->tm_hour == tm.tm_hour
7158              && lt->tm_min == tm.tm_min
7159              && lt->tm_sec == tm.tm_sec
7160              && lt->tm_yday == tm.tm_yday
7161              && lt->tm_wday == tm.tm_wday
7162              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
7163                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
7164         exit (1);
7165     }
7166 }
7167
7168 int
7169 main ()
7170 {
7171   time_t t, delta;
7172   int i, j;
7173
7174   /* This test makes some buggy mktime implementations loop.
7175      Give up after 60 seconds; a mktime slower than that
7176      isn't worth using anyway.  */
7177   alarm (60);
7178
7179   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
7180     continue;
7181   time_t_max--;
7182   delta = time_t_max / 997; /* a suitable prime number */
7183   for (i = 0; i < N_STRINGS; i++)
7184     {
7185       if (tz_strings[i])
7186         putenv (tz_strings[i]);
7187
7188       for (t = 0; t <= time_t_max - delta; t += delta)
7189         mktime_test (t);
7190       mktime_test ((time_t) 60 * 60);
7191       mktime_test ((time_t) 60 * 60 * 24);
7192
7193       for (j = 1; 0 < j; j *= 2)
7194         bigtime_test (j);
7195       bigtime_test (j - 1);
7196     }
7197   irix_6_4_bug ();
7198   spring_forward_gap ();
7199   exit (0);
7200 }
7201 _ACEOF
7202 rm -f conftest$ac_exeext
7203 if { (eval echo "$as_me:7203: \"$ac_link\"") >&5
7204   (eval $ac_link) 2>&5
7205   ac_status=$?
7206   echo "$as_me:7206: \$? = $ac_status" >&5
7207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7208   { (eval echo "$as_me:7208: \"$ac_try\"") >&5
7209   (eval $ac_try) 2>&5
7210   ac_status=$?
7211   echo "$as_me:7211: \$? = $ac_status" >&5
7212   (exit $ac_status); }; }; then
7213   ac_cv_func_working_mktime=yes
7214 else
7215   echo "$as_me: program exited with status $ac_status" >&5
7216 echo "$as_me: failed program was:" >&5
7217 cat conftest.$ac_ext >&5
7218 ac_cv_func_working_mktime=no
7219 fi
7220 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7221 fi
7222 fi
7223 echo "$as_me:7223: result: $ac_cv_func_working_mktime" >&5
7224 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
7225 if test $ac_cv_func_working_mktime = no; then
7226   LIBOBJS="$LIBOBJS mktime.$ac_objext"
7227 fi
7228
7229 for ac_header in libintl.h
7230 do
7231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7232 echo "$as_me:7232: checking for $ac_header" >&5
7233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7235   echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237   cat >conftest.$ac_ext <<_ACEOF
7238 #line 7238 "configure"
7239 #include "confdefs.h"
7240 #include <$ac_header>
7241 _ACEOF
7242 if { (eval echo "$as_me:7242: \"$ac_cpp conftest.$ac_ext\"") >&5
7243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7244   ac_status=$?
7245   egrep -v '^ *\+' conftest.er1 >conftest.err
7246   rm -f conftest.er1
7247   cat conftest.err >&5
7248   echo "$as_me:7248: \$? = $ac_status" >&5
7249   (exit $ac_status); } >/dev/null; then
7250   if test -s conftest.err; then
7251     ac_cpp_err=$ac_c_preproc_warn_flag
7252   else
7253     ac_cpp_err=
7254   fi
7255 else
7256   ac_cpp_err=yes
7257 fi
7258 if test -z "$ac_cpp_err"; then
7259   eval "$as_ac_Header=yes"
7260 else
7261   echo "$as_me: failed program was:" >&5
7262   cat conftest.$ac_ext >&5
7263   eval "$as_ac_Header=no"
7264 fi
7265 rm -f conftest.err conftest.$ac_ext
7266 fi
7267 echo "$as_me:7267: result: `eval echo '${'$as_ac_Header'}'`" >&5
7268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7270   cat >>confdefs.h <<EOF
7271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7272 EOF
7273
7274 fi
7275 done
7276
7277 for ac_func in gettext textdomain bindtextdomain
7278 do
7279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7280 echo "$as_me:7280: checking for $ac_func" >&5
7281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7282 if eval "test \"\${$as_ac_var+set}\" = set"; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   cat >conftest.$ac_ext <<_ACEOF
7286 #line 7286 "configure"
7287 #include "confdefs.h"
7288 /* System header to define __stub macros and hopefully few prototypes,
7289     which can conflict with char $ac_func (); below.  */
7290 #include <assert.h>
7291 /* Override any gcc2 internal prototype to avoid an error.  */
7292 #ifdef __cplusplus
7293 extern "C"
7294 #endif
7295 /* We use char because int might match the return type of a gcc2
7296    builtin and then its argument prototype would still apply.  */
7297 char $ac_func ();
7298 char (*f) ();
7299
7300 int
7301 main ()
7302 {
7303 /* The GNU C library defines this for functions which it implements
7304     to always fail with ENOSYS.  Some functions are actually named
7305     something starting with __ and the normal name is an alias.  */
7306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7307 choke me
7308 #else
7309 f = $ac_func;
7310 #endif
7311
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (eval echo "$as_me:7317: \"$ac_link\"") >&5
7318   (eval $ac_link) 2>&5
7319   ac_status=$?
7320   echo "$as_me:7320: \$? = $ac_status" >&5
7321   (exit $ac_status); } &&
7322          { ac_try='test -s conftest$ac_exeext'
7323   { (eval echo "$as_me:7323: \"$ac_try\"") >&5
7324   (eval $ac_try) 2>&5
7325   ac_status=$?
7326   echo "$as_me:7326: \$? = $ac_status" >&5
7327   (exit $ac_status); }; }; then
7328   eval "$as_ac_var=yes"
7329 else
7330   echo "$as_me: failed program was:" >&5
7331 cat conftest.$ac_ext >&5
7332 eval "$as_ac_var=no"
7333 fi
7334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7335 fi
7336 echo "$as_me:7336: result: `eval echo '${'$as_ac_var'}'`" >&5
7337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7338 if test `eval echo '${'$as_ac_var'}'` = yes; then
7339   cat >>confdefs.h <<EOF
7340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7341 EOF
7342
7343 fi
7344 done
7345
7346 if test "$ac_cv_func_bindtextdomain" = "no"; then
7347
7348 echo "$as_me:7348: checking for bindtextdomain in -lintl" >&5
7349 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7350 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7351   echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353   ac_check_lib_save_LIBS=$LIBS
7354 LIBS="-lintl  $LIBS"
7355 cat >conftest.$ac_ext <<_ACEOF
7356 #line 7356 "configure"
7357 #include "confdefs.h"
7358
7359 /* Override any gcc2 internal prototype to avoid an error.  */
7360 #ifdef __cplusplus
7361 extern "C"
7362 #endif
7363 /* We use char because int might match the return type of a gcc2
7364    builtin and then its argument prototype would still apply.  */
7365 char bindtextdomain ();
7366 int
7367 main ()
7368 {
7369 bindtextdomain ();
7370   ;
7371   return 0;
7372 }
7373 _ACEOF
7374 rm -f conftest.$ac_objext conftest$ac_exeext
7375 if { (eval echo "$as_me:7375: \"$ac_link\"") >&5
7376   (eval $ac_link) 2>&5
7377   ac_status=$?
7378   echo "$as_me:7378: \$? = $ac_status" >&5
7379   (exit $ac_status); } &&
7380          { ac_try='test -s conftest$ac_exeext'
7381   { (eval echo "$as_me:7381: \"$ac_try\"") >&5
7382   (eval $ac_try) 2>&5
7383   ac_status=$?
7384   echo "$as_me:7384: \$? = $ac_status" >&5
7385   (exit $ac_status); }; }; then
7386   ac_cv_lib_intl_bindtextdomain=yes
7387 else
7388   echo "$as_me: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7390 ac_cv_lib_intl_bindtextdomain=no
7391 fi
7392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7393 LIBS=$ac_check_lib_save_LIBS
7394 fi
7395 echo "$as_me:7395: result: $ac_cv_lib_intl_bindtextdomain" >&5
7396 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7397 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7398   cat >>confdefs.h <<EOF
7399 #define HAVE_LIBINTL 1
7400 EOF
7401
7402   LIBS="-lintl $LIBS"
7403
7404 fi
7405
7406     if test "$ac_cv_lib_intl" = "yes"; then
7407
7408 for ac_func in gettext textdomain bindtextdomain
7409 do
7410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7411 echo "$as_me:7411: checking for $ac_func" >&5
7412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7413 if eval "test \"\${$as_ac_var+set}\" = set"; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   cat >conftest.$ac_ext <<_ACEOF
7417 #line 7417 "configure"
7418 #include "confdefs.h"
7419 /* System header to define __stub macros and hopefully few prototypes,
7420     which can conflict with char $ac_func (); below.  */
7421 #include <assert.h>
7422 /* Override any gcc2 internal prototype to avoid an error.  */
7423 #ifdef __cplusplus
7424 extern "C"
7425 #endif
7426 /* We use char because int might match the return type of a gcc2
7427    builtin and then its argument prototype would still apply.  */
7428 char $ac_func ();
7429 char (*f) ();
7430
7431 int
7432 main ()
7433 {
7434 /* The GNU C library defines this for functions which it implements
7435     to always fail with ENOSYS.  Some functions are actually named
7436     something starting with __ and the normal name is an alias.  */
7437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7438 choke me
7439 #else
7440 f = $ac_func;
7441 #endif
7442
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 rm -f conftest.$ac_objext conftest$ac_exeext
7448 if { (eval echo "$as_me:7448: \"$ac_link\"") >&5
7449   (eval $ac_link) 2>&5
7450   ac_status=$?
7451   echo "$as_me:7451: \$? = $ac_status" >&5
7452   (exit $ac_status); } &&
7453          { ac_try='test -s conftest$ac_exeext'
7454   { (eval echo "$as_me:7454: \"$ac_try\"") >&5
7455   (eval $ac_try) 2>&5
7456   ac_status=$?
7457   echo "$as_me:7457: \$? = $ac_status" >&5
7458   (exit $ac_status); }; }; then
7459   eval "$as_ac_var=yes"
7460 else
7461   echo "$as_me: failed program was:" >&5
7462 cat conftest.$ac_ext >&5
7463 eval "$as_ac_var=no"
7464 fi
7465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7466 fi
7467 echo "$as_me:7467: result: `eval echo '${'$as_ac_var'}'`" >&5
7468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7469 if test `eval echo '${'$as_ac_var'}'` = yes; then
7470   cat >>confdefs.h <<EOF
7471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7472 EOF
7473
7474 fi
7475 done
7476
7477     fi
7478 fi
7479
7480 for ac_header in wctype.h
7481 do
7482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7483 echo "$as_me:7483: checking for $ac_header" >&5
7484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7486   echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488   cat >conftest.$ac_ext <<_ACEOF
7489 #line 7489 "configure"
7490 #include "confdefs.h"
7491 #include <$ac_header>
7492 _ACEOF
7493 if { (eval echo "$as_me:7493: \"$ac_cpp conftest.$ac_ext\"") >&5
7494   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7495   ac_status=$?
7496   egrep -v '^ *\+' conftest.er1 >conftest.err
7497   rm -f conftest.er1
7498   cat conftest.err >&5
7499   echo "$as_me:7499: \$? = $ac_status" >&5
7500   (exit $ac_status); } >/dev/null; then
7501   if test -s conftest.err; then
7502     ac_cpp_err=$ac_c_preproc_warn_flag
7503   else
7504     ac_cpp_err=
7505   fi
7506 else
7507   ac_cpp_err=yes
7508 fi
7509 if test -z "$ac_cpp_err"; then
7510   eval "$as_ac_Header=yes"
7511 else
7512   echo "$as_me: failed program was:" >&5
7513   cat conftest.$ac_ext >&5
7514   eval "$as_ac_Header=no"
7515 fi
7516 rm -f conftest.err conftest.$ac_ext
7517 fi
7518 echo "$as_me:7518: result: `eval echo '${'$as_ac_Header'}'`" >&5
7519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7521   cat >>confdefs.h <<EOF
7522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7523 EOF
7524
7525 fi
7526 done
7527
7528 for ac_header in wchar.h
7529 do
7530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7531 echo "$as_me:7531: checking for $ac_header" >&5
7532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7534   echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536   cat >conftest.$ac_ext <<_ACEOF
7537 #line 7537 "configure"
7538 #include "confdefs.h"
7539 #include <$ac_header>
7540 _ACEOF
7541 if { (eval echo "$as_me:7541: \"$ac_cpp conftest.$ac_ext\"") >&5
7542   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7543   ac_status=$?
7544   egrep -v '^ *\+' conftest.er1 >conftest.err
7545   rm -f conftest.er1
7546   cat conftest.err >&5
7547   echo "$as_me:7547: \$? = $ac_status" >&5
7548   (exit $ac_status); } >/dev/null; then
7549   if test -s conftest.err; then
7550     ac_cpp_err=$ac_c_preproc_warn_flag
7551   else
7552     ac_cpp_err=
7553   fi
7554 else
7555   ac_cpp_err=yes
7556 fi
7557 if test -z "$ac_cpp_err"; then
7558   eval "$as_ac_Header=yes"
7559 else
7560   echo "$as_me: failed program was:" >&5
7561   cat conftest.$ac_ext >&5
7562   eval "$as_ac_Header=no"
7563 fi
7564 rm -f conftest.err conftest.$ac_ext
7565 fi
7566 echo "$as_me:7566: result: `eval echo '${'$as_ac_Header'}'`" >&5
7567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7569   cat >>confdefs.h <<EOF
7570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7571 EOF
7572
7573 fi
7574 done
7575
7576 for ac_header in langinfo.h
7577 do
7578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7579 echo "$as_me:7579: checking for $ac_header" >&5
7580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7582   echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584   cat >conftest.$ac_ext <<_ACEOF
7585 #line 7585 "configure"
7586 #include "confdefs.h"
7587 #include <$ac_header>
7588 _ACEOF
7589 if { (eval echo "$as_me:7589: \"$ac_cpp conftest.$ac_ext\"") >&5
7590   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7591   ac_status=$?
7592   egrep -v '^ *\+' conftest.er1 >conftest.err
7593   rm -f conftest.er1
7594   cat conftest.err >&5
7595   echo "$as_me:7595: \$? = $ac_status" >&5
7596   (exit $ac_status); } >/dev/null; then
7597   if test -s conftest.err; then
7598     ac_cpp_err=$ac_c_preproc_warn_flag
7599   else
7600     ac_cpp_err=
7601   fi
7602 else
7603   ac_cpp_err=yes
7604 fi
7605 if test -z "$ac_cpp_err"; then
7606   eval "$as_ac_Header=yes"
7607 else
7608   echo "$as_me: failed program was:" >&5
7609   cat conftest.$ac_ext >&5
7610   eval "$as_ac_Header=no"
7611 fi
7612 rm -f conftest.err conftest.$ac_ext
7613 fi
7614 echo "$as_me:7614: result: `eval echo '${'$as_ac_Header'}'`" >&5
7615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7617   cat >>confdefs.h <<EOF
7618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7619 EOF
7620
7621 fi
7622 done
7623
7624 echo "$as_me:7624: checking for mbsrtowcs" >&5
7625 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
7626 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
7627   echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629   cat >conftest.$ac_ext <<_ACEOF
7630 #line 7630 "configure"
7631 #include "confdefs.h"
7632 /* System header to define __stub macros and hopefully few prototypes,
7633     which can conflict with char mbsrtowcs (); below.  */
7634 #include <assert.h>
7635 /* Override any gcc2 internal prototype to avoid an error.  */
7636 #ifdef __cplusplus
7637 extern "C"
7638 #endif
7639 /* We use char because int might match the return type of a gcc2
7640    builtin and then its argument prototype would still apply.  */
7641 char mbsrtowcs ();
7642 char (*f) ();
7643
7644 int
7645 main ()
7646 {
7647 /* The GNU C library defines this for functions which it implements
7648     to always fail with ENOSYS.  Some functions are actually named
7649     something starting with __ and the normal name is an alias.  */
7650 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
7651 choke me
7652 #else
7653 f = mbsrtowcs;
7654 #endif
7655
7656   ;
7657   return 0;
7658 }
7659 _ACEOF
7660 rm -f conftest.$ac_objext conftest$ac_exeext
7661 if { (eval echo "$as_me:7661: \"$ac_link\"") >&5
7662   (eval $ac_link) 2>&5
7663   ac_status=$?
7664   echo "$as_me:7664: \$? = $ac_status" >&5
7665   (exit $ac_status); } &&
7666          { ac_try='test -s conftest$ac_exeext'
7667   { (eval echo "$as_me:7667: \"$ac_try\"") >&5
7668   (eval $ac_try) 2>&5
7669   ac_status=$?
7670   echo "$as_me:7670: \$? = $ac_status" >&5
7671   (exit $ac_status); }; }; then
7672   ac_cv_func_mbsrtowcs=yes
7673 else
7674   echo "$as_me: failed program was:" >&5
7675 cat conftest.$ac_ext >&5
7676 ac_cv_func_mbsrtowcs=no
7677 fi
7678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7679 fi
7680 echo "$as_me:7680: result: $ac_cv_func_mbsrtowcs" >&5
7681 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
7682 if test $ac_cv_func_mbsrtowcs = yes; then
7683   cat >>confdefs.h <<\EOF
7684 #define HAVE_MBSRTOWCS 1
7685 EOF
7686
7687 fi
7688
7689 echo "$as_me:7689: checking for wcwidth" >&5
7690 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
7691 if test "${ac_cv_func_wcwidth+set}" = set; then
7692   echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694   cat >conftest.$ac_ext <<_ACEOF
7695 #line 7695 "configure"
7696 #include "confdefs.h"
7697 /* System header to define __stub macros and hopefully few prototypes,
7698     which can conflict with char wcwidth (); below.  */
7699 #include <assert.h>
7700 /* Override any gcc2 internal prototype to avoid an error.  */
7701 #ifdef __cplusplus
7702 extern "C"
7703 #endif
7704 /* We use char because int might match the return type of a gcc2
7705    builtin and then its argument prototype would still apply.  */
7706 char wcwidth ();
7707 char (*f) ();
7708
7709 int
7710 main ()
7711 {
7712 /* The GNU C library defines this for functions which it implements
7713     to always fail with ENOSYS.  Some functions are actually named
7714     something starting with __ and the normal name is an alias.  */
7715 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
7716 choke me
7717 #else
7718 f = wcwidth;
7719 #endif
7720
7721   ;
7722   return 0;
7723 }
7724 _ACEOF
7725 rm -f conftest.$ac_objext conftest$ac_exeext
7726 if { (eval echo "$as_me:7726: \"$ac_link\"") >&5
7727   (eval $ac_link) 2>&5
7728   ac_status=$?
7729   echo "$as_me:7729: \$? = $ac_status" >&5
7730   (exit $ac_status); } &&
7731          { ac_try='test -s conftest$ac_exeext'
7732   { (eval echo "$as_me:7732: \"$ac_try\"") >&5
7733   (eval $ac_try) 2>&5
7734   ac_status=$?
7735   echo "$as_me:7735: \$? = $ac_status" >&5
7736   (exit $ac_status); }; }; then
7737   ac_cv_func_wcwidth=yes
7738 else
7739   echo "$as_me: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7741 ac_cv_func_wcwidth=no
7742 fi
7743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7744 fi
7745 echo "$as_me:7745: result: $ac_cv_func_wcwidth" >&5
7746 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
7747 if test $ac_cv_func_wcwidth = yes; then
7748   cat >>confdefs.h <<\EOF
7749 #define HAVE_WCWIDTH 1
7750 EOF
7751
7752 fi
7753
7754 echo "$as_me:7754: checking for mbstate_t" >&5
7755 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
7756 if test "${bash_cv_have_mbstate_t+set}" = set; then
7757   echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759   if test "$cross_compiling" = yes; then
7760   { { echo "$as_me:7760: error: cannot run test program while cross compiling" >&5
7761 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7762    { (exit 1); exit 1; }; }
7763 else
7764   cat >conftest.$ac_ext <<_ACEOF
7765 #line 7765 "configure"
7766 #include "confdefs.h"
7767
7768 #include <wchar.h>
7769 int
7770 main ()
7771 {
7772   mbstate_t ps;
7773   return 0;
7774 }
7775 _ACEOF
7776 rm -f conftest$ac_exeext
7777 if { (eval echo "$as_me:7777: \"$ac_link\"") >&5
7778   (eval $ac_link) 2>&5
7779   ac_status=$?
7780   echo "$as_me:7780: \$? = $ac_status" >&5
7781   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7782   { (eval echo "$as_me:7782: \"$ac_try\"") >&5
7783   (eval $ac_try) 2>&5
7784   ac_status=$?
7785   echo "$as_me:7785: \$? = $ac_status" >&5
7786   (exit $ac_status); }; }; then
7787   bash_cv_have_mbstate_t=yes
7788 else
7789   echo "$as_me: program exited with status $ac_status" >&5
7790 echo "$as_me: failed program was:" >&5
7791 cat conftest.$ac_ext >&5
7792 bash_cv_have_mbstate_t=no
7793 fi
7794 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7795 fi
7796 fi
7797 echo "$as_me:7797: result: $bash_cv_have_mbstate_t" >&5
7798 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
7799 if test $bash_cv_have_mbstate_t = yes; then
7800         cat >>confdefs.h <<\EOF
7801 #define HAVE_MBSTATE_T 1
7802 EOF
7803
7804 fi
7805
7806 echo "$as_me:7806: checking for nl_langinfo and CODESET" >&5
7807 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7808 if test "${bash_cv_langinfo_codeset+set}" = set; then
7809   echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811   cat >conftest.$ac_ext <<_ACEOF
7812 #line 7812 "configure"
7813 #include "confdefs.h"
7814 #include <langinfo.h>
7815 int
7816 main ()
7817 {
7818 char* cs = nl_langinfo(CODESET);
7819   ;
7820   return 0;
7821 }
7822 _ACEOF
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (eval echo "$as_me:7824: \"$ac_link\"") >&5
7825   (eval $ac_link) 2>&5
7826   ac_status=$?
7827   echo "$as_me:7827: \$? = $ac_status" >&5
7828   (exit $ac_status); } &&
7829          { ac_try='test -s conftest$ac_exeext'
7830   { (eval echo "$as_me:7830: \"$ac_try\"") >&5
7831   (eval $ac_try) 2>&5
7832   ac_status=$?
7833   echo "$as_me:7833: \$? = $ac_status" >&5
7834   (exit $ac_status); }; }; then
7835   bash_cv_langinfo_codeset=yes
7836 else
7837   echo "$as_me: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 bash_cv_langinfo_codeset=no
7840 fi
7841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7842 fi
7843 echo "$as_me:7843: result: $bash_cv_langinfo_codeset" >&5
7844 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
7845 if test $bash_cv_langinfo_codeset = yes; then
7846   cat >>confdefs.h <<\EOF
7847 #define HAVE_LANGINFO_CODESET 1
7848 EOF
7849
7850 fi
7851
7852 if test "$opt_static_link" != yes; then
7853
7854 echo "$as_me:7854: checking for dlopen in -ldl" >&5
7855 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7856 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7857   echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859   ac_check_lib_save_LIBS=$LIBS
7860 LIBS="-ldl  $LIBS"
7861 cat >conftest.$ac_ext <<_ACEOF
7862 #line 7862 "configure"
7863 #include "confdefs.h"
7864
7865 /* Override any gcc2 internal prototype to avoid an error.  */
7866 #ifdef __cplusplus
7867 extern "C"
7868 #endif
7869 /* We use char because int might match the return type of a gcc2
7870    builtin and then its argument prototype would still apply.  */
7871 char dlopen ();
7872 int
7873 main ()
7874 {
7875 dlopen ();
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:7881: \"$ac_link\"") >&5
7882   (eval $ac_link) 2>&5
7883   ac_status=$?
7884   echo "$as_me:7884: \$? = $ac_status" >&5
7885   (exit $ac_status); } &&
7886          { ac_try='test -s conftest$ac_exeext'
7887   { (eval echo "$as_me:7887: \"$ac_try\"") >&5
7888   (eval $ac_try) 2>&5
7889   ac_status=$?
7890   echo "$as_me:7890: \$? = $ac_status" >&5
7891   (exit $ac_status); }; }; then
7892   ac_cv_lib_dl_dlopen=yes
7893 else
7894   echo "$as_me: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7896 ac_cv_lib_dl_dlopen=no
7897 fi
7898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7899 LIBS=$ac_check_lib_save_LIBS
7900 fi
7901 echo "$as_me:7901: result: $ac_cv_lib_dl_dlopen" >&5
7902 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7903 if test $ac_cv_lib_dl_dlopen = yes; then
7904   cat >>confdefs.h <<EOF
7905 #define HAVE_LIBDL 1
7906 EOF
7907
7908   LIBS="-ldl $LIBS"
7909
7910 fi
7911
7912 for ac_func in dlopen dlclose dlsym
7913 do
7914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7915 echo "$as_me:7915: checking for $ac_func" >&5
7916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7917 if eval "test \"\${$as_ac_var+set}\" = set"; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   cat >conftest.$ac_ext <<_ACEOF
7921 #line 7921 "configure"
7922 #include "confdefs.h"
7923 /* System header to define __stub macros and hopefully few prototypes,
7924     which can conflict with char $ac_func (); below.  */
7925 #include <assert.h>
7926 /* Override any gcc2 internal prototype to avoid an error.  */
7927 #ifdef __cplusplus
7928 extern "C"
7929 #endif
7930 /* We use char because int might match the return type of a gcc2
7931    builtin and then its argument prototype would still apply.  */
7932 char $ac_func ();
7933 char (*f) ();
7934
7935 int
7936 main ()
7937 {
7938 /* The GNU C library defines this for functions which it implements
7939     to always fail with ENOSYS.  Some functions are actually named
7940     something starting with __ and the normal name is an alias.  */
7941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7942 choke me
7943 #else
7944 f = $ac_func;
7945 #endif
7946
7947   ;
7948   return 0;
7949 }
7950 _ACEOF
7951 rm -f conftest.$ac_objext conftest$ac_exeext
7952 if { (eval echo "$as_me:7952: \"$ac_link\"") >&5
7953   (eval $ac_link) 2>&5
7954   ac_status=$?
7955   echo "$as_me:7955: \$? = $ac_status" >&5
7956   (exit $ac_status); } &&
7957          { ac_try='test -s conftest$ac_exeext'
7958   { (eval echo "$as_me:7958: \"$ac_try\"") >&5
7959   (eval $ac_try) 2>&5
7960   ac_status=$?
7961   echo "$as_me:7961: \$? = $ac_status" >&5
7962   (exit $ac_status); }; }; then
7963   eval "$as_ac_var=yes"
7964 else
7965   echo "$as_me: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7967 eval "$as_ac_var=no"
7968 fi
7969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7970 fi
7971 echo "$as_me:7971: result: `eval echo '${'$as_ac_var'}'`" >&5
7972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7973 if test `eval echo '${'$as_ac_var'}'` = yes; then
7974   cat >>confdefs.h <<EOF
7975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7976 EOF
7977
7978 fi
7979 done
7980
7981 fi
7982
7983 echo "$as_me:7983: checking for sys_siglist declaration in signal.h or unistd.h" >&5
7984 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
7985 if test "${ac_cv_decl_sys_siglist+set}" = set; then
7986   echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988   cat >conftest.$ac_ext <<_ACEOF
7989 #line 7989 "configure"
7990 #include "confdefs.h"
7991 #include <sys/types.h>
7992 #include <signal.h>
7993 /* NetBSD declares sys_siglist in unistd.h.  */
7994 #if HAVE_UNISTD_H
7995 # include <unistd.h>
7996 #endif
7997
7998 int
7999 main ()
8000 {
8001 char *msg = *(sys_siglist + 1);
8002   ;
8003   return 0;
8004 }
8005 _ACEOF
8006 rm -f conftest.$ac_objext
8007 if { (eval echo "$as_me:8007: \"$ac_compile\"") >&5
8008   (eval $ac_compile) 2>&5
8009   ac_status=$?
8010   echo "$as_me:8010: \$? = $ac_status" >&5
8011   (exit $ac_status); } &&
8012          { ac_try='test -s conftest.$ac_objext'
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   ac_cv_decl_sys_siglist=yes
8019 else
8020   echo "$as_me: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8022 ac_cv_decl_sys_siglist=no
8023 fi
8024 rm -f conftest.$ac_objext conftest.$ac_ext
8025 fi
8026 echo "$as_me:8026: result: $ac_cv_decl_sys_siglist" >&5
8027 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
8028 if test $ac_cv_decl_sys_siglist = yes; then
8029
8030 cat >>confdefs.h <<\EOF
8031 #define SYS_SIGLIST_DECLARED 1
8032 EOF
8033
8034 fi
8035
8036 if test "$ac_cv_func_inet_aton" != 'yes'; then
8037
8038 echo "$as_me:8038: checking for inet_aton" >&5
8039 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8040 if test "${bash_cv_func_inet_aton+set}" = set; then
8041   echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043   cat >conftest.$ac_ext <<_ACEOF
8044 #line 8044 "configure"
8045 #include "confdefs.h"
8046
8047 #include <sys/types.h>
8048 #include <netinet/in.h>
8049 #include <arpa/inet.h>
8050 struct in_addr ap;
8051 int
8052 main ()
8053 {
8054  inet_aton("127.0.0.1", &ap);
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (eval echo "$as_me:8060: \"$ac_link\"") >&5
8061   (eval $ac_link) 2>&5
8062   ac_status=$?
8063   echo "$as_me:8063: \$? = $ac_status" >&5
8064   (exit $ac_status); } &&
8065          { ac_try='test -s conftest$ac_exeext'
8066   { (eval echo "$as_me:8066: \"$ac_try\"") >&5
8067   (eval $ac_try) 2>&5
8068   ac_status=$?
8069   echo "$as_me:8069: \$? = $ac_status" >&5
8070   (exit $ac_status); }; }; then
8071   bash_cv_func_inet_aton=yes
8072 else
8073   echo "$as_me: failed program was:" >&5
8074 cat conftest.$ac_ext >&5
8075 bash_cv_func_inet_aton=no
8076 fi
8077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8078 fi
8079 echo "$as_me:8079: result: $bash_cv_func_inet_aton" >&5
8080 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
8081 if test $bash_cv_func_inet_aton = yes; then
8082   cat >>confdefs.h <<\EOF
8083 #define HAVE_INET_ATON 1
8084 EOF
8085
8086 else
8087   LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8088 fi
8089
8090 fi
8091
8092 case "$host_os" in
8093 irix4*)
8094 echo "$as_me:8094: checking for getpwent in -lsun" >&5
8095 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
8096 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
8097   echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099   ac_check_lib_save_LIBS=$LIBS
8100 LIBS="-lsun  $LIBS"
8101 cat >conftest.$ac_ext <<_ACEOF
8102 #line 8102 "configure"
8103 #include "confdefs.h"
8104
8105 /* Override any gcc2 internal prototype to avoid an error.  */
8106 #ifdef __cplusplus
8107 extern "C"
8108 #endif
8109 /* We use char because int might match the return type of a gcc2
8110    builtin and then its argument prototype would still apply.  */
8111 char getpwent ();
8112 int
8113 main ()
8114 {
8115 getpwent ();
8116   ;
8117   return 0;
8118 }
8119 _ACEOF
8120 rm -f conftest.$ac_objext conftest$ac_exeext
8121 if { (eval echo "$as_me:8121: \"$ac_link\"") >&5
8122   (eval $ac_link) 2>&5
8123   ac_status=$?
8124   echo "$as_me:8124: \$? = $ac_status" >&5
8125   (exit $ac_status); } &&
8126          { ac_try='test -s conftest$ac_exeext'
8127   { (eval echo "$as_me:8127: \"$ac_try\"") >&5
8128   (eval $ac_try) 2>&5
8129   ac_status=$?
8130   echo "$as_me:8130: \$? = $ac_status" >&5
8131   (exit $ac_status); }; }; then
8132   ac_cv_lib_sun_getpwent=yes
8133 else
8134   echo "$as_me: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8136 ac_cv_lib_sun_getpwent=no
8137 fi
8138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8139 LIBS=$ac_check_lib_save_LIBS
8140 fi
8141 echo "$as_me:8141: result: $ac_cv_lib_sun_getpwent" >&5
8142 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
8143 if test $ac_cv_lib_sun_getpwent = yes; then
8144   cat >>confdefs.h <<EOF
8145 #define HAVE_LIBSUN 1
8146 EOF
8147
8148   LIBS="-lsun $LIBS"
8149
8150 fi
8151  ;;
8152 esac
8153
8154 if test "$ac_cv_func_getpeername" = no; then
8155
8156 if test "X$bash_cv_have_socklib" = "X"; then
8157 _bash_needmsg=
8158 else
8159 echo "$as_me:8159: checking for socket library" >&5
8160 echo $ECHO_N "checking for socket library... $ECHO_C" >&6
8161 _bash_needmsg=yes
8162 fi
8163 if test "${bash_cv_have_socklib+set}" = set; then
8164   echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166   echo "$as_me:8166: checking for getpeername in -lsocket" >&5
8167 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
8168 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
8169   echo $ECHO_N "(cached) $ECHO_C" >&6
8170 else
8171   ac_check_lib_save_LIBS=$LIBS
8172 LIBS="-lsocket -lnsl $LIBS"
8173 cat >conftest.$ac_ext <<_ACEOF
8174 #line 8174 "configure"
8175 #include "confdefs.h"
8176
8177 /* Override any gcc2 internal prototype to avoid an error.  */
8178 #ifdef __cplusplus
8179 extern "C"
8180 #endif
8181 /* We use char because int might match the return type of a gcc2
8182    builtin and then its argument prototype would still apply.  */
8183 char getpeername ();
8184 int
8185 main ()
8186 {
8187 getpeername ();
8188   ;
8189   return 0;
8190 }
8191 _ACEOF
8192 rm -f conftest.$ac_objext conftest$ac_exeext
8193 if { (eval echo "$as_me:8193: \"$ac_link\"") >&5
8194   (eval $ac_link) 2>&5
8195   ac_status=$?
8196   echo "$as_me:8196: \$? = $ac_status" >&5
8197   (exit $ac_status); } &&
8198          { ac_try='test -s conftest$ac_exeext'
8199   { (eval echo "$as_me:8199: \"$ac_try\"") >&5
8200   (eval $ac_try) 2>&5
8201   ac_status=$?
8202   echo "$as_me:8202: \$? = $ac_status" >&5
8203   (exit $ac_status); }; }; then
8204   ac_cv_lib_socket_getpeername=yes
8205 else
8206   echo "$as_me: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8208 ac_cv_lib_socket_getpeername=no
8209 fi
8210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8211 LIBS=$ac_check_lib_save_LIBS
8212 fi
8213 echo "$as_me:8213: result: $ac_cv_lib_socket_getpeername" >&5
8214 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
8215 if test $ac_cv_lib_socket_getpeername = yes; then
8216   bash_cv_have_socklib=yes
8217 else
8218   bash_cv_have_socklib=no
8219 fi
8220
8221 fi
8222
8223 if test "X$_bash_needmsg" = Xyes; then
8224   echo "$as_me:8224: result: $bash_cv_have_socklib" >&5
8225 echo "${ECHO_T}$bash_cv_have_socklib" >&6
8226   _bash_needmsg=
8227 fi
8228 if test $bash_cv_have_socklib = yes; then
8229   # check for libnsl, add it to LIBS if present
8230   if test "X$bash_cv_have_libnsl" = "X"; then
8231     _bash_needmsg=
8232   else
8233     echo "$as_me:8233: checking for libnsl" >&5
8234 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
8235     _bash_needmsg=yes
8236   fi
8237   if test "${bash_cv_have_libnsl+set}" = set; then
8238   echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240   echo "$as_me:8240: checking for t_open in -lnsl" >&5
8241 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
8242 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
8243   echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245   ac_check_lib_save_LIBS=$LIBS
8246 LIBS="-lnsl  $LIBS"
8247 cat >conftest.$ac_ext <<_ACEOF
8248 #line 8248 "configure"
8249 #include "confdefs.h"
8250
8251 /* Override any gcc2 internal prototype to avoid an error.  */
8252 #ifdef __cplusplus
8253 extern "C"
8254 #endif
8255 /* We use char because int might match the return type of a gcc2
8256    builtin and then its argument prototype would still apply.  */
8257 char t_open ();
8258 int
8259 main ()
8260 {
8261 t_open ();
8262   ;
8263   return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext conftest$ac_exeext
8267 if { (eval echo "$as_me:8267: \"$ac_link\"") >&5
8268   (eval $ac_link) 2>&5
8269   ac_status=$?
8270   echo "$as_me:8270: \$? = $ac_status" >&5
8271   (exit $ac_status); } &&
8272          { ac_try='test -s conftest$ac_exeext'
8273   { (eval echo "$as_me:8273: \"$ac_try\"") >&5
8274   (eval $ac_try) 2>&5
8275   ac_status=$?
8276   echo "$as_me:8276: \$? = $ac_status" >&5
8277   (exit $ac_status); }; }; then
8278   ac_cv_lib_nsl_t_open=yes
8279 else
8280   echo "$as_me: failed program was:" >&5
8281 cat conftest.$ac_ext >&5
8282 ac_cv_lib_nsl_t_open=no
8283 fi
8284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8285 LIBS=$ac_check_lib_save_LIBS
8286 fi
8287 echo "$as_me:8287: result: $ac_cv_lib_nsl_t_open" >&5
8288 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
8289 if test $ac_cv_lib_nsl_t_open = yes; then
8290   bash_cv_have_libnsl=yes
8291 else
8292   bash_cv_have_libnsl=no
8293 fi
8294
8295 fi
8296
8297   if test "X$_bash_needmsg" = Xyes; then
8298     echo "$as_me:8298: result: $bash_cv_have_libnsl" >&5
8299 echo "${ECHO_T}$bash_cv_have_libnsl" >&6
8300     _bash_needmsg=
8301   fi
8302   if test $bash_cv_have_libnsl = yes; then
8303     LIBS="-lsocket -lnsl $LIBS"
8304   else
8305     LIBS="-lsocket $LIBS"
8306   fi
8307   cat >>confdefs.h <<\EOF
8308 #define HAVE_LIBSOCKET 1
8309 EOF
8310
8311   cat >>confdefs.h <<\EOF
8312 #define HAVE_GETPEERNAME 1
8313 EOF
8314
8315 fi
8316
8317 fi
8318 if test "$ac_cv_func_gethostbyname" = no; then
8319         if test "X$bash_cv_have_gethostbyname" = "X"; then
8320 _bash_needmsg=yes
8321 else
8322 echo "$as_me:8322: checking for gethostbyname in socket library" >&5
8323 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
8324 _bash_needmsg=
8325 fi
8326 if test "${bash_cv_have_gethostbyname+set}" = set; then
8327   echo $ECHO_N "(cached) $ECHO_C" >&6
8328 else
8329   cat >conftest.$ac_ext <<_ACEOF
8330 #line 8330 "configure"
8331 #include "confdefs.h"
8332 #include <netdb.h>
8333 int
8334 main ()
8335 {
8336  struct hostent *hp;
8337   hp = gethostbyname("localhost");
8338
8339   ;
8340   return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:8344: \"$ac_link\"") >&5
8345   (eval $ac_link) 2>&5
8346   ac_status=$?
8347   echo "$as_me:8347: \$? = $ac_status" >&5
8348   (exit $ac_status); } &&
8349          { ac_try='test -s conftest$ac_exeext'
8350   { (eval echo "$as_me:8350: \"$ac_try\"") >&5
8351   (eval $ac_try) 2>&5
8352   ac_status=$?
8353   echo "$as_me:8353: \$? = $ac_status" >&5
8354   (exit $ac_status); }; }; then
8355   bash_cv_have_gethostbyname=yes
8356 else
8357   echo "$as_me: failed program was:" >&5
8358 cat conftest.$ac_ext >&5
8359 bash_cv_have_gethostbyname=no
8360 fi
8361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8362
8363 fi
8364
8365 if test "X$_bash_needmsg" = Xyes; then
8366     echo "$as_me:8366: checking for gethostbyname in socket library" >&5
8367 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
8368 fi
8369 echo "$as_me:8369: result: $bash_cv_have_gethostbyname" >&5
8370 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
8371 if test "$bash_cv_have_gethostbyname" = yes; then
8372 cat >>confdefs.h <<\EOF
8373 #define HAVE_GETHOSTBYNAME 1
8374 EOF
8375
8376 fi
8377
8378 fi
8379
8380 echo "$as_me:8380: checking for uid_t in sys/types.h" >&5
8381 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8382 if test "${ac_cv_type_uid_t+set}" = set; then
8383   echo $ECHO_N "(cached) $ECHO_C" >&6
8384 else
8385   cat >conftest.$ac_ext <<_ACEOF
8386 #line 8386 "configure"
8387 #include "confdefs.h"
8388 #include <sys/types.h>
8389
8390 _ACEOF
8391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8392   egrep "uid_t" >/dev/null 2>&1; then
8393   ac_cv_type_uid_t=yes
8394 else
8395   ac_cv_type_uid_t=no
8396 fi
8397 rm -f conftest*
8398
8399 fi
8400 echo "$as_me:8400: result: $ac_cv_type_uid_t" >&5
8401 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8402 if test $ac_cv_type_uid_t = no; then
8403
8404 cat >>confdefs.h <<\EOF
8405 #define uid_t int
8406 EOF
8407
8408 cat >>confdefs.h <<\EOF
8409 #define gid_t int
8410 EOF
8411
8412 fi
8413
8414 echo "$as_me:8414: checking type of array argument to getgroups" >&5
8415 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
8416 if test "${ac_cv_type_getgroups+set}" = set; then
8417   echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419   if test "$cross_compiling" = yes; then
8420   ac_cv_type_getgroups=cross
8421 else
8422   cat >conftest.$ac_ext <<_ACEOF
8423 #line 8423 "configure"
8424 #include "confdefs.h"
8425 /* Thanks to Mike Rendell for this test.  */
8426 #include <sys/types.h>
8427 #define NGID 256
8428 #undef MAX
8429 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8430
8431 int
8432 main ()
8433 {
8434   gid_t gidset[NGID];
8435   int i, n;
8436   union { gid_t gval; long lval; }  val;
8437
8438   val.lval = -1;
8439   for (i = 0; i < NGID; i++)
8440     gidset[i] = val.gval;
8441   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8442                  gidset);
8443   /* Exit non-zero if getgroups seems to require an array of ints.  This
8444      happens when gid_t is short but getgroups modifies an array of ints.  */
8445   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8446 }
8447 _ACEOF
8448 rm -f conftest$ac_exeext
8449 if { (eval echo "$as_me:8449: \"$ac_link\"") >&5
8450   (eval $ac_link) 2>&5
8451   ac_status=$?
8452   echo "$as_me:8452: \$? = $ac_status" >&5
8453   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8454   { (eval echo "$as_me:8454: \"$ac_try\"") >&5
8455   (eval $ac_try) 2>&5
8456   ac_status=$?
8457   echo "$as_me:8457: \$? = $ac_status" >&5
8458   (exit $ac_status); }; }; then
8459   ac_cv_type_getgroups=gid_t
8460 else
8461   echo "$as_me: program exited with status $ac_status" >&5
8462 echo "$as_me: failed program was:" >&5
8463 cat conftest.$ac_ext >&5
8464 ac_cv_type_getgroups=int
8465 fi
8466 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8467 fi
8468 if test $ac_cv_type_getgroups = cross; then
8469         cat >conftest.$ac_ext <<_ACEOF
8470 #line 8470 "configure"
8471 #include "confdefs.h"
8472 #include <unistd.h>
8473
8474 _ACEOF
8475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8476   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8477   ac_cv_type_getgroups=gid_t
8478 else
8479   ac_cv_type_getgroups=int
8480 fi
8481 rm -f conftest*
8482
8483 fi
8484 fi
8485 echo "$as_me:8485: result: $ac_cv_type_getgroups" >&5
8486 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
8487
8488 cat >>confdefs.h <<EOF
8489 #define GETGROUPS_T $ac_cv_type_getgroups
8490 EOF
8491
8492 echo "$as_me:8492: checking for off_t" >&5
8493 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8494 if test "${ac_cv_type_off_t+set}" = set; then
8495   echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497   cat >conftest.$ac_ext <<_ACEOF
8498 #line 8498 "configure"
8499 #include "confdefs.h"
8500 $ac_includes_default
8501 int
8502 main ()
8503 {
8504 if ((off_t *) 0)
8505   return 0;
8506 if (sizeof (off_t))
8507   return 0;
8508   ;
8509   return 0;
8510 }
8511 _ACEOF
8512 rm -f conftest.$ac_objext
8513 if { (eval echo "$as_me:8513: \"$ac_compile\"") >&5
8514   (eval $ac_compile) 2>&5
8515   ac_status=$?
8516   echo "$as_me:8516: \$? = $ac_status" >&5
8517   (exit $ac_status); } &&
8518          { ac_try='test -s conftest.$ac_objext'
8519   { (eval echo "$as_me:8519: \"$ac_try\"") >&5
8520   (eval $ac_try) 2>&5
8521   ac_status=$?
8522   echo "$as_me:8522: \$? = $ac_status" >&5
8523   (exit $ac_status); }; }; then
8524   ac_cv_type_off_t=yes
8525 else
8526   echo "$as_me: failed program was:" >&5
8527 cat conftest.$ac_ext >&5
8528 ac_cv_type_off_t=no
8529 fi
8530 rm -f conftest.$ac_objext conftest.$ac_ext
8531 fi
8532 echo "$as_me:8532: result: $ac_cv_type_off_t" >&5
8533 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8534 if test $ac_cv_type_off_t = yes; then
8535   :
8536 else
8537
8538 cat >>confdefs.h <<EOF
8539 #define off_t long
8540 EOF
8541
8542 fi
8543
8544 echo "$as_me:8544: checking for mode_t" >&5
8545 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
8546 if test "${ac_cv_type_mode_t+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   cat >conftest.$ac_ext <<_ACEOF
8550 #line 8550 "configure"
8551 #include "confdefs.h"
8552 $ac_includes_default
8553 int
8554 main ()
8555 {
8556 if ((mode_t *) 0)
8557   return 0;
8558 if (sizeof (mode_t))
8559   return 0;
8560   ;
8561   return 0;
8562 }
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (eval echo "$as_me:8565: \"$ac_compile\"") >&5
8566   (eval $ac_compile) 2>&5
8567   ac_status=$?
8568   echo "$as_me:8568: \$? = $ac_status" >&5
8569   (exit $ac_status); } &&
8570          { ac_try='test -s conftest.$ac_objext'
8571   { (eval echo "$as_me:8571: \"$ac_try\"") >&5
8572   (eval $ac_try) 2>&5
8573   ac_status=$?
8574   echo "$as_me:8574: \$? = $ac_status" >&5
8575   (exit $ac_status); }; }; then
8576   ac_cv_type_mode_t=yes
8577 else
8578   echo "$as_me: failed program was:" >&5
8579 cat conftest.$ac_ext >&5
8580 ac_cv_type_mode_t=no
8581 fi
8582 rm -f conftest.$ac_objext conftest.$ac_ext
8583 fi
8584 echo "$as_me:8584: result: $ac_cv_type_mode_t" >&5
8585 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
8586 if test $ac_cv_type_mode_t = yes; then
8587   :
8588 else
8589
8590 cat >>confdefs.h <<EOF
8591 #define mode_t int
8592 EOF
8593
8594 fi
8595
8596 echo "$as_me:8596: checking for uid_t in sys/types.h" >&5
8597 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8598 if test "${ac_cv_type_uid_t+set}" = set; then
8599   echo $ECHO_N "(cached) $ECHO_C" >&6
8600 else
8601   cat >conftest.$ac_ext <<_ACEOF
8602 #line 8602 "configure"
8603 #include "confdefs.h"
8604 #include <sys/types.h>
8605
8606 _ACEOF
8607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8608   egrep "uid_t" >/dev/null 2>&1; then
8609   ac_cv_type_uid_t=yes
8610 else
8611   ac_cv_type_uid_t=no
8612 fi
8613 rm -f conftest*
8614
8615 fi
8616 echo "$as_me:8616: result: $ac_cv_type_uid_t" >&5
8617 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8618 if test $ac_cv_type_uid_t = no; then
8619
8620 cat >>confdefs.h <<\EOF
8621 #define uid_t int
8622 EOF
8623
8624 cat >>confdefs.h <<\EOF
8625 #define gid_t int
8626 EOF
8627
8628 fi
8629
8630 echo "$as_me:8630: checking for pid_t" >&5
8631 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8632 if test "${ac_cv_type_pid_t+set}" = set; then
8633   echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635   cat >conftest.$ac_ext <<_ACEOF
8636 #line 8636 "configure"
8637 #include "confdefs.h"
8638 $ac_includes_default
8639 int
8640 main ()
8641 {
8642 if ((pid_t *) 0)
8643   return 0;
8644 if (sizeof (pid_t))
8645   return 0;
8646   ;
8647   return 0;
8648 }
8649 _ACEOF
8650 rm -f conftest.$ac_objext
8651 if { (eval echo "$as_me:8651: \"$ac_compile\"") >&5
8652   (eval $ac_compile) 2>&5
8653   ac_status=$?
8654   echo "$as_me:8654: \$? = $ac_status" >&5
8655   (exit $ac_status); } &&
8656          { ac_try='test -s conftest.$ac_objext'
8657   { (eval echo "$as_me:8657: \"$ac_try\"") >&5
8658   (eval $ac_try) 2>&5
8659   ac_status=$?
8660   echo "$as_me:8660: \$? = $ac_status" >&5
8661   (exit $ac_status); }; }; then
8662   ac_cv_type_pid_t=yes
8663 else
8664   echo "$as_me: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8666 ac_cv_type_pid_t=no
8667 fi
8668 rm -f conftest.$ac_objext conftest.$ac_ext
8669 fi
8670 echo "$as_me:8670: result: $ac_cv_type_pid_t" >&5
8671 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8672 if test $ac_cv_type_pid_t = yes; then
8673   :
8674 else
8675
8676 cat >>confdefs.h <<EOF
8677 #define pid_t int
8678 EOF
8679
8680 fi
8681
8682 echo "$as_me:8682: checking for size_t" >&5
8683 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8684 if test "${ac_cv_type_size_t+set}" = set; then
8685   echo $ECHO_N "(cached) $ECHO_C" >&6
8686 else
8687   cat >conftest.$ac_ext <<_ACEOF
8688 #line 8688 "configure"
8689 #include "confdefs.h"
8690 $ac_includes_default
8691 int
8692 main ()
8693 {
8694 if ((size_t *) 0)
8695   return 0;
8696 if (sizeof (size_t))
8697   return 0;
8698   ;
8699   return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (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_cv_type_size_t=yes
8715 else
8716   echo "$as_me: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8718 ac_cv_type_size_t=no
8719 fi
8720 rm -f conftest.$ac_objext conftest.$ac_ext
8721 fi
8722 echo "$as_me:8722: result: $ac_cv_type_size_t" >&5
8723 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8724 if test $ac_cv_type_size_t = yes; then
8725   :
8726 else
8727
8728 cat >>confdefs.h <<EOF
8729 #define size_t unsigned
8730 EOF
8731
8732 fi
8733
8734 echo "$as_me:8734: checking for ssize_t" >&5
8735 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8736 if test "${ac_cv_type_ssize_t+set}" = set; then
8737   echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739   cat >conftest.$ac_ext <<_ACEOF
8740 #line 8740 "configure"
8741 #include "confdefs.h"
8742 $ac_includes_default
8743 int
8744 main ()
8745 {
8746 if ((ssize_t *) 0)
8747   return 0;
8748 if (sizeof (ssize_t))
8749   return 0;
8750   ;
8751   return 0;
8752 }
8753 _ACEOF
8754 rm -f conftest.$ac_objext
8755 if { (eval echo "$as_me:8755: \"$ac_compile\"") >&5
8756   (eval $ac_compile) 2>&5
8757   ac_status=$?
8758   echo "$as_me:8758: \$? = $ac_status" >&5
8759   (exit $ac_status); } &&
8760          { ac_try='test -s conftest.$ac_objext'
8761   { (eval echo "$as_me:8761: \"$ac_try\"") >&5
8762   (eval $ac_try) 2>&5
8763   ac_status=$?
8764   echo "$as_me:8764: \$? = $ac_status" >&5
8765   (exit $ac_status); }; }; then
8766   ac_cv_type_ssize_t=yes
8767 else
8768   echo "$as_me: failed program was:" >&5
8769 cat conftest.$ac_ext >&5
8770 ac_cv_type_ssize_t=no
8771 fi
8772 rm -f conftest.$ac_objext conftest.$ac_ext
8773 fi
8774 echo "$as_me:8774: result: $ac_cv_type_ssize_t" >&5
8775 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8776 if test $ac_cv_type_ssize_t = yes; then
8777   :
8778 else
8779
8780 cat >>confdefs.h <<EOF
8781 #define ssize_t int
8782 EOF
8783
8784 fi
8785
8786 echo "$as_me:8786: checking for time_t" >&5
8787 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
8788 if test "${ac_cv_type_time_t+set}" = set; then
8789   echo $ECHO_N "(cached) $ECHO_C" >&6
8790 else
8791   cat >conftest.$ac_ext <<_ACEOF
8792 #line 8792 "configure"
8793 #include "confdefs.h"
8794 $ac_includes_default
8795 int
8796 main ()
8797 {
8798 if ((time_t *) 0)
8799   return 0;
8800 if (sizeof (time_t))
8801   return 0;
8802   ;
8803   return 0;
8804 }
8805 _ACEOF
8806 rm -f conftest.$ac_objext
8807 if { (eval echo "$as_me:8807: \"$ac_compile\"") >&5
8808   (eval $ac_compile) 2>&5
8809   ac_status=$?
8810   echo "$as_me:8810: \$? = $ac_status" >&5
8811   (exit $ac_status); } &&
8812          { ac_try='test -s conftest.$ac_objext'
8813   { (eval echo "$as_me:8813: \"$ac_try\"") >&5
8814   (eval $ac_try) 2>&5
8815   ac_status=$?
8816   echo "$as_me:8816: \$? = $ac_status" >&5
8817   (exit $ac_status); }; }; then
8818   ac_cv_type_time_t=yes
8819 else
8820   echo "$as_me: failed program was:" >&5
8821 cat conftest.$ac_ext >&5
8822 ac_cv_type_time_t=no
8823 fi
8824 rm -f conftest.$ac_objext conftest.$ac_ext
8825 fi
8826 echo "$as_me:8826: result: $ac_cv_type_time_t" >&5
8827 echo "${ECHO_T}$ac_cv_type_time_t" >&6
8828 if test $ac_cv_type_time_t = yes; then
8829   :
8830 else
8831
8832 cat >>confdefs.h <<EOF
8833 #define time_t long
8834 EOF
8835
8836 fi
8837
8838 echo "$as_me:8838: checking for long long" >&5
8839 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8840 if test "${bash_cv_type_long_long+set}" = set; then
8841   echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843   cat >conftest.$ac_ext <<_ACEOF
8844 #line 8844 "configure"
8845 #include "confdefs.h"
8846
8847 long long ll = 1; int i = 63;
8848 int
8849 main ()
8850 {
8851
8852 long long llm = (long long) -1;
8853 return ll << i | ll >> i | llm / ll | llm % ll;
8854
8855   ;
8856   return 0;
8857 }
8858 _ACEOF
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (eval echo "$as_me:8860: \"$ac_link\"") >&5
8861   (eval $ac_link) 2>&5
8862   ac_status=$?
8863   echo "$as_me:8863: \$? = $ac_status" >&5
8864   (exit $ac_status); } &&
8865          { ac_try='test -s conftest$ac_exeext'
8866   { (eval echo "$as_me:8866: \"$ac_try\"") >&5
8867   (eval $ac_try) 2>&5
8868   ac_status=$?
8869   echo "$as_me:8869: \$? = $ac_status" >&5
8870   (exit $ac_status); }; }; then
8871   bash_cv_type_long_long='long long'
8872 else
8873   echo "$as_me: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8875 bash_cv_type_long_long='long'
8876 fi
8877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8878 fi
8879 echo "$as_me:8879: result: $bash_cv_type_long_long" >&5
8880 echo "${ECHO_T}$bash_cv_type_long_long" >&6
8881 if test "$bash_cv_type_long_long" = 'long long'; then
8882   cat >>confdefs.h <<\EOF
8883 #define HAVE_LONG_LONG 1
8884 EOF
8885
8886 fi
8887
8888 echo "$as_me:8888: checking for unsigned long long" >&5
8889 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8890 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
8891   echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893   cat >conftest.$ac_ext <<_ACEOF
8894 #line 8894 "configure"
8895 #include "confdefs.h"
8896
8897 unsigned long long ull = 1; int i = 63;
8898 int
8899 main ()
8900 {
8901
8902 unsigned long long ullmax = (unsigned long long) -1;
8903 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8904
8905   ;
8906   return 0;
8907 }
8908 _ACEOF
8909 rm -f conftest.$ac_objext conftest$ac_exeext
8910 if { (eval echo "$as_me:8910: \"$ac_link\"") >&5
8911   (eval $ac_link) 2>&5
8912   ac_status=$?
8913   echo "$as_me:8913: \$? = $ac_status" >&5
8914   (exit $ac_status); } &&
8915          { ac_try='test -s conftest$ac_exeext'
8916   { (eval echo "$as_me:8916: \"$ac_try\"") >&5
8917   (eval $ac_try) 2>&5
8918   ac_status=$?
8919   echo "$as_me:8919: \$? = $ac_status" >&5
8920   (exit $ac_status); }; }; then
8921   bash_cv_type_unsigned_long_long='unsigned long long'
8922 else
8923   echo "$as_me: failed program was:" >&5
8924 cat conftest.$ac_ext >&5
8925 bash_cv_type_unsigned_long_long='unsigned long'
8926 fi
8927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8928 fi
8929 echo "$as_me:8929: result: $bash_cv_type_unsigned_long_long" >&5
8930 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
8931 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
8932   cat >>confdefs.h <<\EOF
8933 #define HAVE_UNSIGNED_LONG_LONG 1
8934 EOF
8935
8936 fi
8937
8938 echo "$as_me:8938: checking return type of signal handlers" >&5
8939 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8940 if test "${ac_cv_type_signal+set}" = set; then
8941   echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943   cat >conftest.$ac_ext <<_ACEOF
8944 #line 8944 "configure"
8945 #include "confdefs.h"
8946 #include <sys/types.h>
8947 #include <signal.h>
8948 #ifdef signal
8949 # undef signal
8950 #endif
8951 #ifdef __cplusplus
8952 extern "C" void (*signal (int, void (*)(int)))(int);
8953 #else
8954 void (*signal ()) ();
8955 #endif
8956
8957 int
8958 main ()
8959 {
8960 int i;
8961   ;
8962   return 0;
8963 }
8964 _ACEOF
8965 rm -f conftest.$ac_objext
8966 if { (eval echo "$as_me:8966: \"$ac_compile\"") >&5
8967   (eval $ac_compile) 2>&5
8968   ac_status=$?
8969   echo "$as_me:8969: \$? = $ac_status" >&5
8970   (exit $ac_status); } &&
8971          { ac_try='test -s conftest.$ac_objext'
8972   { (eval echo "$as_me:8972: \"$ac_try\"") >&5
8973   (eval $ac_try) 2>&5
8974   ac_status=$?
8975   echo "$as_me:8975: \$? = $ac_status" >&5
8976   (exit $ac_status); }; }; then
8977   ac_cv_type_signal=void
8978 else
8979   echo "$as_me: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8981 ac_cv_type_signal=int
8982 fi
8983 rm -f conftest.$ac_objext conftest.$ac_ext
8984 fi
8985 echo "$as_me:8985: result: $ac_cv_type_signal" >&5
8986 echo "${ECHO_T}$ac_cv_type_signal" >&6
8987
8988 cat >>confdefs.h <<EOF
8989 #define RETSIGTYPE $ac_cv_type_signal
8990 EOF
8991
8992 echo "$as_me:8992: checking for char" >&5
8993 echo $ECHO_N "checking for char... $ECHO_C" >&6
8994 if test "${ac_cv_type_char+set}" = set; then
8995   echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997   cat >conftest.$ac_ext <<_ACEOF
8998 #line 8998 "configure"
8999 #include "confdefs.h"
9000 $ac_includes_default
9001 int
9002 main ()
9003 {
9004 if ((char *) 0)
9005   return 0;
9006 if (sizeof (char))
9007   return 0;
9008   ;
9009   return 0;
9010 }
9011 _ACEOF
9012 rm -f conftest.$ac_objext
9013 if { (eval echo "$as_me:9013: \"$ac_compile\"") >&5
9014   (eval $ac_compile) 2>&5
9015   ac_status=$?
9016   echo "$as_me:9016: \$? = $ac_status" >&5
9017   (exit $ac_status); } &&
9018          { ac_try='test -s conftest.$ac_objext'
9019   { (eval echo "$as_me:9019: \"$ac_try\"") >&5
9020   (eval $ac_try) 2>&5
9021   ac_status=$?
9022   echo "$as_me:9022: \$? = $ac_status" >&5
9023   (exit $ac_status); }; }; then
9024   ac_cv_type_char=yes
9025 else
9026   echo "$as_me: failed program was:" >&5
9027 cat conftest.$ac_ext >&5
9028 ac_cv_type_char=no
9029 fi
9030 rm -f conftest.$ac_objext conftest.$ac_ext
9031 fi
9032 echo "$as_me:9032: result: $ac_cv_type_char" >&5
9033 echo "${ECHO_T}$ac_cv_type_char" >&6
9034
9035 echo "$as_me:9035: checking size of char" >&5
9036 echo $ECHO_N "checking size of char... $ECHO_C" >&6
9037 if test "${ac_cv_sizeof_char+set}" = set; then
9038   echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040   if test "$ac_cv_type_char" = yes; then
9041   if test "$cross_compiling" = yes; then
9042   # Depending upon the size, compute the lo and hi bounds.
9043 cat >conftest.$ac_ext <<_ACEOF
9044 #line 9044 "configure"
9045 #include "confdefs.h"
9046 $ac_includes_default
9047 int
9048 main ()
9049 {
9050 int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
9051   ;
9052   return 0;
9053 }
9054 _ACEOF
9055 rm -f conftest.$ac_objext
9056 if { (eval echo "$as_me:9056: \"$ac_compile\"") >&5
9057   (eval $ac_compile) 2>&5
9058   ac_status=$?
9059   echo "$as_me:9059: \$? = $ac_status" >&5
9060   (exit $ac_status); } &&
9061          { ac_try='test -s conftest.$ac_objext'
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_lo=0 ac_mid=0
9068   while :; do
9069     cat >conftest.$ac_ext <<_ACEOF
9070 #line 9070 "configure"
9071 #include "confdefs.h"
9072 $ac_includes_default
9073 int
9074 main ()
9075 {
9076 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
9077   ;
9078   return 0;
9079 }
9080 _ACEOF
9081 rm -f conftest.$ac_objext
9082 if { (eval echo "$as_me:9082: \"$ac_compile\"") >&5
9083   (eval $ac_compile) 2>&5
9084   ac_status=$?
9085   echo "$as_me:9085: \$? = $ac_status" >&5
9086   (exit $ac_status); } &&
9087          { ac_try='test -s conftest.$ac_objext'
9088   { (eval echo "$as_me:9088: \"$ac_try\"") >&5
9089   (eval $ac_try) 2>&5
9090   ac_status=$?
9091   echo "$as_me:9091: \$? = $ac_status" >&5
9092   (exit $ac_status); }; }; then
9093   ac_hi=$ac_mid; break
9094 else
9095   echo "$as_me: failed program was:" >&5
9096 cat conftest.$ac_ext >&5
9097 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9098 fi
9099 rm -f conftest.$ac_objext conftest.$ac_ext
9100   done
9101 else
9102   echo "$as_me: failed program was:" >&5
9103 cat conftest.$ac_ext >&5
9104 ac_hi=-1 ac_mid=-1
9105   while :; do
9106     cat >conftest.$ac_ext <<_ACEOF
9107 #line 9107 "configure"
9108 #include "confdefs.h"
9109 $ac_includes_default
9110 int
9111 main ()
9112 {
9113 int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
9114   ;
9115   return 0;
9116 }
9117 _ACEOF
9118 rm -f conftest.$ac_objext
9119 if { (eval echo "$as_me:9119: \"$ac_compile\"") >&5
9120   (eval $ac_compile) 2>&5
9121   ac_status=$?
9122   echo "$as_me:9122: \$? = $ac_status" >&5
9123   (exit $ac_status); } &&
9124          { ac_try='test -s conftest.$ac_objext'
9125   { (eval echo "$as_me:9125: \"$ac_try\"") >&5
9126   (eval $ac_try) 2>&5
9127   ac_status=$?
9128   echo "$as_me:9128: \$? = $ac_status" >&5
9129   (exit $ac_status); }; }; then
9130   ac_lo=$ac_mid; break
9131 else
9132   echo "$as_me: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9134 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9135 fi
9136 rm -f conftest.$ac_objext conftest.$ac_ext
9137   done
9138 fi
9139 rm -f conftest.$ac_objext conftest.$ac_ext
9140 # Binary search between lo and hi bounds.
9141 while test "x$ac_lo" != "x$ac_hi"; do
9142   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9143   cat >conftest.$ac_ext <<_ACEOF
9144 #line 9144 "configure"
9145 #include "confdefs.h"
9146 $ac_includes_default
9147 int
9148 main ()
9149 {
9150 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 rm -f conftest.$ac_objext
9156 if { (eval echo "$as_me:9156: \"$ac_compile\"") >&5
9157   (eval $ac_compile) 2>&5
9158   ac_status=$?
9159   echo "$as_me:9159: \$? = $ac_status" >&5
9160   (exit $ac_status); } &&
9161          { ac_try='test -s conftest.$ac_objext'
9162   { (eval echo "$as_me:9162: \"$ac_try\"") >&5
9163   (eval $ac_try) 2>&5
9164   ac_status=$?
9165   echo "$as_me:9165: \$? = $ac_status" >&5
9166   (exit $ac_status); }; }; then
9167   ac_hi=$ac_mid
9168 else
9169   echo "$as_me: failed program was:" >&5
9170 cat conftest.$ac_ext >&5
9171 ac_lo=`expr $ac_mid + 1`
9172 fi
9173 rm -f conftest.$ac_objext conftest.$ac_ext
9174 done
9175 ac_cv_sizeof_char=$ac_lo
9176 else
9177   if test "$cross_compiling" = yes; then
9178   { { echo "$as_me:9178: error: cannot run test program while cross compiling" >&5
9179 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9180    { (exit 1); exit 1; }; }
9181 else
9182   cat >conftest.$ac_ext <<_ACEOF
9183 #line 9183 "configure"
9184 #include "confdefs.h"
9185 $ac_includes_default
9186 int
9187 main ()
9188 {
9189 FILE *f = fopen ("conftest.val", "w");
9190 if (!f)
9191   exit (1);
9192 fprintf (f, "%d", (sizeof (char)));
9193 fclose (f);
9194   ;
9195   return 0;
9196 }
9197 _ACEOF
9198 rm -f conftest$ac_exeext
9199 if { (eval echo "$as_me:9199: \"$ac_link\"") >&5
9200   (eval $ac_link) 2>&5
9201   ac_status=$?
9202   echo "$as_me:9202: \$? = $ac_status" >&5
9203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9204   { (eval echo "$as_me:9204: \"$ac_try\"") >&5
9205   (eval $ac_try) 2>&5
9206   ac_status=$?
9207   echo "$as_me:9207: \$? = $ac_status" >&5
9208   (exit $ac_status); }; }; then
9209   ac_cv_sizeof_char=`cat conftest.val`
9210 else
9211   echo "$as_me: program exited with status $ac_status" >&5
9212 echo "$as_me: failed program was:" >&5
9213 cat conftest.$ac_ext >&5
9214 fi
9215 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9216 fi
9217 fi
9218 rm -f conftest.val
9219 else
9220   ac_cv_sizeof_char=0
9221 fi
9222 fi
9223 echo "$as_me:9223: result: $ac_cv_sizeof_char" >&5
9224 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
9225 cat >>confdefs.h <<EOF
9226 #define SIZEOF_CHAR $ac_cv_sizeof_char
9227 EOF
9228
9229 echo "$as_me:9229: checking for short" >&5
9230 echo $ECHO_N "checking for short... $ECHO_C" >&6
9231 if test "${ac_cv_type_short+set}" = set; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234   cat >conftest.$ac_ext <<_ACEOF
9235 #line 9235 "configure"
9236 #include "confdefs.h"
9237 $ac_includes_default
9238 int
9239 main ()
9240 {
9241 if ((short *) 0)
9242   return 0;
9243 if (sizeof (short))
9244   return 0;
9245   ;
9246   return 0;
9247 }
9248 _ACEOF
9249 rm -f conftest.$ac_objext
9250 if { (eval echo "$as_me:9250: \"$ac_compile\"") >&5
9251   (eval $ac_compile) 2>&5
9252   ac_status=$?
9253   echo "$as_me:9253: \$? = $ac_status" >&5
9254   (exit $ac_status); } &&
9255          { ac_try='test -s conftest.$ac_objext'
9256   { (eval echo "$as_me:9256: \"$ac_try\"") >&5
9257   (eval $ac_try) 2>&5
9258   ac_status=$?
9259   echo "$as_me:9259: \$? = $ac_status" >&5
9260   (exit $ac_status); }; }; then
9261   ac_cv_type_short=yes
9262 else
9263   echo "$as_me: failed program was:" >&5
9264 cat conftest.$ac_ext >&5
9265 ac_cv_type_short=no
9266 fi
9267 rm -f conftest.$ac_objext conftest.$ac_ext
9268 fi
9269 echo "$as_me:9269: result: $ac_cv_type_short" >&5
9270 echo "${ECHO_T}$ac_cv_type_short" >&6
9271
9272 echo "$as_me:9272: checking size of short" >&5
9273 echo $ECHO_N "checking size of short... $ECHO_C" >&6
9274 if test "${ac_cv_sizeof_short+set}" = set; then
9275   echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277   if test "$ac_cv_type_short" = yes; then
9278   if test "$cross_compiling" = yes; then
9279   # Depending upon the size, compute the lo and hi bounds.
9280 cat >conftest.$ac_ext <<_ACEOF
9281 #line 9281 "configure"
9282 #include "confdefs.h"
9283 $ac_includes_default
9284 int
9285 main ()
9286 {
9287 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
9288   ;
9289   return 0;
9290 }
9291 _ACEOF
9292 rm -f conftest.$ac_objext
9293 if { (eval echo "$as_me:9293: \"$ac_compile\"") >&5
9294   (eval $ac_compile) 2>&5
9295   ac_status=$?
9296   echo "$as_me:9296: \$? = $ac_status" >&5
9297   (exit $ac_status); } &&
9298          { ac_try='test -s conftest.$ac_objext'
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_lo=0 ac_mid=0
9305   while :; do
9306     cat >conftest.$ac_ext <<_ACEOF
9307 #line 9307 "configure"
9308 #include "confdefs.h"
9309 $ac_includes_default
9310 int
9311 main ()
9312 {
9313 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
9314   ;
9315   return 0;
9316 }
9317 _ACEOF
9318 rm -f conftest.$ac_objext
9319 if { (eval echo "$as_me:9319: \"$ac_compile\"") >&5
9320   (eval $ac_compile) 2>&5
9321   ac_status=$?
9322   echo "$as_me:9322: \$? = $ac_status" >&5
9323   (exit $ac_status); } &&
9324          { ac_try='test -s conftest.$ac_objext'
9325   { (eval echo "$as_me:9325: \"$ac_try\"") >&5
9326   (eval $ac_try) 2>&5
9327   ac_status=$?
9328   echo "$as_me:9328: \$? = $ac_status" >&5
9329   (exit $ac_status); }; }; then
9330   ac_hi=$ac_mid; break
9331 else
9332   echo "$as_me: failed program was:" >&5
9333 cat conftest.$ac_ext >&5
9334 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9335 fi
9336 rm -f conftest.$ac_objext conftest.$ac_ext
9337   done
9338 else
9339   echo "$as_me: failed program was:" >&5
9340 cat conftest.$ac_ext >&5
9341 ac_hi=-1 ac_mid=-1
9342   while :; do
9343     cat >conftest.$ac_ext <<_ACEOF
9344 #line 9344 "configure"
9345 #include "confdefs.h"
9346 $ac_includes_default
9347 int
9348 main ()
9349 {
9350 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
9351   ;
9352   return 0;
9353 }
9354 _ACEOF
9355 rm -f conftest.$ac_objext
9356 if { (eval echo "$as_me:9356: \"$ac_compile\"") >&5
9357   (eval $ac_compile) 2>&5
9358   ac_status=$?
9359   echo "$as_me:9359: \$? = $ac_status" >&5
9360   (exit $ac_status); } &&
9361          { ac_try='test -s conftest.$ac_objext'
9362   { (eval echo "$as_me:9362: \"$ac_try\"") >&5
9363   (eval $ac_try) 2>&5
9364   ac_status=$?
9365   echo "$as_me:9365: \$? = $ac_status" >&5
9366   (exit $ac_status); }; }; then
9367   ac_lo=$ac_mid; break
9368 else
9369   echo "$as_me: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9371 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9372 fi
9373 rm -f conftest.$ac_objext conftest.$ac_ext
9374   done
9375 fi
9376 rm -f conftest.$ac_objext conftest.$ac_ext
9377 # Binary search between lo and hi bounds.
9378 while test "x$ac_lo" != "x$ac_hi"; do
9379   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9380   cat >conftest.$ac_ext <<_ACEOF
9381 #line 9381 "configure"
9382 #include "confdefs.h"
9383 $ac_includes_default
9384 int
9385 main ()
9386 {
9387 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext
9393 if { (eval echo "$as_me:9393: \"$ac_compile\"") >&5
9394   (eval $ac_compile) 2>&5
9395   ac_status=$?
9396   echo "$as_me:9396: \$? = $ac_status" >&5
9397   (exit $ac_status); } &&
9398          { ac_try='test -s conftest.$ac_objext'
9399   { (eval echo "$as_me:9399: \"$ac_try\"") >&5
9400   (eval $ac_try) 2>&5
9401   ac_status=$?
9402   echo "$as_me:9402: \$? = $ac_status" >&5
9403   (exit $ac_status); }; }; then
9404   ac_hi=$ac_mid
9405 else
9406   echo "$as_me: failed program was:" >&5
9407 cat conftest.$ac_ext >&5
9408 ac_lo=`expr $ac_mid + 1`
9409 fi
9410 rm -f conftest.$ac_objext conftest.$ac_ext
9411 done
9412 ac_cv_sizeof_short=$ac_lo
9413 else
9414   if test "$cross_compiling" = yes; then
9415   { { echo "$as_me:9415: error: cannot run test program while cross compiling" >&5
9416 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9417    { (exit 1); exit 1; }; }
9418 else
9419   cat >conftest.$ac_ext <<_ACEOF
9420 #line 9420 "configure"
9421 #include "confdefs.h"
9422 $ac_includes_default
9423 int
9424 main ()
9425 {
9426 FILE *f = fopen ("conftest.val", "w");
9427 if (!f)
9428   exit (1);
9429 fprintf (f, "%d", (sizeof (short)));
9430 fclose (f);
9431   ;
9432   return 0;
9433 }
9434 _ACEOF
9435 rm -f conftest$ac_exeext
9436 if { (eval echo "$as_me:9436: \"$ac_link\"") >&5
9437   (eval $ac_link) 2>&5
9438   ac_status=$?
9439   echo "$as_me:9439: \$? = $ac_status" >&5
9440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9441   { (eval echo "$as_me:9441: \"$ac_try\"") >&5
9442   (eval $ac_try) 2>&5
9443   ac_status=$?
9444   echo "$as_me:9444: \$? = $ac_status" >&5
9445   (exit $ac_status); }; }; then
9446   ac_cv_sizeof_short=`cat conftest.val`
9447 else
9448   echo "$as_me: program exited with status $ac_status" >&5
9449 echo "$as_me: failed program was:" >&5
9450 cat conftest.$ac_ext >&5
9451 fi
9452 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9453 fi
9454 fi
9455 rm -f conftest.val
9456 else
9457   ac_cv_sizeof_short=0
9458 fi
9459 fi
9460 echo "$as_me:9460: result: $ac_cv_sizeof_short" >&5
9461 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
9462 cat >>confdefs.h <<EOF
9463 #define SIZEOF_SHORT $ac_cv_sizeof_short
9464 EOF
9465
9466 echo "$as_me:9466: checking for int" >&5
9467 echo $ECHO_N "checking for int... $ECHO_C" >&6
9468 if test "${ac_cv_type_int+set}" = set; then
9469   echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471   cat >conftest.$ac_ext <<_ACEOF
9472 #line 9472 "configure"
9473 #include "confdefs.h"
9474 $ac_includes_default
9475 int
9476 main ()
9477 {
9478 if ((int *) 0)
9479   return 0;
9480 if (sizeof (int))
9481   return 0;
9482   ;
9483   return 0;
9484 }
9485 _ACEOF
9486 rm -f conftest.$ac_objext
9487 if { (eval echo "$as_me:9487: \"$ac_compile\"") >&5
9488   (eval $ac_compile) 2>&5
9489   ac_status=$?
9490   echo "$as_me:9490: \$? = $ac_status" >&5
9491   (exit $ac_status); } &&
9492          { ac_try='test -s conftest.$ac_objext'
9493   { (eval echo "$as_me:9493: \"$ac_try\"") >&5
9494   (eval $ac_try) 2>&5
9495   ac_status=$?
9496   echo "$as_me:9496: \$? = $ac_status" >&5
9497   (exit $ac_status); }; }; then
9498   ac_cv_type_int=yes
9499 else
9500   echo "$as_me: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9502 ac_cv_type_int=no
9503 fi
9504 rm -f conftest.$ac_objext conftest.$ac_ext
9505 fi
9506 echo "$as_me:9506: result: $ac_cv_type_int" >&5
9507 echo "${ECHO_T}$ac_cv_type_int" >&6
9508
9509 echo "$as_me:9509: checking size of int" >&5
9510 echo $ECHO_N "checking size of int... $ECHO_C" >&6
9511 if test "${ac_cv_sizeof_int+set}" = set; then
9512   echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514   if test "$ac_cv_type_int" = yes; then
9515   if test "$cross_compiling" = yes; then
9516   # Depending upon the size, compute the lo and hi bounds.
9517 cat >conftest.$ac_ext <<_ACEOF
9518 #line 9518 "configure"
9519 #include "confdefs.h"
9520 $ac_includes_default
9521 int
9522 main ()
9523 {
9524 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
9525   ;
9526   return 0;
9527 }
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (eval echo "$as_me:9530: \"$ac_compile\"") >&5
9531   (eval $ac_compile) 2>&5
9532   ac_status=$?
9533   echo "$as_me:9533: \$? = $ac_status" >&5
9534   (exit $ac_status); } &&
9535          { ac_try='test -s conftest.$ac_objext'
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_lo=0 ac_mid=0
9542   while :; do
9543     cat >conftest.$ac_ext <<_ACEOF
9544 #line 9544 "configure"
9545 #include "confdefs.h"
9546 $ac_includes_default
9547 int
9548 main ()
9549 {
9550 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
9551   ;
9552   return 0;
9553 }
9554 _ACEOF
9555 rm -f conftest.$ac_objext
9556 if { (eval echo "$as_me:9556: \"$ac_compile\"") >&5
9557   (eval $ac_compile) 2>&5
9558   ac_status=$?
9559   echo "$as_me:9559: \$? = $ac_status" >&5
9560   (exit $ac_status); } &&
9561          { ac_try='test -s conftest.$ac_objext'
9562   { (eval echo "$as_me:9562: \"$ac_try\"") >&5
9563   (eval $ac_try) 2>&5
9564   ac_status=$?
9565   echo "$as_me:9565: \$? = $ac_status" >&5
9566   (exit $ac_status); }; }; then
9567   ac_hi=$ac_mid; break
9568 else
9569   echo "$as_me: failed program was:" >&5
9570 cat conftest.$ac_ext >&5
9571 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9572 fi
9573 rm -f conftest.$ac_objext conftest.$ac_ext
9574   done
9575 else
9576   echo "$as_me: failed program was:" >&5
9577 cat conftest.$ac_ext >&5
9578 ac_hi=-1 ac_mid=-1
9579   while :; do
9580     cat >conftest.$ac_ext <<_ACEOF
9581 #line 9581 "configure"
9582 #include "confdefs.h"
9583 $ac_includes_default
9584 int
9585 main ()
9586 {
9587 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
9588   ;
9589   return 0;
9590 }
9591 _ACEOF
9592 rm -f conftest.$ac_objext
9593 if { (eval echo "$as_me:9593: \"$ac_compile\"") >&5
9594   (eval $ac_compile) 2>&5
9595   ac_status=$?
9596   echo "$as_me:9596: \$? = $ac_status" >&5
9597   (exit $ac_status); } &&
9598          { ac_try='test -s conftest.$ac_objext'
9599   { (eval echo "$as_me:9599: \"$ac_try\"") >&5
9600   (eval $ac_try) 2>&5
9601   ac_status=$?
9602   echo "$as_me:9602: \$? = $ac_status" >&5
9603   (exit $ac_status); }; }; then
9604   ac_lo=$ac_mid; break
9605 else
9606   echo "$as_me: failed program was:" >&5
9607 cat conftest.$ac_ext >&5
9608 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9609 fi
9610 rm -f conftest.$ac_objext conftest.$ac_ext
9611   done
9612 fi
9613 rm -f conftest.$ac_objext conftest.$ac_ext
9614 # Binary search between lo and hi bounds.
9615 while test "x$ac_lo" != "x$ac_hi"; do
9616   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9617   cat >conftest.$ac_ext <<_ACEOF
9618 #line 9618 "configure"
9619 #include "confdefs.h"
9620 $ac_includes_default
9621 int
9622 main ()
9623 {
9624 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
9625   ;
9626   return 0;
9627 }
9628 _ACEOF
9629 rm -f conftest.$ac_objext
9630 if { (eval echo "$as_me:9630: \"$ac_compile\"") >&5
9631   (eval $ac_compile) 2>&5
9632   ac_status=$?
9633   echo "$as_me:9633: \$? = $ac_status" >&5
9634   (exit $ac_status); } &&
9635          { ac_try='test -s conftest.$ac_objext'
9636   { (eval echo "$as_me:9636: \"$ac_try\"") >&5
9637   (eval $ac_try) 2>&5
9638   ac_status=$?
9639   echo "$as_me:9639: \$? = $ac_status" >&5
9640   (exit $ac_status); }; }; then
9641   ac_hi=$ac_mid
9642 else
9643   echo "$as_me: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9645 ac_lo=`expr $ac_mid + 1`
9646 fi
9647 rm -f conftest.$ac_objext conftest.$ac_ext
9648 done
9649 ac_cv_sizeof_int=$ac_lo
9650 else
9651   if test "$cross_compiling" = yes; then
9652   { { echo "$as_me:9652: error: cannot run test program while cross compiling" >&5
9653 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9654    { (exit 1); exit 1; }; }
9655 else
9656   cat >conftest.$ac_ext <<_ACEOF
9657 #line 9657 "configure"
9658 #include "confdefs.h"
9659 $ac_includes_default
9660 int
9661 main ()
9662 {
9663 FILE *f = fopen ("conftest.val", "w");
9664 if (!f)
9665   exit (1);
9666 fprintf (f, "%d", (sizeof (int)));
9667 fclose (f);
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 rm -f conftest$ac_exeext
9673 if { (eval echo "$as_me:9673: \"$ac_link\"") >&5
9674   (eval $ac_link) 2>&5
9675   ac_status=$?
9676   echo "$as_me:9676: \$? = $ac_status" >&5
9677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9678   { (eval echo "$as_me:9678: \"$ac_try\"") >&5
9679   (eval $ac_try) 2>&5
9680   ac_status=$?
9681   echo "$as_me:9681: \$? = $ac_status" >&5
9682   (exit $ac_status); }; }; then
9683   ac_cv_sizeof_int=`cat conftest.val`
9684 else
9685   echo "$as_me: program exited with status $ac_status" >&5
9686 echo "$as_me: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9688 fi
9689 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9690 fi
9691 fi
9692 rm -f conftest.val
9693 else
9694   ac_cv_sizeof_int=0
9695 fi
9696 fi
9697 echo "$as_me:9697: result: $ac_cv_sizeof_int" >&5
9698 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
9699 cat >>confdefs.h <<EOF
9700 #define SIZEOF_INT $ac_cv_sizeof_int
9701 EOF
9702
9703 echo "$as_me:9703: checking for long" >&5
9704 echo $ECHO_N "checking for long... $ECHO_C" >&6
9705 if test "${ac_cv_type_long+set}" = set; then
9706   echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708   cat >conftest.$ac_ext <<_ACEOF
9709 #line 9709 "configure"
9710 #include "confdefs.h"
9711 $ac_includes_default
9712 int
9713 main ()
9714 {
9715 if ((long *) 0)
9716   return 0;
9717 if (sizeof (long))
9718   return 0;
9719   ;
9720   return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest.$ac_objext
9724 if { (eval echo "$as_me:9724: \"$ac_compile\"") >&5
9725   (eval $ac_compile) 2>&5
9726   ac_status=$?
9727   echo "$as_me:9727: \$? = $ac_status" >&5
9728   (exit $ac_status); } &&
9729          { ac_try='test -s conftest.$ac_objext'
9730   { (eval echo "$as_me:9730: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:9733: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735   ac_cv_type_long=yes
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 cat conftest.$ac_ext >&5
9739 ac_cv_type_long=no
9740 fi
9741 rm -f conftest.$ac_objext conftest.$ac_ext
9742 fi
9743 echo "$as_me:9743: result: $ac_cv_type_long" >&5
9744 echo "${ECHO_T}$ac_cv_type_long" >&6
9745
9746 echo "$as_me:9746: checking size of long" >&5
9747 echo $ECHO_N "checking size of long... $ECHO_C" >&6
9748 if test "${ac_cv_sizeof_long+set}" = set; then
9749   echo $ECHO_N "(cached) $ECHO_C" >&6
9750 else
9751   if test "$ac_cv_type_long" = yes; then
9752   if test "$cross_compiling" = yes; then
9753   # Depending upon the size, compute the lo and hi bounds.
9754 cat >conftest.$ac_ext <<_ACEOF
9755 #line 9755 "configure"
9756 #include "confdefs.h"
9757 $ac_includes_default
9758 int
9759 main ()
9760 {
9761 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 rm -f conftest.$ac_objext
9767 if { (eval echo "$as_me:9767: \"$ac_compile\"") >&5
9768   (eval $ac_compile) 2>&5
9769   ac_status=$?
9770   echo "$as_me:9770: \$? = $ac_status" >&5
9771   (exit $ac_status); } &&
9772          { ac_try='test -s conftest.$ac_objext'
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_lo=0 ac_mid=0
9779   while :; do
9780     cat >conftest.$ac_ext <<_ACEOF
9781 #line 9781 "configure"
9782 #include "confdefs.h"
9783 $ac_includes_default
9784 int
9785 main ()
9786 {
9787 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
9788   ;
9789   return 0;
9790 }
9791 _ACEOF
9792 rm -f conftest.$ac_objext
9793 if { (eval echo "$as_me:9793: \"$ac_compile\"") >&5
9794   (eval $ac_compile) 2>&5
9795   ac_status=$?
9796   echo "$as_me:9796: \$? = $ac_status" >&5
9797   (exit $ac_status); } &&
9798          { ac_try='test -s conftest.$ac_objext'
9799   { (eval echo "$as_me:9799: \"$ac_try\"") >&5
9800   (eval $ac_try) 2>&5
9801   ac_status=$?
9802   echo "$as_me:9802: \$? = $ac_status" >&5
9803   (exit $ac_status); }; }; then
9804   ac_hi=$ac_mid; break
9805 else
9806   echo "$as_me: failed program was:" >&5
9807 cat conftest.$ac_ext >&5
9808 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9809 fi
9810 rm -f conftest.$ac_objext conftest.$ac_ext
9811   done
9812 else
9813   echo "$as_me: failed program was:" >&5
9814 cat conftest.$ac_ext >&5
9815 ac_hi=-1 ac_mid=-1
9816   while :; do
9817     cat >conftest.$ac_ext <<_ACEOF
9818 #line 9818 "configure"
9819 #include "confdefs.h"
9820 $ac_includes_default
9821 int
9822 main ()
9823 {
9824 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
9825   ;
9826   return 0;
9827 }
9828 _ACEOF
9829 rm -f conftest.$ac_objext
9830 if { (eval echo "$as_me:9830: \"$ac_compile\"") >&5
9831   (eval $ac_compile) 2>&5
9832   ac_status=$?
9833   echo "$as_me:9833: \$? = $ac_status" >&5
9834   (exit $ac_status); } &&
9835          { ac_try='test -s conftest.$ac_objext'
9836   { (eval echo "$as_me:9836: \"$ac_try\"") >&5
9837   (eval $ac_try) 2>&5
9838   ac_status=$?
9839   echo "$as_me:9839: \$? = $ac_status" >&5
9840   (exit $ac_status); }; }; then
9841   ac_lo=$ac_mid; break
9842 else
9843   echo "$as_me: failed program was:" >&5
9844 cat conftest.$ac_ext >&5
9845 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9846 fi
9847 rm -f conftest.$ac_objext conftest.$ac_ext
9848   done
9849 fi
9850 rm -f conftest.$ac_objext conftest.$ac_ext
9851 # Binary search between lo and hi bounds.
9852 while test "x$ac_lo" != "x$ac_hi"; do
9853   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9854   cat >conftest.$ac_ext <<_ACEOF
9855 #line 9855 "configure"
9856 #include "confdefs.h"
9857 $ac_includes_default
9858 int
9859 main ()
9860 {
9861 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
9862   ;
9863   return 0;
9864 }
9865 _ACEOF
9866 rm -f conftest.$ac_objext
9867 if { (eval echo "$as_me:9867: \"$ac_compile\"") >&5
9868   (eval $ac_compile) 2>&5
9869   ac_status=$?
9870   echo "$as_me:9870: \$? = $ac_status" >&5
9871   (exit $ac_status); } &&
9872          { ac_try='test -s conftest.$ac_objext'
9873   { (eval echo "$as_me:9873: \"$ac_try\"") >&5
9874   (eval $ac_try) 2>&5
9875   ac_status=$?
9876   echo "$as_me:9876: \$? = $ac_status" >&5
9877   (exit $ac_status); }; }; then
9878   ac_hi=$ac_mid
9879 else
9880   echo "$as_me: failed program was:" >&5
9881 cat conftest.$ac_ext >&5
9882 ac_lo=`expr $ac_mid + 1`
9883 fi
9884 rm -f conftest.$ac_objext conftest.$ac_ext
9885 done
9886 ac_cv_sizeof_long=$ac_lo
9887 else
9888   if test "$cross_compiling" = yes; then
9889   { { echo "$as_me:9889: error: cannot run test program while cross compiling" >&5
9890 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9891    { (exit 1); exit 1; }; }
9892 else
9893   cat >conftest.$ac_ext <<_ACEOF
9894 #line 9894 "configure"
9895 #include "confdefs.h"
9896 $ac_includes_default
9897 int
9898 main ()
9899 {
9900 FILE *f = fopen ("conftest.val", "w");
9901 if (!f)
9902   exit (1);
9903 fprintf (f, "%d", (sizeof (long)));
9904 fclose (f);
9905   ;
9906   return 0;
9907 }
9908 _ACEOF
9909 rm -f conftest$ac_exeext
9910 if { (eval echo "$as_me:9910: \"$ac_link\"") >&5
9911   (eval $ac_link) 2>&5
9912   ac_status=$?
9913   echo "$as_me:9913: \$? = $ac_status" >&5
9914   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9915   { (eval echo "$as_me:9915: \"$ac_try\"") >&5
9916   (eval $ac_try) 2>&5
9917   ac_status=$?
9918   echo "$as_me:9918: \$? = $ac_status" >&5
9919   (exit $ac_status); }; }; then
9920   ac_cv_sizeof_long=`cat conftest.val`
9921 else
9922   echo "$as_me: program exited with status $ac_status" >&5
9923 echo "$as_me: failed program was:" >&5
9924 cat conftest.$ac_ext >&5
9925 fi
9926 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9927 fi
9928 fi
9929 rm -f conftest.val
9930 else
9931   ac_cv_sizeof_long=0
9932 fi
9933 fi
9934 echo "$as_me:9934: result: $ac_cv_sizeof_long" >&5
9935 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9936 cat >>confdefs.h <<EOF
9937 #define SIZEOF_LONG $ac_cv_sizeof_long
9938 EOF
9939
9940 echo "$as_me:9940: checking for char *" >&5
9941 echo $ECHO_N "checking for char *... $ECHO_C" >&6
9942 if test "${ac_cv_type_char_p+set}" = set; then
9943   echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945   cat >conftest.$ac_ext <<_ACEOF
9946 #line 9946 "configure"
9947 #include "confdefs.h"
9948 $ac_includes_default
9949 int
9950 main ()
9951 {
9952 if ((char * *) 0)
9953   return 0;
9954 if (sizeof (char *))
9955   return 0;
9956   ;
9957   return 0;
9958 }
9959 _ACEOF
9960 rm -f conftest.$ac_objext
9961 if { (eval echo "$as_me:9961: \"$ac_compile\"") >&5
9962   (eval $ac_compile) 2>&5
9963   ac_status=$?
9964   echo "$as_me:9964: \$? = $ac_status" >&5
9965   (exit $ac_status); } &&
9966          { ac_try='test -s conftest.$ac_objext'
9967   { (eval echo "$as_me:9967: \"$ac_try\"") >&5
9968   (eval $ac_try) 2>&5
9969   ac_status=$?
9970   echo "$as_me:9970: \$? = $ac_status" >&5
9971   (exit $ac_status); }; }; then
9972   ac_cv_type_char_p=yes
9973 else
9974   echo "$as_me: failed program was:" >&5
9975 cat conftest.$ac_ext >&5
9976 ac_cv_type_char_p=no
9977 fi
9978 rm -f conftest.$ac_objext conftest.$ac_ext
9979 fi
9980 echo "$as_me:9980: result: $ac_cv_type_char_p" >&5
9981 echo "${ECHO_T}$ac_cv_type_char_p" >&6
9982
9983 echo "$as_me:9983: checking size of char *" >&5
9984 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
9985 if test "${ac_cv_sizeof_char_p+set}" = set; then
9986   echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988   if test "$ac_cv_type_char_p" = yes; then
9989   if test "$cross_compiling" = yes; then
9990   # Depending upon the size, compute the lo and hi bounds.
9991 cat >conftest.$ac_ext <<_ACEOF
9992 #line 9992 "configure"
9993 #include "confdefs.h"
9994 $ac_includes_default
9995 int
9996 main ()
9997 {
9998 int _array_ [1 - 2 * !((sizeof (char *)) >= 0)]
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext
10004 if { (eval echo "$as_me:10004: \"$ac_compile\"") >&5
10005   (eval $ac_compile) 2>&5
10006   ac_status=$?
10007   echo "$as_me:10007: \$? = $ac_status" >&5
10008   (exit $ac_status); } &&
10009          { ac_try='test -s conftest.$ac_objext'
10010   { (eval echo "$as_me:10010: \"$ac_try\"") >&5
10011   (eval $ac_try) 2>&5
10012   ac_status=$?
10013   echo "$as_me:10013: \$? = $ac_status" >&5
10014   (exit $ac_status); }; }; then
10015   ac_lo=0 ac_mid=0
10016   while :; do
10017     cat >conftest.$ac_ext <<_ACEOF
10018 #line 10018 "configure"
10019 #include "confdefs.h"
10020 $ac_includes_default
10021 int
10022 main ()
10023 {
10024 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
10025   ;
10026   return 0;
10027 }
10028 _ACEOF
10029 rm -f conftest.$ac_objext
10030 if { (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
10041   ac_hi=$ac_mid; break
10042 else
10043   echo "$as_me: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10045 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10046 fi
10047 rm -f conftest.$ac_objext conftest.$ac_ext
10048   done
10049 else
10050   echo "$as_me: failed program was:" >&5
10051 cat conftest.$ac_ext >&5
10052 ac_hi=-1 ac_mid=-1
10053   while :; do
10054     cat >conftest.$ac_ext <<_ACEOF
10055 #line 10055 "configure"
10056 #include "confdefs.h"
10057 $ac_includes_default
10058 int
10059 main ()
10060 {
10061 int _array_ [1 - 2 * !((sizeof (char *)) >= $ac_mid)]
10062   ;
10063   return 0;
10064 }
10065 _ACEOF
10066 rm -f conftest.$ac_objext
10067 if { (eval echo "$as_me:10067: \"$ac_compile\"") >&5
10068   (eval $ac_compile) 2>&5
10069   ac_status=$?
10070   echo "$as_me:10070: \$? = $ac_status" >&5
10071   (exit $ac_status); } &&
10072          { ac_try='test -s conftest.$ac_objext'
10073   { (eval echo "$as_me:10073: \"$ac_try\"") >&5
10074   (eval $ac_try) 2>&5
10075   ac_status=$?
10076   echo "$as_me:10076: \$? = $ac_status" >&5
10077   (exit $ac_status); }; }; then
10078   ac_lo=$ac_mid; break
10079 else
10080   echo "$as_me: failed program was:" >&5
10081 cat conftest.$ac_ext >&5
10082 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10083 fi
10084 rm -f conftest.$ac_objext conftest.$ac_ext
10085   done
10086 fi
10087 rm -f conftest.$ac_objext conftest.$ac_ext
10088 # Binary search between lo and hi bounds.
10089 while test "x$ac_lo" != "x$ac_hi"; do
10090   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10091   cat >conftest.$ac_ext <<_ACEOF
10092 #line 10092 "configure"
10093 #include "confdefs.h"
10094 $ac_includes_default
10095 int
10096 main ()
10097 {
10098 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
10099   ;
10100   return 0;
10101 }
10102 _ACEOF
10103 rm -f conftest.$ac_objext
10104 if { (eval echo "$as_me:10104: \"$ac_compile\"") >&5
10105   (eval $ac_compile) 2>&5
10106   ac_status=$?
10107   echo "$as_me:10107: \$? = $ac_status" >&5
10108   (exit $ac_status); } &&
10109          { ac_try='test -s conftest.$ac_objext'
10110   { (eval echo "$as_me:10110: \"$ac_try\"") >&5
10111   (eval $ac_try) 2>&5
10112   ac_status=$?
10113   echo "$as_me:10113: \$? = $ac_status" >&5
10114   (exit $ac_status); }; }; then
10115   ac_hi=$ac_mid
10116 else
10117   echo "$as_me: failed program was:" >&5
10118 cat conftest.$ac_ext >&5
10119 ac_lo=`expr $ac_mid + 1`
10120 fi
10121 rm -f conftest.$ac_objext conftest.$ac_ext
10122 done
10123 ac_cv_sizeof_char_p=$ac_lo
10124 else
10125   if test "$cross_compiling" = yes; then
10126   { { echo "$as_me:10126: error: cannot run test program while cross compiling" >&5
10127 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10128    { (exit 1); exit 1; }; }
10129 else
10130   cat >conftest.$ac_ext <<_ACEOF
10131 #line 10131 "configure"
10132 #include "confdefs.h"
10133 $ac_includes_default
10134 int
10135 main ()
10136 {
10137 FILE *f = fopen ("conftest.val", "w");
10138 if (!f)
10139   exit (1);
10140 fprintf (f, "%d", (sizeof (char *)));
10141 fclose (f);
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 rm -f conftest$ac_exeext
10147 if { (eval echo "$as_me:10147: \"$ac_link\"") >&5
10148   (eval $ac_link) 2>&5
10149   ac_status=$?
10150   echo "$as_me:10150: \$? = $ac_status" >&5
10151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10152   { (eval echo "$as_me:10152: \"$ac_try\"") >&5
10153   (eval $ac_try) 2>&5
10154   ac_status=$?
10155   echo "$as_me:10155: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   ac_cv_sizeof_char_p=`cat conftest.val`
10158 else
10159   echo "$as_me: program exited with status $ac_status" >&5
10160 echo "$as_me: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10162 fi
10163 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10164 fi
10165 fi
10166 rm -f conftest.val
10167 else
10168   ac_cv_sizeof_char_p=0
10169 fi
10170 fi
10171 echo "$as_me:10171: result: $ac_cv_sizeof_char_p" >&5
10172 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
10173 cat >>confdefs.h <<EOF
10174 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
10175 EOF
10176
10177 echo "$as_me:10177: checking for double" >&5
10178 echo $ECHO_N "checking for double... $ECHO_C" >&6
10179 if test "${ac_cv_type_double+set}" = set; then
10180   echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182   cat >conftest.$ac_ext <<_ACEOF
10183 #line 10183 "configure"
10184 #include "confdefs.h"
10185 $ac_includes_default
10186 int
10187 main ()
10188 {
10189 if ((double *) 0)
10190   return 0;
10191 if (sizeof (double))
10192   return 0;
10193   ;
10194   return 0;
10195 }
10196 _ACEOF
10197 rm -f conftest.$ac_objext
10198 if { (eval echo "$as_me:10198: \"$ac_compile\"") >&5
10199   (eval $ac_compile) 2>&5
10200   ac_status=$?
10201   echo "$as_me:10201: \$? = $ac_status" >&5
10202   (exit $ac_status); } &&
10203          { ac_try='test -s conftest.$ac_objext'
10204   { (eval echo "$as_me:10204: \"$ac_try\"") >&5
10205   (eval $ac_try) 2>&5
10206   ac_status=$?
10207   echo "$as_me:10207: \$? = $ac_status" >&5
10208   (exit $ac_status); }; }; then
10209   ac_cv_type_double=yes
10210 else
10211   echo "$as_me: failed program was:" >&5
10212 cat conftest.$ac_ext >&5
10213 ac_cv_type_double=no
10214 fi
10215 rm -f conftest.$ac_objext conftest.$ac_ext
10216 fi
10217 echo "$as_me:10217: result: $ac_cv_type_double" >&5
10218 echo "${ECHO_T}$ac_cv_type_double" >&6
10219
10220 echo "$as_me:10220: checking size of double" >&5
10221 echo $ECHO_N "checking size of double... $ECHO_C" >&6
10222 if test "${ac_cv_sizeof_double+set}" = set; then
10223   echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225   if test "$ac_cv_type_double" = yes; then
10226   if test "$cross_compiling" = yes; then
10227   # Depending upon the size, compute the lo and hi bounds.
10228 cat >conftest.$ac_ext <<_ACEOF
10229 #line 10229 "configure"
10230 #include "confdefs.h"
10231 $ac_includes_default
10232 int
10233 main ()
10234 {
10235 int _array_ [1 - 2 * !((sizeof (double)) >= 0)]
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext
10241 if { (eval echo "$as_me:10241: \"$ac_compile\"") >&5
10242   (eval $ac_compile) 2>&5
10243   ac_status=$?
10244   echo "$as_me:10244: \$? = $ac_status" >&5
10245   (exit $ac_status); } &&
10246          { ac_try='test -s conftest.$ac_objext'
10247   { (eval echo "$as_me:10247: \"$ac_try\"") >&5
10248   (eval $ac_try) 2>&5
10249   ac_status=$?
10250   echo "$as_me:10250: \$? = $ac_status" >&5
10251   (exit $ac_status); }; }; then
10252   ac_lo=0 ac_mid=0
10253   while :; do
10254     cat >conftest.$ac_ext <<_ACEOF
10255 #line 10255 "configure"
10256 #include "confdefs.h"
10257 $ac_includes_default
10258 int
10259 main ()
10260 {
10261 int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)]
10262   ;
10263   return 0;
10264 }
10265 _ACEOF
10266 rm -f conftest.$ac_objext
10267 if { (eval echo "$as_me:10267: \"$ac_compile\"") >&5
10268   (eval $ac_compile) 2>&5
10269   ac_status=$?
10270   echo "$as_me:10270: \$? = $ac_status" >&5
10271   (exit $ac_status); } &&
10272          { ac_try='test -s conftest.$ac_objext'
10273   { (eval echo "$as_me:10273: \"$ac_try\"") >&5
10274   (eval $ac_try) 2>&5
10275   ac_status=$?
10276   echo "$as_me:10276: \$? = $ac_status" >&5
10277   (exit $ac_status); }; }; then
10278   ac_hi=$ac_mid; break
10279 else
10280   echo "$as_me: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10282 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10283 fi
10284 rm -f conftest.$ac_objext conftest.$ac_ext
10285   done
10286 else
10287   echo "$as_me: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10289 ac_hi=-1 ac_mid=-1
10290   while :; do
10291     cat >conftest.$ac_ext <<_ACEOF
10292 #line 10292 "configure"
10293 #include "confdefs.h"
10294 $ac_includes_default
10295 int
10296 main ()
10297 {
10298 int _array_ [1 - 2 * !((sizeof (double)) >= $ac_mid)]
10299   ;
10300   return 0;
10301 }
10302 _ACEOF
10303 rm -f conftest.$ac_objext
10304 if { (eval echo "$as_me:10304: \"$ac_compile\"") >&5
10305   (eval $ac_compile) 2>&5
10306   ac_status=$?
10307   echo "$as_me:10307: \$? = $ac_status" >&5
10308   (exit $ac_status); } &&
10309          { ac_try='test -s conftest.$ac_objext'
10310   { (eval echo "$as_me:10310: \"$ac_try\"") >&5
10311   (eval $ac_try) 2>&5
10312   ac_status=$?
10313   echo "$as_me:10313: \$? = $ac_status" >&5
10314   (exit $ac_status); }; }; then
10315   ac_lo=$ac_mid; break
10316 else
10317   echo "$as_me: failed program was:" >&5
10318 cat conftest.$ac_ext >&5
10319 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10320 fi
10321 rm -f conftest.$ac_objext conftest.$ac_ext
10322   done
10323 fi
10324 rm -f conftest.$ac_objext conftest.$ac_ext
10325 # Binary search between lo and hi bounds.
10326 while test "x$ac_lo" != "x$ac_hi"; do
10327   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10328   cat >conftest.$ac_ext <<_ACEOF
10329 #line 10329 "configure"
10330 #include "confdefs.h"
10331 $ac_includes_default
10332 int
10333 main ()
10334 {
10335 int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)]
10336   ;
10337   return 0;
10338 }
10339 _ACEOF
10340 rm -f conftest.$ac_objext
10341 if { (eval echo "$as_me:10341: \"$ac_compile\"") >&5
10342   (eval $ac_compile) 2>&5
10343   ac_status=$?
10344   echo "$as_me:10344: \$? = $ac_status" >&5
10345   (exit $ac_status); } &&
10346          { ac_try='test -s conftest.$ac_objext'
10347   { (eval echo "$as_me:10347: \"$ac_try\"") >&5
10348   (eval $ac_try) 2>&5
10349   ac_status=$?
10350   echo "$as_me:10350: \$? = $ac_status" >&5
10351   (exit $ac_status); }; }; then
10352   ac_hi=$ac_mid
10353 else
10354   echo "$as_me: failed program was:" >&5
10355 cat conftest.$ac_ext >&5
10356 ac_lo=`expr $ac_mid + 1`
10357 fi
10358 rm -f conftest.$ac_objext conftest.$ac_ext
10359 done
10360 ac_cv_sizeof_double=$ac_lo
10361 else
10362   if test "$cross_compiling" = yes; then
10363   { { echo "$as_me:10363: error: cannot run test program while cross compiling" >&5
10364 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10365    { (exit 1); exit 1; }; }
10366 else
10367   cat >conftest.$ac_ext <<_ACEOF
10368 #line 10368 "configure"
10369 #include "confdefs.h"
10370 $ac_includes_default
10371 int
10372 main ()
10373 {
10374 FILE *f = fopen ("conftest.val", "w");
10375 if (!f)
10376   exit (1);
10377 fprintf (f, "%d", (sizeof (double)));
10378 fclose (f);
10379   ;
10380   return 0;
10381 }
10382 _ACEOF
10383 rm -f conftest$ac_exeext
10384 if { (eval echo "$as_me:10384: \"$ac_link\"") >&5
10385   (eval $ac_link) 2>&5
10386   ac_status=$?
10387   echo "$as_me:10387: \$? = $ac_status" >&5
10388   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10389   { (eval echo "$as_me:10389: \"$ac_try\"") >&5
10390   (eval $ac_try) 2>&5
10391   ac_status=$?
10392   echo "$as_me:10392: \$? = $ac_status" >&5
10393   (exit $ac_status); }; }; then
10394   ac_cv_sizeof_double=`cat conftest.val`
10395 else
10396   echo "$as_me: program exited with status $ac_status" >&5
10397 echo "$as_me: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10399 fi
10400 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10401 fi
10402 fi
10403 rm -f conftest.val
10404 else
10405   ac_cv_sizeof_double=0
10406 fi
10407 fi
10408 echo "$as_me:10408: result: $ac_cv_sizeof_double" >&5
10409 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
10410 cat >>confdefs.h <<EOF
10411 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
10412 EOF
10413
10414 echo "$as_me:10414: checking for long long" >&5
10415 echo $ECHO_N "checking for long long... $ECHO_C" >&6
10416 if test "${ac_cv_type_long_long+set}" = set; then
10417   echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10419   cat >conftest.$ac_ext <<_ACEOF
10420 #line 10420 "configure"
10421 #include "confdefs.h"
10422 $ac_includes_default
10423 int
10424 main ()
10425 {
10426 if ((long long *) 0)
10427   return 0;
10428 if (sizeof (long long))
10429   return 0;
10430   ;
10431   return 0;
10432 }
10433 _ACEOF
10434 rm -f conftest.$ac_objext
10435 if { (eval echo "$as_me:10435: \"$ac_compile\"") >&5
10436   (eval $ac_compile) 2>&5
10437   ac_status=$?
10438   echo "$as_me:10438: \$? = $ac_status" >&5
10439   (exit $ac_status); } &&
10440          { ac_try='test -s conftest.$ac_objext'
10441   { (eval echo "$as_me:10441: \"$ac_try\"") >&5
10442   (eval $ac_try) 2>&5
10443   ac_status=$?
10444   echo "$as_me:10444: \$? = $ac_status" >&5
10445   (exit $ac_status); }; }; then
10446   ac_cv_type_long_long=yes
10447 else
10448   echo "$as_me: failed program was:" >&5
10449 cat conftest.$ac_ext >&5
10450 ac_cv_type_long_long=no
10451 fi
10452 rm -f conftest.$ac_objext conftest.$ac_ext
10453 fi
10454 echo "$as_me:10454: result: $ac_cv_type_long_long" >&5
10455 echo "${ECHO_T}$ac_cv_type_long_long" >&6
10456
10457 echo "$as_me:10457: checking size of long long" >&5
10458 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
10459 if test "${ac_cv_sizeof_long_long+set}" = set; then
10460   echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else
10462   if test "$ac_cv_type_long_long" = yes; then
10463   if test "$cross_compiling" = yes; then
10464   # Depending upon the size, compute the lo and hi bounds.
10465 cat >conftest.$ac_ext <<_ACEOF
10466 #line 10466 "configure"
10467 #include "confdefs.h"
10468 $ac_includes_default
10469 int
10470 main ()
10471 {
10472 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
10473   ;
10474   return 0;
10475 }
10476 _ACEOF
10477 rm -f conftest.$ac_objext
10478 if { (eval echo "$as_me:10478: \"$ac_compile\"") >&5
10479   (eval $ac_compile) 2>&5
10480   ac_status=$?
10481   echo "$as_me:10481: \$? = $ac_status" >&5
10482   (exit $ac_status); } &&
10483          { ac_try='test -s conftest.$ac_objext'
10484   { (eval echo "$as_me:10484: \"$ac_try\"") >&5
10485   (eval $ac_try) 2>&5
10486   ac_status=$?
10487   echo "$as_me:10487: \$? = $ac_status" >&5
10488   (exit $ac_status); }; }; then
10489   ac_lo=0 ac_mid=0
10490   while :; do
10491     cat >conftest.$ac_ext <<_ACEOF
10492 #line 10492 "configure"
10493 #include "confdefs.h"
10494 $ac_includes_default
10495 int
10496 main ()
10497 {
10498 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
10499   ;
10500   return 0;
10501 }
10502 _ACEOF
10503 rm -f conftest.$ac_objext
10504 if { (eval echo "$as_me:10504: \"$ac_compile\"") >&5
10505   (eval $ac_compile) 2>&5
10506   ac_status=$?
10507   echo "$as_me:10507: \$? = $ac_status" >&5
10508   (exit $ac_status); } &&
10509          { ac_try='test -s conftest.$ac_objext'
10510   { (eval echo "$as_me:10510: \"$ac_try\"") >&5
10511   (eval $ac_try) 2>&5
10512   ac_status=$?
10513   echo "$as_me:10513: \$? = $ac_status" >&5
10514   (exit $ac_status); }; }; then
10515   ac_hi=$ac_mid; break
10516 else
10517   echo "$as_me: failed program was:" >&5
10518 cat conftest.$ac_ext >&5
10519 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10520 fi
10521 rm -f conftest.$ac_objext conftest.$ac_ext
10522   done
10523 else
10524   echo "$as_me: failed program was:" >&5
10525 cat conftest.$ac_ext >&5
10526 ac_hi=-1 ac_mid=-1
10527   while :; do
10528     cat >conftest.$ac_ext <<_ACEOF
10529 #line 10529 "configure"
10530 #include "confdefs.h"
10531 $ac_includes_default
10532 int
10533 main ()
10534 {
10535 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
10536   ;
10537   return 0;
10538 }
10539 _ACEOF
10540 rm -f conftest.$ac_objext
10541 if { (eval echo "$as_me:10541: \"$ac_compile\"") >&5
10542   (eval $ac_compile) 2>&5
10543   ac_status=$?
10544   echo "$as_me:10544: \$? = $ac_status" >&5
10545   (exit $ac_status); } &&
10546          { ac_try='test -s conftest.$ac_objext'
10547   { (eval echo "$as_me:10547: \"$ac_try\"") >&5
10548   (eval $ac_try) 2>&5
10549   ac_status=$?
10550   echo "$as_me:10550: \$? = $ac_status" >&5
10551   (exit $ac_status); }; }; then
10552   ac_lo=$ac_mid; break
10553 else
10554   echo "$as_me: failed program was:" >&5
10555 cat conftest.$ac_ext >&5
10556 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10557 fi
10558 rm -f conftest.$ac_objext conftest.$ac_ext
10559   done
10560 fi
10561 rm -f conftest.$ac_objext conftest.$ac_ext
10562 # Binary search between lo and hi bounds.
10563 while test "x$ac_lo" != "x$ac_hi"; do
10564   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10565   cat >conftest.$ac_ext <<_ACEOF
10566 #line 10566 "configure"
10567 #include "confdefs.h"
10568 $ac_includes_default
10569 int
10570 main ()
10571 {
10572 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
10573   ;
10574   return 0;
10575 }
10576 _ACEOF
10577 rm -f conftest.$ac_objext
10578 if { (eval echo "$as_me:10578: \"$ac_compile\"") >&5
10579   (eval $ac_compile) 2>&5
10580   ac_status=$?
10581   echo "$as_me:10581: \$? = $ac_status" >&5
10582   (exit $ac_status); } &&
10583          { ac_try='test -s conftest.$ac_objext'
10584   { (eval echo "$as_me:10584: \"$ac_try\"") >&5
10585   (eval $ac_try) 2>&5
10586   ac_status=$?
10587   echo "$as_me:10587: \$? = $ac_status" >&5
10588   (exit $ac_status); }; }; then
10589   ac_hi=$ac_mid
10590 else
10591   echo "$as_me: failed program was:" >&5
10592 cat conftest.$ac_ext >&5
10593 ac_lo=`expr $ac_mid + 1`
10594 fi
10595 rm -f conftest.$ac_objext conftest.$ac_ext
10596 done
10597 ac_cv_sizeof_long_long=$ac_lo
10598 else
10599   if test "$cross_compiling" = yes; then
10600   { { echo "$as_me:10600: error: cannot run test program while cross compiling" >&5
10601 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10602    { (exit 1); exit 1; }; }
10603 else
10604   cat >conftest.$ac_ext <<_ACEOF
10605 #line 10605 "configure"
10606 #include "confdefs.h"
10607 $ac_includes_default
10608 int
10609 main ()
10610 {
10611 FILE *f = fopen ("conftest.val", "w");
10612 if (!f)
10613   exit (1);
10614 fprintf (f, "%d", (sizeof (long long)));
10615 fclose (f);
10616   ;
10617   return 0;
10618 }
10619 _ACEOF
10620 rm -f conftest$ac_exeext
10621 if { (eval echo "$as_me:10621: \"$ac_link\"") >&5
10622   (eval $ac_link) 2>&5
10623   ac_status=$?
10624   echo "$as_me:10624: \$? = $ac_status" >&5
10625   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10626   { (eval echo "$as_me:10626: \"$ac_try\"") >&5
10627   (eval $ac_try) 2>&5
10628   ac_status=$?
10629   echo "$as_me:10629: \$? = $ac_status" >&5
10630   (exit $ac_status); }; }; then
10631   ac_cv_sizeof_long_long=`cat conftest.val`
10632 else
10633   echo "$as_me: program exited with status $ac_status" >&5
10634 echo "$as_me: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10636 fi
10637 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10638 fi
10639 fi
10640 rm -f conftest.val
10641 else
10642   ac_cv_sizeof_long_long=0
10643 fi
10644 fi
10645 echo "$as_me:10645: result: $ac_cv_sizeof_long_long" >&5
10646 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10647 cat >>confdefs.h <<EOF
10648 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10649 EOF
10650
10651 echo "$as_me:10651: checking for u_int" >&5
10652 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
10653 if test "${ac_cv_type_u_int+set}" = set; then
10654   echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656   cat >conftest.$ac_ext <<_ACEOF
10657 #line 10657 "configure"
10658 #include "confdefs.h"
10659 $ac_includes_default
10660 int
10661 main ()
10662 {
10663 if ((u_int *) 0)
10664   return 0;
10665 if (sizeof (u_int))
10666   return 0;
10667   ;
10668   return 0;
10669 }
10670 _ACEOF
10671 rm -f conftest.$ac_objext
10672 if { (eval echo "$as_me:10672: \"$ac_compile\"") >&5
10673   (eval $ac_compile) 2>&5
10674   ac_status=$?
10675   echo "$as_me:10675: \$? = $ac_status" >&5
10676   (exit $ac_status); } &&
10677          { ac_try='test -s conftest.$ac_objext'
10678   { (eval echo "$as_me:10678: \"$ac_try\"") >&5
10679   (eval $ac_try) 2>&5
10680   ac_status=$?
10681   echo "$as_me:10681: \$? = $ac_status" >&5
10682   (exit $ac_status); }; }; then
10683   ac_cv_type_u_int=yes
10684 else
10685   echo "$as_me: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10687 ac_cv_type_u_int=no
10688 fi
10689 rm -f conftest.$ac_objext conftest.$ac_ext
10690 fi
10691 echo "$as_me:10691: result: $ac_cv_type_u_int" >&5
10692 echo "${ECHO_T}$ac_cv_type_u_int" >&6
10693 if test $ac_cv_type_u_int = yes; then
10694   :
10695 else
10696
10697 cat >>confdefs.h <<EOF
10698 #define u_int unsigned int
10699 EOF
10700
10701 fi
10702
10703 echo "$as_me:10703: checking for u_long" >&5
10704 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
10705 if test "${ac_cv_type_u_long+set}" = set; then
10706   echo $ECHO_N "(cached) $ECHO_C" >&6
10707 else
10708   cat >conftest.$ac_ext <<_ACEOF
10709 #line 10709 "configure"
10710 #include "confdefs.h"
10711 $ac_includes_default
10712 int
10713 main ()
10714 {
10715 if ((u_long *) 0)
10716   return 0;
10717 if (sizeof (u_long))
10718   return 0;
10719   ;
10720   return 0;
10721 }
10722 _ACEOF
10723 rm -f conftest.$ac_objext
10724 if { (eval echo "$as_me:10724: \"$ac_compile\"") >&5
10725   (eval $ac_compile) 2>&5
10726   ac_status=$?
10727   echo "$as_me:10727: \$? = $ac_status" >&5
10728   (exit $ac_status); } &&
10729          { ac_try='test -s conftest.$ac_objext'
10730   { (eval echo "$as_me:10730: \"$ac_try\"") >&5
10731   (eval $ac_try) 2>&5
10732   ac_status=$?
10733   echo "$as_me:10733: \$? = $ac_status" >&5
10734   (exit $ac_status); }; }; then
10735   ac_cv_type_u_long=yes
10736 else
10737   echo "$as_me: failed program was:" >&5
10738 cat conftest.$ac_ext >&5
10739 ac_cv_type_u_long=no
10740 fi
10741 rm -f conftest.$ac_objext conftest.$ac_ext
10742 fi
10743 echo "$as_me:10743: result: $ac_cv_type_u_long" >&5
10744 echo "${ECHO_T}$ac_cv_type_u_long" >&6
10745 if test $ac_cv_type_u_long = yes; then
10746   :
10747 else
10748
10749 cat >>confdefs.h <<EOF
10750 #define u_long unsigned long
10751 EOF
10752
10753 fi
10754
10755 if test "$ac_cv_sizeof_short" = 2; then
10756   echo "$as_me:10756: checking for bits16_t" >&5
10757 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
10758 if test "${ac_cv_type_bits16_t+set}" = set; then
10759   echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761   cat >conftest.$ac_ext <<_ACEOF
10762 #line 10762 "configure"
10763 #include "confdefs.h"
10764 $ac_includes_default
10765 int
10766 main ()
10767 {
10768 if ((bits16_t *) 0)
10769   return 0;
10770 if (sizeof (bits16_t))
10771   return 0;
10772   ;
10773   return 0;
10774 }
10775 _ACEOF
10776 rm -f conftest.$ac_objext
10777 if { (eval echo "$as_me:10777: \"$ac_compile\"") >&5
10778   (eval $ac_compile) 2>&5
10779   ac_status=$?
10780   echo "$as_me:10780: \$? = $ac_status" >&5
10781   (exit $ac_status); } &&
10782          { ac_try='test -s conftest.$ac_objext'
10783   { (eval echo "$as_me:10783: \"$ac_try\"") >&5
10784   (eval $ac_try) 2>&5
10785   ac_status=$?
10786   echo "$as_me:10786: \$? = $ac_status" >&5
10787   (exit $ac_status); }; }; then
10788   ac_cv_type_bits16_t=yes
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10792 ac_cv_type_bits16_t=no
10793 fi
10794 rm -f conftest.$ac_objext conftest.$ac_ext
10795 fi
10796 echo "$as_me:10796: result: $ac_cv_type_bits16_t" >&5
10797 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
10798 if test $ac_cv_type_bits16_t = yes; then
10799   :
10800 else
10801
10802 cat >>confdefs.h <<EOF
10803 #define bits16_t short
10804 EOF
10805
10806 fi
10807
10808 elif test "$ac_cv_sizeof_char" = 2; then
10809   echo "$as_me:10809: checking for bits16_t" >&5
10810 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
10811 if test "${ac_cv_type_bits16_t+set}" = set; then
10812   echo $ECHO_N "(cached) $ECHO_C" >&6
10813 else
10814   cat >conftest.$ac_ext <<_ACEOF
10815 #line 10815 "configure"
10816 #include "confdefs.h"
10817 $ac_includes_default
10818 int
10819 main ()
10820 {
10821 if ((bits16_t *) 0)
10822   return 0;
10823 if (sizeof (bits16_t))
10824   return 0;
10825   ;
10826   return 0;
10827 }
10828 _ACEOF
10829 rm -f conftest.$ac_objext
10830 if { (eval echo "$as_me:10830: \"$ac_compile\"") >&5
10831   (eval $ac_compile) 2>&5
10832   ac_status=$?
10833   echo "$as_me:10833: \$? = $ac_status" >&5
10834   (exit $ac_status); } &&
10835          { ac_try='test -s conftest.$ac_objext'
10836   { (eval echo "$as_me:10836: \"$ac_try\"") >&5
10837   (eval $ac_try) 2>&5
10838   ac_status=$?
10839   echo "$as_me:10839: \$? = $ac_status" >&5
10840   (exit $ac_status); }; }; then
10841   ac_cv_type_bits16_t=yes
10842 else
10843   echo "$as_me: failed program was:" >&5
10844 cat conftest.$ac_ext >&5
10845 ac_cv_type_bits16_t=no
10846 fi
10847 rm -f conftest.$ac_objext conftest.$ac_ext
10848 fi
10849 echo "$as_me:10849: result: $ac_cv_type_bits16_t" >&5
10850 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
10851 if test $ac_cv_type_bits16_t = yes; then
10852   :
10853 else
10854
10855 cat >>confdefs.h <<EOF
10856 #define bits16_t char
10857 EOF
10858
10859 fi
10860
10861 else
10862   echo "$as_me:10862: checking for bits16_t" >&5
10863 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
10864 if test "${ac_cv_type_bits16_t+set}" = set; then
10865   echo $ECHO_N "(cached) $ECHO_C" >&6
10866 else
10867   cat >conftest.$ac_ext <<_ACEOF
10868 #line 10868 "configure"
10869 #include "confdefs.h"
10870 $ac_includes_default
10871 int
10872 main ()
10873 {
10874 if ((bits16_t *) 0)
10875   return 0;
10876 if (sizeof (bits16_t))
10877   return 0;
10878   ;
10879   return 0;
10880 }
10881 _ACEOF
10882 rm -f conftest.$ac_objext
10883 if { (eval echo "$as_me:10883: \"$ac_compile\"") >&5
10884   (eval $ac_compile) 2>&5
10885   ac_status=$?
10886   echo "$as_me:10886: \$? = $ac_status" >&5
10887   (exit $ac_status); } &&
10888          { ac_try='test -s conftest.$ac_objext'
10889   { (eval echo "$as_me:10889: \"$ac_try\"") >&5
10890   (eval $ac_try) 2>&5
10891   ac_status=$?
10892   echo "$as_me:10892: \$? = $ac_status" >&5
10893   (exit $ac_status); }; }; then
10894   ac_cv_type_bits16_t=yes
10895 else
10896   echo "$as_me: failed program was:" >&5
10897 cat conftest.$ac_ext >&5
10898 ac_cv_type_bits16_t=no
10899 fi
10900 rm -f conftest.$ac_objext conftest.$ac_ext
10901 fi
10902 echo "$as_me:10902: result: $ac_cv_type_bits16_t" >&5
10903 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
10904 if test $ac_cv_type_bits16_t = yes; then
10905   :
10906 else
10907
10908 cat >>confdefs.h <<EOF
10909 #define bits16_t short
10910 EOF
10911
10912 fi
10913
10914 fi
10915
10916 if test "$ac_cv_sizeof_short" = 2; then
10917   echo "$as_me:10917: checking for u_bits16_t" >&5
10918 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
10919 if test "${ac_cv_type_u_bits16_t+set}" = set; then
10920   echo $ECHO_N "(cached) $ECHO_C" >&6
10921 else
10922   cat >conftest.$ac_ext <<_ACEOF
10923 #line 10923 "configure"
10924 #include "confdefs.h"
10925 $ac_includes_default
10926 int
10927 main ()
10928 {
10929 if ((u_bits16_t *) 0)
10930   return 0;
10931 if (sizeof (u_bits16_t))
10932   return 0;
10933   ;
10934   return 0;
10935 }
10936 _ACEOF
10937 rm -f conftest.$ac_objext
10938 if { (eval echo "$as_me:10938: \"$ac_compile\"") >&5
10939   (eval $ac_compile) 2>&5
10940   ac_status=$?
10941   echo "$as_me:10941: \$? = $ac_status" >&5
10942   (exit $ac_status); } &&
10943          { ac_try='test -s conftest.$ac_objext'
10944   { (eval echo "$as_me:10944: \"$ac_try\"") >&5
10945   (eval $ac_try) 2>&5
10946   ac_status=$?
10947   echo "$as_me:10947: \$? = $ac_status" >&5
10948   (exit $ac_status); }; }; then
10949   ac_cv_type_u_bits16_t=yes
10950 else
10951   echo "$as_me: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10953 ac_cv_type_u_bits16_t=no
10954 fi
10955 rm -f conftest.$ac_objext conftest.$ac_ext
10956 fi
10957 echo "$as_me:10957: result: $ac_cv_type_u_bits16_t" >&5
10958 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
10959 if test $ac_cv_type_u_bits16_t = yes; then
10960   :
10961 else
10962
10963 cat >>confdefs.h <<EOF
10964 #define u_bits16_t unsigned short
10965 EOF
10966
10967 fi
10968
10969 elif test "$ac_cv_sizeof_char" = 2; then
10970   echo "$as_me:10970: checking for u_bits16_t" >&5
10971 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
10972 if test "${ac_cv_type_u_bits16_t+set}" = set; then
10973   echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10975   cat >conftest.$ac_ext <<_ACEOF
10976 #line 10976 "configure"
10977 #include "confdefs.h"
10978 $ac_includes_default
10979 int
10980 main ()
10981 {
10982 if ((u_bits16_t *) 0)
10983   return 0;
10984 if (sizeof (u_bits16_t))
10985   return 0;
10986   ;
10987   return 0;
10988 }
10989 _ACEOF
10990 rm -f conftest.$ac_objext
10991 if { (eval echo "$as_me:10991: \"$ac_compile\"") >&5
10992   (eval $ac_compile) 2>&5
10993   ac_status=$?
10994   echo "$as_me:10994: \$? = $ac_status" >&5
10995   (exit $ac_status); } &&
10996          { ac_try='test -s conftest.$ac_objext'
10997   { (eval echo "$as_me:10997: \"$ac_try\"") >&5
10998   (eval $ac_try) 2>&5
10999   ac_status=$?
11000   echo "$as_me:11000: \$? = $ac_status" >&5
11001   (exit $ac_status); }; }; then
11002   ac_cv_type_u_bits16_t=yes
11003 else
11004   echo "$as_me: failed program was:" >&5
11005 cat conftest.$ac_ext >&5
11006 ac_cv_type_u_bits16_t=no
11007 fi
11008 rm -f conftest.$ac_objext conftest.$ac_ext
11009 fi
11010 echo "$as_me:11010: result: $ac_cv_type_u_bits16_t" >&5
11011 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
11012 if test $ac_cv_type_u_bits16_t = yes; then
11013   :
11014 else
11015
11016 cat >>confdefs.h <<EOF
11017 #define u_bits16_t unsigned char
11018 EOF
11019
11020 fi
11021
11022 else
11023   echo "$as_me:11023: checking for u_bits16_t" >&5
11024 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
11025 if test "${ac_cv_type_u_bits16_t+set}" = set; then
11026   echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028   cat >conftest.$ac_ext <<_ACEOF
11029 #line 11029 "configure"
11030 #include "confdefs.h"
11031 $ac_includes_default
11032 int
11033 main ()
11034 {
11035 if ((u_bits16_t *) 0)
11036   return 0;
11037 if (sizeof (u_bits16_t))
11038   return 0;
11039   ;
11040   return 0;
11041 }
11042 _ACEOF
11043 rm -f conftest.$ac_objext
11044 if { (eval echo "$as_me:11044: \"$ac_compile\"") >&5
11045   (eval $ac_compile) 2>&5
11046   ac_status=$?
11047   echo "$as_me:11047: \$? = $ac_status" >&5
11048   (exit $ac_status); } &&
11049          { ac_try='test -s conftest.$ac_objext'
11050   { (eval echo "$as_me:11050: \"$ac_try\"") >&5
11051   (eval $ac_try) 2>&5
11052   ac_status=$?
11053   echo "$as_me:11053: \$? = $ac_status" >&5
11054   (exit $ac_status); }; }; then
11055   ac_cv_type_u_bits16_t=yes
11056 else
11057   echo "$as_me: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11059 ac_cv_type_u_bits16_t=no
11060 fi
11061 rm -f conftest.$ac_objext conftest.$ac_ext
11062 fi
11063 echo "$as_me:11063: result: $ac_cv_type_u_bits16_t" >&5
11064 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
11065 if test $ac_cv_type_u_bits16_t = yes; then
11066   :
11067 else
11068
11069 cat >>confdefs.h <<EOF
11070 #define u_bits16_t unsigned short
11071 EOF
11072
11073 fi
11074
11075 fi
11076
11077 if test "$ac_cv_sizeof_int" = 4; then
11078   echo "$as_me:11078: checking for bits32_t" >&5
11079 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
11080 if test "${ac_cv_type_bits32_t+set}" = set; then
11081   echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083   cat >conftest.$ac_ext <<_ACEOF
11084 #line 11084 "configure"
11085 #include "confdefs.h"
11086 $ac_includes_default
11087 int
11088 main ()
11089 {
11090 if ((bits32_t *) 0)
11091   return 0;
11092 if (sizeof (bits32_t))
11093   return 0;
11094   ;
11095   return 0;
11096 }
11097 _ACEOF
11098 rm -f conftest.$ac_objext
11099 if { (eval echo "$as_me:11099: \"$ac_compile\"") >&5
11100   (eval $ac_compile) 2>&5
11101   ac_status=$?
11102   echo "$as_me:11102: \$? = $ac_status" >&5
11103   (exit $ac_status); } &&
11104          { ac_try='test -s conftest.$ac_objext'
11105   { (eval echo "$as_me:11105: \"$ac_try\"") >&5
11106   (eval $ac_try) 2>&5
11107   ac_status=$?
11108   echo "$as_me:11108: \$? = $ac_status" >&5
11109   (exit $ac_status); }; }; then
11110   ac_cv_type_bits32_t=yes
11111 else
11112   echo "$as_me: failed program was:" >&5
11113 cat conftest.$ac_ext >&5
11114 ac_cv_type_bits32_t=no
11115 fi
11116 rm -f conftest.$ac_objext conftest.$ac_ext
11117 fi
11118 echo "$as_me:11118: result: $ac_cv_type_bits32_t" >&5
11119 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
11120 if test $ac_cv_type_bits32_t = yes; then
11121   :
11122 else
11123
11124 cat >>confdefs.h <<EOF
11125 #define bits32_t int
11126 EOF
11127
11128 fi
11129
11130 elif test "$ac_cv_sizeof_long" = 4; then
11131   echo "$as_me:11131: checking for bits32_t" >&5
11132 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
11133 if test "${ac_cv_type_bits32_t+set}" = set; then
11134   echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136   cat >conftest.$ac_ext <<_ACEOF
11137 #line 11137 "configure"
11138 #include "confdefs.h"
11139 $ac_includes_default
11140 int
11141 main ()
11142 {
11143 if ((bits32_t *) 0)
11144   return 0;
11145 if (sizeof (bits32_t))
11146   return 0;
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (eval echo "$as_me:11152: \"$ac_compile\"") >&5
11153   (eval $ac_compile) 2>&5
11154   ac_status=$?
11155   echo "$as_me:11155: \$? = $ac_status" >&5
11156   (exit $ac_status); } &&
11157          { ac_try='test -s conftest.$ac_objext'
11158   { (eval echo "$as_me:11158: \"$ac_try\"") >&5
11159   (eval $ac_try) 2>&5
11160   ac_status=$?
11161   echo "$as_me:11161: \$? = $ac_status" >&5
11162   (exit $ac_status); }; }; then
11163   ac_cv_type_bits32_t=yes
11164 else
11165   echo "$as_me: failed program was:" >&5
11166 cat conftest.$ac_ext >&5
11167 ac_cv_type_bits32_t=no
11168 fi
11169 rm -f conftest.$ac_objext conftest.$ac_ext
11170 fi
11171 echo "$as_me:11171: result: $ac_cv_type_bits32_t" >&5
11172 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
11173 if test $ac_cv_type_bits32_t = yes; then
11174   :
11175 else
11176
11177 cat >>confdefs.h <<EOF
11178 #define bits32_t long
11179 EOF
11180
11181 fi
11182
11183 else
11184   echo "$as_me:11184: checking for bits32_t" >&5
11185 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
11186 if test "${ac_cv_type_bits32_t+set}" = set; then
11187   echo $ECHO_N "(cached) $ECHO_C" >&6
11188 else
11189   cat >conftest.$ac_ext <<_ACEOF
11190 #line 11190 "configure"
11191 #include "confdefs.h"
11192 $ac_includes_default
11193 int
11194 main ()
11195 {
11196 if ((bits32_t *) 0)
11197   return 0;
11198 if (sizeof (bits32_t))
11199   return 0;
11200   ;
11201   return 0;
11202 }
11203 _ACEOF
11204 rm -f conftest.$ac_objext
11205 if { (eval echo "$as_me:11205: \"$ac_compile\"") >&5
11206   (eval $ac_compile) 2>&5
11207   ac_status=$?
11208   echo "$as_me:11208: \$? = $ac_status" >&5
11209   (exit $ac_status); } &&
11210          { ac_try='test -s conftest.$ac_objext'
11211   { (eval echo "$as_me:11211: \"$ac_try\"") >&5
11212   (eval $ac_try) 2>&5
11213   ac_status=$?
11214   echo "$as_me:11214: \$? = $ac_status" >&5
11215   (exit $ac_status); }; }; then
11216   ac_cv_type_bits32_t=yes
11217 else
11218   echo "$as_me: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11220 ac_cv_type_bits32_t=no
11221 fi
11222 rm -f conftest.$ac_objext conftest.$ac_ext
11223 fi
11224 echo "$as_me:11224: result: $ac_cv_type_bits32_t" >&5
11225 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
11226 if test $ac_cv_type_bits32_t = yes; then
11227   :
11228 else
11229
11230 cat >>confdefs.h <<EOF
11231 #define bits32_t int
11232 EOF
11233
11234 fi
11235
11236 fi
11237
11238 if test "$ac_cv_sizeof_int" = 4; then
11239   echo "$as_me:11239: checking for u_bits32_t" >&5
11240 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
11241 if test "${ac_cv_type_u_bits32_t+set}" = set; then
11242   echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244   cat >conftest.$ac_ext <<_ACEOF
11245 #line 11245 "configure"
11246 #include "confdefs.h"
11247 $ac_includes_default
11248 int
11249 main ()
11250 {
11251 if ((u_bits32_t *) 0)
11252   return 0;
11253 if (sizeof (u_bits32_t))
11254   return 0;
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 rm -f conftest.$ac_objext
11260 if { (eval echo "$as_me:11260: \"$ac_compile\"") >&5
11261   (eval $ac_compile) 2>&5
11262   ac_status=$?
11263   echo "$as_me:11263: \$? = $ac_status" >&5
11264   (exit $ac_status); } &&
11265          { ac_try='test -s conftest.$ac_objext'
11266   { (eval echo "$as_me:11266: \"$ac_try\"") >&5
11267   (eval $ac_try) 2>&5
11268   ac_status=$?
11269   echo "$as_me:11269: \$? = $ac_status" >&5
11270   (exit $ac_status); }; }; then
11271   ac_cv_type_u_bits32_t=yes
11272 else
11273   echo "$as_me: failed program was:" >&5
11274 cat conftest.$ac_ext >&5
11275 ac_cv_type_u_bits32_t=no
11276 fi
11277 rm -f conftest.$ac_objext conftest.$ac_ext
11278 fi
11279 echo "$as_me:11279: result: $ac_cv_type_u_bits32_t" >&5
11280 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
11281 if test $ac_cv_type_u_bits32_t = yes; then
11282   :
11283 else
11284
11285 cat >>confdefs.h <<EOF
11286 #define u_bits32_t unsigned int
11287 EOF
11288
11289 fi
11290
11291 elif test "$ac_cv_sizeof_long" = 4; then
11292   echo "$as_me:11292: checking for u_bits32_t" >&5
11293 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
11294 if test "${ac_cv_type_u_bits32_t+set}" = set; then
11295   echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297   cat >conftest.$ac_ext <<_ACEOF
11298 #line 11298 "configure"
11299 #include "confdefs.h"
11300 $ac_includes_default
11301 int
11302 main ()
11303 {
11304 if ((u_bits32_t *) 0)
11305   return 0;
11306 if (sizeof (u_bits32_t))
11307   return 0;
11308   ;
11309   return 0;
11310 }
11311 _ACEOF
11312 rm -f conftest.$ac_objext
11313 if { (eval echo "$as_me:11313: \"$ac_compile\"") >&5
11314   (eval $ac_compile) 2>&5
11315   ac_status=$?
11316   echo "$as_me:11316: \$? = $ac_status" >&5
11317   (exit $ac_status); } &&
11318          { ac_try='test -s conftest.$ac_objext'
11319   { (eval echo "$as_me:11319: \"$ac_try\"") >&5
11320   (eval $ac_try) 2>&5
11321   ac_status=$?
11322   echo "$as_me:11322: \$? = $ac_status" >&5
11323   (exit $ac_status); }; }; then
11324   ac_cv_type_u_bits32_t=yes
11325 else
11326   echo "$as_me: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11328 ac_cv_type_u_bits32_t=no
11329 fi
11330 rm -f conftest.$ac_objext conftest.$ac_ext
11331 fi
11332 echo "$as_me:11332: result: $ac_cv_type_u_bits32_t" >&5
11333 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
11334 if test $ac_cv_type_u_bits32_t = yes; then
11335   :
11336 else
11337
11338 cat >>confdefs.h <<EOF
11339 #define u_bits32_t unsigned long
11340 EOF
11341
11342 fi
11343
11344 else
11345   echo "$as_me:11345: checking for u_bits32_t" >&5
11346 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
11347 if test "${ac_cv_type_u_bits32_t+set}" = set; then
11348   echo $ECHO_N "(cached) $ECHO_C" >&6
11349 else
11350   cat >conftest.$ac_ext <<_ACEOF
11351 #line 11351 "configure"
11352 #include "confdefs.h"
11353 $ac_includes_default
11354 int
11355 main ()
11356 {
11357 if ((u_bits32_t *) 0)
11358   return 0;
11359 if (sizeof (u_bits32_t))
11360   return 0;
11361   ;
11362   return 0;
11363 }
11364 _ACEOF
11365 rm -f conftest.$ac_objext
11366 if { (eval echo "$as_me:11366: \"$ac_compile\"") >&5
11367   (eval $ac_compile) 2>&5
11368   ac_status=$?
11369   echo "$as_me:11369: \$? = $ac_status" >&5
11370   (exit $ac_status); } &&
11371          { ac_try='test -s conftest.$ac_objext'
11372   { (eval echo "$as_me:11372: \"$ac_try\"") >&5
11373   (eval $ac_try) 2>&5
11374   ac_status=$?
11375   echo "$as_me:11375: \$? = $ac_status" >&5
11376   (exit $ac_status); }; }; then
11377   ac_cv_type_u_bits32_t=yes
11378 else
11379   echo "$as_me: failed program was:" >&5
11380 cat conftest.$ac_ext >&5
11381 ac_cv_type_u_bits32_t=no
11382 fi
11383 rm -f conftest.$ac_objext conftest.$ac_ext
11384 fi
11385 echo "$as_me:11385: result: $ac_cv_type_u_bits32_t" >&5
11386 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
11387 if test $ac_cv_type_u_bits32_t = yes; then
11388   :
11389 else
11390
11391 cat >>confdefs.h <<EOF
11392 #define u_bits32_t unsigned int
11393 EOF
11394
11395 fi
11396
11397 fi
11398
11399 if test "$ac_cv_sizeof_char_p" = 8; then
11400   echo "$as_me:11400: checking for bits64_t" >&5
11401 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
11402 if test "${ac_cv_type_bits64_t+set}" = set; then
11403   echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405   cat >conftest.$ac_ext <<_ACEOF
11406 #line 11406 "configure"
11407 #include "confdefs.h"
11408 $ac_includes_default
11409 int
11410 main ()
11411 {
11412 if ((bits64_t *) 0)
11413   return 0;
11414 if (sizeof (bits64_t))
11415   return 0;
11416   ;
11417   return 0;
11418 }
11419 _ACEOF
11420 rm -f conftest.$ac_objext
11421 if { (eval echo "$as_me:11421: \"$ac_compile\"") >&5
11422   (eval $ac_compile) 2>&5
11423   ac_status=$?
11424   echo "$as_me:11424: \$? = $ac_status" >&5
11425   (exit $ac_status); } &&
11426          { ac_try='test -s conftest.$ac_objext'
11427   { (eval echo "$as_me:11427: \"$ac_try\"") >&5
11428   (eval $ac_try) 2>&5
11429   ac_status=$?
11430   echo "$as_me:11430: \$? = $ac_status" >&5
11431   (exit $ac_status); }; }; then
11432   ac_cv_type_bits64_t=yes
11433 else
11434   echo "$as_me: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11436 ac_cv_type_bits64_t=no
11437 fi
11438 rm -f conftest.$ac_objext conftest.$ac_ext
11439 fi
11440 echo "$as_me:11440: result: $ac_cv_type_bits64_t" >&5
11441 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
11442 if test $ac_cv_type_bits64_t = yes; then
11443   :
11444 else
11445
11446 cat >>confdefs.h <<EOF
11447 #define bits64_t char *
11448 EOF
11449
11450 fi
11451
11452 elif test "$ac_cv_sizeof_double" = 8; then
11453   echo "$as_me:11453: checking for bits64_t" >&5
11454 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
11455 if test "${ac_cv_type_bits64_t+set}" = set; then
11456   echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458   cat >conftest.$ac_ext <<_ACEOF
11459 #line 11459 "configure"
11460 #include "confdefs.h"
11461 $ac_includes_default
11462 int
11463 main ()
11464 {
11465 if ((bits64_t *) 0)
11466   return 0;
11467 if (sizeof (bits64_t))
11468   return 0;
11469   ;
11470   return 0;
11471 }
11472 _ACEOF
11473 rm -f conftest.$ac_objext
11474 if { (eval echo "$as_me:11474: \"$ac_compile\"") >&5
11475   (eval $ac_compile) 2>&5
11476   ac_status=$?
11477   echo "$as_me:11477: \$? = $ac_status" >&5
11478   (exit $ac_status); } &&
11479          { ac_try='test -s conftest.$ac_objext'
11480   { (eval echo "$as_me:11480: \"$ac_try\"") >&5
11481   (eval $ac_try) 2>&5
11482   ac_status=$?
11483   echo "$as_me:11483: \$? = $ac_status" >&5
11484   (exit $ac_status); }; }; then
11485   ac_cv_type_bits64_t=yes
11486 else
11487   echo "$as_me: failed program was:" >&5
11488 cat conftest.$ac_ext >&5
11489 ac_cv_type_bits64_t=no
11490 fi
11491 rm -f conftest.$ac_objext conftest.$ac_ext
11492 fi
11493 echo "$as_me:11493: result: $ac_cv_type_bits64_t" >&5
11494 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
11495 if test $ac_cv_type_bits64_t = yes; then
11496   :
11497 else
11498
11499 cat >>confdefs.h <<EOF
11500 #define bits64_t double
11501 EOF
11502
11503 fi
11504
11505 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
11506   echo "$as_me:11506: checking for bits64_t" >&5
11507 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
11508 if test "${ac_cv_type_bits64_t+set}" = set; then
11509   echo $ECHO_N "(cached) $ECHO_C" >&6
11510 else
11511   cat >conftest.$ac_ext <<_ACEOF
11512 #line 11512 "configure"
11513 #include "confdefs.h"
11514 $ac_includes_default
11515 int
11516 main ()
11517 {
11518 if ((bits64_t *) 0)
11519   return 0;
11520 if (sizeof (bits64_t))
11521   return 0;
11522   ;
11523   return 0;
11524 }
11525 _ACEOF
11526 rm -f conftest.$ac_objext
11527 if { (eval echo "$as_me:11527: \"$ac_compile\"") >&5
11528   (eval $ac_compile) 2>&5
11529   ac_status=$?
11530   echo "$as_me:11530: \$? = $ac_status" >&5
11531   (exit $ac_status); } &&
11532          { ac_try='test -s conftest.$ac_objext'
11533   { (eval echo "$as_me:11533: \"$ac_try\"") >&5
11534   (eval $ac_try) 2>&5
11535   ac_status=$?
11536   echo "$as_me:11536: \$? = $ac_status" >&5
11537   (exit $ac_status); }; }; then
11538   ac_cv_type_bits64_t=yes
11539 else
11540   echo "$as_me: failed program was:" >&5
11541 cat conftest.$ac_ext >&5
11542 ac_cv_type_bits64_t=no
11543 fi
11544 rm -f conftest.$ac_objext conftest.$ac_ext
11545 fi
11546 echo "$as_me:11546: result: $ac_cv_type_bits64_t" >&5
11547 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
11548 if test $ac_cv_type_bits64_t = yes; then
11549   :
11550 else
11551
11552 cat >>confdefs.h <<EOF
11553 #define bits64_t long long
11554 EOF
11555
11556 fi
11557
11558 elif test "$ac_cv_sizeof_long" = 8; then
11559   echo "$as_me:11559: checking for bits64_t" >&5
11560 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
11561 if test "${ac_cv_type_bits64_t+set}" = set; then
11562   echo $ECHO_N "(cached) $ECHO_C" >&6
11563 else
11564   cat >conftest.$ac_ext <<_ACEOF
11565 #line 11565 "configure"
11566 #include "confdefs.h"
11567 $ac_includes_default
11568 int
11569 main ()
11570 {
11571 if ((bits64_t *) 0)
11572   return 0;
11573 if (sizeof (bits64_t))
11574   return 0;
11575   ;
11576   return 0;
11577 }
11578 _ACEOF
11579 rm -f conftest.$ac_objext
11580 if { (eval echo "$as_me:11580: \"$ac_compile\"") >&5
11581   (eval $ac_compile) 2>&5
11582   ac_status=$?
11583   echo "$as_me:11583: \$? = $ac_status" >&5
11584   (exit $ac_status); } &&
11585          { ac_try='test -s conftest.$ac_objext'
11586   { (eval echo "$as_me:11586: \"$ac_try\"") >&5
11587   (eval $ac_try) 2>&5
11588   ac_status=$?
11589   echo "$as_me:11589: \$? = $ac_status" >&5
11590   (exit $ac_status); }; }; then
11591   ac_cv_type_bits64_t=yes
11592 else
11593   echo "$as_me: failed program was:" >&5
11594 cat conftest.$ac_ext >&5
11595 ac_cv_type_bits64_t=no
11596 fi
11597 rm -f conftest.$ac_objext conftest.$ac_ext
11598 fi
11599 echo "$as_me:11599: result: $ac_cv_type_bits64_t" >&5
11600 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
11601 if test $ac_cv_type_bits64_t = yes; then
11602   :
11603 else
11604
11605 cat >>confdefs.h <<EOF
11606 #define bits64_t long
11607 EOF
11608
11609 fi
11610
11611 else
11612   echo "$as_me:11612: checking for bits64_t" >&5
11613 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
11614 if test "${ac_cv_type_bits64_t+set}" = set; then
11615   echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617   cat >conftest.$ac_ext <<_ACEOF
11618 #line 11618 "configure"
11619 #include "confdefs.h"
11620 $ac_includes_default
11621 int
11622 main ()
11623 {
11624 if ((bits64_t *) 0)
11625   return 0;
11626 if (sizeof (bits64_t))
11627   return 0;
11628   ;
11629   return 0;
11630 }
11631 _ACEOF
11632 rm -f conftest.$ac_objext
11633 if { (eval echo "$as_me:11633: \"$ac_compile\"") >&5
11634   (eval $ac_compile) 2>&5
11635   ac_status=$?
11636   echo "$as_me:11636: \$? = $ac_status" >&5
11637   (exit $ac_status); } &&
11638          { ac_try='test -s conftest.$ac_objext'
11639   { (eval echo "$as_me:11639: \"$ac_try\"") >&5
11640   (eval $ac_try) 2>&5
11641   ac_status=$?
11642   echo "$as_me:11642: \$? = $ac_status" >&5
11643   (exit $ac_status); }; }; then
11644   ac_cv_type_bits64_t=yes
11645 else
11646   echo "$as_me: failed program was:" >&5
11647 cat conftest.$ac_ext >&5
11648 ac_cv_type_bits64_t=no
11649 fi
11650 rm -f conftest.$ac_objext conftest.$ac_ext
11651 fi
11652 echo "$as_me:11652: result: $ac_cv_type_bits64_t" >&5
11653 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
11654 if test $ac_cv_type_bits64_t = yes; then
11655   :
11656 else
11657
11658 cat >>confdefs.h <<EOF
11659 #define bits64_t double
11660 EOF
11661
11662 fi
11663
11664 fi
11665
11666 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
11667   echo "$as_me:11667: checking for ptrdiff_t" >&5
11668 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11669 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672   cat >conftest.$ac_ext <<_ACEOF
11673 #line 11673 "configure"
11674 #include "confdefs.h"
11675 $ac_includes_default
11676 int
11677 main ()
11678 {
11679 if ((ptrdiff_t *) 0)
11680   return 0;
11681 if (sizeof (ptrdiff_t))
11682   return 0;
11683   ;
11684   return 0;
11685 }
11686 _ACEOF
11687 rm -f conftest.$ac_objext
11688 if { (eval echo "$as_me:11688: \"$ac_compile\"") >&5
11689   (eval $ac_compile) 2>&5
11690   ac_status=$?
11691   echo "$as_me:11691: \$? = $ac_status" >&5
11692   (exit $ac_status); } &&
11693          { ac_try='test -s conftest.$ac_objext'
11694   { (eval echo "$as_me:11694: \"$ac_try\"") >&5
11695   (eval $ac_try) 2>&5
11696   ac_status=$?
11697   echo "$as_me:11697: \$? = $ac_status" >&5
11698   (exit $ac_status); }; }; then
11699   ac_cv_type_ptrdiff_t=yes
11700 else
11701   echo "$as_me: failed program was:" >&5
11702 cat conftest.$ac_ext >&5
11703 ac_cv_type_ptrdiff_t=no
11704 fi
11705 rm -f conftest.$ac_objext conftest.$ac_ext
11706 fi
11707 echo "$as_me:11707: result: $ac_cv_type_ptrdiff_t" >&5
11708 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11709 if test $ac_cv_type_ptrdiff_t = yes; then
11710   :
11711 else
11712
11713 cat >>confdefs.h <<EOF
11714 #define ptrdiff_t int
11715 EOF
11716
11717 fi
11718
11719 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
11720   echo "$as_me:11720: checking for ptrdiff_t" >&5
11721 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11722 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11723   echo $ECHO_N "(cached) $ECHO_C" >&6
11724 else
11725   cat >conftest.$ac_ext <<_ACEOF
11726 #line 11726 "configure"
11727 #include "confdefs.h"
11728 $ac_includes_default
11729 int
11730 main ()
11731 {
11732 if ((ptrdiff_t *) 0)
11733   return 0;
11734 if (sizeof (ptrdiff_t))
11735   return 0;
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 rm -f conftest.$ac_objext
11741 if { (eval echo "$as_me:11741: \"$ac_compile\"") >&5
11742   (eval $ac_compile) 2>&5
11743   ac_status=$?
11744   echo "$as_me:11744: \$? = $ac_status" >&5
11745   (exit $ac_status); } &&
11746          { ac_try='test -s conftest.$ac_objext'
11747   { (eval echo "$as_me:11747: \"$ac_try\"") >&5
11748   (eval $ac_try) 2>&5
11749   ac_status=$?
11750   echo "$as_me:11750: \$? = $ac_status" >&5
11751   (exit $ac_status); }; }; then
11752   ac_cv_type_ptrdiff_t=yes
11753 else
11754   echo "$as_me: failed program was:" >&5
11755 cat conftest.$ac_ext >&5
11756 ac_cv_type_ptrdiff_t=no
11757 fi
11758 rm -f conftest.$ac_objext conftest.$ac_ext
11759 fi
11760 echo "$as_me:11760: result: $ac_cv_type_ptrdiff_t" >&5
11761 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11762 if test $ac_cv_type_ptrdiff_t = yes; then
11763   :
11764 else
11765
11766 cat >>confdefs.h <<EOF
11767 #define ptrdiff_t long
11768 EOF
11769
11770 fi
11771
11772 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
11773   echo "$as_me:11773: checking for ptrdiff_t" >&5
11774 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11775 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11776   echo $ECHO_N "(cached) $ECHO_C" >&6
11777 else
11778   cat >conftest.$ac_ext <<_ACEOF
11779 #line 11779 "configure"
11780 #include "confdefs.h"
11781 $ac_includes_default
11782 int
11783 main ()
11784 {
11785 if ((ptrdiff_t *) 0)
11786   return 0;
11787 if (sizeof (ptrdiff_t))
11788   return 0;
11789   ;
11790   return 0;
11791 }
11792 _ACEOF
11793 rm -f conftest.$ac_objext
11794 if { (eval echo "$as_me:11794: \"$ac_compile\"") >&5
11795   (eval $ac_compile) 2>&5
11796   ac_status=$?
11797   echo "$as_me:11797: \$? = $ac_status" >&5
11798   (exit $ac_status); } &&
11799          { ac_try='test -s conftest.$ac_objext'
11800   { (eval echo "$as_me:11800: \"$ac_try\"") >&5
11801   (eval $ac_try) 2>&5
11802   ac_status=$?
11803   echo "$as_me:11803: \$? = $ac_status" >&5
11804   (exit $ac_status); }; }; then
11805   ac_cv_type_ptrdiff_t=yes
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11809 ac_cv_type_ptrdiff_t=no
11810 fi
11811 rm -f conftest.$ac_objext conftest.$ac_ext
11812 fi
11813 echo "$as_me:11813: result: $ac_cv_type_ptrdiff_t" >&5
11814 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11815 if test $ac_cv_type_ptrdiff_t = yes; then
11816   :
11817 else
11818
11819 cat >>confdefs.h <<EOF
11820 #define ptrdiff_t long long
11821 EOF
11822
11823 fi
11824
11825 else
11826   echo "$as_me:11826: checking for ptrdiff_t" >&5
11827 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11828 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11829   echo $ECHO_N "(cached) $ECHO_C" >&6
11830 else
11831   cat >conftest.$ac_ext <<_ACEOF
11832 #line 11832 "configure"
11833 #include "confdefs.h"
11834 $ac_includes_default
11835 int
11836 main ()
11837 {
11838 if ((ptrdiff_t *) 0)
11839   return 0;
11840 if (sizeof (ptrdiff_t))
11841   return 0;
11842   ;
11843   return 0;
11844 }
11845 _ACEOF
11846 rm -f conftest.$ac_objext
11847 if { (eval echo "$as_me:11847: \"$ac_compile\"") >&5
11848   (eval $ac_compile) 2>&5
11849   ac_status=$?
11850   echo "$as_me:11850: \$? = $ac_status" >&5
11851   (exit $ac_status); } &&
11852          { ac_try='test -s conftest.$ac_objext'
11853   { (eval echo "$as_me:11853: \"$ac_try\"") >&5
11854   (eval $ac_try) 2>&5
11855   ac_status=$?
11856   echo "$as_me:11856: \$? = $ac_status" >&5
11857   (exit $ac_status); }; }; then
11858   ac_cv_type_ptrdiff_t=yes
11859 else
11860   echo "$as_me: failed program was:" >&5
11861 cat conftest.$ac_ext >&5
11862 ac_cv_type_ptrdiff_t=no
11863 fi
11864 rm -f conftest.$ac_objext conftest.$ac_ext
11865 fi
11866 echo "$as_me:11866: result: $ac_cv_type_ptrdiff_t" >&5
11867 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11868 if test $ac_cv_type_ptrdiff_t = yes; then
11869   :
11870 else
11871
11872 cat >>confdefs.h <<EOF
11873 #define ptrdiff_t int
11874 EOF
11875
11876 fi
11877
11878 fi
11879
11880 echo "$as_me:11880: checking whether stat file-mode macros are broken" >&5
11881 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11882 if test "${ac_cv_header_stat_broken+set}" = set; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885   cat >conftest.$ac_ext <<_ACEOF
11886 #line 11886 "configure"
11887 #include "confdefs.h"
11888 #include <sys/types.h>
11889 #include <sys/stat.h>
11890
11891 #if defined(S_ISBLK) && defined(S_IFDIR)
11892 # if S_ISBLK (S_IFDIR)
11893 You lose.
11894 # endif
11895 #endif
11896
11897 #if defined(S_ISBLK) && defined(S_IFCHR)
11898 # if S_ISBLK (S_IFCHR)
11899 You lose.
11900 # endif
11901 #endif
11902
11903 #if defined(S_ISLNK) && defined(S_IFREG)
11904 # if S_ISLNK (S_IFREG)
11905 You lose.
11906 # endif
11907 #endif
11908
11909 #if defined(S_ISSOCK) && defined(S_IFREG)
11910 # if S_ISSOCK (S_IFREG)
11911 You lose.
11912 # endif
11913 #endif
11914
11915 _ACEOF
11916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11917   egrep "You lose" >/dev/null 2>&1; then
11918   ac_cv_header_stat_broken=yes
11919 else
11920   ac_cv_header_stat_broken=no
11921 fi
11922 rm -f conftest*
11923
11924 fi
11925 echo "$as_me:11925: result: $ac_cv_header_stat_broken" >&5
11926 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11927 if test $ac_cv_header_stat_broken = yes; then
11928
11929 cat >>confdefs.h <<\EOF
11930 #define STAT_MACROS_BROKEN 1
11931 EOF
11932
11933 fi
11934
11935 echo "$as_me:11935: checking whether #! works in shell scripts" >&5
11936 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
11937 if test "${ac_cv_sys_interpreter+set}" = set; then
11938   echo $ECHO_N "(cached) $ECHO_C" >&6
11939 else
11940   echo '#! /bin/cat
11941 exit 69
11942 ' >conftest
11943 chmod u+x conftest
11944 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
11945 if test $? -ne 69; then
11946    ac_cv_sys_interpreter=yes
11947 else
11948    ac_cv_sys_interpreter=no
11949 fi
11950 rm -f conftest
11951 fi
11952 echo "$as_me:11952: result: $ac_cv_sys_interpreter" >&5
11953 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
11954 interpval=$ac_cv_sys_interpreter
11955
11956 if test $ac_cv_sys_interpreter = yes; then
11957 cat >>confdefs.h <<\EOF
11958 #define HAVE_HASH_BANG_EXEC 1
11959 EOF
11960
11961 fi
11962
11963 if test "$ac_cv_func_lstat" = "no"; then
11964 echo "$as_me:11964: checking for lstat" >&5
11965 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
11966 if test "${bash_cv_func_lstat+set}" = set; then
11967   echo $ECHO_N "(cached) $ECHO_C" >&6
11968 else
11969   cat >conftest.$ac_ext <<_ACEOF
11970 #line 11970 "configure"
11971 #include "confdefs.h"
11972
11973 #include <sys/types.h>
11974 #include <sys/stat.h>
11975
11976 int
11977 main ()
11978 {
11979  lstat(".",(struct stat *)0);
11980   ;
11981   return 0;
11982 }
11983 _ACEOF
11984 rm -f conftest.$ac_objext conftest$ac_exeext
11985 if { (eval echo "$as_me:11985: \"$ac_link\"") >&5
11986   (eval $ac_link) 2>&5
11987   ac_status=$?
11988   echo "$as_me:11988: \$? = $ac_status" >&5
11989   (exit $ac_status); } &&
11990          { ac_try='test -s conftest$ac_exeext'
11991   { (eval echo "$as_me:11991: \"$ac_try\"") >&5
11992   (eval $ac_try) 2>&5
11993   ac_status=$?
11994   echo "$as_me:11994: \$? = $ac_status" >&5
11995   (exit $ac_status); }; }; then
11996   bash_cv_func_lstat=yes
11997 else
11998   echo "$as_me: failed program was:" >&5
11999 cat conftest.$ac_ext >&5
12000 bash_cv_func_lstat=no
12001 fi
12002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12003 fi
12004 echo "$as_me:12004: result: $bash_cv_func_lstat" >&5
12005 echo "${ECHO_T}$bash_cv_func_lstat" >&6
12006 if test $bash_cv_func_lstat = yes; then
12007   cat >>confdefs.h <<\EOF
12008 #define HAVE_LSTAT 1
12009 EOF
12010
12011 fi
12012
12013 fi
12014
12015 echo "$as_me:12015: checking if dup2 fails to clear the close-on-exec flag" >&5
12016 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
12017 if test "${bash_cv_dup2_broken+set}" = set; then
12018   echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020   if test "$cross_compiling" = yes; then
12021   { echo "$as_me:12021: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
12022 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
12023      bash_cv_dup2_broken=no
12024 else
12025   cat >conftest.$ac_ext <<_ACEOF
12026 #line 12026 "configure"
12027 #include "confdefs.h"
12028
12029 #include <sys/types.h>
12030 #include <fcntl.h>
12031 main()
12032 {
12033   int fd1, fd2, fl;
12034   fd1 = open("/dev/null", 2);
12035   if (fcntl(fd1, 2, 1) < 0)
12036     exit(1);
12037   fd2 = dup2(fd1, 1);
12038   if (fd2 < 0)
12039     exit(2);
12040   fl = fcntl(fd2, 1, 0);
12041   /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
12042   exit(fl != 1);
12043 }
12044
12045 _ACEOF
12046 rm -f conftest$ac_exeext
12047 if { (eval echo "$as_me:12047: \"$ac_link\"") >&5
12048   (eval $ac_link) 2>&5
12049   ac_status=$?
12050   echo "$as_me:12050: \$? = $ac_status" >&5
12051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12052   { (eval echo "$as_me:12052: \"$ac_try\"") >&5
12053   (eval $ac_try) 2>&5
12054   ac_status=$?
12055   echo "$as_me:12055: \$? = $ac_status" >&5
12056   (exit $ac_status); }; }; then
12057   bash_cv_dup2_broken=yes
12058 else
12059   echo "$as_me: program exited with status $ac_status" >&5
12060 echo "$as_me: failed program was:" >&5
12061 cat conftest.$ac_ext >&5
12062 bash_cv_dup2_broken=no
12063 fi
12064 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12065 fi
12066
12067 fi
12068
12069 echo "$as_me:12069: result: $bash_cv_dup2_broken" >&5
12070 echo "${ECHO_T}$bash_cv_dup2_broken" >&6
12071 if test $bash_cv_dup2_broken = yes; then
12072 cat >>confdefs.h <<\EOF
12073 #define DUP2_BROKEN 1
12074 EOF
12075
12076 fi
12077
12078 echo "$as_me:12078: checking whether pgrps need synchronization" >&5
12079 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
12080 if test "${bash_cv_pgrp_pipe+set}" = set; then
12081   echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083   if test "$cross_compiling" = yes; then
12084   { echo "$as_me:12084: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
12085 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
12086     bash_cv_pgrp_pipe=no
12087 else
12088   cat >conftest.$ac_ext <<_ACEOF
12089 #line 12089 "configure"
12090 #include "confdefs.h"
12091
12092 #ifdef HAVE_UNISTD_H
12093 #  include <unistd.h>
12094 #endif
12095 main()
12096 {
12097 # ifdef GETPGRP_VOID
12098 #  define getpgID()     getpgrp()
12099 # else
12100 #  define getpgID()     getpgrp(0)
12101 #  define setpgid(x,y)  setpgrp(x,y)
12102 # endif
12103         int pid1, pid2, fds[2];
12104         int status;
12105         char ok;
12106
12107         switch (pid1 = fork()) {
12108           case -1:
12109             exit(1);
12110           case 0:
12111             setpgid(0, getpid());
12112             exit(0);
12113         }
12114         setpgid(pid1, pid1);
12115
12116         sleep(2);       /* let first child die */
12117
12118         if (pipe(fds) < 0)
12119           exit(2);
12120
12121         switch (pid2 = fork()) {
12122           case -1:
12123             exit(3);
12124           case 0:
12125             setpgid(0, pid1);
12126             ok = getpgID() == pid1;
12127             write(fds[1], &ok, 1);
12128             exit(0);
12129         }
12130         setpgid(pid2, pid1);
12131
12132         close(fds[1]);
12133         if (read(fds[0], &ok, 1) != 1)
12134           exit(4);
12135         wait(&status);
12136         wait(&status);
12137         exit(ok ? 0 : 5);
12138 }
12139
12140 _ACEOF
12141 rm -f conftest$ac_exeext
12142 if { (eval echo "$as_me:12142: \"$ac_link\"") >&5
12143   (eval $ac_link) 2>&5
12144   ac_status=$?
12145   echo "$as_me:12145: \$? = $ac_status" >&5
12146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12147   { (eval echo "$as_me:12147: \"$ac_try\"") >&5
12148   (eval $ac_try) 2>&5
12149   ac_status=$?
12150   echo "$as_me:12150: \$? = $ac_status" >&5
12151   (exit $ac_status); }; }; then
12152   bash_cv_pgrp_pipe=no
12153 else
12154   echo "$as_me: program exited with status $ac_status" >&5
12155 echo "$as_me: failed program was:" >&5
12156 cat conftest.$ac_ext >&5
12157 bash_cv_pgrp_pipe=yes
12158 fi
12159 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12160 fi
12161
12162 fi
12163
12164 echo "$as_me:12164: result: $bash_cv_pgrp_pipe" >&5
12165 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
12166 if test $bash_cv_pgrp_pipe = yes; then
12167 cat >>confdefs.h <<\EOF
12168 #define PGRP_PIPE 1
12169 EOF
12170
12171 fi
12172
12173 echo "$as_me:12173: checking for type of signal functions" >&5
12174 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12175 if test "${bash_cv_signal_vintage+set}" = set; then
12176   echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178
12179   cat >conftest.$ac_ext <<_ACEOF
12180 #line 12180 "configure"
12181 #include "confdefs.h"
12182 #include <signal.h>
12183 int
12184 main ()
12185 {
12186
12187     sigset_t ss;
12188     struct sigaction sa;
12189     sigemptyset(&ss); sigsuspend(&ss);
12190     sigaction(SIGINT, &sa, (struct sigaction *) 0);
12191     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12192
12193   ;
12194   return 0;
12195 }
12196 _ACEOF
12197 rm -f conftest.$ac_objext conftest$ac_exeext
12198 if { (eval echo "$as_me:12198: \"$ac_link\"") >&5
12199   (eval $ac_link) 2>&5
12200   ac_status=$?
12201   echo "$as_me:12201: \$? = $ac_status" >&5
12202   (exit $ac_status); } &&
12203          { ac_try='test -s conftest$ac_exeext'
12204   { (eval echo "$as_me:12204: \"$ac_try\"") >&5
12205   (eval $ac_try) 2>&5
12206   ac_status=$?
12207   echo "$as_me:12207: \$? = $ac_status" >&5
12208   (exit $ac_status); }; }; then
12209   bash_cv_signal_vintage=posix
12210 else
12211   echo "$as_me: failed program was:" >&5
12212 cat conftest.$ac_ext >&5
12213
12214     cat >conftest.$ac_ext <<_ACEOF
12215 #line 12215 "configure"
12216 #include "confdefs.h"
12217 #include <signal.h>
12218 int
12219 main ()
12220 {
12221
12222         int mask = sigmask(SIGINT);
12223         sigsetmask(mask); sigblock(mask); sigpause(mask);
12224
12225   ;
12226   return 0;
12227 }
12228 _ACEOF
12229 rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (eval echo "$as_me:12230: \"$ac_link\"") >&5
12231   (eval $ac_link) 2>&5
12232   ac_status=$?
12233   echo "$as_me:12233: \$? = $ac_status" >&5
12234   (exit $ac_status); } &&
12235          { ac_try='test -s conftest$ac_exeext'
12236   { (eval echo "$as_me:12236: \"$ac_try\"") >&5
12237   (eval $ac_try) 2>&5
12238   ac_status=$?
12239   echo "$as_me:12239: \$? = $ac_status" >&5
12240   (exit $ac_status); }; }; then
12241   bash_cv_signal_vintage=4.2bsd
12242 else
12243   echo "$as_me: failed program was:" >&5
12244 cat conftest.$ac_ext >&5
12245
12246       cat >conftest.$ac_ext <<_ACEOF
12247 #line 12247 "configure"
12248 #include "confdefs.h"
12249
12250         #include <signal.h>
12251         RETSIGTYPE foo() { }
12252 int
12253 main ()
12254 {
12255
12256                 int mask = sigmask(SIGINT);
12257                 sigset(SIGINT, foo); sigrelse(SIGINT);
12258                 sighold(SIGINT); sigpause(SIGINT);
12259
12260   ;
12261   return 0;
12262 }
12263 _ACEOF
12264 rm -f conftest.$ac_objext conftest$ac_exeext
12265 if { (eval echo "$as_me:12265: \"$ac_link\"") >&5
12266   (eval $ac_link) 2>&5
12267   ac_status=$?
12268   echo "$as_me:12268: \$? = $ac_status" >&5
12269   (exit $ac_status); } &&
12270          { ac_try='test -s conftest$ac_exeext'
12271   { (eval echo "$as_me:12271: \"$ac_try\"") >&5
12272   (eval $ac_try) 2>&5
12273   ac_status=$?
12274   echo "$as_me:12274: \$? = $ac_status" >&5
12275   (exit $ac_status); }; }; then
12276   bash_cv_signal_vintage=svr3
12277 else
12278   echo "$as_me: failed program was:" >&5
12279 cat conftest.$ac_ext >&5
12280 bash_cv_signal_vintage=v7
12281
12282 fi
12283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12284
12285 fi
12286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12287
12288 fi
12289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12290
12291 fi
12292
12293 echo "$as_me:12293: result: $bash_cv_signal_vintage" >&5
12294 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12295 if test "$bash_cv_signal_vintage" = posix; then
12296 cat >>confdefs.h <<\EOF
12297 #define HAVE_POSIX_SIGNALS 1
12298 EOF
12299
12300 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12301 cat >>confdefs.h <<\EOF
12302 #define HAVE_BSD_SIGNALS 1
12303 EOF
12304
12305 elif test "$bash_cv_signal_vintage" = svr3; then
12306 cat >>confdefs.h <<\EOF
12307 #define HAVE_USG_SIGHOLD 1
12308 EOF
12309
12310 fi
12311
12312 echo "$as_me:12312: checking for sys_errlist and sys_nerr" >&5
12313 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
12314 if test "${bash_cv_sys_errlist+set}" = set; then
12315   echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317   cat >conftest.$ac_ext <<_ACEOF
12318 #line 12318 "configure"
12319 #include "confdefs.h"
12320 #include <errno.h>
12321 int
12322 main ()
12323 {
12324 extern char *sys_errlist[];
12325  extern int sys_nerr;
12326  char *msg = sys_errlist[sys_nerr - 1];
12327   ;
12328   return 0;
12329 }
12330 _ACEOF
12331 rm -f conftest.$ac_objext conftest$ac_exeext
12332 if { (eval echo "$as_me:12332: \"$ac_link\"") >&5
12333   (eval $ac_link) 2>&5
12334   ac_status=$?
12335   echo "$as_me:12335: \$? = $ac_status" >&5
12336   (exit $ac_status); } &&
12337          { ac_try='test -s conftest$ac_exeext'
12338   { (eval echo "$as_me:12338: \"$ac_try\"") >&5
12339   (eval $ac_try) 2>&5
12340   ac_status=$?
12341   echo "$as_me:12341: \$? = $ac_status" >&5
12342   (exit $ac_status); }; }; then
12343   bash_cv_sys_errlist=yes
12344 else
12345   echo "$as_me: failed program was:" >&5
12346 cat conftest.$ac_ext >&5
12347 bash_cv_sys_errlist=no
12348 fi
12349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12350 fi
12351 echo "$as_me:12351: result: $bash_cv_sys_errlist" >&5
12352 echo "${ECHO_T}$bash_cv_sys_errlist" >&6
12353 if test $bash_cv_sys_errlist = yes; then
12354 cat >>confdefs.h <<\EOF
12355 #define HAVE_SYS_ERRLIST 1
12356 EOF
12357
12358 fi
12359
12360 echo "$as_me:12360: checking for sys_siglist in system C library" >&5
12361 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
12362 if test "${bash_cv_sys_siglist+set}" = set; then
12363   echo $ECHO_N "(cached) $ECHO_C" >&6
12364 else
12365   if test "$cross_compiling" = yes; then
12366   { echo "$as_me:12366: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
12367 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
12368          bash_cv_sys_siglist=no
12369 else
12370   cat >conftest.$ac_ext <<_ACEOF
12371 #line 12371 "configure"
12372 #include "confdefs.h"
12373
12374 #include <sys/types.h>
12375 #include <signal.h>
12376 #ifdef HAVE_UNISTD_H
12377 #include <unistd.h>
12378 #endif
12379 #ifndef SYS_SIGLIST_DECLARED
12380 extern char *sys_siglist[];
12381 #endif
12382 main()
12383 {
12384 char *msg = sys_siglist[2];
12385 exit(msg == 0);
12386 }
12387 _ACEOF
12388 rm -f conftest$ac_exeext
12389 if { (eval echo "$as_me:12389: \"$ac_link\"") >&5
12390   (eval $ac_link) 2>&5
12391   ac_status=$?
12392   echo "$as_me:12392: \$? = $ac_status" >&5
12393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12394   { (eval echo "$as_me:12394: \"$ac_try\"") >&5
12395   (eval $ac_try) 2>&5
12396   ac_status=$?
12397   echo "$as_me:12397: \$? = $ac_status" >&5
12398   (exit $ac_status); }; }; then
12399   bash_cv_sys_siglist=yes
12400 else
12401   echo "$as_me: program exited with status $ac_status" >&5
12402 echo "$as_me: failed program was:" >&5
12403 cat conftest.$ac_ext >&5
12404 bash_cv_sys_siglist=no
12405 fi
12406 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12407 fi
12408 fi
12409
12410 echo "$as_me:12410: result: $bash_cv_sys_siglist" >&5
12411 echo "${ECHO_T}$bash_cv_sys_siglist" >&6
12412 if test $bash_cv_sys_siglist = yes; then
12413 cat >>confdefs.h <<\EOF
12414 #define HAVE_SYS_SIGLIST 1
12415 EOF
12416
12417 fi
12418
12419 echo "$as_me:12419: checking for _sys_siglist in signal.h or unistd.h" >&5
12420 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
12421 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
12422   echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424   cat >conftest.$ac_ext <<_ACEOF
12425 #line 12425 "configure"
12426 #include "confdefs.h"
12427
12428 #include <sys/types.h>
12429 #include <signal.h>
12430 #ifdef HAVE_UNISTD_H
12431 #include <unistd.h>
12432 #endif
12433 int
12434 main ()
12435 {
12436  char *msg = _sys_siglist[2];
12437   ;
12438   return 0;
12439 }
12440 _ACEOF
12441 rm -f conftest.$ac_objext
12442 if { (eval echo "$as_me:12442: \"$ac_compile\"") >&5
12443   (eval $ac_compile) 2>&5
12444   ac_status=$?
12445   echo "$as_me:12445: \$? = $ac_status" >&5
12446   (exit $ac_status); } &&
12447          { ac_try='test -s conftest.$ac_objext'
12448   { (eval echo "$as_me:12448: \"$ac_try\"") >&5
12449   (eval $ac_try) 2>&5
12450   ac_status=$?
12451   echo "$as_me:12451: \$? = $ac_status" >&5
12452   (exit $ac_status); }; }; then
12453   bash_cv_decl_under_sys_siglist=yes
12454 else
12455   echo "$as_me: failed program was:" >&5
12456 cat conftest.$ac_ext >&5
12457 bash_cv_decl_under_sys_siglist=no
12458 fi
12459 rm -f conftest.$ac_objext conftest.$ac_ext
12460 fi
12461 echo "$as_me:12461: result: $bash_cv_decl_under_sys_siglist" >&5
12462 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
12463 if test $bash_cv_decl_under_sys_siglist = yes; then
12464 cat >>confdefs.h <<\EOF
12465 #define UNDER_SYS_SIGLIST_DECLARED 1
12466 EOF
12467
12468 fi
12469
12470 echo "$as_me:12470: checking for _sys_siglist in system C library" >&5
12471 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
12472 if test "${bash_cv_under_sys_siglist+set}" = set; then
12473   echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475   if test "$cross_compiling" = yes; then
12476   { echo "$as_me:12476: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
12477 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
12478          bash_cv_under_sys_siglist=no
12479 else
12480   cat >conftest.$ac_ext <<_ACEOF
12481 #line 12481 "configure"
12482 #include "confdefs.h"
12483
12484 #include <sys/types.h>
12485 #include <signal.h>
12486 #ifdef HAVE_UNISTD_H
12487 #include <unistd.h>
12488 #endif
12489 #ifndef UNDER_SYS_SIGLIST_DECLARED
12490 extern char *_sys_siglist[];
12491 #endif
12492 main()
12493 {
12494 char *msg = (char *)_sys_siglist[2];
12495 exit(msg == 0);
12496 }
12497 _ACEOF
12498 rm -f conftest$ac_exeext
12499 if { (eval echo "$as_me:12499: \"$ac_link\"") >&5
12500   (eval $ac_link) 2>&5
12501   ac_status=$?
12502   echo "$as_me:12502: \$? = $ac_status" >&5
12503   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12504   { (eval echo "$as_me:12504: \"$ac_try\"") >&5
12505   (eval $ac_try) 2>&5
12506   ac_status=$?
12507   echo "$as_me:12507: \$? = $ac_status" >&5
12508   (exit $ac_status); }; }; then
12509   bash_cv_under_sys_siglist=yes
12510 else
12511   echo "$as_me: program exited with status $ac_status" >&5
12512 echo "$as_me: failed program was:" >&5
12513 cat conftest.$ac_ext >&5
12514 bash_cv_under_sys_siglist=no
12515 fi
12516 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12517 fi
12518 fi
12519
12520 echo "$as_me:12520: result: $bash_cv_under_sys_siglist" >&5
12521 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
12522 if test $bash_cv_under_sys_siglist = yes; then
12523 cat >>confdefs.h <<\EOF
12524 #define HAVE_UNDER_SYS_SIGLIST 1
12525 EOF
12526
12527 fi
12528
12529 echo "$as_me:12529: checking whether signal handlers are of type void" >&5
12530 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
12531 if test "${bash_cv_void_sighandler+set}" = set; then
12532   echo $ECHO_N "(cached) $ECHO_C" >&6
12533 else
12534   cat >conftest.$ac_ext <<_ACEOF
12535 #line 12535 "configure"
12536 #include "confdefs.h"
12537 #include <sys/types.h>
12538 #include <signal.h>
12539 #ifdef signal
12540 #undef signal
12541 #endif
12542 #ifdef __cplusplus
12543 extern "C"
12544 #endif
12545 void (*signal ()) ();
12546 int
12547 main ()
12548 {
12549 int i;
12550   ;
12551   return 0;
12552 }
12553 _ACEOF
12554 rm -f conftest.$ac_objext
12555 if { (eval echo "$as_me:12555: \"$ac_compile\"") >&5
12556   (eval $ac_compile) 2>&5
12557   ac_status=$?
12558   echo "$as_me:12558: \$? = $ac_status" >&5
12559   (exit $ac_status); } &&
12560          { ac_try='test -s conftest.$ac_objext'
12561   { (eval echo "$as_me:12561: \"$ac_try\"") >&5
12562   (eval $ac_try) 2>&5
12563   ac_status=$?
12564   echo "$as_me:12564: \$? = $ac_status" >&5
12565   (exit $ac_status); }; }; then
12566   bash_cv_void_sighandler=yes
12567 else
12568   echo "$as_me: failed program was:" >&5
12569 cat conftest.$ac_ext >&5
12570 bash_cv_void_sighandler=no
12571 fi
12572 rm -f conftest.$ac_objext conftest.$ac_ext
12573 fi
12574 echo "$as_me:12574: result: $bash_cv_void_sighandler" >&5
12575 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
12576 if test $bash_cv_void_sighandler = yes; then
12577 cat >>confdefs.h <<\EOF
12578 #define VOID_SIGHANDLER 1
12579 EOF
12580
12581 fi
12582
12583 echo "$as_me:12583: checking for clock_t" >&5
12584 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12585 if test "${bash_cv_type_clock_t+set}" = set; then
12586   echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588   cat >conftest.$ac_ext <<_ACEOF
12589 #line 12589 "configure"
12590 #include "confdefs.h"
12591 #include <sys/types.h>
12592 #if STDC_HEADERS
12593 #include <stdlib.h>
12594 #include <stddef.h>
12595 #endif
12596 #if HAVE_INTTYPES_H
12597 #include <inttypes.h>
12598 #endif
12599 #include <sys/times.h>
12600
12601 _ACEOF
12602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12603   egrep "clock_t" >/dev/null 2>&1; then
12604   bash_cv_type_clock_t=yes
12605 else
12606   bash_cv_type_clock_t=no
12607 fi
12608 rm -f conftest*
12609
12610 fi
12611
12612 echo "$as_me:12612: result: $bash_cv_type_clock_t" >&5
12613 echo "${ECHO_T}$bash_cv_type_clock_t" >&6
12614
12615 if test $bash_cv_type_clock_t = no; then
12616   cat >>confdefs.h <<EOF
12617 #define clock_t long
12618 EOF
12619
12620 fi
12621
12622 echo "$as_me:12622: checking for sigset_t" >&5
12623 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
12624 if test "${bash_cv_type_sigset_t+set}" = set; then
12625   echo $ECHO_N "(cached) $ECHO_C" >&6
12626 else
12627   cat >conftest.$ac_ext <<_ACEOF
12628 #line 12628 "configure"
12629 #include "confdefs.h"
12630 #include <sys/types.h>
12631 #if STDC_HEADERS
12632 #include <stdlib.h>
12633 #include <stddef.h>
12634 #endif
12635 #if HAVE_INTTYPES_H
12636 #include <inttypes.h>
12637 #endif
12638 #include <signal.h>
12639
12640 _ACEOF
12641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12642   egrep "sigset_t" >/dev/null 2>&1; then
12643   bash_cv_type_sigset_t=yes
12644 else
12645   bash_cv_type_sigset_t=no
12646 fi
12647 rm -f conftest*
12648
12649 fi
12650
12651 echo "$as_me:12651: result: $bash_cv_type_sigset_t" >&5
12652 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
12653
12654 if test $bash_cv_type_sigset_t = no; then
12655   cat >>confdefs.h <<EOF
12656 #define sigset_t int
12657 EOF
12658
12659 fi
12660
12661 echo "$as_me:12661: checking for quad_t" >&5
12662 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
12663 if test "${bash_cv_type_quad_t+set}" = set; then
12664   echo $ECHO_N "(cached) $ECHO_C" >&6
12665 else
12666   cat >conftest.$ac_ext <<_ACEOF
12667 #line 12667 "configure"
12668 #include "confdefs.h"
12669 #include <sys/types.h>
12670 #if STDC_HEADERS
12671 #include <stdlib.h>
12672 #include <stddef.h>
12673 #endif
12674 #if HAVE_INTTYPES_H
12675 #include <inttypes.h>
12676 #endif
12677
12678 _ACEOF
12679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12680   egrep "quad_t" >/dev/null 2>&1; then
12681   bash_cv_type_quad_t=yes
12682 else
12683   bash_cv_type_quad_t=no
12684 fi
12685 rm -f conftest*
12686
12687 fi
12688
12689 echo "$as_me:12689: result: $bash_cv_type_quad_t" >&5
12690 echo "${ECHO_T}$bash_cv_type_quad_t" >&6
12691 if test $bash_cv_type_quad_t = yes; then
12692         cat >>confdefs.h <<\EOF
12693 #define HAVE_QUAD_T 1
12694 EOF
12695
12696         fi
12697 if test $bash_cv_type_quad_t = no; then
12698   cat >>confdefs.h <<EOF
12699 #define quad_t long
12700 EOF
12701
12702 fi
12703
12704 echo "$as_me:12704: checking for intmax_t" >&5
12705 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
12706 if test "${bash_cv_type_intmax_t+set}" = set; then
12707   echo $ECHO_N "(cached) $ECHO_C" >&6
12708 else
12709   cat >conftest.$ac_ext <<_ACEOF
12710 #line 12710 "configure"
12711 #include "confdefs.h"
12712 #include <sys/types.h>
12713 #if STDC_HEADERS
12714 #include <stdlib.h>
12715 #include <stddef.h>
12716 #endif
12717 #if HAVE_INTTYPES_H
12718 #include <inttypes.h>
12719 #endif
12720
12721 _ACEOF
12722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12723   egrep "intmax_t" >/dev/null 2>&1; then
12724   bash_cv_type_intmax_t=yes
12725 else
12726   bash_cv_type_intmax_t=no
12727 fi
12728 rm -f conftest*
12729
12730 fi
12731
12732 echo "$as_me:12732: result: $bash_cv_type_intmax_t" >&5
12733 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
12734
12735 if test $bash_cv_type_intmax_t = no; then
12736   cat >>confdefs.h <<EOF
12737 #define intmax_t $bash_cv_type_long_long
12738 EOF
12739
12740 fi
12741
12742 echo "$as_me:12742: checking for uintmax_t" >&5
12743 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12744 if test "${bash_cv_type_uintmax_t+set}" = set; then
12745   echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747   cat >conftest.$ac_ext <<_ACEOF
12748 #line 12748 "configure"
12749 #include "confdefs.h"
12750 #include <sys/types.h>
12751 #if STDC_HEADERS
12752 #include <stdlib.h>
12753 #include <stddef.h>
12754 #endif
12755 #if HAVE_INTTYPES_H
12756 #include <inttypes.h>
12757 #endif
12758
12759 _ACEOF
12760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12761   egrep "uintmax_t" >/dev/null 2>&1; then
12762   bash_cv_type_uintmax_t=yes
12763 else
12764   bash_cv_type_uintmax_t=no
12765 fi
12766 rm -f conftest*
12767
12768 fi
12769
12770 echo "$as_me:12770: result: $bash_cv_type_uintmax_t" >&5
12771 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
12772
12773 if test $bash_cv_type_uintmax_t = no; then
12774   cat >>confdefs.h <<EOF
12775 #define uintmax_t $bash_cv_type_unsigned_long_long
12776 EOF
12777
12778 fi
12779
12780 if test "$ac_cv_header_sys_socket_h" = "yes"; then
12781
12782 echo "$as_me:12782: checking for socklen_t" >&5
12783 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12784 if test "${bash_cv_type_socklen_t+set}" = set; then
12785   echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787   cat >conftest.$ac_ext <<_ACEOF
12788 #line 12788 "configure"
12789 #include "confdefs.h"
12790 #include <sys/types.h>
12791 #if STDC_HEADERS
12792 #include <stdlib.h>
12793 #include <stddef.h>
12794 #endif
12795 #if HAVE_INTTYPES_H
12796 #include <inttypes.h>
12797 #endif
12798 #include <sys/socket.h>
12799
12800 _ACEOF
12801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12802   egrep "socklen_t" >/dev/null 2>&1; then
12803   bash_cv_type_socklen_t=yes
12804 else
12805   bash_cv_type_socklen_t=no
12806 fi
12807 rm -f conftest*
12808
12809 fi
12810
12811 echo "$as_me:12811: result: $bash_cv_type_socklen_t" >&5
12812 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
12813 if test $bash_cv_type_socklen_t = yes; then
12814         cat >>confdefs.h <<\EOF
12815 #define HAVE_SOCKLEN_T 1
12816 EOF
12817
12818         fi
12819 if test $bash_cv_type_socklen_t = no; then
12820   cat >>confdefs.h <<EOF
12821 #define socklen_t int
12822 EOF
12823
12824 fi
12825
12826 fi
12827 echo "$as_me:12827: checking for size and type of struct rlimit fields" >&5
12828 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
12829 if test "${bash_cv_type_rlimit+set}" = set; then
12830   echo $ECHO_N "(cached) $ECHO_C" >&6
12831 else
12832   cat >conftest.$ac_ext <<_ACEOF
12833 #line 12833 "configure"
12834 #include "confdefs.h"
12835 #include <sys/types.h>
12836 #include <sys/resource.h>
12837 int
12838 main ()
12839 {
12840 rlim_t xxx;
12841   ;
12842   return 0;
12843 }
12844 _ACEOF
12845 rm -f conftest.$ac_objext
12846 if { (eval echo "$as_me:12846: \"$ac_compile\"") >&5
12847   (eval $ac_compile) 2>&5
12848   ac_status=$?
12849   echo "$as_me:12849: \$? = $ac_status" >&5
12850   (exit $ac_status); } &&
12851          { ac_try='test -s conftest.$ac_objext'
12852   { (eval echo "$as_me:12852: \"$ac_try\"") >&5
12853   (eval $ac_try) 2>&5
12854   ac_status=$?
12855   echo "$as_me:12855: \$? = $ac_status" >&5
12856   (exit $ac_status); }; }; then
12857   bash_cv_type_rlimit=rlim_t
12858 else
12859   echo "$as_me: failed program was:" >&5
12860 cat conftest.$ac_ext >&5
12861
12862 if test "$cross_compiling" = yes; then
12863   { echo "$as_me:12863: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
12864 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
12865          bash_cv_type_rlimit=long
12866 else
12867   cat >conftest.$ac_ext <<_ACEOF
12868 #line 12868 "configure"
12869 #include "confdefs.h"
12870
12871 #include <sys/types.h>
12872 #include <sys/time.h>
12873 #include <sys/resource.h>
12874 main()
12875 {
12876 #ifdef HAVE_QUAD_T
12877   struct rlimit rl;
12878   if (sizeof(rl.rlim_cur) == sizeof(quad_t))
12879     exit(0);
12880 #endif
12881   exit(1);
12882 }
12883 _ACEOF
12884 rm -f conftest$ac_exeext
12885 if { (eval echo "$as_me:12885: \"$ac_link\"") >&5
12886   (eval $ac_link) 2>&5
12887   ac_status=$?
12888   echo "$as_me:12888: \$? = $ac_status" >&5
12889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12890   { (eval echo "$as_me:12890: \"$ac_try\"") >&5
12891   (eval $ac_try) 2>&5
12892   ac_status=$?
12893   echo "$as_me:12893: \$? = $ac_status" >&5
12894   (exit $ac_status); }; }; then
12895   bash_cv_type_rlimit=quad_t
12896 else
12897   echo "$as_me: program exited with status $ac_status" >&5
12898 echo "$as_me: failed program was:" >&5
12899 cat conftest.$ac_ext >&5
12900 bash_cv_type_rlimit=long
12901 fi
12902 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12903 fi
12904 fi
12905 rm -f conftest.$ac_objext conftest.$ac_ext
12906
12907 fi
12908
12909 echo "$as_me:12909: result: $bash_cv_type_rlimit" >&5
12910 echo "${ECHO_T}$bash_cv_type_rlimit" >&6
12911 if test $bash_cv_type_rlimit = quad_t; then
12912 cat >>confdefs.h <<\EOF
12913 #define RLIMTYPE quad_t
12914 EOF
12915
12916 elif test $bash_cv_type_rlimit = rlim_t; then
12917 cat >>confdefs.h <<\EOF
12918 #define RLIMTYPE rlim_t
12919 EOF
12920
12921 fi
12922
12923 echo "$as_me:12923: checking for struct termios.c_line" >&5
12924 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
12925 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
12926   echo $ECHO_N "(cached) $ECHO_C" >&6
12927 else
12928   cat >conftest.$ac_ext <<_ACEOF
12929 #line 12929 "configure"
12930 #include "confdefs.h"
12931
12932 #include <sys/types.h>
12933 #include <termios.h>
12934
12935 int
12936 main ()
12937 {
12938 static struct termios ac_aggr;
12939 if (ac_aggr.c_line)
12940 return 0;
12941   ;
12942   return 0;
12943 }
12944 _ACEOF
12945 rm -f conftest.$ac_objext
12946 if { (eval echo "$as_me:12946: \"$ac_compile\"") >&5
12947   (eval $ac_compile) 2>&5
12948   ac_status=$?
12949   echo "$as_me:12949: \$? = $ac_status" >&5
12950   (exit $ac_status); } &&
12951          { ac_try='test -s conftest.$ac_objext'
12952   { (eval echo "$as_me:12952: \"$ac_try\"") >&5
12953   (eval $ac_try) 2>&5
12954   ac_status=$?
12955   echo "$as_me:12955: \$? = $ac_status" >&5
12956   (exit $ac_status); }; }; then
12957   ac_cv_member_struct_termios_c_line=yes
12958 else
12959   echo "$as_me: failed program was:" >&5
12960 cat conftest.$ac_ext >&5
12961 ac_cv_member_struct_termios_c_line=no
12962 fi
12963 rm -f conftest.$ac_objext conftest.$ac_ext
12964 fi
12965 echo "$as_me:12965: result: $ac_cv_member_struct_termios_c_line" >&5
12966 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
12967 if test $ac_cv_member_struct_termios_c_line = yes; then
12968   cat >>confdefs.h <<\EOF
12969 #define TERMIOS_LDISC 1
12970 EOF
12971
12972 fi
12973
12974 echo "$as_me:12974: checking for struct termio.c_line" >&5
12975 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
12976 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
12977   echo $ECHO_N "(cached) $ECHO_C" >&6
12978 else
12979   cat >conftest.$ac_ext <<_ACEOF
12980 #line 12980 "configure"
12981 #include "confdefs.h"
12982
12983 #include <sys/types.h>
12984 #include <termio.h>
12985
12986 int
12987 main ()
12988 {
12989 static struct termio ac_aggr;
12990 if (ac_aggr.c_line)
12991 return 0;
12992   ;
12993   return 0;
12994 }
12995 _ACEOF
12996 rm -f conftest.$ac_objext
12997 if { (eval echo "$as_me:12997: \"$ac_compile\"") >&5
12998   (eval $ac_compile) 2>&5
12999   ac_status=$?
13000   echo "$as_me:13000: \$? = $ac_status" >&5
13001   (exit $ac_status); } &&
13002          { ac_try='test -s conftest.$ac_objext'
13003   { (eval echo "$as_me:13003: \"$ac_try\"") >&5
13004   (eval $ac_try) 2>&5
13005   ac_status=$?
13006   echo "$as_me:13006: \$? = $ac_status" >&5
13007   (exit $ac_status); }; }; then
13008   ac_cv_member_struct_termio_c_line=yes
13009 else
13010   echo "$as_me: failed program was:" >&5
13011 cat conftest.$ac_ext >&5
13012 ac_cv_member_struct_termio_c_line=no
13013 fi
13014 rm -f conftest.$ac_objext conftest.$ac_ext
13015 fi
13016 echo "$as_me:13016: result: $ac_cv_member_struct_termio_c_line" >&5
13017 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
13018 if test $ac_cv_member_struct_termio_c_line = yes; then
13019   cat >>confdefs.h <<\EOF
13020 #define TERMIO_LDISC 1
13021 EOF
13022
13023 fi
13024
13025 echo "$as_me:13025: checking if struct dirent has a d_ino member" >&5
13026 echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6
13027 if test "${bash_cv_dirent_has_dino+set}" = set; then
13028   echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030   cat >conftest.$ac_ext <<_ACEOF
13031 #line 13031 "configure"
13032 #include "confdefs.h"
13033
13034 #include <stdio.h>
13035 #include <sys/types.h>
13036 #ifdef HAVE_UNISTD_H
13037 # include <unistd.h>
13038 #endif /* HAVE_UNISTD_H */
13039 #if defined(HAVE_DIRENT_H)
13040 # include <dirent.h>
13041 #else
13042 # define dirent direct
13043 # ifdef HAVE_SYS_NDIR_H
13044 #  include <sys/ndir.h>
13045 # endif /* SYSNDIR */
13046 # ifdef HAVE_SYS_DIR_H
13047 #  include <sys/dir.h>
13048 # endif /* SYSDIR */
13049 # ifdef HAVE_NDIR_H
13050 #  include <ndir.h>
13051 # endif
13052 #endif /* HAVE_DIRENT_H */
13053
13054 int
13055 main ()
13056 {
13057
13058 struct dirent d; int z; z = d.d_ino;
13059
13060   ;
13061   return 0;
13062 }
13063 _ACEOF
13064 rm -f conftest.$ac_objext
13065 if { (eval echo "$as_me:13065: \"$ac_compile\"") >&5
13066   (eval $ac_compile) 2>&5
13067   ac_status=$?
13068   echo "$as_me:13068: \$? = $ac_status" >&5
13069   (exit $ac_status); } &&
13070          { ac_try='test -s conftest.$ac_objext'
13071   { (eval echo "$as_me:13071: \"$ac_try\"") >&5
13072   (eval $ac_try) 2>&5
13073   ac_status=$?
13074   echo "$as_me:13074: \$? = $ac_status" >&5
13075   (exit $ac_status); }; }; then
13076   bash_cv_dirent_has_dino=yes
13077 else
13078   echo "$as_me: failed program was:" >&5
13079 cat conftest.$ac_ext >&5
13080 bash_cv_dirent_has_dino=no
13081 fi
13082 rm -f conftest.$ac_objext conftest.$ac_ext
13083 fi
13084
13085 echo "$as_me:13085: result: $bash_cv_dirent_has_dino" >&5
13086 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
13087 if test $bash_cv_dirent_has_dino = yes; then
13088 cat >>confdefs.h <<\EOF
13089 #define STRUCT_DIRENT_HAS_D_INO 1
13090 EOF
13091
13092 fi
13093
13094 echo "$as_me:13094: checking if struct dirent has a d_fileno member" >&5
13095 echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6
13096 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099   cat >conftest.$ac_ext <<_ACEOF
13100 #line 13100 "configure"
13101 #include "confdefs.h"
13102
13103 #include <stdio.h>
13104 #include <sys/types.h>
13105 #ifdef HAVE_UNISTD_H
13106 # include <unistd.h>
13107 #endif /* HAVE_UNISTD_H */
13108 #if defined(HAVE_DIRENT_H)
13109 # include <dirent.h>
13110 #else
13111 # define dirent direct
13112 # ifdef HAVE_SYS_NDIR_H
13113 #  include <sys/ndir.h>
13114 # endif /* SYSNDIR */
13115 # ifdef HAVE_SYS_DIR_H
13116 #  include <sys/dir.h>
13117 # endif /* SYSDIR */
13118 # ifdef HAVE_NDIR_H
13119 #  include <ndir.h>
13120 # endif
13121 #endif /* HAVE_DIRENT_H */
13122
13123 int
13124 main ()
13125 {
13126
13127 struct dirent d; int z; z = d.d_fileno;
13128
13129   ;
13130   return 0;
13131 }
13132 _ACEOF
13133 rm -f conftest.$ac_objext
13134 if { (eval echo "$as_me:13134: \"$ac_compile\"") >&5
13135   (eval $ac_compile) 2>&5
13136   ac_status=$?
13137   echo "$as_me:13137: \$? = $ac_status" >&5
13138   (exit $ac_status); } &&
13139          { ac_try='test -s conftest.$ac_objext'
13140   { (eval echo "$as_me:13140: \"$ac_try\"") >&5
13141   (eval $ac_try) 2>&5
13142   ac_status=$?
13143   echo "$as_me:13143: \$? = $ac_status" >&5
13144   (exit $ac_status); }; }; then
13145   bash_cv_dirent_has_d_fileno=yes
13146 else
13147   echo "$as_me: failed program was:" >&5
13148 cat conftest.$ac_ext >&5
13149 bash_cv_dirent_has_d_fileno=no
13150 fi
13151 rm -f conftest.$ac_objext conftest.$ac_ext
13152 fi
13153
13154 echo "$as_me:13154: result: $bash_cv_dirent_has_d_fileno" >&5
13155 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
13156 if test $bash_cv_dirent_has_d_fileno = yes; then
13157 cat >>confdefs.h <<\EOF
13158 #define STRUCT_DIRENT_HAS_D_FILENO 1
13159 EOF
13160
13161 fi
13162
13163 echo "$as_me:13163: checking for struct winsize in sys/ioctl.h and termios.h" >&5
13164 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
13165 if test "${bash_cv_struct_winsize_header+set}" = set; then
13166   echo $ECHO_N "(cached) $ECHO_C" >&6
13167 else
13168   cat >conftest.$ac_ext <<_ACEOF
13169 #line 13169 "configure"
13170 #include "confdefs.h"
13171 #include <sys/types.h>
13172 #include <sys/ioctl.h>
13173 int
13174 main ()
13175 {
13176 struct winsize x;
13177   ;
13178   return 0;
13179 }
13180 _ACEOF
13181 rm -f conftest.$ac_objext
13182 if { (eval echo "$as_me:13182: \"$ac_compile\"") >&5
13183   (eval $ac_compile) 2>&5
13184   ac_status=$?
13185   echo "$as_me:13185: \$? = $ac_status" >&5
13186   (exit $ac_status); } &&
13187          { ac_try='test -s conftest.$ac_objext'
13188   { (eval echo "$as_me:13188: \"$ac_try\"") >&5
13189   (eval $ac_try) 2>&5
13190   ac_status=$?
13191   echo "$as_me:13191: \$? = $ac_status" >&5
13192   (exit $ac_status); }; }; then
13193   bash_cv_struct_winsize_header=ioctl_h
13194 else
13195   echo "$as_me: failed program was:" >&5
13196 cat conftest.$ac_ext >&5
13197 cat >conftest.$ac_ext <<_ACEOF
13198 #line 13198 "configure"
13199 #include "confdefs.h"
13200 #include <sys/types.h>
13201 #include <termios.h>
13202 int
13203 main ()
13204 {
13205 struct winsize x;
13206   ;
13207   return 0;
13208 }
13209 _ACEOF
13210 rm -f conftest.$ac_objext
13211 if { (eval echo "$as_me:13211: \"$ac_compile\"") >&5
13212   (eval $ac_compile) 2>&5
13213   ac_status=$?
13214   echo "$as_me:13214: \$? = $ac_status" >&5
13215   (exit $ac_status); } &&
13216          { ac_try='test -s conftest.$ac_objext'
13217   { (eval echo "$as_me:13217: \"$ac_try\"") >&5
13218   (eval $ac_try) 2>&5
13219   ac_status=$?
13220   echo "$as_me:13220: \$? = $ac_status" >&5
13221   (exit $ac_status); }; }; then
13222   bash_cv_struct_winsize_header=termios_h
13223 else
13224   echo "$as_me: failed program was:" >&5
13225 cat conftest.$ac_ext >&5
13226 bash_cv_struct_winsize_header=other
13227 fi
13228 rm -f conftest.$ac_objext conftest.$ac_ext
13229
13230 fi
13231 rm -f conftest.$ac_objext conftest.$ac_ext
13232 fi
13233
13234 if test $bash_cv_struct_winsize_header = ioctl_h; then
13235   echo "$as_me:13235: result: sys/ioctl.h" >&5
13236 echo "${ECHO_T}sys/ioctl.h" >&6
13237   cat >>confdefs.h <<\EOF
13238 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
13239 EOF
13240
13241 elif test $bash_cv_struct_winsize_header = termios_h; then
13242   echo "$as_me:13242: result: termios.h" >&5
13243 echo "${ECHO_T}termios.h" >&6
13244   cat >>confdefs.h <<\EOF
13245 #define STRUCT_WINSIZE_IN_TERMIOS 1
13246 EOF
13247
13248 else
13249   echo "$as_me:13249: result: not found" >&5
13250 echo "${ECHO_T}not found" >&6
13251 fi
13252
13253 echo "$as_me:13253: checking for struct timeval in sys/time.h and time.h" >&5
13254 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
13255 if test "${bash_cv_struct_timeval+set}" = set; then
13256   echo $ECHO_N "(cached) $ECHO_C" >&6
13257 else
13258
13259 cat >conftest.$ac_ext <<_ACEOF
13260 #line 13260 "configure"
13261 #include "confdefs.h"
13262 #include <sys/time.h>
13263
13264 _ACEOF
13265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13266   egrep "struct timeval" >/dev/null 2>&1; then
13267   bash_cv_struct_timeval=yes
13268 else
13269   cat >conftest.$ac_ext <<_ACEOF
13270 #line 13270 "configure"
13271 #include "confdefs.h"
13272 #include <time.h>
13273
13274 _ACEOF
13275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13276   egrep "struct timeval" >/dev/null 2>&1; then
13277   bash_cv_struct_timeval=yes
13278 else
13279   bash_cv_struct_timeval=no
13280 fi
13281 rm -f conftest*
13282
13283 fi
13284 rm -f conftest*
13285
13286 fi
13287
13288 echo "$as_me:13288: result: $bash_cv_struct_timeval" >&5
13289 echo "${ECHO_T}$bash_cv_struct_timeval" >&6
13290 if test $bash_cv_struct_timeval = yes; then
13291   cat >>confdefs.h <<\EOF
13292 #define HAVE_TIMEVAL 1
13293 EOF
13294
13295 fi
13296
13297 echo "$as_me:13297: checking for struct stat.st_blocks" >&5
13298 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13299 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13300   echo $ECHO_N "(cached) $ECHO_C" >&6
13301 else
13302   cat >conftest.$ac_ext <<_ACEOF
13303 #line 13303 "configure"
13304 #include "confdefs.h"
13305 $ac_includes_default
13306 int
13307 main ()
13308 {
13309 static struct stat ac_aggr;
13310 if (ac_aggr.st_blocks)
13311 return 0;
13312   ;
13313   return 0;
13314 }
13315 _ACEOF
13316 rm -f conftest.$ac_objext
13317 if { (eval echo "$as_me:13317: \"$ac_compile\"") >&5
13318   (eval $ac_compile) 2>&5
13319   ac_status=$?
13320   echo "$as_me:13320: \$? = $ac_status" >&5
13321   (exit $ac_status); } &&
13322          { ac_try='test -s conftest.$ac_objext'
13323   { (eval echo "$as_me:13323: \"$ac_try\"") >&5
13324   (eval $ac_try) 2>&5
13325   ac_status=$?
13326   echo "$as_me:13326: \$? = $ac_status" >&5
13327   (exit $ac_status); }; }; then
13328   ac_cv_member_struct_stat_st_blocks=yes
13329 else
13330   echo "$as_me: failed program was:" >&5
13331 cat conftest.$ac_ext >&5
13332 ac_cv_member_struct_stat_st_blocks=no
13333 fi
13334 rm -f conftest.$ac_objext conftest.$ac_ext
13335 fi
13336 echo "$as_me:13336: result: $ac_cv_member_struct_stat_st_blocks" >&5
13337 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13338 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13339
13340 cat >>confdefs.h <<EOF
13341 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13342 EOF
13343
13344 fi
13345
13346 echo "$as_me:13346: checking whether struct tm is in sys/time.h or time.h" >&5
13347 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13348 if test "${ac_cv_struct_tm+set}" = set; then
13349   echo $ECHO_N "(cached) $ECHO_C" >&6
13350 else
13351   cat >conftest.$ac_ext <<_ACEOF
13352 #line 13352 "configure"
13353 #include "confdefs.h"
13354 #include <sys/types.h>
13355 #include <time.h>
13356
13357 int
13358 main ()
13359 {
13360 struct tm *tp; tp->tm_sec;
13361   ;
13362   return 0;
13363 }
13364 _ACEOF
13365 rm -f conftest.$ac_objext
13366 if { (eval echo "$as_me:13366: \"$ac_compile\"") >&5
13367   (eval $ac_compile) 2>&5
13368   ac_status=$?
13369   echo "$as_me:13369: \$? = $ac_status" >&5
13370   (exit $ac_status); } &&
13371          { ac_try='test -s conftest.$ac_objext'
13372   { (eval echo "$as_me:13372: \"$ac_try\"") >&5
13373   (eval $ac_try) 2>&5
13374   ac_status=$?
13375   echo "$as_me:13375: \$? = $ac_status" >&5
13376   (exit $ac_status); }; }; then
13377   ac_cv_struct_tm=time.h
13378 else
13379   echo "$as_me: failed program was:" >&5
13380 cat conftest.$ac_ext >&5
13381 ac_cv_struct_tm=sys/time.h
13382 fi
13383 rm -f conftest.$ac_objext conftest.$ac_ext
13384 fi
13385 echo "$as_me:13385: result: $ac_cv_struct_tm" >&5
13386 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13387 if test $ac_cv_struct_tm = sys/time.h; then
13388
13389 cat >>confdefs.h <<\EOF
13390 #define TM_IN_SYS_TIME 1
13391 EOF
13392
13393 fi
13394
13395 echo "$as_me:13395: checking for struct tm.tm_zone" >&5
13396 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
13397 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13398   echo $ECHO_N "(cached) $ECHO_C" >&6
13399 else
13400   cat >conftest.$ac_ext <<_ACEOF
13401 #line 13401 "configure"
13402 #include "confdefs.h"
13403 #include <sys/types.h>
13404 #include <$ac_cv_struct_tm>
13405
13406 int
13407 main ()
13408 {
13409 static struct tm ac_aggr;
13410 if (ac_aggr.tm_zone)
13411 return 0;
13412   ;
13413   return 0;
13414 }
13415 _ACEOF
13416 rm -f conftest.$ac_objext
13417 if { (eval echo "$as_me:13417: \"$ac_compile\"") >&5
13418   (eval $ac_compile) 2>&5
13419   ac_status=$?
13420   echo "$as_me:13420: \$? = $ac_status" >&5
13421   (exit $ac_status); } &&
13422          { ac_try='test -s conftest.$ac_objext'
13423   { (eval echo "$as_me:13423: \"$ac_try\"") >&5
13424   (eval $ac_try) 2>&5
13425   ac_status=$?
13426   echo "$as_me:13426: \$? = $ac_status" >&5
13427   (exit $ac_status); }; }; then
13428   ac_cv_member_struct_tm_tm_zone=yes
13429 else
13430   echo "$as_me: failed program was:" >&5
13431 cat conftest.$ac_ext >&5
13432 ac_cv_member_struct_tm_tm_zone=no
13433 fi
13434 rm -f conftest.$ac_objext conftest.$ac_ext
13435 fi
13436 echo "$as_me:13436: result: $ac_cv_member_struct_tm_tm_zone" >&5
13437 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
13438 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13439
13440 cat >>confdefs.h <<EOF
13441 #define HAVE_STRUCT_TM_TM_ZONE 1
13442 EOF
13443
13444 fi
13445
13446 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13447
13448 cat >>confdefs.h <<\EOF
13449 #define HAVE_TM_ZONE 1
13450 EOF
13451
13452 else
13453   echo "$as_me:13453: checking for tzname" >&5
13454 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
13455 if test "${ac_cv_var_tzname+set}" = set; then
13456   echo $ECHO_N "(cached) $ECHO_C" >&6
13457 else
13458   cat >conftest.$ac_ext <<_ACEOF
13459 #line 13459 "configure"
13460 #include "confdefs.h"
13461 #include <time.h>
13462 #ifndef tzname /* For SGI.  */
13463 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
13464 #endif
13465
13466 int
13467 main ()
13468 {
13469 atoi(*tzname);
13470   ;
13471   return 0;
13472 }
13473 _ACEOF
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (eval echo "$as_me:13475: \"$ac_link\"") >&5
13476   (eval $ac_link) 2>&5
13477   ac_status=$?
13478   echo "$as_me:13478: \$? = $ac_status" >&5
13479   (exit $ac_status); } &&
13480          { ac_try='test -s conftest$ac_exeext'
13481   { (eval echo "$as_me:13481: \"$ac_try\"") >&5
13482   (eval $ac_try) 2>&5
13483   ac_status=$?
13484   echo "$as_me:13484: \$? = $ac_status" >&5
13485   (exit $ac_status); }; }; then
13486   ac_cv_var_tzname=yes
13487 else
13488   echo "$as_me: failed program was:" >&5
13489 cat conftest.$ac_ext >&5
13490 ac_cv_var_tzname=no
13491 fi
13492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13493 fi
13494 echo "$as_me:13494: result: $ac_cv_var_tzname" >&5
13495 echo "${ECHO_T}$ac_cv_var_tzname" >&6
13496   if test $ac_cv_var_tzname = yes; then
13497
13498 cat >>confdefs.h <<\EOF
13499 #define HAVE_TZNAME 1
13500 EOF
13501
13502   fi
13503 fi
13504
13505 echo "$as_me:13505: checking for the existence of strsignal" >&5
13506 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
13507 if test "${bash_cv_have_strsignal+set}" = set; then
13508   echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510   cat >conftest.$ac_ext <<_ACEOF
13511 #line 13511 "configure"
13512 #include "confdefs.h"
13513 #include <sys/types.h>
13514 #include <signal.h>
13515 int
13516 main ()
13517 {
13518 char *s = (char *)strsignal(2);
13519   ;
13520   return 0;
13521 }
13522 _ACEOF
13523 rm -f conftest.$ac_objext conftest$ac_exeext
13524 if { (eval echo "$as_me:13524: \"$ac_link\"") >&5
13525   (eval $ac_link) 2>&5
13526   ac_status=$?
13527   echo "$as_me:13527: \$? = $ac_status" >&5
13528   (exit $ac_status); } &&
13529          { ac_try='test -s conftest$ac_exeext'
13530   { (eval echo "$as_me:13530: \"$ac_try\"") >&5
13531   (eval $ac_try) 2>&5
13532   ac_status=$?
13533   echo "$as_me:13533: \$? = $ac_status" >&5
13534   (exit $ac_status); }; }; then
13535   bash_cv_have_strsignal=yes
13536 else
13537   echo "$as_me: failed program was:" >&5
13538 cat conftest.$ac_ext >&5
13539 bash_cv_have_strsignal=no
13540 fi
13541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13542 fi
13543
13544 echo "$as_me:13544: result: $bash_cv_have_strsignal" >&5
13545 echo "${ECHO_T}$bash_cv_have_strsignal" >&6
13546 if test $bash_cv_have_strsignal = yes; then
13547 cat >>confdefs.h <<\EOF
13548 #define HAVE_STRSIGNAL 1
13549 EOF
13550
13551 fi
13552
13553 echo "$as_me:13553: checking if opendir() opens non-directories" >&5
13554 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
13555 if test "${bash_cv_opendir_not_robust+set}" = set; then
13556   echo $ECHO_N "(cached) $ECHO_C" >&6
13557 else
13558   if test "$cross_compiling" = yes; then
13559   { echo "$as_me:13559: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
13560 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
13561      bash_cv_opendir_not_robust=no
13562
13563 else
13564   cat >conftest.$ac_ext <<_ACEOF
13565 #line 13565 "configure"
13566 #include "confdefs.h"
13567
13568 #include <stdio.h>
13569 #include <sys/types.h>
13570 #include <fcntl.h>
13571 #ifdef HAVE_UNISTD_H
13572 # include <unistd.h>
13573 #endif /* HAVE_UNISTD_H */
13574 #if defined(HAVE_DIRENT_H)
13575 # include <dirent.h>
13576 #else
13577 # define dirent direct
13578 # ifdef HAVE_SYS_NDIR_H
13579 #  include <sys/ndir.h>
13580 # endif /* SYSNDIR */
13581 # ifdef HAVE_SYS_DIR_H
13582 #  include <sys/dir.h>
13583 # endif /* SYSDIR */
13584 # ifdef HAVE_NDIR_H
13585 #  include <ndir.h>
13586 # endif
13587 #endif /* HAVE_DIRENT_H */
13588 main()
13589 {
13590 DIR *dir;
13591 int fd, err;
13592 err = mkdir("/tmp/bash-aclocal", 0700);
13593 if (err < 0) {
13594   perror("mkdir");
13595   exit(1);
13596 }
13597 unlink("/tmp/bash-aclocal/not_a_directory");
13598 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
13599 write(fd, "\n", 1);
13600 close(fd);
13601 dir = opendir("/tmp/bash-aclocal/not_a_directory");
13602 unlink("/tmp/bash-aclocal/not_a_directory");
13603 rmdir("/tmp/bash-aclocal");
13604 exit (dir == 0);
13605 }
13606 _ACEOF
13607 rm -f conftest$ac_exeext
13608 if { (eval echo "$as_me:13608: \"$ac_link\"") >&5
13609   (eval $ac_link) 2>&5
13610   ac_status=$?
13611   echo "$as_me:13611: \$? = $ac_status" >&5
13612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13613   { (eval echo "$as_me:13613: \"$ac_try\"") >&5
13614   (eval $ac_try) 2>&5
13615   ac_status=$?
13616   echo "$as_me:13616: \$? = $ac_status" >&5
13617   (exit $ac_status); }; }; then
13618   bash_cv_opendir_not_robust=yes
13619 else
13620   echo "$as_me: program exited with status $ac_status" >&5
13621 echo "$as_me: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13623 bash_cv_opendir_not_robust=no
13624 fi
13625 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13626 fi
13627 fi
13628
13629 echo "$as_me:13629: result: $bash_cv_opendir_not_robust" >&5
13630 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
13631 if test $bash_cv_opendir_not_robust = yes; then
13632 cat >>confdefs.h <<\EOF
13633 #define OPENDIR_NOT_ROBUST 1
13634 EOF
13635
13636 fi
13637
13638 echo "$as_me:13638: checking whether ulimit can substitute for getdtablesize" >&5
13639 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
13640 if test "${bash_cv_ulimit_maxfds+set}" = set; then
13641   echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643   if test "$cross_compiling" = yes; then
13644   { echo "$as_me:13644: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
13645 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
13646     bash_cv_ulimit_maxfds=no
13647
13648 else
13649   cat >conftest.$ac_ext <<_ACEOF
13650 #line 13650 "configure"
13651 #include "confdefs.h"
13652
13653 main()
13654 {
13655 long maxfds = ulimit(4, 0L);
13656 exit (maxfds == -1L);
13657 }
13658
13659 _ACEOF
13660 rm -f conftest$ac_exeext
13661 if { (eval echo "$as_me:13661: \"$ac_link\"") >&5
13662   (eval $ac_link) 2>&5
13663   ac_status=$?
13664   echo "$as_me:13664: \$? = $ac_status" >&5
13665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13666   { (eval echo "$as_me:13666: \"$ac_try\"") >&5
13667   (eval $ac_try) 2>&5
13668   ac_status=$?
13669   echo "$as_me:13669: \$? = $ac_status" >&5
13670   (exit $ac_status); }; }; then
13671   bash_cv_ulimit_maxfds=yes
13672 else
13673   echo "$as_me: program exited with status $ac_status" >&5
13674 echo "$as_me: failed program was:" >&5
13675 cat conftest.$ac_ext >&5
13676 bash_cv_ulimit_maxfds=no
13677 fi
13678 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13679 fi
13680 fi
13681
13682 echo "$as_me:13682: result: $bash_cv_ulimit_maxfds" >&5
13683 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
13684 if test $bash_cv_ulimit_maxfds = yes; then
13685 cat >>confdefs.h <<\EOF
13686 #define ULIMIT_MAXFDS 1
13687 EOF
13688
13689 fi
13690
13691 echo "$as_me:13691: checking to see if getenv can be redefined" >&5
13692 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
13693 if test "${bash_cv_getenv_redef+set}" = set; then
13694   echo $ECHO_N "(cached) $ECHO_C" >&6
13695 else
13696   if test "$cross_compiling" = yes; then
13697   { echo "$as_me:13697: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
13698 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
13699     bash_cv_getenv_redef=yes
13700
13701 else
13702   cat >conftest.$ac_ext <<_ACEOF
13703 #line 13703 "configure"
13704 #include "confdefs.h"
13705
13706 #ifdef HAVE_UNISTD_H
13707 #  include <unistd.h>
13708 #endif
13709 #ifndef __STDC__
13710 #  ifndef const
13711 #    define const
13712 #  endif
13713 #endif
13714 char *
13715 getenv (name)
13716 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
13717      const char *name;
13718 #else
13719      char const *name;
13720 #endif /* !__linux__ && !__bsdi__ && !convex */
13721 {
13722 return "42";
13723 }
13724 main()
13725 {
13726 char *s;
13727 /* The next allows this program to run, but does not allow bash to link
13728    when it redefines getenv.  I'm not really interested in figuring out
13729    why not. */
13730 #if defined (NeXT)
13731 exit(1);
13732 #endif
13733 s = getenv("ABCDE");
13734 exit(s == 0);   /* force optimizer to leave getenv in */
13735 }
13736
13737 _ACEOF
13738 rm -f conftest$ac_exeext
13739 if { (eval echo "$as_me:13739: \"$ac_link\"") >&5
13740   (eval $ac_link) 2>&5
13741   ac_status=$?
13742   echo "$as_me:13742: \$? = $ac_status" >&5
13743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13744   { (eval echo "$as_me:13744: \"$ac_try\"") >&5
13745   (eval $ac_try) 2>&5
13746   ac_status=$?
13747   echo "$as_me:13747: \$? = $ac_status" >&5
13748   (exit $ac_status); }; }; then
13749   bash_cv_getenv_redef=yes
13750 else
13751   echo "$as_me: program exited with status $ac_status" >&5
13752 echo "$as_me: failed program was:" >&5
13753 cat conftest.$ac_ext >&5
13754 bash_cv_getenv_redef=no
13755 fi
13756 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13757 fi
13758 fi
13759
13760 echo "$as_me:13760: result: $bash_cv_getenv_redef" >&5
13761 echo "${ECHO_T}$bash_cv_getenv_redef" >&6
13762 if test $bash_cv_getenv_redef = yes; then
13763 cat >>confdefs.h <<\EOF
13764 #define CAN_REDEFINE_GETENV 1
13765 EOF
13766
13767 fi
13768
13769 if test "$ac_cv_func_getcwd" = "yes"; then
13770 echo "$as_me:13770: checking if getcwd() calls popen()" >&5
13771 echo $ECHO_N "checking if getcwd() calls popen()... $ECHO_C" >&6
13772 if test "${bash_cv_getcwd_calls_popen+set}" = set; then
13773   echo $ECHO_N "(cached) $ECHO_C" >&6
13774 else
13775   if test "$cross_compiling" = yes; then
13776   { echo "$as_me:13776: WARNING: cannot check whether getcwd calls popen if cross compiling -- defaulting to no" >&5
13777 echo "$as_me: WARNING: cannot check whether getcwd calls popen if cross compiling -- defaulting to no" >&2;}
13778     bash_cv_getcwd_calls_popen=no
13779
13780 else
13781   cat >conftest.$ac_ext <<_ACEOF
13782 #line 13782 "configure"
13783 #include "confdefs.h"
13784
13785 #include <stdio.h>
13786 #ifdef HAVE_UNISTD_H
13787 #include <unistd.h>
13788 #endif
13789
13790 #ifndef __STDC__
13791 #ifndef const
13792 #define const
13793 #endif
13794 #endif
13795
13796 int popen_called;
13797
13798 FILE *
13799 popen(command, type)
13800      const char *command;
13801      const char *type;
13802 {
13803         popen_called = 1;
13804         return (FILE *)NULL;
13805 }
13806
13807 FILE *_popen(command, type)
13808      const char *command;
13809      const char *type;
13810 {
13811   return (popen (command, type));
13812 }
13813
13814 int
13815 pclose(stream)
13816 FILE *stream;
13817 {
13818         return 0;
13819 }
13820
13821 int
13822 _pclose(stream)
13823 FILE *stream;
13824 {
13825         return 0;
13826 }
13827
13828 main()
13829 {
13830         char    lbuf[32];
13831         popen_called = 0;
13832         getcwd(lbuf, 32);
13833         exit (popen_called);
13834 }
13835
13836 _ACEOF
13837 rm -f conftest$ac_exeext
13838 if { (eval echo "$as_me:13838: \"$ac_link\"") >&5
13839   (eval $ac_link) 2>&5
13840   ac_status=$?
13841   echo "$as_me:13841: \$? = $ac_status" >&5
13842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13843   { (eval echo "$as_me:13843: \"$ac_try\"") >&5
13844   (eval $ac_try) 2>&5
13845   ac_status=$?
13846   echo "$as_me:13846: \$? = $ac_status" >&5
13847   (exit $ac_status); }; }; then
13848   bash_cv_getcwd_calls_popen=no
13849 else
13850   echo "$as_me: program exited with status $ac_status" >&5
13851 echo "$as_me: failed program was:" >&5
13852 cat conftest.$ac_ext >&5
13853 bash_cv_getcwd_calls_popen=yes
13854 fi
13855 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13856 fi
13857 fi
13858
13859 echo "$as_me:13859: result: $bash_cv_getcwd_calls_popen" >&5
13860 echo "${ECHO_T}$bash_cv_getcwd_calls_popen" >&6
13861 if test $bash_cv_getcwd_calls_popen = yes; then
13862 cat >>confdefs.h <<\EOF
13863 #define GETCWD_BROKEN 1
13864 EOF
13865
13866 LIBOBJS="$LIBOBJS getcwd.$ac_objext"
13867 fi
13868
13869 fi
13870
13871 echo "$as_me:13871: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
13872 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
13873 if test "${bash_cv_func_sigsetjmp+set}" = set; then
13874   echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876   if test "$cross_compiling" = yes; then
13877   { echo "$as_me:13877: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
13878 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
13879      bash_cv_func_sigsetjmp=missing
13880
13881 else
13882   cat >conftest.$ac_ext <<_ACEOF
13883 #line 13883 "configure"
13884 #include "confdefs.h"
13885
13886 #ifdef HAVE_UNISTD_H
13887 #include <unistd.h>
13888 #endif
13889 #include <sys/types.h>
13890 #include <signal.h>
13891 #include <setjmp.h>
13892
13893 main()
13894 {
13895 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
13896 exit (1);
13897 #else
13898
13899 int code;
13900 sigset_t set, oset;
13901 sigjmp_buf xx;
13902
13903 /* get the mask */
13904 sigemptyset(&set);
13905 sigemptyset(&oset);
13906 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
13907 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
13908
13909 /* save it */
13910 code = sigsetjmp(xx, 1);
13911 if (code)
13912   exit(0);      /* could get sigmask and compare to oset here. */
13913
13914 /* change it */
13915 sigaddset(&set, SIGINT);
13916 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
13917
13918 /* and siglongjmp */
13919 siglongjmp(xx, 10);
13920 exit(1);
13921 #endif
13922 }
13923 _ACEOF
13924 rm -f conftest$ac_exeext
13925 if { (eval echo "$as_me:13925: \"$ac_link\"") >&5
13926   (eval $ac_link) 2>&5
13927   ac_status=$?
13928   echo "$as_me:13928: \$? = $ac_status" >&5
13929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13930   { (eval echo "$as_me:13930: \"$ac_try\"") >&5
13931   (eval $ac_try) 2>&5
13932   ac_status=$?
13933   echo "$as_me:13933: \$? = $ac_status" >&5
13934   (exit $ac_status); }; }; then
13935   bash_cv_func_sigsetjmp=present
13936 else
13937   echo "$as_me: program exited with status $ac_status" >&5
13938 echo "$as_me: failed program was:" >&5
13939 cat conftest.$ac_ext >&5
13940 bash_cv_func_sigsetjmp=missing
13941 fi
13942 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13943 fi
13944 fi
13945
13946 echo "$as_me:13946: result: $bash_cv_func_sigsetjmp" >&5
13947 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
13948 if test $bash_cv_func_sigsetjmp = present; then
13949 cat >>confdefs.h <<\EOF
13950 #define HAVE_POSIX_SIGSETJMP 1
13951 EOF
13952
13953 fi
13954
13955 echo "$as_me:13955: checking whether or not strcoll and strcmp differ" >&5
13956 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
13957 if test "${bash_cv_func_strcoll_broken+set}" = set; then
13958   echo $ECHO_N "(cached) $ECHO_C" >&6
13959 else
13960   if test "$cross_compiling" = yes; then
13961   { echo "$as_me:13961: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
13962 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
13963     bash_cv_func_strcoll_broken=no
13964
13965 else
13966   cat >conftest.$ac_ext <<_ACEOF
13967 #line 13967 "configure"
13968 #include "confdefs.h"
13969
13970 #include <stdio.h>
13971 #if defined (HAVE_LOCALE_H)
13972 #include <locale.h>
13973 #endif
13974
13975 main(c, v)
13976 int     c;
13977 char    *v[];
13978 {
13979         int     r1, r2;
13980         char    *deflocale, *defcoll;
13981
13982 #ifdef HAVE_SETLOCALE
13983         deflocale = setlocale(LC_ALL, "");
13984         defcoll = setlocale(LC_COLLATE, "");
13985 #endif
13986
13987 #ifdef HAVE_STRCOLL
13988         /* These two values are taken from tests/glob-test. */
13989         r1 = strcoll("abd", "aXd");
13990 #else
13991         r1 = 0;
13992 #endif
13993         r2 = strcmp("abd", "aXd");
13994
13995         /* These two should both be greater than 0.  It is permissible for
13996            a system to return different values, as long as the sign is the
13997            same. */
13998
13999         /* Exit with 1 (failure) if these two values are both > 0, since
14000            this tests whether strcoll(3) is broken with respect to strcmp(3)
14001            in the default locale. */
14002         exit (r1 > 0 && r2 > 0);
14003 }
14004
14005 _ACEOF
14006 rm -f conftest$ac_exeext
14007 if { (eval echo "$as_me:14007: \"$ac_link\"") >&5
14008   (eval $ac_link) 2>&5
14009   ac_status=$?
14010   echo "$as_me:14010: \$? = $ac_status" >&5
14011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14012   { (eval echo "$as_me:14012: \"$ac_try\"") >&5
14013   (eval $ac_try) 2>&5
14014   ac_status=$?
14015   echo "$as_me:14015: \$? = $ac_status" >&5
14016   (exit $ac_status); }; }; then
14017   bash_cv_func_strcoll_broken=yes
14018 else
14019   echo "$as_me: program exited with status $ac_status" >&5
14020 echo "$as_me: failed program was:" >&5
14021 cat conftest.$ac_ext >&5
14022 bash_cv_func_strcoll_broken=no
14023 fi
14024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14025 fi
14026 fi
14027
14028 echo "$as_me:14028: result: $bash_cv_func_strcoll_broken" >&5
14029 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
14030 if test $bash_cv_func_strcoll_broken = yes; then
14031 cat >>confdefs.h <<\EOF
14032 #define STRCOLL_BROKEN 1
14033 EOF
14034
14035 fi
14036
14037 if test "$ac_cv_func_putenv" = "yes"; then
14038
14039 echo "$as_me:14039: checking for standard-conformant putenv declaration" >&5
14040 echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6
14041 if test "${bash_cv_std_putenv+set}" = set; then
14042   echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044   cat >conftest.$ac_ext <<_ACEOF
14045 #line 14045 "configure"
14046 #include "confdefs.h"
14047
14048 #if STDC_HEADERS
14049 #include <stdlib.h>
14050 #include <stddef.h>
14051 #endif
14052 #ifndef __STDC__
14053 #  ifndef const
14054 #    define const
14055 #  endif
14056 #endif
14057 #ifdef PROTOTYPES
14058 extern int putenv (char *);
14059 #else
14060 extern int putenv ();
14061 #endif
14062
14063 int
14064 main ()
14065 {
14066 return (putenv == 0);
14067   ;
14068   return 0;
14069 }
14070 _ACEOF
14071 rm -f conftest.$ac_objext conftest$ac_exeext
14072 if { (eval echo "$as_me:14072: \"$ac_link\"") >&5
14073   (eval $ac_link) 2>&5
14074   ac_status=$?
14075   echo "$as_me:14075: \$? = $ac_status" >&5
14076   (exit $ac_status); } &&
14077          { ac_try='test -s conftest$ac_exeext'
14078   { (eval echo "$as_me:14078: \"$ac_try\"") >&5
14079   (eval $ac_try) 2>&5
14080   ac_status=$?
14081   echo "$as_me:14081: \$? = $ac_status" >&5
14082   (exit $ac_status); }; }; then
14083   bash_cv_std_putenv=yes
14084 else
14085   echo "$as_me: failed program was:" >&5
14086 cat conftest.$ac_ext >&5
14087 bash_cv_std_putenv=no
14088
14089 fi
14090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14091 fi
14092 echo "$as_me:14092: result: $bash_cv_std_putenv" >&5
14093 echo "${ECHO_T}$bash_cv_std_putenv" >&6
14094 if test $bash_cv_std_putenv = yes; then
14095 cat >>confdefs.h <<\EOF
14096 #define HAVE_STD_PUTENV 1
14097 EOF
14098
14099 fi
14100
14101 else
14102 cat >>confdefs.h <<\EOF
14103 #define HAVE_STD_PUTENV 1
14104 EOF
14105
14106 fi
14107 if test "$ac_cv_func_unsetenv" = "yes"; then
14108
14109 echo "$as_me:14109: checking for standard-conformant unsetenv declaration" >&5
14110 echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6
14111 if test "${bash_cv_std_unsetenv+set}" = set; then
14112   echo $ECHO_N "(cached) $ECHO_C" >&6
14113 else
14114   cat >conftest.$ac_ext <<_ACEOF
14115 #line 14115 "configure"
14116 #include "confdefs.h"
14117
14118 #if STDC_HEADERS
14119 #include <stdlib.h>
14120 #include <stddef.h>
14121 #endif
14122 #ifndef __STDC__
14123 #  ifndef const
14124 #    define const
14125 #  endif
14126 #endif
14127 #ifdef PROTOTYPES
14128 extern int unsetenv (const char *);
14129 #else
14130 extern int unsetenv ();
14131 #endif
14132
14133 int
14134 main ()
14135 {
14136 return (unsetenv == 0);
14137   ;
14138   return 0;
14139 }
14140 _ACEOF
14141 rm -f conftest.$ac_objext conftest$ac_exeext
14142 if { (eval echo "$as_me:14142: \"$ac_link\"") >&5
14143   (eval $ac_link) 2>&5
14144   ac_status=$?
14145   echo "$as_me:14145: \$? = $ac_status" >&5
14146   (exit $ac_status); } &&
14147          { ac_try='test -s conftest$ac_exeext'
14148   { (eval echo "$as_me:14148: \"$ac_try\"") >&5
14149   (eval $ac_try) 2>&5
14150   ac_status=$?
14151   echo "$as_me:14151: \$? = $ac_status" >&5
14152   (exit $ac_status); }; }; then
14153   bash_cv_std_unsetenv=yes
14154 else
14155   echo "$as_me: failed program was:" >&5
14156 cat conftest.$ac_ext >&5
14157 bash_cv_std_unsetenv=no
14158
14159 fi
14160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14161 fi
14162 echo "$as_me:14162: result: $bash_cv_std_unsetenv" >&5
14163 echo "${ECHO_T}$bash_cv_std_unsetenv" >&6
14164 if test $bash_cv_std_unsetenv = yes; then
14165 cat >>confdefs.h <<\EOF
14166 #define HAVE_STD_UNSETENV 1
14167 EOF
14168
14169 fi
14170
14171 else
14172 cat >>confdefs.h <<\EOF
14173 #define HAVE_STD_UNSETENV 1
14174 EOF
14175
14176 fi
14177
14178 echo "$as_me:14178: checking for printf floating point output in hex notation" >&5
14179 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
14180 if test "${bash_cv_printf_a_format+set}" = set; then
14181   echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183   if test "$cross_compiling" = yes; then
14184   { echo "$as_me:14184: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
14185 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
14186     bash_cv_printf_a_format=no
14187
14188 else
14189   cat >conftest.$ac_ext <<_ACEOF
14190 #line 14190 "configure"
14191 #include "confdefs.h"
14192
14193 #include <stdio.h>
14194 #include <string.h>
14195
14196 int
14197 main()
14198 {
14199         double y = 0.0;
14200         char abuf[1024];
14201
14202         sprintf(abuf, "%A", y);
14203         exit(strchr(abuf, 'P') == (char *)0);
14204 }
14205
14206 _ACEOF
14207 rm -f conftest$ac_exeext
14208 if { (eval echo "$as_me:14208: \"$ac_link\"") >&5
14209   (eval $ac_link) 2>&5
14210   ac_status=$?
14211   echo "$as_me:14211: \$? = $ac_status" >&5
14212   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14213   { (eval echo "$as_me:14213: \"$ac_try\"") >&5
14214   (eval $ac_try) 2>&5
14215   ac_status=$?
14216   echo "$as_me:14216: \$? = $ac_status" >&5
14217   (exit $ac_status); }; }; then
14218   bash_cv_printf_a_format=yes
14219 else
14220   echo "$as_me: program exited with status $ac_status" >&5
14221 echo "$as_me: failed program was:" >&5
14222 cat conftest.$ac_ext >&5
14223 bash_cv_printf_a_format=no
14224 fi
14225 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14226 fi
14227 fi
14228
14229 echo "$as_me:14229: result: $bash_cv_printf_a_format" >&5
14230 echo "${ECHO_T}$bash_cv_printf_a_format" >&6
14231 if test $bash_cv_printf_a_format = yes; then
14232 cat >>confdefs.h <<\EOF
14233 #define HAVE_PRINTF_A_FORMAT 1
14234 EOF
14235
14236 fi
14237
14238 echo "$as_me:14238: checking if signal handlers must be reinstalled when invoked" >&5
14239 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
14240 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
14241   echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243   if test "$cross_compiling" = yes; then
14244   { echo "$as_me:14244: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
14245 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
14246     bash_cv_must_reinstall_sighandlers=no
14247
14248 else
14249   cat >conftest.$ac_ext <<_ACEOF
14250 #line 14250 "configure"
14251 #include "confdefs.h"
14252
14253 #include <signal.h>
14254 #ifdef HAVE_UNISTD_H
14255 #include <unistd.h>
14256 #endif
14257
14258 typedef RETSIGTYPE sigfunc();
14259
14260 int nsigint;
14261
14262 #ifdef HAVE_POSIX_SIGNALS
14263 sigfunc *
14264 set_signal_handler(sig, handler)
14265      int sig;
14266      sigfunc *handler;
14267 {
14268   struct sigaction act, oact;
14269   act.sa_handler = handler;
14270   act.sa_flags = 0;
14271   sigemptyset (&act.sa_mask);
14272   sigemptyset (&oact.sa_mask);
14273   sigaction (sig, &act, &oact);
14274   return (oact.sa_handler);
14275 }
14276 #else
14277 #define set_signal_handler(s, h) signal(s, h)
14278 #endif
14279
14280 RETSIGTYPE
14281 sigint(s)
14282 int s;
14283 {
14284   nsigint++;
14285 }
14286
14287 main()
14288 {
14289         nsigint = 0;
14290         set_signal_handler(SIGINT, sigint);
14291         kill((int)getpid(), SIGINT);
14292         kill((int)getpid(), SIGINT);
14293         exit(nsigint != 2);
14294 }
14295
14296 _ACEOF
14297 rm -f conftest$ac_exeext
14298 if { (eval echo "$as_me:14298: \"$ac_link\"") >&5
14299   (eval $ac_link) 2>&5
14300   ac_status=$?
14301   echo "$as_me:14301: \$? = $ac_status" >&5
14302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14303   { (eval echo "$as_me:14303: \"$ac_try\"") >&5
14304   (eval $ac_try) 2>&5
14305   ac_status=$?
14306   echo "$as_me:14306: \$? = $ac_status" >&5
14307   (exit $ac_status); }; }; then
14308   bash_cv_must_reinstall_sighandlers=no
14309 else
14310   echo "$as_me: program exited with status $ac_status" >&5
14311 echo "$as_me: failed program was:" >&5
14312 cat conftest.$ac_ext >&5
14313 bash_cv_must_reinstall_sighandlers=yes
14314 fi
14315 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14316 fi
14317 fi
14318
14319 echo "$as_me:14319: result: $bash_cv_must_reinstall_sighandlers" >&5
14320 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
14321 if test $bash_cv_must_reinstall_sighandlers = yes; then
14322 cat >>confdefs.h <<\EOF
14323 #define MUST_REINSTALL_SIGHANDLERS 1
14324 EOF
14325
14326 fi
14327
14328 echo "$as_me:14328: checking for presence of necessary job control definitions" >&5
14329 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
14330 if test "${bash_cv_job_control_missing+set}" = set; then
14331   echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333   if test "$cross_compiling" = yes; then
14334   { echo "$as_me:14334: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
14335 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
14336      bash_cv_job_control_missing=missing
14337
14338 else
14339   cat >conftest.$ac_ext <<_ACEOF
14340 #line 14340 "configure"
14341 #include "confdefs.h"
14342
14343 #include <sys/types.h>
14344 #ifdef HAVE_SYS_WAIT_H
14345 #include <sys/wait.h>
14346 #endif
14347 #ifdef HAVE_UNISTD_H
14348 #include <unistd.h>
14349 #endif
14350 #include <signal.h>
14351
14352 /* Add more tests in here as appropriate. */
14353 main()
14354 {
14355 /* signal type */
14356 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
14357 exit(1);
14358 #endif
14359
14360 /* signals and tty control. */
14361 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
14362 exit (1);
14363 #endif
14364
14365 /* process control */
14366 #if !defined (WNOHANG) || !defined (WUNTRACED)
14367 exit(1);
14368 #endif
14369
14370 /* Posix systems have tcgetpgrp and waitpid. */
14371 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
14372 exit(1);
14373 #endif
14374
14375 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
14376 exit(1);
14377 #endif
14378
14379 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
14380 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
14381 exit(1);
14382 #endif
14383
14384 exit(0);
14385 }
14386 _ACEOF
14387 rm -f conftest$ac_exeext
14388 if { (eval echo "$as_me:14388: \"$ac_link\"") >&5
14389   (eval $ac_link) 2>&5
14390   ac_status=$?
14391   echo "$as_me:14391: \$? = $ac_status" >&5
14392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14393   { (eval echo "$as_me:14393: \"$ac_try\"") >&5
14394   (eval $ac_try) 2>&5
14395   ac_status=$?
14396   echo "$as_me:14396: \$? = $ac_status" >&5
14397   (exit $ac_status); }; }; then
14398   bash_cv_job_control_missing=present
14399 else
14400   echo "$as_me: program exited with status $ac_status" >&5
14401 echo "$as_me: failed program was:" >&5
14402 cat conftest.$ac_ext >&5
14403 bash_cv_job_control_missing=missing
14404 fi
14405 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14406 fi
14407 fi
14408
14409 echo "$as_me:14409: result: $bash_cv_job_control_missing" >&5
14410 echo "${ECHO_T}$bash_cv_job_control_missing" >&6
14411 if test $bash_cv_job_control_missing = missing; then
14412 cat >>confdefs.h <<\EOF
14413 #define JOB_CONTROL_MISSING 1
14414 EOF
14415
14416 fi
14417
14418 echo "$as_me:14418: checking for presence of named pipes" >&5
14419 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
14420 if test "${bash_cv_sys_named_pipes+set}" = set; then
14421   echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423   if test "$cross_compiling" = yes; then
14424   { echo "$as_me:14424: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
14425 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
14426      bash_cv_sys_named_pipes=missing
14427
14428 else
14429   cat >conftest.$ac_ext <<_ACEOF
14430 #line 14430 "configure"
14431 #include "confdefs.h"
14432
14433 #include <sys/types.h>
14434 #include <sys/stat.h>
14435 #ifdef HAVE_UNISTD_H
14436 #include <unistd.h>
14437 #endif
14438
14439 /* Add more tests in here as appropriate. */
14440 main()
14441 {
14442 int fd, err;
14443
14444 #if defined (HAVE_MKFIFO)
14445 exit (0);
14446 #endif
14447
14448 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
14449 exit (1);
14450 #endif
14451
14452 #if defined (NeXT)
14453 exit (1);
14454 #endif
14455 err = mkdir("/tmp/bash-aclocal", 0700);
14456 if (err < 0) {
14457   perror ("mkdir");
14458   exit(1);
14459 }
14460 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
14461 if (fd == -1) {
14462   rmdir ("/tmp/bash-aclocal");
14463   exit (1);
14464 }
14465 close(fd);
14466 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
14467 rmdir ("/tmp/bash-aclocal");
14468 exit(0);
14469 }
14470 _ACEOF
14471 rm -f conftest$ac_exeext
14472 if { (eval echo "$as_me:14472: \"$ac_link\"") >&5
14473   (eval $ac_link) 2>&5
14474   ac_status=$?
14475   echo "$as_me:14475: \$? = $ac_status" >&5
14476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14477   { (eval echo "$as_me:14477: \"$ac_try\"") >&5
14478   (eval $ac_try) 2>&5
14479   ac_status=$?
14480   echo "$as_me:14480: \$? = $ac_status" >&5
14481   (exit $ac_status); }; }; then
14482   bash_cv_sys_named_pipes=present
14483 else
14484   echo "$as_me: program exited with status $ac_status" >&5
14485 echo "$as_me: failed program was:" >&5
14486 cat conftest.$ac_ext >&5
14487 bash_cv_sys_named_pipes=missing
14488 fi
14489 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14490 fi
14491 fi
14492
14493 echo "$as_me:14493: result: $bash_cv_sys_named_pipes" >&5
14494 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
14495 if test $bash_cv_sys_named_pipes = missing; then
14496 cat >>confdefs.h <<\EOF
14497 #define NAMED_PIPES_MISSING 1
14498 EOF
14499
14500 fi
14501
14502 echo "$as_me:14502: checking POSIX termios" >&5
14503 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
14504 if test "${ac_cv_sys_posix_termios+set}" = set; then
14505   echo $ECHO_N "(cached) $ECHO_C" >&6
14506 else
14507   cat >conftest.$ac_ext <<_ACEOF
14508 #line 14508 "configure"
14509 #include "confdefs.h"
14510 #include <sys/types.h>
14511 #include <unistd.h>
14512 #include <termios.h>
14513 int
14514 main ()
14515 {
14516 /* SunOS 4.0.3 has termios.h but not the library calls.  */
14517    tcgetattr(0, 0);
14518   ;
14519   return 0;
14520 }
14521 _ACEOF
14522 rm -f conftest.$ac_objext conftest$ac_exeext
14523 if { (eval echo "$as_me:14523: \"$ac_link\"") >&5
14524   (eval $ac_link) 2>&5
14525   ac_status=$?
14526   echo "$as_me:14526: \$? = $ac_status" >&5
14527   (exit $ac_status); } &&
14528          { ac_try='test -s conftest$ac_exeext'
14529   { (eval echo "$as_me:14529: \"$ac_try\"") >&5
14530   (eval $ac_try) 2>&5
14531   ac_status=$?
14532   echo "$as_me:14532: \$? = $ac_status" >&5
14533   (exit $ac_status); }; }; then
14534   ac_cv_sys_posix_termios=yes
14535 else
14536   echo "$as_me: failed program was:" >&5
14537 cat conftest.$ac_ext >&5
14538 ac_cv_sys_posix_termios=no
14539 fi
14540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14541 fi
14542 echo "$as_me:14542: result: $ac_cv_sys_posix_termios" >&5
14543 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
14544
14545 if test $ac_cv_sys_posix_termios = yes; then
14546   echo "$as_me:14546: checking whether termios.h defines TIOCGWINSZ" >&5
14547 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
14548 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14549   echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551   cat >conftest.$ac_ext <<_ACEOF
14552 #line 14552 "configure"
14553 #include "confdefs.h"
14554 #include <sys/types.h>
14555 #include <termios.h>
14556 #ifdef TIOCGWINSZ
14557   yes
14558 #endif
14559
14560 _ACEOF
14561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14562   egrep "yes" >/dev/null 2>&1; then
14563   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14564 else
14565   ac_cv_sys_tiocgwinsz_in_termios_h=no
14566 fi
14567 rm -f conftest*
14568
14569 fi
14570 echo "$as_me:14570: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14571 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
14572
14573 fi
14574 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14575   echo "$as_me:14575: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14576 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
14577 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14578   echo $ECHO_N "(cached) $ECHO_C" >&6
14579 else
14580   cat >conftest.$ac_ext <<_ACEOF
14581 #line 14581 "configure"
14582 #include "confdefs.h"
14583 #include <sys/types.h>
14584 #include <sys/ioctl.h>
14585 #ifdef TIOCGWINSZ
14586   yes
14587 #endif
14588
14589 _ACEOF
14590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14591   egrep "yes" >/dev/null 2>&1; then
14592   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14593 else
14594   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14595 fi
14596 rm -f conftest*
14597
14598 fi
14599 echo "$as_me:14599: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14600 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
14601
14602   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14603
14604 cat >>confdefs.h <<\EOF
14605 #define GWINSZ_IN_SYS_IOCTL 1
14606 EOF
14607
14608   fi
14609 fi
14610
14611 echo "$as_me:14611: checking for TIOCSTAT in sys/ioctl.h" >&5
14612 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
14613 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   cat >conftest.$ac_ext <<_ACEOF
14617 #line 14617 "configure"
14618 #include "confdefs.h"
14619 #include <sys/types.h>
14620 #include <sys/ioctl.h>
14621 int
14622 main ()
14623 {
14624 int x = TIOCSTAT;
14625   ;
14626   return 0;
14627 }
14628 _ACEOF
14629 rm -f conftest.$ac_objext
14630 if { (eval echo "$as_me:14630: \"$ac_compile\"") >&5
14631   (eval $ac_compile) 2>&5
14632   ac_status=$?
14633   echo "$as_me:14633: \$? = $ac_status" >&5
14634   (exit $ac_status); } &&
14635          { ac_try='test -s conftest.$ac_objext'
14636   { (eval echo "$as_me:14636: \"$ac_try\"") >&5
14637   (eval $ac_try) 2>&5
14638   ac_status=$?
14639   echo "$as_me:14639: \$? = $ac_status" >&5
14640   (exit $ac_status); }; }; then
14641   bash_cv_tiocstat_in_ioctl=yes
14642 else
14643   echo "$as_me: failed program was:" >&5
14644 cat conftest.$ac_ext >&5
14645 bash_cv_tiocstat_in_ioctl=no
14646 fi
14647 rm -f conftest.$ac_objext conftest.$ac_ext
14648 fi
14649
14650 echo "$as_me:14650: result: $bash_cv_tiocstat_in_ioctl" >&5
14651 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
14652 if test $bash_cv_tiocstat_in_ioctl = yes; then
14653 cat >>confdefs.h <<\EOF
14654 #define TIOCSTAT_IN_SYS_IOCTL 1
14655 EOF
14656
14657 fi
14658
14659 echo "$as_me:14659: checking for FIONREAD in sys/ioctl.h" >&5
14660 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
14661 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664   cat >conftest.$ac_ext <<_ACEOF
14665 #line 14665 "configure"
14666 #include "confdefs.h"
14667 #include <sys/types.h>
14668 #include <sys/ioctl.h>
14669 int
14670 main ()
14671 {
14672 int x = FIONREAD;
14673   ;
14674   return 0;
14675 }
14676 _ACEOF
14677 rm -f conftest.$ac_objext
14678 if { (eval echo "$as_me:14678: \"$ac_compile\"") >&5
14679   (eval $ac_compile) 2>&5
14680   ac_status=$?
14681   echo "$as_me:14681: \$? = $ac_status" >&5
14682   (exit $ac_status); } &&
14683          { ac_try='test -s conftest.$ac_objext'
14684   { (eval echo "$as_me:14684: \"$ac_try\"") >&5
14685   (eval $ac_try) 2>&5
14686   ac_status=$?
14687   echo "$as_me:14687: \$? = $ac_status" >&5
14688   (exit $ac_status); }; }; then
14689   bash_cv_fionread_in_ioctl=yes
14690 else
14691   echo "$as_me: failed program was:" >&5
14692 cat conftest.$ac_ext >&5
14693 bash_cv_fionread_in_ioctl=no
14694 fi
14695 rm -f conftest.$ac_objext conftest.$ac_ext
14696 fi
14697
14698 echo "$as_me:14698: result: $bash_cv_fionread_in_ioctl" >&5
14699 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
14700 if test $bash_cv_fionread_in_ioctl = yes; then
14701 cat >>confdefs.h <<\EOF
14702 #define FIONREAD_IN_SYS_IOCTL 1
14703 EOF
14704
14705 fi
14706
14707 echo "$as_me:14707: checking for speed_t in sys/types.h" >&5
14708 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
14709 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
14710   echo $ECHO_N "(cached) $ECHO_C" >&6
14711 else
14712   cat >conftest.$ac_ext <<_ACEOF
14713 #line 14713 "configure"
14714 #include "confdefs.h"
14715 #include <sys/types.h>
14716 int
14717 main ()
14718 {
14719 speed_t x;
14720   ;
14721   return 0;
14722 }
14723 _ACEOF
14724 rm -f conftest.$ac_objext
14725 if { (eval echo "$as_me:14725: \"$ac_compile\"") >&5
14726   (eval $ac_compile) 2>&5
14727   ac_status=$?
14728   echo "$as_me:14728: \$? = $ac_status" >&5
14729   (exit $ac_status); } &&
14730          { ac_try='test -s conftest.$ac_objext'
14731   { (eval echo "$as_me:14731: \"$ac_try\"") >&5
14732   (eval $ac_try) 2>&5
14733   ac_status=$?
14734   echo "$as_me:14734: \$? = $ac_status" >&5
14735   (exit $ac_status); }; }; then
14736   bash_cv_speed_t_in_sys_types=yes
14737 else
14738   echo "$as_me: failed program was:" >&5
14739 cat conftest.$ac_ext >&5
14740 bash_cv_speed_t_in_sys_types=no
14741 fi
14742 rm -f conftest.$ac_objext conftest.$ac_ext
14743 fi
14744
14745 echo "$as_me:14745: result: $bash_cv_speed_t_in_sys_types" >&5
14746 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
14747 if test $bash_cv_speed_t_in_sys_types = yes; then
14748 cat >>confdefs.h <<\EOF
14749 #define SPEED_T_IN_SYS_TYPES 1
14750 EOF
14751
14752 fi
14753
14754 echo "$as_me:14754: checking whether getpw functions are declared in pwd.h" >&5
14755 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
14756 if test "${bash_cv_getpw_declared+set}" = set; then
14757   echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759   cat >conftest.$ac_ext <<_ACEOF
14760 #line 14760 "configure"
14761 #include "confdefs.h"
14762
14763 #include <sys/types.h>
14764 #ifdef HAVE_UNISTD_H
14765 #  include <unistd.h>
14766 #endif
14767 #include <pwd.h>
14768
14769 _ACEOF
14770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14771   egrep "getpwuid" >/dev/null 2>&1; then
14772   bash_cv_getpw_declared=yes
14773 else
14774   bash_cv_getpw_declared=no
14775 fi
14776 rm -f conftest*
14777
14778 fi
14779
14780 echo "$as_me:14780: result: $bash_cv_getpw_declared" >&5
14781 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
14782 if test $bash_cv_getpw_declared = yes; then
14783 cat >>confdefs.h <<\EOF
14784 #define HAVE_GETPW_DECLS 1
14785 EOF
14786
14787 fi
14788
14789 echo "$as_me:14789: checking for unusable real-time signals due to large values" >&5
14790 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
14791 if test "${bash_cv_unusable_rtsigs+set}" = set; then
14792   echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794   if test "$cross_compiling" = yes; then
14795   { echo "$as_me:14795: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
14796 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
14797      bash_cv_unusable_rtsigs=yes
14798
14799 else
14800   cat >conftest.$ac_ext <<_ACEOF
14801 #line 14801 "configure"
14802 #include "confdefs.h"
14803
14804 #include <sys/types.h>
14805 #include <signal.h>
14806
14807 #ifndef NSIG
14808 #  define NSIG 64
14809 #endif
14810
14811 main ()
14812 {
14813   int n_sigs = 2 * NSIG;
14814 #ifdef SIGRTMIN
14815   int rtmin = SIGRTMIN;
14816 #else
14817   int rtmin = 0;
14818 #endif
14819
14820   exit(rtmin < n_sigs);
14821 }
14822 _ACEOF
14823 rm -f conftest$ac_exeext
14824 if { (eval echo "$as_me:14824: \"$ac_link\"") >&5
14825   (eval $ac_link) 2>&5
14826   ac_status=$?
14827   echo "$as_me:14827: \$? = $ac_status" >&5
14828   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14829   { (eval echo "$as_me:14829: \"$ac_try\"") >&5
14830   (eval $ac_try) 2>&5
14831   ac_status=$?
14832   echo "$as_me:14832: \$? = $ac_status" >&5
14833   (exit $ac_status); }; }; then
14834   bash_cv_unusable_rtsigs=yes
14835 else
14836   echo "$as_me: program exited with status $ac_status" >&5
14837 echo "$as_me: failed program was:" >&5
14838 cat conftest.$ac_ext >&5
14839 bash_cv_unusable_rtsigs=no
14840 fi
14841 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14842 fi
14843 fi
14844
14845 echo "$as_me:14845: result: $bash_cv_unusable_rtsigs" >&5
14846 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
14847 if test $bash_cv_unusable_rtsigs = yes; then
14848 cat >>confdefs.h <<\EOF
14849 #define UNUSABLE_RT_SIGNALS 1
14850 EOF
14851
14852 fi
14853
14854 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
14855   SIGLIST_O=siglist.o
14856 else
14857   SIGLIST_O=
14858 fi
14859
14860 case "$host_os" in
14861 hpux*)  echo "$as_me:14861: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
14862 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
14863 if test "${bash_cv_kernel_rlimit+set}" = set; then
14864   echo $ECHO_N "(cached) $ECHO_C" >&6
14865 else
14866   cat >conftest.$ac_ext <<_ACEOF
14867 #line 14867 "configure"
14868 #include "confdefs.h"
14869
14870 #include <sys/types.h>
14871 #include <sys/resource.h>
14872
14873 int
14874 main ()
14875 {
14876
14877   int f;
14878   f = RLIMIT_DATA;
14879
14880   ;
14881   return 0;
14882 }
14883 _ACEOF
14884 rm -f conftest.$ac_objext
14885 if { (eval echo "$as_me:14885: \"$ac_compile\"") >&5
14886   (eval $ac_compile) 2>&5
14887   ac_status=$?
14888   echo "$as_me:14888: \$? = $ac_status" >&5
14889   (exit $ac_status); } &&
14890          { ac_try='test -s conftest.$ac_objext'
14891   { (eval echo "$as_me:14891: \"$ac_try\"") >&5
14892   (eval $ac_try) 2>&5
14893   ac_status=$?
14894   echo "$as_me:14894: \$? = $ac_status" >&5
14895   (exit $ac_status); }; }; then
14896   bash_cv_kernel_rlimit=no
14897 else
14898   echo "$as_me: failed program was:" >&5
14899 cat conftest.$ac_ext >&5
14900 cat >conftest.$ac_ext <<_ACEOF
14901 #line 14901 "configure"
14902 #include "confdefs.h"
14903
14904 #include <sys/types.h>
14905 #define _KERNEL
14906 #include <sys/resource.h>
14907 #undef _KERNEL
14908
14909 int
14910 main ()
14911 {
14912
14913         int f;
14914         f = RLIMIT_DATA;
14915
14916   ;
14917   return 0;
14918 }
14919 _ACEOF
14920 rm -f conftest.$ac_objext
14921 if { (eval echo "$as_me:14921: \"$ac_compile\"") >&5
14922   (eval $ac_compile) 2>&5
14923   ac_status=$?
14924   echo "$as_me:14924: \$? = $ac_status" >&5
14925   (exit $ac_status); } &&
14926          { ac_try='test -s conftest.$ac_objext'
14927   { (eval echo "$as_me:14927: \"$ac_try\"") >&5
14928   (eval $ac_try) 2>&5
14929   ac_status=$?
14930   echo "$as_me:14930: \$? = $ac_status" >&5
14931   (exit $ac_status); }; }; then
14932   bash_cv_kernel_rlimit=yes
14933 else
14934   echo "$as_me: failed program was:" >&5
14935 cat conftest.$ac_ext >&5
14936 bash_cv_kernel_rlimit=no
14937 fi
14938 rm -f conftest.$ac_objext conftest.$ac_ext
14939
14940 fi
14941 rm -f conftest.$ac_objext conftest.$ac_ext
14942 fi
14943
14944 echo "$as_me:14944: result: $bash_cv_kernel_rlimit" >&5
14945 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
14946 if test $bash_cv_kernel_rlimit = yes; then
14947 cat >>confdefs.h <<\EOF
14948 #define RLIMIT_NEEDS_KERNEL 1
14949 EOF
14950
14951 fi
14952  ;;
14953 esac
14954
14955 if test "$opt_readline" = yes; then
14956 case "$host_os" in
14957 aix*)   prefer_curses=yes ;;
14958 esac
14959
14960 if test "X$bash_cv_termcap_lib" = "X"; then
14961 _bash_needmsg=yes
14962 else
14963 echo "$as_me:14963: checking which library has the termcap functions" >&5
14964 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
14965 _bash_needmsg=
14966 fi
14967 if test "${bash_cv_termcap_lib+set}" = set; then
14968   echo $ECHO_N "(cached) $ECHO_C" >&6
14969 else
14970   echo "$as_me:14970: checking for tgetent in -ltermcap" >&5
14971 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
14972 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14973   echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975   ac_check_lib_save_LIBS=$LIBS
14976 LIBS="-ltermcap  $LIBS"
14977 cat >conftest.$ac_ext <<_ACEOF
14978 #line 14978 "configure"
14979 #include "confdefs.h"
14980
14981 /* Override any gcc2 internal prototype to avoid an error.  */
14982 #ifdef __cplusplus
14983 extern "C"
14984 #endif
14985 /* We use char because int might match the return type of a gcc2
14986    builtin and then its argument prototype would still apply.  */
14987 char tgetent ();
14988 int
14989 main ()
14990 {
14991 tgetent ();
14992   ;
14993   return 0;
14994 }
14995 _ACEOF
14996 rm -f conftest.$ac_objext conftest$ac_exeext
14997 if { (eval echo "$as_me:14997: \"$ac_link\"") >&5
14998   (eval $ac_link) 2>&5
14999   ac_status=$?
15000   echo "$as_me:15000: \$? = $ac_status" >&5
15001   (exit $ac_status); } &&
15002          { ac_try='test -s conftest$ac_exeext'
15003   { (eval echo "$as_me:15003: \"$ac_try\"") >&5
15004   (eval $ac_try) 2>&5
15005   ac_status=$?
15006   echo "$as_me:15006: \$? = $ac_status" >&5
15007   (exit $ac_status); }; }; then
15008   ac_cv_lib_termcap_tgetent=yes
15009 else
15010   echo "$as_me: failed program was:" >&5
15011 cat conftest.$ac_ext >&5
15012 ac_cv_lib_termcap_tgetent=no
15013 fi
15014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15015 LIBS=$ac_check_lib_save_LIBS
15016 fi
15017 echo "$as_me:15017: result: $ac_cv_lib_termcap_tgetent" >&5
15018 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
15019 if test $ac_cv_lib_termcap_tgetent = yes; then
15020   bash_cv_termcap_lib=libtermcap
15021 else
15022   echo "$as_me:15022: checking for tgetent in -ltinfo" >&5
15023 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
15024 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
15025   echo $ECHO_N "(cached) $ECHO_C" >&6
15026 else
15027   ac_check_lib_save_LIBS=$LIBS
15028 LIBS="-ltinfo  $LIBS"
15029 cat >conftest.$ac_ext <<_ACEOF
15030 #line 15030 "configure"
15031 #include "confdefs.h"
15032
15033 /* Override any gcc2 internal prototype to avoid an error.  */
15034 #ifdef __cplusplus
15035 extern "C"
15036 #endif
15037 /* We use char because int might match the return type of a gcc2
15038    builtin and then its argument prototype would still apply.  */
15039 char tgetent ();
15040 int
15041 main ()
15042 {
15043 tgetent ();
15044   ;
15045   return 0;
15046 }
15047 _ACEOF
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (eval echo "$as_me:15049: \"$ac_link\"") >&5
15050   (eval $ac_link) 2>&5
15051   ac_status=$?
15052   echo "$as_me:15052: \$? = $ac_status" >&5
15053   (exit $ac_status); } &&
15054          { ac_try='test -s conftest$ac_exeext'
15055   { (eval echo "$as_me:15055: \"$ac_try\"") >&5
15056   (eval $ac_try) 2>&5
15057   ac_status=$?
15058   echo "$as_me:15058: \$? = $ac_status" >&5
15059   (exit $ac_status); }; }; then
15060   ac_cv_lib_tinfo_tgetent=yes
15061 else
15062   echo "$as_me: failed program was:" >&5
15063 cat conftest.$ac_ext >&5
15064 ac_cv_lib_tinfo_tgetent=no
15065 fi
15066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15067 LIBS=$ac_check_lib_save_LIBS
15068 fi
15069 echo "$as_me:15069: result: $ac_cv_lib_tinfo_tgetent" >&5
15070 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
15071 if test $ac_cv_lib_tinfo_tgetent = yes; then
15072   bash_cv_termcap_lib=libtinfo
15073 else
15074   echo "$as_me:15074: checking for tgetent in -lcurses" >&5
15075 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
15076 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15077   echo $ECHO_N "(cached) $ECHO_C" >&6
15078 else
15079   ac_check_lib_save_LIBS=$LIBS
15080 LIBS="-lcurses  $LIBS"
15081 cat >conftest.$ac_ext <<_ACEOF
15082 #line 15082 "configure"
15083 #include "confdefs.h"
15084
15085 /* Override any gcc2 internal prototype to avoid an error.  */
15086 #ifdef __cplusplus
15087 extern "C"
15088 #endif
15089 /* We use char because int might match the return type of a gcc2
15090    builtin and then its argument prototype would still apply.  */
15091 char tgetent ();
15092 int
15093 main ()
15094 {
15095 tgetent ();
15096   ;
15097   return 0;
15098 }
15099 _ACEOF
15100 rm -f conftest.$ac_objext conftest$ac_exeext
15101 if { (eval echo "$as_me:15101: \"$ac_link\"") >&5
15102   (eval $ac_link) 2>&5
15103   ac_status=$?
15104   echo "$as_me:15104: \$? = $ac_status" >&5
15105   (exit $ac_status); } &&
15106          { ac_try='test -s conftest$ac_exeext'
15107   { (eval echo "$as_me:15107: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:15110: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112   ac_cv_lib_curses_tgetent=yes
15113 else
15114   echo "$as_me: failed program was:" >&5
15115 cat conftest.$ac_ext >&5
15116 ac_cv_lib_curses_tgetent=no
15117 fi
15118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15119 LIBS=$ac_check_lib_save_LIBS
15120 fi
15121 echo "$as_me:15121: result: $ac_cv_lib_curses_tgetent" >&5
15122 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
15123 if test $ac_cv_lib_curses_tgetent = yes; then
15124   bash_cv_termcap_lib=libcurses
15125 else
15126   echo "$as_me:15126: checking for tgetent in -lncurses" >&5
15127 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
15128 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15129   echo $ECHO_N "(cached) $ECHO_C" >&6
15130 else
15131   ac_check_lib_save_LIBS=$LIBS
15132 LIBS="-lncurses  $LIBS"
15133 cat >conftest.$ac_ext <<_ACEOF
15134 #line 15134 "configure"
15135 #include "confdefs.h"
15136
15137 /* Override any gcc2 internal prototype to avoid an error.  */
15138 #ifdef __cplusplus
15139 extern "C"
15140 #endif
15141 /* We use char because int might match the return type of a gcc2
15142    builtin and then its argument prototype would still apply.  */
15143 char tgetent ();
15144 int
15145 main ()
15146 {
15147 tgetent ();
15148   ;
15149   return 0;
15150 }
15151 _ACEOF
15152 rm -f conftest.$ac_objext conftest$ac_exeext
15153 if { (eval echo "$as_me:15153: \"$ac_link\"") >&5
15154   (eval $ac_link) 2>&5
15155   ac_status=$?
15156   echo "$as_me:15156: \$? = $ac_status" >&5
15157   (exit $ac_status); } &&
15158          { ac_try='test -s conftest$ac_exeext'
15159   { (eval echo "$as_me:15159: \"$ac_try\"") >&5
15160   (eval $ac_try) 2>&5
15161   ac_status=$?
15162   echo "$as_me:15162: \$? = $ac_status" >&5
15163   (exit $ac_status); }; }; then
15164   ac_cv_lib_ncurses_tgetent=yes
15165 else
15166   echo "$as_me: failed program was:" >&5
15167 cat conftest.$ac_ext >&5
15168 ac_cv_lib_ncurses_tgetent=no
15169 fi
15170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15171 LIBS=$ac_check_lib_save_LIBS
15172 fi
15173 echo "$as_me:15173: result: $ac_cv_lib_ncurses_tgetent" >&5
15174 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
15175 if test $ac_cv_lib_ncurses_tgetent = yes; then
15176   bash_cv_termcap_lib=libncurses
15177 else
15178   bash_cv_termcap_lib=gnutermcap
15179 fi
15180
15181 fi
15182
15183 fi
15184
15185 fi
15186
15187 fi
15188
15189 if test "X$_bash_needmsg" = "Xyes"; then
15190 echo "$as_me:15190: checking which library has the termcap functions" >&5
15191 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
15192 fi
15193 echo "$as_me:15193: result: using $bash_cv_termcap_lib" >&5
15194 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
15195 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
15196 LDFLAGS="$LDFLAGS -L./lib/termcap"
15197 TERMCAP_LIB="./lib/termcap/libtermcap.a"
15198 TERMCAP_DEP="./lib/termcap/libtermcap.a"
15199 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
15200 TERMCAP_LIB=-ltermcap
15201 TERMCAP_DEP=
15202 elif test $bash_cv_termcap_lib = libtinfo; then
15203 TERMCAP_LIB=-ltinfo
15204 TERMCAP_DEP=
15205 elif test $bash_cv_termcap_lib = libncurses; then
15206 TERMCAP_LIB=-lncurses
15207 TERMCAP_DEP=
15208 else
15209 TERMCAP_LIB=-lcurses
15210 TERMCAP_DEP=
15211 fi
15212
15213 fi
15214
15215 echo "$as_me:15215: checking whether /dev/fd is available" >&5
15216 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
15217 if test "${bash_cv_dev_fd+set}" = set; then
15218   echo $ECHO_N "(cached) $ECHO_C" >&6
15219 else
15220   if test -d /dev/fd  && test -r /dev/fd/0; then
15221    bash_cv_dev_fd=standard
15222  elif test -d /proc/self/fd && test -r /proc/self/fd/0; then
15223    bash_cv_dev_fd=whacky
15224  else
15225    bash_cv_dev_fd=absent
15226  fi
15227
15228 fi
15229
15230 echo "$as_me:15230: result: $bash_cv_dev_fd" >&5
15231 echo "${ECHO_T}$bash_cv_dev_fd" >&6
15232 if test $bash_cv_dev_fd = "standard"; then
15233   cat >>confdefs.h <<\EOF
15234 #define HAVE_DEV_FD 1
15235 EOF
15236
15237   cat >>confdefs.h <<\EOF
15238 #define DEV_FD_PREFIX "/dev/fd/"
15239 EOF
15240
15241 elif test $bash_cv_dev_fd = "whacky"; then
15242   cat >>confdefs.h <<\EOF
15243 #define HAVE_DEV_FD 1
15244 EOF
15245
15246   cat >>confdefs.h <<\EOF
15247 #define DEV_FD_PREFIX "/proc/self/fd/"
15248 EOF
15249
15250 fi
15251
15252 echo "$as_me:15252: checking whether /dev/stdin stdout stderr are available" >&5
15253 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
15254 if test "${bash_cv_dev_stdin+set}" = set; then
15255   echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257   if test -d /dev/fd && test -r /dev/stdin; then
15258    bash_cv_dev_stdin=present
15259  elif test -d /proc/self/fd && test -r /dev/stdin; then
15260    bash_cv_dev_stdin=present
15261  else
15262    bash_cv_dev_stdin=absent
15263  fi
15264
15265 fi
15266
15267 echo "$as_me:15267: result: $bash_cv_dev_stdin" >&5
15268 echo "${ECHO_T}$bash_cv_dev_stdin" >&6
15269 if test $bash_cv_dev_stdin = "present"; then
15270   cat >>confdefs.h <<\EOF
15271 #define HAVE_DEV_STDIN 1
15272 EOF
15273
15274 fi
15275
15276 echo "$as_me:15276: checking for default mail directory" >&5
15277 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
15278 if test "${bash_cv_mail_dir+set}" = set; then
15279   echo $ECHO_N "(cached) $ECHO_C" >&6
15280 else
15281   if test -d /var/mail; then
15282    bash_cv_mail_dir=/var/mail
15283  elif test -d /var/spool/mail; then
15284    bash_cv_mail_dir=/var/spool/mail
15285  elif test -d /usr/mail; then
15286    bash_cv_mail_dir=/usr/mail
15287  elif test -d /usr/spool/mail; then
15288    bash_cv_mail_dir=/usr/spool/mail
15289  else
15290    bash_cv_mail_dir=unknown
15291  fi
15292
15293 fi
15294
15295 echo "$as_me:15295: result: $bash_cv_mail_dir" >&5
15296 echo "${ECHO_T}$bash_cv_mail_dir" >&6
15297 cat >>confdefs.h <<EOF
15298 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
15299 EOF
15300
15301 if test "$bash_cv_job_control_missing" = missing; then
15302         opt_job_control=no
15303 fi
15304
15305 if test "$opt_job_control" = yes; then
15306 cat >>confdefs.h <<\EOF
15307 #define JOB_CONTROL 1
15308 EOF
15309
15310 JOBS_O=jobs.o
15311 else
15312 JOBS_O=nojobs.o
15313 fi
15314
15315 LOCAL_DEFS=-DSHELL
15316
15317 case "${host_os}" in
15318 sysv4.2*)       cat >>confdefs.h <<\EOF
15319 #define SVR4_2 1
15320 EOF
15321
15322                 cat >>confdefs.h <<\EOF
15323 #define SVR4 1
15324 EOF
15325  ;;
15326 sysv4*)         cat >>confdefs.h <<\EOF
15327 #define SVR4 1
15328 EOF
15329  ;;
15330 sysv5*)         cat >>confdefs.h <<\EOF
15331 #define SVR5 1
15332 EOF
15333  ;;
15334 hpux9*)         LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
15335 hpux*)          LOCAL_CFLAGS=-DHPUX ;;
15336 dgux*)          LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
15337 isc*)           LOCAL_CFLAGS=-Disc386 ;;
15338 rhapsody*)      LOCAL_CFLAGS=-DRHAPSODY ;;
15339 darwin*)        LOCAL_CFLAGS=-DMACOSX ;;
15340 sco3.2v5*)      LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
15341 sco3.2v4*)      LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
15342 sco3.2*)        LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
15343 sunos4*)        LOCAL_CFLAGS=-DSunOS4 ;;
15344 solaris2.5*)    LOCAL_CFLAGS=-DSunOS5 ;;
15345 lynxos*)        LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
15346 linux*)         LOCAL_LDFLAGS=-rdynamic ;;       # allow dynamic loading
15347 *qnx*)          LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
15348 powerux*)       LOCAL_LIBS="-lgen" ;;
15349 cygwin*)        LOCAL_LIBS="-luser32" ;;
15350 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO" ;;
15351 esac
15352
15353 case "${host_os}-${CC}" in
15354 aix4.2*-*gcc*)  LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
15355 aix4.2*)        LOCAL_LDFLAGS="-bexpall -brtl" ;;
15356 bsdi4*-*gcc*)   LOCAL_LDFLAGS="-rdynamic" ;;    # allow dynamic loading, like Linux
15357 esac
15358
15359 case "${host_os}" in
15360 freebsd[3-9]*)
15361                 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
15362                         LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
15363                 fi ;;
15364 freebsdelf*)    LOCAL_LDFLAGS=-rdynamic ;;      # allow dynamic loading
15365 esac
15366
15367 case "$host_cpu" in
15368 *cray*)         LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
15369 esac
15370
15371 case "$host_cpu-$host_os" in
15372 ibmrt-*bsd4*)   LOCAL_CFLAGS="-ma -U__STDC__" ;;
15373 esac
15374
15375 case "$host_cpu-$host_vendor-$host_os" in
15376 m88k-motorola-sysv3)    LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
15377 mips-pyramid-sysv4)     LOCAL_CFLAGS=-Xa ;;
15378 esac
15379
15380 #
15381 # Shared object configuration section.  These values are generated by
15382 # ${srcdir}/support/shobj-conf
15383 #
15384 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
15385 then
15386         echo "$as_me:15386: checking shared object configuration for loadable builtins" >&5
15387 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
15388         eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
15389
15390         echo "$as_me:15390: result: $SHOBJ_STATUS" >&5
15391 echo "${ECHO_T}$SHOBJ_STATUS" >&6
15392 fi
15393
15394 # try to create a directory tree if the source is elsewhere
15395 # this should be packaged into a script accessible via ${srcdir}/support
15396 case "$srcdir" in
15397 .)      ;;
15398 *)      for d in doc tests support lib examples; do     # dirs
15399                 test -d $d || mkdir $d
15400         done
15401         for ld in readline glob tilde malloc sh termcap; do     # libdirs
15402                 test -d lib/$ld || mkdir lib/$ld
15403         done
15404         test -d examples/loadables || mkdir examples/loadables  # loadable builtins
15405         test -d examples/loadables/perl || mkdir examples/loadables/perl
15406         ;;
15407 esac
15408
15409 BUILD_DIR=`pwd`
15410
15411 #AC_SUBST(ALLOCA_SOURCE)
15412 #AC_SUBST(ALLOCA_OBJECT)
15413
15414 ac_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"
15415 ac_config_commands="$ac_config_commands default"
15416 cat >confcache <<\_ACEOF
15417 # This file is a shell script that caches the results of configure
15418 # tests run on this system so they can be shared between configure
15419 # scripts and configure runs, see configure's option --config-cache.
15420 # It is not useful on other systems.  If it contains results you don't
15421 # want to keep, you may remove or edit it.
15422 #
15423 # config.status only pays attention to the cache file if you give it
15424 # the --recheck option to rerun configure.
15425 #
15426 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15428 # following values.
15429
15430 _ACEOF
15431
15432 # The following way of writing the cache mishandles newlines in values,
15433 # but we know of no workaround that is simple, portable, and efficient.
15434 # So, don't put newlines in cache variables' values.
15435 # Ultrix sh set writes to stderr and can't be redirected directly,
15436 # and sets the high bit in the cache file unless we assign to the vars.
15437 {
15438   (set) 2>&1 |
15439     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15440     *ac_space=\ *)
15441       # `set' does not quote correctly, so add quotes (double-quote
15442       # substitution turns \\\\ into \\, and sed turns \\ into \).
15443       sed -n \
15444         "s/'/'\\\\''/g;
15445           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15446       ;;
15447     *)
15448       # `set' quotes correctly as required by POSIX, so do not add quotes.
15449       sed -n \
15450         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15451       ;;
15452     esac;
15453 } |
15454   sed '
15455      t clear
15456      : clear
15457      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15458      t end
15459      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15460      : end' >>confcache
15461 if cmp -s $cache_file confcache; then :; else
15462   if test -w $cache_file; then
15463     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15464     cat confcache >$cache_file
15465   else
15466     echo "not updating unwritable cache $cache_file"
15467   fi
15468 fi
15469 rm -f confcache
15470
15471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15472 # Let make expand exec_prefix.
15473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15474
15475 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15476 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15477 # trailing colons and then remove the whole line if VPATH becomes empty
15478 # (actually we leave an empty line to preserve line numbers).
15479 if test "x$srcdir" = x.; then
15480   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15481 s/:*\$(srcdir):*/:/;
15482 s/:*\${srcdir}:*/:/;
15483 s/:*@srcdir@:*/:/;
15484 s/^\([^=]*=[    ]*\):*/\1/;
15485 s/:*$//;
15486 s/^[^=]*=[      ]*$//;
15487 }'
15488 fi
15489
15490 DEFS=-DHAVE_CONFIG_H
15491
15492 : ${CONFIG_STATUS=./config.status}
15493 ac_clean_files_save=$ac_clean_files
15494 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15495 { echo "$as_me:15495: creating $CONFIG_STATUS" >&5
15496 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15497 cat >$CONFIG_STATUS <<_ACEOF
15498 #! $SHELL
15499 # Generated automatically by configure.
15500 # Run this file to recreate the current configuration.
15501 # Compiler output produced by configure, useful for debugging
15502 # configure, is in config.log if it exists.
15503
15504 debug=false
15505 SHELL=\${CONFIG_SHELL-$SHELL}
15506 ac_cs_invocation="\$0 \$@"
15507
15508 _ACEOF
15509
15510 cat >>$CONFIG_STATUS <<\_ACEOF
15511 # Be Bourne compatible
15512 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15513   emulate sh
15514   NULLCMD=:
15515 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15516   set -o posix
15517 fi
15518
15519 # Name of the executable.
15520 as_me=`echo "$0" |sed 's,.*[\\/],,'`
15521
15522 if expr a : '\(a\)' >/dev/null 2>&1; then
15523   as_expr=expr
15524 else
15525   as_expr=false
15526 fi
15527
15528 rm -f conf$$ conf$$.exe conf$$.file
15529 echo >conf$$.file
15530 if ln -s conf$$.file conf$$ 2>/dev/null; then
15531   # We could just check for DJGPP; but this test a) works b) is more generic
15532   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15533   if test -f conf$$.exe; then
15534     # Don't use ln at all; we don't have any links
15535     as_ln_s='cp -p'
15536   else
15537     as_ln_s='ln -s'
15538   fi
15539 elif ln conf$$.file conf$$ 2>/dev/null; then
15540   as_ln_s=ln
15541 else
15542   as_ln_s='cp -p'
15543 fi
15544 rm -f conf$$ conf$$.exe conf$$.file
15545
15546 as_executable_p="test -f"
15547
15548 # Support unset when possible.
15549 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15550   as_unset=unset
15551 else
15552   as_unset=false
15553 fi
15554
15555 # NLS nuisances.
15556 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
15557 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
15558 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
15559 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
15560 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
15561 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
15562 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
15563 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
15564
15565 # IFS
15566 # We need space, tab and new line, in precisely that order.
15567 as_nl='
15568 '
15569 IFS="   $as_nl"
15570
15571 # CDPATH.
15572 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
15573
15574 exec 6>&1
15575
15576 _ACEOF
15577
15578 # Files that config.status was made for.
15579 if test -n "$ac_config_files"; then
15580   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15581 fi
15582
15583 if test -n "$ac_config_headers"; then
15584   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15585 fi
15586
15587 if test -n "$ac_config_links"; then
15588   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15589 fi
15590
15591 if test -n "$ac_config_commands"; then
15592   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15593 fi
15594
15595 cat >>$CONFIG_STATUS <<\EOF
15596
15597 ac_cs_usage="\
15598 \`$as_me' instantiates files from templates according to the
15599 current configuration.
15600
15601 Usage: $0 [OPTIONS] [FILE]...
15602
15603   -h, --help       print this help, then exit
15604   -V, --version    print version number, then exit
15605   -d, --debug      don't remove temporary files
15606       --recheck    update $as_me by reconfiguring in the same conditions
15607   --file=FILE[:TEMPLATE]
15608                    instantiate the configuration file FILE
15609   --header=FILE[:TEMPLATE]
15610                    instantiate the configuration header FILE
15611
15612 Configuration files:
15613 $config_files
15614
15615 Configuration headers:
15616 $config_headers
15617
15618 Configuration commands:
15619 $config_commands
15620
15621 Report bugs to <bug-autoconf@gnu.org>."
15622 EOF
15623
15624 cat >>$CONFIG_STATUS <<EOF
15625 ac_cs_version="\\
15626 bash config.status 2.05b
15627 configured by $0, generated by GNU Autoconf 2.52,
15628   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15629
15630 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15631 Free Software Foundation, Inc.
15632 This config.status script is free software; the Free Software Foundation
15633 gives unlimited permission to copy, distribute and modify it."
15634 srcdir=$srcdir
15635 INSTALL="$INSTALL"
15636 EOF
15637
15638 cat >>$CONFIG_STATUS <<\EOF
15639 # If no file are specified by the user, then we need to provide default
15640 # value.  By we need to know if files were specified by the user.
15641 ac_need_defaults=:
15642 while test $# != 0
15643 do
15644   case $1 in
15645   --*=*)
15646     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15647     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15648     shift
15649     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
15650     shift
15651     ;;
15652   -*);;
15653   *) # This is not an option, so the user has probably given explicit
15654      # arguments.
15655      ac_need_defaults=false;;
15656   esac
15657
15658   case $1 in
15659   # Handling of the options.
15660 EOF
15661 cat >>$CONFIG_STATUS <<EOF
15662   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15663     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15664     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15665 EOF
15666 cat >>$CONFIG_STATUS <<\EOF
15667   --version | --vers* | -V )
15668     echo "$ac_cs_version"; exit 0 ;;
15669   --he | --h)
15670     # Conflict between --help and --header
15671     { { echo "$as_me:15671: error: ambiguous option: $1
15672 Try \`$0 --help' for more information." >&5
15673 echo "$as_me: error: ambiguous option: $1
15674 Try \`$0 --help' for more information." >&2;}
15675    { (exit 1); exit 1; }; };;
15676   --help | --hel | -h )
15677     echo "$ac_cs_usage"; exit 0 ;;
15678   --debug | --d* | -d )
15679     debug=: ;;
15680   --file | --fil | --fi | --f )
15681     shift
15682     CONFIG_FILES="$CONFIG_FILES $1"
15683     ac_need_defaults=false;;
15684   --header | --heade | --head | --hea )
15685     shift
15686     CONFIG_HEADERS="$CONFIG_HEADERS $1"
15687     ac_need_defaults=false;;
15688
15689   # This is an error.
15690   -*) { { echo "$as_me:15690: error: unrecognized option: $1
15691 Try \`$0 --help' for more information." >&5
15692 echo "$as_me: error: unrecognized option: $1
15693 Try \`$0 --help' for more information." >&2;}
15694    { (exit 1); exit 1; }; } ;;
15695
15696   *) ac_config_targets="$ac_config_targets $1" ;;
15697
15698   esac
15699   shift
15700 done
15701
15702 exec 5>>config.log
15703 cat >&5 << _ACEOF
15704
15705 ## ----------------------- ##
15706 ## Running config.status.  ##
15707 ## ----------------------- ##
15708
15709 This file was extended by $as_me (bash 2.05b) 2.52, executed with
15710   CONFIG_FILES    = $CONFIG_FILES
15711   CONFIG_HEADERS  = $CONFIG_HEADERS
15712   CONFIG_LINKS    = $CONFIG_LINKS
15713   CONFIG_COMMANDS = $CONFIG_COMMANDS
15714   > $ac_cs_invocation
15715 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15716
15717 _ACEOF
15718 EOF
15719
15720 cat >>$CONFIG_STATUS <<\EOF
15721 for ac_config_target in $ac_config_targets
15722 do
15723   case "$ac_config_target" in
15724   # Handling of arguments.
15725   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15726   "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
15727   "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
15728   "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
15729   "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
15730   "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
15731   "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
15732   "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
15733   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15734   "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
15735   "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
15736   "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
15737   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15738   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15739   *) { { echo "$as_me:15739: error: invalid argument: $ac_config_target" >&5
15740 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15741    { (exit 1); exit 1; }; };;
15742   esac
15743 done
15744
15745 # If the user did not use the arguments to specify the items to instantiate,
15746 # then the envvar interface is used.  Set only those that are not.
15747 # We use the long form for the default assignment because of an extremely
15748 # bizarre bug on SunOS 4.1.3.
15749 if $ac_need_defaults; then
15750   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15751   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15752   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15753 fi
15754
15755 # Create a temporary directory, and hook for its removal unless debugging.
15756 $debug ||
15757 {
15758   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15759   trap '{ (exit 1); exit 1; }' 1 2 13 15
15760 }
15761
15762 # Create a (secure) tmp directory for tmp files.
15763 : ${TMPDIR=/tmp}
15764 {
15765   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15766   test -n "$tmp" && test -d "$tmp"
15767 }  ||
15768 {
15769   tmp=$TMPDIR/cs$$-$RANDOM
15770   (umask 077 && mkdir $tmp)
15771 } ||
15772 {
15773    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15774    { (exit 1); exit 1; }
15775 }
15776
15777 EOF
15778
15779 cat >>$CONFIG_STATUS <<EOF
15780
15781 #
15782 # CONFIG_FILES section.
15783 #
15784
15785 # No need to generate the scripts if there are no CONFIG_FILES.
15786 # This happens for instance when ./config.status config.h
15787 if test -n "\$CONFIG_FILES"; then
15788   # Protect against being on the right side of a sed subst in config.status.
15789   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15790    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15791 s,@SHELL@,$SHELL,;t t
15792 s,@exec_prefix@,$exec_prefix,;t t
15793 s,@prefix@,$prefix,;t t
15794 s,@program_transform_name@,$program_transform_name,;t t
15795 s,@bindir@,$bindir,;t t
15796 s,@sbindir@,$sbindir,;t t
15797 s,@libexecdir@,$libexecdir,;t t
15798 s,@datadir@,$datadir,;t t
15799 s,@sysconfdir@,$sysconfdir,;t t
15800 s,@sharedstatedir@,$sharedstatedir,;t t
15801 s,@localstatedir@,$localstatedir,;t t
15802 s,@libdir@,$libdir,;t t
15803 s,@includedir@,$includedir,;t t
15804 s,@oldincludedir@,$oldincludedir,;t t
15805 s,@infodir@,$infodir,;t t
15806 s,@mandir@,$mandir,;t t
15807 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15808 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15809 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15810 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15811 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15812 s,@build_alias@,$build_alias,;t t
15813 s,@host_alias@,$host_alias,;t t
15814 s,@target_alias@,$target_alias,;t t
15815 s,@ECHO_C@,$ECHO_C,;t t
15816 s,@ECHO_N@,$ECHO_N,;t t
15817 s,@ECHO_T@,$ECHO_T,;t t
15818 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15819 s,@DEFS@,$DEFS,;t t
15820 s,@LIBS@,$LIBS,;t t
15821 s,@build@,$build,;t t
15822 s,@build_cpu@,$build_cpu,;t t
15823 s,@build_vendor@,$build_vendor,;t t
15824 s,@build_os@,$build_os,;t t
15825 s,@host@,$host,;t t
15826 s,@host_cpu@,$host_cpu,;t t
15827 s,@host_vendor@,$host_vendor,;t t
15828 s,@host_os@,$host_os,;t t
15829 s,@TESTSCRIPT@,$TESTSCRIPT,;t t
15830 s,@PURIFY@,$PURIFY,;t t
15831 s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
15832 s,@MALLOC_SRC@,$MALLOC_SRC,;t t
15833 s,@MALLOC_LIB@,$MALLOC_LIB,;t t
15834 s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
15835 s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
15836 s,@MALLOC_DEP@,$MALLOC_DEP,;t t
15837 s,@htmldir@,$htmldir,;t t
15838 s,@HELPDIR@,$HELPDIR,;t t
15839 s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t
15840 s,@HELPINSTALL@,$HELPINSTALL,;t t
15841 s,@CC@,$CC,;t t
15842 s,@CFLAGS@,$CFLAGS,;t t
15843 s,@LDFLAGS@,$LDFLAGS,;t t
15844 s,@CPPFLAGS@,$CPPFLAGS,;t t
15845 s,@ac_ct_CC@,$ac_ct_CC,;t t
15846 s,@EXEEXT@,$EXEEXT,;t t
15847 s,@OBJEXT@,$OBJEXT,;t t
15848 s,@CPP@,$CPP,;t t
15849 s,@SIGNAMES_H@,$SIGNAMES_H,;t t
15850 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15851 s,@STATIC_LD@,$STATIC_LD,;t t
15852 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
15853 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
15854 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
15855 s,@RL_VERSION@,$RL_VERSION,;t t
15856 s,@RL_MAJOR@,$RL_MAJOR,;t t
15857 s,@RL_MINOR@,$RL_MINOR,;t t
15858 s,@READLINE_LIB@,$READLINE_LIB,;t t
15859 s,@READLINE_DEP@,$READLINE_DEP,;t t
15860 s,@RL_LIBDIR@,$RL_LIBDIR,;t t
15861 s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
15862 s,@RL_INCLUDE@,$RL_INCLUDE,;t t
15863 s,@HISTORY_LIB@,$HISTORY_LIB,;t t
15864 s,@HISTORY_DEP@,$HISTORY_DEP,;t t
15865 s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
15866 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15867 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15868 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15869 s,@AR@,$AR,;t t
15870 s,@RANLIB@,$RANLIB,;t t
15871 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15872 s,@YACC@,$YACC,;t t
15873 s,@SET_MAKE@,$SET_MAKE,;t t
15874 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
15875 s,@ALLOCA@,$ALLOCA,;t t
15876 s,@LIBOBJS@,$LIBOBJS,;t t
15877 s,@SIGLIST_O@,$SIGLIST_O,;t t
15878 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
15879 s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
15880 s,@JOBS_O@,$JOBS_O,;t t
15881 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
15882 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
15883 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
15884 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
15885 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
15886 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
15887 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
15888 s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
15889 s,@incdir@,$incdir,;t t
15890 s,@BUILD_DIR@,$BUILD_DIR,;t t
15891 s,@ARFLAGS@,$ARFLAGS,;t t
15892 s,@BASHVERS@,$BASHVERS,;t t
15893 s,@RELSTATUS@,$RELSTATUS,;t t
15894 s,@DEBUG@,$DEBUG,;t t
15895 s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t
15896 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
15897 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
15898 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
15899 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
15900 CEOF
15901
15902 EOF
15903
15904   cat >>$CONFIG_STATUS <<\EOF
15905   # Split the substitutions into bite-sized pieces for seds with
15906   # small command number limits, like on Digital OSF/1 and HP-UX.
15907   ac_max_sed_lines=48
15908   ac_sed_frag=1 # Number of current file.
15909   ac_beg=1 # First line for current file.
15910   ac_end=$ac_max_sed_lines # Line after last line for current file.
15911   ac_more_lines=:
15912   ac_sed_cmds=
15913   while $ac_more_lines; do
15914     if test $ac_beg -gt 1; then
15915       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15916     else
15917       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15918     fi
15919     if test ! -s $tmp/subs.frag; then
15920       ac_more_lines=false
15921     else
15922       # The purpose of the label and of the branching condition is to
15923       # speed up the sed processing (if there are no `@' at all, there
15924       # is no need to browse any of the substitutions).
15925       # These are the two extra sed commands mentioned above.
15926       (echo ':t
15927   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15928       if test -z "$ac_sed_cmds"; then
15929         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15930       else
15931         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15932       fi
15933       ac_sed_frag=`expr $ac_sed_frag + 1`
15934       ac_beg=$ac_end
15935       ac_end=`expr $ac_end + $ac_max_sed_lines`
15936     fi
15937   done
15938   if test -z "$ac_sed_cmds"; then
15939     ac_sed_cmds=cat
15940   fi
15941 fi # test -n "$CONFIG_FILES"
15942
15943 EOF
15944 cat >>$CONFIG_STATUS <<\EOF
15945 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15946   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15947   case $ac_file in
15948   - | *:- | *:-:* ) # input from stdin
15949         cat >$tmp/stdin
15950         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15951         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15952   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15953         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15954   * )   ac_file_in=$ac_file.in ;;
15955   esac
15956
15957   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15958   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15959          X"$ac_file" : 'X\(//\)[^/]' \| \
15960          X"$ac_file" : 'X\(//\)$' \| \
15961          X"$ac_file" : 'X\(/\)' \| \
15962          .     : '\(.\)' 2>/dev/null ||
15963 echo X"$ac_file" |
15964     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15965           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15966           /^X\(\/\/\)$/{ s//\1/; q; }
15967           /^X\(\/\).*/{ s//\1/; q; }
15968           s/.*/./; q'`
15969   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15970     { case "$ac_dir" in
15971   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15972   *)                      as_incr_dir=.;;
15973 esac
15974 as_dummy="$ac_dir"
15975 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15976   case $as_mkdir_dir in
15977     # Skip DOS drivespec
15978     ?:) as_incr_dir=$as_mkdir_dir ;;
15979     *)
15980       as_incr_dir=$as_incr_dir/$as_mkdir_dir
15981       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
15982     ;;
15983   esac
15984 done; }
15985
15986     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
15987     # A "../" for each directory in $ac_dir_suffix.
15988     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
15989   else
15990     ac_dir_suffix= ac_dots=
15991   fi
15992
15993   case $srcdir in
15994   .)  ac_srcdir=.
15995       if test -z "$ac_dots"; then
15996          ac_top_srcdir=.
15997       else
15998          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
15999       fi ;;
16000   [\\/]* | ?:[\\/]* )
16001       ac_srcdir=$srcdir$ac_dir_suffix;
16002       ac_top_srcdir=$srcdir ;;
16003   *) # Relative path.
16004     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
16005     ac_top_srcdir=$ac_dots$srcdir ;;
16006   esac
16007
16008   case $INSTALL in
16009   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16010   *) ac_INSTALL=$ac_dots$INSTALL ;;
16011   esac
16012
16013   if test x"$ac_file" != x-; then
16014     { echo "$as_me:16014: creating $ac_file" >&5
16015 echo "$as_me: creating $ac_file" >&6;}
16016     rm -f "$ac_file"
16017   fi
16018   # Let's still pretend it is `configure' which instantiates (i.e., don't
16019   # use $as_me), people would be surprised to read:
16020   #    /* config.h.  Generated automatically by config.status.  */
16021   configure_input="Generated automatically from `echo $ac_file_in |
16022                                                  sed 's,.*/,,'` by configure."
16023
16024   # First look for the input files in the build tree, otherwise in the
16025   # src tree.
16026   ac_file_inputs=`IFS=:
16027     for f in $ac_file_in; do
16028       case $f in
16029       -) echo $tmp/stdin ;;
16030       [\\/$]*)
16031          # Absolute (can't be DOS-style, as IFS=:)
16032          test -f "$f" || { { echo "$as_me:16032: error: cannot find input file: $f" >&5
16033 echo "$as_me: error: cannot find input file: $f" >&2;}
16034    { (exit 1); exit 1; }; }
16035          echo $f;;
16036       *) # Relative
16037          if test -f "$f"; then
16038            # Build tree
16039            echo $f
16040          elif test -f "$srcdir/$f"; then
16041            # Source tree
16042            echo $srcdir/$f
16043          else
16044            # /dev/null tree
16045            { { echo "$as_me:16045: error: cannot find input file: $f" >&5
16046 echo "$as_me: error: cannot find input file: $f" >&2;}
16047    { (exit 1); exit 1; }; }
16048          fi;;
16049       esac
16050     done` || { (exit 1); exit 1; }
16051 EOF
16052 cat >>$CONFIG_STATUS <<EOF
16053   sed "$ac_vpsub
16054 $extrasub
16055 EOF
16056 cat >>$CONFIG_STATUS <<\EOF
16057 :t
16058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16059 s,@configure_input@,$configure_input,;t t
16060 s,@srcdir@,$ac_srcdir,;t t
16061 s,@top_srcdir@,$ac_top_srcdir,;t t
16062 s,@INSTALL@,$ac_INSTALL,;t t
16063 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16064   rm -f $tmp/stdin
16065   if test x"$ac_file" != x-; then
16066     mv $tmp/out $ac_file
16067   else
16068     cat $tmp/out
16069     rm -f $tmp/out
16070   fi
16071
16072 done
16073 EOF
16074 cat >>$CONFIG_STATUS <<\EOF
16075
16076 #
16077 # CONFIG_HEADER section.
16078 #
16079
16080 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16081 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16082 #
16083 # ac_d sets the value in "#define NAME VALUE" lines.
16084 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16085 ac_dB='[        ].*$,\1#\2'
16086 ac_dC=' '
16087 ac_dD=',;t'
16088 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16089 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16090 ac_uB='$,\1#\2define\3'
16091 ac_uC=' '
16092 ac_uD=',;t'
16093
16094 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16095   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16096   case $ac_file in
16097   - | *:- | *:-:* ) # input from stdin
16098         cat >$tmp/stdin
16099         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16100         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16101   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16102         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16103   * )   ac_file_in=$ac_file.in ;;
16104   esac
16105
16106   test x"$ac_file" != x- && { echo "$as_me:16106: creating $ac_file" >&5
16107 echo "$as_me: creating $ac_file" >&6;}
16108
16109   # First look for the input files in the build tree, otherwise in the
16110   # src tree.
16111   ac_file_inputs=`IFS=:
16112     for f in $ac_file_in; do
16113       case $f in
16114       -) echo $tmp/stdin ;;
16115       [\\/$]*)
16116          # Absolute (can't be DOS-style, as IFS=:)
16117          test -f "$f" || { { echo "$as_me:16117: error: cannot find input file: $f" >&5
16118 echo "$as_me: error: cannot find input file: $f" >&2;}
16119    { (exit 1); exit 1; }; }
16120          echo $f;;
16121       *) # Relative
16122          if test -f "$f"; then
16123            # Build tree
16124            echo $f
16125          elif test -f "$srcdir/$f"; then
16126            # Source tree
16127            echo $srcdir/$f
16128          else
16129            # /dev/null tree
16130            { { echo "$as_me:16130: error: cannot find input file: $f" >&5
16131 echo "$as_me: error: cannot find input file: $f" >&2;}
16132    { (exit 1); exit 1; }; }
16133          fi;;
16134       esac
16135     done` || { (exit 1); exit 1; }
16136   # Remove the trailing spaces.
16137   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16138
16139 EOF
16140
16141 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16142 # `conftest.undefs', that substitutes the proper values into
16143 # config.h.in to produce config.h.  The first handles `#define'
16144 # templates, and the second `#undef' templates.
16145 # And first: Protect against being on the right side of a sed subst in
16146 # config.status.  Protect against being in an unquoted here document
16147 # in config.status.
16148 rm -f conftest.defines conftest.undefs
16149 # Using a here document instead of a string reduces the quoting nightmare.
16150 # Putting comments in sed scripts is not portable.
16151 #
16152 # `end' is used to avoid that the second main sed command (meant for
16153 # 0-ary CPP macros) applies to n-ary macro definitions.
16154 # See the Autoconf documentation for `clear'.
16155 cat >confdef2sed.sed <<\EOF
16156 s/[\\&,]/\\&/g
16157 s,[\\$`],\\&,g
16158 t clear
16159 : clear
16160 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
16161 t end
16162 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16163 : end
16164 EOF
16165 # If some macros were called several times there might be several times
16166 # the same #defines, which is useless.  Nevertheless, we may not want to
16167 # sort them, since we want the *last* AC-DEFINE to be honored.
16168 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16169 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16170 rm -f confdef2sed.sed
16171
16172 # This sed command replaces #undef with comments.  This is necessary, for
16173 # example, in the case of _POSIX_SOURCE, which is predefined and required
16174 # on some systems where configure will not decide to define it.
16175 cat >>conftest.undefs <<\EOF
16176 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16177 EOF
16178
16179 # Break up conftest.defines because some shells have a limit on the size
16180 # of here documents, and old seds have small limits too (100 cmds).
16181 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16182 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16183 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16184 echo '  :' >>$CONFIG_STATUS
16185 rm -f conftest.tail
16186 while grep . conftest.defines >/dev/null
16187 do
16188   # Write a limited-size here document to $tmp/defines.sed.
16189   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16190   # Speed up: don't consider the non `#define' lines.
16191   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16192   # Work around the forget-to-reset-the-flag bug.
16193   echo 't clr' >>$CONFIG_STATUS
16194   echo ': clr' >>$CONFIG_STATUS
16195   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16196   echo 'CEOF
16197   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16198   rm -f $tmp/in
16199   mv $tmp/out $tmp/in
16200 ' >>$CONFIG_STATUS
16201   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16202   rm -f conftest.defines
16203   mv conftest.tail conftest.defines
16204 done
16205 rm -f conftest.defines
16206 echo '  fi # egrep' >>$CONFIG_STATUS
16207 echo >>$CONFIG_STATUS
16208
16209 # Break up conftest.undefs because some shells have a limit on the size
16210 # of here documents, and old seds have small limits too (100 cmds).
16211 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16212 rm -f conftest.tail
16213 while grep . conftest.undefs >/dev/null
16214 do
16215   # Write a limited-size here document to $tmp/undefs.sed.
16216   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16217   # Speed up: don't consider the non `#undef'
16218   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16219   # Work around the forget-to-reset-the-flag bug.
16220   echo 't clr' >>$CONFIG_STATUS
16221   echo ': clr' >>$CONFIG_STATUS
16222   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16223   echo 'CEOF
16224   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16225   rm -f $tmp/in
16226   mv $tmp/out $tmp/in
16227 ' >>$CONFIG_STATUS
16228   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16229   rm -f conftest.undefs
16230   mv conftest.tail conftest.undefs
16231 done
16232 rm -f conftest.undefs
16233
16234 cat >>$CONFIG_STATUS <<\EOF
16235   # Let's still pretend it is `configure' which instantiates (i.e., don't
16236   # use $as_me), people would be surprised to read:
16237   #    /* config.h.  Generated automatically by config.status.  */
16238   if test x"$ac_file" = x-; then
16239     echo "/* Generated automatically by configure.  */" >$tmp/config.h
16240   else
16241     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
16242   fi
16243   cat $tmp/in >>$tmp/config.h
16244   rm -f $tmp/in
16245   if test x"$ac_file" != x-; then
16246     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16247       { echo "$as_me:16247: $ac_file is unchanged" >&5
16248 echo "$as_me: $ac_file is unchanged" >&6;}
16249     else
16250       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16251          X"$ac_file" : 'X\(//\)[^/]' \| \
16252          X"$ac_file" : 'X\(//\)$' \| \
16253          X"$ac_file" : 'X\(/\)' \| \
16254          .     : '\(.\)' 2>/dev/null ||
16255 echo X"$ac_file" |
16256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16257           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16258           /^X\(\/\/\)$/{ s//\1/; q; }
16259           /^X\(\/\).*/{ s//\1/; q; }
16260           s/.*/./; q'`
16261       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16262         { case "$ac_dir" in
16263   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16264   *)                      as_incr_dir=.;;
16265 esac
16266 as_dummy="$ac_dir"
16267 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16268   case $as_mkdir_dir in
16269     # Skip DOS drivespec
16270     ?:) as_incr_dir=$as_mkdir_dir ;;
16271     *)
16272       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16273       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
16274     ;;
16275   esac
16276 done; }
16277
16278       fi
16279       rm -f $ac_file
16280       mv $tmp/config.h $ac_file
16281     fi
16282   else
16283     cat $tmp/config.h
16284     rm -f $tmp/config.h
16285   fi
16286 done
16287 EOF
16288 cat >>$CONFIG_STATUS <<\EOF
16289
16290 #
16291 # CONFIG_COMMANDS section.
16292 #
16293 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16294   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16295   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16296
16297   case $ac_dest in
16298     default )
16299 # Makefile uses this timestamp file to record whether config.h is up to date.
16300 echo timestamp > stamp-h
16301  ;;
16302   esac
16303 done
16304 EOF
16305
16306 cat >>$CONFIG_STATUS <<\EOF
16307
16308 { (exit 0); exit 0; }
16309 EOF
16310 chmod +x $CONFIG_STATUS
16311 ac_clean_files=$ac_clean_files_save
16312
16313 # configure is writing to config.log, and then calls config.status.
16314 # config.status does its own redirection, appending to config.log.
16315 # Unfortunately, on DOS this fails, as config.log is still kept open
16316 # by configure, so config.status won't be able to write to it; its
16317 # output is simply discarded.  So we exec the FD to /dev/null,
16318 # effectively closing config.log, so it can be properly (re)opened and
16319 # appended to by config.status.  When coming back to configure, we
16320 # need to make the FD available again.
16321 if test "$no_create" != yes; then
16322   ac_cs_success=:
16323   exec 5>/dev/null
16324   $SHELL $CONFIG_STATUS || ac_cs_success=false
16325   exec 5>>config.log
16326   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16327   # would make configure fail if this is the last instruction.
16328   $ac_cs_success || { (exit 1); exit 1; }
16329 fi
16330