a18067f8dfb3d36e4b5359d1200d0225ba16a09b
[platform/upstream/bash.git] / configure
1 #! /bin/sh
2 # From configure.in for Bash 2.05a, version 2.128, from autoconf version 2.52.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52 for bash 2.05a.
5 #
6 # Report bugs to <bug-bash@gnu.org>.
7 #
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
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.05a'
190 PACKAGE_STRING='bash 2.05a'
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.05a 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.05a:";;
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      enable arithmetic for command
678 --enable-array-variables        include shell array variables
679 --enable-bang-history   turn on csh-style history substitution
680 --enable-brace-expansion        include brace expansion
681 --enable-command-timing enable the time reserved word and command timing
682 --enable-cond-command   enable the conditional command
683 --enable-directory-stack        enable builtins pushd/popd/dirs
684 --enable-disabled-builtins      allow disabled builtins to still be invoked
685 --enable-dparen-arithmetic      include ((...)) command
686 --enable-extended-glob  include ksh-style extended pattern matching
687 --enable-help-builtin   include the help builtin
688 --enable-history        turn on command history
689 --enable-job-control    enable job control features
690 --enable-largefile      enable support for large files
691 --enable-net-redirections       enable /dev/tcp/host/port redirection
692 --enable-process-substitution   enable process substitution
693 --enable-progcomp       enable programmable completion and the complete builtin
694 --enable-prompt-string-decoding turn on escape character decoding in prompts
695 --enable-readline       turn on command line editing
696 --enable-restricted     enable a restricted shell
697 --enable-select         include select command
698 --enable-usg-echo-default       a synonym for --enable-xpg-echo-default
699 --enable-xpg-echo-default       make the echo builtin expand escape sequences by default
700 --enable-profiling              allow profiling with gprof
701 --enable-static-link            link bash statically, for use as a root shell
702   --disable-largefile     omit support for large files
703
704 Optional Packages:
705   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
706   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
707 --with-afs              if you are running AFS
708 --with-bash-malloc      use the Bash version of malloc
709 --with-curses           use the curses library instead of the termcap library
710 --with-gnu-malloc       synonym for --with-bash-malloc
711 --with-installed-readline       use a version of the readline library that is already installed
712 --with-purecov          configure to postprocess with pure coverage
713 --with-purify           configure to postprocess with purify
714
715 Some influential environment variables:
716   CC          C compiler command
717   CFLAGS      C compiler flags
718   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
719               nonstandard directory <lib dir>
720   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
721               headers in a nonstandard directory <include dir>
722   CPP         C preprocessor
723
724 Use these variables to override the choices made by `configure' or to help
725 it to find libraries and programs with nonstandard names/locations.
726
727 Report bugs to <bug-bash@gnu.org>.
728 EOF
729 fi
730
731 if test "$ac_init_help" = "recursive"; then
732   # If there are subdirs, report their specific --help.
733   ac_popdir=`pwd`
734   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
735     cd $ac_subdir
736     # A "../" for each directory in /$ac_subdir.
737     ac_dots=`echo $ac_subdir |
738              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
739
740     case $srcdir in
741     .) # No --srcdir option.  We are building in place.
742       ac_sub_srcdir=$srcdir ;;
743     [\\/]* | ?:[\\/]* ) # Absolute path.
744       ac_sub_srcdir=$srcdir/$ac_subdir ;;
745     *) # Relative path.
746       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
747     esac
748
749     # Check for guested configure; otherwise get Cygnus style configure.
750     if test -f $ac_sub_srcdir/configure.gnu; then
751       echo
752       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
753     elif test -f $ac_sub_srcdir/configure; then
754       echo
755       $SHELL $ac_sub_srcdir/configure  --help=recursive
756     elif test -f $ac_sub_srcdir/configure.ac ||
757            test -f $ac_sub_srcdir/configure.in; then
758       echo
759       $ac_configure --help
760     else
761       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
762     fi
763     cd $ac_popdir
764   done
765 fi
766
767 test -n "$ac_init_help" && exit 0
768 if $ac_init_version; then
769   cat <<\EOF
770 bash configure 2.05a
771 generated by GNU Autoconf 2.52
772
773 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
774 Free Software Foundation, Inc.
775 This configure script is free software; the Free Software Foundation
776 gives unlimited permission to copy, distribute and modify it.
777 EOF
778   exit 0
779 fi
780 exec 5>config.log
781 cat >&5 <<EOF
782 This file contains any messages produced by compilers while
783 running configure, to aid debugging if configure makes a mistake.
784
785 It was created by bash $as_me 2.05a, which was
786 generated by GNU Autoconf 2.52.  Invocation command line was
787
788   $ $0 $@
789
790 EOF
791 {
792 cat <<_ASUNAME
793 ## ---------- ##
794 ## Platform.  ##
795 ## ---------- ##
796
797 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
798 uname -m = `(uname -m) 2>/dev/null || echo unknown`
799 uname -r = `(uname -r) 2>/dev/null || echo unknown`
800 uname -s = `(uname -s) 2>/dev/null || echo unknown`
801 uname -v = `(uname -v) 2>/dev/null || echo unknown`
802
803 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
804 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
805
806 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
807 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
808 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
809 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
810 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
811 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
812 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
813
814 PATH = $PATH
815
816 _ASUNAME
817 } >&5
818
819 cat >&5 <<EOF
820 ## ------------ ##
821 ## Core tests.  ##
822 ## ------------ ##
823
824 EOF
825
826 # Keep a trace of the command line.
827 # Strip out --no-create and --no-recursion so they do not pile up.
828 # Also quote any args containing shell meta-characters.
829 ac_configure_args=
830 ac_sep=
831 for ac_arg
832 do
833   case $ac_arg in
834   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
835   | --no-cr | --no-c) ;;
836   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
837   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
838   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
839     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
840     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
841     ac_sep=" " ;;
842   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
843      ac_sep=" " ;;
844   esac
845   # Get rid of the leading space.
846 done
847
848 # When interrupted or exit'd, cleanup temporary files, and complete
849 # config.log.  We remove comments because anyway the quotes in there
850 # would cause problems or look ugly.
851 trap 'exit_status=$?
852   # Save into config.log some information that might help in debugging.
853   echo >&5
854   echo "## ----------------- ##" >&5
855   echo "## Cache variables.  ##" >&5
856   echo "## ----------------- ##" >&5
857   echo >&5
858   # The following way of writing the cache mishandles newlines in values,
859 {
860   (set) 2>&1 |
861     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
862     *ac_space=\ *)
863       sed -n \
864         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
865           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
866       ;;
867     *)
868       sed -n \
869         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
870       ;;
871     esac;
872 } >&5
873   sed "/^$/d" confdefs.h >conftest.log
874   if test -s conftest.log; then
875     echo >&5
876     echo "## ------------ ##" >&5
877     echo "## confdefs.h.  ##" >&5
878     echo "## ------------ ##" >&5
879     echo >&5
880     cat conftest.log >&5
881   fi
882   (echo; echo) >&5
883   test "$ac_signal" != 0 &&
884     echo "$as_me: caught signal $ac_signal" >&5
885   echo "$as_me: exit $exit_status" >&5
886   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
887     exit $exit_status
888      ' 0
889 for ac_signal in 1 2 13 15; do
890   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
891 done
892 ac_signal=0
893
894 # confdefs.h avoids OS command line length limits that DEFS can exceed.
895 rm -rf conftest* confdefs.h
896 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
897 echo >confdefs.h
898
899 # Let the site file select an alternate cache file if it wants to.
900 # Prefer explicitly selected file to automatically selected ones.
901 if test -z "$CONFIG_SITE"; then
902   if test "x$prefix" != xNONE; then
903     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
904   else
905     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
906   fi
907 fi
908 for ac_site_file in $CONFIG_SITE; do
909   if test -r "$ac_site_file"; then
910     { echo "$as_me:910: loading site script $ac_site_file" >&5
911 echo "$as_me: loading site script $ac_site_file" >&6;}
912     cat "$ac_site_file" >&5
913     . "$ac_site_file"
914   fi
915 done
916
917 if test -r "$cache_file"; then
918   # Some versions of bash will fail to source /dev/null (special
919   # files actually), so we avoid doing that.
920   if test -f "$cache_file"; then
921     { echo "$as_me:921: loading cache $cache_file" >&5
922 echo "$as_me: loading cache $cache_file" >&6;}
923     case $cache_file in
924       [\\/]* | ?:[\\/]* ) . $cache_file;;
925       *)                      . ./$cache_file;;
926     esac
927   fi
928 else
929   { echo "$as_me:929: creating cache $cache_file" >&5
930 echo "$as_me: creating cache $cache_file" >&6;}
931   >$cache_file
932 fi
933
934 # Check that the precious variables saved in the cache have kept the same
935 # value.
936 ac_cache_corrupted=false
937 for ac_var in `(set) 2>&1 |
938                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
939   eval ac_old_set=\$ac_cv_env_${ac_var}_set
940   eval ac_new_set=\$ac_env_${ac_var}_set
941   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
942   eval ac_new_val="\$ac_env_${ac_var}_value"
943   case $ac_old_set,$ac_new_set in
944     set,)
945       { echo "$as_me:945: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
946 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
947       ac_cache_corrupted=: ;;
948     ,set)
949       { echo "$as_me:949: error: \`$ac_var' was not set in the previous run" >&5
950 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
951       ac_cache_corrupted=: ;;
952     ,);;
953     *)
954       if test "x$ac_old_val" != "x$ac_new_val"; then
955         { echo "$as_me:955: error: \`$ac_var' has changed since the previous run:" >&5
956 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
957         { echo "$as_me:957:   former value:  $ac_old_val" >&5
958 echo "$as_me:   former value:  $ac_old_val" >&2;}
959         { echo "$as_me:959:   current value: $ac_new_val" >&5
960 echo "$as_me:   current value: $ac_new_val" >&2;}
961         ac_cache_corrupted=:
962       fi;;
963   esac
964   # Pass precious variables to config.status.  It doesn't matter if
965   # we pass some twice (in addition to the command line arguments).
966   if test "$ac_new_set" = set; then
967     case $ac_new_val in
968     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
969       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
970       ac_configure_args="$ac_configure_args '$ac_arg'"
971       ;;
972     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
973        ;;
974     esac
975   fi
976 done
977 if $ac_cache_corrupted; then
978   { echo "$as_me:978: error: changes in the environment can compromise the build" >&5
979 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
980   { { echo "$as_me:980: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
981 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
982    { (exit 1); exit 1; }; }
983 fi
984
985 ac_ext=c
986 ac_cpp='$CPP $CPPFLAGS'
987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
990
991 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
992   *c*,-n*) ECHO_N= ECHO_C='
993 ' ECHO_T='      ' ;;
994   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
995   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
996 esac
997 echo "#! $SHELL" >conftest.sh
998 echo  "exit 0"   >>conftest.sh
999 chmod +x conftest.sh
1000 if { (echo "$as_me:1000: PATH=\".;.\"; conftest.sh") >&5
1001   (PATH=".;."; conftest.sh) 2>&5
1002   ac_status=$?
1003   echo "$as_me:1003: \$? = $ac_status" >&5
1004   (exit $ac_status); }; then
1005   ac_path_separator=';'
1006 else
1007   ac_path_separator=:
1008 fi
1009 PATH_SEPARATOR="$ac_path_separator"
1010 rm -f conftest.sh
1011
1012 ac_aux_dir=
1013 for ac_dir in ./support $srcdir/./support; do
1014   if test -f $ac_dir/install-sh; then
1015     ac_aux_dir=$ac_dir
1016     ac_install_sh="$ac_aux_dir/install-sh -c"
1017     break
1018   elif test -f $ac_dir/install.sh; then
1019     ac_aux_dir=$ac_dir
1020     ac_install_sh="$ac_aux_dir/install.sh -c"
1021     break
1022   elif test -f $ac_dir/shtool; then
1023     ac_aux_dir=$ac_dir
1024     ac_install_sh="$ac_aux_dir/shtool install -c"
1025     break
1026   fi
1027 done
1028 if test -z "$ac_aux_dir"; then
1029   { { echo "$as_me:1029: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1030 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1031    { (exit 1); exit 1; }; }
1032 fi
1033 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1034 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1035 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1036
1037 ac_config_headers="$ac_config_headers config.h"
1038
1039 BASHVERS=2.05a
1040
1041 # Make sure we can run config.sub.
1042 $ac_config_sub sun4 >/dev/null 2>&1 ||
1043   { { echo "$as_me:1043: error: cannot run $ac_config_sub" >&5
1044 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1045    { (exit 1); exit 1; }; }
1046
1047 echo "$as_me:1047: checking build system type" >&5
1048 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1049 if test "${ac_cv_build+set}" = set; then
1050   echo $ECHO_N "(cached) $ECHO_C" >&6
1051 else
1052   ac_cv_build_alias=$build_alias
1053 test -z "$ac_cv_build_alias" &&
1054   ac_cv_build_alias=`$ac_config_guess`
1055 test -z "$ac_cv_build_alias" &&
1056   { { echo "$as_me:1056: error: cannot guess build type; you must specify one" >&5
1057 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1058    { (exit 1); exit 1; }; }
1059 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1060   { { echo "$as_me:1060: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1061 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1062    { (exit 1); exit 1; }; }
1063
1064 fi
1065 echo "$as_me:1065: result: $ac_cv_build" >&5
1066 echo "${ECHO_T}$ac_cv_build" >&6
1067 build=$ac_cv_build
1068 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1071
1072 echo "$as_me:1072: checking host system type" >&5
1073 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1074 if test "${ac_cv_host+set}" = set; then
1075   echo $ECHO_N "(cached) $ECHO_C" >&6
1076 else
1077   ac_cv_host_alias=$host_alias
1078 test -z "$ac_cv_host_alias" &&
1079   ac_cv_host_alias=$ac_cv_build_alias
1080 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1081   { { echo "$as_me:1081: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1082 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1083    { (exit 1); exit 1; }; }
1084
1085 fi
1086 echo "$as_me:1086: result: $ac_cv_host" >&5
1087 echo "${ECHO_T}$ac_cv_host" >&6
1088 host=$ac_cv_host
1089 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1090 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1091 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1092
1093 opt_bash_malloc=yes
1094 opt_purify=no
1095 opt_purecov=no
1096 opt_afs=no
1097 opt_curses=no
1098 opt_with_installed_readline=no
1099
1100 #htmldir=
1101
1102 case "${host_cpu}-${host_os}" in
1103 alpha*-*)       opt_bash_malloc=no ;;   # alpha running osf/1 or linux
1104 *[Cc]ray*-*)    opt_bash_malloc=no ;;   # Crays
1105 *-osf1*)        opt_bash_malloc=no ;;   # other osf/1 machines
1106 sparc-svr4*)    opt_bash_malloc=no ;;   # sparc SVR4, SVR4.2
1107 sparc-netbsd*)  opt_bash_malloc=no ;;   # needs 8-byte alignment
1108 mips-irix6*)    opt_bash_malloc=no ;;   # needs 8-byte alignment
1109 m68k-sysv)      opt_bash_malloc=no ;;   # fixes file descriptor leak in closedir
1110 sparc-linux*)   opt_bash_malloc=no ;;   # sparc running linux; requires ELF
1111 #*-freebsd*)    opt_bash_malloc=no ;;   # they claim it's better
1112 *-openbsd*)     opt_bash_malloc=no ;;   # they claim it needs eight-bit alignment
1113 *-aix*)         opt_bash_malloc=no ;;   # AIX machines
1114 *-nextstep*)    opt_bash_malloc=no ;;   # NeXT machines running NeXTstep
1115 *-macos*)       opt_bash_malloc=no ;;   # Apple MacOS X
1116 *-rhapsody*)    opt_bash_malloc=no ;;   # Apple Rhapsody (MacOS X)
1117 *-darwin*)      opt_bash_malloc=no ;;   # Apple Darwin (MacOS X)
1118 *-dgux*)        opt_bash_malloc=no ;;   # DG/UX machines
1119 *-qnx*)         opt_bash_malloc=no ;;   # QNX 4.2
1120 *-machten4)     opt_bash_malloc=no ;;   # MachTen 4.x
1121 *-bsdi2.1|*-bsdi3.?)    opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1122 *-beos*)        opt_bash_malloc=no ;;   # they say it's suitable
1123 *-cygwin*)      opt_bash_malloc=no ;;   # Cygnus's CYGWIN environment
1124 *-opennt*|*-interix*)   opt_bash_malloc=no ;;   # Interix, now owned by Microsoft
1125 esac
1126
1127 # Check whether --with-afs or --without-afs was given.
1128 if test "${with_afs+set}" = set; then
1129   withval="$with_afs"
1130   opt_afs=$withval
1131 fi;
1132
1133 # Check whether --with-bash-malloc or --without-bash-malloc was given.
1134 if test "${with_bash_malloc+set}" = set; then
1135   withval="$with_bash_malloc"
1136   opt_bash_malloc=$withval
1137 fi;
1138
1139 # Check whether --with-curses or --without-curses was given.
1140 if test "${with_curses+set}" = set; then
1141   withval="$with_curses"
1142   opt_curses=$withval
1143 fi;
1144
1145 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1146 if test "${with_gnu_malloc+set}" = set; then
1147   withval="$with_gnu_malloc"
1148   opt_bash_malloc=$withval
1149 fi;
1150
1151 # Check whether --with-installed-readline or --without-installed-readline was given.
1152 if test "${with_installed_readline+set}" = set; then
1153   withval="$with_installed_readline"
1154   opt_with_installed_readline=$withval
1155 fi;
1156
1157 # Check whether --with-purecov or --without-purecov was given.
1158 if test "${with_purecov+set}" = set; then
1159   withval="$with_purecov"
1160   opt_purecov=$withval
1161 fi;
1162
1163 # Check whether --with-purify or --without-purify was given.
1164 if test "${with_purify+set}" = set; then
1165   withval="$with_purify"
1166   opt_purify=$withval
1167 fi;
1168
1169 if test "$opt_bash_malloc" = yes; then
1170         MALLOC_TARGET=malloc
1171         MALLOC_SRC=malloc.c
1172
1173         MALLOC_LIB='-lmalloc'
1174         MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1175         MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1176         MALLOC_DEP='$(MALLOC_LIBRARY)'
1177
1178         cat >>confdefs.h <<\EOF
1179 #define USING_BASH_MALLOC 1
1180 EOF
1181
1182 else
1183         MALLOC_LIB=
1184         MALLOC_LIBRARY=
1185         MALLOC_LDFLAGS=
1186         MALLOC_DEP=
1187 fi
1188
1189 if test "$opt_purify" = yes; then
1190         PURIFY="purify "
1191 else
1192         PURIFY=
1193 fi
1194
1195 if test "$opt_purecov" = yes; then
1196         PURIFY="${PURIFY}purecov"
1197 fi
1198
1199 if test "$opt_afs" = yes; then
1200         cat >>confdefs.h <<\EOF
1201 #define AFS 1
1202 EOF
1203
1204 fi
1205
1206 if test "$opt_curses" = yes; then
1207         prefer_curses=yes
1208 fi
1209
1210 opt_minimal_config=no
1211
1212 opt_job_control=yes
1213 opt_alias=yes
1214 opt_readline=yes
1215 opt_history=yes
1216 opt_bang_history=yes
1217 opt_dirstack=yes
1218 opt_restricted=yes
1219 opt_process_subst=yes
1220 opt_prompt_decoding=yes
1221 opt_select=yes
1222 opt_help=yes
1223 opt_array_variables=yes
1224 opt_dparen_arith=yes
1225 opt_extended_glob=yes
1226 opt_brace_expansion=yes
1227 opt_disabled_builtins=no
1228 opt_command_timing=yes
1229 opt_xpg_echo=no
1230 opt_cond_command=yes
1231 opt_arith_for_command=yes
1232 opt_net_redirs=yes
1233 opt_progcomp=yes
1234 opt_largefile=yes
1235
1236 opt_static_link=no
1237 opt_profiling=no
1238
1239 # Check whether --enable-minimal-config or --disable-minimal-config was given.
1240 if test "${enable_minimal_config+set}" = set; then
1241   enableval="$enable_minimal_config"
1242   opt_minimal_config=$enableval
1243 fi;
1244
1245 if test $opt_minimal_config = yes; then
1246         opt_job_control=no opt_alias=no opt_readline=no
1247         opt_history=no opt_bang_history=no opt_dirstack=no
1248         opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1249         opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1250         opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
1251         opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
1252         opt_net_redirs=no opt_progcomp=no
1253 fi
1254
1255 # Check whether --enable-alias or --disable-alias was given.
1256 if test "${enable_alias+set}" = set; then
1257   enableval="$enable_alias"
1258   opt_alias=$enableval
1259 fi;
1260 # Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1261 if test "${enable_arith_for_command+set}" = set; then
1262   enableval="$enable_arith_for_command"
1263   opt_arith_for_command=$enableval
1264 fi;
1265 # Check whether --enable-array-variables or --disable-array-variables was given.
1266 if test "${enable_array_variables+set}" = set; then
1267   enableval="$enable_array_variables"
1268   opt_array_variables=$enableval
1269 fi;
1270 # Check whether --enable-bang-history or --disable-bang-history was given.
1271 if test "${enable_bang_history+set}" = set; then
1272   enableval="$enable_bang_history"
1273   opt_bang_history=$enableval
1274 fi;
1275 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1276 if test "${enable_brace_expansion+set}" = set; then
1277   enableval="$enable_brace_expansion"
1278   opt_brace_expansion=$enableval
1279 fi;
1280 # Check whether --enable-command-timing or --disable-command-timing was given.
1281 if test "${enable_command_timing+set}" = set; then
1282   enableval="$enable_command_timing"
1283   opt_command_timing=$enableval
1284 fi;
1285 # Check whether --enable-cond-command or --disable-cond-command was given.
1286 if test "${enable_cond_command+set}" = set; then
1287   enableval="$enable_cond_command"
1288   opt_cond_command=$enableval
1289 fi;
1290 # Check whether --enable-directory-stack or --disable-directory-stack was given.
1291 if test "${enable_directory_stack+set}" = set; then
1292   enableval="$enable_directory_stack"
1293   opt_dirstack=$enableval
1294 fi;
1295 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1296 if test "${enable_disabled_builtins+set}" = set; then
1297   enableval="$enable_disabled_builtins"
1298   opt_disabled_builtins=$enableval
1299 fi;
1300 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1301 if test "${enable_dparen_arithmetic+set}" = set; then
1302   enableval="$enable_dparen_arithmetic"
1303   opt_dparen_arith=$enableval
1304 fi;
1305 # Check whether --enable-extended-glob or --disable-extended-glob was given.
1306 if test "${enable_extended_glob+set}" = set; then
1307   enableval="$enable_extended_glob"
1308   opt_extended_glob=$enableval
1309 fi;
1310 # Check whether --enable-help-builtin or --disable-help-builtin was given.
1311 if test "${enable_help_builtin+set}" = set; then
1312   enableval="$enable_help_builtin"
1313   opt_help=$enableval
1314 fi;
1315 # Check whether --enable-history or --disable-history was given.
1316 if test "${enable_history+set}" = set; then
1317   enableval="$enable_history"
1318   opt_history=$enableval
1319 fi;
1320 # Check whether --enable-job-control or --disable-job-control was given.
1321 if test "${enable_job_control+set}" = set; then
1322   enableval="$enable_job_control"
1323   opt_job_control=$enableval
1324 fi;
1325 # Check whether --enable-largefile or --disable-largefile was given.
1326 if test "${enable_largefile+set}" = set; then
1327   enableval="$enable_largefile"
1328   opt_largefile=$enableval
1329 fi;
1330 # Check whether --enable-net-redirections or --disable-net-redirections was given.
1331 if test "${enable_net_redirections+set}" = set; then
1332   enableval="$enable_net_redirections"
1333   opt_net_redirs=$enableval
1334 fi;
1335 # Check whether --enable-process-substitution or --disable-process-substitution was given.
1336 if test "${enable_process_substitution+set}" = set; then
1337   enableval="$enable_process_substitution"
1338   opt_process_subst=$enableval
1339 fi;
1340 # Check whether --enable-progcomp or --disable-progcomp was given.
1341 if test "${enable_progcomp+set}" = set; then
1342   enableval="$enable_progcomp"
1343   opt_progcomp=$enableval
1344 fi;
1345 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1346 if test "${enable_prompt_string_decoding+set}" = set; then
1347   enableval="$enable_prompt_string_decoding"
1348   opt_prompt_decoding=$enableval
1349 fi;
1350 # Check whether --enable-readline or --disable-readline was given.
1351 if test "${enable_readline+set}" = set; then
1352   enableval="$enable_readline"
1353   opt_readline=$enableval
1354 fi;
1355 # Check whether --enable-restricted or --disable-restricted was given.
1356 if test "${enable_restricted+set}" = set; then
1357   enableval="$enable_restricted"
1358   opt_restricted=$enableval
1359 fi;
1360 # Check whether --enable-select or --disable-select was given.
1361 if test "${enable_select+set}" = set; then
1362   enableval="$enable_select"
1363   opt_select=$enableval
1364 fi;
1365 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1366 if test "${enable_usg_echo_default+set}" = set; then
1367   enableval="$enable_usg_echo_default"
1368   opt_xpg_echo=$enableval
1369 fi;
1370 # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1371 if test "${enable_xpg_echo_default+set}" = set; then
1372   enableval="$enable_xpg_echo_default"
1373   opt_xpg_echo=$enableval
1374 fi;
1375
1376 # Check whether --enable-profiling or --disable-profiling was given.
1377 if test "${enable_profiling+set}" = set; then
1378   enableval="$enable_profiling"
1379   opt_profiling=$enableval
1380 fi;
1381 # Check whether --enable-static-link or --disable-static-link was given.
1382 if test "${enable_static_link+set}" = set; then
1383   enableval="$enable_static_link"
1384   opt_static_link=$enableval
1385 fi;
1386
1387 if test $opt_alias = yes; then
1388 cat >>confdefs.h <<\EOF
1389 #define ALIAS 1
1390 EOF
1391
1392 fi
1393 if test $opt_dirstack = yes; then
1394 cat >>confdefs.h <<\EOF
1395 #define PUSHD_AND_POPD 1
1396 EOF
1397
1398 fi
1399 if test $opt_restricted = yes; then
1400 cat >>confdefs.h <<\EOF
1401 #define RESTRICTED_SHELL 1
1402 EOF
1403
1404 fi
1405 if test $opt_process_subst = yes; then
1406 cat >>confdefs.h <<\EOF
1407 #define PROCESS_SUBSTITUTION 1
1408 EOF
1409
1410 fi
1411 if test $opt_prompt_decoding = yes; then
1412 cat >>confdefs.h <<\EOF
1413 #define PROMPT_STRING_DECODE 1
1414 EOF
1415
1416 fi
1417 if test $opt_select = yes; then
1418 cat >>confdefs.h <<\EOF
1419 #define SELECT_COMMAND 1
1420 EOF
1421
1422 fi
1423 if test $opt_help = yes; then
1424 cat >>confdefs.h <<\EOF
1425 #define HELP_BUILTIN 1
1426 EOF
1427
1428 fi
1429 if test $opt_array_variables = yes; then
1430 cat >>confdefs.h <<\EOF
1431 #define ARRAY_VARS 1
1432 EOF
1433
1434 fi
1435 if test $opt_dparen_arith = yes; then
1436 cat >>confdefs.h <<\EOF
1437 #define DPAREN_ARITHMETIC 1
1438 EOF
1439
1440 fi
1441 if test $opt_brace_expansion = yes; then
1442 cat >>confdefs.h <<\EOF
1443 #define BRACE_EXPANSION 1
1444 EOF
1445
1446 fi
1447 if test $opt_disabled_builtins = yes; then
1448 cat >>confdefs.h <<\EOF
1449 #define DISABLED_BUILTINS 1
1450 EOF
1451
1452 fi
1453 if test $opt_command_timing = yes; then
1454 cat >>confdefs.h <<\EOF
1455 #define COMMAND_TIMING 1
1456 EOF
1457
1458 fi
1459 if test $opt_xpg_echo = yes ; then
1460 cat >>confdefs.h <<\EOF
1461 #define DEFAULT_ECHO_TO_XPG 1
1462 EOF
1463
1464 fi
1465 if test $opt_extended_glob = yes ; then
1466 cat >>confdefs.h <<\EOF
1467 #define EXTENDED_GLOB 1
1468 EOF
1469
1470 fi
1471 if test $opt_cond_command = yes ; then
1472 cat >>confdefs.h <<\EOF
1473 #define COND_COMMAND 1
1474 EOF
1475
1476 fi
1477 if test $opt_arith_for_command = yes; then
1478 cat >>confdefs.h <<\EOF
1479 #define ARITH_FOR_COMMAND 1
1480 EOF
1481
1482 fi
1483 if test $opt_net_redirs = yes; then
1484 cat >>confdefs.h <<\EOF
1485 #define NETWORK_REDIRECTIONS 1
1486 EOF
1487
1488 fi
1489 if test $opt_progcomp = yes; then
1490 cat >>confdefs.h <<\EOF
1491 #define PROGRAMMABLE_COMPLETION 1
1492 EOF
1493
1494 fi
1495
1496 if test "$opt_minimal_config" = yes; then
1497         TESTSCRIPT=run-minimal
1498 else
1499         TESTSCRIPT=run-all
1500 fi
1501
1502 echo ""
1503 echo "Beginning configuration for bash-$BASHVERS for ${host_cpu}-${host_vendor}-${host_os}"
1504 echo ""
1505
1506 ac_ext=c
1507 ac_cpp='$CPP $CPPFLAGS'
1508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511 if test -n "$ac_tool_prefix"; then
1512   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1514 echo "$as_me:1514: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_CC+set}" = set; then
1517   echo $ECHO_N "(cached) $ECHO_C" >&6
1518 else
1519   if test -n "$CC"; then
1520   ac_cv_prog_CC="$CC" # Let the user override the test.
1521 else
1522   ac_save_IFS=$IFS; IFS=$ac_path_separator
1523 ac_dummy="$PATH"
1524 for ac_dir in $ac_dummy; do
1525   IFS=$ac_save_IFS
1526   test -z "$ac_dir" && ac_dir=.
1527   $as_executable_p "$ac_dir/$ac_word" || continue
1528 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1529 echo "$as_me:1529: found $ac_dir/$ac_word" >&5
1530 break
1531 done
1532
1533 fi
1534 fi
1535 CC=$ac_cv_prog_CC
1536 if test -n "$CC"; then
1537   echo "$as_me:1537: result: $CC" >&5
1538 echo "${ECHO_T}$CC" >&6
1539 else
1540   echo "$as_me:1540: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1542 fi
1543
1544 fi
1545 if test -z "$ac_cv_prog_CC"; then
1546   ac_ct_CC=$CC
1547   # Extract the first word of "gcc", so it can be a program name with args.
1548 set dummy gcc; ac_word=$2
1549 echo "$as_me:1549: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1552   echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554   if test -n "$ac_ct_CC"; then
1555   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1556 else
1557   ac_save_IFS=$IFS; IFS=$ac_path_separator
1558 ac_dummy="$PATH"
1559 for ac_dir in $ac_dummy; do
1560   IFS=$ac_save_IFS
1561   test -z "$ac_dir" && ac_dir=.
1562   $as_executable_p "$ac_dir/$ac_word" || continue
1563 ac_cv_prog_ac_ct_CC="gcc"
1564 echo "$as_me:1564: found $ac_dir/$ac_word" >&5
1565 break
1566 done
1567
1568 fi
1569 fi
1570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1571 if test -n "$ac_ct_CC"; then
1572   echo "$as_me:1572: result: $ac_ct_CC" >&5
1573 echo "${ECHO_T}$ac_ct_CC" >&6
1574 else
1575   echo "$as_me:1575: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1577 fi
1578
1579   CC=$ac_ct_CC
1580 else
1581   CC="$ac_cv_prog_CC"
1582 fi
1583
1584 if test -z "$CC"; then
1585   if test -n "$ac_tool_prefix"; then
1586   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1587 set dummy ${ac_tool_prefix}cc; ac_word=$2
1588 echo "$as_me:1588: checking for $ac_word" >&5
1589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1590 if test "${ac_cv_prog_CC+set}" = set; then
1591   echo $ECHO_N "(cached) $ECHO_C" >&6
1592 else
1593   if test -n "$CC"; then
1594   ac_cv_prog_CC="$CC" # Let the user override the test.
1595 else
1596   ac_save_IFS=$IFS; IFS=$ac_path_separator
1597 ac_dummy="$PATH"
1598 for ac_dir in $ac_dummy; do
1599   IFS=$ac_save_IFS
1600   test -z "$ac_dir" && ac_dir=.
1601   $as_executable_p "$ac_dir/$ac_word" || continue
1602 ac_cv_prog_CC="${ac_tool_prefix}cc"
1603 echo "$as_me:1603: found $ac_dir/$ac_word" >&5
1604 break
1605 done
1606
1607 fi
1608 fi
1609 CC=$ac_cv_prog_CC
1610 if test -n "$CC"; then
1611   echo "$as_me:1611: result: $CC" >&5
1612 echo "${ECHO_T}$CC" >&6
1613 else
1614   echo "$as_me:1614: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1616 fi
1617
1618 fi
1619 if test -z "$ac_cv_prog_CC"; then
1620   ac_ct_CC=$CC
1621   # Extract the first word of "cc", so it can be a program name with args.
1622 set dummy cc; ac_word=$2
1623 echo "$as_me:1623: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1626   echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628   if test -n "$ac_ct_CC"; then
1629   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1630 else
1631   ac_save_IFS=$IFS; IFS=$ac_path_separator
1632 ac_dummy="$PATH"
1633 for ac_dir in $ac_dummy; do
1634   IFS=$ac_save_IFS
1635   test -z "$ac_dir" && ac_dir=.
1636   $as_executable_p "$ac_dir/$ac_word" || continue
1637 ac_cv_prog_ac_ct_CC="cc"
1638 echo "$as_me:1638: found $ac_dir/$ac_word" >&5
1639 break
1640 done
1641
1642 fi
1643 fi
1644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1645 if test -n "$ac_ct_CC"; then
1646   echo "$as_me:1646: result: $ac_ct_CC" >&5
1647 echo "${ECHO_T}$ac_ct_CC" >&6
1648 else
1649   echo "$as_me:1649: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1651 fi
1652
1653   CC=$ac_ct_CC
1654 else
1655   CC="$ac_cv_prog_CC"
1656 fi
1657
1658 fi
1659 if test -z "$CC"; then
1660   # Extract the first word of "cc", so it can be a program name with args.
1661 set dummy cc; ac_word=$2
1662 echo "$as_me:1662: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_CC+set}" = set; then
1665   echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667   if test -n "$CC"; then
1668   ac_cv_prog_CC="$CC" # Let the user override the test.
1669 else
1670   ac_prog_rejected=no
1671   ac_save_IFS=$IFS; IFS=$ac_path_separator
1672 ac_dummy="$PATH"
1673 for ac_dir in $ac_dummy; do
1674   IFS=$ac_save_IFS
1675   test -z "$ac_dir" && ac_dir=.
1676   $as_executable_p "$ac_dir/$ac_word" || continue
1677 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1678   ac_prog_rejected=yes
1679   continue
1680 fi
1681 ac_cv_prog_CC="cc"
1682 echo "$as_me:1682: found $ac_dir/$ac_word" >&5
1683 break
1684 done
1685
1686 if test $ac_prog_rejected = yes; then
1687   # We found a bogon in the path, so make sure we never use it.
1688   set dummy $ac_cv_prog_CC
1689   shift
1690   if test $# != 0; then
1691     # We chose a different compiler from the bogus one.
1692     # However, it has the same basename, so the bogon will be chosen
1693     # first if we set CC to just the basename; use the full file name.
1694     shift
1695     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1696     shift
1697     ac_cv_prog_CC="$@"
1698   fi
1699 fi
1700 fi
1701 fi
1702 CC=$ac_cv_prog_CC
1703 if test -n "$CC"; then
1704   echo "$as_me:1704: result: $CC" >&5
1705 echo "${ECHO_T}$CC" >&6
1706 else
1707   echo "$as_me:1707: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1709 fi
1710
1711 fi
1712 if test -z "$CC"; then
1713   if test -n "$ac_tool_prefix"; then
1714   for ac_prog in cl
1715   do
1716     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1718 echo "$as_me:1718: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721   echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723   if test -n "$CC"; then
1724   ac_cv_prog_CC="$CC" # Let the user override the test.
1725 else
1726   ac_save_IFS=$IFS; IFS=$ac_path_separator
1727 ac_dummy="$PATH"
1728 for ac_dir in $ac_dummy; do
1729   IFS=$ac_save_IFS
1730   test -z "$ac_dir" && ac_dir=.
1731   $as_executable_p "$ac_dir/$ac_word" || continue
1732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1733 echo "$as_me:1733: found $ac_dir/$ac_word" >&5
1734 break
1735 done
1736
1737 fi
1738 fi
1739 CC=$ac_cv_prog_CC
1740 if test -n "$CC"; then
1741   echo "$as_me:1741: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1743 else
1744   echo "$as_me:1744: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1746 fi
1747
1748     test -n "$CC" && break
1749   done
1750 fi
1751 if test -z "$CC"; then
1752   ac_ct_CC=$CC
1753   for ac_prog in cl
1754 do
1755   # Extract the first word of "$ac_prog", so it can be a program name with args.
1756 set dummy $ac_prog; ac_word=$2
1757 echo "$as_me:1757: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1760   echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762   if test -n "$ac_ct_CC"; then
1763   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1764 else
1765   ac_save_IFS=$IFS; IFS=$ac_path_separator
1766 ac_dummy="$PATH"
1767 for ac_dir in $ac_dummy; do
1768   IFS=$ac_save_IFS
1769   test -z "$ac_dir" && ac_dir=.
1770   $as_executable_p "$ac_dir/$ac_word" || continue
1771 ac_cv_prog_ac_ct_CC="$ac_prog"
1772 echo "$as_me:1772: found $ac_dir/$ac_word" >&5
1773 break
1774 done
1775
1776 fi
1777 fi
1778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1779 if test -n "$ac_ct_CC"; then
1780   echo "$as_me:1780: result: $ac_ct_CC" >&5
1781 echo "${ECHO_T}$ac_ct_CC" >&6
1782 else
1783   echo "$as_me:1783: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1785 fi
1786
1787   test -n "$ac_ct_CC" && break
1788 done
1789
1790   CC=$ac_ct_CC
1791 fi
1792
1793 fi
1794
1795 test -z "$CC" && { { echo "$as_me:1795: error: no acceptable cc found in \$PATH" >&5
1796 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1797    { (exit 1); exit 1; }; }
1798
1799 # Provide some information about the compiler.
1800 echo "$as_me:1800:" \
1801      "checking for C compiler version" >&5
1802 ac_compiler=`set X $ac_compile; echo $2`
1803 { (eval echo "$as_me:1803: \"$ac_compiler --version </dev/null >&5\"") >&5
1804   (eval $ac_compiler --version </dev/null >&5) 2>&5
1805   ac_status=$?
1806   echo "$as_me:1806: \$? = $ac_status" >&5
1807   (exit $ac_status); }
1808 { (eval echo "$as_me:1808: \"$ac_compiler -v </dev/null >&5\"") >&5
1809   (eval $ac_compiler -v </dev/null >&5) 2>&5
1810   ac_status=$?
1811   echo "$as_me:1811: \$? = $ac_status" >&5
1812   (exit $ac_status); }
1813 { (eval echo "$as_me:1813: \"$ac_compiler -V </dev/null >&5\"") >&5
1814   (eval $ac_compiler -V </dev/null >&5) 2>&5
1815   ac_status=$?
1816   echo "$as_me:1816: \$? = $ac_status" >&5
1817   (exit $ac_status); }
1818
1819 cat >conftest.$ac_ext <<_ACEOF
1820 #line 1820 "configure"
1821 #include "confdefs.h"
1822
1823 int
1824 main ()
1825 {
1826
1827   ;
1828   return 0;
1829 }
1830 _ACEOF
1831 ac_clean_files_save=$ac_clean_files
1832 ac_clean_files="$ac_clean_files a.out a.exe"
1833 # Try to create an executable without -o first, disregard a.out.
1834 # It will help us diagnose broken compilers, and finding out an intuition
1835 # of exeext.
1836 echo "$as_me:1836: checking for C compiler default output" >&5
1837 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1838 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1839 if { (eval echo "$as_me:1839: \"$ac_link_default\"") >&5
1840   (eval $ac_link_default) 2>&5
1841   ac_status=$?
1842   echo "$as_me:1842: \$? = $ac_status" >&5
1843   (exit $ac_status); }; then
1844   # Find the output, starting from the most likely.  This scheme is
1845 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1846 # resort.
1847 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1848                 ls a.out conftest 2>/dev/null;
1849                 ls a.* conftest.* 2>/dev/null`; do
1850   case $ac_file in
1851     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1852     a.out ) # We found the default executable, but exeext='' is most
1853             # certainly right.
1854             break;;
1855     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1856           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1857           export ac_cv_exeext
1858           break;;
1859     * ) break;;
1860   esac
1861 done
1862 else
1863   echo "$as_me: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1865 { { echo "$as_me:1865: error: C compiler cannot create executables" >&5
1866 echo "$as_me: error: C compiler cannot create executables" >&2;}
1867    { (exit 77); exit 77; }; }
1868 fi
1869
1870 ac_exeext=$ac_cv_exeext
1871 echo "$as_me:1871: result: $ac_file" >&5
1872 echo "${ECHO_T}$ac_file" >&6
1873
1874 # Check the compiler produces executables we can run.  If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:1876: checking whether the C compiler works" >&5
1877 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1878 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1879 # If not cross compiling, check that we can run a simple program.
1880 if test "$cross_compiling" != yes; then
1881   if { ac_try='./$ac_file'
1882   { (eval echo "$as_me:1882: \"$ac_try\"") >&5
1883   (eval $ac_try) 2>&5
1884   ac_status=$?
1885   echo "$as_me:1885: \$? = $ac_status" >&5
1886   (exit $ac_status); }; }; then
1887     cross_compiling=no
1888   else
1889     if test "$cross_compiling" = maybe; then
1890         cross_compiling=yes
1891     else
1892         { { echo "$as_me:1892: error: cannot run C compiled programs.
1893 If you meant to cross compile, use \`--host'." >&5
1894 echo "$as_me: error: cannot run C compiled programs.
1895 If you meant to cross compile, use \`--host'." >&2;}
1896    { (exit 1); exit 1; }; }
1897     fi
1898   fi
1899 fi
1900 echo "$as_me:1900: result: yes" >&5
1901 echo "${ECHO_T}yes" >&6
1902
1903 rm -f a.out a.exe conftest$ac_cv_exeext
1904 ac_clean_files=$ac_clean_files_save
1905 # Check the compiler produces executables we can run.  If not, either
1906 # the compiler is broken, or we cross compile.
1907 echo "$as_me:1907: checking whether we are cross compiling" >&5
1908 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1909 echo "$as_me:1909: result: $cross_compiling" >&5
1910 echo "${ECHO_T}$cross_compiling" >&6
1911
1912 echo "$as_me:1912: checking for executable suffix" >&5
1913 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1914 if { (eval echo "$as_me:1914: \"$ac_link\"") >&5
1915   (eval $ac_link) 2>&5
1916   ac_status=$?
1917   echo "$as_me:1917: \$? = $ac_status" >&5
1918   (exit $ac_status); }; then
1919   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1920 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1921 # work properly (i.e., refer to `conftest.exe'), while it won't with
1922 # `rm'.
1923 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1924   case $ac_file in
1925     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1926     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1927           export ac_cv_exeext
1928           break;;
1929     * ) break;;
1930   esac
1931 done
1932 else
1933   { { echo "$as_me:1933: error: cannot compute EXEEXT: cannot compile and link" >&5
1934 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1935    { (exit 1); exit 1; }; }
1936 fi
1937
1938 rm -f conftest$ac_cv_exeext
1939 echo "$as_me:1939: result: $ac_cv_exeext" >&5
1940 echo "${ECHO_T}$ac_cv_exeext" >&6
1941
1942 rm -f conftest.$ac_ext
1943 EXEEXT=$ac_cv_exeext
1944 ac_exeext=$EXEEXT
1945 echo "$as_me:1945: checking for object suffix" >&5
1946 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1947 if test "${ac_cv_objext+set}" = set; then
1948   echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950   cat >conftest.$ac_ext <<_ACEOF
1951 #line 1951 "configure"
1952 #include "confdefs.h"
1953
1954 int
1955 main ()
1956 {
1957
1958   ;
1959   return 0;
1960 }
1961 _ACEOF
1962 rm -f conftest.o conftest.obj
1963 if { (eval echo "$as_me:1963: \"$ac_compile\"") >&5
1964   (eval $ac_compile) 2>&5
1965   ac_status=$?
1966   echo "$as_me:1966: \$? = $ac_status" >&5
1967   (exit $ac_status); }; then
1968   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1969   case $ac_file in
1970     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1971     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1972        break;;
1973   esac
1974 done
1975 else
1976   echo "$as_me: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1978 { { echo "$as_me:1978: error: cannot compute OBJEXT: cannot compile" >&5
1979 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1980    { (exit 1); exit 1; }; }
1981 fi
1982
1983 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1984 fi
1985 echo "$as_me:1985: result: $ac_cv_objext" >&5
1986 echo "${ECHO_T}$ac_cv_objext" >&6
1987 OBJEXT=$ac_cv_objext
1988 ac_objext=$OBJEXT
1989 echo "$as_me:1989: checking whether we are using the GNU C compiler" >&5
1990 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1991 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1992   echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994   cat >conftest.$ac_ext <<_ACEOF
1995 #line 1995 "configure"
1996 #include "confdefs.h"
1997
1998 int
1999 main ()
2000 {
2001 #ifndef __GNUC__
2002        choke me
2003 #endif
2004
2005   ;
2006   return 0;
2007 }
2008 _ACEOF
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:2010: \"$ac_compile\"") >&5
2011   (eval $ac_compile) 2>&5
2012   ac_status=$?
2013   echo "$as_me:2013: \$? = $ac_status" >&5
2014   (exit $ac_status); } &&
2015          { ac_try='test -s conftest.$ac_objext'
2016   { (eval echo "$as_me:2016: \"$ac_try\"") >&5
2017   (eval $ac_try) 2>&5
2018   ac_status=$?
2019   echo "$as_me:2019: \$? = $ac_status" >&5
2020   (exit $ac_status); }; }; then
2021   ac_compiler_gnu=yes
2022 else
2023   echo "$as_me: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2025 ac_compiler_gnu=no
2026 fi
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2028 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2029
2030 fi
2031 echo "$as_me:2031: result: $ac_cv_c_compiler_gnu" >&5
2032 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2033 GCC=`test $ac_compiler_gnu = yes && echo yes`
2034 ac_test_CFLAGS=${CFLAGS+set}
2035 ac_save_CFLAGS=$CFLAGS
2036 CFLAGS="-g"
2037 echo "$as_me:2037: checking whether $CC accepts -g" >&5
2038 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2039 if test "${ac_cv_prog_cc_g+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   cat >conftest.$ac_ext <<_ACEOF
2043 #line 2043 "configure"
2044 #include "confdefs.h"
2045
2046 int
2047 main ()
2048 {
2049
2050   ;
2051   return 0;
2052 }
2053 _ACEOF
2054 rm -f conftest.$ac_objext
2055 if { (eval echo "$as_me:2055: \"$ac_compile\"") >&5
2056   (eval $ac_compile) 2>&5
2057   ac_status=$?
2058   echo "$as_me:2058: \$? = $ac_status" >&5
2059   (exit $ac_status); } &&
2060          { ac_try='test -s conftest.$ac_objext'
2061   { (eval echo "$as_me:2061: \"$ac_try\"") >&5
2062   (eval $ac_try) 2>&5
2063   ac_status=$?
2064   echo "$as_me:2064: \$? = $ac_status" >&5
2065   (exit $ac_status); }; }; then
2066   ac_cv_prog_cc_g=yes
2067 else
2068   echo "$as_me: failed program was:" >&5
2069 cat conftest.$ac_ext >&5
2070 ac_cv_prog_cc_g=no
2071 fi
2072 rm -f conftest.$ac_objext conftest.$ac_ext
2073 fi
2074 echo "$as_me:2074: result: $ac_cv_prog_cc_g" >&5
2075 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2076 if test "$ac_test_CFLAGS" = set; then
2077   CFLAGS=$ac_save_CFLAGS
2078 elif test $ac_cv_prog_cc_g = yes; then
2079   if test "$GCC" = yes; then
2080     CFLAGS="-g -O2"
2081   else
2082     CFLAGS="-g"
2083   fi
2084 else
2085   if test "$GCC" = yes; then
2086     CFLAGS="-O2"
2087   else
2088     CFLAGS=
2089   fi
2090 fi
2091 # Some people use a C++ compiler to compile C.  Since we use `exit',
2092 # in C++ we need to declare it.  In case someone uses the same compiler
2093 # for both compiling C and C++ we need to have the C++ compiler decide
2094 # the declaration of exit, since it's the most demanding environment.
2095 cat >conftest.$ac_ext <<_ACEOF
2096 #ifndef __cplusplus
2097   choke me
2098 #endif
2099 _ACEOF
2100 rm -f conftest.$ac_objext
2101 if { (eval echo "$as_me:2101: \"$ac_compile\"") >&5
2102   (eval $ac_compile) 2>&5
2103   ac_status=$?
2104   echo "$as_me:2104: \$? = $ac_status" >&5
2105   (exit $ac_status); } &&
2106          { ac_try='test -s conftest.$ac_objext'
2107   { (eval echo "$as_me:2107: \"$ac_try\"") >&5
2108   (eval $ac_try) 2>&5
2109   ac_status=$?
2110   echo "$as_me:2110: \$? = $ac_status" >&5
2111   (exit $ac_status); }; }; then
2112   for ac_declaration in \
2113    ''\
2114    '#include <stdlib.h>' \
2115    'extern "C" void std::exit (int) throw (); using std::exit;' \
2116    'extern "C" void std::exit (int); using std::exit;' \
2117    'extern "C" void exit (int) throw ();' \
2118    'extern "C" void exit (int);' \
2119    'void exit (int);'
2120 do
2121   cat >conftest.$ac_ext <<_ACEOF
2122 #line 2122 "configure"
2123 #include "confdefs.h"
2124 #include <stdlib.h>
2125 $ac_declaration
2126 int
2127 main ()
2128 {
2129 exit (42);
2130   ;
2131   return 0;
2132 }
2133 _ACEOF
2134 rm -f conftest.$ac_objext
2135 if { (eval echo "$as_me:2135: \"$ac_compile\"") >&5
2136   (eval $ac_compile) 2>&5
2137   ac_status=$?
2138   echo "$as_me:2138: \$? = $ac_status" >&5
2139   (exit $ac_status); } &&
2140          { ac_try='test -s conftest.$ac_objext'
2141   { (eval echo "$as_me:2141: \"$ac_try\"") >&5
2142   (eval $ac_try) 2>&5
2143   ac_status=$?
2144   echo "$as_me:2144: \$? = $ac_status" >&5
2145   (exit $ac_status); }; }; then
2146   :
2147 else
2148   echo "$as_me: failed program was:" >&5
2149 cat conftest.$ac_ext >&5
2150 continue
2151 fi
2152 rm -f conftest.$ac_objext conftest.$ac_ext
2153   cat >conftest.$ac_ext <<_ACEOF
2154 #line 2154 "configure"
2155 #include "confdefs.h"
2156 $ac_declaration
2157 int
2158 main ()
2159 {
2160 exit (42);
2161   ;
2162   return 0;
2163 }
2164 _ACEOF
2165 rm -f conftest.$ac_objext
2166 if { (eval echo "$as_me:2166: \"$ac_compile\"") >&5
2167   (eval $ac_compile) 2>&5
2168   ac_status=$?
2169   echo "$as_me:2169: \$? = $ac_status" >&5
2170   (exit $ac_status); } &&
2171          { ac_try='test -s conftest.$ac_objext'
2172   { (eval echo "$as_me:2172: \"$ac_try\"") >&5
2173   (eval $ac_try) 2>&5
2174   ac_status=$?
2175   echo "$as_me:2175: \$? = $ac_status" >&5
2176   (exit $ac_status); }; }; then
2177   break
2178 else
2179   echo "$as_me: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2181 fi
2182 rm -f conftest.$ac_objext conftest.$ac_ext
2183 done
2184 rm -f conftest*
2185 if test -n "$ac_declaration"; then
2186   echo '#ifdef __cplusplus' >>confdefs.h
2187   echo $ac_declaration      >>confdefs.h
2188   echo '#endif'             >>confdefs.h
2189 fi
2190
2191 else
2192   echo "$as_me: failed program was:" >&5
2193 cat conftest.$ac_ext >&5
2194 fi
2195 rm -f conftest.$ac_objext conftest.$ac_ext
2196 ac_ext=c
2197 ac_cpp='$CPP $CPPFLAGS'
2198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2201
2202 echo "$as_me:2202: checking for POSIXized ISC" >&5
2203 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2204 if test -d /etc/conf/kconfig.d &&
2205    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2206 then
2207   echo "$as_me:2207: result: yes" >&5
2208 echo "${ECHO_T}yes" >&6
2209   ISC=yes # If later tests want to check for ISC.
2210
2211 cat >>confdefs.h <<\EOF
2212 #define _POSIX_SOURCE 1
2213 EOF
2214
2215   if test "$GCC" = yes; then
2216     CC="$CC -posix"
2217   else
2218     CC="$CC -Xp"
2219   fi
2220 else
2221   echo "$as_me:2221: result: no" >&5
2222 echo "${ECHO_T}no" >&6
2223   ISC=
2224 fi
2225
2226 ac_ext=c
2227 ac_cpp='$CPP $CPPFLAGS'
2228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231 echo "$as_me:2231: checking how to run the C preprocessor" >&5
2232 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2233 # On Suns, sometimes $CPP names a directory.
2234 if test -n "$CPP" && test -d "$CPP"; then
2235   CPP=
2236 fi
2237 if test -z "$CPP"; then
2238   if test "${ac_cv_prog_CPP+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241       # Double quotes because CPP needs to be expanded
2242     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2243     do
2244       ac_preproc_ok=false
2245 for ac_c_preproc_warn_flag in '' yes
2246 do
2247   # Use a header file that comes with gcc, so configuring glibc
2248   # with a fresh cross-compiler works.
2249   # On the NeXT, cc -E runs the code through the compiler's parser,
2250   # not just through cpp. "Syntax error" is here to catch this case.
2251   cat >conftest.$ac_ext <<_ACEOF
2252 #line 2252 "configure"
2253 #include "confdefs.h"
2254 #include <assert.h>
2255                      Syntax error
2256 _ACEOF
2257 if { (eval echo "$as_me:2257: \"$ac_cpp conftest.$ac_ext\"") >&5
2258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2259   ac_status=$?
2260   egrep -v '^ *\+' conftest.er1 >conftest.err
2261   rm -f conftest.er1
2262   cat conftest.err >&5
2263   echo "$as_me:2263: \$? = $ac_status" >&5
2264   (exit $ac_status); } >/dev/null; then
2265   if test -s conftest.err; then
2266     ac_cpp_err=$ac_c_preproc_warn_flag
2267   else
2268     ac_cpp_err=
2269   fi
2270 else
2271   ac_cpp_err=yes
2272 fi
2273 if test -z "$ac_cpp_err"; then
2274   :
2275 else
2276   echo "$as_me: failed program was:" >&5
2277   cat conftest.$ac_ext >&5
2278   # Broken: fails on valid input.
2279 continue
2280 fi
2281 rm -f conftest.err conftest.$ac_ext
2282
2283   # OK, works on sane cases.  Now check whether non-existent headers
2284   # can be detected and how.
2285   cat >conftest.$ac_ext <<_ACEOF
2286 #line 2286 "configure"
2287 #include "confdefs.h"
2288 #include <ac_nonexistent.h>
2289 _ACEOF
2290 if { (eval echo "$as_me:2290: \"$ac_cpp conftest.$ac_ext\"") >&5
2291   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2292   ac_status=$?
2293   egrep -v '^ *\+' conftest.er1 >conftest.err
2294   rm -f conftest.er1
2295   cat conftest.err >&5
2296   echo "$as_me:2296: \$? = $ac_status" >&5
2297   (exit $ac_status); } >/dev/null; then
2298   if test -s conftest.err; then
2299     ac_cpp_err=$ac_c_preproc_warn_flag
2300   else
2301     ac_cpp_err=
2302   fi
2303 else
2304   ac_cpp_err=yes
2305 fi
2306 if test -z "$ac_cpp_err"; then
2307   # Broken: success on invalid input.
2308 continue
2309 else
2310   echo "$as_me: failed program was:" >&5
2311   cat conftest.$ac_ext >&5
2312   # Passes both tests.
2313 ac_preproc_ok=:
2314 break
2315 fi
2316 rm -f conftest.err conftest.$ac_ext
2317
2318 done
2319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2320 rm -f conftest.err conftest.$ac_ext
2321 if $ac_preproc_ok; then
2322   break
2323 fi
2324
2325     done
2326     ac_cv_prog_CPP=$CPP
2327
2328 fi
2329   CPP=$ac_cv_prog_CPP
2330 else
2331   ac_cv_prog_CPP=$CPP
2332 fi
2333 echo "$as_me:2333: result: $CPP" >&5
2334 echo "${ECHO_T}$CPP" >&6
2335 ac_preproc_ok=false
2336 for ac_c_preproc_warn_flag in '' yes
2337 do
2338   # Use a header file that comes with gcc, so configuring glibc
2339   # with a fresh cross-compiler works.
2340   # On the NeXT, cc -E runs the code through the compiler's parser,
2341   # not just through cpp. "Syntax error" is here to catch this case.
2342   cat >conftest.$ac_ext <<_ACEOF
2343 #line 2343 "configure"
2344 #include "confdefs.h"
2345 #include <assert.h>
2346                      Syntax error
2347 _ACEOF
2348 if { (eval echo "$as_me:2348: \"$ac_cpp conftest.$ac_ext\"") >&5
2349   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2350   ac_status=$?
2351   egrep -v '^ *\+' conftest.er1 >conftest.err
2352   rm -f conftest.er1
2353   cat conftest.err >&5
2354   echo "$as_me:2354: \$? = $ac_status" >&5
2355   (exit $ac_status); } >/dev/null; then
2356   if test -s conftest.err; then
2357     ac_cpp_err=$ac_c_preproc_warn_flag
2358   else
2359     ac_cpp_err=
2360   fi
2361 else
2362   ac_cpp_err=yes
2363 fi
2364 if test -z "$ac_cpp_err"; then
2365   :
2366 else
2367   echo "$as_me: failed program was:" >&5
2368   cat conftest.$ac_ext >&5
2369   # Broken: fails on valid input.
2370 continue
2371 fi
2372 rm -f conftest.err conftest.$ac_ext
2373
2374   # OK, works on sane cases.  Now check whether non-existent headers
2375   # can be detected and how.
2376   cat >conftest.$ac_ext <<_ACEOF
2377 #line 2377 "configure"
2378 #include "confdefs.h"
2379 #include <ac_nonexistent.h>
2380 _ACEOF
2381 if { (eval echo "$as_me:2381: \"$ac_cpp conftest.$ac_ext\"") >&5
2382   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383   ac_status=$?
2384   egrep -v '^ *\+' conftest.er1 >conftest.err
2385   rm -f conftest.er1
2386   cat conftest.err >&5
2387   echo "$as_me:2387: \$? = $ac_status" >&5
2388   (exit $ac_status); } >/dev/null; then
2389   if test -s conftest.err; then
2390     ac_cpp_err=$ac_c_preproc_warn_flag
2391   else
2392     ac_cpp_err=
2393   fi
2394 else
2395   ac_cpp_err=yes
2396 fi
2397 if test -z "$ac_cpp_err"; then
2398   # Broken: success on invalid input.
2399 continue
2400 else
2401   echo "$as_me: failed program was:" >&5
2402   cat conftest.$ac_ext >&5
2403   # Passes both tests.
2404 ac_preproc_ok=:
2405 break
2406 fi
2407 rm -f conftest.err conftest.$ac_ext
2408
2409 done
2410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2411 rm -f conftest.err conftest.$ac_ext
2412 if $ac_preproc_ok; then
2413   :
2414 else
2415   { { echo "$as_me:2415: error: C preprocessor \"$CPP\" fails sanity check" >&5
2416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2417    { (exit 1); exit 1; }; }
2418 fi
2419
2420 ac_ext=c
2421 ac_cpp='$CPP $CPPFLAGS'
2422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2425
2426 echo "$as_me:2426: checking for minix/config.h" >&5
2427 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2428 if test "${ac_cv_header_minix_config_h+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   cat >conftest.$ac_ext <<_ACEOF
2432 #line 2432 "configure"
2433 #include "confdefs.h"
2434 #include <minix/config.h>
2435 _ACEOF
2436 if { (eval echo "$as_me:2436: \"$ac_cpp conftest.$ac_ext\"") >&5
2437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2438   ac_status=$?
2439   egrep -v '^ *\+' conftest.er1 >conftest.err
2440   rm -f conftest.er1
2441   cat conftest.err >&5
2442   echo "$as_me:2442: \$? = $ac_status" >&5
2443   (exit $ac_status); } >/dev/null; then
2444   if test -s conftest.err; then
2445     ac_cpp_err=$ac_c_preproc_warn_flag
2446   else
2447     ac_cpp_err=
2448   fi
2449 else
2450   ac_cpp_err=yes
2451 fi
2452 if test -z "$ac_cpp_err"; then
2453   ac_cv_header_minix_config_h=yes
2454 else
2455   echo "$as_me: failed program was:" >&5
2456   cat conftest.$ac_ext >&5
2457   ac_cv_header_minix_config_h=no
2458 fi
2459 rm -f conftest.err conftest.$ac_ext
2460 fi
2461 echo "$as_me:2461: result: $ac_cv_header_minix_config_h" >&5
2462 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2463 if test $ac_cv_header_minix_config_h = yes; then
2464   MINIX=yes
2465 else
2466   MINIX=
2467 fi
2468
2469 if test "$MINIX" = yes; then
2470
2471 cat >>confdefs.h <<\EOF
2472 #define _POSIX_SOURCE 1
2473 EOF
2474
2475 cat >>confdefs.h <<\EOF
2476 #define _POSIX_1_SOURCE 2
2477 EOF
2478
2479 cat >>confdefs.h <<\EOF
2480 #define _MINIX 1
2481 EOF
2482
2483 fi
2484
2485 case $host_os in
2486   *cygwin* ) CYGWIN=yes;;
2487          * ) CYGWIN=no;;
2488 esac
2489
2490 case $host_os in
2491   *mingw32* ) MINGW32=yes;;
2492           * ) MINGW32=no;;
2493 esac
2494
2495 # Check whether --enable-largefile or --disable-largefile was given.
2496 if test "${enable_largefile+set}" = set; then
2497   enableval="$enable_largefile"
2498
2499 fi;
2500 if test "$enable_largefile" != no; then
2501
2502   echo "$as_me:2502: checking for special C compiler options needed for large files" >&5
2503 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2504 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   ac_cv_sys_largefile_CC=no
2508      if test "$GCC" != yes; then
2509        ac_save_CC=$CC
2510        while :; do
2511          # IRIX 6.2 and later do not support large files by default,
2512          # so use the C compiler's -n32 option if that helps.
2513          cat >conftest.$ac_ext <<_ACEOF
2514 #line 2514 "configure"
2515 #include "confdefs.h"
2516 #include <sys/types.h>
2517  /* Check that off_t can represent 2**63 - 1 correctly.
2518     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2519     since some C++ compilers masquerading as C compilers
2520     incorrectly reject 9223372036854775807.  */
2521 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2522   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2523                        && LARGE_OFF_T % 2147483647 == 1)
2524                       ? 1 : -1];
2525 int
2526 main ()
2527 {
2528
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533          rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:2534: \"$ac_compile\"") >&5
2535   (eval $ac_compile) 2>&5
2536   ac_status=$?
2537   echo "$as_me:2537: \$? = $ac_status" >&5
2538   (exit $ac_status); } &&
2539          { ac_try='test -s conftest.$ac_objext'
2540   { (eval echo "$as_me:2540: \"$ac_try\"") >&5
2541   (eval $ac_try) 2>&5
2542   ac_status=$?
2543   echo "$as_me:2543: \$? = $ac_status" >&5
2544   (exit $ac_status); }; }; then
2545   break
2546 else
2547   echo "$as_me: failed program was:" >&5
2548 cat conftest.$ac_ext >&5
2549 fi
2550 rm -f conftest.$ac_objext
2551          CC="$CC -n32"
2552          rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:2553: \"$ac_compile\"") >&5
2554   (eval $ac_compile) 2>&5
2555   ac_status=$?
2556   echo "$as_me:2556: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -s conftest.$ac_objext'
2559   { (eval echo "$as_me:2559: \"$ac_try\"") >&5
2560   (eval $ac_try) 2>&5
2561   ac_status=$?
2562   echo "$as_me:2562: \$? = $ac_status" >&5
2563   (exit $ac_status); }; }; then
2564   ac_cv_sys_largefile_CC=' -n32'; break
2565 else
2566   echo "$as_me: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2568 fi
2569 rm -f conftest.$ac_objext
2570          break
2571        done
2572        CC=$ac_save_CC
2573        rm -f conftest.$ac_ext
2574     fi
2575 fi
2576 echo "$as_me:2576: result: $ac_cv_sys_largefile_CC" >&5
2577 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2578   if test "$ac_cv_sys_largefile_CC" != no; then
2579     CC=$CC$ac_cv_sys_largefile_CC
2580   fi
2581
2582   echo "$as_me:2582: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2583 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2584 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587   while :; do
2588   ac_cv_sys_file_offset_bits=no
2589   cat >conftest.$ac_ext <<_ACEOF
2590 #line 2590 "configure"
2591 #include "confdefs.h"
2592 #include <sys/types.h>
2593  /* Check that off_t can represent 2**63 - 1 correctly.
2594     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2595     since some C++ compilers masquerading as C compilers
2596     incorrectly reject 9223372036854775807.  */
2597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2598   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2599                        && LARGE_OFF_T % 2147483647 == 1)
2600                       ? 1 : -1];
2601 int
2602 main ()
2603 {
2604
2605   ;
2606   return 0;
2607 }
2608 _ACEOF
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   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 conftest.$ac_ext
2627   cat >conftest.$ac_ext <<_ACEOF
2628 #line 2628 "configure"
2629 #include "confdefs.h"
2630 #define _FILE_OFFSET_BITS 64
2631 #include <sys/types.h>
2632  /* Check that off_t can represent 2**63 - 1 correctly.
2633     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2634     since some C++ compilers masquerading as C compilers
2635     incorrectly reject 9223372036854775807.  */
2636 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2637   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2638                        && LARGE_OFF_T % 2147483647 == 1)
2639                       ? 1 : -1];
2640 int
2641 main ()
2642 {
2643
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:2649: \"$ac_compile\"") >&5
2650   (eval $ac_compile) 2>&5
2651   ac_status=$?
2652   echo "$as_me:2652: \$? = $ac_status" >&5
2653   (exit $ac_status); } &&
2654          { ac_try='test -s conftest.$ac_objext'
2655   { (eval echo "$as_me:2655: \"$ac_try\"") >&5
2656   (eval $ac_try) 2>&5
2657   ac_status=$?
2658   echo "$as_me:2658: \$? = $ac_status" >&5
2659   (exit $ac_status); }; }; then
2660   ac_cv_sys_file_offset_bits=64; break
2661 else
2662   echo "$as_me: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2664 fi
2665 rm -f conftest.$ac_objext conftest.$ac_ext
2666   break
2667 done
2668 fi
2669 echo "$as_me:2669: result: $ac_cv_sys_file_offset_bits" >&5
2670 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2671 if test "$ac_cv_sys_file_offset_bits" != no; then
2672
2673 cat >>confdefs.h <<EOF
2674 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2675 EOF
2676
2677 fi
2678 rm -f conftest*
2679   echo "$as_me:2679: checking for _LARGE_FILES value needed for large files" >&5
2680 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2681 if test "${ac_cv_sys_large_files+set}" = set; then
2682   echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684   while :; do
2685   ac_cv_sys_large_files=no
2686   cat >conftest.$ac_ext <<_ACEOF
2687 #line 2687 "configure"
2688 #include "confdefs.h"
2689 #include <sys/types.h>
2690  /* Check that off_t can represent 2**63 - 1 correctly.
2691     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2692     since some C++ compilers masquerading as C compilers
2693     incorrectly reject 9223372036854775807.  */
2694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2695   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2696                        && LARGE_OFF_T % 2147483647 == 1)
2697                       ? 1 : -1];
2698 int
2699 main ()
2700 {
2701
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:2707: \"$ac_compile\"") >&5
2708   (eval $ac_compile) 2>&5
2709   ac_status=$?
2710   echo "$as_me:2710: \$? = $ac_status" >&5
2711   (exit $ac_status); } &&
2712          { ac_try='test -s conftest.$ac_objext'
2713   { (eval echo "$as_me:2713: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:2716: \$? = $ac_status" >&5
2717   (exit $ac_status); }; }; then
2718   break
2719 else
2720   echo "$as_me: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2722 fi
2723 rm -f conftest.$ac_objext conftest.$ac_ext
2724   cat >conftest.$ac_ext <<_ACEOF
2725 #line 2725 "configure"
2726 #include "confdefs.h"
2727 #define _LARGE_FILES 1
2728 #include <sys/types.h>
2729  /* Check that off_t can represent 2**63 - 1 correctly.
2730     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2731     since some C++ compilers masquerading as C compilers
2732     incorrectly reject 9223372036854775807.  */
2733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2734   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2735                        && LARGE_OFF_T % 2147483647 == 1)
2736                       ? 1 : -1];
2737 int
2738 main ()
2739 {
2740
2741   ;
2742   return 0;
2743 }
2744 _ACEOF
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:2746: \"$ac_compile\"") >&5
2747   (eval $ac_compile) 2>&5
2748   ac_status=$?
2749   echo "$as_me:2749: \$? = $ac_status" >&5
2750   (exit $ac_status); } &&
2751          { ac_try='test -s conftest.$ac_objext'
2752   { (eval echo "$as_me:2752: \"$ac_try\"") >&5
2753   (eval $ac_try) 2>&5
2754   ac_status=$?
2755   echo "$as_me:2755: \$? = $ac_status" >&5
2756   (exit $ac_status); }; }; then
2757   ac_cv_sys_large_files=1; break
2758 else
2759   echo "$as_me: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2761 fi
2762 rm -f conftest.$ac_objext conftest.$ac_ext
2763   break
2764 done
2765 fi
2766 echo "$as_me:2766: result: $ac_cv_sys_large_files" >&5
2767 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
2768 if test "$ac_cv_sys_large_files" != no; then
2769
2770 cat >>confdefs.h <<EOF
2771 #define _LARGE_FILES $ac_cv_sys_large_files
2772 EOF
2773
2774 fi
2775 rm -f conftest*
2776 fi
2777
2778 SIGNAMES_H=lsignames.h
2779
2780 if test "x$cross_compiling" = "xyes"; then
2781     case "${host}" in
2782     *-cygwin*)
2783         cross_cache=${srcdir}/cross-build/cygwin32.cache
2784         SIGNAMES_H='$(srcdir)/cross-build/win32sig.h'
2785         ;;
2786     i[3456]86-*-beos*)
2787         cross_cache=${srcdir}/cross-build/x86-beos.cache
2788         SIGNAMES_H='${srcdir}/cross-build/beos-sig.h'
2789         ;;
2790     *)  echo "configure: cross-compiling for $host is not supported" >&2
2791         ;;
2792     esac
2793     if test -n "${cross_cache}" && test -r "${cross_cache}"; then
2794         echo "loading cross-build cache file ${cross_cache}"
2795         . ${cross_cache}
2796     fi
2797     unset cross_cache
2798 fi
2799
2800 if test -z "$CC_FOR_BUILD"; then
2801     if test "x$cross_compiling" = "xno"; then
2802         CC_FOR_BUILD='$(CC)'
2803     else
2804         CC_FOR_BUILD=gcc
2805     fi
2806 fi
2807
2808 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
2809
2810 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
2811
2812 if test "$opt_profiling" = "yes"; then
2813         PROFILE_FLAGS=-pg
2814         case "$host_os" in
2815         solaris2*)      ;;
2816         *)              opt_static_link=yes ;;
2817         esac
2818 fi
2819
2820 if test "$opt_static_link" = yes; then
2821         # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
2822         if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
2823                 STATIC_LD="-static"
2824                 case "$host_os" in
2825                 solaris2*)      ;;
2826                 *)              LDFLAGS="$LDFLAGS -static" ;;   # XXX experimental
2827                 esac
2828         fi
2829 fi
2830
2831 if test $ac_cv_c_compiler_gnu = yes; then
2832     echo "$as_me:2832: checking whether $CC needs -traditional" >&5
2833 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2834 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2835   echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837     ac_pattern="Autoconf.*'x'"
2838   cat >conftest.$ac_ext <<_ACEOF
2839 #line 2839 "configure"
2840 #include "confdefs.h"
2841 #include <sgtty.h>
2842 Autoconf TIOCGETP
2843 _ACEOF
2844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2845   egrep "$ac_pattern" >/dev/null 2>&1; then
2846   ac_cv_prog_gcc_traditional=yes
2847 else
2848   ac_cv_prog_gcc_traditional=no
2849 fi
2850 rm -f conftest*
2851
2852   if test $ac_cv_prog_gcc_traditional = no; then
2853     cat >conftest.$ac_ext <<_ACEOF
2854 #line 2854 "configure"
2855 #include "confdefs.h"
2856 #include <termio.h>
2857 Autoconf TCGETA
2858 _ACEOF
2859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2860   egrep "$ac_pattern" >/dev/null 2>&1; then
2861   ac_cv_prog_gcc_traditional=yes
2862 fi
2863 rm -f conftest*
2864
2865   fi
2866 fi
2867 echo "$as_me:2867: result: $ac_cv_prog_gcc_traditional" >&5
2868 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2869   if test $ac_cv_prog_gcc_traditional = yes; then
2870     CC="$CC -traditional"
2871   fi
2872 fi
2873
2874 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
2875 then
2876 echo opt_with_installed_readline = $opt_with_installed_readline
2877         # If the user specified --with-installed-readline=PREFIX and PREFIX
2878         # is not `yes', set ac_cv_rl_prefix to PREFIX
2879         test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
2880
2881 if test "X$bash_cv_termcap_lib" = "X"; then
2882 _bash_needmsg=yes
2883 else
2884 echo "$as_me:2884: checking which library has the termcap functions" >&5
2885 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
2886 _bash_needmsg=
2887 fi
2888 if test "${bash_cv_termcap_lib+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891   echo "$as_me:2891: checking for tgetent in -ltermcap" >&5
2892 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
2893 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
2894   echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896   ac_check_lib_save_LIBS=$LIBS
2897 LIBS="-ltermcap  $LIBS"
2898 cat >conftest.$ac_ext <<_ACEOF
2899 #line 2899 "configure"
2900 #include "confdefs.h"
2901
2902 /* Override any gcc2 internal prototype to avoid an error.  */
2903 #ifdef __cplusplus
2904 extern "C"
2905 #endif
2906 /* We use char because int might match the return type of a gcc2
2907    builtin and then its argument prototype would still apply.  */
2908 char tgetent ();
2909 int
2910 main ()
2911 {
2912 tgetent ();
2913   ;
2914   return 0;
2915 }
2916 _ACEOF
2917 rm -f conftest.$ac_objext conftest$ac_exeext
2918 if { (eval echo "$as_me:2918: \"$ac_link\"") >&5
2919   (eval $ac_link) 2>&5
2920   ac_status=$?
2921   echo "$as_me:2921: \$? = $ac_status" >&5
2922   (exit $ac_status); } &&
2923          { ac_try='test -s conftest$ac_exeext'
2924   { (eval echo "$as_me:2924: \"$ac_try\"") >&5
2925   (eval $ac_try) 2>&5
2926   ac_status=$?
2927   echo "$as_me:2927: \$? = $ac_status" >&5
2928   (exit $ac_status); }; }; then
2929   ac_cv_lib_termcap_tgetent=yes
2930 else
2931   echo "$as_me: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2933 ac_cv_lib_termcap_tgetent=no
2934 fi
2935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2936 LIBS=$ac_check_lib_save_LIBS
2937 fi
2938 echo "$as_me:2938: result: $ac_cv_lib_termcap_tgetent" >&5
2939 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
2940 if test $ac_cv_lib_termcap_tgetent = yes; then
2941   bash_cv_termcap_lib=libtermcap
2942 else
2943   echo "$as_me:2943: checking for tgetent in -ltinfo" >&5
2944 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
2945 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948   ac_check_lib_save_LIBS=$LIBS
2949 LIBS="-ltinfo  $LIBS"
2950 cat >conftest.$ac_ext <<_ACEOF
2951 #line 2951 "configure"
2952 #include "confdefs.h"
2953
2954 /* Override any gcc2 internal prototype to avoid an error.  */
2955 #ifdef __cplusplus
2956 extern "C"
2957 #endif
2958 /* We use char because int might match the return type of a gcc2
2959    builtin and then its argument prototype would still apply.  */
2960 char tgetent ();
2961 int
2962 main ()
2963 {
2964 tgetent ();
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext conftest$ac_exeext
2970 if { (eval echo "$as_me:2970: \"$ac_link\"") >&5
2971   (eval $ac_link) 2>&5
2972   ac_status=$?
2973   echo "$as_me:2973: \$? = $ac_status" >&5
2974   (exit $ac_status); } &&
2975          { ac_try='test -s conftest$ac_exeext'
2976   { (eval echo "$as_me:2976: \"$ac_try\"") >&5
2977   (eval $ac_try) 2>&5
2978   ac_status=$?
2979   echo "$as_me:2979: \$? = $ac_status" >&5
2980   (exit $ac_status); }; }; then
2981   ac_cv_lib_tinfo_tgetent=yes
2982 else
2983   echo "$as_me: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2985 ac_cv_lib_tinfo_tgetent=no
2986 fi
2987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2988 LIBS=$ac_check_lib_save_LIBS
2989 fi
2990 echo "$as_me:2990: result: $ac_cv_lib_tinfo_tgetent" >&5
2991 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
2992 if test $ac_cv_lib_tinfo_tgetent = yes; then
2993   bash_cv_termcal_lib=libtinfo
2994 else
2995   echo "$as_me:2995: checking for tgetent in -lcurses" >&5
2996 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
2997 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
2998   echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000   ac_check_lib_save_LIBS=$LIBS
3001 LIBS="-lcurses  $LIBS"
3002 cat >conftest.$ac_ext <<_ACEOF
3003 #line 3003 "configure"
3004 #include "confdefs.h"
3005
3006 /* Override any gcc2 internal prototype to avoid an error.  */
3007 #ifdef __cplusplus
3008 extern "C"
3009 #endif
3010 /* We use char because int might match the return type of a gcc2
3011    builtin and then its argument prototype would still apply.  */
3012 char tgetent ();
3013 int
3014 main ()
3015 {
3016 tgetent ();
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.$ac_objext conftest$ac_exeext
3022 if { (eval echo "$as_me:3022: \"$ac_link\"") >&5
3023   (eval $ac_link) 2>&5
3024   ac_status=$?
3025   echo "$as_me:3025: \$? = $ac_status" >&5
3026   (exit $ac_status); } &&
3027          { ac_try='test -s conftest$ac_exeext'
3028   { (eval echo "$as_me:3028: \"$ac_try\"") >&5
3029   (eval $ac_try) 2>&5
3030   ac_status=$?
3031   echo "$as_me:3031: \$? = $ac_status" >&5
3032   (exit $ac_status); }; }; then
3033   ac_cv_lib_curses_tgetent=yes
3034 else
3035   echo "$as_me: failed program was:" >&5
3036 cat conftest.$ac_ext >&5
3037 ac_cv_lib_curses_tgetent=no
3038 fi
3039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3040 LIBS=$ac_check_lib_save_LIBS
3041 fi
3042 echo "$as_me:3042: result: $ac_cv_lib_curses_tgetent" >&5
3043 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
3044 if test $ac_cv_lib_curses_tgetent = yes; then
3045   bash_cv_termcap_lib=libcurses
3046 else
3047   echo "$as_me:3047: checking for tgetent in -lncurses" >&5
3048 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
3049 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
3050   echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052   ac_check_lib_save_LIBS=$LIBS
3053 LIBS="-lncurses  $LIBS"
3054 cat >conftest.$ac_ext <<_ACEOF
3055 #line 3055 "configure"
3056 #include "confdefs.h"
3057
3058 /* Override any gcc2 internal prototype to avoid an error.  */
3059 #ifdef __cplusplus
3060 extern "C"
3061 #endif
3062 /* We use char because int might match the return type of a gcc2
3063    builtin and then its argument prototype would still apply.  */
3064 char tgetent ();
3065 int
3066 main ()
3067 {
3068 tgetent ();
3069   ;
3070   return 0;
3071 }
3072 _ACEOF
3073 rm -f conftest.$ac_objext conftest$ac_exeext
3074 if { (eval echo "$as_me:3074: \"$ac_link\"") >&5
3075   (eval $ac_link) 2>&5
3076   ac_status=$?
3077   echo "$as_me:3077: \$? = $ac_status" >&5
3078   (exit $ac_status); } &&
3079          { ac_try='test -s conftest$ac_exeext'
3080   { (eval echo "$as_me:3080: \"$ac_try\"") >&5
3081   (eval $ac_try) 2>&5
3082   ac_status=$?
3083   echo "$as_me:3083: \$? = $ac_status" >&5
3084   (exit $ac_status); }; }; then
3085   ac_cv_lib_ncurses_tgetent=yes
3086 else
3087   echo "$as_me: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3089 ac_cv_lib_ncurses_tgetent=no
3090 fi
3091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3092 LIBS=$ac_check_lib_save_LIBS
3093 fi
3094 echo "$as_me:3094: result: $ac_cv_lib_ncurses_tgetent" >&5
3095 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
3096 if test $ac_cv_lib_ncurses_tgetent = yes; then
3097   bash_cv_termcap_lib=libncurses
3098 else
3099   bash_cv_termcap_lib=gnutermcap
3100 fi
3101
3102 fi
3103
3104 fi
3105
3106 fi
3107
3108 fi
3109
3110 if test "X$_bash_needmsg" = "Xyes"; then
3111 echo "$as_me:3111: checking which library has the termcap functions" >&5
3112 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
3113 fi
3114 echo "$as_me:3114: result: using $bash_cv_termcap_lib" >&5
3115 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
3116 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
3117 LDFLAGS="$LDFLAGS -L./lib/termcap"
3118 TERMCAP_LIB="./lib/termcap/libtermcap.a"
3119 TERMCAP_DEP="./lib/termcap/libtermcap.a"
3120 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
3121 TERMCAP_LIB=-ltermcap
3122 TERMCAP_DEP=
3123 elif test $bash_cv_termcap_lib = libtinfo; then
3124 TERMCAP_LIB=-ltinfo
3125 TERMCAP_DEP=
3126 elif test $bash_cv_termcap_lib = libncurses; then
3127 TERMCAP_LIB=-lncurses
3128 TERMCAP_DEP=
3129 else
3130 TERMCAP_LIB=-lcurses
3131 TERMCAP_DEP=
3132 fi
3133
3134 echo "$as_me:3134: checking version of installed readline library" >&5
3135 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
3136
3137 # What a pain in the ass this is.
3138
3139 # save cpp and ld options
3140 _save_CFLAGS="$CFLAGS"
3141 _save_LDFLAGS="$LDFLAGS"
3142 _save_LIBS="$LIBS"
3143
3144 # Don't set ac_cv_rl_prefix if the caller has already assigned a value.  This
3145 # allows the caller to do something like $_rl_prefix=$withval if the user
3146 # specifies --with-installed-readline=PREFIX as an argument to configure
3147
3148 if test -z "$ac_cv_rl_prefix"; then
3149 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
3150 fi
3151
3152 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
3153 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
3154
3155 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
3156 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
3157 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
3158
3159 if test "$cross_compiling" = yes; then
3160   ac_cv_rl_version='4.2'
3161 else
3162   cat >conftest.$ac_ext <<_ACEOF
3163 #line 3163 "configure"
3164 #include "confdefs.h"
3165
3166 #include <stdio.h>
3167 #include <readline/readline.h>
3168
3169 main()
3170 {
3171         FILE *fp;
3172         fp = fopen("conftest.rlv", "w");
3173         if (fp == 0) exit(1);
3174         fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
3175         fclose(fp);
3176         exit(0);
3177 }
3178
3179 _ACEOF
3180 rm -f conftest$ac_exeext
3181 if { (eval echo "$as_me:3181: \"$ac_link\"") >&5
3182   (eval $ac_link) 2>&5
3183   ac_status=$?
3184   echo "$as_me:3184: \$? = $ac_status" >&5
3185   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3186   { (eval echo "$as_me:3186: \"$ac_try\"") >&5
3187   (eval $ac_try) 2>&5
3188   ac_status=$?
3189   echo "$as_me:3189: \$? = $ac_status" >&5
3190   (exit $ac_status); }; }; then
3191   ac_cv_rl_version=`cat conftest.rlv`
3192 else
3193   echo "$as_me: program exited with status $ac_status" >&5
3194 echo "$as_me: failed program was:" >&5
3195 cat conftest.$ac_ext >&5
3196 ac_cv_rl_version='0.0'
3197 fi
3198 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3199 fi
3200
3201 CFLAGS="$_save_CFLAGS"
3202 LDFLAGS="$_save_LDFLAGS"
3203 LIBS="$_save_LIBS"
3204
3205 RL_MAJOR=0
3206 RL_MINOR=0
3207
3208 # (
3209 case "$ac_cv_rl_version" in
3210 2*|3*|4*|5*|6*|7*|8*|9*)
3211         RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
3212         RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:a-zA-Z*$::'`
3213         ;;
3214 esac
3215
3216 # (((
3217 case $RL_MAJOR in
3218 [0-9][0-9])     _RL_MAJOR=$RL_MAJOR ;;
3219 [0-9])  _RL_MAJOR=0$RL_MAJOR ;;
3220 *)              _RL_MAJOR=00 ;;
3221 esac
3222
3223 # (((
3224 case $RL_MINOR in
3225 [0-9][0-9])     _RL_MINOR=$RL_MINOR ;;
3226 [0-9])  _RL_MINOR=0$RL_MINOR ;;
3227 *)              _RL_MINOR=00 ;;
3228 esac
3229
3230 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
3231
3232 # Readline versions greater than 4.2 have these defines in readline.h
3233
3234 if test $ac_cv_rl_version = '0.0' ; then
3235         { echo "$as_me:3235: WARNING: Could not test version of installed readline library." >&5
3236 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
3237 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
3238         # set these for use by the caller
3239         RL_PREFIX=$ac_cv_rl_prefix
3240         RL_LIBDIR=$ac_cv_rl_libdir
3241         RL_INCLUDEDIR=$ac_cv_rl_includedir
3242         echo "$as_me:3242: result: $ac_cv_rl_version" >&5
3243 echo "${ECHO_T}$ac_cv_rl_version" >&6
3244 else
3245
3246 cat >>confdefs.h <<EOF
3247 #define RL_READLINE_VERSION $RL_VERSION
3248 EOF
3249
3250 cat >>confdefs.h <<EOF
3251 #define RL_VERSION_MAJOR $RL_MAJOR
3252 EOF
3253
3254 cat >>confdefs.h <<EOF
3255 #define RL_VERSION_MINOR $RL_MINOR
3256 EOF
3257
3258 # set these for use by the caller
3259 RL_PREFIX=$ac_cv_rl_prefix
3260 RL_LIBDIR=$ac_cv_rl_libdir
3261 RL_INCLUDEDIR=$ac_cv_rl_includedir
3262
3263 echo "$as_me:3263: result: $ac_cv_rl_version" >&5
3264 echo "${ECHO_T}$ac_cv_rl_version" >&6
3265
3266 fi
3267
3268         case "$ac_cv_rl_version" in
3269         4.[2-9]*|5*|6*|7*|8*|9*)        ;;
3270         *)      opt_with_installed_readline=no
3271                 { echo "$as_me:3271: WARNING: installed readline library is too old to be linked with bash" >&5
3272 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
3273                 { echo "$as_me:3273: WARNING: using private bash version" >&5
3274 echo "$as_me: WARNING: using private bash version" >&2;}
3275                 ;;
3276         esac
3277 fi
3278
3279 if test $opt_readline = yes; then
3280         cat >>confdefs.h <<\EOF
3281 #define READLINE 1
3282 EOF
3283
3284         READLINE_LIB=-lreadline
3285         if test "$opt_with_installed_readline" != "no" ; then
3286                 case "$RL_INCLUDEDIR" in
3287                 /usr/include)   ;;
3288                 *)              RL_INCLUDE='-I${RL_INCLUDEDIR}'
3289                 esac
3290                 READLINE_DEP=
3291         else
3292                 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3293                 READLINE_DEP='$(READLINE_LIBRARY)'
3294         fi
3295 else
3296         RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3297         READLINE_LIB= READLINE_DEP=
3298 fi
3299 if test $opt_history = yes || test $opt_bang_history = yes; then
3300         if test $opt_history = yes; then
3301                 cat >>confdefs.h <<\EOF
3302 #define HISTORY 1
3303 EOF
3304
3305         fi
3306         if test $opt_bang_history = yes; then
3307                 cat >>confdefs.h <<\EOF
3308 #define BANG_HISTORY 1
3309 EOF
3310
3311         fi
3312         HISTORY_LIB=-lhistory
3313         if test "$opt_with_installed_readline" != "no"; then
3314                 HIST_LIBDIR=$RL_LIBDIR
3315                 HISTORY_DEP=
3316                 case "$RL_INCLUDEDIR" in
3317                 /usr/include)   ;;
3318                 *)              RL_INCLUDE='-I${RL_INCLUDEDIR}'
3319                 esac
3320         else
3321                 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3322                 HISTORY_DEP='$(HISTORY_LIBRARY)'
3323         fi
3324 else
3325         HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
3326         HISTORY_LIB= HISTORY_DEP=
3327 fi
3328
3329 # Find a good install program.  We prefer a C program (faster),
3330 # so one script is as good as another.  But avoid the broken or
3331 # incompatible versions:
3332 # SysV /etc/install, /usr/sbin/install
3333 # SunOS /usr/etc/install
3334 # IRIX /sbin/install
3335 # AIX /bin/install
3336 # AmigaOS /C/install, which installs bootblocks on floppy discs
3337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3340 # ./install, which can be erroneously created by make from ./install.sh.
3341 echo "$as_me:3341: checking for a BSD compatible install" >&5
3342 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3343 if test -z "$INSTALL"; then
3344 if test "${ac_cv_path_install+set}" = set; then
3345   echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347     ac_save_IFS=$IFS; IFS=$ac_path_separator
3348   for ac_dir in $PATH; do
3349     IFS=$ac_save_IFS
3350     # Account for people who put trailing slashes in PATH elements.
3351     case $ac_dir/ in
3352     / | ./ | .// | /cC/* \
3353     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3354     | /usr/ucb/* ) ;;
3355     *)
3356       # OSF1 and SCO ODT 3.0 have their own names for install.
3357       # Don't use installbsd from OSF since it installs stuff as root
3358       # by default.
3359       for ac_prog in ginstall scoinst install; do
3360         if $as_executable_p "$ac_dir/$ac_prog"; then
3361           if test $ac_prog = install &&
3362             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3363             # AIX install.  It has an incompatible calling convention.
3364             :
3365           elif test $ac_prog = install &&
3366             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3367             # program-specific install script used by HP pwplus--don't use.
3368             :
3369           else
3370             ac_cv_path_install="$ac_dir/$ac_prog -c"
3371             break 2
3372           fi
3373         fi
3374       done
3375       ;;
3376     esac
3377   done
3378
3379 fi
3380   if test "${ac_cv_path_install+set}" = set; then
3381     INSTALL=$ac_cv_path_install
3382   else
3383     # As a last resort, use the slow shell script.  We don't cache a
3384     # path for INSTALL within a source directory, because that will
3385     # break other packages using the cache if that directory is
3386     # removed, or if the path is relative.
3387     INSTALL=$ac_install_sh
3388   fi
3389 fi
3390 echo "$as_me:3390: result: $INSTALL" >&5
3391 echo "${ECHO_T}$INSTALL" >&6
3392
3393 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3394 # It thinks the first close brace ends the variable substitution.
3395 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3396
3397 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3398
3399 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3400
3401 # Extract the first word of "ar", so it can be a program name with args.
3402 set dummy ar; ac_word=$2
3403 echo "$as_me:3403: checking for $ac_word" >&5
3404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3405 if test "${ac_cv_prog_AR+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   if test -n "$AR"; then
3409   ac_cv_prog_AR="$AR" # Let the user override the test.
3410 else
3411   ac_save_IFS=$IFS; IFS=$ac_path_separator
3412 ac_dummy="$PATH"
3413 for ac_dir in $ac_dummy; do
3414   IFS=$ac_save_IFS
3415   test -z "$ac_dir" && ac_dir=.
3416   $as_executable_p "$ac_dir/$ac_word" || continue
3417 ac_cv_prog_AR=""
3418 echo "$as_me:3418: found $ac_dir/$ac_word" >&5
3419 break
3420 done
3421
3422   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3423 fi
3424 fi
3425 AR=$ac_cv_prog_AR
3426 if test -n "$AR"; then
3427   echo "$as_me:3427: result: $AR" >&5
3428 echo "${ECHO_T}$AR" >&6
3429 else
3430   echo "$as_me:3430: result: no" >&5
3431 echo "${ECHO_T}no" >&6
3432 fi
3433
3434 test -n "$ARFLAGS" || ARFLAGS="cr"
3435 if test -n "$ac_tool_prefix"; then
3436   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3438 echo "$as_me:3438: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440 if test "${ac_cv_prog_RANLIB+set}" = set; then
3441   echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443   if test -n "$RANLIB"; then
3444   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3445 else
3446   ac_save_IFS=$IFS; IFS=$ac_path_separator
3447 ac_dummy="$PATH"
3448 for ac_dir in $ac_dummy; do
3449   IFS=$ac_save_IFS
3450   test -z "$ac_dir" && ac_dir=.
3451   $as_executable_p "$ac_dir/$ac_word" || continue
3452 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3453 echo "$as_me:3453: found $ac_dir/$ac_word" >&5
3454 break
3455 done
3456
3457 fi
3458 fi
3459 RANLIB=$ac_cv_prog_RANLIB
3460 if test -n "$RANLIB"; then
3461   echo "$as_me:3461: result: $RANLIB" >&5
3462 echo "${ECHO_T}$RANLIB" >&6
3463 else
3464   echo "$as_me:3464: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3466 fi
3467
3468 fi
3469 if test -z "$ac_cv_prog_RANLIB"; then
3470   ac_ct_RANLIB=$RANLIB
3471   # Extract the first word of "ranlib", so it can be a program name with args.
3472 set dummy ranlib; ac_word=$2
3473 echo "$as_me:3473: checking for $ac_word" >&5
3474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3475 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3476   echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478   if test -n "$ac_ct_RANLIB"; then
3479   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3480 else
3481   ac_save_IFS=$IFS; IFS=$ac_path_separator
3482 ac_dummy="$PATH"
3483 for ac_dir in $ac_dummy; do
3484   IFS=$ac_save_IFS
3485   test -z "$ac_dir" && ac_dir=.
3486   $as_executable_p "$ac_dir/$ac_word" || continue
3487 ac_cv_prog_ac_ct_RANLIB="ranlib"
3488 echo "$as_me:3488: found $ac_dir/$ac_word" >&5
3489 break
3490 done
3491
3492   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3493 fi
3494 fi
3495 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3496 if test -n "$ac_ct_RANLIB"; then
3497   echo "$as_me:3497: result: $ac_ct_RANLIB" >&5
3498 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3499 else
3500   echo "$as_me:3500: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3502 fi
3503
3504   RANLIB=$ac_ct_RANLIB
3505 else
3506   RANLIB="$ac_cv_prog_RANLIB"
3507 fi
3508
3509 for ac_prog in 'bison -y' byacc
3510 do
3511   # Extract the first word of "$ac_prog", so it can be a program name with args.
3512 set dummy $ac_prog; ac_word=$2
3513 echo "$as_me:3513: checking for $ac_word" >&5
3514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515 if test "${ac_cv_prog_YACC+set}" = set; then
3516   echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518   if test -n "$YACC"; then
3519   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3520 else
3521   ac_save_IFS=$IFS; IFS=$ac_path_separator
3522 ac_dummy="$PATH"
3523 for ac_dir in $ac_dummy; do
3524   IFS=$ac_save_IFS
3525   test -z "$ac_dir" && ac_dir=.
3526   $as_executable_p "$ac_dir/$ac_word" || continue
3527 ac_cv_prog_YACC="$ac_prog"
3528 echo "$as_me:3528: found $ac_dir/$ac_word" >&5
3529 break
3530 done
3531
3532 fi
3533 fi
3534 YACC=$ac_cv_prog_YACC
3535 if test -n "$YACC"; then
3536   echo "$as_me:3536: result: $YACC" >&5
3537 echo "${ECHO_T}$YACC" >&6
3538 else
3539   echo "$as_me:3539: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541 fi
3542
3543   test -n "$YACC" && break
3544 done
3545 test -n "$YACC" || YACC="yacc"
3546
3547 echo "$as_me:3547: checking whether ${MAKE-make} sets \${MAKE}" >&5
3548 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3549 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3550 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   cat >conftest.make <<\EOF
3554 all:
3555         @echo 'ac_maketemp="${MAKE}"'
3556 EOF
3557 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3558 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3559 if test -n "$ac_maketemp"; then
3560   eval ac_cv_prog_make_${ac_make}_set=yes
3561 else
3562   eval ac_cv_prog_make_${ac_make}_set=no
3563 fi
3564 rm -f conftest.make
3565 fi
3566 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3567   echo "$as_me:3567: result: yes" >&5
3568 echo "${ECHO_T}yes" >&6
3569   SET_MAKE=
3570 else
3571   echo "$as_me:3571: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3573   SET_MAKE="MAKE=${MAKE-make}"
3574 fi
3575
3576 case "$host_os" in
3577 opennt*|interix*)       MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
3578 *)                      MAKE_SHELL=/bin/sh ;;
3579 esac
3580
3581 cat >>confdefs.h <<\EOF
3582 #define _GNU_SOURCE 1
3583 EOF
3584
3585 echo "$as_me:3585: checking for $CC option to accept ANSI C" >&5
3586 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3587 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3588   echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590   ac_cv_prog_cc_stdc=no
3591 ac_save_CC=$CC
3592 cat >conftest.$ac_ext <<_ACEOF
3593 #line 3593 "configure"
3594 #include "confdefs.h"
3595 #include <stdarg.h>
3596 #include <stdio.h>
3597 #include <sys/types.h>
3598 #include <sys/stat.h>
3599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3600 struct buf { int x; };
3601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3602 static char *e (p, i)
3603      char **p;
3604      int i;
3605 {
3606   return p[i];
3607 }
3608 static char *f (char * (*g) (char **, int), char **p, ...)
3609 {
3610   char *s;
3611   va_list v;
3612   va_start (v,p);
3613   s = g (p, va_arg (v,int));
3614   va_end (v);
3615   return s;
3616 }
3617 int test (int i, double x);
3618 struct s1 {int (*f) (int a);};
3619 struct s2 {int (*f) (double a);};
3620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3621 int argc;
3622 char **argv;
3623 int
3624 main ()
3625 {
3626 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3627   ;
3628   return 0;
3629 }
3630 _ACEOF
3631 # Don't try gcc -ansi; that turns off useful extensions and
3632 # breaks some systems' header files.
3633 # AIX                   -qlanglvl=ansi
3634 # Ultrix and OSF/1      -std1
3635 # HP-UX 10.20 and later -Ae
3636 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3637 # SVR4                  -Xc -D__EXTENSIONS__
3638 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3639 do
3640   CC="$ac_save_CC $ac_arg"
3641   rm -f conftest.$ac_objext
3642 if { (eval echo "$as_me:3642: \"$ac_compile\"") >&5
3643   (eval $ac_compile) 2>&5
3644   ac_status=$?
3645   echo "$as_me:3645: \$? = $ac_status" >&5
3646   (exit $ac_status); } &&
3647          { ac_try='test -s conftest.$ac_objext'
3648   { (eval echo "$as_me:3648: \"$ac_try\"") >&5
3649   (eval $ac_try) 2>&5
3650   ac_status=$?
3651   echo "$as_me:3651: \$? = $ac_status" >&5
3652   (exit $ac_status); }; }; then
3653   ac_cv_prog_cc_stdc=$ac_arg
3654 break
3655 else
3656   echo "$as_me: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3658 fi
3659 rm -f conftest.$ac_objext
3660 done
3661 rm -f conftest.$ac_ext conftest.$ac_objext
3662 CC=$ac_save_CC
3663
3664 fi
3665
3666 case "x$ac_cv_prog_cc_stdc" in
3667   x|xno)
3668     echo "$as_me:3668: result: none needed" >&5
3669 echo "${ECHO_T}none needed" >&6 ;;
3670   *)
3671     echo "$as_me:3671: result: $ac_cv_prog_cc_stdc" >&5
3672 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3673     CC="$CC $ac_cv_prog_cc_stdc" ;;
3674 esac
3675
3676 echo "$as_me:3676: checking for an ANSI C-conforming const" >&5
3677 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3678 if test "${ac_cv_c_const+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   cat >conftest.$ac_ext <<_ACEOF
3682 #line 3682 "configure"
3683 #include "confdefs.h"
3684
3685 int
3686 main ()
3687 {
3688 /* FIXME: Include the comments suggested by Paul. */
3689 #ifndef __cplusplus
3690   /* Ultrix mips cc rejects this.  */
3691   typedef int charset[2];
3692   const charset x;
3693   /* SunOS 4.1.1 cc rejects this.  */
3694   char const *const *ccp;
3695   char **p;
3696   /* NEC SVR4.0.2 mips cc rejects this.  */
3697   struct point {int x, y;};
3698   static struct point const zero = {0,0};
3699   /* AIX XL C 1.02.0.0 rejects this.
3700      It does not let you subtract one const X* pointer from another in
3701      an arm of an if-expression whose if-part is not a constant
3702      expression */
3703   const char *g = "string";
3704   ccp = &g + (g ? g-g : 0);
3705   /* HPUX 7.0 cc rejects these. */
3706   ++ccp;
3707   p = (char**) ccp;
3708   ccp = (char const *const *) p;
3709   { /* SCO 3.2v4 cc rejects this.  */
3710     char *t;
3711     char const *s = 0 ? (char *) 0 : (char const *) 0;
3712
3713     *t++ = 0;
3714   }
3715   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3716     int x[] = {25, 17};
3717     const int *foo = &x[0];
3718     ++foo;
3719   }
3720   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3721     typedef const int *iptr;
3722     iptr p = 0;
3723     ++p;
3724   }
3725   { /* AIX XL C 1.02.0.0 rejects this saying
3726        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3727     struct s { int j; const int *ap[3]; };
3728     struct s *b; b->j = 5;
3729   }
3730   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3731     const int foo = 10;
3732   }
3733 #endif
3734
3735   ;
3736   return 0;
3737 }
3738 _ACEOF
3739 rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:3740: \"$ac_compile\"") >&5
3741   (eval $ac_compile) 2>&5
3742   ac_status=$?
3743   echo "$as_me:3743: \$? = $ac_status" >&5
3744   (exit $ac_status); } &&
3745          { ac_try='test -s conftest.$ac_objext'
3746   { (eval echo "$as_me:3746: \"$ac_try\"") >&5
3747   (eval $ac_try) 2>&5
3748   ac_status=$?
3749   echo "$as_me:3749: \$? = $ac_status" >&5
3750   (exit $ac_status); }; }; then
3751   ac_cv_c_const=yes
3752 else
3753   echo "$as_me: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3755 ac_cv_c_const=no
3756 fi
3757 rm -f conftest.$ac_objext conftest.$ac_ext
3758 fi
3759 echo "$as_me:3759: result: $ac_cv_c_const" >&5
3760 echo "${ECHO_T}$ac_cv_c_const" >&6
3761 if test $ac_cv_c_const = no; then
3762
3763 cat >>confdefs.h <<\EOF
3764 #define const
3765 EOF
3766
3767 fi
3768
3769 echo "$as_me:3769: checking for inline" >&5
3770 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3771 if test "${ac_cv_c_inline+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   ac_cv_c_inline=no
3775 for ac_kw in inline __inline__ __inline; do
3776   cat >conftest.$ac_ext <<_ACEOF
3777 #line 3777 "configure"
3778 #include "confdefs.h"
3779 #ifndef __cplusplus
3780 static $ac_kw int static_foo () {return 0; }
3781 $ac_kw int foo () {return 0; }
3782 #endif
3783
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:3786: \"$ac_compile\"") >&5
3787   (eval $ac_compile) 2>&5
3788   ac_status=$?
3789   echo "$as_me:3789: \$? = $ac_status" >&5
3790   (exit $ac_status); } &&
3791          { ac_try='test -s conftest.$ac_objext'
3792   { (eval echo "$as_me:3792: \"$ac_try\"") >&5
3793   (eval $ac_try) 2>&5
3794   ac_status=$?
3795   echo "$as_me:3795: \$? = $ac_status" >&5
3796   (exit $ac_status); }; }; then
3797   ac_cv_c_inline=$ac_kw; break
3798 else
3799   echo "$as_me: failed program was:" >&5
3800 cat conftest.$ac_ext >&5
3801 fi
3802 rm -f conftest.$ac_objext conftest.$ac_ext
3803 done
3804
3805 fi
3806 echo "$as_me:3806: result: $ac_cv_c_inline" >&5
3807 echo "${ECHO_T}$ac_cv_c_inline" >&6
3808 case $ac_cv_c_inline in
3809   inline | yes) ;;
3810   no)
3811 cat >>confdefs.h <<\EOF
3812 #define inline
3813 EOF
3814  ;;
3815   *)  cat >>confdefs.h <<EOF
3816 #define inline $ac_cv_c_inline
3817 EOF
3818  ;;
3819 esac
3820
3821 echo "$as_me:3821: checking whether byte ordering is bigendian" >&5
3822 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3823 if test "${ac_cv_c_bigendian+set}" = set; then
3824   echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826   ac_cv_c_bigendian=unknown
3827 # See if sys/param.h defines the BYTE_ORDER macro.
3828 cat >conftest.$ac_ext <<_ACEOF
3829 #line 3829 "configure"
3830 #include "confdefs.h"
3831 #include <sys/types.h>
3832 #include <sys/param.h>
3833
3834 int
3835 main ()
3836 {
3837 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3838  bogus endian macros
3839 #endif
3840
3841   ;
3842   return 0;
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   # It does; now see whether it defined to BIG_ENDIAN or not.
3858 cat >conftest.$ac_ext <<_ACEOF
3859 #line 3859 "configure"
3860 #include "confdefs.h"
3861 #include <sys/types.h>
3862 #include <sys/param.h>
3863
3864 int
3865 main ()
3866 {
3867 #if BYTE_ORDER != BIG_ENDIAN
3868  not big endian
3869 #endif
3870
3871   ;
3872   return 0;
3873 }
3874 _ACEOF
3875 rm -f conftest.$ac_objext
3876 if { (eval echo "$as_me:3876: \"$ac_compile\"") >&5
3877   (eval $ac_compile) 2>&5
3878   ac_status=$?
3879   echo "$as_me:3879: \$? = $ac_status" >&5
3880   (exit $ac_status); } &&
3881          { ac_try='test -s conftest.$ac_objext'
3882   { (eval echo "$as_me:3882: \"$ac_try\"") >&5
3883   (eval $ac_try) 2>&5
3884   ac_status=$?
3885   echo "$as_me:3885: \$? = $ac_status" >&5
3886   (exit $ac_status); }; }; then
3887   ac_cv_c_bigendian=yes
3888 else
3889   echo "$as_me: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3891 ac_cv_c_bigendian=no
3892 fi
3893 rm -f conftest.$ac_objext conftest.$ac_ext
3894 else
3895   echo "$as_me: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3897 fi
3898 rm -f conftest.$ac_objext conftest.$ac_ext
3899 if test $ac_cv_c_bigendian = unknown; then
3900 if test "$cross_compiling" = yes; then
3901   { { echo "$as_me:3901: error: cannot run test program while cross compiling" >&5
3902 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3903    { (exit 1); exit 1; }; }
3904 else
3905   cat >conftest.$ac_ext <<_ACEOF
3906 #line 3906 "configure"
3907 #include "confdefs.h"
3908 int
3909 main ()
3910 {
3911   /* Are we little or big endian?  From Harbison&Steele.  */
3912   union
3913   {
3914     long l;
3915     char c[sizeof (long)];
3916   } u;
3917   u.l = 1;
3918   exit (u.c[sizeof (long) - 1] == 1);
3919 }
3920 _ACEOF
3921 rm -f conftest$ac_exeext
3922 if { (eval echo "$as_me:3922: \"$ac_link\"") >&5
3923   (eval $ac_link) 2>&5
3924   ac_status=$?
3925   echo "$as_me:3925: \$? = $ac_status" >&5
3926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3927   { (eval echo "$as_me:3927: \"$ac_try\"") >&5
3928   (eval $ac_try) 2>&5
3929   ac_status=$?
3930   echo "$as_me:3930: \$? = $ac_status" >&5
3931   (exit $ac_status); }; }; then
3932   ac_cv_c_bigendian=no
3933 else
3934   echo "$as_me: program exited with status $ac_status" >&5
3935 echo "$as_me: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3937 ac_cv_c_bigendian=yes
3938 fi
3939 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3940 fi
3941 fi
3942 fi
3943 echo "$as_me:3943: result: $ac_cv_c_bigendian" >&5
3944 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3945 if test $ac_cv_c_bigendian = yes; then
3946
3947 cat >>confdefs.h <<\EOF
3948 #define WORDS_BIGENDIAN 1
3949 EOF
3950
3951 fi
3952
3953 echo "$as_me:3953: checking for preprocessor stringizing operator" >&5
3954 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
3955 if test "${ac_cv_c_stringize+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   cat >conftest.$ac_ext <<_ACEOF
3959 #line 3959 "configure"
3960 #include "confdefs.h"
3961 #define x(y) #y
3962
3963 char *s = x(teststring);
3964 _ACEOF
3965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966   egrep "#teststring" >/dev/null 2>&1; then
3967   ac_cv_c_stringize=no
3968 else
3969   ac_cv_c_stringize=yes
3970 fi
3971 rm -f conftest*
3972
3973 fi
3974 echo "$as_me:3974: result: $ac_cv_c_stringize" >&5
3975 echo "${ECHO_T}$ac_cv_c_stringize" >&6
3976 if test $ac_cv_c_stringize = yes; then
3977
3978 cat >>confdefs.h <<\EOF
3979 #define HAVE_STRINGIZE 1
3980 EOF
3981
3982 fi
3983
3984 echo "$as_me:3984: checking for long double" >&5
3985 echo $ECHO_N "checking for long double... $ECHO_C" >&6
3986 if test "${ac_cv_c_long_double+set}" = set; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   if test "$GCC" = yes; then
3990   ac_cv_c_long_double=yes
3991 else
3992 if test "$cross_compiling" = yes; then
3993   { { echo "$as_me:3993: error: cannot run test program while cross compiling" >&5
3994 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3995    { (exit 1); exit 1; }; }
3996 else
3997   cat >conftest.$ac_ext <<_ACEOF
3998 #line 3998 "configure"
3999 #include "confdefs.h"
4000 int
4001 main ()
4002 {
4003   /* The Stardent Vistra knows sizeof(long double), but does not
4004      support it.  */
4005   long double foo = 0.0;
4006   /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
4007   exit (sizeof (long double) < sizeof (double));
4008 }
4009 _ACEOF
4010 rm -f conftest$ac_exeext
4011 if { (eval echo "$as_me:4011: \"$ac_link\"") >&5
4012   (eval $ac_link) 2>&5
4013   ac_status=$?
4014   echo "$as_me:4014: \$? = $ac_status" >&5
4015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4016   { (eval echo "$as_me:4016: \"$ac_try\"") >&5
4017   (eval $ac_try) 2>&5
4018   ac_status=$?
4019   echo "$as_me:4019: \$? = $ac_status" >&5
4020   (exit $ac_status); }; }; then
4021   ac_cv_c_long_double=yes
4022 else
4023   echo "$as_me: program exited with status $ac_status" >&5
4024 echo "$as_me: failed program was:" >&5
4025 cat conftest.$ac_ext >&5
4026 ac_cv_c_long_double=no
4027 fi
4028 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4029 fi
4030 fi
4031 fi
4032 echo "$as_me:4032: result: $ac_cv_c_long_double" >&5
4033 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4034 if test $ac_cv_c_long_double = yes; then
4035
4036 cat >>confdefs.h <<\EOF
4037 #define HAVE_LONG_DOUBLE 1
4038 EOF
4039
4040 fi
4041
4042 echo "$as_me:4042: checking for function prototypes" >&5
4043 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4044 if test "$ac_cv_prog_cc_stdc" != no; then
4045   echo "$as_me:4045: result: yes" >&5
4046 echo "${ECHO_T}yes" >&6
4047
4048 cat >>confdefs.h <<\EOF
4049 #define PROTOTYPES 1
4050 EOF
4051
4052 else
4053   echo "$as_me:4053: result: no" >&5
4054 echo "${ECHO_T}no" >&6
4055 fi
4056
4057 echo "$as_me:4057: checking for ANSI C header files" >&5
4058 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4059 if test "${ac_cv_header_stdc+set}" = set; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062   cat >conftest.$ac_ext <<_ACEOF
4063 #line 4063 "configure"
4064 #include "confdefs.h"
4065 #include <stdlib.h>
4066 #include <stdarg.h>
4067 #include <string.h>
4068 #include <float.h>
4069
4070 _ACEOF
4071 if { (eval echo "$as_me:4071: \"$ac_cpp conftest.$ac_ext\"") >&5
4072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4073   ac_status=$?
4074   egrep -v '^ *\+' conftest.er1 >conftest.err
4075   rm -f conftest.er1
4076   cat conftest.err >&5
4077   echo "$as_me:4077: \$? = $ac_status" >&5
4078   (exit $ac_status); } >/dev/null; then
4079   if test -s conftest.err; then
4080     ac_cpp_err=$ac_c_preproc_warn_flag
4081   else
4082     ac_cpp_err=
4083   fi
4084 else
4085   ac_cpp_err=yes
4086 fi
4087 if test -z "$ac_cpp_err"; then
4088   ac_cv_header_stdc=yes
4089 else
4090   echo "$as_me: failed program was:" >&5
4091   cat conftest.$ac_ext >&5
4092   ac_cv_header_stdc=no
4093 fi
4094 rm -f conftest.err conftest.$ac_ext
4095
4096 if test $ac_cv_header_stdc = yes; then
4097   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4098   cat >conftest.$ac_ext <<_ACEOF
4099 #line 4099 "configure"
4100 #include "confdefs.h"
4101 #include <string.h>
4102
4103 _ACEOF
4104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105   egrep "memchr" >/dev/null 2>&1; then
4106   :
4107 else
4108   ac_cv_header_stdc=no
4109 fi
4110 rm -f conftest*
4111
4112 fi
4113
4114 if test $ac_cv_header_stdc = yes; then
4115   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4116   cat >conftest.$ac_ext <<_ACEOF
4117 #line 4117 "configure"
4118 #include "confdefs.h"
4119 #include <stdlib.h>
4120
4121 _ACEOF
4122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4123   egrep "free" >/dev/null 2>&1; then
4124   :
4125 else
4126   ac_cv_header_stdc=no
4127 fi
4128 rm -f conftest*
4129
4130 fi
4131
4132 if test $ac_cv_header_stdc = yes; then
4133   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4134   if test "$cross_compiling" = yes; then
4135   :
4136 else
4137   cat >conftest.$ac_ext <<_ACEOF
4138 #line 4138 "configure"
4139 #include "confdefs.h"
4140 #include <ctype.h>
4141 #if ((' ' & 0x0FF) == 0x020)
4142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4144 #else
4145 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4146                      || ('j' <= (c) && (c) <= 'r') \
4147                      || ('s' <= (c) && (c) <= 'z'))
4148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4149 #endif
4150
4151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4152 int
4153 main ()
4154 {
4155   int i;
4156   for (i = 0; i < 256; i++)
4157     if (XOR (islower (i), ISLOWER (i))
4158         || toupper (i) != TOUPPER (i))
4159       exit(2);
4160   exit (0);
4161 }
4162 _ACEOF
4163 rm -f conftest$ac_exeext
4164 if { (eval echo "$as_me:4164: \"$ac_link\"") >&5
4165   (eval $ac_link) 2>&5
4166   ac_status=$?
4167   echo "$as_me:4167: \$? = $ac_status" >&5
4168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4169   { (eval echo "$as_me:4169: \"$ac_try\"") >&5
4170   (eval $ac_try) 2>&5
4171   ac_status=$?
4172   echo "$as_me:4172: \$? = $ac_status" >&5
4173   (exit $ac_status); }; }; then
4174   :
4175 else
4176   echo "$as_me: program exited with status $ac_status" >&5
4177 echo "$as_me: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4179 ac_cv_header_stdc=no
4180 fi
4181 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4182 fi
4183 fi
4184 fi
4185 echo "$as_me:4185: result: $ac_cv_header_stdc" >&5
4186 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4187 if test $ac_cv_header_stdc = yes; then
4188
4189 cat >>confdefs.h <<\EOF
4190 #define STDC_HEADERS 1
4191 EOF
4192
4193 fi
4194
4195 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4196
4197 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4198                   inttypes.h stdint.h unistd.h
4199 do
4200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4201 echo "$as_me:4201: checking for $ac_header" >&5
4202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206   cat >conftest.$ac_ext <<_ACEOF
4207 #line 4207 "configure"
4208 #include "confdefs.h"
4209 $ac_includes_default
4210 #include <$ac_header>
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (eval echo "$as_me:4213: \"$ac_compile\"") >&5
4214   (eval $ac_compile) 2>&5
4215   ac_status=$?
4216   echo "$as_me:4216: \$? = $ac_status" >&5
4217   (exit $ac_status); } &&
4218          { ac_try='test -s conftest.$ac_objext'
4219   { (eval echo "$as_me:4219: \"$ac_try\"") >&5
4220   (eval $ac_try) 2>&5
4221   ac_status=$?
4222   echo "$as_me:4222: \$? = $ac_status" >&5
4223   (exit $ac_status); }; }; then
4224   eval "$as_ac_Header=yes"
4225 else
4226   echo "$as_me: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4228 eval "$as_ac_Header=no"
4229 fi
4230 rm -f conftest.$ac_objext conftest.$ac_ext
4231 fi
4232 echo "$as_me:4232: result: `eval echo '${'$as_ac_Header'}'`" >&5
4233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4235   cat >>confdefs.h <<EOF
4236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4237 EOF
4238
4239 fi
4240 done
4241
4242 echo "$as_me:4242: checking whether char is unsigned" >&5
4243 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
4244 if test "${ac_cv_c_char_unsigned+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   cat >conftest.$ac_ext <<_ACEOF
4248 #line 4248 "configure"
4249 #include "confdefs.h"
4250 $ac_includes_default
4251 int
4252 main ()
4253 {
4254 int _array_ [1 - 2 * !(((char) -1) < 0)]
4255   ;
4256   return 0;
4257 }
4258 _ACEOF
4259 rm -f conftest.$ac_objext
4260 if { (eval echo "$as_me:4260: \"$ac_compile\"") >&5
4261   (eval $ac_compile) 2>&5
4262   ac_status=$?
4263   echo "$as_me:4263: \$? = $ac_status" >&5
4264   (exit $ac_status); } &&
4265          { ac_try='test -s conftest.$ac_objext'
4266   { (eval echo "$as_me:4266: \"$ac_try\"") >&5
4267   (eval $ac_try) 2>&5
4268   ac_status=$?
4269   echo "$as_me:4269: \$? = $ac_status" >&5
4270   (exit $ac_status); }; }; then
4271   ac_cv_c_char_unsigned=no
4272 else
4273   echo "$as_me: failed program was:" >&5
4274 cat conftest.$ac_ext >&5
4275 ac_cv_c_char_unsigned=yes
4276 fi
4277 rm -f conftest.$ac_objext conftest.$ac_ext
4278 fi
4279 echo "$as_me:4279: result: $ac_cv_c_char_unsigned" >&5
4280 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
4281 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4282   cat >>confdefs.h <<\EOF
4283 #define __CHAR_UNSIGNED__ 1
4284 EOF
4285
4286 fi
4287
4288 ac_header_dirent=no
4289 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4290   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4291 echo "$as_me:4291: checking for $ac_hdr that defines DIR" >&5
4292 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   cat >conftest.$ac_ext <<_ACEOF
4297 #line 4297 "configure"
4298 #include "confdefs.h"
4299 #include <sys/types.h>
4300 #include <$ac_hdr>
4301
4302 int
4303 main ()
4304 {
4305 if ((DIR *) 0)
4306 return 0;
4307   ;
4308   return 0;
4309 }
4310 _ACEOF
4311 rm -f conftest.$ac_objext
4312 if { (eval echo "$as_me:4312: \"$ac_compile\"") >&5
4313   (eval $ac_compile) 2>&5
4314   ac_status=$?
4315   echo "$as_me:4315: \$? = $ac_status" >&5
4316   (exit $ac_status); } &&
4317          { ac_try='test -s conftest.$ac_objext'
4318   { (eval echo "$as_me:4318: \"$ac_try\"") >&5
4319   (eval $ac_try) 2>&5
4320   ac_status=$?
4321   echo "$as_me:4321: \$? = $ac_status" >&5
4322   (exit $ac_status); }; }; then
4323   eval "$as_ac_Header=yes"
4324 else
4325   echo "$as_me: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4327 eval "$as_ac_Header=no"
4328 fi
4329 rm -f conftest.$ac_objext conftest.$ac_ext
4330 fi
4331 echo "$as_me:4331: result: `eval echo '${'$as_ac_Header'}'`" >&5
4332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4334   cat >>confdefs.h <<EOF
4335 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4336 EOF
4337
4338 ac_header_dirent=$ac_hdr; break
4339 fi
4340
4341 done
4342 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4343 if test $ac_header_dirent = dirent.h; then
4344   echo "$as_me:4344: checking for opendir in -ldir" >&5
4345 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
4346 if test "${ac_cv_lib_dir_opendir+set}" = set; then
4347   echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349   ac_check_lib_save_LIBS=$LIBS
4350 LIBS="-ldir  $LIBS"
4351 cat >conftest.$ac_ext <<_ACEOF
4352 #line 4352 "configure"
4353 #include "confdefs.h"
4354
4355 /* Override any gcc2 internal prototype to avoid an error.  */
4356 #ifdef __cplusplus
4357 extern "C"
4358 #endif
4359 /* We use char because int might match the return type of a gcc2
4360    builtin and then its argument prototype would still apply.  */
4361 char opendir ();
4362 int
4363 main ()
4364 {
4365 opendir ();
4366   ;
4367   return 0;
4368 }
4369 _ACEOF
4370 rm -f conftest.$ac_objext conftest$ac_exeext
4371 if { (eval echo "$as_me:4371: \"$ac_link\"") >&5
4372   (eval $ac_link) 2>&5
4373   ac_status=$?
4374   echo "$as_me:4374: \$? = $ac_status" >&5
4375   (exit $ac_status); } &&
4376          { ac_try='test -s conftest$ac_exeext'
4377   { (eval echo "$as_me:4377: \"$ac_try\"") >&5
4378   (eval $ac_try) 2>&5
4379   ac_status=$?
4380   echo "$as_me:4380: \$? = $ac_status" >&5
4381   (exit $ac_status); }; }; then
4382   ac_cv_lib_dir_opendir=yes
4383 else
4384   echo "$as_me: failed program was:" >&5
4385 cat conftest.$ac_ext >&5
4386 ac_cv_lib_dir_opendir=no
4387 fi
4388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4389 LIBS=$ac_check_lib_save_LIBS
4390 fi
4391 echo "$as_me:4391: result: $ac_cv_lib_dir_opendir" >&5
4392 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
4393 if test $ac_cv_lib_dir_opendir = yes; then
4394   LIBS="$LIBS -ldir"
4395 fi
4396
4397 else
4398   echo "$as_me:4398: checking for opendir in -lx" >&5
4399 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
4400 if test "${ac_cv_lib_x_opendir+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   ac_check_lib_save_LIBS=$LIBS
4404 LIBS="-lx  $LIBS"
4405 cat >conftest.$ac_ext <<_ACEOF
4406 #line 4406 "configure"
4407 #include "confdefs.h"
4408
4409 /* Override any gcc2 internal prototype to avoid an error.  */
4410 #ifdef __cplusplus
4411 extern "C"
4412 #endif
4413 /* We use char because int might match the return type of a gcc2
4414    builtin and then its argument prototype would still apply.  */
4415 char opendir ();
4416 int
4417 main ()
4418 {
4419 opendir ();
4420   ;
4421   return 0;
4422 }
4423 _ACEOF
4424 rm -f conftest.$ac_objext conftest$ac_exeext
4425 if { (eval echo "$as_me:4425: \"$ac_link\"") >&5
4426   (eval $ac_link) 2>&5
4427   ac_status=$?
4428   echo "$as_me:4428: \$? = $ac_status" >&5
4429   (exit $ac_status); } &&
4430          { ac_try='test -s conftest$ac_exeext'
4431   { (eval echo "$as_me:4431: \"$ac_try\"") >&5
4432   (eval $ac_try) 2>&5
4433   ac_status=$?
4434   echo "$as_me:4434: \$? = $ac_status" >&5
4435   (exit $ac_status); }; }; then
4436   ac_cv_lib_x_opendir=yes
4437 else
4438   echo "$as_me: failed program was:" >&5
4439 cat conftest.$ac_ext >&5
4440 ac_cv_lib_x_opendir=no
4441 fi
4442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4443 LIBS=$ac_check_lib_save_LIBS
4444 fi
4445 echo "$as_me:4445: result: $ac_cv_lib_x_opendir" >&5
4446 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
4447 if test $ac_cv_lib_x_opendir = yes; then
4448   LIBS="$LIBS -lx"
4449 fi
4450
4451 fi
4452
4453 echo "$as_me:4453: checking whether time.h and sys/time.h may both be included" >&5
4454 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4455 if test "${ac_cv_header_time+set}" = set; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   cat >conftest.$ac_ext <<_ACEOF
4459 #line 4459 "configure"
4460 #include "confdefs.h"
4461 #include <sys/types.h>
4462 #include <sys/time.h>
4463 #include <time.h>
4464
4465 int
4466 main ()
4467 {
4468 if ((struct tm *) 0)
4469 return 0;
4470   ;
4471   return 0;
4472 }
4473 _ACEOF
4474 rm -f conftest.$ac_objext
4475 if { (eval echo "$as_me:4475: \"$ac_compile\"") >&5
4476   (eval $ac_compile) 2>&5
4477   ac_status=$?
4478   echo "$as_me:4478: \$? = $ac_status" >&5
4479   (exit $ac_status); } &&
4480          { ac_try='test -s conftest.$ac_objext'
4481   { (eval echo "$as_me:4481: \"$ac_try\"") >&5
4482   (eval $ac_try) 2>&5
4483   ac_status=$?
4484   echo "$as_me:4484: \$? = $ac_status" >&5
4485   (exit $ac_status); }; }; then
4486   ac_cv_header_time=yes
4487 else
4488   echo "$as_me: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4490 ac_cv_header_time=no
4491 fi
4492 rm -f conftest.$ac_objext conftest.$ac_ext
4493 fi
4494 echo "$as_me:4494: result: $ac_cv_header_time" >&5
4495 echo "${ECHO_T}$ac_cv_header_time" >&6
4496 if test $ac_cv_header_time = yes; then
4497
4498 cat >>confdefs.h <<\EOF
4499 #define TIME_WITH_SYS_TIME 1
4500 EOF
4501
4502 fi
4503
4504 for ac_header in inttypes.h
4505 do
4506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4507 echo "$as_me:4507: checking for $ac_header" >&5
4508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4510   echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512   cat >conftest.$ac_ext <<_ACEOF
4513 #line 4513 "configure"
4514 #include "confdefs.h"
4515 #include <$ac_header>
4516 _ACEOF
4517 if { (eval echo "$as_me:4517: \"$ac_cpp conftest.$ac_ext\"") >&5
4518   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4519   ac_status=$?
4520   egrep -v '^ *\+' conftest.er1 >conftest.err
4521   rm -f conftest.er1
4522   cat conftest.err >&5
4523   echo "$as_me:4523: \$? = $ac_status" >&5
4524   (exit $ac_status); } >/dev/null; then
4525   if test -s conftest.err; then
4526     ac_cpp_err=$ac_c_preproc_warn_flag
4527   else
4528     ac_cpp_err=
4529   fi
4530 else
4531   ac_cpp_err=yes
4532 fi
4533 if test -z "$ac_cpp_err"; then
4534   eval "$as_ac_Header=yes"
4535 else
4536   echo "$as_me: failed program was:" >&5
4537   cat conftest.$ac_ext >&5
4538   eval "$as_ac_Header=no"
4539 fi
4540 rm -f conftest.err conftest.$ac_ext
4541 fi
4542 echo "$as_me:4542: result: `eval echo '${'$as_ac_Header'}'`" >&5
4543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4545   cat >>confdefs.h <<EOF
4546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4547 EOF
4548
4549 fi
4550 done
4551
4552 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
4553                  memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
4554                  stddef.h stdint.h netdb.h grp.h strings.h
4555 do
4556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4557 echo "$as_me:4557: checking for $ac_header" >&5
4558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4560   echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562   cat >conftest.$ac_ext <<_ACEOF
4563 #line 4563 "configure"
4564 #include "confdefs.h"
4565 #include <$ac_header>
4566 _ACEOF
4567 if { (eval echo "$as_me:4567: \"$ac_cpp conftest.$ac_ext\"") >&5
4568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4569   ac_status=$?
4570   egrep -v '^ *\+' conftest.er1 >conftest.err
4571   rm -f conftest.er1
4572   cat conftest.err >&5
4573   echo "$as_me:4573: \$? = $ac_status" >&5
4574   (exit $ac_status); } >/dev/null; then
4575   if test -s conftest.err; then
4576     ac_cpp_err=$ac_c_preproc_warn_flag
4577   else
4578     ac_cpp_err=
4579   fi
4580 else
4581   ac_cpp_err=yes
4582 fi
4583 if test -z "$ac_cpp_err"; then
4584   eval "$as_ac_Header=yes"
4585 else
4586   echo "$as_me: failed program was:" >&5
4587   cat conftest.$ac_ext >&5
4588   eval "$as_ac_Header=no"
4589 fi
4590 rm -f conftest.err conftest.$ac_ext
4591 fi
4592 echo "$as_me:4592: result: `eval echo '${'$as_ac_Header'}'`" >&5
4593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4595   cat >>confdefs.h <<EOF
4596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4597 EOF
4598
4599 fi
4600 done
4601
4602 for ac_header in sys/ptem.h sys/pte.h sys/stream.h sys/select.h sys/file.h \
4603                  sys/resource.h sys/param.h sys/socket.h \
4604                  sys/time.h sys/times.h sys/wait.h
4605 do
4606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4607 echo "$as_me:4607: checking for $ac_header" >&5
4608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   cat >conftest.$ac_ext <<_ACEOF
4613 #line 4613 "configure"
4614 #include "confdefs.h"
4615 #include <$ac_header>
4616 _ACEOF
4617 if { (eval echo "$as_me:4617: \"$ac_cpp conftest.$ac_ext\"") >&5
4618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4619   ac_status=$?
4620   egrep -v '^ *\+' conftest.er1 >conftest.err
4621   rm -f conftest.er1
4622   cat conftest.err >&5
4623   echo "$as_me:4623: \$? = $ac_status" >&5
4624   (exit $ac_status); } >/dev/null; then
4625   if test -s conftest.err; then
4626     ac_cpp_err=$ac_c_preproc_warn_flag
4627   else
4628     ac_cpp_err=
4629   fi
4630 else
4631   ac_cpp_err=yes
4632 fi
4633 if test -z "$ac_cpp_err"; then
4634   eval "$as_ac_Header=yes"
4635 else
4636   echo "$as_me: failed program was:" >&5
4637   cat conftest.$ac_ext >&5
4638   eval "$as_ac_Header=no"
4639 fi
4640 rm -f conftest.err conftest.$ac_ext
4641 fi
4642 echo "$as_me:4642: result: `eval echo '${'$as_ac_Header'}'`" >&5
4643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4645   cat >>confdefs.h <<EOF
4646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4647 EOF
4648
4649 fi
4650 done
4651
4652 for ac_header in netinet/in.h arpa/inet.h
4653 do
4654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4655 echo "$as_me:4655: checking for $ac_header" >&5
4656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4658   echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660   cat >conftest.$ac_ext <<_ACEOF
4661 #line 4661 "configure"
4662 #include "confdefs.h"
4663 #include <$ac_header>
4664 _ACEOF
4665 if { (eval echo "$as_me:4665: \"$ac_cpp conftest.$ac_ext\"") >&5
4666   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4667   ac_status=$?
4668   egrep -v '^ *\+' conftest.er1 >conftest.err
4669   rm -f conftest.er1
4670   cat conftest.err >&5
4671   echo "$as_me:4671: \$? = $ac_status" >&5
4672   (exit $ac_status); } >/dev/null; then
4673   if test -s conftest.err; then
4674     ac_cpp_err=$ac_c_preproc_warn_flag
4675   else
4676     ac_cpp_err=
4677   fi
4678 else
4679   ac_cpp_err=yes
4680 fi
4681 if test -z "$ac_cpp_err"; then
4682   eval "$as_ac_Header=yes"
4683 else
4684   echo "$as_me: failed program was:" >&5
4685   cat conftest.$ac_ext >&5
4686   eval "$as_ac_Header=no"
4687 fi
4688 rm -f conftest.err conftest.$ac_ext
4689 fi
4690 echo "$as_me:4690: result: `eval echo '${'$as_ac_Header'}'`" >&5
4691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4693   cat >>confdefs.h <<EOF
4694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4695 EOF
4696
4697 fi
4698 done
4699
4700 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4701 # for constant arguments.  Useless!
4702 echo "$as_me:4702: checking for working alloca.h" >&5
4703 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4704 if test "${ac_cv_working_alloca_h+set}" = set; then
4705   echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707   cat >conftest.$ac_ext <<_ACEOF
4708 #line 4708 "configure"
4709 #include "confdefs.h"
4710 #include <alloca.h>
4711 int
4712 main ()
4713 {
4714 char *p = (char *) alloca (2 * sizeof (int));
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.$ac_objext conftest$ac_exeext
4720 if { (eval echo "$as_me:4720: \"$ac_link\"") >&5
4721   (eval $ac_link) 2>&5
4722   ac_status=$?
4723   echo "$as_me:4723: \$? = $ac_status" >&5
4724   (exit $ac_status); } &&
4725          { ac_try='test -s conftest$ac_exeext'
4726   { (eval echo "$as_me:4726: \"$ac_try\"") >&5
4727   (eval $ac_try) 2>&5
4728   ac_status=$?
4729   echo "$as_me:4729: \$? = $ac_status" >&5
4730   (exit $ac_status); }; }; then
4731   ac_cv_working_alloca_h=yes
4732 else
4733   echo "$as_me: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4735 ac_cv_working_alloca_h=no
4736 fi
4737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4738 fi
4739 echo "$as_me:4739: result: $ac_cv_working_alloca_h" >&5
4740 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4741 if test $ac_cv_working_alloca_h = yes; then
4742
4743 cat >>confdefs.h <<\EOF
4744 #define HAVE_ALLOCA_H 1
4745 EOF
4746
4747 fi
4748
4749 echo "$as_me:4749: checking for alloca" >&5
4750 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4751 if test "${ac_cv_func_alloca_works+set}" = set; then
4752   echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754   cat >conftest.$ac_ext <<_ACEOF
4755 #line 4755 "configure"
4756 #include "confdefs.h"
4757 #ifdef __GNUC__
4758 # define alloca __builtin_alloca
4759 #else
4760 # ifdef _MSC_VER
4761 #  include <malloc.h>
4762 #  define alloca _alloca
4763 # else
4764 #  if HAVE_ALLOCA_H
4765 #   include <alloca.h>
4766 #  else
4767 #   ifdef _AIX
4768  #pragma alloca
4769 #   else
4770 #    ifndef alloca /* predefined by HP cc +Olibcalls */
4771 char *alloca ();
4772 #    endif
4773 #   endif
4774 #  endif
4775 # endif
4776 #endif
4777
4778 int
4779 main ()
4780 {
4781 char *p = (char *) alloca (1);
4782   ;
4783   return 0;
4784 }
4785 _ACEOF
4786 rm -f conftest.$ac_objext conftest$ac_exeext
4787 if { (eval echo "$as_me:4787: \"$ac_link\"") >&5
4788   (eval $ac_link) 2>&5
4789   ac_status=$?
4790   echo "$as_me:4790: \$? = $ac_status" >&5
4791   (exit $ac_status); } &&
4792          { ac_try='test -s conftest$ac_exeext'
4793   { (eval echo "$as_me:4793: \"$ac_try\"") >&5
4794   (eval $ac_try) 2>&5
4795   ac_status=$?
4796   echo "$as_me:4796: \$? = $ac_status" >&5
4797   (exit $ac_status); }; }; then
4798   ac_cv_func_alloca_works=yes
4799 else
4800   echo "$as_me: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4802 ac_cv_func_alloca_works=no
4803 fi
4804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4805 fi
4806 echo "$as_me:4806: result: $ac_cv_func_alloca_works" >&5
4807 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4808
4809 if test $ac_cv_func_alloca_works = yes; then
4810
4811 cat >>confdefs.h <<\EOF
4812 #define HAVE_ALLOCA 1
4813 EOF
4814
4815 else
4816   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4817 # that cause trouble.  Some versions do not even contain alloca or
4818 # contain a buggy version.  If you still want to use their alloca,
4819 # use ar to extract alloca.o from them instead of compiling alloca.c.
4820
4821 ALLOCA=alloca.$ac_objext
4822
4823 cat >>confdefs.h <<\EOF
4824 #define C_ALLOCA 1
4825 EOF
4826
4827 echo "$as_me:4827: checking whether \`alloca.c' needs Cray hooks" >&5
4828 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4829 if test "${ac_cv_os_cray+set}" = set; then
4830   echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832   cat >conftest.$ac_ext <<_ACEOF
4833 #line 4833 "configure"
4834 #include "confdefs.h"
4835 #if defined(CRAY) && ! defined(CRAY2)
4836 webecray
4837 #else
4838 wenotbecray
4839 #endif
4840
4841 _ACEOF
4842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4843   egrep "webecray" >/dev/null 2>&1; then
4844   ac_cv_os_cray=yes
4845 else
4846   ac_cv_os_cray=no
4847 fi
4848 rm -f conftest*
4849
4850 fi
4851 echo "$as_me:4851: result: $ac_cv_os_cray" >&5
4852 echo "${ECHO_T}$ac_cv_os_cray" >&6
4853 if test $ac_cv_os_cray = yes; then
4854   for ac_func in _getb67 GETB67 getb67; do
4855     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4856 echo "$as_me:4856: checking for $ac_func" >&5
4857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4858 if eval "test \"\${$as_ac_var+set}\" = set"; then
4859   echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861   cat >conftest.$ac_ext <<_ACEOF
4862 #line 4862 "configure"
4863 #include "confdefs.h"
4864 /* System header to define __stub macros and hopefully few prototypes,
4865     which can conflict with char $ac_func (); below.  */
4866 #include <assert.h>
4867 /* Override any gcc2 internal prototype to avoid an error.  */
4868 #ifdef __cplusplus
4869 extern "C"
4870 #endif
4871 /* We use char because int might match the return type of a gcc2
4872    builtin and then its argument prototype would still apply.  */
4873 char $ac_func ();
4874 char (*f) ();
4875
4876 int
4877 main ()
4878 {
4879 /* The GNU C library defines this for functions which it implements
4880     to always fail with ENOSYS.  Some functions are actually named
4881     something starting with __ and the normal name is an alias.  */
4882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4883 choke me
4884 #else
4885 f = $ac_func;
4886 #endif
4887
4888   ;
4889   return 0;
4890 }
4891 _ACEOF
4892 rm -f conftest.$ac_objext conftest$ac_exeext
4893 if { (eval echo "$as_me:4893: \"$ac_link\"") >&5
4894   (eval $ac_link) 2>&5
4895   ac_status=$?
4896   echo "$as_me:4896: \$? = $ac_status" >&5
4897   (exit $ac_status); } &&
4898          { ac_try='test -s conftest$ac_exeext'
4899   { (eval echo "$as_me:4899: \"$ac_try\"") >&5
4900   (eval $ac_try) 2>&5
4901   ac_status=$?
4902   echo "$as_me:4902: \$? = $ac_status" >&5
4903   (exit $ac_status); }; }; then
4904   eval "$as_ac_var=yes"
4905 else
4906   echo "$as_me: failed program was:" >&5
4907 cat conftest.$ac_ext >&5
4908 eval "$as_ac_var=no"
4909 fi
4910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4911 fi
4912 echo "$as_me:4912: result: `eval echo '${'$as_ac_var'}'`" >&5
4913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4914 if test `eval echo '${'$as_ac_var'}'` = yes; then
4915
4916 cat >>confdefs.h <<EOF
4917 #define CRAY_STACKSEG_END $ac_func
4918 EOF
4919
4920     break
4921 fi
4922
4923   done
4924 fi
4925
4926 echo "$as_me:4926: checking stack direction for C alloca" >&5
4927 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4928 if test "${ac_cv_c_stack_direction+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931   if test "$cross_compiling" = yes; then
4932   ac_cv_c_stack_direction=0
4933 else
4934   cat >conftest.$ac_ext <<_ACEOF
4935 #line 4935 "configure"
4936 #include "confdefs.h"
4937 int
4938 find_stack_direction ()
4939 {
4940   static char *addr = 0;
4941   auto char dummy;
4942   if (addr == 0)
4943     {
4944       addr = &dummy;
4945       return find_stack_direction ();
4946     }
4947   else
4948     return (&dummy > addr) ? 1 : -1;
4949 }
4950
4951 int
4952 main ()
4953 {
4954   exit (find_stack_direction () < 0);
4955 }
4956 _ACEOF
4957 rm -f conftest$ac_exeext
4958 if { (eval echo "$as_me:4958: \"$ac_link\"") >&5
4959   (eval $ac_link) 2>&5
4960   ac_status=$?
4961   echo "$as_me:4961: \$? = $ac_status" >&5
4962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4963   { (eval echo "$as_me:4963: \"$ac_try\"") >&5
4964   (eval $ac_try) 2>&5
4965   ac_status=$?
4966   echo "$as_me:4966: \$? = $ac_status" >&5
4967   (exit $ac_status); }; }; then
4968   ac_cv_c_stack_direction=1
4969 else
4970   echo "$as_me: program exited with status $ac_status" >&5
4971 echo "$as_me: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4973 ac_cv_c_stack_direction=-1
4974 fi
4975 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4976 fi
4977 fi
4978 echo "$as_me:4978: result: $ac_cv_c_stack_direction" >&5
4979 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4980
4981 cat >>confdefs.h <<EOF
4982 #define STACK_DIRECTION $ac_cv_c_stack_direction
4983 EOF
4984
4985 fi
4986
4987 echo "$as_me:4987: checking whether getpgrp takes no argument" >&5
4988 echo $ECHO_N "checking whether getpgrp takes no argument... $ECHO_C" >&6
4989 if test "${ac_cv_func_getpgrp_void+set}" = set; then
4990   echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992   # Use it with a single arg.
4993 cat >conftest.$ac_ext <<_ACEOF
4994 #line 4994 "configure"
4995 #include "confdefs.h"
4996 $ac_includes_default
4997 int
4998 main ()
4999 {
5000 getpgrp (0);
5001   ;
5002   return 0;
5003 }
5004 _ACEOF
5005 rm -f conftest.$ac_objext
5006 if { (eval echo "$as_me:5006: \"$ac_compile\"") >&5
5007   (eval $ac_compile) 2>&5
5008   ac_status=$?
5009   echo "$as_me:5009: \$? = $ac_status" >&5
5010   (exit $ac_status); } &&
5011          { ac_try='test -s conftest.$ac_objext'
5012   { (eval echo "$as_me:5012: \"$ac_try\"") >&5
5013   (eval $ac_try) 2>&5
5014   ac_status=$?
5015   echo "$as_me:5015: \$? = $ac_status" >&5
5016   (exit $ac_status); }; }; then
5017   ac_func_getpgrp_1=yes
5018 else
5019   echo "$as_me: failed program was:" >&5
5020 cat conftest.$ac_ext >&5
5021 ac_func_getpgrp_1=no
5022 fi
5023 rm -f conftest.$ac_objext conftest.$ac_ext
5024 # Use it with no arg.
5025 cat >conftest.$ac_ext <<_ACEOF
5026 #line 5026 "configure"
5027 #include "confdefs.h"
5028 $ac_includes_default
5029 int
5030 main ()
5031 {
5032 getpgrp ();
5033   ;
5034   return 0;
5035 }
5036 _ACEOF
5037 rm -f conftest.$ac_objext
5038 if { (eval echo "$as_me:5038: \"$ac_compile\"") >&5
5039   (eval $ac_compile) 2>&5
5040   ac_status=$?
5041   echo "$as_me:5041: \$? = $ac_status" >&5
5042   (exit $ac_status); } &&
5043          { ac_try='test -s conftest.$ac_objext'
5044   { (eval echo "$as_me:5044: \"$ac_try\"") >&5
5045   (eval $ac_try) 2>&5
5046   ac_status=$?
5047   echo "$as_me:5047: \$? = $ac_status" >&5
5048   (exit $ac_status); }; }; then
5049   ac_func_getpgrp_0=yes
5050 else
5051   echo "$as_me: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5053 ac_func_getpgrp_0=no
5054 fi
5055 rm -f conftest.$ac_objext conftest.$ac_ext
5056 # If both static checks agree, we are done.
5057 case $ac_func_getpgrp_0:$ac_func_getpgrp_1 in
5058   yes:no) ac_cv_func_getpgrp_void=yes;;
5059   no:yes) ac_cv_func_getpgrp_void=false;;
5060   *) if test "$cross_compiling" = yes; then
5061   { { echo "$as_me:5061: error: cannot check getpgrp if cross compiling" >&5
5062 echo "$as_me: error: cannot check getpgrp if cross compiling" >&2;}
5063    { (exit 1); exit 1; }; }
5064 else
5065   cat >conftest.$ac_ext <<_ACEOF
5066 #line 5066 "configure"
5067 #include "confdefs.h"
5068 $ac_includes_default
5069
5070 /*
5071  * If this system has a BSD-style getpgrp(),
5072  * which takes a pid argument, exit unsuccessfully.
5073  *
5074  * Snarfed from Chet Ramey's bash pgrp.c test program
5075  */
5076
5077 int     pid;
5078 int     pg1, pg2, pg3, pg4;
5079 int     ng, np, s, child;
5080
5081 int
5082 main ()
5083 {
5084   pid = getpid ();
5085   pg1 = getpgrp (0);
5086   pg2 = getpgrp ();
5087   pg3 = getpgrp (pid);
5088   pg4 = getpgrp (1);
5089
5090   /* If all of these values are the same, it's pretty sure that we're
5091      on a system that ignores getpgrp's first argument.  */
5092   if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
5093     exit (0);
5094
5095   child = fork ();
5096   if (child < 0)
5097     exit(1);
5098   else if (child == 0)
5099     {
5100       np = getpid ();
5101       /*  If this is Sys V, this will not work; pgrp will be set to np
5102          because setpgrp just changes a pgrp to be the same as the
5103          pid.  */
5104       setpgrp (np, pg1);
5105       ng = getpgrp (0);        /* Same result for Sys V and BSD */
5106       if (ng == pg1)
5107         exit (1);
5108       else
5109         exit (0);
5110     }
5111   else
5112     {
5113       wait (&s);
5114       exit (s>>8);
5115     }
5116 }
5117
5118 _ACEOF
5119 rm -f conftest$ac_exeext
5120 if { (eval echo "$as_me:5120: \"$ac_link\"") >&5
5121   (eval $ac_link) 2>&5
5122   ac_status=$?
5123   echo "$as_me:5123: \$? = $ac_status" >&5
5124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5125   { (eval echo "$as_me:5125: \"$ac_try\"") >&5
5126   (eval $ac_try) 2>&5
5127   ac_status=$?
5128   echo "$as_me:5128: \$? = $ac_status" >&5
5129   (exit $ac_status); }; }; then
5130   ac_cv_func_getpgrp_void=yes
5131 else
5132   echo "$as_me: program exited with status $ac_status" >&5
5133 echo "$as_me: failed program was:" >&5
5134 cat conftest.$ac_ext >&5
5135 ac_cv_func_getpgrp_void=no
5136 fi
5137 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5138 fi;;
5139 esac # $ac_func_getpgrp_0:$ac_func_getpgrp_1
5140
5141 fi
5142 echo "$as_me:5142: result: $ac_cv_func_getpgrp_void" >&5
5143 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
5144 if test $ac_cv_func_getpgrp_void = yes; then
5145
5146 cat >>confdefs.h <<\EOF
5147 #define GETPGRP_VOID 1
5148 EOF
5149
5150 fi
5151
5152 echo "$as_me:5152: checking whether setvbuf arguments are reversed" >&5
5153 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
5154 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
5155   echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157   if test "$cross_compiling" = yes; then
5158   { { echo "$as_me:5158: error: cannot run test program while cross compiling" >&5
5159 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5160    { (exit 1); exit 1; }; }
5161 else
5162   cat >conftest.$ac_ext <<_ACEOF
5163 #line 5163 "configure"
5164 #include "confdefs.h"
5165 #include <stdio.h>
5166 /* If setvbuf has the reversed format, exit 0. */
5167 int
5168 main ()
5169 {
5170   /* This call has the arguments reversed.
5171      A reversed system may check and see that the address of main
5172      is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
5173   if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
5174     exit(1);
5175   putc('\r', stdout);
5176   exit(0);                      /* Non-reversed systems segv here.  */
5177 }
5178 _ACEOF
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_setvbuf_reversed=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_setvbuf_reversed=no
5196 fi
5197 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5198 fi
5199 rm -f core core.* *.core
5200 fi
5201 echo "$as_me:5201: result: $ac_cv_func_setvbuf_reversed" >&5
5202 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
5203 if test $ac_cv_func_setvbuf_reversed = yes; then
5204
5205 cat >>confdefs.h <<\EOF
5206 #define SETVBUF_REVERSED 1
5207 EOF
5208
5209 fi
5210
5211 for ac_func in vprintf
5212 do
5213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5214 echo "$as_me:5214: checking for $ac_func" >&5
5215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5216 if eval "test \"\${$as_ac_var+set}\" = set"; then
5217   echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219   cat >conftest.$ac_ext <<_ACEOF
5220 #line 5220 "configure"
5221 #include "confdefs.h"
5222 /* System header to define __stub macros and hopefully few prototypes,
5223     which can conflict with char $ac_func (); below.  */
5224 #include <assert.h>
5225 /* Override any gcc2 internal prototype to avoid an error.  */
5226 #ifdef __cplusplus
5227 extern "C"
5228 #endif
5229 /* We use char because int might match the return type of a gcc2
5230    builtin and then its argument prototype would still apply.  */
5231 char $ac_func ();
5232 char (*f) ();
5233
5234 int
5235 main ()
5236 {
5237 /* The GNU C library defines this for functions which it implements
5238     to always fail with ENOSYS.  Some functions are actually named
5239     something starting with __ and the normal name is an alias.  */
5240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5241 choke me
5242 #else
5243 f = $ac_func;
5244 #endif
5245
5246   ;
5247   return 0;
5248 }
5249 _ACEOF
5250 rm -f conftest.$ac_objext conftest$ac_exeext
5251 if { (eval echo "$as_me:5251: \"$ac_link\"") >&5
5252   (eval $ac_link) 2>&5
5253   ac_status=$?
5254   echo "$as_me:5254: \$? = $ac_status" >&5
5255   (exit $ac_status); } &&
5256          { ac_try='test -s conftest$ac_exeext'
5257   { (eval echo "$as_me:5257: \"$ac_try\"") >&5
5258   (eval $ac_try) 2>&5
5259   ac_status=$?
5260   echo "$as_me:5260: \$? = $ac_status" >&5
5261   (exit $ac_status); }; }; then
5262   eval "$as_ac_var=yes"
5263 else
5264   echo "$as_me: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5266 eval "$as_ac_var=no"
5267 fi
5268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5269 fi
5270 echo "$as_me:5270: result: `eval echo '${'$as_ac_var'}'`" >&5
5271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5272 if test `eval echo '${'$as_ac_var'}'` = yes; then
5273   cat >>confdefs.h <<EOF
5274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5275 EOF
5276
5277 echo "$as_me:5277: checking for _doprnt" >&5
5278 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5279 if test "${ac_cv_func__doprnt+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   cat >conftest.$ac_ext <<_ACEOF
5283 #line 5283 "configure"
5284 #include "confdefs.h"
5285 /* System header to define __stub macros and hopefully few prototypes,
5286     which can conflict with char _doprnt (); below.  */
5287 #include <assert.h>
5288 /* Override any gcc2 internal prototype to avoid an error.  */
5289 #ifdef __cplusplus
5290 extern "C"
5291 #endif
5292 /* We use char because int might match the return type of a gcc2
5293    builtin and then its argument prototype would still apply.  */
5294 char _doprnt ();
5295 char (*f) ();
5296
5297 int
5298 main ()
5299 {
5300 /* The GNU C library defines this for functions which it implements
5301     to always fail with ENOSYS.  Some functions are actually named
5302     something starting with __ and the normal name is an alias.  */
5303 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5304 choke me
5305 #else
5306 f = _doprnt;
5307 #endif
5308
5309   ;
5310   return 0;
5311 }
5312 _ACEOF
5313 rm -f conftest.$ac_objext conftest$ac_exeext
5314 if { (eval echo "$as_me:5314: \"$ac_link\"") >&5
5315   (eval $ac_link) 2>&5
5316   ac_status=$?
5317   echo "$as_me:5317: \$? = $ac_status" >&5
5318   (exit $ac_status); } &&
5319          { ac_try='test -s conftest$ac_exeext'
5320   { (eval echo "$as_me:5320: \"$ac_try\"") >&5
5321   (eval $ac_try) 2>&5
5322   ac_status=$?
5323   echo "$as_me:5323: \$? = $ac_status" >&5
5324   (exit $ac_status); }; }; then
5325   ac_cv_func__doprnt=yes
5326 else
5327   echo "$as_me: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5329 ac_cv_func__doprnt=no
5330 fi
5331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5332 fi
5333 echo "$as_me:5333: result: $ac_cv_func__doprnt" >&5
5334 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5335 if test $ac_cv_func__doprnt = yes; then
5336
5337 cat >>confdefs.h <<\EOF
5338 #define HAVE_DOPRNT 1
5339 EOF
5340
5341 fi
5342
5343 fi
5344 done
5345
5346 echo "$as_me:5346: checking for working strcoll" >&5
5347 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
5348 if test "${ac_cv_func_strcoll_works+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   if test "$cross_compiling" = yes; then
5352   ac_cv_func_strcoll_works=no
5353 else
5354   cat >conftest.$ac_ext <<_ACEOF
5355 #line 5355 "configure"
5356 #include "confdefs.h"
5357 $ac_includes_default
5358 int
5359 main ()
5360 {
5361 exit (strcoll ("abc", "def") >= 0 ||
5362          strcoll ("ABC", "DEF") >= 0 ||
5363          strcoll ("123", "456") >= 0)
5364   ;
5365   return 0;
5366 }
5367 _ACEOF
5368 rm -f conftest$ac_exeext
5369 if { (eval echo "$as_me:5369: \"$ac_link\"") >&5
5370   (eval $ac_link) 2>&5
5371   ac_status=$?
5372   echo "$as_me:5372: \$? = $ac_status" >&5
5373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5374   { (eval echo "$as_me:5374: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:5377: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   ac_cv_func_strcoll_works=yes
5380 else
5381   echo "$as_me: program exited with status $ac_status" >&5
5382 echo "$as_me: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5384 ac_cv_func_strcoll_works=no
5385 fi
5386 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5387 fi
5388 fi
5389 echo "$as_me:5389: result: $ac_cv_func_strcoll_works" >&5
5390 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
5391 if test $ac_cv_func_strcoll_works = yes; then
5392
5393 cat >>confdefs.h <<\EOF
5394 #define HAVE_STRCOLL 1
5395 EOF
5396
5397 fi
5398
5399 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
5400         MALLOC_TARGET=alloca
5401         MALLOC_SRC=alloca.c
5402
5403         MALLOC_LIB='-lmalloc'
5404         MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
5405         MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
5406         MALLOC_DEP='$(MALLOC_LIBRARY)'
5407 fi
5408
5409 if test "$ac_cv_func_vprintf" = no; then
5410     echo "$as_me:5410: checking for declaration of vprintf in stdio.h" >&5
5411 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
5412     cat >conftest.$ac_ext <<_ACEOF
5413 #line 5413 "configure"
5414 #include "confdefs.h"
5415 #include <stdio.h>
5416
5417 _ACEOF
5418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5419   egrep "[int[  ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
5420   ac_cv_func_vprintf=yes
5421 fi
5422 rm -f conftest*
5423
5424     echo "$as_me:5424: result: $ac_cv_func_vprintf" >&5
5425 echo "${ECHO_T}$ac_cv_func_vprintf" >&6
5426     if test $ac_cv_func_vprintf = yes; then
5427         cat >>confdefs.h <<\EOF
5428 #define HAVE_VPRINTF 1
5429 EOF
5430
5431     fi
5432 fi
5433
5434 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
5435   LIBOBJS="$LIBOBJS vprint.$ac_objext"
5436 fi
5437
5438 echo "$as_me:5438: checking return type of signal handlers" >&5
5439 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5440 if test "${ac_cv_type_signal+set}" = set; then
5441   echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443   cat >conftest.$ac_ext <<_ACEOF
5444 #line 5444 "configure"
5445 #include "confdefs.h"
5446 #include <sys/types.h>
5447 #include <signal.h>
5448 #ifdef signal
5449 # undef signal
5450 #endif
5451 #ifdef __cplusplus
5452 extern "C" void (*signal (int, void (*)(int)))(int);
5453 #else
5454 void (*signal ()) ();
5455 #endif
5456
5457 int
5458 main ()
5459 {
5460 int i;
5461   ;
5462   return 0;
5463 }
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (eval echo "$as_me:5466: \"$ac_compile\"") >&5
5467   (eval $ac_compile) 2>&5
5468   ac_status=$?
5469   echo "$as_me:5469: \$? = $ac_status" >&5
5470   (exit $ac_status); } &&
5471          { ac_try='test -s conftest.$ac_objext'
5472   { (eval echo "$as_me:5472: \"$ac_try\"") >&5
5473   (eval $ac_try) 2>&5
5474   ac_status=$?
5475   echo "$as_me:5475: \$? = $ac_status" >&5
5476   (exit $ac_status); }; }; then
5477   ac_cv_type_signal=void
5478 else
5479   echo "$as_me: failed program was:" >&5
5480 cat conftest.$ac_ext >&5
5481 ac_cv_type_signal=int
5482 fi
5483 rm -f conftest.$ac_objext conftest.$ac_ext
5484 fi
5485 echo "$as_me:5485: result: $ac_cv_type_signal" >&5
5486 echo "${ECHO_T}$ac_cv_type_signal" >&6
5487
5488 cat >>confdefs.h <<EOF
5489 #define RETSIGTYPE $ac_cv_type_signal
5490 EOF
5491
5492 echo "$as_me:5492: checking for __setostype" >&5
5493 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
5494 if test "${ac_cv_func___setostype+set}" = set; then
5495   echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497   cat >conftest.$ac_ext <<_ACEOF
5498 #line 5498 "configure"
5499 #include "confdefs.h"
5500 /* System header to define __stub macros and hopefully few prototypes,
5501     which can conflict with char __setostype (); below.  */
5502 #include <assert.h>
5503 /* Override any gcc2 internal prototype to avoid an error.  */
5504 #ifdef __cplusplus
5505 extern "C"
5506 #endif
5507 /* We use char because int might match the return type of a gcc2
5508    builtin and then its argument prototype would still apply.  */
5509 char __setostype ();
5510 char (*f) ();
5511
5512 int
5513 main ()
5514 {
5515 /* The GNU C library defines this for functions which it implements
5516     to always fail with ENOSYS.  Some functions are actually named
5517     something starting with __ and the normal name is an alias.  */
5518 #if defined (__stub___setostype) || defined (__stub_____setostype)
5519 choke me
5520 #else
5521 f = __setostype;
5522 #endif
5523
5524   ;
5525   return 0;
5526 }
5527 _ACEOF
5528 rm -f conftest.$ac_objext conftest$ac_exeext
5529 if { (eval echo "$as_me:5529: \"$ac_link\"") >&5
5530   (eval $ac_link) 2>&5
5531   ac_status=$?
5532   echo "$as_me:5532: \$? = $ac_status" >&5
5533   (exit $ac_status); } &&
5534          { ac_try='test -s conftest$ac_exeext'
5535   { (eval echo "$as_me:5535: \"$ac_try\"") >&5
5536   (eval $ac_try) 2>&5
5537   ac_status=$?
5538   echo "$as_me:5538: \$? = $ac_status" >&5
5539   (exit $ac_status); }; }; then
5540   ac_cv_func___setostype=yes
5541 else
5542   echo "$as_me: failed program was:" >&5
5543 cat conftest.$ac_ext >&5
5544 ac_cv_func___setostype=no
5545 fi
5546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5547 fi
5548 echo "$as_me:5548: result: $ac_cv_func___setostype" >&5
5549 echo "${ECHO_T}$ac_cv_func___setostype" >&6
5550 if test $ac_cv_func___setostype = yes; then
5551   cat >>confdefs.h <<\EOF
5552 #define HAVE_SETOSTYPE 1
5553 EOF
5554
5555 fi
5556
5557 echo "$as_me:5557: checking for wait3" >&5
5558 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
5559 if test "${ac_cv_func_wait3+set}" = set; then
5560   echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562   cat >conftest.$ac_ext <<_ACEOF
5563 #line 5563 "configure"
5564 #include "confdefs.h"
5565 /* System header to define __stub macros and hopefully few prototypes,
5566     which can conflict with char wait3 (); below.  */
5567 #include <assert.h>
5568 /* Override any gcc2 internal prototype to avoid an error.  */
5569 #ifdef __cplusplus
5570 extern "C"
5571 #endif
5572 /* We use char because int might match the return type of a gcc2
5573    builtin and then its argument prototype would still apply.  */
5574 char wait3 ();
5575 char (*f) ();
5576
5577 int
5578 main ()
5579 {
5580 /* The GNU C library defines this for functions which it implements
5581     to always fail with ENOSYS.  Some functions are actually named
5582     something starting with __ and the normal name is an alias.  */
5583 #if defined (__stub_wait3) || defined (__stub___wait3)
5584 choke me
5585 #else
5586 f = wait3;
5587 #endif
5588
5589   ;
5590   return 0;
5591 }
5592 _ACEOF
5593 rm -f conftest.$ac_objext conftest$ac_exeext
5594 if { (eval echo "$as_me:5594: \"$ac_link\"") >&5
5595   (eval $ac_link) 2>&5
5596   ac_status=$?
5597   echo "$as_me:5597: \$? = $ac_status" >&5
5598   (exit $ac_status); } &&
5599          { ac_try='test -s conftest$ac_exeext'
5600   { (eval echo "$as_me:5600: \"$ac_try\"") >&5
5601   (eval $ac_try) 2>&5
5602   ac_status=$?
5603   echo "$as_me:5603: \$? = $ac_status" >&5
5604   (exit $ac_status); }; }; then
5605   ac_cv_func_wait3=yes
5606 else
5607   echo "$as_me: failed program was:" >&5
5608 cat conftest.$ac_ext >&5
5609 ac_cv_func_wait3=no
5610 fi
5611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5612 fi
5613 echo "$as_me:5613: result: $ac_cv_func_wait3" >&5
5614 echo "${ECHO_T}$ac_cv_func_wait3" >&6
5615 if test $ac_cv_func_wait3 = yes; then
5616   cat >>confdefs.h <<\EOF
5617 #define HAVE_WAIT3 1
5618 EOF
5619
5620 fi
5621
5622 echo "$as_me:5622: checking for mkfifo" >&5
5623 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
5624 if test "${ac_cv_func_mkfifo+set}" = set; then
5625   echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627   cat >conftest.$ac_ext <<_ACEOF
5628 #line 5628 "configure"
5629 #include "confdefs.h"
5630 /* System header to define __stub macros and hopefully few prototypes,
5631     which can conflict with char mkfifo (); below.  */
5632 #include <assert.h>
5633 /* Override any gcc2 internal prototype to avoid an error.  */
5634 #ifdef __cplusplus
5635 extern "C"
5636 #endif
5637 /* We use char because int might match the return type of a gcc2
5638    builtin and then its argument prototype would still apply.  */
5639 char mkfifo ();
5640 char (*f) ();
5641
5642 int
5643 main ()
5644 {
5645 /* The GNU C library defines this for functions which it implements
5646     to always fail with ENOSYS.  Some functions are actually named
5647     something starting with __ and the normal name is an alias.  */
5648 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
5649 choke me
5650 #else
5651 f = mkfifo;
5652 #endif
5653
5654   ;
5655   return 0;
5656 }
5657 _ACEOF
5658 rm -f conftest.$ac_objext conftest$ac_exeext
5659 if { (eval echo "$as_me:5659: \"$ac_link\"") >&5
5660   (eval $ac_link) 2>&5
5661   ac_status=$?
5662   echo "$as_me:5662: \$? = $ac_status" >&5
5663   (exit $ac_status); } &&
5664          { ac_try='test -s conftest$ac_exeext'
5665   { (eval echo "$as_me:5665: \"$ac_try\"") >&5
5666   (eval $ac_try) 2>&5
5667   ac_status=$?
5668   echo "$as_me:5668: \$? = $ac_status" >&5
5669   (exit $ac_status); }; }; then
5670   ac_cv_func_mkfifo=yes
5671 else
5672   echo "$as_me: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5674 ac_cv_func_mkfifo=no
5675 fi
5676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5677 fi
5678 echo "$as_me:5678: result: $ac_cv_func_mkfifo" >&5
5679 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
5680 if test $ac_cv_func_mkfifo = yes; then
5681   cat >>confdefs.h <<\EOF
5682 #define HAVE_MKFIFO 1
5683 EOF
5684
5685 else
5686   cat >>confdefs.h <<\EOF
5687 #define MKFIFO_MISSING 1
5688 EOF
5689
5690 fi
5691
5692 for ac_func in dup2 select getdtablesize getgroups gethostname \
5693                 setdtablesize getpagesize killpg lstat getpeername sbrk \
5694                 getrlimit getrusage gettimeofday waitpid tcgetpgrp \
5695                 readlink
5696 do
5697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5698 echo "$as_me:5698: checking for $ac_func" >&5
5699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5700 if eval "test \"\${$as_ac_var+set}\" = set"; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703   cat >conftest.$ac_ext <<_ACEOF
5704 #line 5704 "configure"
5705 #include "confdefs.h"
5706 /* System header to define __stub macros and hopefully few prototypes,
5707     which can conflict with char $ac_func (); below.  */
5708 #include <assert.h>
5709 /* Override any gcc2 internal prototype to avoid an error.  */
5710 #ifdef __cplusplus
5711 extern "C"
5712 #endif
5713 /* We use char because int might match the return type of a gcc2
5714    builtin and then its argument prototype would still apply.  */
5715 char $ac_func ();
5716 char (*f) ();
5717
5718 int
5719 main ()
5720 {
5721 /* The GNU C library defines this for functions which it implements
5722     to always fail with ENOSYS.  Some functions are actually named
5723     something starting with __ and the normal name is an alias.  */
5724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5725 choke me
5726 #else
5727 f = $ac_func;
5728 #endif
5729
5730   ;
5731   return 0;
5732 }
5733 _ACEOF
5734 rm -f conftest.$ac_objext conftest$ac_exeext
5735 if { (eval echo "$as_me:5735: \"$ac_link\"") >&5
5736   (eval $ac_link) 2>&5
5737   ac_status=$?
5738   echo "$as_me:5738: \$? = $ac_status" >&5
5739   (exit $ac_status); } &&
5740          { ac_try='test -s conftest$ac_exeext'
5741   { (eval echo "$as_me:5741: \"$ac_try\"") >&5
5742   (eval $ac_try) 2>&5
5743   ac_status=$?
5744   echo "$as_me:5744: \$? = $ac_status" >&5
5745   (exit $ac_status); }; }; then
5746   eval "$as_ac_var=yes"
5747 else
5748   echo "$as_me: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5750 eval "$as_ac_var=no"
5751 fi
5752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5753 fi
5754 echo "$as_me:5754: result: `eval echo '${'$as_ac_var'}'`" >&5
5755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5756 if test `eval echo '${'$as_ac_var'}'` = yes; then
5757   cat >>confdefs.h <<EOF
5758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5759 EOF
5760
5761 fi
5762 done
5763
5764 for ac_func in rename
5765 do
5766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5767 echo "$as_me:5767: checking for $ac_func" >&5
5768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5769 if eval "test \"\${$as_ac_var+set}\" = set"; then
5770   echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772   cat >conftest.$ac_ext <<_ACEOF
5773 #line 5773 "configure"
5774 #include "confdefs.h"
5775 /* System header to define __stub macros and hopefully few prototypes,
5776     which can conflict with char $ac_func (); below.  */
5777 #include <assert.h>
5778 /* Override any gcc2 internal prototype to avoid an error.  */
5779 #ifdef __cplusplus
5780 extern "C"
5781 #endif
5782 /* We use char because int might match the return type of a gcc2
5783    builtin and then its argument prototype would still apply.  */
5784 char $ac_func ();
5785 char (*f) ();
5786
5787 int
5788 main ()
5789 {
5790 /* The GNU C library defines this for functions which it implements
5791     to always fail with ENOSYS.  Some functions are actually named
5792     something starting with __ and the normal name is an alias.  */
5793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5794 choke me
5795 #else
5796 f = $ac_func;
5797 #endif
5798
5799   ;
5800   return 0;
5801 }
5802 _ACEOF
5803 rm -f conftest.$ac_objext conftest$ac_exeext
5804 if { (eval echo "$as_me:5804: \"$ac_link\"") >&5
5805   (eval $ac_link) 2>&5
5806   ac_status=$?
5807   echo "$as_me:5807: \$? = $ac_status" >&5
5808   (exit $ac_status); } &&
5809          { ac_try='test -s conftest$ac_exeext'
5810   { (eval echo "$as_me:5810: \"$ac_try\"") >&5
5811   (eval $ac_try) 2>&5
5812   ac_status=$?
5813   echo "$as_me:5813: \$? = $ac_status" >&5
5814   (exit $ac_status); }; }; then
5815   eval "$as_ac_var=yes"
5816 else
5817   echo "$as_me: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5819 eval "$as_ac_var=no"
5820 fi
5821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5822 fi
5823 echo "$as_me:5823: result: `eval echo '${'$as_ac_var'}'`" >&5
5824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5825 if test `eval echo '${'$as_ac_var'}'` = yes; then
5826   cat >>confdefs.h <<EOF
5827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5828 EOF
5829
5830 else
5831   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5832 fi
5833 done
5834
5835 for ac_func in bcopy bzero confstr sysconf pathconf setenv putenv \
5836                 setlinebuf setvbuf setlocale strchr tcgetattr uname \
5837                 ulimit tzset siginterrupt memmove ttyname times \
5838                 getaddrinfo gethostbyname getservbyname inet_aton \
5839                 vsnprintf snprintf vasprintf asprintf fnmatch
5840 do
5841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5842 echo "$as_me:5842: checking for $ac_func" >&5
5843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5844 if eval "test \"\${$as_ac_var+set}\" = set"; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   cat >conftest.$ac_ext <<_ACEOF
5848 #line 5848 "configure"
5849 #include "confdefs.h"
5850 /* System header to define __stub macros and hopefully few prototypes,
5851     which can conflict with char $ac_func (); below.  */
5852 #include <assert.h>
5853 /* Override any gcc2 internal prototype to avoid an error.  */
5854 #ifdef __cplusplus
5855 extern "C"
5856 #endif
5857 /* We use char because int might match the return type of a gcc2
5858    builtin and then its argument prototype would still apply.  */
5859 char $ac_func ();
5860 char (*f) ();
5861
5862 int
5863 main ()
5864 {
5865 /* The GNU C library defines this for functions which it implements
5866     to always fail with ENOSYS.  Some functions are actually named
5867     something starting with __ and the normal name is an alias.  */
5868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5869 choke me
5870 #else
5871 f = $ac_func;
5872 #endif
5873
5874   ;
5875   return 0;
5876 }
5877 _ACEOF
5878 rm -f conftest.$ac_objext conftest$ac_exeext
5879 if { (eval echo "$as_me:5879: \"$ac_link\"") >&5
5880   (eval $ac_link) 2>&5
5881   ac_status=$?
5882   echo "$as_me:5882: \$? = $ac_status" >&5
5883   (exit $ac_status); } &&
5884          { ac_try='test -s conftest$ac_exeext'
5885   { (eval echo "$as_me:5885: \"$ac_try\"") >&5
5886   (eval $ac_try) 2>&5
5887   ac_status=$?
5888   echo "$as_me:5888: \$? = $ac_status" >&5
5889   (exit $ac_status); }; }; then
5890   eval "$as_ac_var=yes"
5891 else
5892   echo "$as_me: failed program was:" >&5
5893 cat conftest.$ac_ext >&5
5894 eval "$as_ac_var=no"
5895 fi
5896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5897 fi
5898 echo "$as_me:5898: result: `eval echo '${'$as_ac_var'}'`" >&5
5899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5900 if test `eval echo '${'$as_ac_var'}'` = yes; then
5901   cat >>confdefs.h <<EOF
5902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5903 EOF
5904
5905 fi
5906 done
5907
5908 for ac_func in isascii isblank isgraph isprint isspace isxdigit
5909 do
5910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5911 echo "$as_me:5911: checking for $ac_func" >&5
5912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5913 if eval "test \"\${$as_ac_var+set}\" = set"; then
5914   echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916   cat >conftest.$ac_ext <<_ACEOF
5917 #line 5917 "configure"
5918 #include "confdefs.h"
5919 /* System header to define __stub macros and hopefully few prototypes,
5920     which can conflict with char $ac_func (); below.  */
5921 #include <assert.h>
5922 /* Override any gcc2 internal prototype to avoid an error.  */
5923 #ifdef __cplusplus
5924 extern "C"
5925 #endif
5926 /* We use char because int might match the return type of a gcc2
5927    builtin and then its argument prototype would still apply.  */
5928 char $ac_func ();
5929 char (*f) ();
5930
5931 int
5932 main ()
5933 {
5934 /* The GNU C library defines this for functions which it implements
5935     to always fail with ENOSYS.  Some functions are actually named
5936     something starting with __ and the normal name is an alias.  */
5937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5938 choke me
5939 #else
5940 f = $ac_func;
5941 #endif
5942
5943   ;
5944   return 0;
5945 }
5946 _ACEOF
5947 rm -f conftest.$ac_objext conftest$ac_exeext
5948 if { (eval echo "$as_me:5948: \"$ac_link\"") >&5
5949   (eval $ac_link) 2>&5
5950   ac_status=$?
5951   echo "$as_me:5951: \$? = $ac_status" >&5
5952   (exit $ac_status); } &&
5953          { ac_try='test -s conftest$ac_exeext'
5954   { (eval echo "$as_me:5954: \"$ac_try\"") >&5
5955   (eval $ac_try) 2>&5
5956   ac_status=$?
5957   echo "$as_me:5957: \$? = $ac_status" >&5
5958   (exit $ac_status); }; }; then
5959   eval "$as_ac_var=yes"
5960 else
5961   echo "$as_me: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5963 eval "$as_ac_var=no"
5964 fi
5965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5966 fi
5967 echo "$as_me:5967: result: `eval echo '${'$as_ac_var'}'`" >&5
5968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5969 if test `eval echo '${'$as_ac_var'}'` = yes; then
5970   cat >>confdefs.h <<EOF
5971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5972 EOF
5973
5974 fi
5975 done
5976
5977 for ac_func in getcwd strcasecmp strerror strpbrk strtod
5978 do
5979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5980 echo "$as_me:5980: checking for $ac_func" >&5
5981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5982 if eval "test \"\${$as_ac_var+set}\" = set"; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   cat >conftest.$ac_ext <<_ACEOF
5986 #line 5986 "configure"
5987 #include "confdefs.h"
5988 /* System header to define __stub macros and hopefully few prototypes,
5989     which can conflict with char $ac_func (); below.  */
5990 #include <assert.h>
5991 /* Override any gcc2 internal prototype to avoid an error.  */
5992 #ifdef __cplusplus
5993 extern "C"
5994 #endif
5995 /* We use char because int might match the return type of a gcc2
5996    builtin and then its argument prototype would still apply.  */
5997 char $ac_func ();
5998 char (*f) ();
5999
6000 int
6001 main ()
6002 {
6003 /* The GNU C library defines this for functions which it implements
6004     to always fail with ENOSYS.  Some functions are actually named
6005     something starting with __ and the normal name is an alias.  */
6006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6007 choke me
6008 #else
6009 f = $ac_func;
6010 #endif
6011
6012   ;
6013   return 0;
6014 }
6015 _ACEOF
6016 rm -f conftest.$ac_objext conftest$ac_exeext
6017 if { (eval echo "$as_me:6017: \"$ac_link\"") >&5
6018   (eval $ac_link) 2>&5
6019   ac_status=$?
6020   echo "$as_me:6020: \$? = $ac_status" >&5
6021   (exit $ac_status); } &&
6022          { ac_try='test -s conftest$ac_exeext'
6023   { (eval echo "$as_me:6023: \"$ac_try\"") >&5
6024   (eval $ac_try) 2>&5
6025   ac_status=$?
6026   echo "$as_me:6026: \$? = $ac_status" >&5
6027   (exit $ac_status); }; }; then
6028   eval "$as_ac_var=yes"
6029 else
6030   echo "$as_me: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6032 eval "$as_ac_var=no"
6033 fi
6034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6035 fi
6036 echo "$as_me:6036: result: `eval echo '${'$as_ac_var'}'`" >&5
6037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6038 if test `eval echo '${'$as_ac_var'}'` = yes; then
6039   cat >>confdefs.h <<EOF
6040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6041 EOF
6042
6043 else
6044   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6045 fi
6046 done
6047
6048 for ac_func in strtol strtoul strtoll strtoull strtoimax strtoumax
6049 do
6050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6051 echo "$as_me:6051: checking for $ac_func" >&5
6052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6053 if eval "test \"\${$as_ac_var+set}\" = set"; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   cat >conftest.$ac_ext <<_ACEOF
6057 #line 6057 "configure"
6058 #include "confdefs.h"
6059 /* System header to define __stub macros and hopefully few prototypes,
6060     which can conflict with char $ac_func (); below.  */
6061 #include <assert.h>
6062 /* Override any gcc2 internal prototype to avoid an error.  */
6063 #ifdef __cplusplus
6064 extern "C"
6065 #endif
6066 /* We use char because int might match the return type of a gcc2
6067    builtin and then its argument prototype would still apply.  */
6068 char $ac_func ();
6069 char (*f) ();
6070
6071 int
6072 main ()
6073 {
6074 /* The GNU C library defines this for functions which it implements
6075     to always fail with ENOSYS.  Some functions are actually named
6076     something starting with __ and the normal name is an alias.  */
6077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6078 choke me
6079 #else
6080 f = $ac_func;
6081 #endif
6082
6083   ;
6084   return 0;
6085 }
6086 _ACEOF
6087 rm -f conftest.$ac_objext conftest$ac_exeext
6088 if { (eval echo "$as_me:6088: \"$ac_link\"") >&5
6089   (eval $ac_link) 2>&5
6090   ac_status=$?
6091   echo "$as_me:6091: \$? = $ac_status" >&5
6092   (exit $ac_status); } &&
6093          { ac_try='test -s conftest$ac_exeext'
6094   { (eval echo "$as_me:6094: \"$ac_try\"") >&5
6095   (eval $ac_try) 2>&5
6096   ac_status=$?
6097   echo "$as_me:6097: \$? = $ac_status" >&5
6098   (exit $ac_status); }; }; then
6099   eval "$as_ac_var=yes"
6100 else
6101   echo "$as_me: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6103 eval "$as_ac_var=no"
6104 fi
6105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6106 fi
6107 echo "$as_me:6107: result: `eval echo '${'$as_ac_var'}'`" >&5
6108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6109 if test `eval echo '${'$as_ac_var'}'` = yes; then
6110   cat >>confdefs.h <<EOF
6111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6112 EOF
6113
6114 else
6115   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6116 fi
6117 done
6118
6119 echo "$as_me:6119: checking whether strtold is declared" >&5
6120 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
6121 if test "${ac_cv_have_decl_strtold+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   cat >conftest.$ac_ext <<_ACEOF
6125 #line 6125 "configure"
6126 #include "confdefs.h"
6127 $ac_includes_default
6128 int
6129 main ()
6130 {
6131 #ifndef strtold
6132   char *p = (char *) strtold;
6133 #endif
6134
6135   ;
6136   return 0;
6137 }
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (eval echo "$as_me:6140: \"$ac_compile\"") >&5
6141   (eval $ac_compile) 2>&5
6142   ac_status=$?
6143   echo "$as_me:6143: \$? = $ac_status" >&5
6144   (exit $ac_status); } &&
6145          { ac_try='test -s conftest.$ac_objext'
6146   { (eval echo "$as_me:6146: \"$ac_try\"") >&5
6147   (eval $ac_try) 2>&5
6148   ac_status=$?
6149   echo "$as_me:6149: \$? = $ac_status" >&5
6150   (exit $ac_status); }; }; then
6151   ac_cv_have_decl_strtold=yes
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 cat conftest.$ac_ext >&5
6155 ac_cv_have_decl_strtold=no
6156 fi
6157 rm -f conftest.$ac_objext conftest.$ac_ext
6158 fi
6159 echo "$as_me:6159: result: $ac_cv_have_decl_strtold" >&5
6160 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
6161 if test $ac_cv_have_decl_strtold = yes; then
6162
6163 cat >>confdefs.h <<EOF
6164 #define HAVE_DECL_STRTOLD 1
6165 EOF
6166
6167 else
6168   cat >>confdefs.h <<EOF
6169 #define HAVE_DECL_STRTOLD 0
6170 EOF
6171
6172 fi
6173
6174 echo "$as_me:6174: checking whether confstr is declared" >&5
6175 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
6176 if test "${ac_cv_have_decl_confstr+set}" = set; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   cat >conftest.$ac_ext <<_ACEOF
6180 #line 6180 "configure"
6181 #include "confdefs.h"
6182 $ac_includes_default
6183 int
6184 main ()
6185 {
6186 #ifndef confstr
6187   char *p = (char *) confstr;
6188 #endif
6189
6190   ;
6191   return 0;
6192 }
6193 _ACEOF
6194 rm -f conftest.$ac_objext
6195 if { (eval echo "$as_me:6195: \"$ac_compile\"") >&5
6196   (eval $ac_compile) 2>&5
6197   ac_status=$?
6198   echo "$as_me:6198: \$? = $ac_status" >&5
6199   (exit $ac_status); } &&
6200          { ac_try='test -s conftest.$ac_objext'
6201   { (eval echo "$as_me:6201: \"$ac_try\"") >&5
6202   (eval $ac_try) 2>&5
6203   ac_status=$?
6204   echo "$as_me:6204: \$? = $ac_status" >&5
6205   (exit $ac_status); }; }; then
6206   ac_cv_have_decl_confstr=yes
6207 else
6208   echo "$as_me: failed program was:" >&5
6209 cat conftest.$ac_ext >&5
6210 ac_cv_have_decl_confstr=no
6211 fi
6212 rm -f conftest.$ac_objext conftest.$ac_ext
6213 fi
6214 echo "$as_me:6214: result: $ac_cv_have_decl_confstr" >&5
6215 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
6216 if test $ac_cv_have_decl_confstr = yes; then
6217
6218 cat >>confdefs.h <<EOF
6219 #define HAVE_DECL_CONFSTR 1
6220 EOF
6221
6222 else
6223   cat >>confdefs.h <<EOF
6224 #define HAVE_DECL_CONFSTR 0
6225 EOF
6226
6227 fi
6228
6229 echo "$as_me:6229: checking whether sbrk is declared" >&5
6230 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
6231 if test "${ac_cv_have_decl_sbrk+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   cat >conftest.$ac_ext <<_ACEOF
6235 #line 6235 "configure"
6236 #include "confdefs.h"
6237 $ac_includes_default
6238 int
6239 main ()
6240 {
6241 #ifndef sbrk
6242   char *p = (char *) sbrk;
6243 #endif
6244
6245   ;
6246   return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext
6250 if { (eval echo "$as_me:6250: \"$ac_compile\"") >&5
6251   (eval $ac_compile) 2>&5
6252   ac_status=$?
6253   echo "$as_me:6253: \$? = $ac_status" >&5
6254   (exit $ac_status); } &&
6255          { ac_try='test -s conftest.$ac_objext'
6256   { (eval echo "$as_me:6256: \"$ac_try\"") >&5
6257   (eval $ac_try) 2>&5
6258   ac_status=$?
6259   echo "$as_me:6259: \$? = $ac_status" >&5
6260   (exit $ac_status); }; }; then
6261   ac_cv_have_decl_sbrk=yes
6262 else
6263   echo "$as_me: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6265 ac_cv_have_decl_sbrk=no
6266 fi
6267 rm -f conftest.$ac_objext conftest.$ac_ext
6268 fi
6269 echo "$as_me:6269: result: $ac_cv_have_decl_sbrk" >&5
6270 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
6271 if test $ac_cv_have_decl_sbrk = yes; then
6272
6273 cat >>confdefs.h <<EOF
6274 #define HAVE_DECL_SBRK 1
6275 EOF
6276
6277 else
6278   cat >>confdefs.h <<EOF
6279 #define HAVE_DECL_SBRK 0
6280 EOF
6281
6282 fi
6283
6284 echo "$as_me:6284: checking whether printf is declared" >&5
6285 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
6286 if test "${ac_cv_have_decl_printf+set}" = set; then
6287   echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289   cat >conftest.$ac_ext <<_ACEOF
6290 #line 6290 "configure"
6291 #include "confdefs.h"
6292 $ac_includes_default
6293 int
6294 main ()
6295 {
6296 #ifndef printf
6297   char *p = (char *) printf;
6298 #endif
6299
6300   ;
6301   return 0;
6302 }
6303 _ACEOF
6304 rm -f conftest.$ac_objext
6305 if { (eval echo "$as_me:6305: \"$ac_compile\"") >&5
6306   (eval $ac_compile) 2>&5
6307   ac_status=$?
6308   echo "$as_me:6308: \$? = $ac_status" >&5
6309   (exit $ac_status); } &&
6310          { ac_try='test -s conftest.$ac_objext'
6311   { (eval echo "$as_me:6311: \"$ac_try\"") >&5
6312   (eval $ac_try) 2>&5
6313   ac_status=$?
6314   echo "$as_me:6314: \$? = $ac_status" >&5
6315   (exit $ac_status); }; }; then
6316   ac_cv_have_decl_printf=yes
6317 else
6318   echo "$as_me: failed program was:" >&5
6319 cat conftest.$ac_ext >&5
6320 ac_cv_have_decl_printf=no
6321 fi
6322 rm -f conftest.$ac_objext conftest.$ac_ext
6323 fi
6324 echo "$as_me:6324: result: $ac_cv_have_decl_printf" >&5
6325 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
6326 if test $ac_cv_have_decl_printf = yes; then
6327
6328 cat >>confdefs.h <<EOF
6329 #define HAVE_DECL_PRINTF 1
6330 EOF
6331
6332 else
6333   cat >>confdefs.h <<EOF
6334 #define HAVE_DECL_PRINTF 0
6335 EOF
6336
6337 fi
6338
6339 echo "$as_me:6339: checking whether strsignal is declared" >&5
6340 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
6341 if test "${ac_cv_have_decl_strsignal+set}" = set; then
6342   echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344   cat >conftest.$ac_ext <<_ACEOF
6345 #line 6345 "configure"
6346 #include "confdefs.h"
6347 $ac_includes_default
6348 int
6349 main ()
6350 {
6351 #ifndef strsignal
6352   char *p = (char *) strsignal;
6353 #endif
6354
6355   ;
6356   return 0;
6357 }
6358 _ACEOF
6359 rm -f conftest.$ac_objext
6360 if { (eval echo "$as_me:6360: \"$ac_compile\"") >&5
6361   (eval $ac_compile) 2>&5
6362   ac_status=$?
6363   echo "$as_me:6363: \$? = $ac_status" >&5
6364   (exit $ac_status); } &&
6365          { ac_try='test -s conftest.$ac_objext'
6366   { (eval echo "$as_me:6366: \"$ac_try\"") >&5
6367   (eval $ac_try) 2>&5
6368   ac_status=$?
6369   echo "$as_me:6369: \$? = $ac_status" >&5
6370   (exit $ac_status); }; }; then
6371   ac_cv_have_decl_strsignal=yes
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6375 ac_cv_have_decl_strsignal=no
6376 fi
6377 rm -f conftest.$ac_objext conftest.$ac_ext
6378 fi
6379 echo "$as_me:6379: result: $ac_cv_have_decl_strsignal" >&5
6380 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
6381 if test $ac_cv_have_decl_strsignal = yes; then
6382
6383 cat >>confdefs.h <<EOF
6384 #define HAVE_DECL_STRSIGNAL 1
6385 EOF
6386
6387 else
6388   cat >>confdefs.h <<EOF
6389 #define HAVE_DECL_STRSIGNAL 0
6390 EOF
6391
6392 fi
6393
6394 echo "$as_me:6394: checking for declaration of strtoimax" >&5
6395 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
6396 if test "${bash_cv_decl_strtoimax+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   cat >conftest.$ac_ext <<_ACEOF
6400 #line 6400 "configure"
6401 #include "confdefs.h"
6402
6403 #if STDC_HEADERS
6404 #  include <stdlib.h>
6405 #endif
6406 #if HAVE_INTTYPES_H
6407 #  include <inttypes.h>
6408 #endif
6409
6410 int
6411 main ()
6412 {
6413 return !strtoimax;
6414   ;
6415   return 0;
6416 }
6417 _ACEOF
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (eval echo "$as_me:6419: \"$ac_link\"") >&5
6420   (eval $ac_link) 2>&5
6421   ac_status=$?
6422   echo "$as_me:6422: \$? = $ac_status" >&5
6423   (exit $ac_status); } &&
6424          { ac_try='test -s conftest$ac_exeext'
6425   { (eval echo "$as_me:6425: \"$ac_try\"") >&5
6426   (eval $ac_try) 2>&5
6427   ac_status=$?
6428   echo "$as_me:6428: \$? = $ac_status" >&5
6429   (exit $ac_status); }; }; then
6430   bash_cv_decl_strtoimax=yes
6431 else
6432   echo "$as_me: failed program was:" >&5
6433 cat conftest.$ac_ext >&5
6434 bash_cv_decl_strtoimax=no
6435 fi
6436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6437 fi
6438 echo "$as_me:6438: result: $bash_cv_decl_strtoimax" >&5
6439 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
6440 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6441 if test $bash_cv_decl_strtoimax = yes; then
6442   cat >>confdefs.h <<EOF
6443 #define $bash_tr_func 1
6444 EOF
6445
6446 else
6447   cat >>confdefs.h <<EOF
6448 #define $bash_tr_func 0
6449 EOF
6450
6451 fi
6452
6453 echo "$as_me:6453: checking for declaration of strtol" >&5
6454 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
6455 if test "${bash_cv_decl_strtol+set}" = set; then
6456   echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458   cat >conftest.$ac_ext <<_ACEOF
6459 #line 6459 "configure"
6460 #include "confdefs.h"
6461
6462 #if STDC_HEADERS
6463 #  include <stdlib.h>
6464 #endif
6465 #if HAVE_INTTYPES_H
6466 #  include <inttypes.h>
6467 #endif
6468
6469 int
6470 main ()
6471 {
6472 return !strtol;
6473   ;
6474   return 0;
6475 }
6476 _ACEOF
6477 rm -f conftest.$ac_objext conftest$ac_exeext
6478 if { (eval echo "$as_me:6478: \"$ac_link\"") >&5
6479   (eval $ac_link) 2>&5
6480   ac_status=$?
6481   echo "$as_me:6481: \$? = $ac_status" >&5
6482   (exit $ac_status); } &&
6483          { ac_try='test -s conftest$ac_exeext'
6484   { (eval echo "$as_me:6484: \"$ac_try\"") >&5
6485   (eval $ac_try) 2>&5
6486   ac_status=$?
6487   echo "$as_me:6487: \$? = $ac_status" >&5
6488   (exit $ac_status); }; }; then
6489   bash_cv_decl_strtol=yes
6490 else
6491   echo "$as_me: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6493 bash_cv_decl_strtol=no
6494 fi
6495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6496 fi
6497 echo "$as_me:6497: result: $bash_cv_decl_strtol" >&5
6498 echo "${ECHO_T}$bash_cv_decl_strtol" >&6
6499 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6500 if test $bash_cv_decl_strtol = yes; then
6501   cat >>confdefs.h <<EOF
6502 #define $bash_tr_func 1
6503 EOF
6504
6505 else
6506   cat >>confdefs.h <<EOF
6507 #define $bash_tr_func 0
6508 EOF
6509
6510 fi
6511
6512 echo "$as_me:6512: checking for declaration of strtoll" >&5
6513 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
6514 if test "${bash_cv_decl_strtoll+set}" = set; then
6515   echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517   cat >conftest.$ac_ext <<_ACEOF
6518 #line 6518 "configure"
6519 #include "confdefs.h"
6520
6521 #if STDC_HEADERS
6522 #  include <stdlib.h>
6523 #endif
6524 #if HAVE_INTTYPES_H
6525 #  include <inttypes.h>
6526 #endif
6527
6528 int
6529 main ()
6530 {
6531 return !strtoll;
6532   ;
6533   return 0;
6534 }
6535 _ACEOF
6536 rm -f conftest.$ac_objext conftest$ac_exeext
6537 if { (eval echo "$as_me:6537: \"$ac_link\"") >&5
6538   (eval $ac_link) 2>&5
6539   ac_status=$?
6540   echo "$as_me:6540: \$? = $ac_status" >&5
6541   (exit $ac_status); } &&
6542          { ac_try='test -s conftest$ac_exeext'
6543   { (eval echo "$as_me:6543: \"$ac_try\"") >&5
6544   (eval $ac_try) 2>&5
6545   ac_status=$?
6546   echo "$as_me:6546: \$? = $ac_status" >&5
6547   (exit $ac_status); }; }; then
6548   bash_cv_decl_strtoll=yes
6549 else
6550   echo "$as_me: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6552 bash_cv_decl_strtoll=no
6553 fi
6554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6555 fi
6556 echo "$as_me:6556: result: $bash_cv_decl_strtoll" >&5
6557 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
6558 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6559 if test $bash_cv_decl_strtoll = yes; then
6560   cat >>confdefs.h <<EOF
6561 #define $bash_tr_func 1
6562 EOF
6563
6564 else
6565   cat >>confdefs.h <<EOF
6566 #define $bash_tr_func 0
6567 EOF
6568
6569 fi
6570
6571 echo "$as_me:6571: checking for declaration of strtoul" >&5
6572 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
6573 if test "${bash_cv_decl_strtoul+set}" = set; then
6574   echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576   cat >conftest.$ac_ext <<_ACEOF
6577 #line 6577 "configure"
6578 #include "confdefs.h"
6579
6580 #if STDC_HEADERS
6581 #  include <stdlib.h>
6582 #endif
6583 #if HAVE_INTTYPES_H
6584 #  include <inttypes.h>
6585 #endif
6586
6587 int
6588 main ()
6589 {
6590 return !strtoul;
6591   ;
6592   return 0;
6593 }
6594 _ACEOF
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:6596: \"$ac_link\"") >&5
6597   (eval $ac_link) 2>&5
6598   ac_status=$?
6599   echo "$as_me:6599: \$? = $ac_status" >&5
6600   (exit $ac_status); } &&
6601          { ac_try='test -s conftest$ac_exeext'
6602   { (eval echo "$as_me:6602: \"$ac_try\"") >&5
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:6605: \$? = $ac_status" >&5
6606   (exit $ac_status); }; }; then
6607   bash_cv_decl_strtoul=yes
6608 else
6609   echo "$as_me: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6611 bash_cv_decl_strtoul=no
6612 fi
6613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6614 fi
6615 echo "$as_me:6615: result: $bash_cv_decl_strtoul" >&5
6616 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
6617 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6618 if test $bash_cv_decl_strtoul = yes; then
6619   cat >>confdefs.h <<EOF
6620 #define $bash_tr_func 1
6621 EOF
6622
6623 else
6624   cat >>confdefs.h <<EOF
6625 #define $bash_tr_func 0
6626 EOF
6627
6628 fi
6629
6630 echo "$as_me:6630: checking for declaration of strtoull" >&5
6631 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
6632 if test "${bash_cv_decl_strtoull+set}" = set; then
6633   echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635   cat >conftest.$ac_ext <<_ACEOF
6636 #line 6636 "configure"
6637 #include "confdefs.h"
6638
6639 #if STDC_HEADERS
6640 #  include <stdlib.h>
6641 #endif
6642 #if HAVE_INTTYPES_H
6643 #  include <inttypes.h>
6644 #endif
6645
6646 int
6647 main ()
6648 {
6649 return !strtoull;
6650   ;
6651   return 0;
6652 }
6653 _ACEOF
6654 rm -f conftest.$ac_objext conftest$ac_exeext
6655 if { (eval echo "$as_me:6655: \"$ac_link\"") >&5
6656   (eval $ac_link) 2>&5
6657   ac_status=$?
6658   echo "$as_me:6658: \$? = $ac_status" >&5
6659   (exit $ac_status); } &&
6660          { ac_try='test -s conftest$ac_exeext'
6661   { (eval echo "$as_me:6661: \"$ac_try\"") >&5
6662   (eval $ac_try) 2>&5
6663   ac_status=$?
6664   echo "$as_me:6664: \$? = $ac_status" >&5
6665   (exit $ac_status); }; }; then
6666   bash_cv_decl_strtoull=yes
6667 else
6668   echo "$as_me: failed program was:" >&5
6669 cat conftest.$ac_ext >&5
6670 bash_cv_decl_strtoull=no
6671 fi
6672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6673 fi
6674 echo "$as_me:6674: result: $bash_cv_decl_strtoull" >&5
6675 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
6676 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6677 if test $bash_cv_decl_strtoull = yes; then
6678   cat >>confdefs.h <<EOF
6679 #define $bash_tr_func 1
6680 EOF
6681
6682 else
6683   cat >>confdefs.h <<EOF
6684 #define $bash_tr_func 0
6685 EOF
6686
6687 fi
6688
6689 echo "$as_me:6689: checking for declaration of strtoumax" >&5
6690 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
6691 if test "${bash_cv_decl_strtoumax+set}" = set; then
6692   echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694   cat >conftest.$ac_ext <<_ACEOF
6695 #line 6695 "configure"
6696 #include "confdefs.h"
6697
6698 #if STDC_HEADERS
6699 #  include <stdlib.h>
6700 #endif
6701 #if HAVE_INTTYPES_H
6702 #  include <inttypes.h>
6703 #endif
6704
6705 int
6706 main ()
6707 {
6708 return !strtoumax;
6709   ;
6710   return 0;
6711 }
6712 _ACEOF
6713 rm -f conftest.$ac_objext conftest$ac_exeext
6714 if { (eval echo "$as_me:6714: \"$ac_link\"") >&5
6715   (eval $ac_link) 2>&5
6716   ac_status=$?
6717   echo "$as_me:6717: \$? = $ac_status" >&5
6718   (exit $ac_status); } &&
6719          { ac_try='test -s conftest$ac_exeext'
6720   { (eval echo "$as_me:6720: \"$ac_try\"") >&5
6721   (eval $ac_try) 2>&5
6722   ac_status=$?
6723   echo "$as_me:6723: \$? = $ac_status" >&5
6724   (exit $ac_status); }; }; then
6725   bash_cv_decl_strtoumax=yes
6726 else
6727   echo "$as_me: failed program was:" >&5
6728 cat conftest.$ac_ext >&5
6729 bash_cv_decl_strtoumax=no
6730 fi
6731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6732 fi
6733 echo "$as_me:6733: result: $bash_cv_decl_strtoumax" >&5
6734 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
6735 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6736 if test $bash_cv_decl_strtoumax = yes; then
6737   cat >>confdefs.h <<EOF
6738 #define $bash_tr_func 1
6739 EOF
6740
6741 else
6742   cat >>confdefs.h <<EOF
6743 #define $bash_tr_func 0
6744 EOF
6745
6746 fi
6747
6748 for ac_header in libintl.h
6749 do
6750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6751 echo "$as_me:6751: checking for $ac_header" >&5
6752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6753 if eval "test \"\${$as_ac_Header+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 #include <$ac_header>
6760 _ACEOF
6761 if { (eval echo "$as_me:6761: \"$ac_cpp conftest.$ac_ext\"") >&5
6762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6763   ac_status=$?
6764   egrep -v '^ *\+' conftest.er1 >conftest.err
6765   rm -f conftest.er1
6766   cat conftest.err >&5
6767   echo "$as_me:6767: \$? = $ac_status" >&5
6768   (exit $ac_status); } >/dev/null; then
6769   if test -s conftest.err; then
6770     ac_cpp_err=$ac_c_preproc_warn_flag
6771   else
6772     ac_cpp_err=
6773   fi
6774 else
6775   ac_cpp_err=yes
6776 fi
6777 if test -z "$ac_cpp_err"; then
6778   eval "$as_ac_Header=yes"
6779 else
6780   echo "$as_me: failed program was:" >&5
6781   cat conftest.$ac_ext >&5
6782   eval "$as_ac_Header=no"
6783 fi
6784 rm -f conftest.err conftest.$ac_ext
6785 fi
6786 echo "$as_me:6786: result: `eval echo '${'$as_ac_Header'}'`" >&5
6787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6789   cat >>confdefs.h <<EOF
6790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6791 EOF
6792
6793 fi
6794 done
6795
6796 for ac_func in gettext textdomain bindtextdomain
6797 do
6798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6799 echo "$as_me:6799: checking for $ac_func" >&5
6800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6801 if eval "test \"\${$as_ac_var+set}\" = set"; then
6802   echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804   cat >conftest.$ac_ext <<_ACEOF
6805 #line 6805 "configure"
6806 #include "confdefs.h"
6807 /* System header to define __stub macros and hopefully few prototypes,
6808     which can conflict with char $ac_func (); below.  */
6809 #include <assert.h>
6810 /* Override any gcc2 internal prototype to avoid an error.  */
6811 #ifdef __cplusplus
6812 extern "C"
6813 #endif
6814 /* We use char because int might match the return type of a gcc2
6815    builtin and then its argument prototype would still apply.  */
6816 char $ac_func ();
6817 char (*f) ();
6818
6819 int
6820 main ()
6821 {
6822 /* The GNU C library defines this for functions which it implements
6823     to always fail with ENOSYS.  Some functions are actually named
6824     something starting with __ and the normal name is an alias.  */
6825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6826 choke me
6827 #else
6828 f = $ac_func;
6829 #endif
6830
6831   ;
6832   return 0;
6833 }
6834 _ACEOF
6835 rm -f conftest.$ac_objext conftest$ac_exeext
6836 if { (eval echo "$as_me:6836: \"$ac_link\"") >&5
6837   (eval $ac_link) 2>&5
6838   ac_status=$?
6839   echo "$as_me:6839: \$? = $ac_status" >&5
6840   (exit $ac_status); } &&
6841          { ac_try='test -s conftest$ac_exeext'
6842   { (eval echo "$as_me:6842: \"$ac_try\"") >&5
6843   (eval $ac_try) 2>&5
6844   ac_status=$?
6845   echo "$as_me:6845: \$? = $ac_status" >&5
6846   (exit $ac_status); }; }; then
6847   eval "$as_ac_var=yes"
6848 else
6849   echo "$as_me: failed program was:" >&5
6850 cat conftest.$ac_ext >&5
6851 eval "$as_ac_var=no"
6852 fi
6853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6854 fi
6855 echo "$as_me:6855: result: `eval echo '${'$as_ac_var'}'`" >&5
6856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6857 if test `eval echo '${'$as_ac_var'}'` = yes; then
6858   cat >>confdefs.h <<EOF
6859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6860 EOF
6861
6862 fi
6863 done
6864
6865 if test "$ac_cv_func_bindtextdomain" = "no"; then
6866
6867 echo "$as_me:6867: checking for bindtextdomain in -lintl" >&5
6868 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
6869 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   ac_check_lib_save_LIBS=$LIBS
6873 LIBS="-lintl  $LIBS"
6874 cat >conftest.$ac_ext <<_ACEOF
6875 #line 6875 "configure"
6876 #include "confdefs.h"
6877
6878 /* Override any gcc2 internal prototype to avoid an error.  */
6879 #ifdef __cplusplus
6880 extern "C"
6881 #endif
6882 /* We use char because int might match the return type of a gcc2
6883    builtin and then its argument prototype would still apply.  */
6884 char bindtextdomain ();
6885 int
6886 main ()
6887 {
6888 bindtextdomain ();
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   ac_cv_lib_intl_bindtextdomain=yes
6906 else
6907   echo "$as_me: failed program was:" >&5
6908 cat conftest.$ac_ext >&5
6909 ac_cv_lib_intl_bindtextdomain=no
6910 fi
6911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6912 LIBS=$ac_check_lib_save_LIBS
6913 fi
6914 echo "$as_me:6914: result: $ac_cv_lib_intl_bindtextdomain" >&5
6915 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
6916 if test $ac_cv_lib_intl_bindtextdomain = yes; then
6917   cat >>confdefs.h <<EOF
6918 #define HAVE_LIBINTL 1
6919 EOF
6920
6921   LIBS="-lintl $LIBS"
6922
6923 fi
6924
6925     if test "$ac_cv_lib_intl" = "yes"; then
6926
6927 for ac_func in gettext textdomain bindtextdomain
6928 do
6929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6930 echo "$as_me:6930: checking for $ac_func" >&5
6931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6932 if eval "test \"\${$as_ac_var+set}\" = set"; then
6933   echo $ECHO_N "(cached) $ECHO_C" >&6
6934 else
6935   cat >conftest.$ac_ext <<_ACEOF
6936 #line 6936 "configure"
6937 #include "confdefs.h"
6938 /* System header to define __stub macros and hopefully few prototypes,
6939     which can conflict with char $ac_func (); below.  */
6940 #include <assert.h>
6941 /* Override any gcc2 internal prototype to avoid an error.  */
6942 #ifdef __cplusplus
6943 extern "C"
6944 #endif
6945 /* We use char because int might match the return type of a gcc2
6946    builtin and then its argument prototype would still apply.  */
6947 char $ac_func ();
6948 char (*f) ();
6949
6950 int
6951 main ()
6952 {
6953 /* The GNU C library defines this for functions which it implements
6954     to always fail with ENOSYS.  Some functions are actually named
6955     something starting with __ and the normal name is an alias.  */
6956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6957 choke me
6958 #else
6959 f = $ac_func;
6960 #endif
6961
6962   ;
6963   return 0;
6964 }
6965 _ACEOF
6966 rm -f conftest.$ac_objext conftest$ac_exeext
6967 if { (eval echo "$as_me:6967: \"$ac_link\"") >&5
6968   (eval $ac_link) 2>&5
6969   ac_status=$?
6970   echo "$as_me:6970: \$? = $ac_status" >&5
6971   (exit $ac_status); } &&
6972          { ac_try='test -s conftest$ac_exeext'
6973   { (eval echo "$as_me:6973: \"$ac_try\"") >&5
6974   (eval $ac_try) 2>&5
6975   ac_status=$?
6976   echo "$as_me:6976: \$? = $ac_status" >&5
6977   (exit $ac_status); }; }; then
6978   eval "$as_ac_var=yes"
6979 else
6980   echo "$as_me: failed program was:" >&5
6981 cat conftest.$ac_ext >&5
6982 eval "$as_ac_var=no"
6983 fi
6984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6985 fi
6986 echo "$as_me:6986: result: `eval echo '${'$as_ac_var'}'`" >&5
6987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6988 if test `eval echo '${'$as_ac_var'}'` = yes; then
6989   cat >>confdefs.h <<EOF
6990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6991 EOF
6992
6993 fi
6994 done
6995
6996     fi
6997 fi
6998
6999 if test "$opt_static_link" != yes; then
7000
7001 echo "$as_me:7001: checking for dlopen in -ldl" >&5
7002 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7003 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7004   echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006   ac_check_lib_save_LIBS=$LIBS
7007 LIBS="-ldl  $LIBS"
7008 cat >conftest.$ac_ext <<_ACEOF
7009 #line 7009 "configure"
7010 #include "confdefs.h"
7011
7012 /* Override any gcc2 internal prototype to avoid an error.  */
7013 #ifdef __cplusplus
7014 extern "C"
7015 #endif
7016 /* We use char because int might match the return type of a gcc2
7017    builtin and then its argument prototype would still apply.  */
7018 char dlopen ();
7019 int
7020 main ()
7021 {
7022 dlopen ();
7023   ;
7024   return 0;
7025 }
7026 _ACEOF
7027 rm -f conftest.$ac_objext conftest$ac_exeext
7028 if { (eval echo "$as_me:7028: \"$ac_link\"") >&5
7029   (eval $ac_link) 2>&5
7030   ac_status=$?
7031   echo "$as_me:7031: \$? = $ac_status" >&5
7032   (exit $ac_status); } &&
7033          { ac_try='test -s conftest$ac_exeext'
7034   { (eval echo "$as_me:7034: \"$ac_try\"") >&5
7035   (eval $ac_try) 2>&5
7036   ac_status=$?
7037   echo "$as_me:7037: \$? = $ac_status" >&5
7038   (exit $ac_status); }; }; then
7039   ac_cv_lib_dl_dlopen=yes
7040 else
7041   echo "$as_me: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7043 ac_cv_lib_dl_dlopen=no
7044 fi
7045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7046 LIBS=$ac_check_lib_save_LIBS
7047 fi
7048 echo "$as_me:7048: result: $ac_cv_lib_dl_dlopen" >&5
7049 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7050 if test $ac_cv_lib_dl_dlopen = yes; then
7051   cat >>confdefs.h <<EOF
7052 #define HAVE_LIBDL 1
7053 EOF
7054
7055   LIBS="-ldl $LIBS"
7056
7057 fi
7058
7059 for ac_func in dlopen dlclose dlsym
7060 do
7061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7062 echo "$as_me:7062: checking for $ac_func" >&5
7063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7064 if eval "test \"\${$as_ac_var+set}\" = set"; then
7065   echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067   cat >conftest.$ac_ext <<_ACEOF
7068 #line 7068 "configure"
7069 #include "confdefs.h"
7070 /* System header to define __stub macros and hopefully few prototypes,
7071     which can conflict with char $ac_func (); below.  */
7072 #include <assert.h>
7073 /* Override any gcc2 internal prototype to avoid an error.  */
7074 #ifdef __cplusplus
7075 extern "C"
7076 #endif
7077 /* We use char because int might match the return type of a gcc2
7078    builtin and then its argument prototype would still apply.  */
7079 char $ac_func ();
7080 char (*f) ();
7081
7082 int
7083 main ()
7084 {
7085 /* The GNU C library defines this for functions which it implements
7086     to always fail with ENOSYS.  Some functions are actually named
7087     something starting with __ and the normal name is an alias.  */
7088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7089 choke me
7090 #else
7091 f = $ac_func;
7092 #endif
7093
7094   ;
7095   return 0;
7096 }
7097 _ACEOF
7098 rm -f conftest.$ac_objext conftest$ac_exeext
7099 if { (eval echo "$as_me:7099: \"$ac_link\"") >&5
7100   (eval $ac_link) 2>&5
7101   ac_status=$?
7102   echo "$as_me:7102: \$? = $ac_status" >&5
7103   (exit $ac_status); } &&
7104          { ac_try='test -s conftest$ac_exeext'
7105   { (eval echo "$as_me:7105: \"$ac_try\"") >&5
7106   (eval $ac_try) 2>&5
7107   ac_status=$?
7108   echo "$as_me:7108: \$? = $ac_status" >&5
7109   (exit $ac_status); }; }; then
7110   eval "$as_ac_var=yes"
7111 else
7112   echo "$as_me: failed program was:" >&5
7113 cat conftest.$ac_ext >&5
7114 eval "$as_ac_var=no"
7115 fi
7116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7117 fi
7118 echo "$as_me:7118: result: `eval echo '${'$as_ac_var'}'`" >&5
7119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7120 if test `eval echo '${'$as_ac_var'}'` = yes; then
7121   cat >>confdefs.h <<EOF
7122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7123 EOF
7124
7125 fi
7126 done
7127
7128 fi
7129
7130 echo "$as_me:7130: checking for sys_siglist declaration in signal.h or unistd.h" >&5
7131 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
7132 if test "${ac_cv_decl_sys_siglist+set}" = set; then
7133   echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135   cat >conftest.$ac_ext <<_ACEOF
7136 #line 7136 "configure"
7137 #include "confdefs.h"
7138 #include <sys/types.h>
7139 #include <signal.h>
7140 /* NetBSD declares sys_siglist in unistd.h.  */
7141 #if HAVE_UNISTD_H
7142 # include <unistd.h>
7143 #endif
7144
7145 int
7146 main ()
7147 {
7148 char *msg = *(sys_siglist + 1);
7149   ;
7150   return 0;
7151 }
7152 _ACEOF
7153 rm -f conftest.$ac_objext
7154 if { (eval echo "$as_me:7154: \"$ac_compile\"") >&5
7155   (eval $ac_compile) 2>&5
7156   ac_status=$?
7157   echo "$as_me:7157: \$? = $ac_status" >&5
7158   (exit $ac_status); } &&
7159          { ac_try='test -s conftest.$ac_objext'
7160   { (eval echo "$as_me:7160: \"$ac_try\"") >&5
7161   (eval $ac_try) 2>&5
7162   ac_status=$?
7163   echo "$as_me:7163: \$? = $ac_status" >&5
7164   (exit $ac_status); }; }; then
7165   ac_cv_decl_sys_siglist=yes
7166 else
7167   echo "$as_me: failed program was:" >&5
7168 cat conftest.$ac_ext >&5
7169 ac_cv_decl_sys_siglist=no
7170 fi
7171 rm -f conftest.$ac_objext conftest.$ac_ext
7172 fi
7173 echo "$as_me:7173: result: $ac_cv_decl_sys_siglist" >&5
7174 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
7175 if test $ac_cv_decl_sys_siglist = yes; then
7176
7177 cat >>confdefs.h <<\EOF
7178 #define SYS_SIGLIST_DECLARED 1
7179 EOF
7180
7181 fi
7182
7183 if test "$ac_cv_func_inet_aton" != 'yes'; then
7184
7185 echo "$as_me:7185: checking for inet_aton" >&5
7186 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
7187 if test "${bash_cv_func_inet_aton+set}" = set; then
7188   echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190   cat >conftest.$ac_ext <<_ACEOF
7191 #line 7191 "configure"
7192 #include "confdefs.h"
7193
7194 #include <sys/types.h>
7195 #include <netinet/in.h>
7196 #include <arpa/inet.h>
7197 struct in_addr ap;
7198 int
7199 main ()
7200 {
7201  inet_aton("127.0.0.1", &ap);
7202   ;
7203   return 0;
7204 }
7205 _ACEOF
7206 rm -f conftest.$ac_objext conftest$ac_exeext
7207 if { (eval echo "$as_me:7207: \"$ac_link\"") >&5
7208   (eval $ac_link) 2>&5
7209   ac_status=$?
7210   echo "$as_me:7210: \$? = $ac_status" >&5
7211   (exit $ac_status); } &&
7212          { ac_try='test -s conftest$ac_exeext'
7213   { (eval echo "$as_me:7213: \"$ac_try\"") >&5
7214   (eval $ac_try) 2>&5
7215   ac_status=$?
7216   echo "$as_me:7216: \$? = $ac_status" >&5
7217   (exit $ac_status); }; }; then
7218   bash_cv_func_inet_aton=yes
7219 else
7220   echo "$as_me: failed program was:" >&5
7221 cat conftest.$ac_ext >&5
7222 bash_cv_func_inet_aton=no
7223 fi
7224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7225 fi
7226 echo "$as_me:7226: result: $bash_cv_func_inet_aton" >&5
7227 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
7228 if test $bash_cv_func_inet_aton = yes; then
7229   cat >>confdefs.h <<\EOF
7230 #define HAVE_INET_ATON 1
7231 EOF
7232
7233 else
7234   LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
7235 fi
7236
7237 fi
7238
7239 case "$host_os" in
7240 irix4*)
7241 echo "$as_me:7241: checking for getpwent in -lsun" >&5
7242 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
7243 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
7244   echo $ECHO_N "(cached) $ECHO_C" >&6
7245 else
7246   ac_check_lib_save_LIBS=$LIBS
7247 LIBS="-lsun  $LIBS"
7248 cat >conftest.$ac_ext <<_ACEOF
7249 #line 7249 "configure"
7250 #include "confdefs.h"
7251
7252 /* Override any gcc2 internal prototype to avoid an error.  */
7253 #ifdef __cplusplus
7254 extern "C"
7255 #endif
7256 /* We use char because int might match the return type of a gcc2
7257    builtin and then its argument prototype would still apply.  */
7258 char getpwent ();
7259 int
7260 main ()
7261 {
7262 getpwent ();
7263   ;
7264   return 0;
7265 }
7266 _ACEOF
7267 rm -f conftest.$ac_objext conftest$ac_exeext
7268 if { (eval echo "$as_me:7268: \"$ac_link\"") >&5
7269   (eval $ac_link) 2>&5
7270   ac_status=$?
7271   echo "$as_me:7271: \$? = $ac_status" >&5
7272   (exit $ac_status); } &&
7273          { ac_try='test -s conftest$ac_exeext'
7274   { (eval echo "$as_me:7274: \"$ac_try\"") >&5
7275   (eval $ac_try) 2>&5
7276   ac_status=$?
7277   echo "$as_me:7277: \$? = $ac_status" >&5
7278   (exit $ac_status); }; }; then
7279   ac_cv_lib_sun_getpwent=yes
7280 else
7281   echo "$as_me: failed program was:" >&5
7282 cat conftest.$ac_ext >&5
7283 ac_cv_lib_sun_getpwent=no
7284 fi
7285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7286 LIBS=$ac_check_lib_save_LIBS
7287 fi
7288 echo "$as_me:7288: result: $ac_cv_lib_sun_getpwent" >&5
7289 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
7290 if test $ac_cv_lib_sun_getpwent = yes; then
7291   cat >>confdefs.h <<EOF
7292 #define HAVE_LIBSUN 1
7293 EOF
7294
7295   LIBS="-lsun $LIBS"
7296
7297 fi
7298  ;;
7299 esac
7300
7301 if test "$ac_cv_func_getpeername" = no; then
7302
7303 if test "X$bash_cv_have_socklib" = "X"; then
7304 _bash_needmsg=
7305 else
7306 echo "$as_me:7306: checking for socket library" >&5
7307 echo $ECHO_N "checking for socket library... $ECHO_C" >&6
7308 _bash_needmsg=yes
7309 fi
7310 if test "${bash_cv_have_socklib+set}" = set; then
7311   echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313   echo "$as_me:7313: checking for getpeername in -lsocket" >&5
7314 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
7315 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318   ac_check_lib_save_LIBS=$LIBS
7319 LIBS="-lsocket -lnsl $LIBS"
7320 cat >conftest.$ac_ext <<_ACEOF
7321 #line 7321 "configure"
7322 #include "confdefs.h"
7323
7324 /* Override any gcc2 internal prototype to avoid an error.  */
7325 #ifdef __cplusplus
7326 extern "C"
7327 #endif
7328 /* We use char because int might match the return type of a gcc2
7329    builtin and then its argument prototype would still apply.  */
7330 char getpeername ();
7331 int
7332 main ()
7333 {
7334 getpeername ();
7335   ;
7336   return 0;
7337 }
7338 _ACEOF
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (eval echo "$as_me:7340: \"$ac_link\"") >&5
7341   (eval $ac_link) 2>&5
7342   ac_status=$?
7343   echo "$as_me:7343: \$? = $ac_status" >&5
7344   (exit $ac_status); } &&
7345          { ac_try='test -s conftest$ac_exeext'
7346   { (eval echo "$as_me:7346: \"$ac_try\"") >&5
7347   (eval $ac_try) 2>&5
7348   ac_status=$?
7349   echo "$as_me:7349: \$? = $ac_status" >&5
7350   (exit $ac_status); }; }; then
7351   ac_cv_lib_socket_getpeername=yes
7352 else
7353   echo "$as_me: failed program was:" >&5
7354 cat conftest.$ac_ext >&5
7355 ac_cv_lib_socket_getpeername=no
7356 fi
7357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7358 LIBS=$ac_check_lib_save_LIBS
7359 fi
7360 echo "$as_me:7360: result: $ac_cv_lib_socket_getpeername" >&5
7361 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
7362 if test $ac_cv_lib_socket_getpeername = yes; then
7363   bash_cv_have_socklib=yes
7364 else
7365   bash_cv_have_socklib=no
7366 fi
7367
7368 fi
7369
7370 if test "X$_bash_needmsg" = Xyes; then
7371   echo "$as_me:7371: result: $bash_cv_have_socklib" >&5
7372 echo "${ECHO_T}$bash_cv_have_socklib" >&6
7373   _bash_needmsg=
7374 fi
7375 if test $bash_cv_have_socklib = yes; then
7376   # check for libnsl, add it to LIBS if present
7377   if test "X$bash_cv_have_libnsl" = "X"; then
7378     _bash_needmsg=
7379   else
7380     echo "$as_me:7380: checking for libnsl" >&5
7381 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
7382     _bash_needmsg=yes
7383   fi
7384   if test "${bash_cv_have_libnsl+set}" = set; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   echo "$as_me:7387: checking for t_open in -lnsl" >&5
7388 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
7389 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
7390   echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392   ac_check_lib_save_LIBS=$LIBS
7393 LIBS="-lnsl  $LIBS"
7394 cat >conftest.$ac_ext <<_ACEOF
7395 #line 7395 "configure"
7396 #include "confdefs.h"
7397
7398 /* Override any gcc2 internal prototype to avoid an error.  */
7399 #ifdef __cplusplus
7400 extern "C"
7401 #endif
7402 /* We use char because int might match the return type of a gcc2
7403    builtin and then its argument prototype would still apply.  */
7404 char t_open ();
7405 int
7406 main ()
7407 {
7408 t_open ();
7409   ;
7410   return 0;
7411 }
7412 _ACEOF
7413 rm -f conftest.$ac_objext conftest$ac_exeext
7414 if { (eval echo "$as_me:7414: \"$ac_link\"") >&5
7415   (eval $ac_link) 2>&5
7416   ac_status=$?
7417   echo "$as_me:7417: \$? = $ac_status" >&5
7418   (exit $ac_status); } &&
7419          { ac_try='test -s conftest$ac_exeext'
7420   { (eval echo "$as_me:7420: \"$ac_try\"") >&5
7421   (eval $ac_try) 2>&5
7422   ac_status=$?
7423   echo "$as_me:7423: \$? = $ac_status" >&5
7424   (exit $ac_status); }; }; then
7425   ac_cv_lib_nsl_t_open=yes
7426 else
7427   echo "$as_me: failed program was:" >&5
7428 cat conftest.$ac_ext >&5
7429 ac_cv_lib_nsl_t_open=no
7430 fi
7431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7432 LIBS=$ac_check_lib_save_LIBS
7433 fi
7434 echo "$as_me:7434: result: $ac_cv_lib_nsl_t_open" >&5
7435 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
7436 if test $ac_cv_lib_nsl_t_open = yes; then
7437   bash_cv_have_libnsl=yes
7438 else
7439   bash_cv_have_libnsl=no
7440 fi
7441
7442 fi
7443
7444   if test "X$_bash_needmsg" = Xyes; then
7445     echo "$as_me:7445: result: $bash_cv_have_libnsl" >&5
7446 echo "${ECHO_T}$bash_cv_have_libnsl" >&6
7447     _bash_needmsg=
7448   fi
7449   if test $bash_cv_have_libnsl = yes; then
7450     LIBS="-lsocket -lnsl $LIBS"
7451   else
7452     LIBS="-lsocket $LIBS"
7453   fi
7454   cat >>confdefs.h <<\EOF
7455 #define HAVE_LIBSOCKET 1
7456 EOF
7457
7458   cat >>confdefs.h <<\EOF
7459 #define HAVE_GETPEERNAME 1
7460 EOF
7461
7462 fi
7463
7464 fi
7465 if test "$ac_cv_func_gethostbyname" = no; then
7466         if test "X$bash_cv_have_gethostbyname" = "X"; then
7467 _bash_needmsg=yes
7468 else
7469 echo "$as_me:7469: checking for gethostbyname in socket library" >&5
7470 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
7471 _bash_needmsg=
7472 fi
7473 if test "${bash_cv_have_gethostbyname+set}" = set; then
7474   echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476   cat >conftest.$ac_ext <<_ACEOF
7477 #line 7477 "configure"
7478 #include "confdefs.h"
7479 #include <netdb.h>
7480 int
7481 main ()
7482 {
7483  struct hostent *hp;
7484   hp = gethostbyname("localhost");
7485
7486   ;
7487   return 0;
7488 }
7489 _ACEOF
7490 rm -f conftest.$ac_objext conftest$ac_exeext
7491 if { (eval echo "$as_me:7491: \"$ac_link\"") >&5
7492   (eval $ac_link) 2>&5
7493   ac_status=$?
7494   echo "$as_me:7494: \$? = $ac_status" >&5
7495   (exit $ac_status); } &&
7496          { ac_try='test -s conftest$ac_exeext'
7497   { (eval echo "$as_me:7497: \"$ac_try\"") >&5
7498   (eval $ac_try) 2>&5
7499   ac_status=$?
7500   echo "$as_me:7500: \$? = $ac_status" >&5
7501   (exit $ac_status); }; }; then
7502   bash_cv_have_gethostbyname=yes
7503 else
7504   echo "$as_me: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7506 bash_cv_have_gethostbyname=no
7507 fi
7508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7509
7510 fi
7511
7512 if test "X$_bash_needmsg" = Xyes; then
7513     echo "$as_me:7513: checking for gethostbyname in socket library" >&5
7514 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
7515 fi
7516 echo "$as_me:7516: result: $bash_cv_have_gethostbyname" >&5
7517 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
7518 if test "$bash_cv_have_gethostbyname" = yes; then
7519 cat >>confdefs.h <<\EOF
7520 #define HAVE_GETHOSTBYNAME 1
7521 EOF
7522
7523 fi
7524
7525 fi
7526
7527 echo "$as_me:7527: checking for uid_t in sys/types.h" >&5
7528 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7529 if test "${ac_cv_type_uid_t+set}" = set; then
7530   echo $ECHO_N "(cached) $ECHO_C" >&6
7531 else
7532   cat >conftest.$ac_ext <<_ACEOF
7533 #line 7533 "configure"
7534 #include "confdefs.h"
7535 #include <sys/types.h>
7536
7537 _ACEOF
7538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7539   egrep "uid_t" >/dev/null 2>&1; then
7540   ac_cv_type_uid_t=yes
7541 else
7542   ac_cv_type_uid_t=no
7543 fi
7544 rm -f conftest*
7545
7546 fi
7547 echo "$as_me:7547: result: $ac_cv_type_uid_t" >&5
7548 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7549 if test $ac_cv_type_uid_t = no; then
7550
7551 cat >>confdefs.h <<\EOF
7552 #define uid_t int
7553 EOF
7554
7555 cat >>confdefs.h <<\EOF
7556 #define gid_t int
7557 EOF
7558
7559 fi
7560
7561 echo "$as_me:7561: checking type of array argument to getgroups" >&5
7562 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7563 if test "${ac_cv_type_getgroups+set}" = set; then
7564   echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566   if test "$cross_compiling" = yes; then
7567   ac_cv_type_getgroups=cross
7568 else
7569   cat >conftest.$ac_ext <<_ACEOF
7570 #line 7570 "configure"
7571 #include "confdefs.h"
7572 /* Thanks to Mike Rendell for this test.  */
7573 #include <sys/types.h>
7574 #define NGID 256
7575 #undef MAX
7576 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7577
7578 int
7579 main ()
7580 {
7581   gid_t gidset[NGID];
7582   int i, n;
7583   union { gid_t gval; long lval; }  val;
7584
7585   val.lval = -1;
7586   for (i = 0; i < NGID; i++)
7587     gidset[i] = val.gval;
7588   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7589                  gidset);
7590   /* Exit non-zero if getgroups seems to require an array of ints.  This
7591      happens when gid_t is short but getgroups modifies an array of ints.  */
7592   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7593 }
7594 _ACEOF
7595 rm -f conftest$ac_exeext
7596 if { (eval echo "$as_me:7596: \"$ac_link\"") >&5
7597   (eval $ac_link) 2>&5
7598   ac_status=$?
7599   echo "$as_me:7599: \$? = $ac_status" >&5
7600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7601   { (eval echo "$as_me:7601: \"$ac_try\"") >&5
7602   (eval $ac_try) 2>&5
7603   ac_status=$?
7604   echo "$as_me:7604: \$? = $ac_status" >&5
7605   (exit $ac_status); }; }; then
7606   ac_cv_type_getgroups=gid_t
7607 else
7608   echo "$as_me: program exited with status $ac_status" >&5
7609 echo "$as_me: failed program was:" >&5
7610 cat conftest.$ac_ext >&5
7611 ac_cv_type_getgroups=int
7612 fi
7613 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7614 fi
7615 if test $ac_cv_type_getgroups = cross; then
7616         cat >conftest.$ac_ext <<_ACEOF
7617 #line 7617 "configure"
7618 #include "confdefs.h"
7619 #include <unistd.h>
7620
7621 _ACEOF
7622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7623   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7624   ac_cv_type_getgroups=gid_t
7625 else
7626   ac_cv_type_getgroups=int
7627 fi
7628 rm -f conftest*
7629
7630 fi
7631 fi
7632 echo "$as_me:7632: result: $ac_cv_type_getgroups" >&5
7633 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7634
7635 cat >>confdefs.h <<EOF
7636 #define GETGROUPS_T $ac_cv_type_getgroups
7637 EOF
7638
7639 echo "$as_me:7639: checking for off_t" >&5
7640 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7641 if test "${ac_cv_type_off_t+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644   cat >conftest.$ac_ext <<_ACEOF
7645 #line 7645 "configure"
7646 #include "confdefs.h"
7647 $ac_includes_default
7648 int
7649 main ()
7650 {
7651 if ((off_t *) 0)
7652   return 0;
7653 if (sizeof (off_t))
7654   return 0;
7655   ;
7656   return 0;
7657 }
7658 _ACEOF
7659 rm -f conftest.$ac_objext
7660 if { (eval echo "$as_me:7660: \"$ac_compile\"") >&5
7661   (eval $ac_compile) 2>&5
7662   ac_status=$?
7663   echo "$as_me:7663: \$? = $ac_status" >&5
7664   (exit $ac_status); } &&
7665          { ac_try='test -s conftest.$ac_objext'
7666   { (eval echo "$as_me:7666: \"$ac_try\"") >&5
7667   (eval $ac_try) 2>&5
7668   ac_status=$?
7669   echo "$as_me:7669: \$? = $ac_status" >&5
7670   (exit $ac_status); }; }; then
7671   ac_cv_type_off_t=yes
7672 else
7673   echo "$as_me: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7675 ac_cv_type_off_t=no
7676 fi
7677 rm -f conftest.$ac_objext conftest.$ac_ext
7678 fi
7679 echo "$as_me:7679: result: $ac_cv_type_off_t" >&5
7680 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7681 if test $ac_cv_type_off_t = yes; then
7682   :
7683 else
7684
7685 cat >>confdefs.h <<EOF
7686 #define off_t long
7687 EOF
7688
7689 fi
7690
7691 echo "$as_me:7691: checking for mode_t" >&5
7692 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7693 if test "${ac_cv_type_mode_t+set}" = set; then
7694   echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696   cat >conftest.$ac_ext <<_ACEOF
7697 #line 7697 "configure"
7698 #include "confdefs.h"
7699 $ac_includes_default
7700 int
7701 main ()
7702 {
7703 if ((mode_t *) 0)
7704   return 0;
7705 if (sizeof (mode_t))
7706   return 0;
7707   ;
7708   return 0;
7709 }
7710 _ACEOF
7711 rm -f conftest.$ac_objext
7712 if { (eval echo "$as_me:7712: \"$ac_compile\"") >&5
7713   (eval $ac_compile) 2>&5
7714   ac_status=$?
7715   echo "$as_me:7715: \$? = $ac_status" >&5
7716   (exit $ac_status); } &&
7717          { ac_try='test -s conftest.$ac_objext'
7718   { (eval echo "$as_me:7718: \"$ac_try\"") >&5
7719   (eval $ac_try) 2>&5
7720   ac_status=$?
7721   echo "$as_me:7721: \$? = $ac_status" >&5
7722   (exit $ac_status); }; }; then
7723   ac_cv_type_mode_t=yes
7724 else
7725   echo "$as_me: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7727 ac_cv_type_mode_t=no
7728 fi
7729 rm -f conftest.$ac_objext conftest.$ac_ext
7730 fi
7731 echo "$as_me:7731: result: $ac_cv_type_mode_t" >&5
7732 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7733 if test $ac_cv_type_mode_t = yes; then
7734   :
7735 else
7736
7737 cat >>confdefs.h <<EOF
7738 #define mode_t int
7739 EOF
7740
7741 fi
7742
7743 echo "$as_me:7743: checking for uid_t in sys/types.h" >&5
7744 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7745 if test "${ac_cv_type_uid_t+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   cat >conftest.$ac_ext <<_ACEOF
7749 #line 7749 "configure"
7750 #include "confdefs.h"
7751 #include <sys/types.h>
7752
7753 _ACEOF
7754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7755   egrep "uid_t" >/dev/null 2>&1; then
7756   ac_cv_type_uid_t=yes
7757 else
7758   ac_cv_type_uid_t=no
7759 fi
7760 rm -f conftest*
7761
7762 fi
7763 echo "$as_me:7763: result: $ac_cv_type_uid_t" >&5
7764 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7765 if test $ac_cv_type_uid_t = no; then
7766
7767 cat >>confdefs.h <<\EOF
7768 #define uid_t int
7769 EOF
7770
7771 cat >>confdefs.h <<\EOF
7772 #define gid_t int
7773 EOF
7774
7775 fi
7776
7777 echo "$as_me:7777: checking for pid_t" >&5
7778 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7779 if test "${ac_cv_type_pid_t+set}" = set; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782   cat >conftest.$ac_ext <<_ACEOF
7783 #line 7783 "configure"
7784 #include "confdefs.h"
7785 $ac_includes_default
7786 int
7787 main ()
7788 {
7789 if ((pid_t *) 0)
7790   return 0;
7791 if (sizeof (pid_t))
7792   return 0;
7793   ;
7794   return 0;
7795 }
7796 _ACEOF
7797 rm -f conftest.$ac_objext
7798 if { (eval echo "$as_me:7798: \"$ac_compile\"") >&5
7799   (eval $ac_compile) 2>&5
7800   ac_status=$?
7801   echo "$as_me:7801: \$? = $ac_status" >&5
7802   (exit $ac_status); } &&
7803          { ac_try='test -s conftest.$ac_objext'
7804   { (eval echo "$as_me:7804: \"$ac_try\"") >&5
7805   (eval $ac_try) 2>&5
7806   ac_status=$?
7807   echo "$as_me:7807: \$? = $ac_status" >&5
7808   (exit $ac_status); }; }; then
7809   ac_cv_type_pid_t=yes
7810 else
7811   echo "$as_me: failed program was:" >&5
7812 cat conftest.$ac_ext >&5
7813 ac_cv_type_pid_t=no
7814 fi
7815 rm -f conftest.$ac_objext conftest.$ac_ext
7816 fi
7817 echo "$as_me:7817: result: $ac_cv_type_pid_t" >&5
7818 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7819 if test $ac_cv_type_pid_t = yes; then
7820   :
7821 else
7822
7823 cat >>confdefs.h <<EOF
7824 #define pid_t int
7825 EOF
7826
7827 fi
7828
7829 echo "$as_me:7829: checking for size_t" >&5
7830 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7831 if test "${ac_cv_type_size_t+set}" = set; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834   cat >conftest.$ac_ext <<_ACEOF
7835 #line 7835 "configure"
7836 #include "confdefs.h"
7837 $ac_includes_default
7838 int
7839 main ()
7840 {
7841 if ((size_t *) 0)
7842   return 0;
7843 if (sizeof (size_t))
7844   return 0;
7845   ;
7846   return 0;
7847 }
7848 _ACEOF
7849 rm -f conftest.$ac_objext
7850 if { (eval echo "$as_me:7850: \"$ac_compile\"") >&5
7851   (eval $ac_compile) 2>&5
7852   ac_status=$?
7853   echo "$as_me:7853: \$? = $ac_status" >&5
7854   (exit $ac_status); } &&
7855          { ac_try='test -s conftest.$ac_objext'
7856   { (eval echo "$as_me:7856: \"$ac_try\"") >&5
7857   (eval $ac_try) 2>&5
7858   ac_status=$?
7859   echo "$as_me:7859: \$? = $ac_status" >&5
7860   (exit $ac_status); }; }; then
7861   ac_cv_type_size_t=yes
7862 else
7863   echo "$as_me: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7865 ac_cv_type_size_t=no
7866 fi
7867 rm -f conftest.$ac_objext conftest.$ac_ext
7868 fi
7869 echo "$as_me:7869: result: $ac_cv_type_size_t" >&5
7870 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7871 if test $ac_cv_type_size_t = yes; then
7872   :
7873 else
7874
7875 cat >>confdefs.h <<EOF
7876 #define size_t unsigned
7877 EOF
7878
7879 fi
7880
7881 echo "$as_me:7881: checking for ssize_t" >&5
7882 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7883 if test "${ac_cv_type_ssize_t+set}" = set; then
7884   echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886   cat >conftest.$ac_ext <<_ACEOF
7887 #line 7887 "configure"
7888 #include "confdefs.h"
7889 $ac_includes_default
7890 int
7891 main ()
7892 {
7893 if ((ssize_t *) 0)
7894   return 0;
7895 if (sizeof (ssize_t))
7896   return 0;
7897   ;
7898   return 0;
7899 }
7900 _ACEOF
7901 rm -f conftest.$ac_objext
7902 if { (eval echo "$as_me:7902: \"$ac_compile\"") >&5
7903   (eval $ac_compile) 2>&5
7904   ac_status=$?
7905   echo "$as_me:7905: \$? = $ac_status" >&5
7906   (exit $ac_status); } &&
7907          { ac_try='test -s conftest.$ac_objext'
7908   { (eval echo "$as_me:7908: \"$ac_try\"") >&5
7909   (eval $ac_try) 2>&5
7910   ac_status=$?
7911   echo "$as_me:7911: \$? = $ac_status" >&5
7912   (exit $ac_status); }; }; then
7913   ac_cv_type_ssize_t=yes
7914 else
7915   echo "$as_me: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7917 ac_cv_type_ssize_t=no
7918 fi
7919 rm -f conftest.$ac_objext conftest.$ac_ext
7920 fi
7921 echo "$as_me:7921: result: $ac_cv_type_ssize_t" >&5
7922 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7923 if test $ac_cv_type_ssize_t = yes; then
7924   :
7925 else
7926
7927 cat >>confdefs.h <<EOF
7928 #define ssize_t int
7929 EOF
7930
7931 fi
7932
7933 echo "$as_me:7933: checking for time_t" >&5
7934 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
7935 if test "${ac_cv_type_time_t+set}" = set; then
7936   echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938   cat >conftest.$ac_ext <<_ACEOF
7939 #line 7939 "configure"
7940 #include "confdefs.h"
7941 $ac_includes_default
7942 int
7943 main ()
7944 {
7945 if ((time_t *) 0)
7946   return 0;
7947 if (sizeof (time_t))
7948   return 0;
7949   ;
7950   return 0;
7951 }
7952 _ACEOF
7953 rm -f conftest.$ac_objext
7954 if { (eval echo "$as_me:7954: \"$ac_compile\"") >&5
7955   (eval $ac_compile) 2>&5
7956   ac_status=$?
7957   echo "$as_me:7957: \$? = $ac_status" >&5
7958   (exit $ac_status); } &&
7959          { ac_try='test -s conftest.$ac_objext'
7960   { (eval echo "$as_me:7960: \"$ac_try\"") >&5
7961   (eval $ac_try) 2>&5
7962   ac_status=$?
7963   echo "$as_me:7963: \$? = $ac_status" >&5
7964   (exit $ac_status); }; }; then
7965   ac_cv_type_time_t=yes
7966 else
7967   echo "$as_me: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7969 ac_cv_type_time_t=no
7970 fi
7971 rm -f conftest.$ac_objext conftest.$ac_ext
7972 fi
7973 echo "$as_me:7973: result: $ac_cv_type_time_t" >&5
7974 echo "${ECHO_T}$ac_cv_type_time_t" >&6
7975 if test $ac_cv_type_time_t = yes; then
7976   :
7977 else
7978
7979 cat >>confdefs.h <<EOF
7980 #define time_t long
7981 EOF
7982
7983 fi
7984
7985 echo "$as_me:7985: checking for long long" >&5
7986 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7987 if test "${bash_cv_type_long_long+set}" = set; then
7988   echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990   cat >conftest.$ac_ext <<_ACEOF
7991 #line 7991 "configure"
7992 #include "confdefs.h"
7993
7994 long long ll = 1; int i = 63;
7995 int
7996 main ()
7997 {
7998
7999 long long llm = (long long) -1;
8000 return ll << i | ll >> i | llm / ll | llm % ll;
8001
8002   ;
8003   return 0;
8004 }
8005 _ACEOF
8006 rm -f conftest.$ac_objext conftest$ac_exeext
8007 if { (eval echo "$as_me:8007: \"$ac_link\"") >&5
8008   (eval $ac_link) 2>&5
8009   ac_status=$?
8010   echo "$as_me:8010: \$? = $ac_status" >&5
8011   (exit $ac_status); } &&
8012          { ac_try='test -s conftest$ac_exeext'
8013   { (eval echo "$as_me:8013: \"$ac_try\"") >&5
8014   (eval $ac_try) 2>&5
8015   ac_status=$?
8016   echo "$as_me:8016: \$? = $ac_status" >&5
8017   (exit $ac_status); }; }; then
8018   bash_cv_type_long_long='long long'
8019 else
8020   echo "$as_me: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8022 bash_cv_type_long_long='long'
8023 fi
8024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8025 fi
8026 echo "$as_me:8026: result: $bash_cv_type_long_long" >&5
8027 echo "${ECHO_T}$bash_cv_type_long_long" >&6
8028 if test "$bash_cv_type_long_long" = 'long long'; then
8029   cat >>confdefs.h <<\EOF
8030 #define HAVE_LONG_LONG 1
8031 EOF
8032
8033 fi
8034
8035 echo "$as_me:8035: checking for unsigned long long" >&5
8036 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8037 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040   cat >conftest.$ac_ext <<_ACEOF
8041 #line 8041 "configure"
8042 #include "confdefs.h"
8043
8044 unsigned long long ull = 1; int i = 63;
8045 int
8046 main ()
8047 {
8048
8049 unsigned long long ullmax = (unsigned long long) -1;
8050 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8051
8052   ;
8053   return 0;
8054 }
8055 _ACEOF
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (eval echo "$as_me:8057: \"$ac_link\"") >&5
8058   (eval $ac_link) 2>&5
8059   ac_status=$?
8060   echo "$as_me:8060: \$? = $ac_status" >&5
8061   (exit $ac_status); } &&
8062          { ac_try='test -s conftest$ac_exeext'
8063   { (eval echo "$as_me:8063: \"$ac_try\"") >&5
8064   (eval $ac_try) 2>&5
8065   ac_status=$?
8066   echo "$as_me:8066: \$? = $ac_status" >&5
8067   (exit $ac_status); }; }; then
8068   bash_cv_type_unsigned_long_long='unsigned long long'
8069 else
8070   echo "$as_me: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8072 bash_cv_type_unsigned_long_long='unsigned long'
8073 fi
8074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8075 fi
8076 echo "$as_me:8076: result: $bash_cv_type_unsigned_long_long" >&5
8077 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
8078 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
8079   cat >>confdefs.h <<\EOF
8080 #define HAVE_UNSIGNED_LONG_LONG 1
8081 EOF
8082
8083 fi
8084
8085 echo "$as_me:8085: checking return type of signal handlers" >&5
8086 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8087 if test "${ac_cv_type_signal+set}" = set; then
8088   echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090   cat >conftest.$ac_ext <<_ACEOF
8091 #line 8091 "configure"
8092 #include "confdefs.h"
8093 #include <sys/types.h>
8094 #include <signal.h>
8095 #ifdef signal
8096 # undef signal
8097 #endif
8098 #ifdef __cplusplus
8099 extern "C" void (*signal (int, void (*)(int)))(int);
8100 #else
8101 void (*signal ()) ();
8102 #endif
8103
8104 int
8105 main ()
8106 {
8107 int i;
8108   ;
8109   return 0;
8110 }
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (eval echo "$as_me:8113: \"$ac_compile\"") >&5
8114   (eval $ac_compile) 2>&5
8115   ac_status=$?
8116   echo "$as_me:8116: \$? = $ac_status" >&5
8117   (exit $ac_status); } &&
8118          { ac_try='test -s conftest.$ac_objext'
8119   { (eval echo "$as_me:8119: \"$ac_try\"") >&5
8120   (eval $ac_try) 2>&5
8121   ac_status=$?
8122   echo "$as_me:8122: \$? = $ac_status" >&5
8123   (exit $ac_status); }; }; then
8124   ac_cv_type_signal=void
8125 else
8126   echo "$as_me: failed program was:" >&5
8127 cat conftest.$ac_ext >&5
8128 ac_cv_type_signal=int
8129 fi
8130 rm -f conftest.$ac_objext conftest.$ac_ext
8131 fi
8132 echo "$as_me:8132: result: $ac_cv_type_signal" >&5
8133 echo "${ECHO_T}$ac_cv_type_signal" >&6
8134
8135 cat >>confdefs.h <<EOF
8136 #define RETSIGTYPE $ac_cv_type_signal
8137 EOF
8138
8139 echo "$as_me:8139: checking for char" >&5
8140 echo $ECHO_N "checking for char... $ECHO_C" >&6
8141 if test "${ac_cv_type_char+set}" = set; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   cat >conftest.$ac_ext <<_ACEOF
8145 #line 8145 "configure"
8146 #include "confdefs.h"
8147 $ac_includes_default
8148 int
8149 main ()
8150 {
8151 if ((char *) 0)
8152   return 0;
8153 if (sizeof (char))
8154   return 0;
8155   ;
8156   return 0;
8157 }
8158 _ACEOF
8159 rm -f conftest.$ac_objext
8160 if { (eval echo "$as_me:8160: \"$ac_compile\"") >&5
8161   (eval $ac_compile) 2>&5
8162   ac_status=$?
8163   echo "$as_me:8163: \$? = $ac_status" >&5
8164   (exit $ac_status); } &&
8165          { ac_try='test -s conftest.$ac_objext'
8166   { (eval echo "$as_me:8166: \"$ac_try\"") >&5
8167   (eval $ac_try) 2>&5
8168   ac_status=$?
8169   echo "$as_me:8169: \$? = $ac_status" >&5
8170   (exit $ac_status); }; }; then
8171   ac_cv_type_char=yes
8172 else
8173   echo "$as_me: failed program was:" >&5
8174 cat conftest.$ac_ext >&5
8175 ac_cv_type_char=no
8176 fi
8177 rm -f conftest.$ac_objext conftest.$ac_ext
8178 fi
8179 echo "$as_me:8179: result: $ac_cv_type_char" >&5
8180 echo "${ECHO_T}$ac_cv_type_char" >&6
8181
8182 echo "$as_me:8182: checking size of char" >&5
8183 echo $ECHO_N "checking size of char... $ECHO_C" >&6
8184 if test "${ac_cv_sizeof_char+set}" = set; then
8185   echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187   if test "$ac_cv_type_char" = yes; then
8188   if test "$cross_compiling" = yes; then
8189   # Depending upon the size, compute the lo and hi bounds.
8190 cat >conftest.$ac_ext <<_ACEOF
8191 #line 8191 "configure"
8192 #include "confdefs.h"
8193 $ac_includes_default
8194 int
8195 main ()
8196 {
8197 int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 rm -f conftest.$ac_objext
8203 if { (eval echo "$as_me:8203: \"$ac_compile\"") >&5
8204   (eval $ac_compile) 2>&5
8205   ac_status=$?
8206   echo "$as_me:8206: \$? = $ac_status" >&5
8207   (exit $ac_status); } &&
8208          { ac_try='test -s conftest.$ac_objext'
8209   { (eval echo "$as_me:8209: \"$ac_try\"") >&5
8210   (eval $ac_try) 2>&5
8211   ac_status=$?
8212   echo "$as_me:8212: \$? = $ac_status" >&5
8213   (exit $ac_status); }; }; then
8214   ac_lo=0 ac_mid=0
8215   while :; do
8216     cat >conftest.$ac_ext <<_ACEOF
8217 #line 8217 "configure"
8218 #include "confdefs.h"
8219 $ac_includes_default
8220 int
8221 main ()
8222 {
8223 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
8224   ;
8225   return 0;
8226 }
8227 _ACEOF
8228 rm -f conftest.$ac_objext
8229 if { (eval echo "$as_me:8229: \"$ac_compile\"") >&5
8230   (eval $ac_compile) 2>&5
8231   ac_status=$?
8232   echo "$as_me:8232: \$? = $ac_status" >&5
8233   (exit $ac_status); } &&
8234          { ac_try='test -s conftest.$ac_objext'
8235   { (eval echo "$as_me:8235: \"$ac_try\"") >&5
8236   (eval $ac_try) 2>&5
8237   ac_status=$?
8238   echo "$as_me:8238: \$? = $ac_status" >&5
8239   (exit $ac_status); }; }; then
8240   ac_hi=$ac_mid; break
8241 else
8242   echo "$as_me: failed program was:" >&5
8243 cat conftest.$ac_ext >&5
8244 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8245 fi
8246 rm -f conftest.$ac_objext conftest.$ac_ext
8247   done
8248 else
8249   echo "$as_me: failed program was:" >&5
8250 cat conftest.$ac_ext >&5
8251 ac_hi=-1 ac_mid=-1
8252   while :; do
8253     cat >conftest.$ac_ext <<_ACEOF
8254 #line 8254 "configure"
8255 #include "confdefs.h"
8256 $ac_includes_default
8257 int
8258 main ()
8259 {
8260 int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
8261   ;
8262   return 0;
8263 }
8264 _ACEOF
8265 rm -f conftest.$ac_objext
8266 if { (eval echo "$as_me:8266: \"$ac_compile\"") >&5
8267   (eval $ac_compile) 2>&5
8268   ac_status=$?
8269   echo "$as_me:8269: \$? = $ac_status" >&5
8270   (exit $ac_status); } &&
8271          { ac_try='test -s conftest.$ac_objext'
8272   { (eval echo "$as_me:8272: \"$ac_try\"") >&5
8273   (eval $ac_try) 2>&5
8274   ac_status=$?
8275   echo "$as_me:8275: \$? = $ac_status" >&5
8276   (exit $ac_status); }; }; then
8277   ac_lo=$ac_mid; break
8278 else
8279   echo "$as_me: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8281 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8282 fi
8283 rm -f conftest.$ac_objext conftest.$ac_ext
8284   done
8285 fi
8286 rm -f conftest.$ac_objext conftest.$ac_ext
8287 # Binary search between lo and hi bounds.
8288 while test "x$ac_lo" != "x$ac_hi"; do
8289   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8290   cat >conftest.$ac_ext <<_ACEOF
8291 #line 8291 "configure"
8292 #include "confdefs.h"
8293 $ac_includes_default
8294 int
8295 main ()
8296 {
8297 int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
8298   ;
8299   return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext
8303 if { (eval echo "$as_me:8303: \"$ac_compile\"") >&5
8304   (eval $ac_compile) 2>&5
8305   ac_status=$?
8306   echo "$as_me:8306: \$? = $ac_status" >&5
8307   (exit $ac_status); } &&
8308          { ac_try='test -s conftest.$ac_objext'
8309   { (eval echo "$as_me:8309: \"$ac_try\"") >&5
8310   (eval $ac_try) 2>&5
8311   ac_status=$?
8312   echo "$as_me:8312: \$? = $ac_status" >&5
8313   (exit $ac_status); }; }; then
8314   ac_hi=$ac_mid
8315 else
8316   echo "$as_me: failed program was:" >&5
8317 cat conftest.$ac_ext >&5
8318 ac_lo=`expr $ac_mid + 1`
8319 fi
8320 rm -f conftest.$ac_objext conftest.$ac_ext
8321 done
8322 ac_cv_sizeof_char=$ac_lo
8323 else
8324   if test "$cross_compiling" = yes; then
8325   { { echo "$as_me:8325: error: cannot run test program while cross compiling" >&5
8326 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8327    { (exit 1); exit 1; }; }
8328 else
8329   cat >conftest.$ac_ext <<_ACEOF
8330 #line 8330 "configure"
8331 #include "confdefs.h"
8332 $ac_includes_default
8333 int
8334 main ()
8335 {
8336 FILE *f = fopen ("conftest.val", "w");
8337 if (!f)
8338   exit (1);
8339 fprintf (f, "%d", (sizeof (char)));
8340 fclose (f);
8341   ;
8342   return 0;
8343 }
8344 _ACEOF
8345 rm -f conftest$ac_exeext
8346 if { (eval echo "$as_me:8346: \"$ac_link\"") >&5
8347   (eval $ac_link) 2>&5
8348   ac_status=$?
8349   echo "$as_me:8349: \$? = $ac_status" >&5
8350   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8351   { (eval echo "$as_me:8351: \"$ac_try\"") >&5
8352   (eval $ac_try) 2>&5
8353   ac_status=$?
8354   echo "$as_me:8354: \$? = $ac_status" >&5
8355   (exit $ac_status); }; }; then
8356   ac_cv_sizeof_char=`cat conftest.val`
8357 else
8358   echo "$as_me: program exited with status $ac_status" >&5
8359 echo "$as_me: failed program was:" >&5
8360 cat conftest.$ac_ext >&5
8361 fi
8362 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8363 fi
8364 fi
8365 rm -f conftest.val
8366 else
8367   ac_cv_sizeof_char=0
8368 fi
8369 fi
8370 echo "$as_me:8370: result: $ac_cv_sizeof_char" >&5
8371 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8372 cat >>confdefs.h <<EOF
8373 #define SIZEOF_CHAR $ac_cv_sizeof_char
8374 EOF
8375
8376 echo "$as_me:8376: checking for short" >&5
8377 echo $ECHO_N "checking for short... $ECHO_C" >&6
8378 if test "${ac_cv_type_short+set}" = set; then
8379   echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381   cat >conftest.$ac_ext <<_ACEOF
8382 #line 8382 "configure"
8383 #include "confdefs.h"
8384 $ac_includes_default
8385 int
8386 main ()
8387 {
8388 if ((short *) 0)
8389   return 0;
8390 if (sizeof (short))
8391   return 0;
8392   ;
8393   return 0;
8394 }
8395 _ACEOF
8396 rm -f conftest.$ac_objext
8397 if { (eval echo "$as_me:8397: \"$ac_compile\"") >&5
8398   (eval $ac_compile) 2>&5
8399   ac_status=$?
8400   echo "$as_me:8400: \$? = $ac_status" >&5
8401   (exit $ac_status); } &&
8402          { ac_try='test -s conftest.$ac_objext'
8403   { (eval echo "$as_me:8403: \"$ac_try\"") >&5
8404   (eval $ac_try) 2>&5
8405   ac_status=$?
8406   echo "$as_me:8406: \$? = $ac_status" >&5
8407   (exit $ac_status); }; }; then
8408   ac_cv_type_short=yes
8409 else
8410   echo "$as_me: failed program was:" >&5
8411 cat conftest.$ac_ext >&5
8412 ac_cv_type_short=no
8413 fi
8414 rm -f conftest.$ac_objext conftest.$ac_ext
8415 fi
8416 echo "$as_me:8416: result: $ac_cv_type_short" >&5
8417 echo "${ECHO_T}$ac_cv_type_short" >&6
8418
8419 echo "$as_me:8419: checking size of short" >&5
8420 echo $ECHO_N "checking size of short... $ECHO_C" >&6
8421 if test "${ac_cv_sizeof_short+set}" = set; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424   if test "$ac_cv_type_short" = yes; then
8425   if test "$cross_compiling" = yes; then
8426   # Depending upon the size, compute the lo and hi bounds.
8427 cat >conftest.$ac_ext <<_ACEOF
8428 #line 8428 "configure"
8429 #include "confdefs.h"
8430 $ac_includes_default
8431 int
8432 main ()
8433 {
8434 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 rm -f conftest.$ac_objext
8440 if { (eval echo "$as_me:8440: \"$ac_compile\"") >&5
8441   (eval $ac_compile) 2>&5
8442   ac_status=$?
8443   echo "$as_me:8443: \$? = $ac_status" >&5
8444   (exit $ac_status); } &&
8445          { ac_try='test -s conftest.$ac_objext'
8446   { (eval echo "$as_me:8446: \"$ac_try\"") >&5
8447   (eval $ac_try) 2>&5
8448   ac_status=$?
8449   echo "$as_me:8449: \$? = $ac_status" >&5
8450   (exit $ac_status); }; }; then
8451   ac_lo=0 ac_mid=0
8452   while :; do
8453     cat >conftest.$ac_ext <<_ACEOF
8454 #line 8454 "configure"
8455 #include "confdefs.h"
8456 $ac_includes_default
8457 int
8458 main ()
8459 {
8460 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
8461   ;
8462   return 0;
8463 }
8464 _ACEOF
8465 rm -f conftest.$ac_objext
8466 if { (eval echo "$as_me:8466: \"$ac_compile\"") >&5
8467   (eval $ac_compile) 2>&5
8468   ac_status=$?
8469   echo "$as_me:8469: \$? = $ac_status" >&5
8470   (exit $ac_status); } &&
8471          { ac_try='test -s conftest.$ac_objext'
8472   { (eval echo "$as_me:8472: \"$ac_try\"") >&5
8473   (eval $ac_try) 2>&5
8474   ac_status=$?
8475   echo "$as_me:8475: \$? = $ac_status" >&5
8476   (exit $ac_status); }; }; then
8477   ac_hi=$ac_mid; break
8478 else
8479   echo "$as_me: failed program was:" >&5
8480 cat conftest.$ac_ext >&5
8481 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8482 fi
8483 rm -f conftest.$ac_objext conftest.$ac_ext
8484   done
8485 else
8486   echo "$as_me: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8488 ac_hi=-1 ac_mid=-1
8489   while :; do
8490     cat >conftest.$ac_ext <<_ACEOF
8491 #line 8491 "configure"
8492 #include "confdefs.h"
8493 $ac_includes_default
8494 int
8495 main ()
8496 {
8497 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 rm -f conftest.$ac_objext
8503 if { (eval echo "$as_me:8503: \"$ac_compile\"") >&5
8504   (eval $ac_compile) 2>&5
8505   ac_status=$?
8506   echo "$as_me:8506: \$? = $ac_status" >&5
8507   (exit $ac_status); } &&
8508          { ac_try='test -s conftest.$ac_objext'
8509   { (eval echo "$as_me:8509: \"$ac_try\"") >&5
8510   (eval $ac_try) 2>&5
8511   ac_status=$?
8512   echo "$as_me:8512: \$? = $ac_status" >&5
8513   (exit $ac_status); }; }; then
8514   ac_lo=$ac_mid; break
8515 else
8516   echo "$as_me: failed program was:" >&5
8517 cat conftest.$ac_ext >&5
8518 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8519 fi
8520 rm -f conftest.$ac_objext conftest.$ac_ext
8521   done
8522 fi
8523 rm -f conftest.$ac_objext conftest.$ac_ext
8524 # Binary search between lo and hi bounds.
8525 while test "x$ac_lo" != "x$ac_hi"; do
8526   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8527   cat >conftest.$ac_ext <<_ACEOF
8528 #line 8528 "configure"
8529 #include "confdefs.h"
8530 $ac_includes_default
8531 int
8532 main ()
8533 {
8534 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
8535   ;
8536   return 0;
8537 }
8538 _ACEOF
8539 rm -f conftest.$ac_objext
8540 if { (eval echo "$as_me:8540: \"$ac_compile\"") >&5
8541   (eval $ac_compile) 2>&5
8542   ac_status=$?
8543   echo "$as_me:8543: \$? = $ac_status" >&5
8544   (exit $ac_status); } &&
8545          { ac_try='test -s conftest.$ac_objext'
8546   { (eval echo "$as_me:8546: \"$ac_try\"") >&5
8547   (eval $ac_try) 2>&5
8548   ac_status=$?
8549   echo "$as_me:8549: \$? = $ac_status" >&5
8550   (exit $ac_status); }; }; then
8551   ac_hi=$ac_mid
8552 else
8553   echo "$as_me: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8555 ac_lo=`expr $ac_mid + 1`
8556 fi
8557 rm -f conftest.$ac_objext conftest.$ac_ext
8558 done
8559 ac_cv_sizeof_short=$ac_lo
8560 else
8561   if test "$cross_compiling" = yes; then
8562   { { echo "$as_me:8562: error: cannot run test program while cross compiling" >&5
8563 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8564    { (exit 1); exit 1; }; }
8565 else
8566   cat >conftest.$ac_ext <<_ACEOF
8567 #line 8567 "configure"
8568 #include "confdefs.h"
8569 $ac_includes_default
8570 int
8571 main ()
8572 {
8573 FILE *f = fopen ("conftest.val", "w");
8574 if (!f)
8575   exit (1);
8576 fprintf (f, "%d", (sizeof (short)));
8577 fclose (f);
8578   ;
8579   return 0;
8580 }
8581 _ACEOF
8582 rm -f conftest$ac_exeext
8583 if { (eval echo "$as_me:8583: \"$ac_link\"") >&5
8584   (eval $ac_link) 2>&5
8585   ac_status=$?
8586   echo "$as_me:8586: \$? = $ac_status" >&5
8587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8588   { (eval echo "$as_me:8588: \"$ac_try\"") >&5
8589   (eval $ac_try) 2>&5
8590   ac_status=$?
8591   echo "$as_me:8591: \$? = $ac_status" >&5
8592   (exit $ac_status); }; }; then
8593   ac_cv_sizeof_short=`cat conftest.val`
8594 else
8595   echo "$as_me: program exited with status $ac_status" >&5
8596 echo "$as_me: failed program was:" >&5
8597 cat conftest.$ac_ext >&5
8598 fi
8599 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8600 fi
8601 fi
8602 rm -f conftest.val
8603 else
8604   ac_cv_sizeof_short=0
8605 fi
8606 fi
8607 echo "$as_me:8607: result: $ac_cv_sizeof_short" >&5
8608 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8609 cat >>confdefs.h <<EOF
8610 #define SIZEOF_SHORT $ac_cv_sizeof_short
8611 EOF
8612
8613 echo "$as_me:8613: checking for int" >&5
8614 echo $ECHO_N "checking for int... $ECHO_C" >&6
8615 if test "${ac_cv_type_int+set}" = set; then
8616   echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618   cat >conftest.$ac_ext <<_ACEOF
8619 #line 8619 "configure"
8620 #include "confdefs.h"
8621 $ac_includes_default
8622 int
8623 main ()
8624 {
8625 if ((int *) 0)
8626   return 0;
8627 if (sizeof (int))
8628   return 0;
8629   ;
8630   return 0;
8631 }
8632 _ACEOF
8633 rm -f conftest.$ac_objext
8634 if { (eval echo "$as_me:8634: \"$ac_compile\"") >&5
8635   (eval $ac_compile) 2>&5
8636   ac_status=$?
8637   echo "$as_me:8637: \$? = $ac_status" >&5
8638   (exit $ac_status); } &&
8639          { ac_try='test -s conftest.$ac_objext'
8640   { (eval echo "$as_me:8640: \"$ac_try\"") >&5
8641   (eval $ac_try) 2>&5
8642   ac_status=$?
8643   echo "$as_me:8643: \$? = $ac_status" >&5
8644   (exit $ac_status); }; }; then
8645   ac_cv_type_int=yes
8646 else
8647   echo "$as_me: failed program was:" >&5
8648 cat conftest.$ac_ext >&5
8649 ac_cv_type_int=no
8650 fi
8651 rm -f conftest.$ac_objext conftest.$ac_ext
8652 fi
8653 echo "$as_me:8653: result: $ac_cv_type_int" >&5
8654 echo "${ECHO_T}$ac_cv_type_int" >&6
8655
8656 echo "$as_me:8656: checking size of int" >&5
8657 echo $ECHO_N "checking size of int... $ECHO_C" >&6
8658 if test "${ac_cv_sizeof_int+set}" = set; then
8659   echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661   if test "$ac_cv_type_int" = yes; then
8662   if test "$cross_compiling" = yes; then
8663   # Depending upon the size, compute the lo and hi bounds.
8664 cat >conftest.$ac_ext <<_ACEOF
8665 #line 8665 "configure"
8666 #include "confdefs.h"
8667 $ac_includes_default
8668 int
8669 main ()
8670 {
8671 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
8672   ;
8673   return 0;
8674 }
8675 _ACEOF
8676 rm -f conftest.$ac_objext
8677 if { (eval echo "$as_me:8677: \"$ac_compile\"") >&5
8678   (eval $ac_compile) 2>&5
8679   ac_status=$?
8680   echo "$as_me:8680: \$? = $ac_status" >&5
8681   (exit $ac_status); } &&
8682          { ac_try='test -s conftest.$ac_objext'
8683   { (eval echo "$as_me:8683: \"$ac_try\"") >&5
8684   (eval $ac_try) 2>&5
8685   ac_status=$?
8686   echo "$as_me:8686: \$? = $ac_status" >&5
8687   (exit $ac_status); }; }; then
8688   ac_lo=0 ac_mid=0
8689   while :; do
8690     cat >conftest.$ac_ext <<_ACEOF
8691 #line 8691 "configure"
8692 #include "confdefs.h"
8693 $ac_includes_default
8694 int
8695 main ()
8696 {
8697 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
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_hi=$ac_mid; break
8715 else
8716   echo "$as_me: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8718 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8719 fi
8720 rm -f conftest.$ac_objext conftest.$ac_ext
8721   done
8722 else
8723   echo "$as_me: failed program was:" >&5
8724 cat conftest.$ac_ext >&5
8725 ac_hi=-1 ac_mid=-1
8726   while :; do
8727     cat >conftest.$ac_ext <<_ACEOF
8728 #line 8728 "configure"
8729 #include "confdefs.h"
8730 $ac_includes_default
8731 int
8732 main ()
8733 {
8734 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
8735   ;
8736   return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest.$ac_objext
8740 if { (eval echo "$as_me:8740: \"$ac_compile\"") >&5
8741   (eval $ac_compile) 2>&5
8742   ac_status=$?
8743   echo "$as_me:8743: \$? = $ac_status" >&5
8744   (exit $ac_status); } &&
8745          { ac_try='test -s conftest.$ac_objext'
8746   { (eval echo "$as_me:8746: \"$ac_try\"") >&5
8747   (eval $ac_try) 2>&5
8748   ac_status=$?
8749   echo "$as_me:8749: \$? = $ac_status" >&5
8750   (exit $ac_status); }; }; then
8751   ac_lo=$ac_mid; break
8752 else
8753   echo "$as_me: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8755 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8756 fi
8757 rm -f conftest.$ac_objext conftest.$ac_ext
8758   done
8759 fi
8760 rm -f conftest.$ac_objext conftest.$ac_ext
8761 # Binary search between lo and hi bounds.
8762 while test "x$ac_lo" != "x$ac_hi"; do
8763   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8764   cat >conftest.$ac_ext <<_ACEOF
8765 #line 8765 "configure"
8766 #include "confdefs.h"
8767 $ac_includes_default
8768 int
8769 main ()
8770 {
8771 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
8772   ;
8773   return 0;
8774 }
8775 _ACEOF
8776 rm -f conftest.$ac_objext
8777 if { (eval echo "$as_me:8777: \"$ac_compile\"") >&5
8778   (eval $ac_compile) 2>&5
8779   ac_status=$?
8780   echo "$as_me:8780: \$? = $ac_status" >&5
8781   (exit $ac_status); } &&
8782          { ac_try='test -s conftest.$ac_objext'
8783   { (eval echo "$as_me:8783: \"$ac_try\"") >&5
8784   (eval $ac_try) 2>&5
8785   ac_status=$?
8786   echo "$as_me:8786: \$? = $ac_status" >&5
8787   (exit $ac_status); }; }; then
8788   ac_hi=$ac_mid
8789 else
8790   echo "$as_me: failed program was:" >&5
8791 cat conftest.$ac_ext >&5
8792 ac_lo=`expr $ac_mid + 1`
8793 fi
8794 rm -f conftest.$ac_objext conftest.$ac_ext
8795 done
8796 ac_cv_sizeof_int=$ac_lo
8797 else
8798   if test "$cross_compiling" = yes; then
8799   { { echo "$as_me:8799: error: cannot run test program while cross compiling" >&5
8800 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8801    { (exit 1); exit 1; }; }
8802 else
8803   cat >conftest.$ac_ext <<_ACEOF
8804 #line 8804 "configure"
8805 #include "confdefs.h"
8806 $ac_includes_default
8807 int
8808 main ()
8809 {
8810 FILE *f = fopen ("conftest.val", "w");
8811 if (!f)
8812   exit (1);
8813 fprintf (f, "%d", (sizeof (int)));
8814 fclose (f);
8815   ;
8816   return 0;
8817 }
8818 _ACEOF
8819 rm -f conftest$ac_exeext
8820 if { (eval echo "$as_me:8820: \"$ac_link\"") >&5
8821   (eval $ac_link) 2>&5
8822   ac_status=$?
8823   echo "$as_me:8823: \$? = $ac_status" >&5
8824   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8825   { (eval echo "$as_me:8825: \"$ac_try\"") >&5
8826   (eval $ac_try) 2>&5
8827   ac_status=$?
8828   echo "$as_me:8828: \$? = $ac_status" >&5
8829   (exit $ac_status); }; }; then
8830   ac_cv_sizeof_int=`cat conftest.val`
8831 else
8832   echo "$as_me: program exited with status $ac_status" >&5
8833 echo "$as_me: failed program was:" >&5
8834 cat conftest.$ac_ext >&5
8835 fi
8836 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8837 fi
8838 fi
8839 rm -f conftest.val
8840 else
8841   ac_cv_sizeof_int=0
8842 fi
8843 fi
8844 echo "$as_me:8844: result: $ac_cv_sizeof_int" >&5
8845 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8846 cat >>confdefs.h <<EOF
8847 #define SIZEOF_INT $ac_cv_sizeof_int
8848 EOF
8849
8850 echo "$as_me:8850: checking for long" >&5
8851 echo $ECHO_N "checking for long... $ECHO_C" >&6
8852 if test "${ac_cv_type_long+set}" = set; then
8853   echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855   cat >conftest.$ac_ext <<_ACEOF
8856 #line 8856 "configure"
8857 #include "confdefs.h"
8858 $ac_includes_default
8859 int
8860 main ()
8861 {
8862 if ((long *) 0)
8863   return 0;
8864 if (sizeof (long))
8865   return 0;
8866   ;
8867   return 0;
8868 }
8869 _ACEOF
8870 rm -f conftest.$ac_objext
8871 if { (eval echo "$as_me:8871: \"$ac_compile\"") >&5
8872   (eval $ac_compile) 2>&5
8873   ac_status=$?
8874   echo "$as_me:8874: \$? = $ac_status" >&5
8875   (exit $ac_status); } &&
8876          { ac_try='test -s conftest.$ac_objext'
8877   { (eval echo "$as_me:8877: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:8880: \$? = $ac_status" >&5
8881   (exit $ac_status); }; }; then
8882   ac_cv_type_long=yes
8883 else
8884   echo "$as_me: failed program was:" >&5
8885 cat conftest.$ac_ext >&5
8886 ac_cv_type_long=no
8887 fi
8888 rm -f conftest.$ac_objext conftest.$ac_ext
8889 fi
8890 echo "$as_me:8890: result: $ac_cv_type_long" >&5
8891 echo "${ECHO_T}$ac_cv_type_long" >&6
8892
8893 echo "$as_me:8893: checking size of long" >&5
8894 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8895 if test "${ac_cv_sizeof_long+set}" = set; then
8896   echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898   if test "$ac_cv_type_long" = yes; then
8899   if test "$cross_compiling" = yes; then
8900   # Depending upon the size, compute the lo and hi bounds.
8901 cat >conftest.$ac_ext <<_ACEOF
8902 #line 8902 "configure"
8903 #include "confdefs.h"
8904 $ac_includes_default
8905 int
8906 main ()
8907 {
8908 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
8909   ;
8910   return 0;
8911 }
8912 _ACEOF
8913 rm -f conftest.$ac_objext
8914 if { (eval echo "$as_me:8914: \"$ac_compile\"") >&5
8915   (eval $ac_compile) 2>&5
8916   ac_status=$?
8917   echo "$as_me:8917: \$? = $ac_status" >&5
8918   (exit $ac_status); } &&
8919          { ac_try='test -s conftest.$ac_objext'
8920   { (eval echo "$as_me:8920: \"$ac_try\"") >&5
8921   (eval $ac_try) 2>&5
8922   ac_status=$?
8923   echo "$as_me:8923: \$? = $ac_status" >&5
8924   (exit $ac_status); }; }; then
8925   ac_lo=0 ac_mid=0
8926   while :; do
8927     cat >conftest.$ac_ext <<_ACEOF
8928 #line 8928 "configure"
8929 #include "confdefs.h"
8930 $ac_includes_default
8931 int
8932 main ()
8933 {
8934 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
8935   ;
8936   return 0;
8937 }
8938 _ACEOF
8939 rm -f conftest.$ac_objext
8940 if { (eval echo "$as_me:8940: \"$ac_compile\"") >&5
8941   (eval $ac_compile) 2>&5
8942   ac_status=$?
8943   echo "$as_me:8943: \$? = $ac_status" >&5
8944   (exit $ac_status); } &&
8945          { ac_try='test -s conftest.$ac_objext'
8946   { (eval echo "$as_me:8946: \"$ac_try\"") >&5
8947   (eval $ac_try) 2>&5
8948   ac_status=$?
8949   echo "$as_me:8949: \$? = $ac_status" >&5
8950   (exit $ac_status); }; }; then
8951   ac_hi=$ac_mid; break
8952 else
8953   echo "$as_me: failed program was:" >&5
8954 cat conftest.$ac_ext >&5
8955 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8956 fi
8957 rm -f conftest.$ac_objext conftest.$ac_ext
8958   done
8959 else
8960   echo "$as_me: failed program was:" >&5
8961 cat conftest.$ac_ext >&5
8962 ac_hi=-1 ac_mid=-1
8963   while :; do
8964     cat >conftest.$ac_ext <<_ACEOF
8965 #line 8965 "configure"
8966 #include "confdefs.h"
8967 $ac_includes_default
8968 int
8969 main ()
8970 {
8971 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
8972   ;
8973   return 0;
8974 }
8975 _ACEOF
8976 rm -f conftest.$ac_objext
8977 if { (eval echo "$as_me:8977: \"$ac_compile\"") >&5
8978   (eval $ac_compile) 2>&5
8979   ac_status=$?
8980   echo "$as_me:8980: \$? = $ac_status" >&5
8981   (exit $ac_status); } &&
8982          { ac_try='test -s conftest.$ac_objext'
8983   { (eval echo "$as_me:8983: \"$ac_try\"") >&5
8984   (eval $ac_try) 2>&5
8985   ac_status=$?
8986   echo "$as_me:8986: \$? = $ac_status" >&5
8987   (exit $ac_status); }; }; then
8988   ac_lo=$ac_mid; break
8989 else
8990   echo "$as_me: failed program was:" >&5
8991 cat conftest.$ac_ext >&5
8992 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8993 fi
8994 rm -f conftest.$ac_objext conftest.$ac_ext
8995   done
8996 fi
8997 rm -f conftest.$ac_objext conftest.$ac_ext
8998 # Binary search between lo and hi bounds.
8999 while test "x$ac_lo" != "x$ac_hi"; do
9000   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9001   cat >conftest.$ac_ext <<_ACEOF
9002 #line 9002 "configure"
9003 #include "confdefs.h"
9004 $ac_includes_default
9005 int
9006 main ()
9007 {
9008 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
9009   ;
9010   return 0;
9011 }
9012 _ACEOF
9013 rm -f conftest.$ac_objext
9014 if { (eval echo "$as_me:9014: \"$ac_compile\"") >&5
9015   (eval $ac_compile) 2>&5
9016   ac_status=$?
9017   echo "$as_me:9017: \$? = $ac_status" >&5
9018   (exit $ac_status); } &&
9019          { ac_try='test -s conftest.$ac_objext'
9020   { (eval echo "$as_me:9020: \"$ac_try\"") >&5
9021   (eval $ac_try) 2>&5
9022   ac_status=$?
9023   echo "$as_me:9023: \$? = $ac_status" >&5
9024   (exit $ac_status); }; }; then
9025   ac_hi=$ac_mid
9026 else
9027   echo "$as_me: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9029 ac_lo=`expr $ac_mid + 1`
9030 fi
9031 rm -f conftest.$ac_objext conftest.$ac_ext
9032 done
9033 ac_cv_sizeof_long=$ac_lo
9034 else
9035   if test "$cross_compiling" = yes; then
9036   { { echo "$as_me:9036: error: cannot run test program while cross compiling" >&5
9037 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9038    { (exit 1); exit 1; }; }
9039 else
9040   cat >conftest.$ac_ext <<_ACEOF
9041 #line 9041 "configure"
9042 #include "confdefs.h"
9043 $ac_includes_default
9044 int
9045 main ()
9046 {
9047 FILE *f = fopen ("conftest.val", "w");
9048 if (!f)
9049   exit (1);
9050 fprintf (f, "%d", (sizeof (long)));
9051 fclose (f);
9052   ;
9053   return 0;
9054 }
9055 _ACEOF
9056 rm -f conftest$ac_exeext
9057 if { (eval echo "$as_me:9057: \"$ac_link\"") >&5
9058   (eval $ac_link) 2>&5
9059   ac_status=$?
9060   echo "$as_me:9060: \$? = $ac_status" >&5
9061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9062   { (eval echo "$as_me:9062: \"$ac_try\"") >&5
9063   (eval $ac_try) 2>&5
9064   ac_status=$?
9065   echo "$as_me:9065: \$? = $ac_status" >&5
9066   (exit $ac_status); }; }; then
9067   ac_cv_sizeof_long=`cat conftest.val`
9068 else
9069   echo "$as_me: program exited with status $ac_status" >&5
9070 echo "$as_me: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9072 fi
9073 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9074 fi
9075 fi
9076 rm -f conftest.val
9077 else
9078   ac_cv_sizeof_long=0
9079 fi
9080 fi
9081 echo "$as_me:9081: result: $ac_cv_sizeof_long" >&5
9082 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9083 cat >>confdefs.h <<EOF
9084 #define SIZEOF_LONG $ac_cv_sizeof_long
9085 EOF
9086
9087 echo "$as_me:9087: checking for char *" >&5
9088 echo $ECHO_N "checking for char *... $ECHO_C" >&6
9089 if test "${ac_cv_type_char_p+set}" = set; then
9090   echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092   cat >conftest.$ac_ext <<_ACEOF
9093 #line 9093 "configure"
9094 #include "confdefs.h"
9095 $ac_includes_default
9096 int
9097 main ()
9098 {
9099 if ((char * *) 0)
9100   return 0;
9101 if (sizeof (char *))
9102   return 0;
9103   ;
9104   return 0;
9105 }
9106 _ACEOF
9107 rm -f conftest.$ac_objext
9108 if { (eval echo "$as_me:9108: \"$ac_compile\"") >&5
9109   (eval $ac_compile) 2>&5
9110   ac_status=$?
9111   echo "$as_me:9111: \$? = $ac_status" >&5
9112   (exit $ac_status); } &&
9113          { ac_try='test -s conftest.$ac_objext'
9114   { (eval echo "$as_me:9114: \"$ac_try\"") >&5
9115   (eval $ac_try) 2>&5
9116   ac_status=$?
9117   echo "$as_me:9117: \$? = $ac_status" >&5
9118   (exit $ac_status); }; }; then
9119   ac_cv_type_char_p=yes
9120 else
9121   echo "$as_me: failed program was:" >&5
9122 cat conftest.$ac_ext >&5
9123 ac_cv_type_char_p=no
9124 fi
9125 rm -f conftest.$ac_objext conftest.$ac_ext
9126 fi
9127 echo "$as_me:9127: result: $ac_cv_type_char_p" >&5
9128 echo "${ECHO_T}$ac_cv_type_char_p" >&6
9129
9130 echo "$as_me:9130: checking size of char *" >&5
9131 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
9132 if test "${ac_cv_sizeof_char_p+set}" = set; then
9133   echo $ECHO_N "(cached) $ECHO_C" >&6
9134 else
9135   if test "$ac_cv_type_char_p" = yes; then
9136   if test "$cross_compiling" = yes; then
9137   # Depending upon the size, compute the lo and hi bounds.
9138 cat >conftest.$ac_ext <<_ACEOF
9139 #line 9139 "configure"
9140 #include "confdefs.h"
9141 $ac_includes_default
9142 int
9143 main ()
9144 {
9145 int _array_ [1 - 2 * !((sizeof (char *)) >= 0)]
9146   ;
9147   return 0;
9148 }
9149 _ACEOF
9150 rm -f conftest.$ac_objext
9151 if { (eval echo "$as_me:9151: \"$ac_compile\"") >&5
9152   (eval $ac_compile) 2>&5
9153   ac_status=$?
9154   echo "$as_me:9154: \$? = $ac_status" >&5
9155   (exit $ac_status); } &&
9156          { ac_try='test -s conftest.$ac_objext'
9157   { (eval echo "$as_me:9157: \"$ac_try\"") >&5
9158   (eval $ac_try) 2>&5
9159   ac_status=$?
9160   echo "$as_me:9160: \$? = $ac_status" >&5
9161   (exit $ac_status); }; }; then
9162   ac_lo=0 ac_mid=0
9163   while :; do
9164     cat >conftest.$ac_ext <<_ACEOF
9165 #line 9165 "configure"
9166 #include "confdefs.h"
9167 $ac_includes_default
9168 int
9169 main ()
9170 {
9171 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
9172   ;
9173   return 0;
9174 }
9175 _ACEOF
9176 rm -f conftest.$ac_objext
9177 if { (eval echo "$as_me:9177: \"$ac_compile\"") >&5
9178   (eval $ac_compile) 2>&5
9179   ac_status=$?
9180   echo "$as_me:9180: \$? = $ac_status" >&5
9181   (exit $ac_status); } &&
9182          { ac_try='test -s conftest.$ac_objext'
9183   { (eval echo "$as_me:9183: \"$ac_try\"") >&5
9184   (eval $ac_try) 2>&5
9185   ac_status=$?
9186   echo "$as_me:9186: \$? = $ac_status" >&5
9187   (exit $ac_status); }; }; then
9188   ac_hi=$ac_mid; break
9189 else
9190   echo "$as_me: failed program was:" >&5
9191 cat conftest.$ac_ext >&5
9192 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9193 fi
9194 rm -f conftest.$ac_objext conftest.$ac_ext
9195   done
9196 else
9197   echo "$as_me: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9199 ac_hi=-1 ac_mid=-1
9200   while :; do
9201     cat >conftest.$ac_ext <<_ACEOF
9202 #line 9202 "configure"
9203 #include "confdefs.h"
9204 $ac_includes_default
9205 int
9206 main ()
9207 {
9208 int _array_ [1 - 2 * !((sizeof (char *)) >= $ac_mid)]
9209   ;
9210   return 0;
9211 }
9212 _ACEOF
9213 rm -f conftest.$ac_objext
9214 if { (eval echo "$as_me:9214: \"$ac_compile\"") >&5
9215   (eval $ac_compile) 2>&5
9216   ac_status=$?
9217   echo "$as_me:9217: \$? = $ac_status" >&5
9218   (exit $ac_status); } &&
9219          { ac_try='test -s conftest.$ac_objext'
9220   { (eval echo "$as_me:9220: \"$ac_try\"") >&5
9221   (eval $ac_try) 2>&5
9222   ac_status=$?
9223   echo "$as_me:9223: \$? = $ac_status" >&5
9224   (exit $ac_status); }; }; then
9225   ac_lo=$ac_mid; break
9226 else
9227   echo "$as_me: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9229 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9230 fi
9231 rm -f conftest.$ac_objext conftest.$ac_ext
9232   done
9233 fi
9234 rm -f conftest.$ac_objext conftest.$ac_ext
9235 # Binary search between lo and hi bounds.
9236 while test "x$ac_lo" != "x$ac_hi"; do
9237   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9238   cat >conftest.$ac_ext <<_ACEOF
9239 #line 9239 "configure"
9240 #include "confdefs.h"
9241 $ac_includes_default
9242 int
9243 main ()
9244 {
9245 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
9246   ;
9247   return 0;
9248 }
9249 _ACEOF
9250 rm -f conftest.$ac_objext
9251 if { (eval echo "$as_me:9251: \"$ac_compile\"") >&5
9252   (eval $ac_compile) 2>&5
9253   ac_status=$?
9254   echo "$as_me:9254: \$? = $ac_status" >&5
9255   (exit $ac_status); } &&
9256          { ac_try='test -s conftest.$ac_objext'
9257   { (eval echo "$as_me:9257: \"$ac_try\"") >&5
9258   (eval $ac_try) 2>&5
9259   ac_status=$?
9260   echo "$as_me:9260: \$? = $ac_status" >&5
9261   (exit $ac_status); }; }; then
9262   ac_hi=$ac_mid
9263 else
9264   echo "$as_me: failed program was:" >&5
9265 cat conftest.$ac_ext >&5
9266 ac_lo=`expr $ac_mid + 1`
9267 fi
9268 rm -f conftest.$ac_objext conftest.$ac_ext
9269 done
9270 ac_cv_sizeof_char_p=$ac_lo
9271 else
9272   if test "$cross_compiling" = yes; then
9273   { { echo "$as_me:9273: error: cannot run test program while cross compiling" >&5
9274 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9275    { (exit 1); exit 1; }; }
9276 else
9277   cat >conftest.$ac_ext <<_ACEOF
9278 #line 9278 "configure"
9279 #include "confdefs.h"
9280 $ac_includes_default
9281 int
9282 main ()
9283 {
9284 FILE *f = fopen ("conftest.val", "w");
9285 if (!f)
9286   exit (1);
9287 fprintf (f, "%d", (sizeof (char *)));
9288 fclose (f);
9289   ;
9290   return 0;
9291 }
9292 _ACEOF
9293 rm -f conftest$ac_exeext
9294 if { (eval echo "$as_me:9294: \"$ac_link\"") >&5
9295   (eval $ac_link) 2>&5
9296   ac_status=$?
9297   echo "$as_me:9297: \$? = $ac_status" >&5
9298   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9299   { (eval echo "$as_me:9299: \"$ac_try\"") >&5
9300   (eval $ac_try) 2>&5
9301   ac_status=$?
9302   echo "$as_me:9302: \$? = $ac_status" >&5
9303   (exit $ac_status); }; }; then
9304   ac_cv_sizeof_char_p=`cat conftest.val`
9305 else
9306   echo "$as_me: program exited with status $ac_status" >&5
9307 echo "$as_me: failed program was:" >&5
9308 cat conftest.$ac_ext >&5
9309 fi
9310 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9311 fi
9312 fi
9313 rm -f conftest.val
9314 else
9315   ac_cv_sizeof_char_p=0
9316 fi
9317 fi
9318 echo "$as_me:9318: result: $ac_cv_sizeof_char_p" >&5
9319 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
9320 cat >>confdefs.h <<EOF
9321 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
9322 EOF
9323
9324 echo "$as_me:9324: checking for double" >&5
9325 echo $ECHO_N "checking for double... $ECHO_C" >&6
9326 if test "${ac_cv_type_double+set}" = set; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329   cat >conftest.$ac_ext <<_ACEOF
9330 #line 9330 "configure"
9331 #include "confdefs.h"
9332 $ac_includes_default
9333 int
9334 main ()
9335 {
9336 if ((double *) 0)
9337   return 0;
9338 if (sizeof (double))
9339   return 0;
9340   ;
9341   return 0;
9342 }
9343 _ACEOF
9344 rm -f conftest.$ac_objext
9345 if { (eval echo "$as_me:9345: \"$ac_compile\"") >&5
9346   (eval $ac_compile) 2>&5
9347   ac_status=$?
9348   echo "$as_me:9348: \$? = $ac_status" >&5
9349   (exit $ac_status); } &&
9350          { ac_try='test -s conftest.$ac_objext'
9351   { (eval echo "$as_me:9351: \"$ac_try\"") >&5
9352   (eval $ac_try) 2>&5
9353   ac_status=$?
9354   echo "$as_me:9354: \$? = $ac_status" >&5
9355   (exit $ac_status); }; }; then
9356   ac_cv_type_double=yes
9357 else
9358   echo "$as_me: failed program was:" >&5
9359 cat conftest.$ac_ext >&5
9360 ac_cv_type_double=no
9361 fi
9362 rm -f conftest.$ac_objext conftest.$ac_ext
9363 fi
9364 echo "$as_me:9364: result: $ac_cv_type_double" >&5
9365 echo "${ECHO_T}$ac_cv_type_double" >&6
9366
9367 echo "$as_me:9367: checking size of double" >&5
9368 echo $ECHO_N "checking size of double... $ECHO_C" >&6
9369 if test "${ac_cv_sizeof_double+set}" = set; then
9370   echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372   if test "$ac_cv_type_double" = yes; then
9373   if test "$cross_compiling" = yes; then
9374   # Depending upon the size, compute the lo and hi bounds.
9375 cat >conftest.$ac_ext <<_ACEOF
9376 #line 9376 "configure"
9377 #include "confdefs.h"
9378 $ac_includes_default
9379 int
9380 main ()
9381 {
9382 int _array_ [1 - 2 * !((sizeof (double)) >= 0)]
9383   ;
9384   return 0;
9385 }
9386 _ACEOF
9387 rm -f conftest.$ac_objext
9388 if { (eval echo "$as_me:9388: \"$ac_compile\"") >&5
9389   (eval $ac_compile) 2>&5
9390   ac_status=$?
9391   echo "$as_me:9391: \$? = $ac_status" >&5
9392   (exit $ac_status); } &&
9393          { ac_try='test -s conftest.$ac_objext'
9394   { (eval echo "$as_me:9394: \"$ac_try\"") >&5
9395   (eval $ac_try) 2>&5
9396   ac_status=$?
9397   echo "$as_me:9397: \$? = $ac_status" >&5
9398   (exit $ac_status); }; }; then
9399   ac_lo=0 ac_mid=0
9400   while :; do
9401     cat >conftest.$ac_ext <<_ACEOF
9402 #line 9402 "configure"
9403 #include "confdefs.h"
9404 $ac_includes_default
9405 int
9406 main ()
9407 {
9408 int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)]
9409   ;
9410   return 0;
9411 }
9412 _ACEOF
9413 rm -f conftest.$ac_objext
9414 if { (eval echo "$as_me:9414: \"$ac_compile\"") >&5
9415   (eval $ac_compile) 2>&5
9416   ac_status=$?
9417   echo "$as_me:9417: \$? = $ac_status" >&5
9418   (exit $ac_status); } &&
9419          { ac_try='test -s conftest.$ac_objext'
9420   { (eval echo "$as_me:9420: \"$ac_try\"") >&5
9421   (eval $ac_try) 2>&5
9422   ac_status=$?
9423   echo "$as_me:9423: \$? = $ac_status" >&5
9424   (exit $ac_status); }; }; then
9425   ac_hi=$ac_mid; break
9426 else
9427   echo "$as_me: failed program was:" >&5
9428 cat conftest.$ac_ext >&5
9429 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9430 fi
9431 rm -f conftest.$ac_objext conftest.$ac_ext
9432   done
9433 else
9434   echo "$as_me: failed program was:" >&5
9435 cat conftest.$ac_ext >&5
9436 ac_hi=-1 ac_mid=-1
9437   while :; do
9438     cat >conftest.$ac_ext <<_ACEOF
9439 #line 9439 "configure"
9440 #include "confdefs.h"
9441 $ac_includes_default
9442 int
9443 main ()
9444 {
9445 int _array_ [1 - 2 * !((sizeof (double)) >= $ac_mid)]
9446   ;
9447   return 0;
9448 }
9449 _ACEOF
9450 rm -f conftest.$ac_objext
9451 if { (eval echo "$as_me:9451: \"$ac_compile\"") >&5
9452   (eval $ac_compile) 2>&5
9453   ac_status=$?
9454   echo "$as_me:9454: \$? = $ac_status" >&5
9455   (exit $ac_status); } &&
9456          { ac_try='test -s conftest.$ac_objext'
9457   { (eval echo "$as_me:9457: \"$ac_try\"") >&5
9458   (eval $ac_try) 2>&5
9459   ac_status=$?
9460   echo "$as_me:9460: \$? = $ac_status" >&5
9461   (exit $ac_status); }; }; then
9462   ac_lo=$ac_mid; break
9463 else
9464   echo "$as_me: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9467 fi
9468 rm -f conftest.$ac_objext conftest.$ac_ext
9469   done
9470 fi
9471 rm -f conftest.$ac_objext conftest.$ac_ext
9472 # Binary search between lo and hi bounds.
9473 while test "x$ac_lo" != "x$ac_hi"; do
9474   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9475   cat >conftest.$ac_ext <<_ACEOF
9476 #line 9476 "configure"
9477 #include "confdefs.h"
9478 $ac_includes_default
9479 int
9480 main ()
9481 {
9482 int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)]
9483   ;
9484   return 0;
9485 }
9486 _ACEOF
9487 rm -f conftest.$ac_objext
9488 if { (eval echo "$as_me:9488: \"$ac_compile\"") >&5
9489   (eval $ac_compile) 2>&5
9490   ac_status=$?
9491   echo "$as_me:9491: \$? = $ac_status" >&5
9492   (exit $ac_status); } &&
9493          { ac_try='test -s conftest.$ac_objext'
9494   { (eval echo "$as_me:9494: \"$ac_try\"") >&5
9495   (eval $ac_try) 2>&5
9496   ac_status=$?
9497   echo "$as_me:9497: \$? = $ac_status" >&5
9498   (exit $ac_status); }; }; then
9499   ac_hi=$ac_mid
9500 else
9501   echo "$as_me: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9503 ac_lo=`expr $ac_mid + 1`
9504 fi
9505 rm -f conftest.$ac_objext conftest.$ac_ext
9506 done
9507 ac_cv_sizeof_double=$ac_lo
9508 else
9509   if test "$cross_compiling" = yes; then
9510   { { echo "$as_me:9510: error: cannot run test program while cross compiling" >&5
9511 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9512    { (exit 1); exit 1; }; }
9513 else
9514   cat >conftest.$ac_ext <<_ACEOF
9515 #line 9515 "configure"
9516 #include "confdefs.h"
9517 $ac_includes_default
9518 int
9519 main ()
9520 {
9521 FILE *f = fopen ("conftest.val", "w");
9522 if (!f)
9523   exit (1);
9524 fprintf (f, "%d", (sizeof (double)));
9525 fclose (f);
9526   ;
9527   return 0;
9528 }
9529 _ACEOF
9530 rm -f conftest$ac_exeext
9531 if { (eval echo "$as_me:9531: \"$ac_link\"") >&5
9532   (eval $ac_link) 2>&5
9533   ac_status=$?
9534   echo "$as_me:9534: \$? = $ac_status" >&5
9535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9536   { (eval echo "$as_me:9536: \"$ac_try\"") >&5
9537   (eval $ac_try) 2>&5
9538   ac_status=$?
9539   echo "$as_me:9539: \$? = $ac_status" >&5
9540   (exit $ac_status); }; }; then
9541   ac_cv_sizeof_double=`cat conftest.val`
9542 else
9543   echo "$as_me: program exited with status $ac_status" >&5
9544 echo "$as_me: failed program was:" >&5
9545 cat conftest.$ac_ext >&5
9546 fi
9547 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9548 fi
9549 fi
9550 rm -f conftest.val
9551 else
9552   ac_cv_sizeof_double=0
9553 fi
9554 fi
9555 echo "$as_me:9555: result: $ac_cv_sizeof_double" >&5
9556 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
9557 cat >>confdefs.h <<EOF
9558 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9559 EOF
9560
9561 echo "$as_me:9561: checking for long long" >&5
9562 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9563 if test "${ac_cv_type_long_long+set}" = set; then
9564   echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566   cat >conftest.$ac_ext <<_ACEOF
9567 #line 9567 "configure"
9568 #include "confdefs.h"
9569 $ac_includes_default
9570 int
9571 main ()
9572 {
9573 if ((long long *) 0)
9574   return 0;
9575 if (sizeof (long long))
9576   return 0;
9577   ;
9578   return 0;
9579 }
9580 _ACEOF
9581 rm -f conftest.$ac_objext
9582 if { (eval echo "$as_me:9582: \"$ac_compile\"") >&5
9583   (eval $ac_compile) 2>&5
9584   ac_status=$?
9585   echo "$as_me:9585: \$? = $ac_status" >&5
9586   (exit $ac_status); } &&
9587          { ac_try='test -s conftest.$ac_objext'
9588   { (eval echo "$as_me:9588: \"$ac_try\"") >&5
9589   (eval $ac_try) 2>&5
9590   ac_status=$?
9591   echo "$as_me:9591: \$? = $ac_status" >&5
9592   (exit $ac_status); }; }; then
9593   ac_cv_type_long_long=yes
9594 else
9595   echo "$as_me: failed program was:" >&5
9596 cat conftest.$ac_ext >&5
9597 ac_cv_type_long_long=no
9598 fi
9599 rm -f conftest.$ac_objext conftest.$ac_ext
9600 fi
9601 echo "$as_me:9601: result: $ac_cv_type_long_long" >&5
9602 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9603
9604 echo "$as_me:9604: checking size of long long" >&5
9605 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9606 if test "${ac_cv_sizeof_long_long+set}" = set; then
9607   echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609   if test "$ac_cv_type_long_long" = yes; then
9610   if test "$cross_compiling" = yes; then
9611   # Depending upon the size, compute the lo and hi bounds.
9612 cat >conftest.$ac_ext <<_ACEOF
9613 #line 9613 "configure"
9614 #include "confdefs.h"
9615 $ac_includes_default
9616 int
9617 main ()
9618 {
9619 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
9620   ;
9621   return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext
9625 if { (eval echo "$as_me:9625: \"$ac_compile\"") >&5
9626   (eval $ac_compile) 2>&5
9627   ac_status=$?
9628   echo "$as_me:9628: \$? = $ac_status" >&5
9629   (exit $ac_status); } &&
9630          { ac_try='test -s conftest.$ac_objext'
9631   { (eval echo "$as_me:9631: \"$ac_try\"") >&5
9632   (eval $ac_try) 2>&5
9633   ac_status=$?
9634   echo "$as_me:9634: \$? = $ac_status" >&5
9635   (exit $ac_status); }; }; then
9636   ac_lo=0 ac_mid=0
9637   while :; do
9638     cat >conftest.$ac_ext <<_ACEOF
9639 #line 9639 "configure"
9640 #include "confdefs.h"
9641 $ac_includes_default
9642 int
9643 main ()
9644 {
9645 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
9646   ;
9647   return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext
9651 if { (eval echo "$as_me:9651: \"$ac_compile\"") >&5
9652   (eval $ac_compile) 2>&5
9653   ac_status=$?
9654   echo "$as_me:9654: \$? = $ac_status" >&5
9655   (exit $ac_status); } &&
9656          { ac_try='test -s conftest.$ac_objext'
9657   { (eval echo "$as_me:9657: \"$ac_try\"") >&5
9658   (eval $ac_try) 2>&5
9659   ac_status=$?
9660   echo "$as_me:9660: \$? = $ac_status" >&5
9661   (exit $ac_status); }; }; then
9662   ac_hi=$ac_mid; break
9663 else
9664   echo "$as_me: failed program was:" >&5
9665 cat conftest.$ac_ext >&5
9666 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9667 fi
9668 rm -f conftest.$ac_objext conftest.$ac_ext
9669   done
9670 else
9671   echo "$as_me: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9673 ac_hi=-1 ac_mid=-1
9674   while :; do
9675     cat >conftest.$ac_ext <<_ACEOF
9676 #line 9676 "configure"
9677 #include "confdefs.h"
9678 $ac_includes_default
9679 int
9680 main ()
9681 {
9682 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext
9688 if { (eval echo "$as_me:9688: \"$ac_compile\"") >&5
9689   (eval $ac_compile) 2>&5
9690   ac_status=$?
9691   echo "$as_me:9691: \$? = $ac_status" >&5
9692   (exit $ac_status); } &&
9693          { ac_try='test -s conftest.$ac_objext'
9694   { (eval echo "$as_me:9694: \"$ac_try\"") >&5
9695   (eval $ac_try) 2>&5
9696   ac_status=$?
9697   echo "$as_me:9697: \$? = $ac_status" >&5
9698   (exit $ac_status); }; }; then
9699   ac_lo=$ac_mid; break
9700 else
9701   echo "$as_me: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9704 fi
9705 rm -f conftest.$ac_objext conftest.$ac_ext
9706   done
9707 fi
9708 rm -f conftest.$ac_objext conftest.$ac_ext
9709 # Binary search between lo and hi bounds.
9710 while test "x$ac_lo" != "x$ac_hi"; do
9711   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9712   cat >conftest.$ac_ext <<_ACEOF
9713 #line 9713 "configure"
9714 #include "confdefs.h"
9715 $ac_includes_default
9716 int
9717 main ()
9718 {
9719 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
9720   ;
9721   return 0;
9722 }
9723 _ACEOF
9724 rm -f conftest.$ac_objext
9725 if { (eval echo "$as_me:9725: \"$ac_compile\"") >&5
9726   (eval $ac_compile) 2>&5
9727   ac_status=$?
9728   echo "$as_me:9728: \$? = $ac_status" >&5
9729   (exit $ac_status); } &&
9730          { ac_try='test -s conftest.$ac_objext'
9731   { (eval echo "$as_me:9731: \"$ac_try\"") >&5
9732   (eval $ac_try) 2>&5
9733   ac_status=$?
9734   echo "$as_me:9734: \$? = $ac_status" >&5
9735   (exit $ac_status); }; }; then
9736   ac_hi=$ac_mid
9737 else
9738   echo "$as_me: failed program was:" >&5
9739 cat conftest.$ac_ext >&5
9740 ac_lo=`expr $ac_mid + 1`
9741 fi
9742 rm -f conftest.$ac_objext conftest.$ac_ext
9743 done
9744 ac_cv_sizeof_long_long=$ac_lo
9745 else
9746   if test "$cross_compiling" = yes; then
9747   { { echo "$as_me:9747: error: cannot run test program while cross compiling" >&5
9748 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9749    { (exit 1); exit 1; }; }
9750 else
9751   cat >conftest.$ac_ext <<_ACEOF
9752 #line 9752 "configure"
9753 #include "confdefs.h"
9754 $ac_includes_default
9755 int
9756 main ()
9757 {
9758 FILE *f = fopen ("conftest.val", "w");
9759 if (!f)
9760   exit (1);
9761 fprintf (f, "%d", (sizeof (long long)));
9762 fclose (f);
9763   ;
9764   return 0;
9765 }
9766 _ACEOF
9767 rm -f conftest$ac_exeext
9768 if { (eval echo "$as_me:9768: \"$ac_link\"") >&5
9769   (eval $ac_link) 2>&5
9770   ac_status=$?
9771   echo "$as_me:9771: \$? = $ac_status" >&5
9772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9773   { (eval echo "$as_me:9773: \"$ac_try\"") >&5
9774   (eval $ac_try) 2>&5
9775   ac_status=$?
9776   echo "$as_me:9776: \$? = $ac_status" >&5
9777   (exit $ac_status); }; }; then
9778   ac_cv_sizeof_long_long=`cat conftest.val`
9779 else
9780   echo "$as_me: program exited with status $ac_status" >&5
9781 echo "$as_me: failed program was:" >&5
9782 cat conftest.$ac_ext >&5
9783 fi
9784 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9785 fi
9786 fi
9787 rm -f conftest.val
9788 else
9789   ac_cv_sizeof_long_long=0
9790 fi
9791 fi
9792 echo "$as_me:9792: result: $ac_cv_sizeof_long_long" >&5
9793 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9794 cat >>confdefs.h <<EOF
9795 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9796 EOF
9797
9798 echo "$as_me:9798: checking for u_int" >&5
9799 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
9800 if test "${ac_cv_type_u_int+set}" = set; then
9801   echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803   cat >conftest.$ac_ext <<_ACEOF
9804 #line 9804 "configure"
9805 #include "confdefs.h"
9806 $ac_includes_default
9807 int
9808 main ()
9809 {
9810 if ((u_int *) 0)
9811   return 0;
9812 if (sizeof (u_int))
9813   return 0;
9814   ;
9815   return 0;
9816 }
9817 _ACEOF
9818 rm -f conftest.$ac_objext
9819 if { (eval echo "$as_me:9819: \"$ac_compile\"") >&5
9820   (eval $ac_compile) 2>&5
9821   ac_status=$?
9822   echo "$as_me:9822: \$? = $ac_status" >&5
9823   (exit $ac_status); } &&
9824          { ac_try='test -s conftest.$ac_objext'
9825   { (eval echo "$as_me:9825: \"$ac_try\"") >&5
9826   (eval $ac_try) 2>&5
9827   ac_status=$?
9828   echo "$as_me:9828: \$? = $ac_status" >&5
9829   (exit $ac_status); }; }; then
9830   ac_cv_type_u_int=yes
9831 else
9832   echo "$as_me: failed program was:" >&5
9833 cat conftest.$ac_ext >&5
9834 ac_cv_type_u_int=no
9835 fi
9836 rm -f conftest.$ac_objext conftest.$ac_ext
9837 fi
9838 echo "$as_me:9838: result: $ac_cv_type_u_int" >&5
9839 echo "${ECHO_T}$ac_cv_type_u_int" >&6
9840 if test $ac_cv_type_u_int = yes; then
9841   :
9842 else
9843
9844 cat >>confdefs.h <<EOF
9845 #define u_int unsigned int
9846 EOF
9847
9848 fi
9849
9850 echo "$as_me:9850: checking for u_long" >&5
9851 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
9852 if test "${ac_cv_type_u_long+set}" = set; then
9853   echo $ECHO_N "(cached) $ECHO_C" >&6
9854 else
9855   cat >conftest.$ac_ext <<_ACEOF
9856 #line 9856 "configure"
9857 #include "confdefs.h"
9858 $ac_includes_default
9859 int
9860 main ()
9861 {
9862 if ((u_long *) 0)
9863   return 0;
9864 if (sizeof (u_long))
9865   return 0;
9866   ;
9867   return 0;
9868 }
9869 _ACEOF
9870 rm -f conftest.$ac_objext
9871 if { (eval echo "$as_me:9871: \"$ac_compile\"") >&5
9872   (eval $ac_compile) 2>&5
9873   ac_status=$?
9874   echo "$as_me:9874: \$? = $ac_status" >&5
9875   (exit $ac_status); } &&
9876          { ac_try='test -s conftest.$ac_objext'
9877   { (eval echo "$as_me:9877: \"$ac_try\"") >&5
9878   (eval $ac_try) 2>&5
9879   ac_status=$?
9880   echo "$as_me:9880: \$? = $ac_status" >&5
9881   (exit $ac_status); }; }; then
9882   ac_cv_type_u_long=yes
9883 else
9884   echo "$as_me: failed program was:" >&5
9885 cat conftest.$ac_ext >&5
9886 ac_cv_type_u_long=no
9887 fi
9888 rm -f conftest.$ac_objext conftest.$ac_ext
9889 fi
9890 echo "$as_me:9890: result: $ac_cv_type_u_long" >&5
9891 echo "${ECHO_T}$ac_cv_type_u_long" >&6
9892 if test $ac_cv_type_u_long = yes; then
9893   :
9894 else
9895
9896 cat >>confdefs.h <<EOF
9897 #define u_long unsigned long
9898 EOF
9899
9900 fi
9901
9902 if test "$ac_cv_sizeof_short" = 2; then
9903   echo "$as_me:9903: checking for bits16_t" >&5
9904 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
9905 if test "${ac_cv_type_bits16_t+set}" = set; then
9906   echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908   cat >conftest.$ac_ext <<_ACEOF
9909 #line 9909 "configure"
9910 #include "confdefs.h"
9911 $ac_includes_default
9912 int
9913 main ()
9914 {
9915 if ((bits16_t *) 0)
9916   return 0;
9917 if (sizeof (bits16_t))
9918   return 0;
9919   ;
9920   return 0;
9921 }
9922 _ACEOF
9923 rm -f conftest.$ac_objext
9924 if { (eval echo "$as_me:9924: \"$ac_compile\"") >&5
9925   (eval $ac_compile) 2>&5
9926   ac_status=$?
9927   echo "$as_me:9927: \$? = $ac_status" >&5
9928   (exit $ac_status); } &&
9929          { ac_try='test -s conftest.$ac_objext'
9930   { (eval echo "$as_me:9930: \"$ac_try\"") >&5
9931   (eval $ac_try) 2>&5
9932   ac_status=$?
9933   echo "$as_me:9933: \$? = $ac_status" >&5
9934   (exit $ac_status); }; }; then
9935   ac_cv_type_bits16_t=yes
9936 else
9937   echo "$as_me: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9939 ac_cv_type_bits16_t=no
9940 fi
9941 rm -f conftest.$ac_objext conftest.$ac_ext
9942 fi
9943 echo "$as_me:9943: result: $ac_cv_type_bits16_t" >&5
9944 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
9945 if test $ac_cv_type_bits16_t = yes; then
9946   :
9947 else
9948
9949 cat >>confdefs.h <<EOF
9950 #define bits16_t short
9951 EOF
9952
9953 fi
9954
9955 elif test "$ac_cv_sizeof_char" = 2; then
9956   echo "$as_me:9956: checking for bits16_t" >&5
9957 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
9958 if test "${ac_cv_type_bits16_t+set}" = set; then
9959   echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961   cat >conftest.$ac_ext <<_ACEOF
9962 #line 9962 "configure"
9963 #include "confdefs.h"
9964 $ac_includes_default
9965 int
9966 main ()
9967 {
9968 if ((bits16_t *) 0)
9969   return 0;
9970 if (sizeof (bits16_t))
9971   return 0;
9972   ;
9973   return 0;
9974 }
9975 _ACEOF
9976 rm -f conftest.$ac_objext
9977 if { (eval echo "$as_me:9977: \"$ac_compile\"") >&5
9978   (eval $ac_compile) 2>&5
9979   ac_status=$?
9980   echo "$as_me:9980: \$? = $ac_status" >&5
9981   (exit $ac_status); } &&
9982          { ac_try='test -s conftest.$ac_objext'
9983   { (eval echo "$as_me:9983: \"$ac_try\"") >&5
9984   (eval $ac_try) 2>&5
9985   ac_status=$?
9986   echo "$as_me:9986: \$? = $ac_status" >&5
9987   (exit $ac_status); }; }; then
9988   ac_cv_type_bits16_t=yes
9989 else
9990   echo "$as_me: failed program was:" >&5
9991 cat conftest.$ac_ext >&5
9992 ac_cv_type_bits16_t=no
9993 fi
9994 rm -f conftest.$ac_objext conftest.$ac_ext
9995 fi
9996 echo "$as_me:9996: result: $ac_cv_type_bits16_t" >&5
9997 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
9998 if test $ac_cv_type_bits16_t = yes; then
9999   :
10000 else
10001
10002 cat >>confdefs.h <<EOF
10003 #define bits16_t char
10004 EOF
10005
10006 fi
10007
10008 else
10009   echo "$as_me:10009: checking for bits16_t" >&5
10010 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
10011 if test "${ac_cv_type_bits16_t+set}" = set; then
10012   echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014   cat >conftest.$ac_ext <<_ACEOF
10015 #line 10015 "configure"
10016 #include "confdefs.h"
10017 $ac_includes_default
10018 int
10019 main ()
10020 {
10021 if ((bits16_t *) 0)
10022   return 0;
10023 if (sizeof (bits16_t))
10024   return 0;
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_cv_type_bits16_t=yes
10042 else
10043   echo "$as_me: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10045 ac_cv_type_bits16_t=no
10046 fi
10047 rm -f conftest.$ac_objext conftest.$ac_ext
10048 fi
10049 echo "$as_me:10049: result: $ac_cv_type_bits16_t" >&5
10050 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
10051 if test $ac_cv_type_bits16_t = yes; then
10052   :
10053 else
10054
10055 cat >>confdefs.h <<EOF
10056 #define bits16_t short
10057 EOF
10058
10059 fi
10060
10061 fi
10062
10063 if test "$ac_cv_sizeof_short" = 2; then
10064   echo "$as_me:10064: checking for u_bits16_t" >&5
10065 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
10066 if test "${ac_cv_type_u_bits16_t+set}" = set; then
10067   echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069   cat >conftest.$ac_ext <<_ACEOF
10070 #line 10070 "configure"
10071 #include "confdefs.h"
10072 $ac_includes_default
10073 int
10074 main ()
10075 {
10076 if ((u_bits16_t *) 0)
10077   return 0;
10078 if (sizeof (u_bits16_t))
10079   return 0;
10080   ;
10081   return 0;
10082 }
10083 _ACEOF
10084 rm -f conftest.$ac_objext
10085 if { (eval echo "$as_me:10085: \"$ac_compile\"") >&5
10086   (eval $ac_compile) 2>&5
10087   ac_status=$?
10088   echo "$as_me:10088: \$? = $ac_status" >&5
10089   (exit $ac_status); } &&
10090          { ac_try='test -s conftest.$ac_objext'
10091   { (eval echo "$as_me:10091: \"$ac_try\"") >&5
10092   (eval $ac_try) 2>&5
10093   ac_status=$?
10094   echo "$as_me:10094: \$? = $ac_status" >&5
10095   (exit $ac_status); }; }; then
10096   ac_cv_type_u_bits16_t=yes
10097 else
10098   echo "$as_me: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10100 ac_cv_type_u_bits16_t=no
10101 fi
10102 rm -f conftest.$ac_objext conftest.$ac_ext
10103 fi
10104 echo "$as_me:10104: result: $ac_cv_type_u_bits16_t" >&5
10105 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
10106 if test $ac_cv_type_u_bits16_t = yes; then
10107   :
10108 else
10109
10110 cat >>confdefs.h <<EOF
10111 #define u_bits16_t unsigned short
10112 EOF
10113
10114 fi
10115
10116 elif test "$ac_cv_sizeof_char" = 2; then
10117   echo "$as_me:10117: checking for u_bits16_t" >&5
10118 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
10119 if test "${ac_cv_type_u_bits16_t+set}" = set; then
10120   echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122   cat >conftest.$ac_ext <<_ACEOF
10123 #line 10123 "configure"
10124 #include "confdefs.h"
10125 $ac_includes_default
10126 int
10127 main ()
10128 {
10129 if ((u_bits16_t *) 0)
10130   return 0;
10131 if (sizeof (u_bits16_t))
10132   return 0;
10133   ;
10134   return 0;
10135 }
10136 _ACEOF
10137 rm -f conftest.$ac_objext
10138 if { (eval echo "$as_me:10138: \"$ac_compile\"") >&5
10139   (eval $ac_compile) 2>&5
10140   ac_status=$?
10141   echo "$as_me:10141: \$? = $ac_status" >&5
10142   (exit $ac_status); } &&
10143          { ac_try='test -s conftest.$ac_objext'
10144   { (eval echo "$as_me:10144: \"$ac_try\"") >&5
10145   (eval $ac_try) 2>&5
10146   ac_status=$?
10147   echo "$as_me:10147: \$? = $ac_status" >&5
10148   (exit $ac_status); }; }; then
10149   ac_cv_type_u_bits16_t=yes
10150 else
10151   echo "$as_me: failed program was:" >&5
10152 cat conftest.$ac_ext >&5
10153 ac_cv_type_u_bits16_t=no
10154 fi
10155 rm -f conftest.$ac_objext conftest.$ac_ext
10156 fi
10157 echo "$as_me:10157: result: $ac_cv_type_u_bits16_t" >&5
10158 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
10159 if test $ac_cv_type_u_bits16_t = yes; then
10160   :
10161 else
10162
10163 cat >>confdefs.h <<EOF
10164 #define u_bits16_t unsigned char
10165 EOF
10166
10167 fi
10168
10169 else
10170   echo "$as_me:10170: checking for u_bits16_t" >&5
10171 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
10172 if test "${ac_cv_type_u_bits16_t+set}" = set; then
10173   echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175   cat >conftest.$ac_ext <<_ACEOF
10176 #line 10176 "configure"
10177 #include "confdefs.h"
10178 $ac_includes_default
10179 int
10180 main ()
10181 {
10182 if ((u_bits16_t *) 0)
10183   return 0;
10184 if (sizeof (u_bits16_t))
10185   return 0;
10186   ;
10187   return 0;
10188 }
10189 _ACEOF
10190 rm -f conftest.$ac_objext
10191 if { (eval echo "$as_me:10191: \"$ac_compile\"") >&5
10192   (eval $ac_compile) 2>&5
10193   ac_status=$?
10194   echo "$as_me:10194: \$? = $ac_status" >&5
10195   (exit $ac_status); } &&
10196          { ac_try='test -s conftest.$ac_objext'
10197   { (eval echo "$as_me:10197: \"$ac_try\"") >&5
10198   (eval $ac_try) 2>&5
10199   ac_status=$?
10200   echo "$as_me:10200: \$? = $ac_status" >&5
10201   (exit $ac_status); }; }; then
10202   ac_cv_type_u_bits16_t=yes
10203 else
10204   echo "$as_me: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
10206 ac_cv_type_u_bits16_t=no
10207 fi
10208 rm -f conftest.$ac_objext conftest.$ac_ext
10209 fi
10210 echo "$as_me:10210: result: $ac_cv_type_u_bits16_t" >&5
10211 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
10212 if test $ac_cv_type_u_bits16_t = yes; then
10213   :
10214 else
10215
10216 cat >>confdefs.h <<EOF
10217 #define u_bits16_t unsigned short
10218 EOF
10219
10220 fi
10221
10222 fi
10223
10224 if test "$ac_cv_sizeof_int" = 4; then
10225   echo "$as_me:10225: checking for bits32_t" >&5
10226 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
10227 if test "${ac_cv_type_bits32_t+set}" = set; then
10228   echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230   cat >conftest.$ac_ext <<_ACEOF
10231 #line 10231 "configure"
10232 #include "confdefs.h"
10233 $ac_includes_default
10234 int
10235 main ()
10236 {
10237 if ((bits32_t *) 0)
10238   return 0;
10239 if (sizeof (bits32_t))
10240   return 0;
10241   ;
10242   return 0;
10243 }
10244 _ACEOF
10245 rm -f conftest.$ac_objext
10246 if { (eval echo "$as_me:10246: \"$ac_compile\"") >&5
10247   (eval $ac_compile) 2>&5
10248   ac_status=$?
10249   echo "$as_me:10249: \$? = $ac_status" >&5
10250   (exit $ac_status); } &&
10251          { ac_try='test -s conftest.$ac_objext'
10252   { (eval echo "$as_me:10252: \"$ac_try\"") >&5
10253   (eval $ac_try) 2>&5
10254   ac_status=$?
10255   echo "$as_me:10255: \$? = $ac_status" >&5
10256   (exit $ac_status); }; }; then
10257   ac_cv_type_bits32_t=yes
10258 else
10259   echo "$as_me: failed program was:" >&5
10260 cat conftest.$ac_ext >&5
10261 ac_cv_type_bits32_t=no
10262 fi
10263 rm -f conftest.$ac_objext conftest.$ac_ext
10264 fi
10265 echo "$as_me:10265: result: $ac_cv_type_bits32_t" >&5
10266 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
10267 if test $ac_cv_type_bits32_t = yes; then
10268   :
10269 else
10270
10271 cat >>confdefs.h <<EOF
10272 #define bits32_t int
10273 EOF
10274
10275 fi
10276
10277 elif test "$ac_cv_sizeof_long" = 4; then
10278   echo "$as_me:10278: checking for bits32_t" >&5
10279 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
10280 if test "${ac_cv_type_bits32_t+set}" = set; then
10281   echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283   cat >conftest.$ac_ext <<_ACEOF
10284 #line 10284 "configure"
10285 #include "confdefs.h"
10286 $ac_includes_default
10287 int
10288 main ()
10289 {
10290 if ((bits32_t *) 0)
10291   return 0;
10292 if (sizeof (bits32_t))
10293   return 0;
10294   ;
10295   return 0;
10296 }
10297 _ACEOF
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:10299: \"$ac_compile\"") >&5
10300   (eval $ac_compile) 2>&5
10301   ac_status=$?
10302   echo "$as_me:10302: \$? = $ac_status" >&5
10303   (exit $ac_status); } &&
10304          { ac_try='test -s conftest.$ac_objext'
10305   { (eval echo "$as_me:10305: \"$ac_try\"") >&5
10306   (eval $ac_try) 2>&5
10307   ac_status=$?
10308   echo "$as_me:10308: \$? = $ac_status" >&5
10309   (exit $ac_status); }; }; then
10310   ac_cv_type_bits32_t=yes
10311 else
10312   echo "$as_me: failed program was:" >&5
10313 cat conftest.$ac_ext >&5
10314 ac_cv_type_bits32_t=no
10315 fi
10316 rm -f conftest.$ac_objext conftest.$ac_ext
10317 fi
10318 echo "$as_me:10318: result: $ac_cv_type_bits32_t" >&5
10319 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
10320 if test $ac_cv_type_bits32_t = yes; then
10321   :
10322 else
10323
10324 cat >>confdefs.h <<EOF
10325 #define bits32_t long
10326 EOF
10327
10328 fi
10329
10330 else
10331   echo "$as_me:10331: checking for bits32_t" >&5
10332 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
10333 if test "${ac_cv_type_bits32_t+set}" = set; then
10334   echo $ECHO_N "(cached) $ECHO_C" >&6
10335 else
10336   cat >conftest.$ac_ext <<_ACEOF
10337 #line 10337 "configure"
10338 #include "confdefs.h"
10339 $ac_includes_default
10340 int
10341 main ()
10342 {
10343 if ((bits32_t *) 0)
10344   return 0;
10345 if (sizeof (bits32_t))
10346   return 0;
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 rm -f conftest.$ac_objext
10352 if { (eval echo "$as_me:10352: \"$ac_compile\"") >&5
10353   (eval $ac_compile) 2>&5
10354   ac_status=$?
10355   echo "$as_me:10355: \$? = $ac_status" >&5
10356   (exit $ac_status); } &&
10357          { ac_try='test -s conftest.$ac_objext'
10358   { (eval echo "$as_me:10358: \"$ac_try\"") >&5
10359   (eval $ac_try) 2>&5
10360   ac_status=$?
10361   echo "$as_me:10361: \$? = $ac_status" >&5
10362   (exit $ac_status); }; }; then
10363   ac_cv_type_bits32_t=yes
10364 else
10365   echo "$as_me: failed program was:" >&5
10366 cat conftest.$ac_ext >&5
10367 ac_cv_type_bits32_t=no
10368 fi
10369 rm -f conftest.$ac_objext conftest.$ac_ext
10370 fi
10371 echo "$as_me:10371: result: $ac_cv_type_bits32_t" >&5
10372 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
10373 if test $ac_cv_type_bits32_t = yes; then
10374   :
10375 else
10376
10377 cat >>confdefs.h <<EOF
10378 #define bits32_t int
10379 EOF
10380
10381 fi
10382
10383 fi
10384
10385 if test "$ac_cv_sizeof_int" = 4; then
10386   echo "$as_me:10386: checking for u_bits32_t" >&5
10387 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
10388 if test "${ac_cv_type_u_bits32_t+set}" = set; then
10389   echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391   cat >conftest.$ac_ext <<_ACEOF
10392 #line 10392 "configure"
10393 #include "confdefs.h"
10394 $ac_includes_default
10395 int
10396 main ()
10397 {
10398 if ((u_bits32_t *) 0)
10399   return 0;
10400 if (sizeof (u_bits32_t))
10401   return 0;
10402   ;
10403   return 0;
10404 }
10405 _ACEOF
10406 rm -f conftest.$ac_objext
10407 if { (eval echo "$as_me:10407: \"$ac_compile\"") >&5
10408   (eval $ac_compile) 2>&5
10409   ac_status=$?
10410   echo "$as_me:10410: \$? = $ac_status" >&5
10411   (exit $ac_status); } &&
10412          { ac_try='test -s conftest.$ac_objext'
10413   { (eval echo "$as_me:10413: \"$ac_try\"") >&5
10414   (eval $ac_try) 2>&5
10415   ac_status=$?
10416   echo "$as_me:10416: \$? = $ac_status" >&5
10417   (exit $ac_status); }; }; then
10418   ac_cv_type_u_bits32_t=yes
10419 else
10420   echo "$as_me: failed program was:" >&5
10421 cat conftest.$ac_ext >&5
10422 ac_cv_type_u_bits32_t=no
10423 fi
10424 rm -f conftest.$ac_objext conftest.$ac_ext
10425 fi
10426 echo "$as_me:10426: result: $ac_cv_type_u_bits32_t" >&5
10427 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
10428 if test $ac_cv_type_u_bits32_t = yes; then
10429   :
10430 else
10431
10432 cat >>confdefs.h <<EOF
10433 #define u_bits32_t unsigned int
10434 EOF
10435
10436 fi
10437
10438 elif test "$ac_cv_sizeof_long" = 4; then
10439   echo "$as_me:10439: checking for u_bits32_t" >&5
10440 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
10441 if test "${ac_cv_type_u_bits32_t+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444   cat >conftest.$ac_ext <<_ACEOF
10445 #line 10445 "configure"
10446 #include "confdefs.h"
10447 $ac_includes_default
10448 int
10449 main ()
10450 {
10451 if ((u_bits32_t *) 0)
10452   return 0;
10453 if (sizeof (u_bits32_t))
10454   return 0;
10455   ;
10456   return 0;
10457 }
10458 _ACEOF
10459 rm -f conftest.$ac_objext
10460 if { (eval echo "$as_me:10460: \"$ac_compile\"") >&5
10461   (eval $ac_compile) 2>&5
10462   ac_status=$?
10463   echo "$as_me:10463: \$? = $ac_status" >&5
10464   (exit $ac_status); } &&
10465          { ac_try='test -s conftest.$ac_objext'
10466   { (eval echo "$as_me:10466: \"$ac_try\"") >&5
10467   (eval $ac_try) 2>&5
10468   ac_status=$?
10469   echo "$as_me:10469: \$? = $ac_status" >&5
10470   (exit $ac_status); }; }; then
10471   ac_cv_type_u_bits32_t=yes
10472 else
10473   echo "$as_me: failed program was:" >&5
10474 cat conftest.$ac_ext >&5
10475 ac_cv_type_u_bits32_t=no
10476 fi
10477 rm -f conftest.$ac_objext conftest.$ac_ext
10478 fi
10479 echo "$as_me:10479: result: $ac_cv_type_u_bits32_t" >&5
10480 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
10481 if test $ac_cv_type_u_bits32_t = yes; then
10482   :
10483 else
10484
10485 cat >>confdefs.h <<EOF
10486 #define u_bits32_t unsigned long
10487 EOF
10488
10489 fi
10490
10491 else
10492   echo "$as_me:10492: checking for u_bits32_t" >&5
10493 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
10494 if test "${ac_cv_type_u_bits32_t+set}" = set; then
10495   echo $ECHO_N "(cached) $ECHO_C" >&6
10496 else
10497   cat >conftest.$ac_ext <<_ACEOF
10498 #line 10498 "configure"
10499 #include "confdefs.h"
10500 $ac_includes_default
10501 int
10502 main ()
10503 {
10504 if ((u_bits32_t *) 0)
10505   return 0;
10506 if (sizeof (u_bits32_t))
10507   return 0;
10508   ;
10509   return 0;
10510 }
10511 _ACEOF
10512 rm -f conftest.$ac_objext
10513 if { (eval echo "$as_me:10513: \"$ac_compile\"") >&5
10514   (eval $ac_compile) 2>&5
10515   ac_status=$?
10516   echo "$as_me:10516: \$? = $ac_status" >&5
10517   (exit $ac_status); } &&
10518          { ac_try='test -s conftest.$ac_objext'
10519   { (eval echo "$as_me:10519: \"$ac_try\"") >&5
10520   (eval $ac_try) 2>&5
10521   ac_status=$?
10522   echo "$as_me:10522: \$? = $ac_status" >&5
10523   (exit $ac_status); }; }; then
10524   ac_cv_type_u_bits32_t=yes
10525 else
10526   echo "$as_me: failed program was:" >&5
10527 cat conftest.$ac_ext >&5
10528 ac_cv_type_u_bits32_t=no
10529 fi
10530 rm -f conftest.$ac_objext conftest.$ac_ext
10531 fi
10532 echo "$as_me:10532: result: $ac_cv_type_u_bits32_t" >&5
10533 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
10534 if test $ac_cv_type_u_bits32_t = yes; then
10535   :
10536 else
10537
10538 cat >>confdefs.h <<EOF
10539 #define u_bits32_t unsigned int
10540 EOF
10541
10542 fi
10543
10544 fi
10545
10546 if test "$ac_cv_sizeof_char_p" = 8; then
10547   echo "$as_me:10547: checking for bits64_t" >&5
10548 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10549 if test "${ac_cv_type_bits64_t+set}" = set; then
10550   echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552   cat >conftest.$ac_ext <<_ACEOF
10553 #line 10553 "configure"
10554 #include "confdefs.h"
10555 $ac_includes_default
10556 int
10557 main ()
10558 {
10559 if ((bits64_t *) 0)
10560   return 0;
10561 if (sizeof (bits64_t))
10562   return 0;
10563   ;
10564   return 0;
10565 }
10566 _ACEOF
10567 rm -f conftest.$ac_objext
10568 if { (eval echo "$as_me:10568: \"$ac_compile\"") >&5
10569   (eval $ac_compile) 2>&5
10570   ac_status=$?
10571   echo "$as_me:10571: \$? = $ac_status" >&5
10572   (exit $ac_status); } &&
10573          { ac_try='test -s conftest.$ac_objext'
10574   { (eval echo "$as_me:10574: \"$ac_try\"") >&5
10575   (eval $ac_try) 2>&5
10576   ac_status=$?
10577   echo "$as_me:10577: \$? = $ac_status" >&5
10578   (exit $ac_status); }; }; then
10579   ac_cv_type_bits64_t=yes
10580 else
10581   echo "$as_me: failed program was:" >&5
10582 cat conftest.$ac_ext >&5
10583 ac_cv_type_bits64_t=no
10584 fi
10585 rm -f conftest.$ac_objext conftest.$ac_ext
10586 fi
10587 echo "$as_me:10587: result: $ac_cv_type_bits64_t" >&5
10588 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10589 if test $ac_cv_type_bits64_t = yes; then
10590   :
10591 else
10592
10593 cat >>confdefs.h <<EOF
10594 #define bits64_t char *
10595 EOF
10596
10597 fi
10598
10599 elif test "$ac_cv_sizeof_double" = 8; then
10600   echo "$as_me:10600: checking for bits64_t" >&5
10601 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10602 if test "${ac_cv_type_bits64_t+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605   cat >conftest.$ac_ext <<_ACEOF
10606 #line 10606 "configure"
10607 #include "confdefs.h"
10608 $ac_includes_default
10609 int
10610 main ()
10611 {
10612 if ((bits64_t *) 0)
10613   return 0;
10614 if (sizeof (bits64_t))
10615   return 0;
10616   ;
10617   return 0;
10618 }
10619 _ACEOF
10620 rm -f conftest.$ac_objext
10621 if { (eval echo "$as_me:10621: \"$ac_compile\"") >&5
10622   (eval $ac_compile) 2>&5
10623   ac_status=$?
10624   echo "$as_me:10624: \$? = $ac_status" >&5
10625   (exit $ac_status); } &&
10626          { ac_try='test -s conftest.$ac_objext'
10627   { (eval echo "$as_me:10627: \"$ac_try\"") >&5
10628   (eval $ac_try) 2>&5
10629   ac_status=$?
10630   echo "$as_me:10630: \$? = $ac_status" >&5
10631   (exit $ac_status); }; }; then
10632   ac_cv_type_bits64_t=yes
10633 else
10634   echo "$as_me: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10636 ac_cv_type_bits64_t=no
10637 fi
10638 rm -f conftest.$ac_objext conftest.$ac_ext
10639 fi
10640 echo "$as_me:10640: result: $ac_cv_type_bits64_t" >&5
10641 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10642 if test $ac_cv_type_bits64_t = yes; then
10643   :
10644 else
10645
10646 cat >>confdefs.h <<EOF
10647 #define bits64_t double
10648 EOF
10649
10650 fi
10651
10652 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
10653   echo "$as_me:10653: checking for bits64_t" >&5
10654 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10655 if test "${ac_cv_type_bits64_t+set}" = set; then
10656   echo $ECHO_N "(cached) $ECHO_C" >&6
10657 else
10658   cat >conftest.$ac_ext <<_ACEOF
10659 #line 10659 "configure"
10660 #include "confdefs.h"
10661 $ac_includes_default
10662 int
10663 main ()
10664 {
10665 if ((bits64_t *) 0)
10666   return 0;
10667 if (sizeof (bits64_t))
10668   return 0;
10669   ;
10670   return 0;
10671 }
10672 _ACEOF
10673 rm -f conftest.$ac_objext
10674 if { (eval echo "$as_me:10674: \"$ac_compile\"") >&5
10675   (eval $ac_compile) 2>&5
10676   ac_status=$?
10677   echo "$as_me:10677: \$? = $ac_status" >&5
10678   (exit $ac_status); } &&
10679          { ac_try='test -s conftest.$ac_objext'
10680   { (eval echo "$as_me:10680: \"$ac_try\"") >&5
10681   (eval $ac_try) 2>&5
10682   ac_status=$?
10683   echo "$as_me:10683: \$? = $ac_status" >&5
10684   (exit $ac_status); }; }; then
10685   ac_cv_type_bits64_t=yes
10686 else
10687   echo "$as_me: failed program was:" >&5
10688 cat conftest.$ac_ext >&5
10689 ac_cv_type_bits64_t=no
10690 fi
10691 rm -f conftest.$ac_objext conftest.$ac_ext
10692 fi
10693 echo "$as_me:10693: result: $ac_cv_type_bits64_t" >&5
10694 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10695 if test $ac_cv_type_bits64_t = yes; then
10696   :
10697 else
10698
10699 cat >>confdefs.h <<EOF
10700 #define bits64_t long long
10701 EOF
10702
10703 fi
10704
10705 elif test "$ac_cv_sizeof_long" = 8; then
10706   echo "$as_me:10706: checking for bits64_t" >&5
10707 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10708 if test "${ac_cv_type_bits64_t+set}" = set; then
10709   echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711   cat >conftest.$ac_ext <<_ACEOF
10712 #line 10712 "configure"
10713 #include "confdefs.h"
10714 $ac_includes_default
10715 int
10716 main ()
10717 {
10718 if ((bits64_t *) 0)
10719   return 0;
10720 if (sizeof (bits64_t))
10721   return 0;
10722   ;
10723   return 0;
10724 }
10725 _ACEOF
10726 rm -f conftest.$ac_objext
10727 if { (eval echo "$as_me:10727: \"$ac_compile\"") >&5
10728   (eval $ac_compile) 2>&5
10729   ac_status=$?
10730   echo "$as_me:10730: \$? = $ac_status" >&5
10731   (exit $ac_status); } &&
10732          { ac_try='test -s conftest.$ac_objext'
10733   { (eval echo "$as_me:10733: \"$ac_try\"") >&5
10734   (eval $ac_try) 2>&5
10735   ac_status=$?
10736   echo "$as_me:10736: \$? = $ac_status" >&5
10737   (exit $ac_status); }; }; then
10738   ac_cv_type_bits64_t=yes
10739 else
10740   echo "$as_me: failed program was:" >&5
10741 cat conftest.$ac_ext >&5
10742 ac_cv_type_bits64_t=no
10743 fi
10744 rm -f conftest.$ac_objext conftest.$ac_ext
10745 fi
10746 echo "$as_me:10746: result: $ac_cv_type_bits64_t" >&5
10747 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10748 if test $ac_cv_type_bits64_t = yes; then
10749   :
10750 else
10751
10752 cat >>confdefs.h <<EOF
10753 #define bits64_t long
10754 EOF
10755
10756 fi
10757
10758 else
10759   echo "$as_me:10759: checking for bits64_t" >&5
10760 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
10761 if test "${ac_cv_type_bits64_t+set}" = set; then
10762   echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764   cat >conftest.$ac_ext <<_ACEOF
10765 #line 10765 "configure"
10766 #include "confdefs.h"
10767 $ac_includes_default
10768 int
10769 main ()
10770 {
10771 if ((bits64_t *) 0)
10772   return 0;
10773 if (sizeof (bits64_t))
10774   return 0;
10775   ;
10776   return 0;
10777 }
10778 _ACEOF
10779 rm -f conftest.$ac_objext
10780 if { (eval echo "$as_me:10780: \"$ac_compile\"") >&5
10781   (eval $ac_compile) 2>&5
10782   ac_status=$?
10783   echo "$as_me:10783: \$? = $ac_status" >&5
10784   (exit $ac_status); } &&
10785          { ac_try='test -s conftest.$ac_objext'
10786   { (eval echo "$as_me:10786: \"$ac_try\"") >&5
10787   (eval $ac_try) 2>&5
10788   ac_status=$?
10789   echo "$as_me:10789: \$? = $ac_status" >&5
10790   (exit $ac_status); }; }; then
10791   ac_cv_type_bits64_t=yes
10792 else
10793   echo "$as_me: failed program was:" >&5
10794 cat conftest.$ac_ext >&5
10795 ac_cv_type_bits64_t=no
10796 fi
10797 rm -f conftest.$ac_objext conftest.$ac_ext
10798 fi
10799 echo "$as_me:10799: result: $ac_cv_type_bits64_t" >&5
10800 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
10801 if test $ac_cv_type_bits64_t = yes; then
10802   :
10803 else
10804
10805 cat >>confdefs.h <<EOF
10806 #define bits64_t double
10807 EOF
10808
10809 fi
10810
10811 fi
10812
10813 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
10814   echo "$as_me:10814: checking for ptrdiff_t" >&5
10815 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10816 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10817   echo $ECHO_N "(cached) $ECHO_C" >&6
10818 else
10819   cat >conftest.$ac_ext <<_ACEOF
10820 #line 10820 "configure"
10821 #include "confdefs.h"
10822 $ac_includes_default
10823 int
10824 main ()
10825 {
10826 if ((ptrdiff_t *) 0)
10827   return 0;
10828 if (sizeof (ptrdiff_t))
10829   return 0;
10830   ;
10831   return 0;
10832 }
10833 _ACEOF
10834 rm -f conftest.$ac_objext
10835 if { (eval echo "$as_me:10835: \"$ac_compile\"") >&5
10836   (eval $ac_compile) 2>&5
10837   ac_status=$?
10838   echo "$as_me:10838: \$? = $ac_status" >&5
10839   (exit $ac_status); } &&
10840          { ac_try='test -s conftest.$ac_objext'
10841   { (eval echo "$as_me:10841: \"$ac_try\"") >&5
10842   (eval $ac_try) 2>&5
10843   ac_status=$?
10844   echo "$as_me:10844: \$? = $ac_status" >&5
10845   (exit $ac_status); }; }; then
10846   ac_cv_type_ptrdiff_t=yes
10847 else
10848   echo "$as_me: failed program was:" >&5
10849 cat conftest.$ac_ext >&5
10850 ac_cv_type_ptrdiff_t=no
10851 fi
10852 rm -f conftest.$ac_objext conftest.$ac_ext
10853 fi
10854 echo "$as_me:10854: result: $ac_cv_type_ptrdiff_t" >&5
10855 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10856 if test $ac_cv_type_ptrdiff_t = yes; then
10857   :
10858 else
10859
10860 cat >>confdefs.h <<EOF
10861 #define ptrdiff_t int
10862 EOF
10863
10864 fi
10865
10866 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
10867   echo "$as_me:10867: checking for ptrdiff_t" >&5
10868 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10869 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10870   echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872   cat >conftest.$ac_ext <<_ACEOF
10873 #line 10873 "configure"
10874 #include "confdefs.h"
10875 $ac_includes_default
10876 int
10877 main ()
10878 {
10879 if ((ptrdiff_t *) 0)
10880   return 0;
10881 if (sizeof (ptrdiff_t))
10882   return 0;
10883   ;
10884   return 0;
10885 }
10886 _ACEOF
10887 rm -f conftest.$ac_objext
10888 if { (eval echo "$as_me:10888: \"$ac_compile\"") >&5
10889   (eval $ac_compile) 2>&5
10890   ac_status=$?
10891   echo "$as_me:10891: \$? = $ac_status" >&5
10892   (exit $ac_status); } &&
10893          { ac_try='test -s conftest.$ac_objext'
10894   { (eval echo "$as_me:10894: \"$ac_try\"") >&5
10895   (eval $ac_try) 2>&5
10896   ac_status=$?
10897   echo "$as_me:10897: \$? = $ac_status" >&5
10898   (exit $ac_status); }; }; then
10899   ac_cv_type_ptrdiff_t=yes
10900 else
10901   echo "$as_me: failed program was:" >&5
10902 cat conftest.$ac_ext >&5
10903 ac_cv_type_ptrdiff_t=no
10904 fi
10905 rm -f conftest.$ac_objext conftest.$ac_ext
10906 fi
10907 echo "$as_me:10907: result: $ac_cv_type_ptrdiff_t" >&5
10908 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10909 if test $ac_cv_type_ptrdiff_t = yes; then
10910   :
10911 else
10912
10913 cat >>confdefs.h <<EOF
10914 #define ptrdiff_t long
10915 EOF
10916
10917 fi
10918
10919 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
10920   echo "$as_me:10920: checking for ptrdiff_t" >&5
10921 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10922 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10923   echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925   cat >conftest.$ac_ext <<_ACEOF
10926 #line 10926 "configure"
10927 #include "confdefs.h"
10928 $ac_includes_default
10929 int
10930 main ()
10931 {
10932 if ((ptrdiff_t *) 0)
10933   return 0;
10934 if (sizeof (ptrdiff_t))
10935   return 0;
10936   ;
10937   return 0;
10938 }
10939 _ACEOF
10940 rm -f conftest.$ac_objext
10941 if { (eval echo "$as_me:10941: \"$ac_compile\"") >&5
10942   (eval $ac_compile) 2>&5
10943   ac_status=$?
10944   echo "$as_me:10944: \$? = $ac_status" >&5
10945   (exit $ac_status); } &&
10946          { ac_try='test -s conftest.$ac_objext'
10947   { (eval echo "$as_me:10947: \"$ac_try\"") >&5
10948   (eval $ac_try) 2>&5
10949   ac_status=$?
10950   echo "$as_me:10950: \$? = $ac_status" >&5
10951   (exit $ac_status); }; }; then
10952   ac_cv_type_ptrdiff_t=yes
10953 else
10954   echo "$as_me: failed program was:" >&5
10955 cat conftest.$ac_ext >&5
10956 ac_cv_type_ptrdiff_t=no
10957 fi
10958 rm -f conftest.$ac_objext conftest.$ac_ext
10959 fi
10960 echo "$as_me:10960: result: $ac_cv_type_ptrdiff_t" >&5
10961 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10962 if test $ac_cv_type_ptrdiff_t = yes; then
10963   :
10964 else
10965
10966 cat >>confdefs.h <<EOF
10967 #define ptrdiff_t long long
10968 EOF
10969
10970 fi
10971
10972 else
10973   echo "$as_me:10973: checking for ptrdiff_t" >&5
10974 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10975 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10976   echo $ECHO_N "(cached) $ECHO_C" >&6
10977 else
10978   cat >conftest.$ac_ext <<_ACEOF
10979 #line 10979 "configure"
10980 #include "confdefs.h"
10981 $ac_includes_default
10982 int
10983 main ()
10984 {
10985 if ((ptrdiff_t *) 0)
10986   return 0;
10987 if (sizeof (ptrdiff_t))
10988   return 0;
10989   ;
10990   return 0;
10991 }
10992 _ACEOF
10993 rm -f conftest.$ac_objext
10994 if { (eval echo "$as_me:10994: \"$ac_compile\"") >&5
10995   (eval $ac_compile) 2>&5
10996   ac_status=$?
10997   echo "$as_me:10997: \$? = $ac_status" >&5
10998   (exit $ac_status); } &&
10999          { ac_try='test -s conftest.$ac_objext'
11000   { (eval echo "$as_me:11000: \"$ac_try\"") >&5
11001   (eval $ac_try) 2>&5
11002   ac_status=$?
11003   echo "$as_me:11003: \$? = $ac_status" >&5
11004   (exit $ac_status); }; }; then
11005   ac_cv_type_ptrdiff_t=yes
11006 else
11007   echo "$as_me: failed program was:" >&5
11008 cat conftest.$ac_ext >&5
11009 ac_cv_type_ptrdiff_t=no
11010 fi
11011 rm -f conftest.$ac_objext conftest.$ac_ext
11012 fi
11013 echo "$as_me:11013: result: $ac_cv_type_ptrdiff_t" >&5
11014 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11015 if test $ac_cv_type_ptrdiff_t = yes; then
11016   :
11017 else
11018
11019 cat >>confdefs.h <<EOF
11020 #define ptrdiff_t int
11021 EOF
11022
11023 fi
11024
11025 fi
11026
11027 echo "$as_me:11027: checking whether stat file-mode macros are broken" >&5
11028 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11029 if test "${ac_cv_header_stat_broken+set}" = set; then
11030   echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032   cat >conftest.$ac_ext <<_ACEOF
11033 #line 11033 "configure"
11034 #include "confdefs.h"
11035 #include <sys/types.h>
11036 #include <sys/stat.h>
11037
11038 #if defined(S_ISBLK) && defined(S_IFDIR)
11039 # if S_ISBLK (S_IFDIR)
11040 You lose.
11041 # endif
11042 #endif
11043
11044 #if defined(S_ISBLK) && defined(S_IFCHR)
11045 # if S_ISBLK (S_IFCHR)
11046 You lose.
11047 # endif
11048 #endif
11049
11050 #if defined(S_ISLNK) && defined(S_IFREG)
11051 # if S_ISLNK (S_IFREG)
11052 You lose.
11053 # endif
11054 #endif
11055
11056 #if defined(S_ISSOCK) && defined(S_IFREG)
11057 # if S_ISSOCK (S_IFREG)
11058 You lose.
11059 # endif
11060 #endif
11061
11062 _ACEOF
11063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11064   egrep "You lose" >/dev/null 2>&1; then
11065   ac_cv_header_stat_broken=yes
11066 else
11067   ac_cv_header_stat_broken=no
11068 fi
11069 rm -f conftest*
11070
11071 fi
11072 echo "$as_me:11072: result: $ac_cv_header_stat_broken" >&5
11073 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11074 if test $ac_cv_header_stat_broken = yes; then
11075
11076 cat >>confdefs.h <<\EOF
11077 #define STAT_MACROS_BROKEN 1
11078 EOF
11079
11080 fi
11081
11082 echo "$as_me:11082: checking whether #! works in shell scripts" >&5
11083 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
11084 if test "${ac_cv_sys_interpreter+set}" = set; then
11085   echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087   echo '#! /bin/cat
11088 exit 69
11089 ' >conftest
11090 chmod u+x conftest
11091 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
11092 if test $? -ne 69; then
11093    ac_cv_sys_interpreter=yes
11094 else
11095    ac_cv_sys_interpreter=no
11096 fi
11097 rm -f conftest
11098 fi
11099 echo "$as_me:11099: result: $ac_cv_sys_interpreter" >&5
11100 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
11101 interpval=$ac_cv_sys_interpreter
11102
11103 if test $ac_cv_sys_interpreter = yes; then
11104 cat >>confdefs.h <<\EOF
11105 #define HAVE_HASH_BANG_EXEC 1
11106 EOF
11107
11108 fi
11109
11110 if test "$ac_cv_func_lstat" = "no"; then
11111 echo "$as_me:11111: checking for lstat" >&5
11112 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
11113 if test "${bash_cv_func_lstat+set}" = set; then
11114   echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116   cat >conftest.$ac_ext <<_ACEOF
11117 #line 11117 "configure"
11118 #include "confdefs.h"
11119
11120 #include <sys/types.h>
11121 #include <sys/stat.h>
11122
11123 int
11124 main ()
11125 {
11126  lstat(".",(struct stat *)0);
11127   ;
11128   return 0;
11129 }
11130 _ACEOF
11131 rm -f conftest.$ac_objext conftest$ac_exeext
11132 if { (eval echo "$as_me:11132: \"$ac_link\"") >&5
11133   (eval $ac_link) 2>&5
11134   ac_status=$?
11135   echo "$as_me:11135: \$? = $ac_status" >&5
11136   (exit $ac_status); } &&
11137          { ac_try='test -s conftest$ac_exeext'
11138   { (eval echo "$as_me:11138: \"$ac_try\"") >&5
11139   (eval $ac_try) 2>&5
11140   ac_status=$?
11141   echo "$as_me:11141: \$? = $ac_status" >&5
11142   (exit $ac_status); }; }; then
11143   bash_cv_func_lstat=yes
11144 else
11145   echo "$as_me: failed program was:" >&5
11146 cat conftest.$ac_ext >&5
11147 bash_cv_func_lstat=no
11148 fi
11149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11150 fi
11151 echo "$as_me:11151: result: $bash_cv_func_lstat" >&5
11152 echo "${ECHO_T}$bash_cv_func_lstat" >&6
11153 if test $bash_cv_func_lstat = yes; then
11154   cat >>confdefs.h <<\EOF
11155 #define HAVE_LSTAT 1
11156 EOF
11157
11158 fi
11159
11160 fi
11161
11162 echo "$as_me:11162: checking if dup2 fails to clear the close-on-exec flag" >&5
11163 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
11164 if test "${bash_cv_dup2_broken+set}" = set; then
11165   echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167   if test "$cross_compiling" = yes; then
11168   { echo "$as_me:11168: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
11169 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
11170      bash_cv_dup2_broken=no
11171 else
11172   cat >conftest.$ac_ext <<_ACEOF
11173 #line 11173 "configure"
11174 #include "confdefs.h"
11175
11176 #include <sys/types.h>
11177 #include <fcntl.h>
11178 main()
11179 {
11180   int fd1, fd2, fl;
11181   fd1 = open("/dev/null", 2);
11182   if (fcntl(fd1, 2, 1) < 0)
11183     exit(1);
11184   fd2 = dup2(fd1, 1);
11185   if (fd2 < 0)
11186     exit(2);
11187   fl = fcntl(fd2, 1, 0);
11188   /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
11189   exit(fl != 1);
11190 }
11191
11192 _ACEOF
11193 rm -f conftest$ac_exeext
11194 if { (eval echo "$as_me:11194: \"$ac_link\"") >&5
11195   (eval $ac_link) 2>&5
11196   ac_status=$?
11197   echo "$as_me:11197: \$? = $ac_status" >&5
11198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11199   { (eval echo "$as_me:11199: \"$ac_try\"") >&5
11200   (eval $ac_try) 2>&5
11201   ac_status=$?
11202   echo "$as_me:11202: \$? = $ac_status" >&5
11203   (exit $ac_status); }; }; then
11204   bash_cv_dup2_broken=yes
11205 else
11206   echo "$as_me: program exited with status $ac_status" >&5
11207 echo "$as_me: failed program was:" >&5
11208 cat conftest.$ac_ext >&5
11209 bash_cv_dup2_broken=no
11210 fi
11211 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11212 fi
11213
11214 fi
11215
11216 echo "$as_me:11216: result: $bash_cv_dup2_broken" >&5
11217 echo "${ECHO_T}$bash_cv_dup2_broken" >&6
11218 if test $bash_cv_dup2_broken = yes; then
11219 cat >>confdefs.h <<\EOF
11220 #define DUP2_BROKEN 1
11221 EOF
11222
11223 fi
11224
11225 echo "$as_me:11225: checking whether pgrps need synchronization" >&5
11226 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
11227 if test "${bash_cv_pgrp_pipe+set}" = set; then
11228   echo $ECHO_N "(cached) $ECHO_C" >&6
11229 else
11230   if test "$cross_compiling" = yes; then
11231   { echo "$as_me:11231: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
11232 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
11233     bash_cv_pgrp_pipe=no
11234 else
11235   cat >conftest.$ac_ext <<_ACEOF
11236 #line 11236 "configure"
11237 #include "confdefs.h"
11238
11239 #ifdef HAVE_UNISTD_H
11240 #  include <unistd.h>
11241 #endif
11242 main()
11243 {
11244 # ifdef GETPGRP_VOID
11245 #  define getpgID()     getpgrp()
11246 # else
11247 #  define getpgID()     getpgrp(0)
11248 #  define setpgid(x,y)  setpgrp(x,y)
11249 # endif
11250         int pid1, pid2, fds[2];
11251         int status;
11252         char ok;
11253
11254         switch (pid1 = fork()) {
11255           case -1:
11256             exit(1);
11257           case 0:
11258             setpgid(0, getpid());
11259             exit(0);
11260         }
11261         setpgid(pid1, pid1);
11262
11263         sleep(2);       /* let first child die */
11264
11265         if (pipe(fds) < 0)
11266           exit(2);
11267
11268         switch (pid2 = fork()) {
11269           case -1:
11270             exit(3);
11271           case 0:
11272             setpgid(0, pid1);
11273             ok = getpgID() == pid1;
11274             write(fds[1], &ok, 1);
11275             exit(0);
11276         }
11277         setpgid(pid2, pid1);
11278
11279         close(fds[1]);
11280         if (read(fds[0], &ok, 1) != 1)
11281           exit(4);
11282         wait(&status);
11283         wait(&status);
11284         exit(ok ? 0 : 5);
11285 }
11286
11287 _ACEOF
11288 rm -f conftest$ac_exeext
11289 if { (eval echo "$as_me:11289: \"$ac_link\"") >&5
11290   (eval $ac_link) 2>&5
11291   ac_status=$?
11292   echo "$as_me:11292: \$? = $ac_status" >&5
11293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11294   { (eval echo "$as_me:11294: \"$ac_try\"") >&5
11295   (eval $ac_try) 2>&5
11296   ac_status=$?
11297   echo "$as_me:11297: \$? = $ac_status" >&5
11298   (exit $ac_status); }; }; then
11299   bash_cv_pgrp_pipe=no
11300 else
11301   echo "$as_me: program exited with status $ac_status" >&5
11302 echo "$as_me: failed program was:" >&5
11303 cat conftest.$ac_ext >&5
11304 bash_cv_pgrp_pipe=yes
11305 fi
11306 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11307 fi
11308
11309 fi
11310
11311 echo "$as_me:11311: result: $bash_cv_pgrp_pipe" >&5
11312 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
11313 if test $bash_cv_pgrp_pipe = yes; then
11314 cat >>confdefs.h <<\EOF
11315 #define PGRP_PIPE 1
11316 EOF
11317
11318 fi
11319
11320 echo "$as_me:11320: checking for type of signal functions" >&5
11321 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11322 if test "${bash_cv_signal_vintage+set}" = set; then
11323   echo $ECHO_N "(cached) $ECHO_C" >&6
11324 else
11325
11326   cat >conftest.$ac_ext <<_ACEOF
11327 #line 11327 "configure"
11328 #include "confdefs.h"
11329 #include <signal.h>
11330 int
11331 main ()
11332 {
11333
11334     sigset_t ss;
11335     struct sigaction sa;
11336     sigemptyset(&ss); sigsuspend(&ss);
11337     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11338     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11339
11340   ;
11341   return 0;
11342 }
11343 _ACEOF
11344 rm -f conftest.$ac_objext conftest$ac_exeext
11345 if { (eval echo "$as_me:11345: \"$ac_link\"") >&5
11346   (eval $ac_link) 2>&5
11347   ac_status=$?
11348   echo "$as_me:11348: \$? = $ac_status" >&5
11349   (exit $ac_status); } &&
11350          { ac_try='test -s conftest$ac_exeext'
11351   { (eval echo "$as_me:11351: \"$ac_try\"") >&5
11352   (eval $ac_try) 2>&5
11353   ac_status=$?
11354   echo "$as_me:11354: \$? = $ac_status" >&5
11355   (exit $ac_status); }; }; then
11356   bash_cv_signal_vintage=posix
11357 else
11358   echo "$as_me: failed program was:" >&5
11359 cat conftest.$ac_ext >&5
11360
11361     cat >conftest.$ac_ext <<_ACEOF
11362 #line 11362 "configure"
11363 #include "confdefs.h"
11364 #include <signal.h>
11365 int
11366 main ()
11367 {
11368
11369         int mask = sigmask(SIGINT);
11370         sigsetmask(mask); sigblock(mask); sigpause(mask);
11371
11372   ;
11373   return 0;
11374 }
11375 _ACEOF
11376 rm -f conftest.$ac_objext conftest$ac_exeext
11377 if { (eval echo "$as_me:11377: \"$ac_link\"") >&5
11378   (eval $ac_link) 2>&5
11379   ac_status=$?
11380   echo "$as_me:11380: \$? = $ac_status" >&5
11381   (exit $ac_status); } &&
11382          { ac_try='test -s conftest$ac_exeext'
11383   { (eval echo "$as_me:11383: \"$ac_try\"") >&5
11384   (eval $ac_try) 2>&5
11385   ac_status=$?
11386   echo "$as_me:11386: \$? = $ac_status" >&5
11387   (exit $ac_status); }; }; then
11388   bash_cv_signal_vintage=4.2bsd
11389 else
11390   echo "$as_me: failed program was:" >&5
11391 cat conftest.$ac_ext >&5
11392
11393       cat >conftest.$ac_ext <<_ACEOF
11394 #line 11394 "configure"
11395 #include "confdefs.h"
11396
11397         #include <signal.h>
11398         RETSIGTYPE foo() { }
11399 int
11400 main ()
11401 {
11402
11403                 int mask = sigmask(SIGINT);
11404                 sigset(SIGINT, foo); sigrelse(SIGINT);
11405                 sighold(SIGINT); sigpause(SIGINT);
11406
11407   ;
11408   return 0;
11409 }
11410 _ACEOF
11411 rm -f conftest.$ac_objext conftest$ac_exeext
11412 if { (eval echo "$as_me:11412: \"$ac_link\"") >&5
11413   (eval $ac_link) 2>&5
11414   ac_status=$?
11415   echo "$as_me:11415: \$? = $ac_status" >&5
11416   (exit $ac_status); } &&
11417          { ac_try='test -s conftest$ac_exeext'
11418   { (eval echo "$as_me:11418: \"$ac_try\"") >&5
11419   (eval $ac_try) 2>&5
11420   ac_status=$?
11421   echo "$as_me:11421: \$? = $ac_status" >&5
11422   (exit $ac_status); }; }; then
11423   bash_cv_signal_vintage=svr3
11424 else
11425   echo "$as_me: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11427 bash_cv_signal_vintage=v7
11428
11429 fi
11430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11431
11432 fi
11433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11434
11435 fi
11436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11437
11438 fi
11439
11440 echo "$as_me:11440: result: $bash_cv_signal_vintage" >&5
11441 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11442 if test "$bash_cv_signal_vintage" = posix; then
11443 cat >>confdefs.h <<\EOF
11444 #define HAVE_POSIX_SIGNALS 1
11445 EOF
11446
11447 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11448 cat >>confdefs.h <<\EOF
11449 #define HAVE_BSD_SIGNALS 1
11450 EOF
11451
11452 elif test "$bash_cv_signal_vintage" = svr3; then
11453 cat >>confdefs.h <<\EOF
11454 #define HAVE_USG_SIGHOLD 1
11455 EOF
11456
11457 fi
11458
11459 echo "$as_me:11459: checking for sys_errlist and sys_nerr" >&5
11460 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
11461 if test "${bash_cv_sys_errlist+set}" = set; then
11462   echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464   cat >conftest.$ac_ext <<_ACEOF
11465 #line 11465 "configure"
11466 #include "confdefs.h"
11467 #include <errno.h>
11468 int
11469 main ()
11470 {
11471 extern char *sys_errlist[];
11472  extern int sys_nerr;
11473  char *msg = sys_errlist[sys_nerr - 1];
11474   ;
11475   return 0;
11476 }
11477 _ACEOF
11478 rm -f conftest.$ac_objext conftest$ac_exeext
11479 if { (eval echo "$as_me:11479: \"$ac_link\"") >&5
11480   (eval $ac_link) 2>&5
11481   ac_status=$?
11482   echo "$as_me:11482: \$? = $ac_status" >&5
11483   (exit $ac_status); } &&
11484          { ac_try='test -s conftest$ac_exeext'
11485   { (eval echo "$as_me:11485: \"$ac_try\"") >&5
11486   (eval $ac_try) 2>&5
11487   ac_status=$?
11488   echo "$as_me:11488: \$? = $ac_status" >&5
11489   (exit $ac_status); }; }; then
11490   bash_cv_sys_errlist=yes
11491 else
11492   echo "$as_me: failed program was:" >&5
11493 cat conftest.$ac_ext >&5
11494 bash_cv_sys_errlist=no
11495 fi
11496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11497 fi
11498 echo "$as_me:11498: result: $bash_cv_sys_errlist" >&5
11499 echo "${ECHO_T}$bash_cv_sys_errlist" >&6
11500 if test $bash_cv_sys_errlist = yes; then
11501 cat >>confdefs.h <<\EOF
11502 #define HAVE_SYS_ERRLIST 1
11503 EOF
11504
11505 fi
11506
11507 echo "$as_me:11507: checking for sys_siglist in system C library" >&5
11508 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
11509 if test "${bash_cv_sys_siglist+set}" = set; then
11510   echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512   if test "$cross_compiling" = yes; then
11513   { echo "$as_me:11513: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
11514 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
11515          bash_cv_sys_siglist=no
11516 else
11517   cat >conftest.$ac_ext <<_ACEOF
11518 #line 11518 "configure"
11519 #include "confdefs.h"
11520
11521 #include <sys/types.h>
11522 #include <signal.h>
11523 #ifdef HAVE_UNISTD_H
11524 #include <unistd.h>
11525 #endif
11526 #ifndef SYS_SIGLIST_DECLARED
11527 extern char *sys_siglist[];
11528 #endif
11529 main()
11530 {
11531 char *msg = sys_siglist[2];
11532 exit(msg == 0);
11533 }
11534 _ACEOF
11535 rm -f conftest$ac_exeext
11536 if { (eval echo "$as_me:11536: \"$ac_link\"") >&5
11537   (eval $ac_link) 2>&5
11538   ac_status=$?
11539   echo "$as_me:11539: \$? = $ac_status" >&5
11540   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11541   { (eval echo "$as_me:11541: \"$ac_try\"") >&5
11542   (eval $ac_try) 2>&5
11543   ac_status=$?
11544   echo "$as_me:11544: \$? = $ac_status" >&5
11545   (exit $ac_status); }; }; then
11546   bash_cv_sys_siglist=yes
11547 else
11548   echo "$as_me: program exited with status $ac_status" >&5
11549 echo "$as_me: failed program was:" >&5
11550 cat conftest.$ac_ext >&5
11551 bash_cv_sys_siglist=no
11552 fi
11553 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11554 fi
11555 fi
11556
11557 echo "$as_me:11557: result: $bash_cv_sys_siglist" >&5
11558 echo "${ECHO_T}$bash_cv_sys_siglist" >&6
11559 if test $bash_cv_sys_siglist = yes; then
11560 cat >>confdefs.h <<\EOF
11561 #define HAVE_SYS_SIGLIST 1
11562 EOF
11563
11564 fi
11565
11566 echo "$as_me:11566: checking for _sys_siglist in signal.h or unistd.h" >&5
11567 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
11568 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
11569   echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571   cat >conftest.$ac_ext <<_ACEOF
11572 #line 11572 "configure"
11573 #include "confdefs.h"
11574
11575 #include <sys/types.h>
11576 #include <signal.h>
11577 #ifdef HAVE_UNISTD_H
11578 #include <unistd.h>
11579 #endif
11580 int
11581 main ()
11582 {
11583  char *msg = _sys_siglist[2];
11584   ;
11585   return 0;
11586 }
11587 _ACEOF
11588 rm -f conftest.$ac_objext
11589 if { (eval echo "$as_me:11589: \"$ac_compile\"") >&5
11590   (eval $ac_compile) 2>&5
11591   ac_status=$?
11592   echo "$as_me:11592: \$? = $ac_status" >&5
11593   (exit $ac_status); } &&
11594          { ac_try='test -s conftest.$ac_objext'
11595   { (eval echo "$as_me:11595: \"$ac_try\"") >&5
11596   (eval $ac_try) 2>&5
11597   ac_status=$?
11598   echo "$as_me:11598: \$? = $ac_status" >&5
11599   (exit $ac_status); }; }; then
11600   bash_cv_decl_under_sys_siglist=yes
11601 else
11602   echo "$as_me: failed program was:" >&5
11603 cat conftest.$ac_ext >&5
11604 bash_cv_decl_under_sys_siglist=no
11605 fi
11606 rm -f conftest.$ac_objext conftest.$ac_ext
11607 fi
11608 echo "$as_me:11608: result: $bash_cv_decl_under_sys_siglist" >&5
11609 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
11610 if test $bash_cv_decl_under_sys_siglist = yes; then
11611 cat >>confdefs.h <<\EOF
11612 #define UNDER_SYS_SIGLIST_DECLARED 1
11613 EOF
11614
11615 fi
11616
11617 echo "$as_me:11617: checking for _sys_siglist in system C library" >&5
11618 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
11619 if test "${bash_cv_under_sys_siglist+set}" = set; then
11620   echo $ECHO_N "(cached) $ECHO_C" >&6
11621 else
11622   if test "$cross_compiling" = yes; then
11623   { echo "$as_me:11623: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
11624 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
11625          bash_cv_under_sys_siglist=no
11626 else
11627   cat >conftest.$ac_ext <<_ACEOF
11628 #line 11628 "configure"
11629 #include "confdefs.h"
11630
11631 #include <sys/types.h>
11632 #include <signal.h>
11633 #ifdef HAVE_UNISTD_H
11634 #include <unistd.h>
11635 #endif
11636 #ifndef UNDER_SYS_SIGLIST_DECLARED
11637 extern char *_sys_siglist[];
11638 #endif
11639 main()
11640 {
11641 char *msg = (char *)_sys_siglist[2];
11642 exit(msg == 0);
11643 }
11644 _ACEOF
11645 rm -f conftest$ac_exeext
11646 if { (eval echo "$as_me:11646: \"$ac_link\"") >&5
11647   (eval $ac_link) 2>&5
11648   ac_status=$?
11649   echo "$as_me:11649: \$? = $ac_status" >&5
11650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11651   { (eval echo "$as_me:11651: \"$ac_try\"") >&5
11652   (eval $ac_try) 2>&5
11653   ac_status=$?
11654   echo "$as_me:11654: \$? = $ac_status" >&5
11655   (exit $ac_status); }; }; then
11656   bash_cv_under_sys_siglist=yes
11657 else
11658   echo "$as_me: program exited with status $ac_status" >&5
11659 echo "$as_me: failed program was:" >&5
11660 cat conftest.$ac_ext >&5
11661 bash_cv_under_sys_siglist=no
11662 fi
11663 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11664 fi
11665 fi
11666
11667 echo "$as_me:11667: result: $bash_cv_under_sys_siglist" >&5
11668 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
11669 if test $bash_cv_under_sys_siglist = yes; then
11670 cat >>confdefs.h <<\EOF
11671 #define HAVE_UNDER_SYS_SIGLIST 1
11672 EOF
11673
11674 fi
11675
11676 echo "$as_me:11676: checking whether signal handlers are of type void" >&5
11677 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
11678 if test "${bash_cv_void_sighandler+set}" = set; then
11679   echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11681   cat >conftest.$ac_ext <<_ACEOF
11682 #line 11682 "configure"
11683 #include "confdefs.h"
11684 #include <sys/types.h>
11685 #include <signal.h>
11686 #ifdef signal
11687 #undef signal
11688 #endif
11689 #ifdef __cplusplus
11690 extern "C"
11691 #endif
11692 void (*signal ()) ();
11693 int
11694 main ()
11695 {
11696 int i;
11697   ;
11698   return 0;
11699 }
11700 _ACEOF
11701 rm -f conftest.$ac_objext
11702 if { (eval echo "$as_me:11702: \"$ac_compile\"") >&5
11703   (eval $ac_compile) 2>&5
11704   ac_status=$?
11705   echo "$as_me:11705: \$? = $ac_status" >&5
11706   (exit $ac_status); } &&
11707          { ac_try='test -s conftest.$ac_objext'
11708   { (eval echo "$as_me:11708: \"$ac_try\"") >&5
11709   (eval $ac_try) 2>&5
11710   ac_status=$?
11711   echo "$as_me:11711: \$? = $ac_status" >&5
11712   (exit $ac_status); }; }; then
11713   bash_cv_void_sighandler=yes
11714 else
11715   echo "$as_me: failed program was:" >&5
11716 cat conftest.$ac_ext >&5
11717 bash_cv_void_sighandler=no
11718 fi
11719 rm -f conftest.$ac_objext conftest.$ac_ext
11720 fi
11721 echo "$as_me:11721: result: $bash_cv_void_sighandler" >&5
11722 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
11723 if test $bash_cv_void_sighandler = yes; then
11724 cat >>confdefs.h <<\EOF
11725 #define VOID_SIGHANDLER 1
11726 EOF
11727
11728 fi
11729
11730 echo "$as_me:11730: checking for clock_t" >&5
11731 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11732 if test "${bash_cv_type_clock_t+set}" = set; then
11733   echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735   cat >conftest.$ac_ext <<_ACEOF
11736 #line 11736 "configure"
11737 #include "confdefs.h"
11738 #include <sys/types.h>
11739 #if STDC_HEADERS
11740 #include <stdlib.h>
11741 #include <stddef.h>
11742 #endif
11743 #if HAVE_INTTYPES_H
11744 #include <inttypes.h>
11745 #endif
11746 #include <sys/times.h>
11747
11748 _ACEOF
11749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11750   egrep "clock_t" >/dev/null 2>&1; then
11751   bash_cv_type_clock_t=yes
11752 else
11753   bash_cv_type_clock_t=no
11754 fi
11755 rm -f conftest*
11756
11757 fi
11758
11759 echo "$as_me:11759: result: $bash_cv_type_clock_t" >&5
11760 echo "${ECHO_T}$bash_cv_type_clock_t" >&6
11761
11762 if test $bash_cv_type_clock_t = no; then
11763   cat >>confdefs.h <<EOF
11764 #define clock_t long
11765 EOF
11766
11767 fi
11768
11769 echo "$as_me:11769: checking for sigset_t" >&5
11770 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
11771 if test "${bash_cv_type_sigset_t+set}" = set; then
11772   echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774   cat >conftest.$ac_ext <<_ACEOF
11775 #line 11775 "configure"
11776 #include "confdefs.h"
11777 #include <sys/types.h>
11778 #if STDC_HEADERS
11779 #include <stdlib.h>
11780 #include <stddef.h>
11781 #endif
11782 #if HAVE_INTTYPES_H
11783 #include <inttypes.h>
11784 #endif
11785 #include <signal.h>
11786
11787 _ACEOF
11788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11789   egrep "sigset_t" >/dev/null 2>&1; then
11790   bash_cv_type_sigset_t=yes
11791 else
11792   bash_cv_type_sigset_t=no
11793 fi
11794 rm -f conftest*
11795
11796 fi
11797
11798 echo "$as_me:11798: result: $bash_cv_type_sigset_t" >&5
11799 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
11800
11801 if test $bash_cv_type_sigset_t = no; then
11802   cat >>confdefs.h <<EOF
11803 #define sigset_t int
11804 EOF
11805
11806 fi
11807
11808 echo "$as_me:11808: checking for quad_t" >&5
11809 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
11810 if test "${bash_cv_type_quad_t+set}" = set; then
11811   echo $ECHO_N "(cached) $ECHO_C" >&6
11812 else
11813   cat >conftest.$ac_ext <<_ACEOF
11814 #line 11814 "configure"
11815 #include "confdefs.h"
11816 #include <sys/types.h>
11817 #if STDC_HEADERS
11818 #include <stdlib.h>
11819 #include <stddef.h>
11820 #endif
11821 #if HAVE_INTTYPES_H
11822 #include <inttypes.h>
11823 #endif
11824
11825 _ACEOF
11826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11827   egrep "quad_t" >/dev/null 2>&1; then
11828   bash_cv_type_quad_t=yes
11829 else
11830   bash_cv_type_quad_t=no
11831 fi
11832 rm -f conftest*
11833
11834 fi
11835
11836 echo "$as_me:11836: result: $bash_cv_type_quad_t" >&5
11837 echo "${ECHO_T}$bash_cv_type_quad_t" >&6
11838 if test $bash_cv_type_quad_t = yes; then
11839         cat >>confdefs.h <<\EOF
11840 #define HAVE_QUAD_T 1
11841 EOF
11842
11843         fi
11844 if test $bash_cv_type_quad_t = no; then
11845   cat >>confdefs.h <<EOF
11846 #define quad_t long
11847 EOF
11848
11849 fi
11850
11851 echo "$as_me:11851: checking for intmax_t" >&5
11852 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
11853 if test "${bash_cv_type_intmax_t+set}" = set; then
11854   echo $ECHO_N "(cached) $ECHO_C" >&6
11855 else
11856   cat >conftest.$ac_ext <<_ACEOF
11857 #line 11857 "configure"
11858 #include "confdefs.h"
11859 #include <sys/types.h>
11860 #if STDC_HEADERS
11861 #include <stdlib.h>
11862 #include <stddef.h>
11863 #endif
11864 #if HAVE_INTTYPES_H
11865 #include <inttypes.h>
11866 #endif
11867
11868 _ACEOF
11869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11870   egrep "intmax_t" >/dev/null 2>&1; then
11871   bash_cv_type_intmax_t=yes
11872 else
11873   bash_cv_type_intmax_t=no
11874 fi
11875 rm -f conftest*
11876
11877 fi
11878
11879 echo "$as_me:11879: result: $bash_cv_type_intmax_t" >&5
11880 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
11881
11882 if test $bash_cv_type_intmax_t = no; then
11883   cat >>confdefs.h <<EOF
11884 #define intmax_t $bash_cv_type_long_long
11885 EOF
11886
11887 fi
11888
11889 echo "$as_me:11889: checking for uintmax_t" >&5
11890 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
11891 if test "${bash_cv_type_uintmax_t+set}" = set; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894   cat >conftest.$ac_ext <<_ACEOF
11895 #line 11895 "configure"
11896 #include "confdefs.h"
11897 #include <sys/types.h>
11898 #if STDC_HEADERS
11899 #include <stdlib.h>
11900 #include <stddef.h>
11901 #endif
11902 #if HAVE_INTTYPES_H
11903 #include <inttypes.h>
11904 #endif
11905
11906 _ACEOF
11907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11908   egrep "uintmax_t" >/dev/null 2>&1; then
11909   bash_cv_type_uintmax_t=yes
11910 else
11911   bash_cv_type_uintmax_t=no
11912 fi
11913 rm -f conftest*
11914
11915 fi
11916
11917 echo "$as_me:11917: result: $bash_cv_type_uintmax_t" >&5
11918 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
11919
11920 if test $bash_cv_type_uintmax_t = no; then
11921   cat >>confdefs.h <<EOF
11922 #define uintmax_t $bash_cv_type_unsigned_long_long
11923 EOF
11924
11925 fi
11926
11927 if test "$ac_cv_header_sys_socket_h" = "yes"; then
11928
11929 echo "$as_me:11929: checking for socklen_t" >&5
11930 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11931 if test "${bash_cv_type_socklen_t+set}" = set; then
11932   echo $ECHO_N "(cached) $ECHO_C" >&6
11933 else
11934   cat >conftest.$ac_ext <<_ACEOF
11935 #line 11935 "configure"
11936 #include "confdefs.h"
11937 #include <sys/types.h>
11938 #if STDC_HEADERS
11939 #include <stdlib.h>
11940 #include <stddef.h>
11941 #endif
11942 #if HAVE_INTTYPES_H
11943 #include <inttypes.h>
11944 #endif
11945 #include <sys/socket.h>
11946
11947 _ACEOF
11948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11949   egrep "socklen_t" >/dev/null 2>&1; then
11950   bash_cv_type_socklen_t=yes
11951 else
11952   bash_cv_type_socklen_t=no
11953 fi
11954 rm -f conftest*
11955
11956 fi
11957
11958 echo "$as_me:11958: result: $bash_cv_type_socklen_t" >&5
11959 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
11960 if test $bash_cv_type_socklen_t = yes; then
11961         cat >>confdefs.h <<\EOF
11962 #define HAVE_SOCKLEN_T 1
11963 EOF
11964
11965         fi
11966 if test $bash_cv_type_socklen_t = no; then
11967   cat >>confdefs.h <<EOF
11968 #define socklen_t int
11969 EOF
11970
11971 fi
11972
11973 fi
11974 echo "$as_me:11974: checking for size and type of struct rlimit fields" >&5
11975 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
11976 if test "${bash_cv_type_rlimit+set}" = set; then
11977   echo $ECHO_N "(cached) $ECHO_C" >&6
11978 else
11979   cat >conftest.$ac_ext <<_ACEOF
11980 #line 11980 "configure"
11981 #include "confdefs.h"
11982 #include <sys/types.h>
11983 #include <sys/resource.h>
11984 int
11985 main ()
11986 {
11987 rlim_t xxx;
11988   ;
11989   return 0;
11990 }
11991 _ACEOF
11992 rm -f conftest.$ac_objext
11993 if { (eval echo "$as_me:11993: \"$ac_compile\"") >&5
11994   (eval $ac_compile) 2>&5
11995   ac_status=$?
11996   echo "$as_me:11996: \$? = $ac_status" >&5
11997   (exit $ac_status); } &&
11998          { ac_try='test -s conftest.$ac_objext'
11999   { (eval echo "$as_me:11999: \"$ac_try\"") >&5
12000   (eval $ac_try) 2>&5
12001   ac_status=$?
12002   echo "$as_me:12002: \$? = $ac_status" >&5
12003   (exit $ac_status); }; }; then
12004   bash_cv_type_rlimit=rlim_t
12005 else
12006   echo "$as_me: failed program was:" >&5
12007 cat conftest.$ac_ext >&5
12008
12009 if test "$cross_compiling" = yes; then
12010   { echo "$as_me:12010: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
12011 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
12012          bash_cv_type_rlimit=long
12013 else
12014   cat >conftest.$ac_ext <<_ACEOF
12015 #line 12015 "configure"
12016 #include "confdefs.h"
12017
12018 #include <sys/types.h>
12019 #include <sys/time.h>
12020 #include <sys/resource.h>
12021 main()
12022 {
12023 #ifdef HAVE_QUAD_T
12024   struct rlimit rl;
12025   if (sizeof(rl.rlim_cur) == sizeof(quad_t))
12026     exit(0);
12027 #endif
12028   exit(1);
12029 }
12030 _ACEOF
12031 rm -f conftest$ac_exeext
12032 if { (eval echo "$as_me:12032: \"$ac_link\"") >&5
12033   (eval $ac_link) 2>&5
12034   ac_status=$?
12035   echo "$as_me:12035: \$? = $ac_status" >&5
12036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12037   { (eval echo "$as_me:12037: \"$ac_try\"") >&5
12038   (eval $ac_try) 2>&5
12039   ac_status=$?
12040   echo "$as_me:12040: \$? = $ac_status" >&5
12041   (exit $ac_status); }; }; then
12042   bash_cv_type_rlimit=quad_t
12043 else
12044   echo "$as_me: program exited with status $ac_status" >&5
12045 echo "$as_me: failed program was:" >&5
12046 cat conftest.$ac_ext >&5
12047 bash_cv_type_rlimit=long
12048 fi
12049 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12050 fi
12051 fi
12052 rm -f conftest.$ac_objext conftest.$ac_ext
12053
12054 fi
12055
12056 echo "$as_me:12056: result: $bash_cv_type_rlimit" >&5
12057 echo "${ECHO_T}$bash_cv_type_rlimit" >&6
12058 if test $bash_cv_type_rlimit = quad_t; then
12059 cat >>confdefs.h <<\EOF
12060 #define RLIMTYPE quad_t
12061 EOF
12062
12063 elif test $bash_cv_type_rlimit = rlim_t; then
12064 cat >>confdefs.h <<\EOF
12065 #define RLIMTYPE rlim_t
12066 EOF
12067
12068 fi
12069
12070 echo "$as_me:12070: checking for struct termios.c_line" >&5
12071 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
12072 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
12073   echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075   cat >conftest.$ac_ext <<_ACEOF
12076 #line 12076 "configure"
12077 #include "confdefs.h"
12078
12079 #include <sys/types.h>
12080 #include <termios.h>
12081
12082 int
12083 main ()
12084 {
12085 static struct termios ac_aggr;
12086 if (ac_aggr.c_line)
12087 return 0;
12088   ;
12089   return 0;
12090 }
12091 _ACEOF
12092 rm -f conftest.$ac_objext
12093 if { (eval echo "$as_me:12093: \"$ac_compile\"") >&5
12094   (eval $ac_compile) 2>&5
12095   ac_status=$?
12096   echo "$as_me:12096: \$? = $ac_status" >&5
12097   (exit $ac_status); } &&
12098          { ac_try='test -s conftest.$ac_objext'
12099   { (eval echo "$as_me:12099: \"$ac_try\"") >&5
12100   (eval $ac_try) 2>&5
12101   ac_status=$?
12102   echo "$as_me:12102: \$? = $ac_status" >&5
12103   (exit $ac_status); }; }; then
12104   ac_cv_member_struct_termios_c_line=yes
12105 else
12106   echo "$as_me: failed program was:" >&5
12107 cat conftest.$ac_ext >&5
12108 ac_cv_member_struct_termios_c_line=no
12109 fi
12110 rm -f conftest.$ac_objext conftest.$ac_ext
12111 fi
12112 echo "$as_me:12112: result: $ac_cv_member_struct_termios_c_line" >&5
12113 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
12114 if test $ac_cv_member_struct_termios_c_line = yes; then
12115   cat >>confdefs.h <<\EOF
12116 #define TERMIOS_LDISC 1
12117 EOF
12118
12119 fi
12120
12121 echo "$as_me:12121: checking for struct termio.c_line" >&5
12122 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
12123 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
12124   echo $ECHO_N "(cached) $ECHO_C" >&6
12125 else
12126   cat >conftest.$ac_ext <<_ACEOF
12127 #line 12127 "configure"
12128 #include "confdefs.h"
12129
12130 #include <sys/types.h>
12131 #include <termio.h>
12132
12133 int
12134 main ()
12135 {
12136 static struct termio ac_aggr;
12137 if (ac_aggr.c_line)
12138 return 0;
12139   ;
12140   return 0;
12141 }
12142 _ACEOF
12143 rm -f conftest.$ac_objext
12144 if { (eval echo "$as_me:12144: \"$ac_compile\"") >&5
12145   (eval $ac_compile) 2>&5
12146   ac_status=$?
12147   echo "$as_me:12147: \$? = $ac_status" >&5
12148   (exit $ac_status); } &&
12149          { ac_try='test -s conftest.$ac_objext'
12150   { (eval echo "$as_me:12150: \"$ac_try\"") >&5
12151   (eval $ac_try) 2>&5
12152   ac_status=$?
12153   echo "$as_me:12153: \$? = $ac_status" >&5
12154   (exit $ac_status); }; }; then
12155   ac_cv_member_struct_termio_c_line=yes
12156 else
12157   echo "$as_me: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12159 ac_cv_member_struct_termio_c_line=no
12160 fi
12161 rm -f conftest.$ac_objext conftest.$ac_ext
12162 fi
12163 echo "$as_me:12163: result: $ac_cv_member_struct_termio_c_line" >&5
12164 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
12165 if test $ac_cv_member_struct_termio_c_line = yes; then
12166   cat >>confdefs.h <<\EOF
12167 #define TERMIO_LDISC 1
12168 EOF
12169
12170 fi
12171
12172 echo "$as_me:12172: checking if struct dirent has a d_ino member" >&5
12173 echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6
12174 if test "${bash_cv_dirent_has_dino+set}" = set; then
12175   echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177   cat >conftest.$ac_ext <<_ACEOF
12178 #line 12178 "configure"
12179 #include "confdefs.h"
12180
12181 #include <stdio.h>
12182 #include <sys/types.h>
12183 #ifdef HAVE_UNISTD_H
12184 # include <unistd.h>
12185 #endif /* HAVE_UNISTD_H */
12186 #if defined(HAVE_DIRENT_H)
12187 # include <dirent.h>
12188 #else
12189 # define dirent direct
12190 # ifdef HAVE_SYS_NDIR_H
12191 #  include <sys/ndir.h>
12192 # endif /* SYSNDIR */
12193 # ifdef HAVE_SYS_DIR_H
12194 #  include <sys/dir.h>
12195 # endif /* SYSDIR */
12196 # ifdef HAVE_NDIR_H
12197 #  include <ndir.h>
12198 # endif
12199 #endif /* HAVE_DIRENT_H */
12200
12201 int
12202 main ()
12203 {
12204
12205 struct dirent d; int z; z = d.d_ino;
12206
12207   ;
12208   return 0;
12209 }
12210 _ACEOF
12211 rm -f conftest.$ac_objext
12212 if { (eval echo "$as_me:12212: \"$ac_compile\"") >&5
12213   (eval $ac_compile) 2>&5
12214   ac_status=$?
12215   echo "$as_me:12215: \$? = $ac_status" >&5
12216   (exit $ac_status); } &&
12217          { ac_try='test -s conftest.$ac_objext'
12218   { (eval echo "$as_me:12218: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:12221: \$? = $ac_status" >&5
12222   (exit $ac_status); }; }; then
12223   bash_cv_dirent_has_dino=yes
12224 else
12225   echo "$as_me: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12227 bash_cv_dirent_has_dino=no
12228 fi
12229 rm -f conftest.$ac_objext conftest.$ac_ext
12230 fi
12231
12232 echo "$as_me:12232: result: $bash_cv_dirent_has_dino" >&5
12233 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
12234 if test $bash_cv_dirent_has_dino = yes; then
12235 cat >>confdefs.h <<\EOF
12236 #define STRUCT_DIRENT_HAS_D_INO 1
12237 EOF
12238
12239 fi
12240
12241 echo "$as_me:12241: checking if struct dirent has a d_fileno member" >&5
12242 echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6
12243 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
12244   echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246   cat >conftest.$ac_ext <<_ACEOF
12247 #line 12247 "configure"
12248 #include "confdefs.h"
12249
12250 #include <stdio.h>
12251 #include <sys/types.h>
12252 #ifdef HAVE_UNISTD_H
12253 # include <unistd.h>
12254 #endif /* HAVE_UNISTD_H */
12255 #if defined(HAVE_DIRENT_H)
12256 # include <dirent.h>
12257 #else
12258 # define dirent direct
12259 # ifdef HAVE_SYS_NDIR_H
12260 #  include <sys/ndir.h>
12261 # endif /* SYSNDIR */
12262 # ifdef HAVE_SYS_DIR_H
12263 #  include <sys/dir.h>
12264 # endif /* SYSDIR */
12265 # ifdef HAVE_NDIR_H
12266 #  include <ndir.h>
12267 # endif
12268 #endif /* HAVE_DIRENT_H */
12269
12270 int
12271 main ()
12272 {
12273
12274 struct dirent d; int z; z = d.d_fileno;
12275
12276   ;
12277   return 0;
12278 }
12279 _ACEOF
12280 rm -f conftest.$ac_objext
12281 if { (eval echo "$as_me:12281: \"$ac_compile\"") >&5
12282   (eval $ac_compile) 2>&5
12283   ac_status=$?
12284   echo "$as_me:12284: \$? = $ac_status" >&5
12285   (exit $ac_status); } &&
12286          { ac_try='test -s conftest.$ac_objext'
12287   { (eval echo "$as_me:12287: \"$ac_try\"") >&5
12288   (eval $ac_try) 2>&5
12289   ac_status=$?
12290   echo "$as_me:12290: \$? = $ac_status" >&5
12291   (exit $ac_status); }; }; then
12292   bash_cv_dirent_has_d_fileno=yes
12293 else
12294   echo "$as_me: failed program was:" >&5
12295 cat conftest.$ac_ext >&5
12296 bash_cv_dirent_has_d_fileno=no
12297 fi
12298 rm -f conftest.$ac_objext conftest.$ac_ext
12299 fi
12300
12301 echo "$as_me:12301: result: $bash_cv_dirent_has_d_fileno" >&5
12302 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
12303 if test $bash_cv_dirent_has_d_fileno = yes; then
12304 cat >>confdefs.h <<\EOF
12305 #define STRUCT_DIRENT_HAS_D_FILENO 1
12306 EOF
12307
12308 fi
12309
12310 echo "$as_me:12310: checking for struct winsize in sys/ioctl.h and termios.h" >&5
12311 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
12312 if test "${bash_cv_struct_winsize_header+set}" = set; then
12313   echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315   cat >conftest.$ac_ext <<_ACEOF
12316 #line 12316 "configure"
12317 #include "confdefs.h"
12318 #include <sys/types.h>
12319 #include <sys/ioctl.h>
12320 int
12321 main ()
12322 {
12323 struct winsize x;
12324   ;
12325   return 0;
12326 }
12327 _ACEOF
12328 rm -f conftest.$ac_objext
12329 if { (eval echo "$as_me:12329: \"$ac_compile\"") >&5
12330   (eval $ac_compile) 2>&5
12331   ac_status=$?
12332   echo "$as_me:12332: \$? = $ac_status" >&5
12333   (exit $ac_status); } &&
12334          { ac_try='test -s conftest.$ac_objext'
12335   { (eval echo "$as_me:12335: \"$ac_try\"") >&5
12336   (eval $ac_try) 2>&5
12337   ac_status=$?
12338   echo "$as_me:12338: \$? = $ac_status" >&5
12339   (exit $ac_status); }; }; then
12340   bash_cv_struct_winsize_header=ioctl_h
12341 else
12342   echo "$as_me: failed program was:" >&5
12343 cat conftest.$ac_ext >&5
12344 cat >conftest.$ac_ext <<_ACEOF
12345 #line 12345 "configure"
12346 #include "confdefs.h"
12347 #include <sys/types.h>
12348 #include <termios.h>
12349 int
12350 main ()
12351 {
12352 struct winsize x;
12353   ;
12354   return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (eval echo "$as_me:12358: \"$ac_compile\"") >&5
12359   (eval $ac_compile) 2>&5
12360   ac_status=$?
12361   echo "$as_me:12361: \$? = $ac_status" >&5
12362   (exit $ac_status); } &&
12363          { ac_try='test -s conftest.$ac_objext'
12364   { (eval echo "$as_me:12364: \"$ac_try\"") >&5
12365   (eval $ac_try) 2>&5
12366   ac_status=$?
12367   echo "$as_me:12367: \$? = $ac_status" >&5
12368   (exit $ac_status); }; }; then
12369   bash_cv_struct_winsize_header=termios_h
12370 else
12371   echo "$as_me: failed program was:" >&5
12372 cat conftest.$ac_ext >&5
12373 bash_cv_struct_winsize_header=other
12374 fi
12375 rm -f conftest.$ac_objext conftest.$ac_ext
12376
12377 fi
12378 rm -f conftest.$ac_objext conftest.$ac_ext
12379 fi
12380
12381 if test $bash_cv_struct_winsize_header = ioctl_h; then
12382   echo "$as_me:12382: result: sys/ioctl.h" >&5
12383 echo "${ECHO_T}sys/ioctl.h" >&6
12384   cat >>confdefs.h <<\EOF
12385 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
12386 EOF
12387
12388 elif test $bash_cv_struct_winsize_header = termios_h; then
12389   echo "$as_me:12389: result: termios.h" >&5
12390 echo "${ECHO_T}termios.h" >&6
12391   cat >>confdefs.h <<\EOF
12392 #define STRUCT_WINSIZE_IN_TERMIOS 1
12393 EOF
12394
12395 else
12396   echo "$as_me:12396: result: not found" >&5
12397 echo "${ECHO_T}not found" >&6
12398 fi
12399
12400 echo "$as_me:12400: checking for struct timeval in sys/time.h and time.h" >&5
12401 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
12402 if test "${bash_cv_struct_timeval+set}" = set; then
12403   echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405
12406 cat >conftest.$ac_ext <<_ACEOF
12407 #line 12407 "configure"
12408 #include "confdefs.h"
12409 #include <sys/time.h>
12410
12411 _ACEOF
12412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12413   egrep "struct timeval" >/dev/null 2>&1; then
12414   bash_cv_struct_timeval=yes
12415 else
12416   cat >conftest.$ac_ext <<_ACEOF
12417 #line 12417 "configure"
12418 #include "confdefs.h"
12419 #include <time.h>
12420
12421 _ACEOF
12422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12423   egrep "struct timeval" >/dev/null 2>&1; then
12424   bash_cv_struct_timeval=yes
12425 else
12426   bash_cv_struct_timeval=no
12427 fi
12428 rm -f conftest*
12429
12430 fi
12431 rm -f conftest*
12432
12433 fi
12434
12435 echo "$as_me:12435: result: $bash_cv_struct_timeval" >&5
12436 echo "${ECHO_T}$bash_cv_struct_timeval" >&6
12437 if test $bash_cv_struct_timeval = yes; then
12438   cat >>confdefs.h <<\EOF
12439 #define HAVE_TIMEVAL 1
12440 EOF
12441
12442 fi
12443
12444 echo "$as_me:12444: checking for struct stat.st_blocks" >&5
12445 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12446 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12447   echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449   cat >conftest.$ac_ext <<_ACEOF
12450 #line 12450 "configure"
12451 #include "confdefs.h"
12452 $ac_includes_default
12453 int
12454 main ()
12455 {
12456 static struct stat ac_aggr;
12457 if (ac_aggr.st_blocks)
12458 return 0;
12459   ;
12460   return 0;
12461 }
12462 _ACEOF
12463 rm -f conftest.$ac_objext
12464 if { (eval echo "$as_me:12464: \"$ac_compile\"") >&5
12465   (eval $ac_compile) 2>&5
12466   ac_status=$?
12467   echo "$as_me:12467: \$? = $ac_status" >&5
12468   (exit $ac_status); } &&
12469          { ac_try='test -s conftest.$ac_objext'
12470   { (eval echo "$as_me:12470: \"$ac_try\"") >&5
12471   (eval $ac_try) 2>&5
12472   ac_status=$?
12473   echo "$as_me:12473: \$? = $ac_status" >&5
12474   (exit $ac_status); }; }; then
12475   ac_cv_member_struct_stat_st_blocks=yes
12476 else
12477   echo "$as_me: failed program was:" >&5
12478 cat conftest.$ac_ext >&5
12479 ac_cv_member_struct_stat_st_blocks=no
12480 fi
12481 rm -f conftest.$ac_objext conftest.$ac_ext
12482 fi
12483 echo "$as_me:12483: result: $ac_cv_member_struct_stat_st_blocks" >&5
12484 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12485 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12486
12487 cat >>confdefs.h <<EOF
12488 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12489 EOF
12490
12491 fi
12492
12493 echo "$as_me:12493: checking for the existence of strsignal" >&5
12494 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
12495 if test "${bash_cv_have_strsignal+set}" = set; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   cat >conftest.$ac_ext <<_ACEOF
12499 #line 12499 "configure"
12500 #include "confdefs.h"
12501 #include <sys/types.h>
12502 #include <signal.h>
12503 int
12504 main ()
12505 {
12506 char *s = (char *)strsignal(2);
12507   ;
12508   return 0;
12509 }
12510 _ACEOF
12511 rm -f conftest.$ac_objext conftest$ac_exeext
12512 if { (eval echo "$as_me:12512: \"$ac_link\"") >&5
12513   (eval $ac_link) 2>&5
12514   ac_status=$?
12515   echo "$as_me:12515: \$? = $ac_status" >&5
12516   (exit $ac_status); } &&
12517          { ac_try='test -s conftest$ac_exeext'
12518   { (eval echo "$as_me:12518: \"$ac_try\"") >&5
12519   (eval $ac_try) 2>&5
12520   ac_status=$?
12521   echo "$as_me:12521: \$? = $ac_status" >&5
12522   (exit $ac_status); }; }; then
12523   bash_cv_have_strsignal=yes
12524 else
12525   echo "$as_me: failed program was:" >&5
12526 cat conftest.$ac_ext >&5
12527 bash_cv_have_strsignal=no
12528 fi
12529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12530 fi
12531
12532 echo "$as_me:12532: result: $bash_cv_have_strsignal" >&5
12533 echo "${ECHO_T}$bash_cv_have_strsignal" >&6
12534 if test $bash_cv_have_strsignal = yes; then
12535 cat >>confdefs.h <<\EOF
12536 #define HAVE_STRSIGNAL 1
12537 EOF
12538
12539 fi
12540
12541 echo "$as_me:12541: checking if opendir() opens non-directories" >&5
12542 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
12543 if test "${bash_cv_opendir_not_robust+set}" = set; then
12544   echo $ECHO_N "(cached) $ECHO_C" >&6
12545 else
12546   if test "$cross_compiling" = yes; then
12547   { echo "$as_me:12547: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
12548 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
12549      bash_cv_opendir_not_robust=no
12550
12551 else
12552   cat >conftest.$ac_ext <<_ACEOF
12553 #line 12553 "configure"
12554 #include "confdefs.h"
12555
12556 #include <stdio.h>
12557 #include <sys/types.h>
12558 #include <fcntl.h>
12559 #ifdef HAVE_UNISTD_H
12560 # include <unistd.h>
12561 #endif /* HAVE_UNISTD_H */
12562 #if defined(HAVE_DIRENT_H)
12563 # include <dirent.h>
12564 #else
12565 # define dirent direct
12566 # ifdef HAVE_SYS_NDIR_H
12567 #  include <sys/ndir.h>
12568 # endif /* SYSNDIR */
12569 # ifdef HAVE_SYS_DIR_H
12570 #  include <sys/dir.h>
12571 # endif /* SYSDIR */
12572 # ifdef HAVE_NDIR_H
12573 #  include <ndir.h>
12574 # endif
12575 #endif /* HAVE_DIRENT_H */
12576 main()
12577 {
12578 DIR *dir;
12579 int fd, err;
12580 err = mkdir("/tmp/bash-aclocal", 0700);
12581 if (err < 0) {
12582   perror("mkdir");
12583   exit(1);
12584 }
12585 unlink("/tmp/bash-aclocal/not_a_directory");
12586 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
12587 write(fd, "\n", 1);
12588 close(fd);
12589 dir = opendir("/tmp/bash-aclocal/not_a_directory");
12590 unlink("/tmp/bash-aclocal/not_a_directory");
12591 rmdir("/tmp/bash-aclocal");
12592 exit (dir == 0);
12593 }
12594 _ACEOF
12595 rm -f conftest$ac_exeext
12596 if { (eval echo "$as_me:12596: \"$ac_link\"") >&5
12597   (eval $ac_link) 2>&5
12598   ac_status=$?
12599   echo "$as_me:12599: \$? = $ac_status" >&5
12600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12601   { (eval echo "$as_me:12601: \"$ac_try\"") >&5
12602   (eval $ac_try) 2>&5
12603   ac_status=$?
12604   echo "$as_me:12604: \$? = $ac_status" >&5
12605   (exit $ac_status); }; }; then
12606   bash_cv_opendir_not_robust=yes
12607 else
12608   echo "$as_me: program exited with status $ac_status" >&5
12609 echo "$as_me: failed program was:" >&5
12610 cat conftest.$ac_ext >&5
12611 bash_cv_opendir_not_robust=no
12612 fi
12613 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12614 fi
12615 fi
12616
12617 echo "$as_me:12617: result: $bash_cv_opendir_not_robust" >&5
12618 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
12619 if test $bash_cv_opendir_not_robust = yes; then
12620 cat >>confdefs.h <<\EOF
12621 #define OPENDIR_NOT_ROBUST 1
12622 EOF
12623
12624 fi
12625
12626 echo "$as_me:12626: checking whether ulimit can substitute for getdtablesize" >&5
12627 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
12628 if test "${bash_cv_ulimit_maxfds+set}" = set; then
12629   echo $ECHO_N "(cached) $ECHO_C" >&6
12630 else
12631   if test "$cross_compiling" = yes; then
12632   { echo "$as_me:12632: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
12633 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
12634     bash_cv_ulimit_maxfds=no
12635
12636 else
12637   cat >conftest.$ac_ext <<_ACEOF
12638 #line 12638 "configure"
12639 #include "confdefs.h"
12640
12641 main()
12642 {
12643 long maxfds = ulimit(4, 0L);
12644 exit (maxfds == -1L);
12645 }
12646
12647 _ACEOF
12648 rm -f conftest$ac_exeext
12649 if { (eval echo "$as_me:12649: \"$ac_link\"") >&5
12650   (eval $ac_link) 2>&5
12651   ac_status=$?
12652   echo "$as_me:12652: \$? = $ac_status" >&5
12653   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12654   { (eval echo "$as_me:12654: \"$ac_try\"") >&5
12655   (eval $ac_try) 2>&5
12656   ac_status=$?
12657   echo "$as_me:12657: \$? = $ac_status" >&5
12658   (exit $ac_status); }; }; then
12659   bash_cv_ulimit_maxfds=yes
12660 else
12661   echo "$as_me: program exited with status $ac_status" >&5
12662 echo "$as_me: failed program was:" >&5
12663 cat conftest.$ac_ext >&5
12664 bash_cv_ulimit_maxfds=no
12665 fi
12666 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12667 fi
12668 fi
12669
12670 echo "$as_me:12670: result: $bash_cv_ulimit_maxfds" >&5
12671 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
12672 if test $bash_cv_ulimit_maxfds = yes; then
12673 cat >>confdefs.h <<\EOF
12674 #define ULIMIT_MAXFDS 1
12675 EOF
12676
12677 fi
12678
12679 echo "$as_me:12679: checking to see if getenv can be redefined" >&5
12680 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
12681 if test "${bash_cv_getenv_redef+set}" = set; then
12682   echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684   if test "$cross_compiling" = yes; then
12685   { echo "$as_me:12685: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
12686 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
12687     bash_cv_getenv_redef=yes
12688
12689 else
12690   cat >conftest.$ac_ext <<_ACEOF
12691 #line 12691 "configure"
12692 #include "confdefs.h"
12693
12694 #ifdef HAVE_UNISTD_H
12695 #  include <unistd.h>
12696 #endif
12697 #ifndef __STDC__
12698 #  ifndef const
12699 #    define const
12700 #  endif
12701 #endif
12702 char *
12703 getenv (name)
12704 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
12705      const char *name;
12706 #else
12707      char const *name;
12708 #endif /* !__linux__ && !__bsdi__ && !convex */
12709 {
12710 return "42";
12711 }
12712 main()
12713 {
12714 char *s;
12715 /* The next allows this program to run, but does not allow bash to link
12716    when it redefines getenv.  I'm not really interested in figuring out
12717    why not. */
12718 #if defined (NeXT)
12719 exit(1);
12720 #endif
12721 s = getenv("ABCDE");
12722 exit(s == 0);   /* force optimizer to leave getenv in */
12723 }
12724
12725 _ACEOF
12726 rm -f conftest$ac_exeext
12727 if { (eval echo "$as_me:12727: \"$ac_link\"") >&5
12728   (eval $ac_link) 2>&5
12729   ac_status=$?
12730   echo "$as_me:12730: \$? = $ac_status" >&5
12731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12732   { (eval echo "$as_me:12732: \"$ac_try\"") >&5
12733   (eval $ac_try) 2>&5
12734   ac_status=$?
12735   echo "$as_me:12735: \$? = $ac_status" >&5
12736   (exit $ac_status); }; }; then
12737   bash_cv_getenv_redef=yes
12738 else
12739   echo "$as_me: program exited with status $ac_status" >&5
12740 echo "$as_me: failed program was:" >&5
12741 cat conftest.$ac_ext >&5
12742 bash_cv_getenv_redef=no
12743 fi
12744 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12745 fi
12746 fi
12747
12748 echo "$as_me:12748: result: $bash_cv_getenv_redef" >&5
12749 echo "${ECHO_T}$bash_cv_getenv_redef" >&6
12750 if test $bash_cv_getenv_redef = yes; then
12751 cat >>confdefs.h <<\EOF
12752 #define CAN_REDEFINE_GETENV 1
12753 EOF
12754
12755 fi
12756
12757 if test "$ac_func_getcwd" = "yes"; then
12758 echo "$as_me:12758: checking if getcwd() calls popen()" >&5
12759 echo $ECHO_N "checking if getcwd() calls popen()... $ECHO_C" >&6
12760 if test "${bash_cv_getcwd_calls_popen+set}" = set; then
12761   echo $ECHO_N "(cached) $ECHO_C" >&6
12762 else
12763   if test "$cross_compiling" = yes; then
12764   { echo "$as_me:12764: WARNING: cannot check whether getcwd calls popen if cross compiling -- defaulting to no" >&5
12765 echo "$as_me: WARNING: cannot check whether getcwd calls popen if cross compiling -- defaulting to no" >&2;}
12766     bash_cv_getcwd_calls_popen=no
12767
12768 else
12769   cat >conftest.$ac_ext <<_ACEOF
12770 #line 12770 "configure"
12771 #include "confdefs.h"
12772
12773 #include <stdio.h>
12774 #ifdef HAVE_UNISTD_H
12775 #include <unistd.h>
12776 #endif
12777
12778 #ifndef __STDC__
12779 #ifndef const
12780 #define const
12781 #endif
12782 #endif
12783
12784 int popen_called;
12785
12786 FILE *
12787 popen(command, type)
12788      const char *command;
12789      const char *type;
12790 {
12791         popen_called = 1;
12792         return (FILE *)NULL;
12793 }
12794
12795 FILE *_popen(command, type)
12796      const char *command;
12797      const char *type;
12798 {
12799   return (popen (command, type));
12800 }
12801
12802 int
12803 pclose(stream)
12804 FILE *stream;
12805 {
12806         return 0;
12807 }
12808
12809 int
12810 _pclose(stream)
12811 FILE *stream;
12812 {
12813         return 0;
12814 }
12815
12816 main()
12817 {
12818         char    lbuf[32];
12819         popen_called = 0;
12820         getcwd(lbuf, 32);
12821         exit (popen_called);
12822 }
12823
12824 _ACEOF
12825 rm -f conftest$ac_exeext
12826 if { (eval echo "$as_me:12826: \"$ac_link\"") >&5
12827   (eval $ac_link) 2>&5
12828   ac_status=$?
12829   echo "$as_me:12829: \$? = $ac_status" >&5
12830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12831   { (eval echo "$as_me:12831: \"$ac_try\"") >&5
12832   (eval $ac_try) 2>&5
12833   ac_status=$?
12834   echo "$as_me:12834: \$? = $ac_status" >&5
12835   (exit $ac_status); }; }; then
12836   bash_cv_getcwd_calls_popen=no
12837 else
12838   echo "$as_me: program exited with status $ac_status" >&5
12839 echo "$as_me: failed program was:" >&5
12840 cat conftest.$ac_ext >&5
12841 bash_cv_getcwd_calls_popen=yes
12842 fi
12843 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12844 fi
12845 fi
12846
12847 echo "$as_me:12847: result: $bash_cv_getcwd_calls_popen" >&5
12848 echo "${ECHO_T}$bash_cv_getcwd_calls_popen" >&6
12849 if test $bash_cv_getcwd_calls_popen = yes; then
12850 cat >>confdefs.h <<\EOF
12851 #define GETCWD_BROKEN 1
12852 EOF
12853
12854 LIBOBJS="$LIBOBJS getcwd.$ac_objext"
12855 fi
12856
12857 fi
12858
12859 echo "$as_me:12859: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
12860 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
12861 if test "${bash_cv_func_sigsetjmp+set}" = set; then
12862   echo $ECHO_N "(cached) $ECHO_C" >&6
12863 else
12864   if test "$cross_compiling" = yes; then
12865   { echo "$as_me:12865: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
12866 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
12867      bash_cv_func_sigsetjmp=missing
12868
12869 else
12870   cat >conftest.$ac_ext <<_ACEOF
12871 #line 12871 "configure"
12872 #include "confdefs.h"
12873
12874 #ifdef HAVE_UNISTD_H
12875 #include <unistd.h>
12876 #endif
12877 #include <sys/types.h>
12878 #include <signal.h>
12879 #include <setjmp.h>
12880
12881 main()
12882 {
12883 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
12884 exit (1);
12885 #else
12886
12887 int code;
12888 sigset_t set, oset;
12889 sigjmp_buf xx;
12890
12891 /* get the mask */
12892 sigemptyset(&set);
12893 sigemptyset(&oset);
12894 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
12895 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
12896
12897 /* save it */
12898 code = sigsetjmp(xx, 1);
12899 if (code)
12900   exit(0);      /* could get sigmask and compare to oset here. */
12901
12902 /* change it */
12903 sigaddset(&set, SIGINT);
12904 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
12905
12906 /* and siglongjmp */
12907 siglongjmp(xx, 10);
12908 exit(1);
12909 #endif
12910 }
12911 _ACEOF
12912 rm -f conftest$ac_exeext
12913 if { (eval echo "$as_me:12913: \"$ac_link\"") >&5
12914   (eval $ac_link) 2>&5
12915   ac_status=$?
12916   echo "$as_me:12916: \$? = $ac_status" >&5
12917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12918   { (eval echo "$as_me:12918: \"$ac_try\"") >&5
12919   (eval $ac_try) 2>&5
12920   ac_status=$?
12921   echo "$as_me:12921: \$? = $ac_status" >&5
12922   (exit $ac_status); }; }; then
12923   bash_cv_func_sigsetjmp=present
12924 else
12925   echo "$as_me: program exited with status $ac_status" >&5
12926 echo "$as_me: failed program was:" >&5
12927 cat conftest.$ac_ext >&5
12928 bash_cv_func_sigsetjmp=missing
12929 fi
12930 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12931 fi
12932 fi
12933
12934 echo "$as_me:12934: result: $bash_cv_func_sigsetjmp" >&5
12935 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
12936 if test $bash_cv_func_sigsetjmp = present; then
12937 cat >>confdefs.h <<\EOF
12938 #define HAVE_POSIX_SIGSETJMP 1
12939 EOF
12940
12941 fi
12942
12943 echo "$as_me:12943: checking whether or not strcoll and strcmp differ" >&5
12944 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
12945 if test "${bash_cv_func_strcoll_broken+set}" = set; then
12946   echo $ECHO_N "(cached) $ECHO_C" >&6
12947 else
12948   if test "$cross_compiling" = yes; then
12949   { echo "$as_me:12949: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
12950 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
12951     bash_cv_func_strcoll_broken=no
12952
12953 else
12954   cat >conftest.$ac_ext <<_ACEOF
12955 #line 12955 "configure"
12956 #include "confdefs.h"
12957
12958 #include <stdio.h>
12959 #if defined (HAVE_LOCALE_H)
12960 #include <locale.h>
12961 #endif
12962
12963 main(c, v)
12964 int     c;
12965 char    *v[];
12966 {
12967         int     r1, r2;
12968         char    *deflocale, *defcoll;
12969
12970 #ifdef HAVE_SETLOCALE
12971         deflocale = setlocale(LC_ALL, "");
12972         defcoll = setlocale(LC_COLLATE, "");
12973 #endif
12974
12975 #ifdef HAVE_STRCOLL
12976         /* These two values are taken from tests/glob-test. */
12977         r1 = strcoll("abd", "aXd");
12978 #else
12979         r1 = 0;
12980 #endif
12981         r2 = strcmp("abd", "aXd");
12982
12983         /* These two should both be greater than 0.  It is permissible for
12984            a system to return different values, as long as the sign is the
12985            same. */
12986
12987         /* Exit with 1 (failure) if these two values are both > 0, since
12988            this tests whether strcoll(3) is broken with respect to strcmp(3)
12989            in the default locale. */
12990         exit (r1 > 0 && r2 > 0);
12991 }
12992
12993 _ACEOF
12994 rm -f conftest$ac_exeext
12995 if { (eval echo "$as_me:12995: \"$ac_link\"") >&5
12996   (eval $ac_link) 2>&5
12997   ac_status=$?
12998   echo "$as_me:12998: \$? = $ac_status" >&5
12999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13000   { (eval echo "$as_me:13000: \"$ac_try\"") >&5
13001   (eval $ac_try) 2>&5
13002   ac_status=$?
13003   echo "$as_me:13003: \$? = $ac_status" >&5
13004   (exit $ac_status); }; }; then
13005   bash_cv_func_strcoll_broken=yes
13006 else
13007   echo "$as_me: program exited with status $ac_status" >&5
13008 echo "$as_me: failed program was:" >&5
13009 cat conftest.$ac_ext >&5
13010 bash_cv_func_strcoll_broken=no
13011 fi
13012 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13013 fi
13014 fi
13015
13016 echo "$as_me:13016: result: $bash_cv_func_strcoll_broken" >&5
13017 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
13018 if test $bash_cv_func_strcoll_broken = yes; then
13019 cat >>confdefs.h <<\EOF
13020 #define STRCOLL_BROKEN 1
13021 EOF
13022
13023 fi
13024
13025 echo "$as_me:13025: checking for printf floating point output in hex notation" >&5
13026 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
13027 if test "${bash_cv_printf_a_format+set}" = set; then
13028   echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030   if test "$cross_compiling" = yes; then
13031   { echo "$as_me:13031: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
13032 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
13033     bash_cv_printf_a_format=no
13034
13035 else
13036   cat >conftest.$ac_ext <<_ACEOF
13037 #line 13037 "configure"
13038 #include "confdefs.h"
13039
13040 #include <stdio.h>
13041 #include <string.h>
13042
13043 int
13044 main()
13045 {
13046         double y = 0.0;
13047         char abuf[1024];
13048
13049         sprintf(abuf, "%A", y);
13050         exit(strchr(abuf, 'P') == (char *)0);
13051 }
13052
13053 _ACEOF
13054 rm -f conftest$ac_exeext
13055 if { (eval echo "$as_me:13055: \"$ac_link\"") >&5
13056   (eval $ac_link) 2>&5
13057   ac_status=$?
13058   echo "$as_me:13058: \$? = $ac_status" >&5
13059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13060   { (eval echo "$as_me:13060: \"$ac_try\"") >&5
13061   (eval $ac_try) 2>&5
13062   ac_status=$?
13063   echo "$as_me:13063: \$? = $ac_status" >&5
13064   (exit $ac_status); }; }; then
13065   bash_cv_printf_a_format=yes
13066 else
13067   echo "$as_me: program exited with status $ac_status" >&5
13068 echo "$as_me: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13070 bash_cv_printf_a_format=no
13071 fi
13072 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13073 fi
13074 fi
13075
13076 echo "$as_me:13076: result: $bash_cv_printf_a_format" >&5
13077 echo "${ECHO_T}$bash_cv_printf_a_format" >&6
13078 if test $bash_cv_printf_a_format = yes; then
13079 cat >>confdefs.h <<\EOF
13080 #define HAVE_PRINTF_A_FORMAT 1
13081 EOF
13082
13083 fi
13084
13085 echo "$as_me:13085: checking if signal handlers must be reinstalled when invoked" >&5
13086 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
13087 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
13088   echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090   if test "$cross_compiling" = yes; then
13091   { echo "$as_me:13091: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
13092 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
13093     bash_cv_must_reinstall_sighandlers=no
13094
13095 else
13096   cat >conftest.$ac_ext <<_ACEOF
13097 #line 13097 "configure"
13098 #include "confdefs.h"
13099
13100 #include <signal.h>
13101 #ifdef HAVE_UNISTD_H
13102 #include <unistd.h>
13103 #endif
13104
13105 typedef RETSIGTYPE sigfunc();
13106
13107 int nsigint;
13108
13109 #ifdef HAVE_POSIX_SIGNALS
13110 sigfunc *
13111 set_signal_handler(sig, handler)
13112      int sig;
13113      sigfunc *handler;
13114 {
13115   struct sigaction act, oact;
13116   act.sa_handler = handler;
13117   act.sa_flags = 0;
13118   sigemptyset (&act.sa_mask);
13119   sigemptyset (&oact.sa_mask);
13120   sigaction (sig, &act, &oact);
13121   return (oact.sa_handler);
13122 }
13123 #else
13124 #define set_signal_handler(s, h) signal(s, h)
13125 #endif
13126
13127 RETSIGTYPE
13128 sigint(s)
13129 int s;
13130 {
13131   nsigint++;
13132 }
13133
13134 main()
13135 {
13136         nsigint = 0;
13137         set_signal_handler(SIGINT, sigint);
13138         kill((int)getpid(), SIGINT);
13139         kill((int)getpid(), SIGINT);
13140         exit(nsigint != 2);
13141 }
13142
13143 _ACEOF
13144 rm -f conftest$ac_exeext
13145 if { (eval echo "$as_me:13145: \"$ac_link\"") >&5
13146   (eval $ac_link) 2>&5
13147   ac_status=$?
13148   echo "$as_me:13148: \$? = $ac_status" >&5
13149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13150   { (eval echo "$as_me:13150: \"$ac_try\"") >&5
13151   (eval $ac_try) 2>&5
13152   ac_status=$?
13153   echo "$as_me:13153: \$? = $ac_status" >&5
13154   (exit $ac_status); }; }; then
13155   bash_cv_must_reinstall_sighandlers=no
13156 else
13157   echo "$as_me: program exited with status $ac_status" >&5
13158 echo "$as_me: failed program was:" >&5
13159 cat conftest.$ac_ext >&5
13160 bash_cv_must_reinstall_sighandlers=yes
13161 fi
13162 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13163 fi
13164 fi
13165
13166 echo "$as_me:13166: result: $bash_cv_must_reinstall_sighandlers" >&5
13167 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
13168 if test $bash_cv_must_reinstall_sighandlers = yes; then
13169 cat >>confdefs.h <<\EOF
13170 #define MUST_REINSTALL_SIGHANDLERS 1
13171 EOF
13172
13173 fi
13174
13175 echo "$as_me:13175: checking for presence of necessary job control definitions" >&5
13176 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
13177 if test "${bash_cv_job_control_missing+set}" = set; then
13178   echo $ECHO_N "(cached) $ECHO_C" >&6
13179 else
13180   if test "$cross_compiling" = yes; then
13181   { echo "$as_me:13181: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
13182 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
13183      bash_cv_job_control_missing=missing
13184
13185 else
13186   cat >conftest.$ac_ext <<_ACEOF
13187 #line 13187 "configure"
13188 #include "confdefs.h"
13189
13190 #include <sys/types.h>
13191 #ifdef HAVE_SYS_WAIT_H
13192 #include <sys/wait.h>
13193 #endif
13194 #ifdef HAVE_UNISTD_H
13195 #include <unistd.h>
13196 #endif
13197 #include <signal.h>
13198
13199 /* Add more tests in here as appropriate. */
13200 main()
13201 {
13202 /* signal type */
13203 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
13204 exit(1);
13205 #endif
13206
13207 /* signals and tty control. */
13208 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
13209 exit (1);
13210 #endif
13211
13212 /* process control */
13213 #if !defined (WNOHANG) || !defined (WUNTRACED)
13214 exit(1);
13215 #endif
13216
13217 /* Posix systems have tcgetpgrp and waitpid. */
13218 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
13219 exit(1);
13220 #endif
13221
13222 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
13223 exit(1);
13224 #endif
13225
13226 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
13227 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
13228 exit(1);
13229 #endif
13230
13231 exit(0);
13232 }
13233 _ACEOF
13234 rm -f conftest$ac_exeext
13235 if { (eval echo "$as_me:13235: \"$ac_link\"") >&5
13236   (eval $ac_link) 2>&5
13237   ac_status=$?
13238   echo "$as_me:13238: \$? = $ac_status" >&5
13239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13240   { (eval echo "$as_me:13240: \"$ac_try\"") >&5
13241   (eval $ac_try) 2>&5
13242   ac_status=$?
13243   echo "$as_me:13243: \$? = $ac_status" >&5
13244   (exit $ac_status); }; }; then
13245   bash_cv_job_control_missing=present
13246 else
13247   echo "$as_me: program exited with status $ac_status" >&5
13248 echo "$as_me: failed program was:" >&5
13249 cat conftest.$ac_ext >&5
13250 bash_cv_job_control_missing=missing
13251 fi
13252 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13253 fi
13254 fi
13255
13256 echo "$as_me:13256: result: $bash_cv_job_control_missing" >&5
13257 echo "${ECHO_T}$bash_cv_job_control_missing" >&6
13258 if test $bash_cv_job_control_missing = missing; then
13259 cat >>confdefs.h <<\EOF
13260 #define JOB_CONTROL_MISSING 1
13261 EOF
13262
13263 fi
13264
13265 echo "$as_me:13265: checking for presence of named pipes" >&5
13266 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
13267 if test "${bash_cv_sys_named_pipes+set}" = set; then
13268   echo $ECHO_N "(cached) $ECHO_C" >&6
13269 else
13270   if test "$cross_compiling" = yes; then
13271   { echo "$as_me:13271: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
13272 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
13273      bash_cv_sys_named_pipes=missing
13274
13275 else
13276   cat >conftest.$ac_ext <<_ACEOF
13277 #line 13277 "configure"
13278 #include "confdefs.h"
13279
13280 #include <sys/types.h>
13281 #include <sys/stat.h>
13282 #ifdef HAVE_UNISTD_H
13283 #include <unistd.h>
13284 #endif
13285
13286 /* Add more tests in here as appropriate. */
13287 main()
13288 {
13289 int fd, err;
13290
13291 #if defined (HAVE_MKFIFO)
13292 exit (0);
13293 #endif
13294
13295 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
13296 exit (1);
13297 #endif
13298
13299 #if defined (NeXT)
13300 exit (1);
13301 #endif
13302 err = mkdir("/tmp/bash-aclocal", 0700);
13303 if (err < 0) {
13304   perror ("mkdir");
13305   exit(1);
13306 }
13307 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
13308 if (fd == -1) {
13309   rmdir ("/tmp/bash-aclocal");
13310   exit (1);
13311 }
13312 close(fd);
13313 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
13314 rmdir ("/tmp/bash-aclocal");
13315 exit(0);
13316 }
13317 _ACEOF
13318 rm -f conftest$ac_exeext
13319 if { (eval echo "$as_me:13319: \"$ac_link\"") >&5
13320   (eval $ac_link) 2>&5
13321   ac_status=$?
13322   echo "$as_me:13322: \$? = $ac_status" >&5
13323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13324   { (eval echo "$as_me:13324: \"$ac_try\"") >&5
13325   (eval $ac_try) 2>&5
13326   ac_status=$?
13327   echo "$as_me:13327: \$? = $ac_status" >&5
13328   (exit $ac_status); }; }; then
13329   bash_cv_sys_named_pipes=present
13330 else
13331   echo "$as_me: program exited with status $ac_status" >&5
13332 echo "$as_me: failed program was:" >&5
13333 cat conftest.$ac_ext >&5
13334 bash_cv_sys_named_pipes=missing
13335 fi
13336 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13337 fi
13338 fi
13339
13340 echo "$as_me:13340: result: $bash_cv_sys_named_pipes" >&5
13341 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
13342 if test $bash_cv_sys_named_pipes = missing; then
13343 cat >>confdefs.h <<\EOF
13344 #define NAMED_PIPES_MISSING 1
13345 EOF
13346
13347 fi
13348
13349 echo "$as_me:13349: checking POSIX termios" >&5
13350 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
13351 if test "${ac_cv_sys_posix_termios+set}" = set; then
13352   echo $ECHO_N "(cached) $ECHO_C" >&6
13353 else
13354   cat >conftest.$ac_ext <<_ACEOF
13355 #line 13355 "configure"
13356 #include "confdefs.h"
13357 #include <sys/types.h>
13358 #include <unistd.h>
13359 #include <termios.h>
13360 int
13361 main ()
13362 {
13363 /* SunOS 4.0.3 has termios.h but not the library calls.  */
13364    tcgetattr(0, 0);
13365   ;
13366   return 0;
13367 }
13368 _ACEOF
13369 rm -f conftest.$ac_objext conftest$ac_exeext
13370 if { (eval echo "$as_me:13370: \"$ac_link\"") >&5
13371   (eval $ac_link) 2>&5
13372   ac_status=$?
13373   echo "$as_me:13373: \$? = $ac_status" >&5
13374   (exit $ac_status); } &&
13375          { ac_try='test -s conftest$ac_exeext'
13376   { (eval echo "$as_me:13376: \"$ac_try\"") >&5
13377   (eval $ac_try) 2>&5
13378   ac_status=$?
13379   echo "$as_me:13379: \$? = $ac_status" >&5
13380   (exit $ac_status); }; }; then
13381   ac_cv_sys_posix_termios=yes
13382 else
13383   echo "$as_me: failed program was:" >&5
13384 cat conftest.$ac_ext >&5
13385 ac_cv_sys_posix_termios=no
13386 fi
13387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13388 fi
13389 echo "$as_me:13389: result: $ac_cv_sys_posix_termios" >&5
13390 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
13391
13392 if test $ac_cv_sys_posix_termios = yes; then
13393   echo "$as_me:13393: checking whether termios.h defines TIOCGWINSZ" >&5
13394 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13395 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13396   echo $ECHO_N "(cached) $ECHO_C" >&6
13397 else
13398   cat >conftest.$ac_ext <<_ACEOF
13399 #line 13399 "configure"
13400 #include "confdefs.h"
13401 #include <sys/types.h>
13402 #include <termios.h>
13403 #ifdef TIOCGWINSZ
13404   yes
13405 #endif
13406
13407 _ACEOF
13408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13409   egrep "yes" >/dev/null 2>&1; then
13410   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13411 else
13412   ac_cv_sys_tiocgwinsz_in_termios_h=no
13413 fi
13414 rm -f conftest*
13415
13416 fi
13417 echo "$as_me:13417: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13418 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13419
13420 fi
13421 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13422   echo "$as_me:13422: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13423 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13424 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13425   echo $ECHO_N "(cached) $ECHO_C" >&6
13426 else
13427   cat >conftest.$ac_ext <<_ACEOF
13428 #line 13428 "configure"
13429 #include "confdefs.h"
13430 #include <sys/types.h>
13431 #include <sys/ioctl.h>
13432 #ifdef TIOCGWINSZ
13433   yes
13434 #endif
13435
13436 _ACEOF
13437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13438   egrep "yes" >/dev/null 2>&1; then
13439   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13440 else
13441   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13442 fi
13443 rm -f conftest*
13444
13445 fi
13446 echo "$as_me:13446: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13447 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13448
13449   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13450
13451 cat >>confdefs.h <<\EOF
13452 #define GWINSZ_IN_SYS_IOCTL 1
13453 EOF
13454
13455   fi
13456 fi
13457
13458 echo "$as_me:13458: checking for TIOCSTAT in sys/ioctl.h" >&5
13459 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
13460 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
13461   echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463   cat >conftest.$ac_ext <<_ACEOF
13464 #line 13464 "configure"
13465 #include "confdefs.h"
13466 #include <sys/types.h>
13467 #include <sys/ioctl.h>
13468 int
13469 main ()
13470 {
13471 int x = TIOCSTAT;
13472   ;
13473   return 0;
13474 }
13475 _ACEOF
13476 rm -f conftest.$ac_objext
13477 if { (eval echo "$as_me:13477: \"$ac_compile\"") >&5
13478   (eval $ac_compile) 2>&5
13479   ac_status=$?
13480   echo "$as_me:13480: \$? = $ac_status" >&5
13481   (exit $ac_status); } &&
13482          { ac_try='test -s conftest.$ac_objext'
13483   { (eval echo "$as_me:13483: \"$ac_try\"") >&5
13484   (eval $ac_try) 2>&5
13485   ac_status=$?
13486   echo "$as_me:13486: \$? = $ac_status" >&5
13487   (exit $ac_status); }; }; then
13488   bash_cv_tiocstat_in_ioctl=yes
13489 else
13490   echo "$as_me: failed program was:" >&5
13491 cat conftest.$ac_ext >&5
13492 bash_cv_tiocstat_in_ioctl=no
13493 fi
13494 rm -f conftest.$ac_objext conftest.$ac_ext
13495 fi
13496
13497 echo "$as_me:13497: result: $bash_cv_tiocstat_in_ioctl" >&5
13498 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
13499 if test $bash_cv_tiocstat_in_ioctl = yes; then
13500 cat >>confdefs.h <<\EOF
13501 #define TIOCSTAT_IN_SYS_IOCTL 1
13502 EOF
13503
13504 fi
13505
13506 echo "$as_me:13506: checking for FIONREAD in sys/ioctl.h" >&5
13507 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
13508 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
13509   echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511   cat >conftest.$ac_ext <<_ACEOF
13512 #line 13512 "configure"
13513 #include "confdefs.h"
13514 #include <sys/types.h>
13515 #include <sys/ioctl.h>
13516 int
13517 main ()
13518 {
13519 int x = FIONREAD;
13520   ;
13521   return 0;
13522 }
13523 _ACEOF
13524 rm -f conftest.$ac_objext
13525 if { (eval echo "$as_me:13525: \"$ac_compile\"") >&5
13526   (eval $ac_compile) 2>&5
13527   ac_status=$?
13528   echo "$as_me:13528: \$? = $ac_status" >&5
13529   (exit $ac_status); } &&
13530          { ac_try='test -s conftest.$ac_objext'
13531   { (eval echo "$as_me:13531: \"$ac_try\"") >&5
13532   (eval $ac_try) 2>&5
13533   ac_status=$?
13534   echo "$as_me:13534: \$? = $ac_status" >&5
13535   (exit $ac_status); }; }; then
13536   bash_cv_fionread_in_ioctl=yes
13537 else
13538   echo "$as_me: failed program was:" >&5
13539 cat conftest.$ac_ext >&5
13540 bash_cv_fionread_in_ioctl=no
13541 fi
13542 rm -f conftest.$ac_objext conftest.$ac_ext
13543 fi
13544
13545 echo "$as_me:13545: result: $bash_cv_fionread_in_ioctl" >&5
13546 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
13547 if test $bash_cv_fionread_in_ioctl = yes; then
13548 cat >>confdefs.h <<\EOF
13549 #define FIONREAD_IN_SYS_IOCTL 1
13550 EOF
13551
13552 fi
13553
13554 echo "$as_me:13554: checking for speed_t in sys/types.h" >&5
13555 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
13556 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
13557   echo $ECHO_N "(cached) $ECHO_C" >&6
13558 else
13559   cat >conftest.$ac_ext <<_ACEOF
13560 #line 13560 "configure"
13561 #include "confdefs.h"
13562 #include <sys/types.h>
13563 int
13564 main ()
13565 {
13566 speed_t x;
13567   ;
13568   return 0;
13569 }
13570 _ACEOF
13571 rm -f conftest.$ac_objext
13572 if { (eval echo "$as_me:13572: \"$ac_compile\"") >&5
13573   (eval $ac_compile) 2>&5
13574   ac_status=$?
13575   echo "$as_me:13575: \$? = $ac_status" >&5
13576   (exit $ac_status); } &&
13577          { ac_try='test -s conftest.$ac_objext'
13578   { (eval echo "$as_me:13578: \"$ac_try\"") >&5
13579   (eval $ac_try) 2>&5
13580   ac_status=$?
13581   echo "$as_me:13581: \$? = $ac_status" >&5
13582   (exit $ac_status); }; }; then
13583   bash_cv_speed_t_in_sys_types=yes
13584 else
13585   echo "$as_me: failed program was:" >&5
13586 cat conftest.$ac_ext >&5
13587 bash_cv_speed_t_in_sys_types=no
13588 fi
13589 rm -f conftest.$ac_objext conftest.$ac_ext
13590 fi
13591
13592 echo "$as_me:13592: result: $bash_cv_speed_t_in_sys_types" >&5
13593 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
13594 if test $bash_cv_speed_t_in_sys_types = yes; then
13595 cat >>confdefs.h <<\EOF
13596 #define SPEED_T_IN_SYS_TYPES 1
13597 EOF
13598
13599 fi
13600
13601 echo "$as_me:13601: checking whether getpw functions are declared in pwd.h" >&5
13602 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
13603 if test "${bash_cv_getpw_declared+set}" = set; then
13604   echo $ECHO_N "(cached) $ECHO_C" >&6
13605 else
13606   cat >conftest.$ac_ext <<_ACEOF
13607 #line 13607 "configure"
13608 #include "confdefs.h"
13609
13610 #include <sys/types.h>
13611 #ifdef HAVE_UNISTD_H
13612 #  include <unistd.h>
13613 #endif
13614 #include <pwd.h>
13615
13616 _ACEOF
13617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13618   egrep "getpwuid" >/dev/null 2>&1; then
13619   bash_cv_getpw_declared=yes
13620 else
13621   bash_cv_getpw_declared=no
13622 fi
13623 rm -f conftest*
13624
13625 fi
13626
13627 echo "$as_me:13627: result: $bash_cv_getpw_declared" >&5
13628 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
13629 if test $bash_cv_getpw_declared = yes; then
13630 cat >>confdefs.h <<\EOF
13631 #define HAVE_GETPW_DECLS 1
13632 EOF
13633
13634 fi
13635
13636 echo "$as_me:13636: checking for unusable real-time signals due to large values" >&5
13637 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
13638 if test "${bash_cv_unusable_rtsigs+set}" = set; then
13639   echo $ECHO_N "(cached) $ECHO_C" >&6
13640 else
13641   if test "$cross_compiling" = yes; then
13642   { echo "$as_me:13642: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
13643 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
13644      bash_cv_unusable_rtsigs=yes
13645
13646 else
13647   cat >conftest.$ac_ext <<_ACEOF
13648 #line 13648 "configure"
13649 #include "confdefs.h"
13650
13651 #include <sys/types.h>
13652 #include <signal.h>
13653
13654 #ifndef NSIG
13655 #  define NSIG 64
13656 #endif
13657
13658 main ()
13659 {
13660   int n_sigs = 2 * NSIG;
13661 #ifdef SIGRTMIN
13662   int rtmin = SIGRTMIN;
13663 #else
13664   int rtmin = 0;
13665 #endif
13666
13667   exit(rtmin < n_sigs);
13668 }
13669 _ACEOF
13670 rm -f conftest$ac_exeext
13671 if { (eval echo "$as_me:13671: \"$ac_link\"") >&5
13672   (eval $ac_link) 2>&5
13673   ac_status=$?
13674   echo "$as_me:13674: \$? = $ac_status" >&5
13675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13676   { (eval echo "$as_me:13676: \"$ac_try\"") >&5
13677   (eval $ac_try) 2>&5
13678   ac_status=$?
13679   echo "$as_me:13679: \$? = $ac_status" >&5
13680   (exit $ac_status); }; }; then
13681   bash_cv_unusable_rtsigs=yes
13682 else
13683   echo "$as_me: program exited with status $ac_status" >&5
13684 echo "$as_me: failed program was:" >&5
13685 cat conftest.$ac_ext >&5
13686 bash_cv_unusable_rtsigs=no
13687 fi
13688 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13689 fi
13690 fi
13691
13692 echo "$as_me:13692: result: $bash_cv_unusable_rtsigs" >&5
13693 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
13694 if test $bash_cv_unusable_rtsigs = yes; then
13695 cat >>confdefs.h <<\EOF
13696 #define UNUSABLE_RT_SIGNALS 1
13697 EOF
13698
13699 fi
13700
13701 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
13702   SIGLIST_O=siglist.o
13703 else
13704   SIGLIST_O=
13705 fi
13706
13707 case "$host_os" in
13708 hpux*)  echo "$as_me:13708: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
13709 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
13710 if test "${bash_cv_kernel_rlimit+set}" = set; then
13711   echo $ECHO_N "(cached) $ECHO_C" >&6
13712 else
13713   cat >conftest.$ac_ext <<_ACEOF
13714 #line 13714 "configure"
13715 #include "confdefs.h"
13716
13717 #include <sys/types.h>
13718 #include <sys/resource.h>
13719
13720 int
13721 main ()
13722 {
13723
13724   int f;
13725   f = RLIMIT_DATA;
13726
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:13732: \"$ac_compile\"") >&5
13733   (eval $ac_compile) 2>&5
13734   ac_status=$?
13735   echo "$as_me:13735: \$? = $ac_status" >&5
13736   (exit $ac_status); } &&
13737          { ac_try='test -s conftest.$ac_objext'
13738   { (eval echo "$as_me:13738: \"$ac_try\"") >&5
13739   (eval $ac_try) 2>&5
13740   ac_status=$?
13741   echo "$as_me:13741: \$? = $ac_status" >&5
13742   (exit $ac_status); }; }; then
13743   bash_cv_kernel_rlimit=no
13744 else
13745   echo "$as_me: failed program was:" >&5
13746 cat conftest.$ac_ext >&5
13747 cat >conftest.$ac_ext <<_ACEOF
13748 #line 13748 "configure"
13749 #include "confdefs.h"
13750
13751 #include <sys/types.h>
13752 #define _KERNEL
13753 #include <sys/resource.h>
13754 #undef _KERNEL
13755
13756 int
13757 main ()
13758 {
13759
13760         int f;
13761         f = RLIMIT_DATA;
13762
13763   ;
13764   return 0;
13765 }
13766 _ACEOF
13767 rm -f conftest.$ac_objext
13768 if { (eval echo "$as_me:13768: \"$ac_compile\"") >&5
13769   (eval $ac_compile) 2>&5
13770   ac_status=$?
13771   echo "$as_me:13771: \$? = $ac_status" >&5
13772   (exit $ac_status); } &&
13773          { ac_try='test -s conftest.$ac_objext'
13774   { (eval echo "$as_me:13774: \"$ac_try\"") >&5
13775   (eval $ac_try) 2>&5
13776   ac_status=$?
13777   echo "$as_me:13777: \$? = $ac_status" >&5
13778   (exit $ac_status); }; }; then
13779   bash_cv_kernel_rlimit=yes
13780 else
13781   echo "$as_me: failed program was:" >&5
13782 cat conftest.$ac_ext >&5
13783 bash_cv_kernel_rlimit=no
13784 fi
13785 rm -f conftest.$ac_objext conftest.$ac_ext
13786
13787 fi
13788 rm -f conftest.$ac_objext conftest.$ac_ext
13789 fi
13790
13791 echo "$as_me:13791: result: $bash_cv_kernel_rlimit" >&5
13792 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
13793 if test $bash_cv_kernel_rlimit = yes; then
13794 cat >>confdefs.h <<\EOF
13795 #define RLIMIT_NEEDS_KERNEL 1
13796 EOF
13797
13798 fi
13799  ;;
13800 esac
13801
13802 if test "$opt_readline" = yes; then
13803 case "$host_os" in
13804 aix*)   prefer_curses=yes ;;
13805 esac
13806
13807 if test "X$bash_cv_termcap_lib" = "X"; then
13808 _bash_needmsg=yes
13809 else
13810 echo "$as_me:13810: checking which library has the termcap functions" >&5
13811 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
13812 _bash_needmsg=
13813 fi
13814 if test "${bash_cv_termcap_lib+set}" = set; then
13815   echo $ECHO_N "(cached) $ECHO_C" >&6
13816 else
13817   echo "$as_me:13817: checking for tgetent in -ltermcap" >&5
13818 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13819 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13820   echo $ECHO_N "(cached) $ECHO_C" >&6
13821 else
13822   ac_check_lib_save_LIBS=$LIBS
13823 LIBS="-ltermcap  $LIBS"
13824 cat >conftest.$ac_ext <<_ACEOF
13825 #line 13825 "configure"
13826 #include "confdefs.h"
13827
13828 /* Override any gcc2 internal prototype to avoid an error.  */
13829 #ifdef __cplusplus
13830 extern "C"
13831 #endif
13832 /* We use char because int might match the return type of a gcc2
13833    builtin and then its argument prototype would still apply.  */
13834 char tgetent ();
13835 int
13836 main ()
13837 {
13838 tgetent ();
13839   ;
13840   return 0;
13841 }
13842 _ACEOF
13843 rm -f conftest.$ac_objext conftest$ac_exeext
13844 if { (eval echo "$as_me:13844: \"$ac_link\"") >&5
13845   (eval $ac_link) 2>&5
13846   ac_status=$?
13847   echo "$as_me:13847: \$? = $ac_status" >&5
13848   (exit $ac_status); } &&
13849          { ac_try='test -s conftest$ac_exeext'
13850   { (eval echo "$as_me:13850: \"$ac_try\"") >&5
13851   (eval $ac_try) 2>&5
13852   ac_status=$?
13853   echo "$as_me:13853: \$? = $ac_status" >&5
13854   (exit $ac_status); }; }; then
13855   ac_cv_lib_termcap_tgetent=yes
13856 else
13857   echo "$as_me: failed program was:" >&5
13858 cat conftest.$ac_ext >&5
13859 ac_cv_lib_termcap_tgetent=no
13860 fi
13861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13862 LIBS=$ac_check_lib_save_LIBS
13863 fi
13864 echo "$as_me:13864: result: $ac_cv_lib_termcap_tgetent" >&5
13865 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13866 if test $ac_cv_lib_termcap_tgetent = yes; then
13867   bash_cv_termcap_lib=libtermcap
13868 else
13869   echo "$as_me:13869: checking for tgetent in -ltinfo" >&5
13870 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
13871 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
13872   echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874   ac_check_lib_save_LIBS=$LIBS
13875 LIBS="-ltinfo  $LIBS"
13876 cat >conftest.$ac_ext <<_ACEOF
13877 #line 13877 "configure"
13878 #include "confdefs.h"
13879
13880 /* Override any gcc2 internal prototype to avoid an error.  */
13881 #ifdef __cplusplus
13882 extern "C"
13883 #endif
13884 /* We use char because int might match the return type of a gcc2
13885    builtin and then its argument prototype would still apply.  */
13886 char tgetent ();
13887 int
13888 main ()
13889 {
13890 tgetent ();
13891   ;
13892   return 0;
13893 }
13894 _ACEOF
13895 rm -f conftest.$ac_objext conftest$ac_exeext
13896 if { (eval echo "$as_me:13896: \"$ac_link\"") >&5
13897   (eval $ac_link) 2>&5
13898   ac_status=$?
13899   echo "$as_me:13899: \$? = $ac_status" >&5
13900   (exit $ac_status); } &&
13901          { ac_try='test -s conftest$ac_exeext'
13902   { (eval echo "$as_me:13902: \"$ac_try\"") >&5
13903   (eval $ac_try) 2>&5
13904   ac_status=$?
13905   echo "$as_me:13905: \$? = $ac_status" >&5
13906   (exit $ac_status); }; }; then
13907   ac_cv_lib_tinfo_tgetent=yes
13908 else
13909   echo "$as_me: failed program was:" >&5
13910 cat conftest.$ac_ext >&5
13911 ac_cv_lib_tinfo_tgetent=no
13912 fi
13913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13914 LIBS=$ac_check_lib_save_LIBS
13915 fi
13916 echo "$as_me:13916: result: $ac_cv_lib_tinfo_tgetent" >&5
13917 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
13918 if test $ac_cv_lib_tinfo_tgetent = yes; then
13919   bash_cv_termcal_lib=libtinfo
13920 else
13921   echo "$as_me:13921: checking for tgetent in -lcurses" >&5
13922 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13923 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13924   echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926   ac_check_lib_save_LIBS=$LIBS
13927 LIBS="-lcurses  $LIBS"
13928 cat >conftest.$ac_ext <<_ACEOF
13929 #line 13929 "configure"
13930 #include "confdefs.h"
13931
13932 /* Override any gcc2 internal prototype to avoid an error.  */
13933 #ifdef __cplusplus
13934 extern "C"
13935 #endif
13936 /* We use char because int might match the return type of a gcc2
13937    builtin and then its argument prototype would still apply.  */
13938 char tgetent ();
13939 int
13940 main ()
13941 {
13942 tgetent ();
13943   ;
13944   return 0;
13945 }
13946 _ACEOF
13947 rm -f conftest.$ac_objext conftest$ac_exeext
13948 if { (eval echo "$as_me:13948: \"$ac_link\"") >&5
13949   (eval $ac_link) 2>&5
13950   ac_status=$?
13951   echo "$as_me:13951: \$? = $ac_status" >&5
13952   (exit $ac_status); } &&
13953          { ac_try='test -s conftest$ac_exeext'
13954   { (eval echo "$as_me:13954: \"$ac_try\"") >&5
13955   (eval $ac_try) 2>&5
13956   ac_status=$?
13957   echo "$as_me:13957: \$? = $ac_status" >&5
13958   (exit $ac_status); }; }; then
13959   ac_cv_lib_curses_tgetent=yes
13960 else
13961   echo "$as_me: failed program was:" >&5
13962 cat conftest.$ac_ext >&5
13963 ac_cv_lib_curses_tgetent=no
13964 fi
13965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13966 LIBS=$ac_check_lib_save_LIBS
13967 fi
13968 echo "$as_me:13968: result: $ac_cv_lib_curses_tgetent" >&5
13969 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13970 if test $ac_cv_lib_curses_tgetent = yes; then
13971   bash_cv_termcap_lib=libcurses
13972 else
13973   echo "$as_me:13973: checking for tgetent in -lncurses" >&5
13974 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13975 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13976   echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978   ac_check_lib_save_LIBS=$LIBS
13979 LIBS="-lncurses  $LIBS"
13980 cat >conftest.$ac_ext <<_ACEOF
13981 #line 13981 "configure"
13982 #include "confdefs.h"
13983
13984 /* Override any gcc2 internal prototype to avoid an error.  */
13985 #ifdef __cplusplus
13986 extern "C"
13987 #endif
13988 /* We use char because int might match the return type of a gcc2
13989    builtin and then its argument prototype would still apply.  */
13990 char tgetent ();
13991 int
13992 main ()
13993 {
13994 tgetent ();
13995   ;
13996   return 0;
13997 }
13998 _ACEOF
13999 rm -f conftest.$ac_objext conftest$ac_exeext
14000 if { (eval echo "$as_me:14000: \"$ac_link\"") >&5
14001   (eval $ac_link) 2>&5
14002   ac_status=$?
14003   echo "$as_me:14003: \$? = $ac_status" >&5
14004   (exit $ac_status); } &&
14005          { ac_try='test -s conftest$ac_exeext'
14006   { (eval echo "$as_me:14006: \"$ac_try\"") >&5
14007   (eval $ac_try) 2>&5
14008   ac_status=$?
14009   echo "$as_me:14009: \$? = $ac_status" >&5
14010   (exit $ac_status); }; }; then
14011   ac_cv_lib_ncurses_tgetent=yes
14012 else
14013   echo "$as_me: failed program was:" >&5
14014 cat conftest.$ac_ext >&5
14015 ac_cv_lib_ncurses_tgetent=no
14016 fi
14017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14018 LIBS=$ac_check_lib_save_LIBS
14019 fi
14020 echo "$as_me:14020: result: $ac_cv_lib_ncurses_tgetent" >&5
14021 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
14022 if test $ac_cv_lib_ncurses_tgetent = yes; then
14023   bash_cv_termcap_lib=libncurses
14024 else
14025   bash_cv_termcap_lib=gnutermcap
14026 fi
14027
14028 fi
14029
14030 fi
14031
14032 fi
14033
14034 fi
14035
14036 if test "X$_bash_needmsg" = "Xyes"; then
14037 echo "$as_me:14037: checking which library has the termcap functions" >&5
14038 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
14039 fi
14040 echo "$as_me:14040: result: using $bash_cv_termcap_lib" >&5
14041 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
14042 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
14043 LDFLAGS="$LDFLAGS -L./lib/termcap"
14044 TERMCAP_LIB="./lib/termcap/libtermcap.a"
14045 TERMCAP_DEP="./lib/termcap/libtermcap.a"
14046 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
14047 TERMCAP_LIB=-ltermcap
14048 TERMCAP_DEP=
14049 elif test $bash_cv_termcap_lib = libtinfo; then
14050 TERMCAP_LIB=-ltinfo
14051 TERMCAP_DEP=
14052 elif test $bash_cv_termcap_lib = libncurses; then
14053 TERMCAP_LIB=-lncurses
14054 TERMCAP_DEP=
14055 else
14056 TERMCAP_LIB=-lcurses
14057 TERMCAP_DEP=
14058 fi
14059
14060 fi
14061
14062 echo "$as_me:14062: checking whether /dev/fd is available" >&5
14063 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
14064 if test "${bash_cv_dev_fd+set}" = set; then
14065   echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067   if test -d /dev/fd  && test -r /dev/fd/0; then
14068    bash_cv_dev_fd=standard
14069  elif test -d /proc/self/fd && test -r /proc/self/fd/0; then
14070    bash_cv_dev_fd=whacky
14071  else
14072    bash_cv_dev_fd=absent
14073  fi
14074
14075 fi
14076
14077 echo "$as_me:14077: result: $bash_cv_dev_fd" >&5
14078 echo "${ECHO_T}$bash_cv_dev_fd" >&6
14079 if test $bash_cv_dev_fd = "standard"; then
14080   cat >>confdefs.h <<\EOF
14081 #define HAVE_DEV_FD 1
14082 EOF
14083
14084   cat >>confdefs.h <<\EOF
14085 #define DEV_FD_PREFIX "/dev/fd/"
14086 EOF
14087
14088 elif test $bash_cv_dev_fd = "whacky"; then
14089   cat >>confdefs.h <<\EOF
14090 #define HAVE_DEV_FD 1
14091 EOF
14092
14093   cat >>confdefs.h <<\EOF
14094 #define DEV_FD_PREFIX "/proc/self/fd/"
14095 EOF
14096
14097 fi
14098
14099 echo "$as_me:14099: checking whether /dev/stdin stdout stderr are available" >&5
14100 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
14101 if test "${bash_cv_dev_stdin+set}" = set; then
14102   echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104   if test -d /dev/fd && test -r /dev/stdin; then
14105    bash_cv_dev_stdin=present
14106  elif test -d /proc/self/fd && test -r /dev/stdin; then
14107    bash_cv_dev_stdin=present
14108  else
14109    bash_cv_dev_stdin=absent
14110  fi
14111
14112 fi
14113
14114 echo "$as_me:14114: result: $bash_cv_dev_stdin" >&5
14115 echo "${ECHO_T}$bash_cv_dev_stdin" >&6
14116 if test $bash_cv_dev_stdin = "present"; then
14117   cat >>confdefs.h <<\EOF
14118 #define HAVE_DEV_STDIN 1
14119 EOF
14120
14121 fi
14122
14123 echo "$as_me:14123: checking for default mail directory" >&5
14124 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
14125 if test "${bash_cv_mail_dir+set}" = set; then
14126   echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128   if test -d /var/mail; then
14129    bash_cv_mail_dir=/var/mail
14130  elif test -d /usr/mail; then
14131    bash_cv_mail_dir=/usr/mail
14132  elif test -d /var/spool/mail; then
14133    bash_cv_mail_dir=/var/spool/mail
14134  elif test -d /usr/spool/mail; then
14135    bash_cv_mail_dir=/usr/spool/mail
14136  else
14137    bash_cv_mail_dir=unknown
14138  fi
14139
14140 fi
14141
14142 echo "$as_me:14142: result: $bash_cv_mail_dir" >&5
14143 echo "${ECHO_T}$bash_cv_mail_dir" >&6
14144 if test $bash_cv_mail_dir = "/var/mail"; then
14145    cat >>confdefs.h <<\EOF
14146 #define DEFAULT_MAIL_DIRECTORY "/var/mail"
14147 EOF
14148
14149 elif test $bash_cv_mail_dir = "/usr/mail"; then
14150    cat >>confdefs.h <<\EOF
14151 #define DEFAULT_MAIL_DIRECTORY "/usr/mail"
14152 EOF
14153
14154 elif test $bash_cv_mail_dir = "/var/spool/mail"; then
14155    cat >>confdefs.h <<\EOF
14156 #define DEFAULT_MAIL_DIRECTORY "/var/spool/mail"
14157 EOF
14158
14159 elif test $bash_cv_mail_dir = "/usr/spool/mail"; then
14160    cat >>confdefs.h <<\EOF
14161 #define DEFAULT_MAIL_DIRECTORY "/usr/spool/mail"
14162 EOF
14163
14164 else
14165    cat >>confdefs.h <<\EOF
14166 #define DEFAULT_MAIL_DIRECTORY "unknown"
14167 EOF
14168
14169 fi
14170
14171 if test "$bash_cv_job_control_missing" = missing; then
14172         opt_job_control=no
14173 fi
14174
14175 if test "$opt_job_control" = yes; then
14176 cat >>confdefs.h <<\EOF
14177 #define JOB_CONTROL 1
14178 EOF
14179
14180 JOBS_O=jobs.o
14181 else
14182 JOBS_O=nojobs.o
14183 fi
14184
14185 LOCAL_DEFS=-DSHELL
14186
14187 case "${host_os}" in
14188 sysv4.2*)       cat >>confdefs.h <<\EOF
14189 #define SVR4_2 1
14190 EOF
14191
14192                 cat >>confdefs.h <<\EOF
14193 #define SVR4 1
14194 EOF
14195  ;;
14196 sysv4*)         cat >>confdefs.h <<\EOF
14197 #define SVR4 1
14198 EOF
14199  ;;
14200 sysv5*)         cat >>confdefs.h <<\EOF
14201 #define SVR5 1
14202 EOF
14203  ;;
14204 hpux9*)         LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
14205 hpux*)          LOCAL_CFLAGS=-DHPUX ;;
14206 dgux*)          LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
14207 isc*)           LOCAL_CFLAGS=-Disc386 ;;
14208 rhapsody*)      LOCAL_CFLAGS=-DRHAPSODY ;;
14209 darwin*)        LOCAL_CFLAGS=-DMACOSX ;;
14210 sco3.2v5*)      LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DNO_MEMSCRAMBLE -DPATH_MAX=1024" ;;
14211 sco3.2v4*)      LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DNO_MEMSCRAMBLE -DPATH_MAX=1024" ;;
14212 sco3.2*)        LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
14213 sunos4*)        LOCAL_CFLAGS=-DSunOS4 ;;
14214 solaris2.5*)    LOCAL_CFLAGS=-DSunOS5 ;;
14215 lynxos*)        LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
14216 linux*)         LOCAL_LDFLAGS=-rdynamic ;;       # allow dynamic loading
14217 *qnx*)          LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s -lunix -lncurses" ;;
14218 powerux*)       LOCAL_LIBS="-lgen" ;;
14219 cygwin*)        LOCAL_LIBS="-luser32" ;;
14220 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO" ;;
14221 esac
14222
14223 case "${host_os}-${CC}" in
14224 aix4.2*-*gcc*)  LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
14225 aix4.2*)        LOCAL_LDFLAGS="-bexpall -brtl" ;;
14226 bsdi4*-*gcc*)   LOCAL_LDFLAGS="-rdynamic" ;;    # allow dynamic loading, like Linux
14227 esac
14228
14229 case "${host_os}" in
14230 freebsd[3-9]*)
14231                 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
14232                         LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
14233                 fi ;;
14234 freebsdelf*)    LOCAL_LDFLAGS=-rdynamic ;;      # allow dynamic loading
14235 esac
14236
14237 case "$host_cpu" in
14238 *cray*)         LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
14239 esac
14240
14241 case "$host_cpu-$host_os" in
14242 ibmrt-*bsd4*)   LOCAL_CFLAGS="-ma -U__STDC__" ;;
14243 esac
14244
14245 case "$host_cpu-$host_vendor-$host_os" in
14246 m88k-motorola-sysv3)    LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
14247 mips-pyramid-sysv4)     LOCAL_CFLAGS=-Xa ;;
14248 esac
14249
14250 #
14251 # Shared object configuration section.  These values are generated by
14252 # ${srcdir}/support/shobj-conf
14253 #
14254 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
14255 then
14256         echo "$as_me:14256: checking shared object configuration for loadable builtins" >&5
14257 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
14258         eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
14259
14260         echo "$as_me:14260: result: $SHOBJ_STATUS" >&5
14261 echo "${ECHO_T}$SHOBJ_STATUS" >&6
14262 fi
14263
14264 # try to create a directory tree if the source is elsewhere
14265 # this should be packaged into a script accessible via ${srcdir}/support
14266 case "$srcdir" in
14267 .)      ;;
14268 *)      for d in doc tests support lib examples; do     # dirs
14269                 test -d $d || mkdir $d
14270         done
14271         for ld in readline glob tilde malloc sh termcap; do     # libdirs
14272                 test -d lib/$ld || mkdir lib/$ld
14273         done
14274         test -d examples/loadables || mkdir examples/loadables  # loadable builtins
14275         test -d examples/loadables/perl || mkdir examples/loadables/perl
14276         ;;
14277 esac
14278
14279 BUILD_DIR=`pwd`
14280
14281 #AC_SUBST(ALLOCA_SOURCE)
14282 #AC_SUBST(ALLOCA_OBJECT)
14283
14284 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"
14285 ac_config_commands="$ac_config_commands default"
14286 cat >confcache <<\_ACEOF
14287 # This file is a shell script that caches the results of configure
14288 # tests run on this system so they can be shared between configure
14289 # scripts and configure runs, see configure's option --config-cache.
14290 # It is not useful on other systems.  If it contains results you don't
14291 # want to keep, you may remove or edit it.
14292 #
14293 # config.status only pays attention to the cache file if you give it
14294 # the --recheck option to rerun configure.
14295 #
14296 # `ac_cv_env_foo' variables (set or unset) will be overriden when
14297 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14298 # following values.
14299
14300 _ACEOF
14301
14302 # The following way of writing the cache mishandles newlines in values,
14303 # but we know of no workaround that is simple, portable, and efficient.
14304 # So, don't put newlines in cache variables' values.
14305 # Ultrix sh set writes to stderr and can't be redirected directly,
14306 # and sets the high bit in the cache file unless we assign to the vars.
14307 {
14308   (set) 2>&1 |
14309     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14310     *ac_space=\ *)
14311       # `set' does not quote correctly, so add quotes (double-quote
14312       # substitution turns \\\\ into \\, and sed turns \\ into \).
14313       sed -n \
14314         "s/'/'\\\\''/g;
14315           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14316       ;;
14317     *)
14318       # `set' quotes correctly as required by POSIX, so do not add quotes.
14319       sed -n \
14320         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14321       ;;
14322     esac;
14323 } |
14324   sed '
14325      t clear
14326      : clear
14327      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14328      t end
14329      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14330      : end' >>confcache
14331 if cmp -s $cache_file confcache; then :; else
14332   if test -w $cache_file; then
14333     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14334     cat confcache >$cache_file
14335   else
14336     echo "not updating unwritable cache $cache_file"
14337   fi
14338 fi
14339 rm -f confcache
14340
14341 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14342 # Let make expand exec_prefix.
14343 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14344
14345 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14346 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14347 # trailing colons and then remove the whole line if VPATH becomes empty
14348 # (actually we leave an empty line to preserve line numbers).
14349 if test "x$srcdir" = x.; then
14350   ac_vpsub='/^[         ]*VPATH[        ]*=/{
14351 s/:*\$(srcdir):*/:/;
14352 s/:*\${srcdir}:*/:/;
14353 s/:*@srcdir@:*/:/;
14354 s/^\([^=]*=[    ]*\):*/\1/;
14355 s/:*$//;
14356 s/^[^=]*=[      ]*$//;
14357 }'
14358 fi
14359
14360 DEFS=-DHAVE_CONFIG_H
14361
14362 : ${CONFIG_STATUS=./config.status}
14363 ac_clean_files_save=$ac_clean_files
14364 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14365 { echo "$as_me:14365: creating $CONFIG_STATUS" >&5
14366 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14367 cat >$CONFIG_STATUS <<_ACEOF
14368 #! $SHELL
14369 # Generated automatically by configure.
14370 # Run this file to recreate the current configuration.
14371 # Compiler output produced by configure, useful for debugging
14372 # configure, is in config.log if it exists.
14373
14374 debug=false
14375 SHELL=\${CONFIG_SHELL-$SHELL}
14376 ac_cs_invocation="\$0 \$@"
14377
14378 _ACEOF
14379
14380 cat >>$CONFIG_STATUS <<\_ACEOF
14381 # Be Bourne compatible
14382 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14383   emulate sh
14384   NULLCMD=:
14385 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14386   set -o posix
14387 fi
14388
14389 # Name of the executable.
14390 as_me=`echo "$0" |sed 's,.*[\\/],,'`
14391
14392 if expr a : '\(a\)' >/dev/null 2>&1; then
14393   as_expr=expr
14394 else
14395   as_expr=false
14396 fi
14397
14398 rm -f conf$$ conf$$.exe conf$$.file
14399 echo >conf$$.file
14400 if ln -s conf$$.file conf$$ 2>/dev/null; then
14401   # We could just check for DJGPP; but this test a) works b) is more generic
14402   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14403   if test -f conf$$.exe; then
14404     # Don't use ln at all; we don't have any links
14405     as_ln_s='cp -p'
14406   else
14407     as_ln_s='ln -s'
14408   fi
14409 elif ln conf$$.file conf$$ 2>/dev/null; then
14410   as_ln_s=ln
14411 else
14412   as_ln_s='cp -p'
14413 fi
14414 rm -f conf$$ conf$$.exe conf$$.file
14415
14416 as_executable_p="test -f"
14417
14418 # Support unset when possible.
14419 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14420   as_unset=unset
14421 else
14422   as_unset=false
14423 fi
14424
14425 # NLS nuisances.
14426 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
14427 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
14428 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
14429 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
14430 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
14431 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
14432 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
14433 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
14434
14435 # IFS
14436 # We need space, tab and new line, in precisely that order.
14437 as_nl='
14438 '
14439 IFS="   $as_nl"
14440
14441 # CDPATH.
14442 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
14443
14444 exec 6>&1
14445
14446 _ACEOF
14447
14448 # Files that config.status was made for.
14449 if test -n "$ac_config_files"; then
14450   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14451 fi
14452
14453 if test -n "$ac_config_headers"; then
14454   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14455 fi
14456
14457 if test -n "$ac_config_links"; then
14458   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14459 fi
14460
14461 if test -n "$ac_config_commands"; then
14462   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14463 fi
14464
14465 cat >>$CONFIG_STATUS <<\EOF
14466
14467 ac_cs_usage="\
14468 \`$as_me' instantiates files from templates according to the
14469 current configuration.
14470
14471 Usage: $0 [OPTIONS] [FILE]...
14472
14473   -h, --help       print this help, then exit
14474   -V, --version    print version number, then exit
14475   -d, --debug      don't remove temporary files
14476       --recheck    update $as_me by reconfiguring in the same conditions
14477   --file=FILE[:TEMPLATE]
14478                    instantiate the configuration file FILE
14479   --header=FILE[:TEMPLATE]
14480                    instantiate the configuration header FILE
14481
14482 Configuration files:
14483 $config_files
14484
14485 Configuration headers:
14486 $config_headers
14487
14488 Configuration commands:
14489 $config_commands
14490
14491 Report bugs to <bug-autoconf@gnu.org>."
14492 EOF
14493
14494 cat >>$CONFIG_STATUS <<EOF
14495 ac_cs_version="\\
14496 bash config.status 2.05a
14497 configured by $0, generated by GNU Autoconf 2.52,
14498   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14499
14500 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14501 Free Software Foundation, Inc.
14502 This config.status script is free software; the Free Software Foundation
14503 gives unlimited permission to copy, distribute and modify it."
14504 srcdir=$srcdir
14505 INSTALL="$INSTALL"
14506 EOF
14507
14508 cat >>$CONFIG_STATUS <<\EOF
14509 # If no file are specified by the user, then we need to provide default
14510 # value.  By we need to know if files were specified by the user.
14511 ac_need_defaults=:
14512 while test $# != 0
14513 do
14514   case $1 in
14515   --*=*)
14516     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14517     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14518     shift
14519     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14520     shift
14521     ;;
14522   -*);;
14523   *) # This is not an option, so the user has probably given explicit
14524      # arguments.
14525      ac_need_defaults=false;;
14526   esac
14527
14528   case $1 in
14529   # Handling of the options.
14530 EOF
14531 cat >>$CONFIG_STATUS <<EOF
14532   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14533     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14534     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14535 EOF
14536 cat >>$CONFIG_STATUS <<\EOF
14537   --version | --vers* | -V )
14538     echo "$ac_cs_version"; exit 0 ;;
14539   --he | --h)
14540     # Conflict between --help and --header
14541     { { echo "$as_me:14541: error: ambiguous option: $1
14542 Try \`$0 --help' for more information." >&5
14543 echo "$as_me: error: ambiguous option: $1
14544 Try \`$0 --help' for more information." >&2;}
14545    { (exit 1); exit 1; }; };;
14546   --help | --hel | -h )
14547     echo "$ac_cs_usage"; exit 0 ;;
14548   --debug | --d* | -d )
14549     debug=: ;;
14550   --file | --fil | --fi | --f )
14551     shift
14552     CONFIG_FILES="$CONFIG_FILES $1"
14553     ac_need_defaults=false;;
14554   --header | --heade | --head | --hea )
14555     shift
14556     CONFIG_HEADERS="$CONFIG_HEADERS $1"
14557     ac_need_defaults=false;;
14558
14559   # This is an error.
14560   -*) { { echo "$as_me:14560: error: unrecognized option: $1
14561 Try \`$0 --help' for more information." >&5
14562 echo "$as_me: error: unrecognized option: $1
14563 Try \`$0 --help' for more information." >&2;}
14564    { (exit 1); exit 1; }; } ;;
14565
14566   *) ac_config_targets="$ac_config_targets $1" ;;
14567
14568   esac
14569   shift
14570 done
14571
14572 exec 5>>config.log
14573 cat >&5 << _ACEOF
14574
14575 ## ----------------------- ##
14576 ## Running config.status.  ##
14577 ## ----------------------- ##
14578
14579 This file was extended by $as_me (bash 2.05a) 2.52, executed with
14580   CONFIG_FILES    = $CONFIG_FILES
14581   CONFIG_HEADERS  = $CONFIG_HEADERS
14582   CONFIG_LINKS    = $CONFIG_LINKS
14583   CONFIG_COMMANDS = $CONFIG_COMMANDS
14584   > $ac_cs_invocation
14585 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14586
14587 _ACEOF
14588 EOF
14589
14590 cat >>$CONFIG_STATUS <<\EOF
14591 for ac_config_target in $ac_config_targets
14592 do
14593   case "$ac_config_target" in
14594   # Handling of arguments.
14595   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14596   "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
14597   "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
14598   "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
14599   "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
14600   "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
14601   "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
14602   "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
14603   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14604   "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
14605   "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
14606   "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
14607   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14608   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14609   *) { { echo "$as_me:14609: error: invalid argument: $ac_config_target" >&5
14610 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14611    { (exit 1); exit 1; }; };;
14612   esac
14613 done
14614
14615 # If the user did not use the arguments to specify the items to instantiate,
14616 # then the envvar interface is used.  Set only those that are not.
14617 # We use the long form for the default assignment because of an extremely
14618 # bizarre bug on SunOS 4.1.3.
14619 if $ac_need_defaults; then
14620   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14621   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14622   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14623 fi
14624
14625 # Create a temporary directory, and hook for its removal unless debugging.
14626 $debug ||
14627 {
14628   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14629   trap '{ (exit 1); exit 1; }' 1 2 13 15
14630 }
14631
14632 # Create a (secure) tmp directory for tmp files.
14633 : ${TMPDIR=/tmp}
14634 {
14635   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14636   test -n "$tmp" && test -d "$tmp"
14637 }  ||
14638 {
14639   tmp=$TMPDIR/cs$$-$RANDOM
14640   (umask 077 && mkdir $tmp)
14641 } ||
14642 {
14643    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14644    { (exit 1); exit 1; }
14645 }
14646
14647 EOF
14648
14649 cat >>$CONFIG_STATUS <<EOF
14650
14651 #
14652 # CONFIG_FILES section.
14653 #
14654
14655 # No need to generate the scripts if there are no CONFIG_FILES.
14656 # This happens for instance when ./config.status config.h
14657 if test -n "\$CONFIG_FILES"; then
14658   # Protect against being on the right side of a sed subst in config.status.
14659   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14660    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14661 s,@SHELL@,$SHELL,;t t
14662 s,@exec_prefix@,$exec_prefix,;t t
14663 s,@prefix@,$prefix,;t t
14664 s,@program_transform_name@,$program_transform_name,;t t
14665 s,@bindir@,$bindir,;t t
14666 s,@sbindir@,$sbindir,;t t
14667 s,@libexecdir@,$libexecdir,;t t
14668 s,@datadir@,$datadir,;t t
14669 s,@sysconfdir@,$sysconfdir,;t t
14670 s,@sharedstatedir@,$sharedstatedir,;t t
14671 s,@localstatedir@,$localstatedir,;t t
14672 s,@libdir@,$libdir,;t t
14673 s,@includedir@,$includedir,;t t
14674 s,@oldincludedir@,$oldincludedir,;t t
14675 s,@infodir@,$infodir,;t t
14676 s,@mandir@,$mandir,;t t
14677 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14678 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14679 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14680 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14681 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14682 s,@build_alias@,$build_alias,;t t
14683 s,@host_alias@,$host_alias,;t t
14684 s,@target_alias@,$target_alias,;t t
14685 s,@ECHO_C@,$ECHO_C,;t t
14686 s,@ECHO_N@,$ECHO_N,;t t
14687 s,@ECHO_T@,$ECHO_T,;t t
14688 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14689 s,@DEFS@,$DEFS,;t t
14690 s,@LIBS@,$LIBS,;t t
14691 s,@build@,$build,;t t
14692 s,@build_cpu@,$build_cpu,;t t
14693 s,@build_vendor@,$build_vendor,;t t
14694 s,@build_os@,$build_os,;t t
14695 s,@host@,$host,;t t
14696 s,@host_cpu@,$host_cpu,;t t
14697 s,@host_vendor@,$host_vendor,;t t
14698 s,@host_os@,$host_os,;t t
14699 s,@TESTSCRIPT@,$TESTSCRIPT,;t t
14700 s,@PURIFY@,$PURIFY,;t t
14701 s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
14702 s,@MALLOC_SRC@,$MALLOC_SRC,;t t
14703 s,@MALLOC_LIB@,$MALLOC_LIB,;t t
14704 s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
14705 s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
14706 s,@MALLOC_DEP@,$MALLOC_DEP,;t t
14707 s,@htmldir@,$htmldir,;t t
14708 s,@CC@,$CC,;t t
14709 s,@CFLAGS@,$CFLAGS,;t t
14710 s,@LDFLAGS@,$LDFLAGS,;t t
14711 s,@CPPFLAGS@,$CPPFLAGS,;t t
14712 s,@ac_ct_CC@,$ac_ct_CC,;t t
14713 s,@EXEEXT@,$EXEEXT,;t t
14714 s,@OBJEXT@,$OBJEXT,;t t
14715 s,@CPP@,$CPP,;t t
14716 s,@SIGNAMES_H@,$SIGNAMES_H,;t t
14717 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
14718 s,@STATIC_LD@,$STATIC_LD,;t t
14719 s,@RL_VERSION@,$RL_VERSION,;t t
14720 s,@RL_MAJOR@,$RL_MAJOR,;t t
14721 s,@RL_MINOR@,$RL_MINOR,;t t
14722 s,@READLINE_LIB@,$READLINE_LIB,;t t
14723 s,@READLINE_DEP@,$READLINE_DEP,;t t
14724 s,@RL_LIBDIR@,$RL_LIBDIR,;t t
14725 s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
14726 s,@RL_INCLUDE@,$RL_INCLUDE,;t t
14727 s,@HISTORY_LIB@,$HISTORY_LIB,;t t
14728 s,@HISTORY_DEP@,$HISTORY_DEP,;t t
14729 s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
14730 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14731 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14732 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14733 s,@AR@,$AR,;t t
14734 s,@RANLIB@,$RANLIB,;t t
14735 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14736 s,@YACC@,$YACC,;t t
14737 s,@SET_MAKE@,$SET_MAKE,;t t
14738 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
14739 s,@ALLOCA@,$ALLOCA,;t t
14740 s,@LIBOBJS@,$LIBOBJS,;t t
14741 s,@SIGLIST_O@,$SIGLIST_O,;t t
14742 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
14743 s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
14744 s,@JOBS_O@,$JOBS_O,;t t
14745 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
14746 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
14747 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
14748 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
14749 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
14750 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
14751 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
14752 s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
14753 s,@incdir@,$incdir,;t t
14754 s,@BUILD_DIR@,$BUILD_DIR,;t t
14755 s,@ARFLAGS@,$ARFLAGS,;t t
14756 s,@BASHVERS@,$BASHVERS,;t t
14757 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
14758 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
14759 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
14760 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
14761 CEOF
14762
14763 EOF
14764
14765   cat >>$CONFIG_STATUS <<\EOF
14766   # Split the substitutions into bite-sized pieces for seds with
14767   # small command number limits, like on Digital OSF/1 and HP-UX.
14768   ac_max_sed_lines=48
14769   ac_sed_frag=1 # Number of current file.
14770   ac_beg=1 # First line for current file.
14771   ac_end=$ac_max_sed_lines # Line after last line for current file.
14772   ac_more_lines=:
14773   ac_sed_cmds=
14774   while $ac_more_lines; do
14775     if test $ac_beg -gt 1; then
14776       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14777     else
14778       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14779     fi
14780     if test ! -s $tmp/subs.frag; then
14781       ac_more_lines=false
14782     else
14783       # The purpose of the label and of the branching condition is to
14784       # speed up the sed processing (if there are no `@' at all, there
14785       # is no need to browse any of the substitutions).
14786       # These are the two extra sed commands mentioned above.
14787       (echo ':t
14788   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14789       if test -z "$ac_sed_cmds"; then
14790         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14791       else
14792         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14793       fi
14794       ac_sed_frag=`expr $ac_sed_frag + 1`
14795       ac_beg=$ac_end
14796       ac_end=`expr $ac_end + $ac_max_sed_lines`
14797     fi
14798   done
14799   if test -z "$ac_sed_cmds"; then
14800     ac_sed_cmds=cat
14801   fi
14802 fi # test -n "$CONFIG_FILES"
14803
14804 EOF
14805 cat >>$CONFIG_STATUS <<\EOF
14806 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14807   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14808   case $ac_file in
14809   - | *:- | *:-:* ) # input from stdin
14810         cat >$tmp/stdin
14811         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14812         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14813   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14814         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14815   * )   ac_file_in=$ac_file.in ;;
14816   esac
14817
14818   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14819   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14820          X"$ac_file" : 'X\(//\)[^/]' \| \
14821          X"$ac_file" : 'X\(//\)$' \| \
14822          X"$ac_file" : 'X\(/\)' \| \
14823          .     : '\(.\)' 2>/dev/null ||
14824 echo X"$ac_file" |
14825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14826           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14827           /^X\(\/\/\)$/{ s//\1/; q; }
14828           /^X\(\/\).*/{ s//\1/; q; }
14829           s/.*/./; q'`
14830   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14831     { case "$ac_dir" in
14832   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14833   *)                      as_incr_dir=.;;
14834 esac
14835 as_dummy="$ac_dir"
14836 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14837   case $as_mkdir_dir in
14838     # Skip DOS drivespec
14839     ?:) as_incr_dir=$as_mkdir_dir ;;
14840     *)
14841       as_incr_dir=$as_incr_dir/$as_mkdir_dir
14842       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
14843     ;;
14844   esac
14845 done; }
14846
14847     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
14848     # A "../" for each directory in $ac_dir_suffix.
14849     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
14850   else
14851     ac_dir_suffix= ac_dots=
14852   fi
14853
14854   case $srcdir in
14855   .)  ac_srcdir=.
14856       if test -z "$ac_dots"; then
14857          ac_top_srcdir=.
14858       else
14859          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
14860       fi ;;
14861   [\\/]* | ?:[\\/]* )
14862       ac_srcdir=$srcdir$ac_dir_suffix;
14863       ac_top_srcdir=$srcdir ;;
14864   *) # Relative path.
14865     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
14866     ac_top_srcdir=$ac_dots$srcdir ;;
14867   esac
14868
14869   case $INSTALL in
14870   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14871   *) ac_INSTALL=$ac_dots$INSTALL ;;
14872   esac
14873
14874   if test x"$ac_file" != x-; then
14875     { echo "$as_me:14875: creating $ac_file" >&5
14876 echo "$as_me: creating $ac_file" >&6;}
14877     rm -f "$ac_file"
14878   fi
14879   # Let's still pretend it is `configure' which instantiates (i.e., don't
14880   # use $as_me), people would be surprised to read:
14881   #    /* config.h.  Generated automatically by config.status.  */
14882   configure_input="Generated automatically from `echo $ac_file_in |
14883                                                  sed 's,.*/,,'` by configure."
14884
14885   # First look for the input files in the build tree, otherwise in the
14886   # src tree.
14887   ac_file_inputs=`IFS=:
14888     for f in $ac_file_in; do
14889       case $f in
14890       -) echo $tmp/stdin ;;
14891       [\\/$]*)
14892          # Absolute (can't be DOS-style, as IFS=:)
14893          test -f "$f" || { { echo "$as_me:14893: error: cannot find input file: $f" >&5
14894 echo "$as_me: error: cannot find input file: $f" >&2;}
14895    { (exit 1); exit 1; }; }
14896          echo $f;;
14897       *) # Relative
14898          if test -f "$f"; then
14899            # Build tree
14900            echo $f
14901          elif test -f "$srcdir/$f"; then
14902            # Source tree
14903            echo $srcdir/$f
14904          else
14905            # /dev/null tree
14906            { { echo "$as_me:14906: error: cannot find input file: $f" >&5
14907 echo "$as_me: error: cannot find input file: $f" >&2;}
14908    { (exit 1); exit 1; }; }
14909          fi;;
14910       esac
14911     done` || { (exit 1); exit 1; }
14912 EOF
14913 cat >>$CONFIG_STATUS <<EOF
14914   sed "$ac_vpsub
14915 $extrasub
14916 EOF
14917 cat >>$CONFIG_STATUS <<\EOF
14918 :t
14919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14920 s,@configure_input@,$configure_input,;t t
14921 s,@srcdir@,$ac_srcdir,;t t
14922 s,@top_srcdir@,$ac_top_srcdir,;t t
14923 s,@INSTALL@,$ac_INSTALL,;t t
14924 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14925   rm -f $tmp/stdin
14926   if test x"$ac_file" != x-; then
14927     mv $tmp/out $ac_file
14928   else
14929     cat $tmp/out
14930     rm -f $tmp/out
14931   fi
14932
14933 done
14934 EOF
14935 cat >>$CONFIG_STATUS <<\EOF
14936
14937 #
14938 # CONFIG_HEADER section.
14939 #
14940
14941 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14942 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14943 #
14944 # ac_d sets the value in "#define NAME VALUE" lines.
14945 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
14946 ac_dB='[        ].*$,\1#\2'
14947 ac_dC=' '
14948 ac_dD=',;t'
14949 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14950 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14951 ac_uB='$,\1#\2define\3'
14952 ac_uC=' '
14953 ac_uD=',;t'
14954
14955 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14956   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14957   case $ac_file in
14958   - | *:- | *:-:* ) # input from stdin
14959         cat >$tmp/stdin
14960         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14961         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14962   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14963         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14964   * )   ac_file_in=$ac_file.in ;;
14965   esac
14966
14967   test x"$ac_file" != x- && { echo "$as_me:14967: creating $ac_file" >&5
14968 echo "$as_me: creating $ac_file" >&6;}
14969
14970   # First look for the input files in the build tree, otherwise in the
14971   # src tree.
14972   ac_file_inputs=`IFS=:
14973     for f in $ac_file_in; do
14974       case $f in
14975       -) echo $tmp/stdin ;;
14976       [\\/$]*)
14977          # Absolute (can't be DOS-style, as IFS=:)
14978          test -f "$f" || { { echo "$as_me:14978: error: cannot find input file: $f" >&5
14979 echo "$as_me: error: cannot find input file: $f" >&2;}
14980    { (exit 1); exit 1; }; }
14981          echo $f;;
14982       *) # Relative
14983          if test -f "$f"; then
14984            # Build tree
14985            echo $f
14986          elif test -f "$srcdir/$f"; then
14987            # Source tree
14988            echo $srcdir/$f
14989          else
14990            # /dev/null tree
14991            { { echo "$as_me:14991: error: cannot find input file: $f" >&5
14992 echo "$as_me: error: cannot find input file: $f" >&2;}
14993    { (exit 1); exit 1; }; }
14994          fi;;
14995       esac
14996     done` || { (exit 1); exit 1; }
14997   # Remove the trailing spaces.
14998   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
14999
15000 EOF
15001
15002 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15003 # `conftest.undefs', that substitutes the proper values into
15004 # config.h.in to produce config.h.  The first handles `#define'
15005 # templates, and the second `#undef' templates.
15006 # And first: Protect against being on the right side of a sed subst in
15007 # config.status.  Protect against being in an unquoted here document
15008 # in config.status.
15009 rm -f conftest.defines conftest.undefs
15010 # Using a here document instead of a string reduces the quoting nightmare.
15011 # Putting comments in sed scripts is not portable.
15012 #
15013 # `end' is used to avoid that the second main sed command (meant for
15014 # 0-ary CPP macros) applies to n-ary macro definitions.
15015 # See the Autoconf documentation for `clear'.
15016 cat >confdef2sed.sed <<\EOF
15017 s/[\\&,]/\\&/g
15018 s,[\\$`],\\&,g
15019 t clear
15020 : clear
15021 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
15022 t end
15023 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15024 : end
15025 EOF
15026 # If some macros were called several times there might be several times
15027 # the same #defines, which is useless.  Nevertheless, we may not want to
15028 # sort them, since we want the *last* AC-DEFINE to be honored.
15029 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15030 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15031 rm -f confdef2sed.sed
15032
15033 # This sed command replaces #undef with comments.  This is necessary, for
15034 # example, in the case of _POSIX_SOURCE, which is predefined and required
15035 # on some systems where configure will not decide to define it.
15036 cat >>conftest.undefs <<\EOF
15037 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15038 EOF
15039
15040 # Break up conftest.defines because some shells have a limit on the size
15041 # of here documents, and old seds have small limits too (100 cmds).
15042 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15043 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15044 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15045 echo '  :' >>$CONFIG_STATUS
15046 rm -f conftest.tail
15047 while grep . conftest.defines >/dev/null
15048 do
15049   # Write a limited-size here document to $tmp/defines.sed.
15050   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15051   # Speed up: don't consider the non `#define' lines.
15052   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
15053   # Work around the forget-to-reset-the-flag bug.
15054   echo 't clr' >>$CONFIG_STATUS
15055   echo ': clr' >>$CONFIG_STATUS
15056   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15057   echo 'CEOF
15058   sed -f $tmp/defines.sed $tmp/in >$tmp/out
15059   rm -f $tmp/in
15060   mv $tmp/out $tmp/in
15061 ' >>$CONFIG_STATUS
15062   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15063   rm -f conftest.defines
15064   mv conftest.tail conftest.defines
15065 done
15066 rm -f conftest.defines
15067 echo '  fi # egrep' >>$CONFIG_STATUS
15068 echo >>$CONFIG_STATUS
15069
15070 # Break up conftest.undefs because some shells have a limit on the size
15071 # of here documents, and old seds have small limits too (100 cmds).
15072 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15073 rm -f conftest.tail
15074 while grep . conftest.undefs >/dev/null
15075 do
15076   # Write a limited-size here document to $tmp/undefs.sed.
15077   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15078   # Speed up: don't consider the non `#undef'
15079   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15080   # Work around the forget-to-reset-the-flag bug.
15081   echo 't clr' >>$CONFIG_STATUS
15082   echo ': clr' >>$CONFIG_STATUS
15083   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15084   echo 'CEOF
15085   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15086   rm -f $tmp/in
15087   mv $tmp/out $tmp/in
15088 ' >>$CONFIG_STATUS
15089   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15090   rm -f conftest.undefs
15091   mv conftest.tail conftest.undefs
15092 done
15093 rm -f conftest.undefs
15094
15095 cat >>$CONFIG_STATUS <<\EOF
15096   # Let's still pretend it is `configure' which instantiates (i.e., don't
15097   # use $as_me), people would be surprised to read:
15098   #    /* config.h.  Generated automatically by config.status.  */
15099   if test x"$ac_file" = x-; then
15100     echo "/* Generated automatically by configure.  */" >$tmp/config.h
15101   else
15102     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
15103   fi
15104   cat $tmp/in >>$tmp/config.h
15105   rm -f $tmp/in
15106   if test x"$ac_file" != x-; then
15107     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15108       { echo "$as_me:15108: $ac_file is unchanged" >&5
15109 echo "$as_me: $ac_file is unchanged" >&6;}
15110     else
15111       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15112          X"$ac_file" : 'X\(//\)[^/]' \| \
15113          X"$ac_file" : 'X\(//\)$' \| \
15114          X"$ac_file" : 'X\(/\)' \| \
15115          .     : '\(.\)' 2>/dev/null ||
15116 echo X"$ac_file" |
15117     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15118           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15119           /^X\(\/\/\)$/{ s//\1/; q; }
15120           /^X\(\/\).*/{ s//\1/; q; }
15121           s/.*/./; q'`
15122       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15123         { case "$ac_dir" in
15124   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15125   *)                      as_incr_dir=.;;
15126 esac
15127 as_dummy="$ac_dir"
15128 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15129   case $as_mkdir_dir in
15130     # Skip DOS drivespec
15131     ?:) as_incr_dir=$as_mkdir_dir ;;
15132     *)
15133       as_incr_dir=$as_incr_dir/$as_mkdir_dir
15134       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
15135     ;;
15136   esac
15137 done; }
15138
15139       fi
15140       rm -f $ac_file
15141       mv $tmp/config.h $ac_file
15142     fi
15143   else
15144     cat $tmp/config.h
15145     rm -f $tmp/config.h
15146   fi
15147 done
15148 EOF
15149 cat >>$CONFIG_STATUS <<\EOF
15150
15151 #
15152 # CONFIG_COMMANDS section.
15153 #
15154 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15155   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15156   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15157
15158   case $ac_dest in
15159     default )
15160 # Makefile uses this timestamp file to record whether config.h is up to date.
15161 echo timestamp > stamp-h
15162  ;;
15163   esac
15164 done
15165 EOF
15166
15167 cat >>$CONFIG_STATUS <<\EOF
15168
15169 { (exit 0); exit 0; }
15170 EOF
15171 chmod +x $CONFIG_STATUS
15172 ac_clean_files=$ac_clean_files_save
15173
15174 # configure is writing to config.log, and then calls config.status.
15175 # config.status does its own redirection, appending to config.log.
15176 # Unfortunately, on DOS this fails, as config.log is still kept open
15177 # by configure, so config.status won't be able to write to it; its
15178 # output is simply discarded.  So we exec the FD to /dev/null,
15179 # effectively closing config.log, so it can be properly (re)opened and
15180 # appended to by config.status.  When coming back to configure, we
15181 # need to make the FD available again.
15182 if test "$no_create" != yes; then
15183   ac_cs_success=:
15184   exec 5>/dev/null
15185   $SHELL $CONFIG_STATUS || ac_cs_success=false
15186   exec 5>>config.log
15187   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15188   # would make configure fail if this is the last instruction.
15189   $ac_cs_success || { (exit 1); exit 1; }
15190 fi
15191