Imported from ../bash-3.1.tar.gz.
[platform/upstream/bash.git] / configure
1 #! /bin/sh
2 # From configure.in for Bash 3.1, version 3.183.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53 for bash 3.1-release.
5 #
6 # Report bugs to <bug-bash@gnu.org>.
7 #
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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 if expr a : '\(a\)' >/dev/null 2>&1; then
14   as_expr=expr
15 else
16   as_expr=false
17 fi
18
19
20 ## --------------------- ##
21 ## M4sh Initialization.  ##
22 ## --------------------- ##
23
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26   emulate sh
27   NULLCMD=:
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29   set -o posix
30 fi
31
32 # NLS nuisances.
33 # Support unset when possible.
34 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35   as_unset=unset
36 else
37   as_unset=false
38 fi
39
40 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
41     { $as_unset LANG || test "${LANG+set}" != set; } ||
42       { LANG=C; export LANG; }
43 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
44     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
45       { LC_ALL=C; export LC_ALL; }
46 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
47     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
48       { LC_TIME=C; export LC_TIME; }
49 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
50     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
51       { LC_CTYPE=C; export LC_CTYPE; }
52 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
53     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
54       { LANGUAGE=C; export LANGUAGE; }
55 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
56     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
57       { LC_COLLATE=C; export LC_COLLATE; }
58 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
59     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
60       { LC_NUMERIC=C; export LC_NUMERIC; }
61 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
62     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
63       { LC_MESSAGES=C; export LC_MESSAGES; }
64
65
66 # Name of the executable.
67 as_me=`(basename "$0") 2>/dev/null ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conftest.sh
89   echo  "exit 0"   >>conftest.sh
90   chmod +x conftest.sh
91   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conftest.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              CONFIG_SHELL=$as_dir/$as_base
145              export CONFIG_SHELL
146              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
147            fi;;
148          esac
149        done
150 done
151 ;;
152   esac
153
154   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
155   # uniformly replaced by the line number.  The first 'sed' inserts a
156   # line-number line before each line; the second 'sed' does the real
157   # work.  The second script uses 'N' to pair each line-number line
158   # with the numbered line, and appends trailing '-' during
159   # substitution so that $LINENO is not a special case at line end.
160   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
161   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
162   sed '=' <$as_myself |
163     sed '
164       N
165       s,$,-,
166       : loop
167       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
168       t loop
169       s,-$,,
170       s,^['$as_cr_digits']*\n,,
171     ' >$as_me.lineno &&
172   chmod +x $as_me.lineno ||
173     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
174    { (exit 1); exit 1; }; }
175
176   # Don't try to exec as it changes $[0], causing all sort of problems
177   # (the dirname of $[0] is not the place where we might find the
178   # original and so on.  Autoconf is especially sensible to this).
179   . ./$as_me.lineno
180   # Exit status is that of the last command.
181   exit
182 }
183
184
185 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
186   *c*,-n*) ECHO_N= ECHO_C='
187 ' ECHO_T='      ' ;;
188   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
189   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
190 esac
191
192 if expr a : '\(a\)' >/dev/null 2>&1; then
193   as_expr=expr
194 else
195   as_expr=false
196 fi
197
198 rm -f conf$$ conf$$.exe conf$$.file
199 echo >conf$$.file
200 if ln -s conf$$.file conf$$ 2>/dev/null; then
201   # We could just check for DJGPP; but this test a) works b) is more generic
202   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
203   if test -f conf$$.exe; then
204     # Don't use ln at all; we don't have any links
205     as_ln_s='cp -p'
206   else
207     as_ln_s='ln -s'
208   fi
209 elif ln conf$$.file conf$$ 2>/dev/null; then
210   as_ln_s=ln
211 else
212   as_ln_s='cp -p'
213 fi
214 rm -f conf$$ conf$$.exe conf$$.file
215
216 as_executable_p="test -f"
217
218 # Sed expression to map a string onto a valid CPP name.
219 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
220
221 # Sed expression to map a string onto a valid variable name.
222 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223
224
225 # IFS
226 # We need space, tab and new line, in precisely that order.
227 as_nl='
228 '
229 IFS="   $as_nl"
230
231 # CDPATH.
232 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233
234
235 # Name of the host.
236 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
237 # so uname gets run too.
238 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
239
240 exec 6>&1
241
242 #
243 # Initializations.
244 #
245 ac_default_prefix=/usr/local
246 cross_compiling=no
247 subdirs=
248 MFLAGS=
249 MAKEFLAGS=
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 # Maximum number of lines to put in a shell here document.
253 # This variable seems obsolete.  It should probably be removed, and
254 # only ac_max_sed_lines should be used.
255 : ${ac_max_here_lines=38}
256
257 # Identity of this package.
258 PACKAGE_NAME='bash'
259 PACKAGE_TARNAME='bash'
260 PACKAGE_VERSION='3.1-release'
261 PACKAGE_STRING='bash 3.1-release'
262 PACKAGE_BUGREPORT='bug-bash@gnu.org'
263
264 ac_unique_file="shell.h"
265 # Factoring default headers for most tests.
266 ac_includes_default="\
267 #include <stdio.h>
268 #if HAVE_SYS_TYPES_H
269 # include <sys/types.h>
270 #endif
271 #if HAVE_SYS_STAT_H
272 # include <sys/stat.h>
273 #endif
274 #if STDC_HEADERS
275 # include <stdlib.h>
276 # include <stddef.h>
277 #else
278 # if HAVE_STDLIB_H
279 #  include <stdlib.h>
280 # endif
281 #endif
282 #if HAVE_STRING_H
283 # if !STDC_HEADERS && HAVE_MEMORY_H
284 #  include <memory.h>
285 # endif
286 # include <string.h>
287 #endif
288 #if HAVE_STRINGS_H
289 # include <strings.h>
290 #endif
291 #if HAVE_INTTYPES_H
292 # include <inttypes.h>
293 #else
294 # if HAVE_STDINT_H
295 #  include <stdint.h>
296 # endif
297 #endif
298 #if HAVE_UNISTD_H
299 # include <unistd.h>
300 #endif"
301
302
303 # Initialize some variables set by options.
304 ac_init_help=
305 ac_init_version=false
306 # The variables have the same names as the options, with
307 # dashes changed to underlines.
308 cache_file=/dev/null
309 exec_prefix=NONE
310 no_create=
311 no_recursion=
312 prefix=NONE
313 program_prefix=NONE
314 program_suffix=NONE
315 program_transform_name=s,x,x,
316 silent=
317 site=
318 srcdir=
319 verbose=
320 x_includes=NONE
321 x_libraries=NONE
322
323 # Installation directory options.
324 # These are left unexpanded so users can "make install exec_prefix=/foo"
325 # and all the variables that are supposed to be based on exec_prefix
326 # by default will actually change.
327 # Use braces instead of parens because sh, perl, etc. also accept them.
328 bindir='${exec_prefix}/bin'
329 sbindir='${exec_prefix}/sbin'
330 libexecdir='${exec_prefix}/libexec'
331 datadir='${prefix}/share'
332 sysconfdir='${prefix}/etc'
333 sharedstatedir='${prefix}/com'
334 localstatedir='${prefix}/var'
335 libdir='${exec_prefix}/lib'
336 includedir='${prefix}/include'
337 oldincludedir='/usr/include'
338 infodir='${prefix}/info'
339 mandir='${prefix}/man'
340
341 ac_prev=
342 for ac_option
343 do
344   # If the previous option needs an argument, assign it.
345   if test -n "$ac_prev"; then
346     eval "$ac_prev=\$ac_option"
347     ac_prev=
348     continue
349   fi
350
351   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
352
353   # Accept the important Cygnus configure options, so we can diagnose typos.
354
355   case $ac_option in
356
357   -bindir | --bindir | --bindi | --bind | --bin | --bi)
358     ac_prev=bindir ;;
359   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
360     bindir=$ac_optarg ;;
361
362   -build | --build | --buil | --bui | --bu)
363     ac_prev=build_alias ;;
364   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
365     build_alias=$ac_optarg ;;
366
367   -cache-file | --cache-file | --cache-fil | --cache-fi \
368   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
369     ac_prev=cache_file ;;
370   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
371   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
372     cache_file=$ac_optarg ;;
373
374   --config-cache | -C)
375     cache_file=config.cache ;;
376
377   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
378     ac_prev=datadir ;;
379   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
380   | --da=*)
381     datadir=$ac_optarg ;;
382
383   -disable-* | --disable-*)
384     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
385     # Reject names that are not valid shell variable names.
386     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
387       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
388    { (exit 1); exit 1; }; }
389     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
390     eval "enable_$ac_feature=no" ;;
391
392   -enable-* | --enable-*)
393     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
394     # Reject names that are not valid shell variable names.
395     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
396       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397    { (exit 1); exit 1; }; }
398     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399     case $ac_option in
400       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
401       *) ac_optarg=yes ;;
402     esac
403     eval "enable_$ac_feature='$ac_optarg'" ;;
404
405   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
406   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
407   | --exec | --exe | --ex)
408     ac_prev=exec_prefix ;;
409   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
410   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
411   | --exec=* | --exe=* | --ex=*)
412     exec_prefix=$ac_optarg ;;
413
414   -gas | --gas | --ga | --g)
415     # Obsolete; use --with-gas.
416     with_gas=yes ;;
417
418   -help | --help | --hel | --he | -h)
419     ac_init_help=long ;;
420   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
421     ac_init_help=recursive ;;
422   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
423     ac_init_help=short ;;
424
425   -host | --host | --hos | --ho)
426     ac_prev=host_alias ;;
427   -host=* | --host=* | --hos=* | --ho=*)
428     host_alias=$ac_optarg ;;
429
430   -includedir | --includedir | --includedi | --included | --include \
431   | --includ | --inclu | --incl | --inc)
432     ac_prev=includedir ;;
433   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
434   | --includ=* | --inclu=* | --incl=* | --inc=*)
435     includedir=$ac_optarg ;;
436
437   -infodir | --infodir | --infodi | --infod | --info | --inf)
438     ac_prev=infodir ;;
439   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
440     infodir=$ac_optarg ;;
441
442   -libdir | --libdir | --libdi | --libd)
443     ac_prev=libdir ;;
444   -libdir=* | --libdir=* | --libdi=* | --libd=*)
445     libdir=$ac_optarg ;;
446
447   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
448   | --libexe | --libex | --libe)
449     ac_prev=libexecdir ;;
450   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
451   | --libexe=* | --libex=* | --libe=*)
452     libexecdir=$ac_optarg ;;
453
454   -localstatedir | --localstatedir | --localstatedi | --localstated \
455   | --localstate | --localstat | --localsta | --localst \
456   | --locals | --local | --loca | --loc | --lo)
457     ac_prev=localstatedir ;;
458   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
459   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
460   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
461     localstatedir=$ac_optarg ;;
462
463   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
464     ac_prev=mandir ;;
465   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466     mandir=$ac_optarg ;;
467
468   -nfp | --nfp | --nf)
469     # Obsolete; use --without-fp.
470     with_fp=no ;;
471
472   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
473   | --no-cr | --no-c | -n)
474     no_create=yes ;;
475
476   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
477   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
478     no_recursion=yes ;;
479
480   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
481   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
482   | --oldin | --oldi | --old | --ol | --o)
483     ac_prev=oldincludedir ;;
484   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
485   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
486   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
487     oldincludedir=$ac_optarg ;;
488
489   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
490     ac_prev=prefix ;;
491   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
492     prefix=$ac_optarg ;;
493
494   -program-prefix | --program-prefix | --program-prefi | --program-pref \
495   | --program-pre | --program-pr | --program-p)
496     ac_prev=program_prefix ;;
497   -program-prefix=* | --program-prefix=* | --program-prefi=* \
498   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
499     program_prefix=$ac_optarg ;;
500
501   -program-suffix | --program-suffix | --program-suffi | --program-suff \
502   | --program-suf | --program-su | --program-s)
503     ac_prev=program_suffix ;;
504   -program-suffix=* | --program-suffix=* | --program-suffi=* \
505   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
506     program_suffix=$ac_optarg ;;
507
508   -program-transform-name | --program-transform-name \
509   | --program-transform-nam | --program-transform-na \
510   | --program-transform-n | --program-transform- \
511   | --program-transform | --program-transfor \
512   | --program-transfo | --program-transf \
513   | --program-trans | --program-tran \
514   | --progr-tra | --program-tr | --program-t)
515     ac_prev=program_transform_name ;;
516   -program-transform-name=* | --program-transform-name=* \
517   | --program-transform-nam=* | --program-transform-na=* \
518   | --program-transform-n=* | --program-transform-=* \
519   | --program-transform=* | --program-transfor=* \
520   | --program-transfo=* | --program-transf=* \
521   | --program-trans=* | --program-tran=* \
522   | --progr-tra=* | --program-tr=* | --program-t=*)
523     program_transform_name=$ac_optarg ;;
524
525   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
526   | -silent | --silent | --silen | --sile | --sil)
527     silent=yes ;;
528
529   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
530     ac_prev=sbindir ;;
531   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
532   | --sbi=* | --sb=*)
533     sbindir=$ac_optarg ;;
534
535   -sharedstatedir | --sharedstatedir | --sharedstatedi \
536   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
537   | --sharedst | --shareds | --shared | --share | --shar \
538   | --sha | --sh)
539     ac_prev=sharedstatedir ;;
540   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
541   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
542   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
543   | --sha=* | --sh=*)
544     sharedstatedir=$ac_optarg ;;
545
546   -site | --site | --sit)
547     ac_prev=site ;;
548   -site=* | --site=* | --sit=*)
549     site=$ac_optarg ;;
550
551   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
552     ac_prev=srcdir ;;
553   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
554     srcdir=$ac_optarg ;;
555
556   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
557   | --syscon | --sysco | --sysc | --sys | --sy)
558     ac_prev=sysconfdir ;;
559   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
560   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
561     sysconfdir=$ac_optarg ;;
562
563   -target | --target | --targe | --targ | --tar | --ta | --t)
564     ac_prev=target_alias ;;
565   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
566     target_alias=$ac_optarg ;;
567
568   -v | -verbose | --verbose | --verbos | --verbo | --verb)
569     verbose=yes ;;
570
571   -version | --version | --versio | --versi | --vers | -V)
572     ac_init_version=: ;;
573
574   -with-* | --with-*)
575     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
576     # Reject names that are not valid shell variable names.
577     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
578       { echo "$as_me: error: invalid package name: $ac_package" >&2
579    { (exit 1); exit 1; }; }
580     ac_package=`echo $ac_package| sed 's/-/_/g'`
581     case $ac_option in
582       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583       *) ac_optarg=yes ;;
584     esac
585     eval "with_$ac_package='$ac_optarg'" ;;
586
587   -without-* | --without-*)
588     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package | sed 's/-/_/g'`
594     eval "with_$ac_package=no" ;;
595
596   --x)
597     # Obsolete; use --with-x.
598     with_x=yes ;;
599
600   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
601   | --x-incl | --x-inc | --x-in | --x-i)
602     ac_prev=x_includes ;;
603   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
604   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
605     x_includes=$ac_optarg ;;
606
607   -x-libraries | --x-libraries | --x-librarie | --x-librari \
608   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
609     ac_prev=x_libraries ;;
610   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
611   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
612     x_libraries=$ac_optarg ;;
613
614   -*) { echo "$as_me: error: unrecognized option: $ac_option
615 Try \`$0 --help' for more information." >&2
616    { (exit 1); exit 1; }; }
617     ;;
618
619   *=*)
620     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
621     # Reject names that are not valid shell variable names.
622     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
623       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
624    { (exit 1); exit 1; }; }
625     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
626     eval "$ac_envvar='$ac_optarg'"
627     export $ac_envvar ;;
628
629   *)
630     # FIXME: should be removed in autoconf 3.0.
631     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
632     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
633       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
634     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
635     ;;
636
637   esac
638 done
639
640 if test -n "$ac_prev"; then
641   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
642   { echo "$as_me: error: missing argument to $ac_option" >&2
643    { (exit 1); exit 1; }; }
644 fi
645
646 # Be sure to have absolute paths.
647 for ac_var in exec_prefix prefix
648 do
649   eval ac_val=$`echo $ac_var`
650   case $ac_val in
651     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
652     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
653    { (exit 1); exit 1; }; };;
654   esac
655 done
656
657 # Be sure to have absolute paths.
658 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
659               localstatedir libdir includedir oldincludedir infodir mandir
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # There might be people who depend on the old broken behavior: `$host'
670 # used to hold the argument of --host etc.
671 # FIXME: To remove some day.
672 build=$build_alias
673 host=$host_alias
674 target=$target_alias
675
676 # FIXME: To remove some day.
677 if test "x$host_alias" != x; then
678   if test "x$build_alias" = x; then
679     cross_compiling=maybe
680     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
681     If a cross compiler is detected then cross compile mode will be used." >&2
682   elif test "x$build_alias" != "x$host_alias"; then
683     cross_compiling=yes
684   fi
685 fi
686
687 ac_tool_prefix=
688 test -n "$host_alias" && ac_tool_prefix=$host_alias-
689
690 test "$silent" = yes && exec 6>/dev/null
691
692
693 # Find the source files, if location was not specified.
694 if test -z "$srcdir"; then
695   ac_srcdir_defaulted=yes
696   # Try the directory containing this script, then its parent.
697   ac_confdir=`(dirname "$0") 2>/dev/null ||
698 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
699          X"$0" : 'X\(//\)[^/]' \| \
700          X"$0" : 'X\(//\)$' \| \
701          X"$0" : 'X\(/\)' \| \
702          .     : '\(.\)' 2>/dev/null ||
703 echo X"$0" |
704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
705           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
706           /^X\(\/\/\)$/{ s//\1/; q; }
707           /^X\(\/\).*/{ s//\1/; q; }
708           s/.*/./; q'`
709   srcdir=$ac_confdir
710   if test ! -r $srcdir/$ac_unique_file; then
711     srcdir=..
712   fi
713 else
714   ac_srcdir_defaulted=no
715 fi
716 if test ! -r $srcdir/$ac_unique_file; then
717   if test "$ac_srcdir_defaulted" = yes; then
718     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
719    { (exit 1); exit 1; }; }
720   else
721     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
722    { (exit 1); exit 1; }; }
723   fi
724 fi
725 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
726 ac_env_build_alias_set=${build_alias+set}
727 ac_env_build_alias_value=$build_alias
728 ac_cv_env_build_alias_set=${build_alias+set}
729 ac_cv_env_build_alias_value=$build_alias
730 ac_env_host_alias_set=${host_alias+set}
731 ac_env_host_alias_value=$host_alias
732 ac_cv_env_host_alias_set=${host_alias+set}
733 ac_cv_env_host_alias_value=$host_alias
734 ac_env_target_alias_set=${target_alias+set}
735 ac_env_target_alias_value=$target_alias
736 ac_cv_env_target_alias_set=${target_alias+set}
737 ac_cv_env_target_alias_value=$target_alias
738 ac_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
739 ac_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
740 ac_cv_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
741 ac_cv_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
742 ac_env_CC_set=${CC+set}
743 ac_env_CC_value=$CC
744 ac_cv_env_CC_set=${CC+set}
745 ac_cv_env_CC_value=$CC
746 ac_env_CFLAGS_set=${CFLAGS+set}
747 ac_env_CFLAGS_value=$CFLAGS
748 ac_cv_env_CFLAGS_set=${CFLAGS+set}
749 ac_cv_env_CFLAGS_value=$CFLAGS
750 ac_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_env_LDFLAGS_value=$LDFLAGS
752 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
753 ac_cv_env_LDFLAGS_value=$LDFLAGS
754 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_env_CPPFLAGS_value=$CPPFLAGS
756 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
757 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
758 ac_env_CPP_set=${CPP+set}
759 ac_env_CPP_value=$CPP
760 ac_cv_env_CPP_set=${CPP+set}
761 ac_cv_env_CPP_value=$CPP
762
763 #
764 # Report the --help message.
765 #
766 if test "$ac_init_help" = "long"; then
767   # Omit some internal or obsolete options to make the list less imposing.
768   # This message is too long to be a string in the A/UX 3.1 sh.
769   cat <<_ACEOF
770 \`configure' configures bash 3.1-release to adapt to many kinds of systems.
771
772 Usage: $0 [OPTION]... [VAR=VALUE]...
773
774 To assign environment variables (e.g., CC, CFLAGS...), specify them as
775 VAR=VALUE.  See below for descriptions of some of the useful variables.
776
777 Defaults for the options are specified in brackets.
778
779 Configuration:
780   -h, --help              display this help and exit
781       --help=short        display options specific to this package
782       --help=recursive    display the short help of all the included packages
783   -V, --version           display version information and exit
784   -q, --quiet, --silent   do not print \`checking...' messages
785       --cache-file=FILE   cache test results in FILE [disabled]
786   -C, --config-cache      alias for \`--cache-file=config.cache'
787   -n, --no-create         do not create output files
788       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
789
790 _ACEOF
791
792   cat <<_ACEOF
793 Installation directories:
794   --prefix=PREFIX         install architecture-independent files in PREFIX
795                           [$ac_default_prefix]
796   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
797                           [PREFIX]
798
799 By default, \`make install' will install all the files in
800 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
801 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
802 for instance \`--prefix=\$HOME'.
803
804 For better control, use the options below.
805
806 Fine tuning of the installation directories:
807   --bindir=DIR           user executables [EPREFIX/bin]
808   --sbindir=DIR          system admin executables [EPREFIX/sbin]
809   --libexecdir=DIR       program executables [EPREFIX/libexec]
810   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
811   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
812   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
813   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
814   --libdir=DIR           object code libraries [EPREFIX/lib]
815   --includedir=DIR       C header files [PREFIX/include]
816   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
817   --infodir=DIR          info documentation [PREFIX/info]
818   --mandir=DIR           man documentation [PREFIX/man]
819 _ACEOF
820
821   cat <<\_ACEOF
822
823 System types:
824   --build=BUILD     configure for building on BUILD [guessed]
825   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
826 _ACEOF
827 fi
828
829 if test -n "$ac_init_help"; then
830   case $ac_init_help in
831      short | recursive ) echo "Configuration of bash 3.1-release:";;
832    esac
833   cat <<\_ACEOF
834
835 Optional Features:
836   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
837   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
838   --enable-minimal-config a minimal sh-like configuration
839   --enable-alias          enable shell aliases
840   --enable-arith-for-command
841                           enable arithmetic for command
842   --enable-array-variables
843                           include shell array variables
844   --enable-bang-history   turn on csh-style history substitution
845   --enable-brace-expansion
846                           include brace expansion
847   --enable-command-timing enable the time reserved word and command timing
848   --enable-cond-command   enable the conditional command
849   --enable-cond-regexp    enable extgended regular expression matching in
850                           conditional commands
851   --enable-debugger       enable support for bash debugger
852   --enable-directory-stack
853                           enable builtins pushd/popd/dirs
854   --enable-disabled-builtins
855                           allow disabled builtins to still be invoked
856   --enable-dparen-arithmetic
857                           include ((...)) command
858   --enable-extended-glob  include ksh-style extended pattern matching
859   --enable-help-builtin   include the help builtin
860   --enable-history        turn on command history
861   --enable-job-control    enable job control features
862   --enable-multibyte      enable multibyte characters if OS supports them
863   --enable-net-redirections
864                           enable /dev/tcp/host/port redirection
865   --enable-process-substitution
866                           enable process substitution
867   --enable-progcomp       enable programmable completion and the complete
868                           builtin
869   --enable-prompt-string-decoding
870                           turn on escape character decoding in prompts
871   --enable-readline       turn on command line editing
872   --enable-restricted     enable a restricted shell
873   --enable-select         include select command
874   --enable-separate-helpfiles
875                           use external files for help builtin documentation
876   --enable-single-help-strings
877                           store help documentation as a single string to ease
878                           translation
879   --enable-strict-posix-default
880                           configure bash to be posix-conformant by default
881   --enable-usg-echo-default
882                           a synonym for --enable-xpg-echo-default
883   --enable-xpg-echo-default
884                           make the echo builtin expand escape sequences by
885                           default
886   --enable-mem-scramble   scramble memory on calls to malloc and free
887   --enable-profiling      allow profiling with gprof
888   --enable-static-link    link bash statically, for use as a root shell
889   --disable-largefile     omit support for large files
890   --disable-nls           do not use Native Language Support
891   --disable-rpath         do not hardcode runtime library paths
892
893 Optional Packages:
894   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
895   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
896   --with-lispdir          override the default lisp directory
897   --with-afs              if you are running AFS
898   --with-bash-malloc      use the Bash version of malloc
899   --with-curses           use the curses library instead of the termcap
900                           library
901   --with-gnu-malloc       synonym for --with-bash-malloc
902   --with-installed-readline
903                           use a version of the readline library that is
904                           already installed
905   --with-purecov          configure to postprocess with pure coverage
906   --with-purify           configure to postprocess with purify
907   --with-gnu-ld           assume the C compiler uses GNU ld default=no
908   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
909   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
910   --with-included-gettext use the GNU gettext library included here
911   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
912   --without-libintl-prefix     don't search for libintl in includedir and libdir
913
914 Some influential environment variables:
915   DEBUGGER_START_FILE
916               location of bash debugger initialization file
917   CC          C compiler command
918   CFLAGS      C compiler flags
919   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
920               nonstandard directory <lib dir>
921   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
922               headers in a nonstandard directory <include dir>
923   CPP         C preprocessor
924
925 Use these variables to override the choices made by `configure' or to help
926 it to find libraries and programs with nonstandard names/locations.
927
928 Report bugs to <bug-bash@gnu.org>.
929 _ACEOF
930 fi
931
932 if test "$ac_init_help" = "recursive"; then
933   # If there are subdirs, report their specific --help.
934   ac_popdir=`pwd`
935   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936     test -d $ac_dir || continue
937     ac_builddir=.
938
939 if test "$ac_dir" != .; then
940   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941   # A "../" for each directory in $ac_dir_suffix.
942   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 else
944   ac_dir_suffix= ac_top_builddir=
945 fi
946
947 case $srcdir in
948   .)  # No --srcdir option.  We are building in place.
949     ac_srcdir=.
950     if test -z "$ac_top_builddir"; then
951        ac_top_srcdir=.
952     else
953        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954     fi ;;
955   [\\/]* | ?:[\\/]* )  # Absolute path.
956     ac_srcdir=$srcdir$ac_dir_suffix;
957     ac_top_srcdir=$srcdir ;;
958   *) # Relative path.
959     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960     ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 esac
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 # absolute.
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd $ac_popdir
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991 bash configure 3.1-release
992 generated by GNU Autoconf 2.53
993
994 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
995 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
998 _ACEOF
999   exit 0
1000 fi
1001 exec 5>config.log
1002 cat >&5 <<_ACEOF
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1005
1006 It was created by bash $as_me 3.1-release, which was
1007 generated by GNU Autoconf 2.53.  Invocation command line was
1008
1009   $ $0 $@
1010
1011 _ACEOF
1012 {
1013 cat <<_ASUNAME
1014 ## --------- ##
1015 ## Platform. ##
1016 ## --------- ##
1017
1018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023
1024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1026
1027 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1028 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1031 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1032 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1033 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1034
1035 _ASUNAME
1036
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 for as_dir in $PATH
1039 do
1040   IFS=$as_save_IFS
1041   test -z "$as_dir" && as_dir=.
1042   echo "PATH: $as_dir"
1043 done
1044
1045 } >&5
1046
1047 cat >&5 <<_ACEOF
1048
1049
1050 ## ----------- ##
1051 ## Core tests. ##
1052 ## ----------- ##
1053
1054 _ACEOF
1055
1056
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Also quote any args containing shell meta-characters.
1060 ac_configure_args=
1061 ac_sep=
1062 for ac_arg
1063 do
1064   case $ac_arg in
1065   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066   | --no-cr | --no-c | -n ) continue ;;
1067   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069     continue ;;
1070   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072   esac
1073   case " $ac_configure_args " in
1074     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1075     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1076        ac_sep=" " ;;
1077   esac
1078   # Get rid of the leading space.
1079 done
1080
1081 # When interrupted or exit'd, cleanup temporary files, and complete
1082 # config.log.  We remove comments because anyway the quotes in there
1083 # would cause problems or look ugly.
1084 # WARNING: Be sure not to use single quotes in there, as some shells,
1085 # such as our DU 5.0 friend, will then `close' the trap.
1086 trap 'exit_status=$?
1087   # Save into config.log some information that might help in debugging.
1088   {
1089     echo
1090     cat <<\_ASBOX
1091 ## ---------------- ##
1092 ## Cache variables. ##
1093 ## ---------------- ##
1094 _ASBOX
1095     echo
1096     # The following way of writing the cache mishandles newlines in values,
1097 {
1098   (set) 2>&1 |
1099     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1100     *ac_space=\ *)
1101       sed -n \
1102         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1103           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1104       ;;
1105     *)
1106       sed -n \
1107         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108       ;;
1109     esac;
1110 }
1111     echo
1112     if test -s confdefs.h; then
1113       cat <<\_ASBOX
1114 ## ----------- ##
1115 ## confdefs.h. ##
1116 ## ----------- ##
1117 _ASBOX
1118       echo
1119       sed "/^$/d" confdefs.h
1120       echo
1121     fi
1122     test "$ac_signal" != 0 &&
1123       echo "$as_me: caught signal $ac_signal"
1124     echo "$as_me: exit $exit_status"
1125   } >&5
1126   rm -f core core.* *.core &&
1127   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128     exit $exit_status
1129      ' 0
1130 for ac_signal in 1 2 13 15; do
1131   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132 done
1133 ac_signal=0
1134
1135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 rm -rf conftest* confdefs.h
1137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138 echo >confdefs.h
1139
1140 # Predefined preprocessor variables.
1141
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_NAME "$PACKAGE_NAME"
1144 _ACEOF
1145
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_STRING "$PACKAGE_STRING"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164 _ACEOF
1165
1166
1167 # Let the site file select an alternate cache file if it wants to.
1168 # Prefer explicitly selected file to automatically selected ones.
1169 if test -z "$CONFIG_SITE"; then
1170   if test "x$prefix" != xNONE; then
1171     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1172   else
1173     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1174   fi
1175 fi
1176 for ac_site_file in $CONFIG_SITE; do
1177   if test -r "$ac_site_file"; then
1178     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1179 echo "$as_me: loading site script $ac_site_file" >&6;}
1180     sed 's/^/| /' "$ac_site_file" >&5
1181     . "$ac_site_file"
1182   fi
1183 done
1184
1185 if test -r "$cache_file"; then
1186   # Some versions of bash will fail to source /dev/null (special
1187   # files actually), so we avoid doing that.
1188   if test -f "$cache_file"; then
1189     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1190 echo "$as_me: loading cache $cache_file" >&6;}
1191     case $cache_file in
1192       [\\/]* | ?:[\\/]* ) . $cache_file;;
1193       *)                      . ./$cache_file;;
1194     esac
1195   fi
1196 else
1197   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1198 echo "$as_me: creating cache $cache_file" >&6;}
1199   >$cache_file
1200 fi
1201
1202 # Check that the precious variables saved in the cache have kept the same
1203 # value.
1204 ac_cache_corrupted=false
1205 for ac_var in `(set) 2>&1 |
1206                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208   eval ac_new_set=\$ac_env_${ac_var}_set
1209   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210   eval ac_new_val="\$ac_env_${ac_var}_value"
1211   case $ac_old_set,$ac_new_set in
1212     set,)
1213       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215       ac_cache_corrupted=: ;;
1216     ,set)
1217       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219       ac_cache_corrupted=: ;;
1220     ,);;
1221     *)
1222       if test "x$ac_old_val" != "x$ac_new_val"; then
1223         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1226 echo "$as_me:   former value:  $ac_old_val" >&2;}
1227         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1228 echo "$as_me:   current value: $ac_new_val" >&2;}
1229         ac_cache_corrupted=:
1230       fi;;
1231   esac
1232   # Pass precious variables to config.status.
1233   if test "$ac_new_set" = set; then
1234     case $ac_new_val in
1235     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237     *) ac_arg=$ac_var=$ac_new_val ;;
1238     esac
1239     case " $ac_configure_args " in
1240       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1241       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242     esac
1243   fi
1244 done
1245 if $ac_cache_corrupted; then
1246   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1247 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250    { (exit 1); exit 1; }; }
1251 fi
1252
1253 ac_ext=c
1254 ac_cpp='$CPP $CPPFLAGS'
1255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288 ac_aux_dir=
1289 for ac_dir in ./support $srcdir/./support; do
1290   if test -f $ac_dir/install-sh; then
1291     ac_aux_dir=$ac_dir
1292     ac_install_sh="$ac_aux_dir/install-sh -c"
1293     break
1294   elif test -f $ac_dir/install.sh; then
1295     ac_aux_dir=$ac_dir
1296     ac_install_sh="$ac_aux_dir/install.sh -c"
1297     break
1298   elif test -f $ac_dir/shtool; then
1299     ac_aux_dir=$ac_dir
1300     ac_install_sh="$ac_aux_dir/shtool install -c"
1301     break
1302   fi
1303 done
1304 if test -z "$ac_aux_dir"; then
1305   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1306 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1307    { (exit 1); exit 1; }; }
1308 fi
1309 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1310 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1311 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1312
1313 ac_config_headers="$ac_config_headers config.h"
1314
1315
1316 BASHVERS=3.1
1317 RELSTATUS=release
1318
1319 case "$RELSTATUS" in
1320 alp*|bet*|dev*|rc*)     DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1321 *)      DEBUG= MALLOC_DEBUG= ;;
1322 esac
1323
1324 # Make sure we can run config.sub.
1325 $ac_config_sub sun4 >/dev/null 2>&1 ||
1326   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1327 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1328    { (exit 1); exit 1; }; }
1329
1330 echo "$as_me:$LINENO: checking build system type" >&5
1331 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1332 if test "${ac_cv_build+set}" = set; then
1333   echo $ECHO_N "(cached) $ECHO_C" >&6
1334 else
1335   ac_cv_build_alias=$build_alias
1336 test -z "$ac_cv_build_alias" &&
1337   ac_cv_build_alias=`$ac_config_guess`
1338 test -z "$ac_cv_build_alias" &&
1339   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1340 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1341    { (exit 1); exit 1; }; }
1342 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1343   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1344 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1345    { (exit 1); exit 1; }; }
1346
1347 fi
1348 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1349 echo "${ECHO_T}$ac_cv_build" >&6
1350 build=$ac_cv_build
1351 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1352 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1353 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1354
1355
1356 echo "$as_me:$LINENO: checking host system type" >&5
1357 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1358 if test "${ac_cv_host+set}" = set; then
1359   echo $ECHO_N "(cached) $ECHO_C" >&6
1360 else
1361   ac_cv_host_alias=$host_alias
1362 test -z "$ac_cv_host_alias" &&
1363   ac_cv_host_alias=$ac_cv_build_alias
1364 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1365   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1366 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1367    { (exit 1); exit 1; }; }
1368
1369 fi
1370 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1371 echo "${ECHO_T}$ac_cv_host" >&6
1372 host=$ac_cv_host
1373 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376
1377
1378
1379 opt_bash_malloc=yes
1380 opt_purify=no
1381 opt_purecov=no
1382 opt_afs=no
1383 opt_curses=no
1384 opt_with_installed_readline=no
1385
1386 #htmldir=
1387
1388 case "${host_cpu}-${host_os}" in
1389 alpha*-*)       opt_bash_malloc=no ;;   # alpha running osf/1 or linux
1390 *[Cc]ray*-*)    opt_bash_malloc=no ;;   # Crays
1391 *-osf1*)        opt_bash_malloc=no ;;   # other osf/1 machines
1392 sparc-svr4*)    opt_bash_malloc=no ;;   # sparc SVR4, SVR4.2
1393 sparc-netbsd*)  opt_bash_malloc=no ;;   # needs 8-byte alignment
1394 mips-irix6*)    opt_bash_malloc=no ;;   # needs 8-byte alignment
1395 m68k-sysv)      opt_bash_malloc=no ;;   # fixes file descriptor leak in closedir
1396 sparc-linux*)   opt_bash_malloc=no ;;   # sparc running linux; requires ELF
1397 #*-freebsd*-gnu)        opt_bash_malloc=no ;;   # there's some undetermined problem here
1398 #*-freebsd*)    opt_bash_malloc=no ;;   # they claim it's better; I disagree
1399 *-openbsd*)     opt_bash_malloc=no ;;   # they claim it needs eight-bit alignment
1400 *-aix*)         opt_bash_malloc=no ;;   # AIX machines
1401 *-nextstep*)    opt_bash_malloc=no ;;   # NeXT machines running NeXTstep
1402 *-macos*)       opt_bash_malloc=no ;;   # Apple MacOS X
1403 *-rhapsody*)    opt_bash_malloc=no ;;   # Apple Rhapsody (MacOS X)
1404 *-darwin*)      opt_bash_malloc=no ;;   # Apple Darwin (MacOS X)
1405 *-dgux*)        opt_bash_malloc=no ;;   # DG/UX machines
1406 *-qnx*)         opt_bash_malloc=no ;;   # QNX 4.2, QNX 6.x
1407 *-machten4)     opt_bash_malloc=no ;;   # MachTen 4.x
1408 *-bsdi2.1|*-bsdi3.?)    opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1409 *-beos*)        opt_bash_malloc=no ;;   # they say it's suitable
1410 *-cygwin*)      opt_bash_malloc=no ;;   # Cygnus's CYGWIN environment
1411 *-opennt*|*-interix*)   opt_bash_malloc=no ;;   # Interix, now owned by Microsoft
1412 esac
1413
1414 # memory scrambling on free()
1415 case "${host_os}" in
1416 sco3.2v5*|sco3.2v4*)    opt_memscramble=no ;;
1417 *)                      opt_memscramble=yes ;;
1418 esac
1419
1420
1421 # Check whether --with-lispdir or --without-lispdir was given.
1422 if test "${with_lispdir+set}" = set; then
1423   withval="$with_lispdir"
1424    lispdir="$withval"
1425     echo "$as_me:$LINENO: checking where .elc files should go" >&5
1426 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1427     echo "$as_me:$LINENO: result: $lispdir" >&5
1428 echo "${ECHO_T}$lispdir" >&6
1429 else
1430
1431   # If set to t, that means we are running in a shell under Emacs.
1432   # If you have an Emacs named "t", then use the full path.
1433   test x"$EMACS" = xt && EMACS=
1434   for ac_prog in emacs xemacs
1435 do
1436   # Extract the first word of "$ac_prog", so it can be a program name with args.
1437 set dummy $ac_prog; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_EMACS+set}" = set; then
1441   echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443   if test -n "$EMACS"; then
1444   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
1449   IFS=$as_save_IFS
1450   test -z "$as_dir" && as_dir=.
1451   for ac_exec_ext in '' $ac_executable_extensions; do
1452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453     ac_cv_prog_EMACS="$ac_prog"
1454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455     break 2
1456   fi
1457 done
1458 done
1459
1460 fi
1461 fi
1462 EMACS=$ac_cv_prog_EMACS
1463 if test -n "$EMACS"; then
1464   echo "$as_me:$LINENO: result: $EMACS" >&5
1465 echo "${ECHO_T}$EMACS" >&6
1466 else
1467   echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 fi
1470
1471   test -n "$EMACS" && break
1472 done
1473 test -n "$EMACS" || EMACS="no"
1474
1475   if test $EMACS != "no"; then
1476     if test x${lispdir+set} != xset; then
1477       echo "$as_me:$LINENO: checking where .elc files should go" >&5
1478 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1479 if test "${am_cv_lispdir+set}" = set; then
1480   echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482         am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'`
1483         if test -z "$am_cv_lispdir"; then
1484           am_cv_lispdir='${datadir}/emacs/site-lisp'
1485         fi
1486
1487 fi
1488 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
1489 echo "${ECHO_T}$am_cv_lispdir" >&6
1490       lispdir="$am_cv_lispdir"
1491     fi
1492   fi
1493
1494 fi;
1495
1496
1497
1498
1499
1500 # Check whether --with-afs or --without-afs was given.
1501 if test "${with_afs+set}" = set; then
1502   withval="$with_afs"
1503   opt_afs=$withval
1504 fi;
1505
1506 # Check whether --with-bash-malloc or --without-bash-malloc was given.
1507 if test "${with_bash_malloc+set}" = set; then
1508   withval="$with_bash_malloc"
1509   opt_bash_malloc=$withval
1510 fi;
1511
1512 # Check whether --with-curses or --without-curses was given.
1513 if test "${with_curses+set}" = set; then
1514   withval="$with_curses"
1515   opt_curses=$withval
1516 fi;
1517
1518 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1519 if test "${with_gnu_malloc+set}" = set; then
1520   withval="$with_gnu_malloc"
1521   opt_bash_malloc=$withval
1522 fi;
1523
1524 # Check whether --with-installed-readline or --without-installed-readline was given.
1525 if test "${with_installed_readline+set}" = set; then
1526   withval="$with_installed_readline"
1527   opt_with_installed_readline=$withval
1528 fi;
1529
1530 # Check whether --with-purecov or --without-purecov was given.
1531 if test "${with_purecov+set}" = set; then
1532   withval="$with_purecov"
1533   opt_purecov=$withval
1534 fi;
1535
1536 # Check whether --with-purify or --without-purify was given.
1537 if test "${with_purify+set}" = set; then
1538   withval="$with_purify"
1539   opt_purify=$withval
1540 fi;
1541
1542 if test "$opt_bash_malloc" = yes; then
1543         MALLOC_TARGET=malloc
1544         MALLOC_SRC=malloc.c
1545
1546         MALLOC_LIB='-lmalloc'
1547         MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1548         MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1549         MALLOC_DEP='$(MALLOC_LIBRARY)'
1550
1551         cat >>confdefs.h <<\_ACEOF
1552 #define USING_BASH_MALLOC 1
1553 _ACEOF
1554
1555 else
1556         MALLOC_LIB=
1557         MALLOC_LIBRARY=
1558         MALLOC_LDFLAGS=
1559         MALLOC_DEP=
1560 fi
1561
1562 if test "$opt_purify" = yes; then
1563         PURIFY="purify "
1564         cat >>confdefs.h <<\_ACEOF
1565 #define DISABLE_MALLOC_WRAPPERS 1
1566 _ACEOF
1567
1568 else
1569         PURIFY=
1570 fi
1571
1572 if test "$opt_purecov" = yes; then
1573         PURIFY="${PURIFY}purecov"
1574 fi
1575
1576 if test "$opt_afs" = yes; then
1577         cat >>confdefs.h <<\_ACEOF
1578 #define AFS 1
1579 _ACEOF
1580
1581 fi
1582
1583 if test "$opt_curses" = yes; then
1584         prefer_curses=yes
1585 fi
1586
1587 if test -z "${DEBUGGER_START_FILE}"; then
1588         DEBUGGER_START_FILE=${ac_default_prefix}/lib/bashdb/bashdb-main.inc
1589 fi
1590
1591 opt_minimal_config=no
1592
1593 opt_job_control=yes
1594 opt_alias=yes
1595 opt_readline=yes
1596 opt_history=yes
1597 opt_bang_history=yes
1598 opt_dirstack=yes
1599 opt_restricted=yes
1600 opt_process_subst=yes
1601 opt_prompt_decoding=yes
1602 opt_select=yes
1603 opt_help=yes
1604 opt_array_variables=yes
1605 opt_dparen_arith=yes
1606 opt_extended_glob=yes
1607 opt_brace_expansion=yes
1608 opt_disabled_builtins=no
1609 opt_command_timing=yes
1610 opt_xpg_echo=no
1611 opt_strict_posix=no
1612 opt_cond_command=yes
1613 opt_cond_regexp=yes
1614 opt_arith_for_command=yes
1615 opt_net_redirs=yes
1616 opt_progcomp=yes
1617 opt_separate_help=no
1618 opt_multibyte=yes
1619 opt_debugger=yes
1620 opt_single_longdoc_strings=yes
1621
1622 opt_static_link=no
1623 opt_profiling=no
1624
1625 # Check whether --enable-minimal-config or --disable-minimal-config was given.
1626 if test "${enable_minimal_config+set}" = set; then
1627   enableval="$enable_minimal_config"
1628   opt_minimal_config=$enableval
1629 fi;
1630
1631 if test $opt_minimal_config = yes; then
1632         opt_job_control=no opt_alias=no opt_readline=no
1633         opt_history=no opt_bang_history=no opt_dirstack=no
1634         opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1635         opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1636         opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
1637         opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
1638         opt_net_redirs=no opt_progcomp=no opt_separate_help=no
1639         opt_multibyte=yes opt_cond_regexp=no
1640 fi
1641
1642 # Check whether --enable-alias or --disable-alias was given.
1643 if test "${enable_alias+set}" = set; then
1644   enableval="$enable_alias"
1645   opt_alias=$enableval
1646 fi;
1647 # Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1648 if test "${enable_arith_for_command+set}" = set; then
1649   enableval="$enable_arith_for_command"
1650   opt_arith_for_command=$enableval
1651 fi;
1652 # Check whether --enable-array-variables or --disable-array-variables was given.
1653 if test "${enable_array_variables+set}" = set; then
1654   enableval="$enable_array_variables"
1655   opt_array_variables=$enableval
1656 fi;
1657 # Check whether --enable-bang-history or --disable-bang-history was given.
1658 if test "${enable_bang_history+set}" = set; then
1659   enableval="$enable_bang_history"
1660   opt_bang_history=$enableval
1661 fi;
1662 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1663 if test "${enable_brace_expansion+set}" = set; then
1664   enableval="$enable_brace_expansion"
1665   opt_brace_expansion=$enableval
1666 fi;
1667 # Check whether --enable-command-timing or --disable-command-timing was given.
1668 if test "${enable_command_timing+set}" = set; then
1669   enableval="$enable_command_timing"
1670   opt_command_timing=$enableval
1671 fi;
1672 # Check whether --enable-cond-command or --disable-cond-command was given.
1673 if test "${enable_cond_command+set}" = set; then
1674   enableval="$enable_cond_command"
1675   opt_cond_command=$enableval
1676 fi;
1677 # Check whether --enable-cond-regexp or --disable-cond-regexp was given.
1678 if test "${enable_cond_regexp+set}" = set; then
1679   enableval="$enable_cond_regexp"
1680   opt_cond_regexp=$enableval
1681 fi;
1682 # Check whether --enable-debugger or --disable-debugger was given.
1683 if test "${enable_debugger+set}" = set; then
1684   enableval="$enable_debugger"
1685   opt_debugger=$enableval
1686 fi;
1687 # Check whether --enable-directory-stack or --disable-directory-stack was given.
1688 if test "${enable_directory_stack+set}" = set; then
1689   enableval="$enable_directory_stack"
1690   opt_dirstack=$enableval
1691 fi;
1692 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1693 if test "${enable_disabled_builtins+set}" = set; then
1694   enableval="$enable_disabled_builtins"
1695   opt_disabled_builtins=$enableval
1696 fi;
1697 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1698 if test "${enable_dparen_arithmetic+set}" = set; then
1699   enableval="$enable_dparen_arithmetic"
1700   opt_dparen_arith=$enableval
1701 fi;
1702 # Check whether --enable-extended-glob or --disable-extended-glob was given.
1703 if test "${enable_extended_glob+set}" = set; then
1704   enableval="$enable_extended_glob"
1705   opt_extended_glob=$enableval
1706 fi;
1707 # Check whether --enable-help-builtin or --disable-help-builtin was given.
1708 if test "${enable_help_builtin+set}" = set; then
1709   enableval="$enable_help_builtin"
1710   opt_help=$enableval
1711 fi;
1712 # Check whether --enable-history or --disable-history was given.
1713 if test "${enable_history+set}" = set; then
1714   enableval="$enable_history"
1715   opt_history=$enableval
1716 fi;
1717 # Check whether --enable-job-control or --disable-job-control was given.
1718 if test "${enable_job_control+set}" = set; then
1719   enableval="$enable_job_control"
1720   opt_job_control=$enableval
1721 fi;
1722 # Check whether --enable-multibyte or --disable-multibyte was given.
1723 if test "${enable_multibyte+set}" = set; then
1724   enableval="$enable_multibyte"
1725   opt_multibyte=$enableval
1726 fi;
1727 # Check whether --enable-net-redirections or --disable-net-redirections was given.
1728 if test "${enable_net_redirections+set}" = set; then
1729   enableval="$enable_net_redirections"
1730   opt_net_redirs=$enableval
1731 fi;
1732 # Check whether --enable-process-substitution or --disable-process-substitution was given.
1733 if test "${enable_process_substitution+set}" = set; then
1734   enableval="$enable_process_substitution"
1735   opt_process_subst=$enableval
1736 fi;
1737 # Check whether --enable-progcomp or --disable-progcomp was given.
1738 if test "${enable_progcomp+set}" = set; then
1739   enableval="$enable_progcomp"
1740   opt_progcomp=$enableval
1741 fi;
1742 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1743 if test "${enable_prompt_string_decoding+set}" = set; then
1744   enableval="$enable_prompt_string_decoding"
1745   opt_prompt_decoding=$enableval
1746 fi;
1747 # Check whether --enable-readline or --disable-readline was given.
1748 if test "${enable_readline+set}" = set; then
1749   enableval="$enable_readline"
1750   opt_readline=$enableval
1751 fi;
1752 # Check whether --enable-restricted or --disable-restricted was given.
1753 if test "${enable_restricted+set}" = set; then
1754   enableval="$enable_restricted"
1755   opt_restricted=$enableval
1756 fi;
1757 # Check whether --enable-select or --disable-select was given.
1758 if test "${enable_select+set}" = set; then
1759   enableval="$enable_select"
1760   opt_select=$enableval
1761 fi;
1762 # Check whether --enable-separate-helpfiles or --disable-separate-helpfiles was given.
1763 if test "${enable_separate_helpfiles+set}" = set; then
1764   enableval="$enable_separate_helpfiles"
1765   opt_separate_help=$enableval
1766 fi;
1767 # Check whether --enable-single-help-strings or --disable-single-help-strings was given.
1768 if test "${enable_single_help_strings+set}" = set; then
1769   enableval="$enable_single_help_strings"
1770   opt_single_longdoc_strings=$enableval
1771 fi;
1772 # Check whether --enable-strict-posix-default or --disable-strict-posix-default was given.
1773 if test "${enable_strict_posix_default+set}" = set; then
1774   enableval="$enable_strict_posix_default"
1775   opt_strict_posix=$enableval
1776 fi;
1777 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1778 if test "${enable_usg_echo_default+set}" = set; then
1779   enableval="$enable_usg_echo_default"
1780   opt_xpg_echo=$enableval
1781 fi;
1782 # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1783 if test "${enable_xpg_echo_default+set}" = set; then
1784   enableval="$enable_xpg_echo_default"
1785   opt_xpg_echo=$enableval
1786 fi;
1787
1788 # Check whether --enable-mem-scramble or --disable-mem-scramble was given.
1789 if test "${enable_mem_scramble+set}" = set; then
1790   enableval="$enable_mem_scramble"
1791   opt_memscramble=$enableval
1792 fi;
1793 # Check whether --enable-profiling or --disable-profiling was given.
1794 if test "${enable_profiling+set}" = set; then
1795   enableval="$enable_profiling"
1796   opt_profiling=$enableval
1797 fi;
1798 # Check whether --enable-static-link or --disable-static-link was given.
1799 if test "${enable_static_link+set}" = set; then
1800   enableval="$enable_static_link"
1801   opt_static_link=$enableval
1802 fi;
1803
1804
1805
1806 if test $opt_alias = yes; then
1807 cat >>confdefs.h <<\_ACEOF
1808 #define ALIAS 1
1809 _ACEOF
1810
1811 fi
1812 if test $opt_dirstack = yes; then
1813 cat >>confdefs.h <<\_ACEOF
1814 #define PUSHD_AND_POPD 1
1815 _ACEOF
1816
1817 fi
1818 if test $opt_restricted = yes; then
1819 cat >>confdefs.h <<\_ACEOF
1820 #define RESTRICTED_SHELL 1
1821 _ACEOF
1822
1823 fi
1824 if test $opt_process_subst = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define PROCESS_SUBSTITUTION 1
1827 _ACEOF
1828
1829 fi
1830 if test $opt_prompt_decoding = yes; then
1831 cat >>confdefs.h <<\_ACEOF
1832 #define PROMPT_STRING_DECODE 1
1833 _ACEOF
1834
1835 fi
1836 if test $opt_select = yes; then
1837 cat >>confdefs.h <<\_ACEOF
1838 #define SELECT_COMMAND 1
1839 _ACEOF
1840
1841 fi
1842 if test $opt_help = yes; then
1843 cat >>confdefs.h <<\_ACEOF
1844 #define HELP_BUILTIN 1
1845 _ACEOF
1846
1847 fi
1848 if test $opt_array_variables = yes; then
1849 cat >>confdefs.h <<\_ACEOF
1850 #define ARRAY_VARS 1
1851 _ACEOF
1852
1853 fi
1854 if test $opt_dparen_arith = yes; then
1855 cat >>confdefs.h <<\_ACEOF
1856 #define DPAREN_ARITHMETIC 1
1857 _ACEOF
1858
1859 fi
1860 if test $opt_brace_expansion = yes; then
1861 cat >>confdefs.h <<\_ACEOF
1862 #define BRACE_EXPANSION 1
1863 _ACEOF
1864
1865 fi
1866 if test $opt_disabled_builtins = yes; then
1867 cat >>confdefs.h <<\_ACEOF
1868 #define DISABLED_BUILTINS 1
1869 _ACEOF
1870
1871 fi
1872 if test $opt_command_timing = yes; then
1873 cat >>confdefs.h <<\_ACEOF
1874 #define COMMAND_TIMING 1
1875 _ACEOF
1876
1877 fi
1878 if test $opt_xpg_echo = yes ; then
1879 cat >>confdefs.h <<\_ACEOF
1880 #define DEFAULT_ECHO_TO_XPG 1
1881 _ACEOF
1882
1883 fi
1884 if test $opt_strict_posix = yes; then
1885 cat >>confdefs.h <<\_ACEOF
1886 #define STRICT_POSIX 1
1887 _ACEOF
1888
1889 fi
1890 if test $opt_extended_glob = yes ; then
1891 cat >>confdefs.h <<\_ACEOF
1892 #define EXTENDED_GLOB 1
1893 _ACEOF
1894
1895 fi
1896 if test $opt_cond_command = yes ; then
1897 cat >>confdefs.h <<\_ACEOF
1898 #define COND_COMMAND 1
1899 _ACEOF
1900
1901 fi
1902 if test $opt_cond_regexp = yes ; then
1903 cat >>confdefs.h <<\_ACEOF
1904 #define COND_REGEXP 1
1905 _ACEOF
1906
1907 fi
1908 if test $opt_arith_for_command = yes; then
1909 cat >>confdefs.h <<\_ACEOF
1910 #define ARITH_FOR_COMMAND 1
1911 _ACEOF
1912
1913 fi
1914 if test $opt_net_redirs = yes; then
1915 cat >>confdefs.h <<\_ACEOF
1916 #define NETWORK_REDIRECTIONS 1
1917 _ACEOF
1918
1919 fi
1920 if test $opt_progcomp = yes; then
1921 cat >>confdefs.h <<\_ACEOF
1922 #define PROGRAMMABLE_COMPLETION 1
1923 _ACEOF
1924
1925 fi
1926 if test $opt_multibyte = no; then
1927 cat >>confdefs.h <<\_ACEOF
1928 #define NO_MULTIBYTE_SUPPORT 1
1929 _ACEOF
1930
1931 fi
1932 if test $opt_debugger = yes; then
1933 cat >>confdefs.h <<\_ACEOF
1934 #define DEBUGGER 1
1935 _ACEOF
1936
1937 fi
1938
1939 if test $opt_memscramble = yes; then
1940 cat >>confdefs.h <<\_ACEOF
1941 #define MEMSCRAMBLE 1
1942 _ACEOF
1943
1944 fi
1945
1946 if test "$opt_minimal_config" = yes; then
1947         TESTSCRIPT=run-minimal
1948 else
1949         TESTSCRIPT=run-all
1950 fi
1951
1952 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
1953 if test "$opt_separate_help" != no; then
1954         if test "$opt_separate_help" = "yes" ; then
1955                 HELPDIR='${datadir}/bash'
1956         else
1957                 HELPDIR=$opt_separate_help
1958         fi
1959         HELPDIRDEFINE='-H ${HELPDIR}'
1960         HELPINSTALL='install-help'
1961 fi
1962 HELPSTRINGS=
1963 if test "$opt_single_longdoc_strings" != "yes"; then
1964         HELPSTRINGS='-S'
1965 fi
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984 echo ""
1985 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
1986 echo ""
1987
1988 ac_ext=c
1989 ac_cpp='$CPP $CPPFLAGS'
1990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1993 if test -n "$ac_tool_prefix"; then
1994   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1995 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   if test -n "$CC"; then
2002   ac_cv_prog_CC="$CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013     break 2
2014   fi
2015 done
2016 done
2017
2018 fi
2019 fi
2020 CC=$ac_cv_prog_CC
2021 if test -n "$CC"; then
2022   echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2024 else
2025   echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2027 fi
2028
2029 fi
2030 if test -z "$ac_cv_prog_CC"; then
2031   ac_ct_CC=$CC
2032   # Extract the first word of "gcc", so it can be a program name with args.
2033 set dummy gcc; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2037   echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039   if test -n "$ac_ct_CC"; then
2040   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2041 else
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045   IFS=$as_save_IFS
2046   test -z "$as_dir" && as_dir=.
2047   for ac_exec_ext in '' $ac_executable_extensions; do
2048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2049     ac_cv_prog_ac_ct_CC="gcc"
2050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051     break 2
2052   fi
2053 done
2054 done
2055
2056 fi
2057 fi
2058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2059 if test -n "$ac_ct_CC"; then
2060   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2061 echo "${ECHO_T}$ac_ct_CC" >&6
2062 else
2063   echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6
2065 fi
2066
2067   CC=$ac_ct_CC
2068 else
2069   CC="$ac_cv_prog_CC"
2070 fi
2071
2072 if test -z "$CC"; then
2073   if test -n "$ac_tool_prefix"; then
2074   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2075 set dummy ${ac_tool_prefix}cc; ac_word=$2
2076 echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079   echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081   if test -n "$CC"; then
2082   ac_cv_prog_CC="$CC" # Let the user override the test.
2083 else
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 for as_dir in $PATH
2086 do
2087   IFS=$as_save_IFS
2088   test -z "$as_dir" && as_dir=.
2089   for ac_exec_ext in '' $ac_executable_extensions; do
2090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091     ac_cv_prog_CC="${ac_tool_prefix}cc"
2092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093     break 2
2094   fi
2095 done
2096 done
2097
2098 fi
2099 fi
2100 CC=$ac_cv_prog_CC
2101 if test -n "$CC"; then
2102   echo "$as_me:$LINENO: result: $CC" >&5
2103 echo "${ECHO_T}$CC" >&6
2104 else
2105   echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6
2107 fi
2108
2109 fi
2110 if test -z "$ac_cv_prog_CC"; then
2111   ac_ct_CC=$CC
2112   # Extract the first word of "cc", so it can be a program name with args.
2113 set dummy cc; ac_word=$2
2114 echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2117   echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119   if test -n "$ac_ct_CC"; then
2120   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 else
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2124 do
2125   IFS=$as_save_IFS
2126   test -z "$as_dir" && as_dir=.
2127   for ac_exec_ext in '' $ac_executable_extensions; do
2128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129     ac_cv_prog_ac_ct_CC="cc"
2130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131     break 2
2132   fi
2133 done
2134 done
2135
2136 fi
2137 fi
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6
2142 else
2143   echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6
2145 fi
2146
2147   CC=$ac_ct_CC
2148 else
2149   CC="$ac_cv_prog_CC"
2150 fi
2151
2152 fi
2153 if test -z "$CC"; then
2154   # Extract the first word of "cc", so it can be a program name with args.
2155 set dummy cc; ac_word=$2
2156 echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158 if test "${ac_cv_prog_CC+set}" = set; then
2159   echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161   if test -n "$CC"; then
2162   ac_cv_prog_CC="$CC" # Let the user override the test.
2163 else
2164   ac_prog_rejected=no
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2167 do
2168   IFS=$as_save_IFS
2169   test -z "$as_dir" && as_dir=.
2170   for ac_exec_ext in '' $ac_executable_extensions; do
2171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2172     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2173        ac_prog_rejected=yes
2174        continue
2175      fi
2176     ac_cv_prog_CC="cc"
2177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178     break 2
2179   fi
2180 done
2181 done
2182
2183 if test $ac_prog_rejected = yes; then
2184   # We found a bogon in the path, so make sure we never use it.
2185   set dummy $ac_cv_prog_CC
2186   shift
2187   if test $# != 0; then
2188     # We chose a different compiler from the bogus one.
2189     # However, it has the same basename, so the bogon will be chosen
2190     # first if we set CC to just the basename; use the full file name.
2191     shift
2192     set dummy "$as_dir/$ac_word" ${1+"$@"}
2193     shift
2194     ac_cv_prog_CC="$@"
2195   fi
2196 fi
2197 fi
2198 fi
2199 CC=$ac_cv_prog_CC
2200 if test -n "$CC"; then
2201   echo "$as_me:$LINENO: result: $CC" >&5
2202 echo "${ECHO_T}$CC" >&6
2203 else
2204   echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2206 fi
2207
2208 fi
2209 if test -z "$CC"; then
2210   if test -n "$ac_tool_prefix"; then
2211   for ac_prog in cl
2212   do
2213     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2215 echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217 if test "${ac_cv_prog_CC+set}" = set; then
2218   echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220   if test -n "$CC"; then
2221   ac_cv_prog_CC="$CC" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2225 do
2226   IFS=$as_save_IFS
2227   test -z "$as_dir" && as_dir=.
2228   for ac_exec_ext in '' $ac_executable_extensions; do
2229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232     break 2
2233   fi
2234 done
2235 done
2236
2237 fi
2238 fi
2239 CC=$ac_cv_prog_CC
2240 if test -n "$CC"; then
2241   echo "$as_me:$LINENO: result: $CC" >&5
2242 echo "${ECHO_T}$CC" >&6
2243 else
2244   echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6
2246 fi
2247
2248     test -n "$CC" && break
2249   done
2250 fi
2251 if test -z "$CC"; then
2252   ac_ct_CC=$CC
2253   for ac_prog in cl
2254 do
2255   # Extract the first word of "$ac_prog", so it can be a program name with args.
2256 set dummy $ac_prog; ac_word=$2
2257 echo "$as_me:$LINENO: checking for $ac_word" >&5
2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2260   echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262   if test -n "$ac_ct_CC"; then
2263   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264 else
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268   IFS=$as_save_IFS
2269   test -z "$as_dir" && as_dir=.
2270   for ac_exec_ext in '' $ac_executable_extensions; do
2271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272     ac_cv_prog_ac_ct_CC="$ac_prog"
2273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274     break 2
2275   fi
2276 done
2277 done
2278
2279 fi
2280 fi
2281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282 if test -n "$ac_ct_CC"; then
2283   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284 echo "${ECHO_T}$ac_ct_CC" >&6
2285 else
2286   echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2288 fi
2289
2290   test -n "$ac_ct_CC" && break
2291 done
2292
2293   CC=$ac_ct_CC
2294 fi
2295
2296 fi
2297
2298
2299 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2300 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2301    { (exit 1); exit 1; }; }
2302
2303 # Provide some information about the compiler.
2304 echo "$as_me:$LINENO:" \
2305      "checking for C compiler version" >&5
2306 ac_compiler=`set X $ac_compile; echo $2`
2307 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2308   (eval $ac_compiler --version </dev/null >&5) 2>&5
2309   ac_status=$?
2310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311   (exit $ac_status); }
2312 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2313   (eval $ac_compiler -v </dev/null >&5) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }
2317 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2318   (eval $ac_compiler -V </dev/null >&5) 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); }
2322
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 #include "confdefs.h"
2326
2327 #ifdef F77_DUMMY_MAIN
2328 #  ifdef __cplusplus
2329      extern "C"
2330 #  endif
2331    int F77_DUMMY_MAIN() { return 1; }
2332 #endif
2333 int
2334 main ()
2335 {
2336
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 ac_clean_files_save=$ac_clean_files
2342 ac_clean_files="$ac_clean_files a.out a.exe"
2343 # Try to create an executable without -o first, disregard a.out.
2344 # It will help us diagnose broken compilers, and finding out an intuition
2345 # of exeext.
2346 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2347 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2348 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2349 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2350   (eval $ac_link_default) 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); }; then
2354   # Find the output, starting from the most likely.  This scheme is
2355 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2356 # resort.
2357
2358 # Be careful to initialize this variable, since it used to be cached.
2359 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2360 ac_cv_exeext=
2361 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2362                 ls a.out conftest 2>/dev/null;
2363                 ls a.* conftest.* 2>/dev/null`; do
2364   case $ac_file in
2365     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2366     a.out ) # We found the default executable, but exeext='' is most
2367             # certainly right.
2368             break;;
2369     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2370           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2371           export ac_cv_exeext
2372           break;;
2373     * ) break;;
2374   esac
2375 done
2376 else
2377   echo "$as_me: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2379 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2380 echo "$as_me: error: C compiler cannot create executables" >&2;}
2381    { (exit 77); exit 77; }; }
2382 fi
2383
2384 ac_exeext=$ac_cv_exeext
2385 echo "$as_me:$LINENO: result: $ac_file" >&5
2386 echo "${ECHO_T}$ac_file" >&6
2387
2388 # Check the compiler produces executables we can run.  If not, either
2389 # the compiler is broken, or we cross compile.
2390 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2391 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2392 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2393 # If not cross compiling, check that we can run a simple program.
2394 if test "$cross_compiling" != yes; then
2395   if { ac_try='./$ac_file'
2396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397   (eval $ac_try) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }; }; then
2401     cross_compiling=no
2402   else
2403     if test "$cross_compiling" = maybe; then
2404         cross_compiling=yes
2405     else
2406         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2407 If you meant to cross compile, use \`--host'." >&5
2408 echo "$as_me: error: cannot run C compiled programs.
2409 If you meant to cross compile, use \`--host'." >&2;}
2410    { (exit 1); exit 1; }; }
2411     fi
2412   fi
2413 fi
2414 echo "$as_me:$LINENO: result: yes" >&5
2415 echo "${ECHO_T}yes" >&6
2416
2417 rm -f a.out a.exe conftest$ac_cv_exeext
2418 ac_clean_files=$ac_clean_files_save
2419 # Check the compiler produces executables we can run.  If not, either
2420 # the compiler is broken, or we cross compile.
2421 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2422 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2423 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2424 echo "${ECHO_T}$cross_compiling" >&6
2425
2426 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2427 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2429   (eval $ac_link) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; then
2433   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2434 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2435 # work properly (i.e., refer to `conftest.exe'), while it won't with
2436 # `rm'.
2437 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2438   case $ac_file in
2439     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2440     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2441           export ac_cv_exeext
2442           break;;
2443     * ) break;;
2444   esac
2445 done
2446 else
2447   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2448 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2449    { (exit 1); exit 1; }; }
2450 fi
2451
2452 rm -f conftest$ac_cv_exeext
2453 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2454 echo "${ECHO_T}$ac_cv_exeext" >&6
2455
2456 rm -f conftest.$ac_ext
2457 EXEEXT=$ac_cv_exeext
2458 ac_exeext=$EXEEXT
2459 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2460 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2461 if test "${ac_cv_objext+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   cat >conftest.$ac_ext <<_ACEOF
2465 #line $LINENO "configure"
2466 #include "confdefs.h"
2467
2468 #ifdef F77_DUMMY_MAIN
2469 #  ifdef __cplusplus
2470      extern "C"
2471 #  endif
2472    int F77_DUMMY_MAIN() { return 1; }
2473 #endif
2474 int
2475 main ()
2476 {
2477
2478   ;
2479   return 0;
2480 }
2481 _ACEOF
2482 rm -f conftest.o conftest.obj
2483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484   (eval $ac_compile) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; then
2488   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2489   case $ac_file in
2490     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2491     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2492        break;;
2493   esac
2494 done
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 cat conftest.$ac_ext >&5
2498 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2499 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2500    { (exit 1); exit 1; }; }
2501 fi
2502
2503 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2504 fi
2505 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2506 echo "${ECHO_T}$ac_cv_objext" >&6
2507 OBJEXT=$ac_cv_objext
2508 ac_objext=$OBJEXT
2509 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2510 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2511 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2512   echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514   cat >conftest.$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2516 #include "confdefs.h"
2517
2518 #ifdef F77_DUMMY_MAIN
2519 #  ifdef __cplusplus
2520      extern "C"
2521 #  endif
2522    int F77_DUMMY_MAIN() { return 1; }
2523 #endif
2524 int
2525 main ()
2526 {
2527 #ifndef __GNUC__
2528        choke me
2529 #endif
2530
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537   (eval $ac_compile) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); } &&
2541          { ac_try='test -s conftest.$ac_objext'
2542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543   (eval $ac_try) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; }; then
2547   ac_compiler_gnu=yes
2548 else
2549   echo "$as_me: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2551 ac_compiler_gnu=no
2552 fi
2553 rm -f conftest.$ac_objext conftest.$ac_ext
2554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2555
2556 fi
2557 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2558 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2559 GCC=`test $ac_compiler_gnu = yes && echo yes`
2560 ac_test_CFLAGS=${CFLAGS+set}
2561 ac_save_CFLAGS=$CFLAGS
2562 CFLAGS="-g"
2563 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2564 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2565 if test "${ac_cv_prog_cc_g+set}" = set; then
2566   echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568   cat >conftest.$ac_ext <<_ACEOF
2569 #line $LINENO "configure"
2570 #include "confdefs.h"
2571
2572 #ifdef F77_DUMMY_MAIN
2573 #  ifdef __cplusplus
2574      extern "C"
2575 #  endif
2576    int F77_DUMMY_MAIN() { return 1; }
2577 #endif
2578 int
2579 main ()
2580 {
2581
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 rm -f conftest.$ac_objext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588   (eval $ac_compile) 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); } &&
2592          { ac_try='test -s conftest.$ac_objext'
2593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594   (eval $ac_try) 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; }; then
2598   ac_cv_prog_cc_g=yes
2599 else
2600   echo "$as_me: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2602 ac_cv_prog_cc_g=no
2603 fi
2604 rm -f conftest.$ac_objext conftest.$ac_ext
2605 fi
2606 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2607 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2608 if test "$ac_test_CFLAGS" = set; then
2609   CFLAGS=$ac_save_CFLAGS
2610 elif test $ac_cv_prog_cc_g = yes; then
2611   if test "$GCC" = yes; then
2612     CFLAGS="-g -O2"
2613   else
2614     CFLAGS="-g"
2615   fi
2616 else
2617   if test "$GCC" = yes; then
2618     CFLAGS="-O2"
2619   else
2620     CFLAGS=
2621   fi
2622 fi
2623 # Some people use a C++ compiler to compile C.  Since we use `exit',
2624 # in C++ we need to declare it.  In case someone uses the same compiler
2625 # for both compiling C and C++ we need to have the C++ compiler decide
2626 # the declaration of exit, since it's the most demanding environment.
2627 cat >conftest.$ac_ext <<_ACEOF
2628 #ifndef __cplusplus
2629   choke me
2630 #endif
2631 _ACEOF
2632 rm -f conftest.$ac_objext
2633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634   (eval $ac_compile) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); } &&
2638          { ac_try='test -s conftest.$ac_objext'
2639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640   (eval $ac_try) 2>&5
2641   ac_status=$?
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); }; }; then
2644   for ac_declaration in \
2645    ''\
2646    '#include <stdlib.h>' \
2647    'extern "C" void std::exit (int) throw (); using std::exit;' \
2648    'extern "C" void std::exit (int); using std::exit;' \
2649    'extern "C" void exit (int) throw ();' \
2650    'extern "C" void exit (int);' \
2651    'void exit (int);'
2652 do
2653   cat >conftest.$ac_ext <<_ACEOF
2654 #line $LINENO "configure"
2655 #include "confdefs.h"
2656 #include <stdlib.h>
2657 $ac_declaration
2658 #ifdef F77_DUMMY_MAIN
2659 #  ifdef __cplusplus
2660      extern "C"
2661 #  endif
2662    int F77_DUMMY_MAIN() { return 1; }
2663 #endif
2664 int
2665 main ()
2666 {
2667 exit (42);
2668   ;
2669   return 0;
2670 }
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674   (eval $ac_compile) 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); } &&
2678          { ac_try='test -s conftest.$ac_objext'
2679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680   (eval $ac_try) 2>&5
2681   ac_status=$?
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); }; }; then
2684   :
2685 else
2686   echo "$as_me: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2688 continue
2689 fi
2690 rm -f conftest.$ac_objext conftest.$ac_ext
2691   cat >conftest.$ac_ext <<_ACEOF
2692 #line $LINENO "configure"
2693 #include "confdefs.h"
2694 $ac_declaration
2695 #ifdef F77_DUMMY_MAIN
2696 #  ifdef __cplusplus
2697      extern "C"
2698 #  endif
2699    int F77_DUMMY_MAIN() { return 1; }
2700 #endif
2701 int
2702 main ()
2703 {
2704 exit (42);
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711   (eval $ac_compile) 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } &&
2715          { ac_try='test -s conftest.$ac_objext'
2716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717   (eval $ac_try) 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; }; then
2721   break
2722 else
2723   echo "$as_me: failed program was:" >&5
2724 cat conftest.$ac_ext >&5
2725 fi
2726 rm -f conftest.$ac_objext conftest.$ac_ext
2727 done
2728 rm -f conftest*
2729 if test -n "$ac_declaration"; then
2730   echo '#ifdef __cplusplus' >>confdefs.h
2731   echo $ac_declaration      >>confdefs.h
2732   echo '#endif'             >>confdefs.h
2733 fi
2734
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 cat conftest.$ac_ext >&5
2738 fi
2739 rm -f conftest.$ac_objext conftest.$ac_ext
2740 ac_ext=c
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745
2746
2747
2748
2749         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2750 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2751 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2752   echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754   ac_check_lib_save_LIBS=$LIBS
2755 LIBS="-lcposix  $LIBS"
2756 cat >conftest.$ac_ext <<_ACEOF
2757 #line $LINENO "configure"
2758 #include "confdefs.h"
2759
2760 /* Override any gcc2 internal prototype to avoid an error.  */
2761 #ifdef __cplusplus
2762 extern "C"
2763 #endif
2764 /* We use char because int might match the return type of a gcc2
2765    builtin and then its argument prototype would still apply.  */
2766 char strerror ();
2767 #ifdef F77_DUMMY_MAIN
2768 #  ifdef __cplusplus
2769      extern "C"
2770 #  endif
2771    int F77_DUMMY_MAIN() { return 1; }
2772 #endif
2773 int
2774 main ()
2775 {
2776 strerror ();
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 rm -f conftest.$ac_objext conftest$ac_exeext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2783   (eval $ac_link) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); } &&
2787          { ac_try='test -s conftest$ac_exeext'
2788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; }; then
2793   ac_cv_lib_cposix_strerror=yes
2794 else
2795   echo "$as_me: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2797 ac_cv_lib_cposix_strerror=no
2798 fi
2799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2800 LIBS=$ac_check_lib_save_LIBS
2801 fi
2802 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2803 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2804 if test $ac_cv_lib_cposix_strerror = yes; then
2805   LIBS="$LIBS -lcposix"
2806 fi
2807
2808
2809
2810 ac_ext=c
2811 ac_cpp='$CPP $CPPFLAGS'
2812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2816 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2817 # On Suns, sometimes $CPP names a directory.
2818 if test -n "$CPP" && test -d "$CPP"; then
2819   CPP=
2820 fi
2821 if test -z "$CPP"; then
2822   if test "${ac_cv_prog_CPP+set}" = set; then
2823   echo $ECHO_N "(cached) $ECHO_C" >&6
2824 else
2825       # Double quotes because CPP needs to be expanded
2826     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2827     do
2828       ac_preproc_ok=false
2829 for ac_c_preproc_warn_flag in '' yes
2830 do
2831   # Use a header file that comes with gcc, so configuring glibc
2832   # with a fresh cross-compiler works.
2833   # On the NeXT, cc -E runs the code through the compiler's parser,
2834   # not just through cpp. "Syntax error" is here to catch this case.
2835   cat >conftest.$ac_ext <<_ACEOF
2836 #line $LINENO "configure"
2837 #include "confdefs.h"
2838 #include <assert.h>
2839                      Syntax error
2840 _ACEOF
2841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2843   ac_status=$?
2844   egrep -v '^ *\+' conftest.er1 >conftest.err
2845   rm -f conftest.er1
2846   cat conftest.err >&5
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); } >/dev/null; then
2849   if test -s conftest.err; then
2850     ac_cpp_err=$ac_c_preproc_warn_flag
2851   else
2852     ac_cpp_err=
2853   fi
2854 else
2855   ac_cpp_err=yes
2856 fi
2857 if test -z "$ac_cpp_err"; then
2858   :
2859 else
2860   echo "$as_me: failed program was:" >&5
2861   cat conftest.$ac_ext >&5
2862   # Broken: fails on valid input.
2863 continue
2864 fi
2865 rm -f conftest.err conftest.$ac_ext
2866
2867   # OK, works on sane cases.  Now check whether non-existent headers
2868   # can be detected and how.
2869   cat >conftest.$ac_ext <<_ACEOF
2870 #line $LINENO "configure"
2871 #include "confdefs.h"
2872 #include <ac_nonexistent.h>
2873 _ACEOF
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876   ac_status=$?
2877   egrep -v '^ *\+' conftest.er1 >conftest.err
2878   rm -f conftest.er1
2879   cat conftest.err >&5
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } >/dev/null; then
2882   if test -s conftest.err; then
2883     ac_cpp_err=$ac_c_preproc_warn_flag
2884   else
2885     ac_cpp_err=
2886   fi
2887 else
2888   ac_cpp_err=yes
2889 fi
2890 if test -z "$ac_cpp_err"; then
2891   # Broken: success on invalid input.
2892 continue
2893 else
2894   echo "$as_me: failed program was:" >&5
2895   cat conftest.$ac_ext >&5
2896   # Passes both tests.
2897 ac_preproc_ok=:
2898 break
2899 fi
2900 rm -f conftest.err conftest.$ac_ext
2901
2902 done
2903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2904 rm -f conftest.err conftest.$ac_ext
2905 if $ac_preproc_ok; then
2906   break
2907 fi
2908
2909     done
2910     ac_cv_prog_CPP=$CPP
2911
2912 fi
2913   CPP=$ac_cv_prog_CPP
2914 else
2915   ac_cv_prog_CPP=$CPP
2916 fi
2917 echo "$as_me:$LINENO: result: $CPP" >&5
2918 echo "${ECHO_T}$CPP" >&6
2919 ac_preproc_ok=false
2920 for ac_c_preproc_warn_flag in '' yes
2921 do
2922   # Use a header file that comes with gcc, so configuring glibc
2923   # with a fresh cross-compiler works.
2924   # On the NeXT, cc -E runs the code through the compiler's parser,
2925   # not just through cpp. "Syntax error" is here to catch this case.
2926   cat >conftest.$ac_ext <<_ACEOF
2927 #line $LINENO "configure"
2928 #include "confdefs.h"
2929 #include <assert.h>
2930                      Syntax error
2931 _ACEOF
2932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2933   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2934   ac_status=$?
2935   egrep -v '^ *\+' conftest.er1 >conftest.err
2936   rm -f conftest.er1
2937   cat conftest.err >&5
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); } >/dev/null; then
2940   if test -s conftest.err; then
2941     ac_cpp_err=$ac_c_preproc_warn_flag
2942   else
2943     ac_cpp_err=
2944   fi
2945 else
2946   ac_cpp_err=yes
2947 fi
2948 if test -z "$ac_cpp_err"; then
2949   :
2950 else
2951   echo "$as_me: failed program was:" >&5
2952   cat conftest.$ac_ext >&5
2953   # Broken: fails on valid input.
2954 continue
2955 fi
2956 rm -f conftest.err conftest.$ac_ext
2957
2958   # OK, works on sane cases.  Now check whether non-existent headers
2959   # can be detected and how.
2960   cat >conftest.$ac_ext <<_ACEOF
2961 #line $LINENO "configure"
2962 #include "confdefs.h"
2963 #include <ac_nonexistent.h>
2964 _ACEOF
2965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2967   ac_status=$?
2968   egrep -v '^ *\+' conftest.er1 >conftest.err
2969   rm -f conftest.er1
2970   cat conftest.err >&5
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); } >/dev/null; then
2973   if test -s conftest.err; then
2974     ac_cpp_err=$ac_c_preproc_warn_flag
2975   else
2976     ac_cpp_err=
2977   fi
2978 else
2979   ac_cpp_err=yes
2980 fi
2981 if test -z "$ac_cpp_err"; then
2982   # Broken: success on invalid input.
2983 continue
2984 else
2985   echo "$as_me: failed program was:" >&5
2986   cat conftest.$ac_ext >&5
2987   # Passes both tests.
2988 ac_preproc_ok=:
2989 break
2990 fi
2991 rm -f conftest.err conftest.$ac_ext
2992
2993 done
2994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2995 rm -f conftest.err conftest.$ac_ext
2996 if $ac_preproc_ok; then
2997   :
2998 else
2999   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3000 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3001    { (exit 1); exit 1; }; }
3002 fi
3003
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009
3010
3011 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3012 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3013 if test "${ac_cv_header_stdc+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   cat >conftest.$ac_ext <<_ACEOF
3017 #line $LINENO "configure"
3018 #include "confdefs.h"
3019 #include <stdlib.h>
3020 #include <stdarg.h>
3021 #include <string.h>
3022 #include <float.h>
3023
3024 _ACEOF
3025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3027   ac_status=$?
3028   egrep -v '^ *\+' conftest.er1 >conftest.err
3029   rm -f conftest.er1
3030   cat conftest.err >&5
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); } >/dev/null; then
3033   if test -s conftest.err; then
3034     ac_cpp_err=$ac_c_preproc_warn_flag
3035   else
3036     ac_cpp_err=
3037   fi
3038 else
3039   ac_cpp_err=yes
3040 fi
3041 if test -z "$ac_cpp_err"; then
3042   ac_cv_header_stdc=yes
3043 else
3044   echo "$as_me: failed program was:" >&5
3045   cat conftest.$ac_ext >&5
3046   ac_cv_header_stdc=no
3047 fi
3048 rm -f conftest.err conftest.$ac_ext
3049
3050 if test $ac_cv_header_stdc = yes; then
3051   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3052   cat >conftest.$ac_ext <<_ACEOF
3053 #line $LINENO "configure"
3054 #include "confdefs.h"
3055 #include <string.h>
3056
3057 _ACEOF
3058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3059   egrep "memchr" >/dev/null 2>&1; then
3060   :
3061 else
3062   ac_cv_header_stdc=no
3063 fi
3064 rm -f conftest*
3065
3066 fi
3067
3068 if test $ac_cv_header_stdc = yes; then
3069   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3070   cat >conftest.$ac_ext <<_ACEOF
3071 #line $LINENO "configure"
3072 #include "confdefs.h"
3073 #include <stdlib.h>
3074
3075 _ACEOF
3076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3077   egrep "free" >/dev/null 2>&1; then
3078   :
3079 else
3080   ac_cv_header_stdc=no
3081 fi
3082 rm -f conftest*
3083
3084 fi
3085
3086 if test $ac_cv_header_stdc = yes; then
3087   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3088   if test "$cross_compiling" = yes; then
3089   :
3090 else
3091   cat >conftest.$ac_ext <<_ACEOF
3092 #line $LINENO "configure"
3093 #include "confdefs.h"
3094 #include <ctype.h>
3095 #if ((' ' & 0x0FF) == 0x020)
3096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3098 #else
3099 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3100                      || ('j' <= (c) && (c) <= 'r') \
3101                      || ('s' <= (c) && (c) <= 'z'))
3102 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3103 #endif
3104
3105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3106 int
3107 main ()
3108 {
3109   int i;
3110   for (i = 0; i < 256; i++)
3111     if (XOR (islower (i), ISLOWER (i))
3112         || toupper (i) != TOUPPER (i))
3113       exit(2);
3114   exit (0);
3115 }
3116 _ACEOF
3117 rm -f conftest$ac_exeext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3119   (eval $ac_link) 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124   (eval $ac_try) 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }; }; then
3128   :
3129 else
3130   echo "$as_me: program exited with status $ac_status" >&5
3131 echo "$as_me: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3133 ( exit $ac_status )
3134 ac_cv_header_stdc=no
3135 fi
3136 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3137 fi
3138 fi
3139 fi
3140 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3141 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3142 if test $ac_cv_header_stdc = yes; then
3143
3144 cat >>confdefs.h <<\_ACEOF
3145 #define STDC_HEADERS 1
3146 _ACEOF
3147
3148 fi
3149
3150 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3161                   inttypes.h stdint.h unistd.h
3162 do
3163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3164 echo "$as_me:$LINENO: checking for $ac_header" >&5
3165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3167   echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169   cat >conftest.$ac_ext <<_ACEOF
3170 #line $LINENO "configure"
3171 #include "confdefs.h"
3172 $ac_includes_default
3173
3174 #include <$ac_header>
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3178   (eval $ac_compile) 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); } &&
3182          { ac_try='test -s conftest.$ac_objext'
3183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184   (eval $ac_try) 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); }; }; then
3188   eval "$as_ac_Header=yes"
3189 else
3190   echo "$as_me: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3192 eval "$as_ac_Header=no"
3193 fi
3194 rm -f conftest.$ac_objext conftest.$ac_ext
3195 fi
3196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3199   cat >>confdefs.h <<_ACEOF
3200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3201 _ACEOF
3202
3203 fi
3204
3205 done
3206
3207
3208 if test "${ac_cv_header_minix_config_h+set}" = set; then
3209   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3210 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3211 if test "${ac_cv_header_minix_config_h+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 fi
3214 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3215 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3216 else
3217   # Is the header compilable?
3218 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3219 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3220 cat >conftest.$ac_ext <<_ACEOF
3221 #line $LINENO "configure"
3222 #include "confdefs.h"
3223 $ac_includes_default
3224 #include <minix/config.h>
3225 _ACEOF
3226 rm -f conftest.$ac_objext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228   (eval $ac_compile) 2>&5
3229   ac_status=$?
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); } &&
3232          { ac_try='test -s conftest.$ac_objext'
3233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234   (eval $ac_try) 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }; }; then
3238   ac_header_compiler=yes
3239 else
3240   echo "$as_me: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 ac_header_compiler=no
3243 fi
3244 rm -f conftest.$ac_objext conftest.$ac_ext
3245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3246 echo "${ECHO_T}$ac_header_compiler" >&6
3247
3248 # Is the header present?
3249 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3250 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3251 cat >conftest.$ac_ext <<_ACEOF
3252 #line $LINENO "configure"
3253 #include "confdefs.h"
3254 #include <minix/config.h>
3255 _ACEOF
3256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3258   ac_status=$?
3259   egrep -v '^ *\+' conftest.er1 >conftest.err
3260   rm -f conftest.er1
3261   cat conftest.err >&5
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); } >/dev/null; then
3264   if test -s conftest.err; then
3265     ac_cpp_err=$ac_c_preproc_warn_flag
3266   else
3267     ac_cpp_err=
3268   fi
3269 else
3270   ac_cpp_err=yes
3271 fi
3272 if test -z "$ac_cpp_err"; then
3273   ac_header_preproc=yes
3274 else
3275   echo "$as_me: failed program was:" >&5
3276   cat conftest.$ac_ext >&5
3277   ac_header_preproc=no
3278 fi
3279 rm -f conftest.err conftest.$ac_ext
3280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3281 echo "${ECHO_T}$ac_header_preproc" >&6
3282
3283 # So?  What about this header?
3284 case $ac_header_compiler:$ac_header_preproc in
3285   yes:no )
3286     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3287 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3288     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3289 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3290   no:yes )
3291     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3292 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3293     { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3294 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3295     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3296 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3297 esac
3298 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3299 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3300 if test "${ac_cv_header_minix_config_h+set}" = set; then
3301   echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303   ac_cv_header_minix_config_h=$ac_header_preproc
3304 fi
3305 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3306 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3307
3308 fi
3309 if test $ac_cv_header_minix_config_h = yes; then
3310   MINIX=yes
3311 else
3312   MINIX=
3313 fi
3314
3315
3316 if test "$MINIX" = yes; then
3317
3318 cat >>confdefs.h <<\_ACEOF
3319 #define _POSIX_SOURCE 1
3320 _ACEOF
3321
3322
3323 cat >>confdefs.h <<\_ACEOF
3324 #define _POSIX_1_SOURCE 2
3325 _ACEOF
3326
3327
3328 cat >>confdefs.h <<\_ACEOF
3329 #define _MINIX 1
3330 _ACEOF
3331
3332 fi
3333
3334
3335 # Check whether --enable-largefile or --disable-largefile was given.
3336 if test "${enable_largefile+set}" = set; then
3337   enableval="$enable_largefile"
3338
3339 fi;
3340 if test "$enable_largefile" != no; then
3341
3342   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3343 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3344 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3345   echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347   ac_cv_sys_largefile_CC=no
3348      if test "$GCC" != yes; then
3349        ac_save_CC=$CC
3350        while :; do
3351          # IRIX 6.2 and later do not support large files by default,
3352          # so use the C compiler's -n32 option if that helps.
3353          cat >conftest.$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3355 #include "confdefs.h"
3356 #include <sys/types.h>
3357  /* Check that off_t can represent 2**63 - 1 correctly.
3358     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3359     since some C++ compilers masquerading as C compilers
3360     incorrectly reject 9223372036854775807.  */
3361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3362   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3363                        && LARGE_OFF_T % 2147483647 == 1)
3364                       ? 1 : -1];
3365 #ifdef F77_DUMMY_MAIN
3366 #  ifdef __cplusplus
3367      extern "C"
3368 #  endif
3369    int F77_DUMMY_MAIN() { return 1; }
3370 #endif
3371 int
3372 main ()
3373 {
3374
3375   ;
3376   return 0;
3377 }
3378 _ACEOF
3379          rm -f conftest.$ac_objext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381   (eval $ac_compile) 2>&5
3382   ac_status=$?
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); } &&
3385          { ac_try='test -s conftest.$ac_objext'
3386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387   (eval $ac_try) 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; }; then
3391   break
3392 else
3393   echo "$as_me: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3395 fi
3396 rm -f conftest.$ac_objext
3397          CC="$CC -n32"
3398          rm -f conftest.$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400   (eval $ac_compile) 2>&5
3401   ac_status=$?
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } &&
3404          { ac_try='test -s conftest.$ac_objext'
3405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406   (eval $ac_try) 2>&5
3407   ac_status=$?
3408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); }; }; then
3410   ac_cv_sys_largefile_CC=' -n32'; break
3411 else
3412   echo "$as_me: failed program was:" >&5
3413 cat conftest.$ac_ext >&5
3414 fi
3415 rm -f conftest.$ac_objext
3416          break
3417        done
3418        CC=$ac_save_CC
3419        rm -f conftest.$ac_ext
3420     fi
3421 fi
3422 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3423 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3424   if test "$ac_cv_sys_largefile_CC" != no; then
3425     CC=$CC$ac_cv_sys_largefile_CC
3426   fi
3427
3428   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3429 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3430 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3431   echo $ECHO_N "(cached) $ECHO_C" >&6
3432 else
3433   while :; do
3434   ac_cv_sys_file_offset_bits=no
3435   cat >conftest.$ac_ext <<_ACEOF
3436 #line $LINENO "configure"
3437 #include "confdefs.h"
3438 #include <sys/types.h>
3439  /* Check that off_t can represent 2**63 - 1 correctly.
3440     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3441     since some C++ compilers masquerading as C compilers
3442     incorrectly reject 9223372036854775807.  */
3443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3444   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3445                        && LARGE_OFF_T % 2147483647 == 1)
3446                       ? 1 : -1];
3447 #ifdef F77_DUMMY_MAIN
3448 #  ifdef __cplusplus
3449      extern "C"
3450 #  endif
3451    int F77_DUMMY_MAIN() { return 1; }
3452 #endif
3453 int
3454 main ()
3455 {
3456
3457   ;
3458   return 0;
3459 }
3460 _ACEOF
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463   (eval $ac_compile) 2>&5
3464   ac_status=$?
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } &&
3467          { ac_try='test -s conftest.$ac_objext'
3468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469   (eval $ac_try) 2>&5
3470   ac_status=$?
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); }; }; then
3473   break
3474 else
3475   echo "$as_me: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3477 fi
3478 rm -f conftest.$ac_objext conftest.$ac_ext
3479   cat >conftest.$ac_ext <<_ACEOF
3480 #line $LINENO "configure"
3481 #include "confdefs.h"
3482 #define _FILE_OFFSET_BITS 64
3483 #include <sys/types.h>
3484  /* Check that off_t can represent 2**63 - 1 correctly.
3485     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3486     since some C++ compilers masquerading as C compilers
3487     incorrectly reject 9223372036854775807.  */
3488 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3489   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3490                        && LARGE_OFF_T % 2147483647 == 1)
3491                       ? 1 : -1];
3492 #ifdef F77_DUMMY_MAIN
3493 #  ifdef __cplusplus
3494      extern "C"
3495 #  endif
3496    int F77_DUMMY_MAIN() { return 1; }
3497 #endif
3498 int
3499 main ()
3500 {
3501
3502   ;
3503   return 0;
3504 }
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508   (eval $ac_compile) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); } &&
3512          { ac_try='test -s conftest.$ac_objext'
3513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514   (eval $ac_try) 2>&5
3515   ac_status=$?
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); }; }; then
3518   ac_cv_sys_file_offset_bits=64; break
3519 else
3520   echo "$as_me: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3522 fi
3523 rm -f conftest.$ac_objext conftest.$ac_ext
3524   break
3525 done
3526 fi
3527 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3528 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3529 if test "$ac_cv_sys_file_offset_bits" != no; then
3530
3531 cat >>confdefs.h <<_ACEOF
3532 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3533 _ACEOF
3534
3535 fi
3536 rm -f conftest*
3537   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3538 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3539 if test "${ac_cv_sys_large_files+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   while :; do
3543   ac_cv_sys_large_files=no
3544   cat >conftest.$ac_ext <<_ACEOF
3545 #line $LINENO "configure"
3546 #include "confdefs.h"
3547 #include <sys/types.h>
3548  /* Check that off_t can represent 2**63 - 1 correctly.
3549     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3550     since some C++ compilers masquerading as C compilers
3551     incorrectly reject 9223372036854775807.  */
3552 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3553   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3554                        && LARGE_OFF_T % 2147483647 == 1)
3555                       ? 1 : -1];
3556 #ifdef F77_DUMMY_MAIN
3557 #  ifdef __cplusplus
3558      extern "C"
3559 #  endif
3560    int F77_DUMMY_MAIN() { return 1; }
3561 #endif
3562 int
3563 main ()
3564 {
3565
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 rm -f conftest.$ac_objext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572   (eval $ac_compile) 2>&5
3573   ac_status=$?
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } &&
3576          { ac_try='test -s conftest.$ac_objext'
3577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578   (eval $ac_try) 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); }; }; then
3582   break
3583 else
3584   echo "$as_me: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3586 fi
3587 rm -f conftest.$ac_objext conftest.$ac_ext
3588   cat >conftest.$ac_ext <<_ACEOF
3589 #line $LINENO "configure"
3590 #include "confdefs.h"
3591 #define _LARGE_FILES 1
3592 #include <sys/types.h>
3593  /* Check that off_t can represent 2**63 - 1 correctly.
3594     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3595     since some C++ compilers masquerading as C compilers
3596     incorrectly reject 9223372036854775807.  */
3597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3598   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3599                        && LARGE_OFF_T % 2147483647 == 1)
3600                       ? 1 : -1];
3601 #ifdef F77_DUMMY_MAIN
3602 #  ifdef __cplusplus
3603      extern "C"
3604 #  endif
3605    int F77_DUMMY_MAIN() { return 1; }
3606 #endif
3607 int
3608 main ()
3609 {
3610
3611   ;
3612   return 0;
3613 }
3614 _ACEOF
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617   (eval $ac_compile) 2>&5
3618   ac_status=$?
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } &&
3621          { ac_try='test -s conftest.$ac_objext'
3622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623   (eval $ac_try) 2>&5
3624   ac_status=$?
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); }; }; then
3627   ac_cv_sys_large_files=1; break
3628 else
3629   echo "$as_me: failed program was:" >&5
3630 cat conftest.$ac_ext >&5
3631 fi
3632 rm -f conftest.$ac_objext conftest.$ac_ext
3633   break
3634 done
3635 fi
3636 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3637 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3638 if test "$ac_cv_sys_large_files" != no; then
3639
3640 cat >>confdefs.h <<_ACEOF
3641 #define _LARGE_FILES $ac_cv_sys_large_files
3642 _ACEOF
3643
3644 fi
3645 rm -f conftest*
3646 fi
3647
3648
3649
3650 SIGNAMES_H=lsignames.h
3651
3652
3653
3654 if test "x$cross_compiling" = "xyes"; then
3655     case "${host}" in
3656     *-cygwin*)
3657         cross_cache=${srcdir}/cross-build/cygwin32.cache
3658         SIGNAMES_H='$(srcdir)/cross-build/win32sig.h'
3659         ;;
3660     *-mingw*)
3661         cross_cache=${srcdir}/cross-build/cygwin32.cache
3662         ;;
3663     i[3456]86-*-beos*)
3664         cross_cache=${srcdir}/cross-build/x86-beos.cache
3665         SIGNAMES_H='${srcdir}/cross-build/beos-sig.h'
3666         ;;
3667     *)  echo "configure: cross-compiling for $host is not supported" >&2
3668         ;;
3669     esac
3670     if test -n "${cross_cache}" && test -r "${cross_cache}"; then
3671         echo "loading cross-build cache file ${cross_cache}"
3672         . ${cross_cache}
3673     fi
3674     unset cross_cache
3675     CROSS_COMPILE='-DCROSS_COMPILING'
3676
3677 fi
3678
3679
3680 if test -z "$CC_FOR_BUILD"; then
3681     if test "x$cross_compiling" = "xno"; then
3682         CC_FOR_BUILD='$(CC)'
3683     else
3684         CC_FOR_BUILD=gcc
3685     fi
3686 fi
3687
3688
3689
3690 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
3691
3692 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
3693
3694 if test "$opt_profiling" = "yes"; then
3695         PROFILE_FLAGS=-pg
3696         case "$host_os" in
3697         solaris2*)      ;;
3698         *)              opt_static_link=yes ;;
3699         esac
3700         DEBUG= MALLOC_DEBUG=
3701 fi
3702
3703 if test "$opt_static_link" = yes; then
3704         # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
3705         if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
3706                 STATIC_LD="-static"
3707                 case "$host_os" in
3708                 solaris2*)      ;;
3709                 *)              LDFLAGS="$LDFLAGS -static" ;;   # XXX experimental
3710                 esac
3711         fi
3712 fi
3713
3714 if test "X$cross_compiling" = "Xno"; then
3715         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
3716         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
3717 else
3718         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
3719         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
3720 fi
3721
3722 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733 if test $ac_cv_c_compiler_gnu = yes; then
3734     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3735 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3736 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739     ac_pattern="Autoconf.*'x'"
3740   cat >conftest.$ac_ext <<_ACEOF
3741 #line $LINENO "configure"
3742 #include "confdefs.h"
3743 #include <sgtty.h>
3744 Autoconf TIOCGETP
3745 _ACEOF
3746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3747   egrep "$ac_pattern" >/dev/null 2>&1; then
3748   ac_cv_prog_gcc_traditional=yes
3749 else
3750   ac_cv_prog_gcc_traditional=no
3751 fi
3752 rm -f conftest*
3753
3754
3755   if test $ac_cv_prog_gcc_traditional = no; then
3756     cat >conftest.$ac_ext <<_ACEOF
3757 #line $LINENO "configure"
3758 #include "confdefs.h"
3759 #include <termio.h>
3760 Autoconf TCGETA
3761 _ACEOF
3762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3763   egrep "$ac_pattern" >/dev/null 2>&1; then
3764   ac_cv_prog_gcc_traditional=yes
3765 fi
3766 rm -f conftest*
3767
3768   fi
3769 fi
3770 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3771 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3772   if test $ac_cv_prog_gcc_traditional = yes; then
3773     CC="$CC -traditional"
3774   fi
3775 fi
3776
3777
3778
3779 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
3780 then
3781         # If the user specified --with-installed-readline=PREFIX and PREFIX
3782         # is not `yes', set ac_cv_rl_prefix to PREFIX
3783         test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
3784
3785
3786 if test "X$bash_cv_termcap_lib" = "X"; then
3787 _bash_needmsg=yes
3788 else
3789 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
3790 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
3791 _bash_needmsg=
3792 fi
3793 if test "${bash_cv_termcap_lib+set}" = set; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   echo "$as_me:$LINENO: checking for tgetent" >&5
3797 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
3798 if test "${ac_cv_func_tgetent+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   cat >conftest.$ac_ext <<_ACEOF
3802 #line $LINENO "configure"
3803 #include "confdefs.h"
3804 /* System header to define __stub macros and hopefully few prototypes,
3805     which can conflict with char tgetent (); below.  */
3806 #include <assert.h>
3807 /* Override any gcc2 internal prototype to avoid an error.  */
3808 #ifdef __cplusplus
3809 extern "C"
3810 #endif
3811 /* We use char because int might match the return type of a gcc2
3812    builtin and then its argument prototype would still apply.  */
3813 char tgetent ();
3814 char (*f) ();
3815
3816 #ifdef F77_DUMMY_MAIN
3817 #  ifdef __cplusplus
3818      extern "C"
3819 #  endif
3820    int F77_DUMMY_MAIN() { return 1; }
3821 #endif
3822 int
3823 main ()
3824 {
3825 /* The GNU C library defines this for functions which it implements
3826     to always fail with ENOSYS.  Some functions are actually named
3827     something starting with __ and the normal name is an alias.  */
3828 #if defined (__stub_tgetent) || defined (__stub___tgetent)
3829 choke me
3830 #else
3831 f = tgetent;
3832 #endif
3833
3834   ;
3835   return 0;
3836 }
3837 _ACEOF
3838 rm -f conftest.$ac_objext conftest$ac_exeext
3839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3840   (eval $ac_link) 2>&5
3841   ac_status=$?
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); } &&
3844          { ac_try='test -s conftest$ac_exeext'
3845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846   (eval $ac_try) 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; }; then
3850   ac_cv_func_tgetent=yes
3851 else
3852   echo "$as_me: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3854 ac_cv_func_tgetent=no
3855 fi
3856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3857 fi
3858 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
3859 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
3860 if test $ac_cv_func_tgetent = yes; then
3861   bash_cv_termcap_lib=libc
3862 else
3863   echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
3864 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
3865 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   ac_check_lib_save_LIBS=$LIBS
3869 LIBS="-ltermcap  $LIBS"
3870 cat >conftest.$ac_ext <<_ACEOF
3871 #line $LINENO "configure"
3872 #include "confdefs.h"
3873
3874 /* Override any gcc2 internal prototype to avoid an error.  */
3875 #ifdef __cplusplus
3876 extern "C"
3877 #endif
3878 /* We use char because int might match the return type of a gcc2
3879    builtin and then its argument prototype would still apply.  */
3880 char tgetent ();
3881 #ifdef F77_DUMMY_MAIN
3882 #  ifdef __cplusplus
3883      extern "C"
3884 #  endif
3885    int F77_DUMMY_MAIN() { return 1; }
3886 #endif
3887 int
3888 main ()
3889 {
3890 tgetent ();
3891   ;
3892   return 0;
3893 }
3894 _ACEOF
3895 rm -f conftest.$ac_objext conftest$ac_exeext
3896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3897   (eval $ac_link) 2>&5
3898   ac_status=$?
3899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900   (exit $ac_status); } &&
3901          { ac_try='test -s conftest$ac_exeext'
3902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903   (eval $ac_try) 2>&5
3904   ac_status=$?
3905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); }; }; then
3907   ac_cv_lib_termcap_tgetent=yes
3908 else
3909   echo "$as_me: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3911 ac_cv_lib_termcap_tgetent=no
3912 fi
3913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3914 LIBS=$ac_check_lib_save_LIBS
3915 fi
3916 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
3917 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
3918 if test $ac_cv_lib_termcap_tgetent = yes; then
3919   bash_cv_termcap_lib=libtermcap
3920 else
3921   echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
3922 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
3923 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   ac_check_lib_save_LIBS=$LIBS
3927 LIBS="-ltinfo  $LIBS"
3928 cat >conftest.$ac_ext <<_ACEOF
3929 #line $LINENO "configure"
3930 #include "confdefs.h"
3931
3932 /* Override any gcc2 internal prototype to avoid an error.  */
3933 #ifdef __cplusplus
3934 extern "C"
3935 #endif
3936 /* We use char because int might match the return type of a gcc2
3937    builtin and then its argument prototype would still apply.  */
3938 char tgetent ();
3939 #ifdef F77_DUMMY_MAIN
3940 #  ifdef __cplusplus
3941      extern "C"
3942 #  endif
3943    int F77_DUMMY_MAIN() { return 1; }
3944 #endif
3945 int
3946 main ()
3947 {
3948 tgetent ();
3949   ;
3950   return 0;
3951 }
3952 _ACEOF
3953 rm -f conftest.$ac_objext conftest$ac_exeext
3954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3955   (eval $ac_link) 2>&5
3956   ac_status=$?
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); } &&
3959          { ac_try='test -s conftest$ac_exeext'
3960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961   (eval $ac_try) 2>&5
3962   ac_status=$?
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); }; }; then
3965   ac_cv_lib_tinfo_tgetent=yes
3966 else
3967   echo "$as_me: failed program was:" >&5
3968 cat conftest.$ac_ext >&5
3969 ac_cv_lib_tinfo_tgetent=no
3970 fi
3971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3972 LIBS=$ac_check_lib_save_LIBS
3973 fi
3974 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
3975 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
3976 if test $ac_cv_lib_tinfo_tgetent = yes; then
3977   bash_cv_termcap_lib=libtinfo
3978 else
3979   echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
3980 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
3981 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   ac_check_lib_save_LIBS=$LIBS
3985 LIBS="-lcurses  $LIBS"
3986 cat >conftest.$ac_ext <<_ACEOF
3987 #line $LINENO "configure"
3988 #include "confdefs.h"
3989
3990 /* Override any gcc2 internal prototype to avoid an error.  */
3991 #ifdef __cplusplus
3992 extern "C"
3993 #endif
3994 /* We use char because int might match the return type of a gcc2
3995    builtin and then its argument prototype would still apply.  */
3996 char tgetent ();
3997 #ifdef F77_DUMMY_MAIN
3998 #  ifdef __cplusplus
3999      extern "C"
4000 #  endif
4001    int F77_DUMMY_MAIN() { return 1; }
4002 #endif
4003 int
4004 main ()
4005 {
4006 tgetent ();
4007   ;
4008   return 0;
4009 }
4010 _ACEOF
4011 rm -f conftest.$ac_objext conftest$ac_exeext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4013   (eval $ac_link) 2>&5
4014   ac_status=$?
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); } &&
4017          { ac_try='test -s conftest$ac_exeext'
4018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019   (eval $ac_try) 2>&5
4020   ac_status=$?
4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022   (exit $ac_status); }; }; then
4023   ac_cv_lib_curses_tgetent=yes
4024 else
4025   echo "$as_me: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4027 ac_cv_lib_curses_tgetent=no
4028 fi
4029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4030 LIBS=$ac_check_lib_save_LIBS
4031 fi
4032 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
4033 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
4034 if test $ac_cv_lib_curses_tgetent = yes; then
4035   bash_cv_termcap_lib=libcurses
4036 else
4037   echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
4038 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
4039 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042   ac_check_lib_save_LIBS=$LIBS
4043 LIBS="-lncurses  $LIBS"
4044 cat >conftest.$ac_ext <<_ACEOF
4045 #line $LINENO "configure"
4046 #include "confdefs.h"
4047
4048 /* Override any gcc2 internal prototype to avoid an error.  */
4049 #ifdef __cplusplus
4050 extern "C"
4051 #endif
4052 /* We use char because int might match the return type of a gcc2
4053    builtin and then its argument prototype would still apply.  */
4054 char tgetent ();
4055 #ifdef F77_DUMMY_MAIN
4056 #  ifdef __cplusplus
4057      extern "C"
4058 #  endif
4059    int F77_DUMMY_MAIN() { return 1; }
4060 #endif
4061 int
4062 main ()
4063 {
4064 tgetent ();
4065   ;
4066   return 0;
4067 }
4068 _ACEOF
4069 rm -f conftest.$ac_objext conftest$ac_exeext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4071   (eval $ac_link) 2>&5
4072   ac_status=$?
4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074   (exit $ac_status); } &&
4075          { ac_try='test -s conftest$ac_exeext'
4076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077   (eval $ac_try) 2>&5
4078   ac_status=$?
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); }; }; then
4081   ac_cv_lib_ncurses_tgetent=yes
4082 else
4083   echo "$as_me: failed program was:" >&5
4084 cat conftest.$ac_ext >&5
4085 ac_cv_lib_ncurses_tgetent=no
4086 fi
4087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4088 LIBS=$ac_check_lib_save_LIBS
4089 fi
4090 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
4091 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
4092 if test $ac_cv_lib_ncurses_tgetent = yes; then
4093   bash_cv_termcap_lib=libncurses
4094 else
4095   bash_cv_termcap_lib=gnutermcap
4096 fi
4097
4098 fi
4099
4100 fi
4101
4102 fi
4103
4104 fi
4105
4106 fi
4107
4108 if test "X$_bash_needmsg" = "Xyes"; then
4109 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4110 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4111 fi
4112 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
4113 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
4114 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
4115 LDFLAGS="$LDFLAGS -L./lib/termcap"
4116 TERMCAP_LIB="./lib/termcap/libtermcap.a"
4117 TERMCAP_DEP="./lib/termcap/libtermcap.a"
4118 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
4119 TERMCAP_LIB=-ltermcap
4120 TERMCAP_DEP=
4121 elif test $bash_cv_termcap_lib = libtinfo; then
4122 TERMCAP_LIB=-ltinfo
4123 TERMCAP_DEP=
4124 elif test $bash_cv_termcap_lib = libncurses; then
4125 TERMCAP_LIB=-lncurses
4126 TERMCAP_DEP=
4127 elif test $bash_cv_termcap_lib = libc; then
4128 TERMCAP_LIB=
4129 TERMCAP_DEP=
4130 else
4131 TERMCAP_LIB=-lcurses
4132 TERMCAP_DEP=
4133 fi
4134
4135
4136
4137
4138 echo "$as_me:$LINENO: checking version of installed readline library" >&5
4139 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
4140
4141 # What a pain in the ass this is.
4142
4143 # save cpp and ld options
4144 _save_CFLAGS="$CFLAGS"
4145 _save_LDFLAGS="$LDFLAGS"
4146 _save_LIBS="$LIBS"
4147
4148 # Don't set ac_cv_rl_prefix if the caller has already assigned a value.  This
4149 # allows the caller to do something like $_rl_prefix=$withval if the user
4150 # specifies --with-installed-readline=PREFIX as an argument to configure
4151
4152 if test -z "$ac_cv_rl_prefix"; then
4153 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
4154 fi
4155
4156 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
4157 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
4158
4159 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
4160 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
4161 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
4162
4163 if test "${ac_cv_rl_version+set}" = set; then
4164   echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166   if test "$cross_compiling" = yes; then
4167   ac_cv_rl_version='4.2'
4168 else
4169   cat >conftest.$ac_ext <<_ACEOF
4170 #line $LINENO "configure"
4171 #include "confdefs.h"
4172
4173 #include <stdio.h>
4174 #include <readline/readline.h>
4175
4176 extern int rl_gnu_readline_p;
4177
4178 main()
4179 {
4180         FILE *fp;
4181         fp = fopen("conftest.rlv", "w");
4182         if (fp == 0)
4183                 exit(1);
4184         if (rl_gnu_readline_p != 1)
4185                 fprintf(fp, "0.0\n");
4186         else
4187                 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
4188         fclose(fp);
4189         exit(0);
4190 }
4191
4192 _ACEOF
4193 rm -f conftest$ac_exeext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195   (eval $ac_link) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200   (eval $ac_try) 2>&5
4201   ac_status=$?
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); }; }; then
4204   ac_cv_rl_version=`cat conftest.rlv`
4205 else
4206   echo "$as_me: program exited with status $ac_status" >&5
4207 echo "$as_me: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4209 ( exit $ac_status )
4210 ac_cv_rl_version='0.0'
4211 fi
4212 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4213 fi
4214 fi
4215
4216
4217 CFLAGS="$_save_CFLAGS"
4218 LDFLAGS="$_save_LDFLAGS"
4219 LIBS="$_save_LIBS"
4220
4221 RL_MAJOR=0
4222 RL_MINOR=0
4223
4224 # (
4225 case "$ac_cv_rl_version" in
4226 2*|3*|4*|5*|6*|7*|8*|9*)
4227         RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
4228         RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
4229         ;;
4230 esac
4231
4232 # (((
4233 case $RL_MAJOR in
4234 [0-9][0-9])     _RL_MAJOR=$RL_MAJOR ;;
4235 [0-9])  _RL_MAJOR=0$RL_MAJOR ;;
4236 *)              _RL_MAJOR=00 ;;
4237 esac
4238
4239 # (((
4240 case $RL_MINOR in
4241 [0-9][0-9])     _RL_MINOR=$RL_MINOR ;;
4242 [0-9])  _RL_MINOR=0$RL_MINOR ;;
4243 *)              _RL_MINOR=00 ;;
4244 esac
4245
4246 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
4247
4248 # Readline versions greater than 4.2 have these defines in readline.h
4249
4250 if test $ac_cv_rl_version = '0.0' ; then
4251         { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
4252 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
4253 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
4254         # set these for use by the caller
4255         RL_PREFIX=$ac_cv_rl_prefix
4256         RL_LIBDIR=$ac_cv_rl_libdir
4257         RL_INCLUDEDIR=$ac_cv_rl_includedir
4258         echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4259 echo "${ECHO_T}$ac_cv_rl_version" >&6
4260 else
4261
4262
4263 cat >>confdefs.h <<_ACEOF
4264 #define RL_READLINE_VERSION $RL_VERSION
4265 _ACEOF
4266
4267
4268 cat >>confdefs.h <<_ACEOF
4269 #define RL_VERSION_MAJOR $RL_MAJOR
4270 _ACEOF
4271
4272
4273 cat >>confdefs.h <<_ACEOF
4274 #define RL_VERSION_MINOR $RL_MINOR
4275 _ACEOF
4276
4277
4278
4279
4280
4281
4282 # set these for use by the caller
4283 RL_PREFIX=$ac_cv_rl_prefix
4284 RL_LIBDIR=$ac_cv_rl_libdir
4285 RL_INCLUDEDIR=$ac_cv_rl_includedir
4286
4287 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4288 echo "${ECHO_T}$ac_cv_rl_version" >&6
4289
4290 fi
4291
4292
4293         case "$ac_cv_rl_version" in
4294         5*|6*|7*|8*|9*) ;;
4295         *)      opt_with_installed_readline=no
4296                 { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
4297 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
4298                 { echo "$as_me:$LINENO: WARNING: using private bash version" >&5
4299 echo "$as_me: WARNING: using private bash version" >&2;}
4300                 ;;
4301         esac
4302 fi
4303
4304 TILDE_LIB=-ltilde
4305 if test $opt_readline = yes; then
4306         cat >>confdefs.h <<\_ACEOF
4307 #define READLINE 1
4308 _ACEOF
4309
4310         if test "$opt_with_installed_readline" != "no" ; then
4311                 case "$opt_with_installed_readline" in
4312                 yes)    RL_INCLUDE= ;;
4313                 *)      case "$RL_INCLUDEDIR" in
4314                         /usr/include)   ;;
4315                         *)              RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4316                         esac
4317                         ;;
4318                 esac
4319                 READLINE_DEP=
4320                 READLINE_LIB=-lreadline
4321                 # section for OS versions that don't allow unresolved symbols
4322                 # to be compiled into dynamic libraries.
4323                 case "$host_os" in
4324                 cygwin*)        TILDE_LIB= ;;
4325                 esac
4326         else
4327                 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4328                 READLINE_DEP='$(READLINE_LIBRARY)'
4329                 # section for OS versions that ship an older/broken version of
4330                 # readline as a standard dynamic library and don't allow a
4331                 # static version specified as -llibname to override the
4332                 # dynamic version
4333                 case "${host_os}" in
4334                 darwin8*)       READLINE_LIB='${READLINE_LIBRARY}' ;;
4335                 *)              READLINE_LIB=-lreadline ;;
4336                 esac
4337         fi
4338 else
4339         RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4340         READLINE_LIB= READLINE_DEP=
4341 fi
4342 if test $opt_history = yes || test $opt_bang_history = yes; then
4343         if test $opt_history = yes; then
4344                 cat >>confdefs.h <<\_ACEOF
4345 #define HISTORY 1
4346 _ACEOF
4347
4348         fi
4349         if test $opt_bang_history = yes; then
4350                 cat >>confdefs.h <<\_ACEOF
4351 #define BANG_HISTORY 1
4352 _ACEOF
4353
4354         fi
4355         if test "$opt_with_installed_readline" != "no"; then
4356                 HIST_LIBDIR=$RL_LIBDIR
4357                 HISTORY_DEP=
4358                 HISTORY_LIB=-lhistory
4359                 case "$opt_with_installed_readline" in
4360                 yes)    RL_INCLUDE= ;;
4361                 *)      case "$RL_INCLUDEDIR" in
4362                         /usr/include)   ;;
4363                         *)              RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4364                         esac
4365                         ;;
4366                 esac
4367         else
4368                 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4369                 HISTORY_DEP='$(HISTORY_LIBRARY)'
4370                 # section for OS versions that ship an older version of
4371                 # readline as a standard dynamic library and don't allow a
4372                 # static version specified as -llibname to override the
4373                 # dynamic version
4374                 case "${host_os}" in
4375                 darwin8*)       HISTORY_LIB='${HISTORY_LIBRARY}' ;;
4376                 *)              HISTORY_LIB=-lhistory ;;
4377                 esac
4378         fi
4379 else
4380         HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4381         HISTORY_LIB= HISTORY_DEP=
4382 fi
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394 # Find a good install program.  We prefer a C program (faster),
4395 # so one script is as good as another.  But avoid the broken or
4396 # incompatible versions:
4397 # SysV /etc/install, /usr/sbin/install
4398 # SunOS /usr/etc/install
4399 # IRIX /sbin/install
4400 # AIX /bin/install
4401 # AmigaOS /C/install, which installs bootblocks on floppy discs
4402 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4403 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4404 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4405 # ./install, which can be erroneously created by make from ./install.sh.
4406 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4407 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4408 if test -z "$INSTALL"; then
4409 if test "${ac_cv_path_install+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415   IFS=$as_save_IFS
4416   test -z "$as_dir" && as_dir=.
4417   # Account for people who put trailing slashes in PATH elements.
4418 case $as_dir/ in
4419   ./ | .// | /cC/* | \
4420   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4421   /usr/ucb/* ) ;;
4422   *)
4423     # OSF1 and SCO ODT 3.0 have their own names for install.
4424     # Don't use installbsd from OSF since it installs stuff as root
4425     # by default.
4426     for ac_prog in ginstall scoinst install; do
4427       for ac_exec_ext in '' $ac_executable_extensions; do
4428         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4429           if test $ac_prog = install &&
4430             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4431             # AIX install.  It has an incompatible calling convention.
4432             :
4433           elif test $ac_prog = install &&
4434             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4435             # program-specific install script used by HP pwplus--don't use.
4436             :
4437           else
4438             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4439             break 3
4440           fi
4441         fi
4442       done
4443     done
4444     ;;
4445 esac
4446 done
4447
4448
4449 fi
4450   if test "${ac_cv_path_install+set}" = set; then
4451     INSTALL=$ac_cv_path_install
4452   else
4453     # As a last resort, use the slow shell script.  We don't cache a
4454     # path for INSTALL within a source directory, because that will
4455     # break other packages using the cache if that directory is
4456     # removed, or if the path is relative.
4457     INSTALL=$ac_install_sh
4458   fi
4459 fi
4460 echo "$as_me:$LINENO: result: $INSTALL" >&5
4461 echo "${ECHO_T}$INSTALL" >&6
4462
4463 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4464 # It thinks the first close brace ends the variable substitution.
4465 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4466
4467 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4468
4469 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4470
4471 # Extract the first word of "ar", so it can be a program name with args.
4472 set dummy ar; ac_word=$2
4473 echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4475 if test "${ac_cv_prog_AR+set}" = set; then
4476   echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478   if test -n "$AR"; then
4479   ac_cv_prog_AR="$AR" # Let the user override the test.
4480 else
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488     ac_cv_prog_AR=""
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494
4495   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
4496 fi
4497 fi
4498 AR=$ac_cv_prog_AR
4499 if test -n "$AR"; then
4500   echo "$as_me:$LINENO: result: $AR" >&5
4501 echo "${ECHO_T}$AR" >&6
4502 else
4503   echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4505 fi
4506
4507 test -n "$ARFLAGS" || ARFLAGS="cr"
4508 if test -n "$ac_tool_prefix"; then
4509   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4510 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_prog_RANLIB+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   if test -n "$RANLIB"; then
4517   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   test -z "$as_dir" && as_dir=.
4524   for ac_exec_ext in '' $ac_executable_extensions; do
4525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528     break 2
4529   fi
4530 done
4531 done
4532
4533 fi
4534 fi
4535 RANLIB=$ac_cv_prog_RANLIB
4536 if test -n "$RANLIB"; then
4537   echo "$as_me:$LINENO: result: $RANLIB" >&5
4538 echo "${ECHO_T}$RANLIB" >&6
4539 else
4540   echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6
4542 fi
4543
4544 fi
4545 if test -z "$ac_cv_prog_RANLIB"; then
4546   ac_ct_RANLIB=$RANLIB
4547   # Extract the first word of "ranlib", so it can be a program name with args.
4548 set dummy ranlib; ac_word=$2
4549 echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4551 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   if test -n "$ac_ct_RANLIB"; then
4555   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560   IFS=$as_save_IFS
4561   test -z "$as_dir" && as_dir=.
4562   for ac_exec_ext in '' $ac_executable_extensions; do
4563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564     ac_cv_prog_ac_ct_RANLIB="ranlib"
4565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566     break 2
4567   fi
4568 done
4569 done
4570
4571   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4572 fi
4573 fi
4574 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4575 if test -n "$ac_ct_RANLIB"; then
4576   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4577 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4578 else
4579   echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4581 fi
4582
4583   RANLIB=$ac_ct_RANLIB
4584 else
4585   RANLIB="$ac_cv_prog_RANLIB"
4586 fi
4587
4588 for ac_prog in 'bison -y' byacc
4589 do
4590   # Extract the first word of "$ac_prog", so it can be a program name with args.
4591 set dummy $ac_prog; ac_word=$2
4592 echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594 if test "${ac_cv_prog_YACC+set}" = set; then
4595   echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597   if test -n "$YACC"; then
4598   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603   IFS=$as_save_IFS
4604   test -z "$as_dir" && as_dir=.
4605   for ac_exec_ext in '' $ac_executable_extensions; do
4606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607     ac_cv_prog_YACC="$ac_prog"
4608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609     break 2
4610   fi
4611 done
4612 done
4613
4614 fi
4615 fi
4616 YACC=$ac_cv_prog_YACC
4617 if test -n "$YACC"; then
4618   echo "$as_me:$LINENO: result: $YACC" >&5
4619 echo "${ECHO_T}$YACC" >&6
4620 else
4621   echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6
4623 fi
4624
4625   test -n "$YACC" && break
4626 done
4627 test -n "$YACC" || YACC="yacc"
4628
4629 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
4630 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4631 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4632 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635   cat >conftest.make <<\_ACEOF
4636 all:
4637         @echo 'ac_maketemp="${MAKE}"'
4638 _ACEOF
4639 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4640 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4641 if test -n "$ac_maketemp"; then
4642   eval ac_cv_prog_make_${ac_make}_set=yes
4643 else
4644   eval ac_cv_prog_make_${ac_make}_set=no
4645 fi
4646 rm -f conftest.make
4647 fi
4648 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4649   echo "$as_me:$LINENO: result: yes" >&5
4650 echo "${ECHO_T}yes" >&6
4651   SET_MAKE=
4652 else
4653   echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6
4655   SET_MAKE="MAKE=${MAKE-make}"
4656 fi
4657
4658
4659 case "$host_os" in
4660 opennt*|interix*)       MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
4661 *)                      MAKE_SHELL=/bin/sh ;;
4662 esac
4663
4664
4665 if test x$SIZE = x; then
4666         if test x$ac_tool_prefix = x; then
4667                 SIZE=size
4668         else
4669                 SIZE=${ac_tool_prefix}size
4670                 save_IFS=$IFS ; IFS=:
4671                 size_found=0
4672                 for dir in $PATH; do
4673                         if test -x $dir/$SIZE ; then
4674                                 size_found=1
4675                                 break
4676                         fi
4677                 done
4678                 if test $size_found -eq 0; then
4679                         SIZE=:
4680                 fi
4681                 IFS=$save_IFS
4682         fi
4683 fi
4684
4685
4686 cat >>confdefs.h <<\_ACEOF
4687 #define _GNU_SOURCE 1
4688 _ACEOF
4689
4690
4691 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4692 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4693 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   ac_cv_prog_cc_stdc=no
4697 ac_save_CC=$CC
4698 cat >conftest.$ac_ext <<_ACEOF
4699 #line $LINENO "configure"
4700 #include "confdefs.h"
4701 #include <stdarg.h>
4702 #include <stdio.h>
4703 #include <sys/types.h>
4704 #include <sys/stat.h>
4705 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4706 struct buf { int x; };
4707 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4708 static char *e (p, i)
4709      char **p;
4710      int i;
4711 {
4712   return p[i];
4713 }
4714 static char *f (char * (*g) (char **, int), char **p, ...)
4715 {
4716   char *s;
4717   va_list v;
4718   va_start (v,p);
4719   s = g (p, va_arg (v,int));
4720   va_end (v);
4721   return s;
4722 }
4723 int test (int i, double x);
4724 struct s1 {int (*f) (int a);};
4725 struct s2 {int (*f) (double a);};
4726 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4727 int argc;
4728 char **argv;
4729 #ifdef F77_DUMMY_MAIN
4730 #  ifdef __cplusplus
4731      extern "C"
4732 #  endif
4733    int F77_DUMMY_MAIN() { return 1; }
4734 #endif
4735 int
4736 main ()
4737 {
4738 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4739   ;
4740   return 0;
4741 }
4742 _ACEOF
4743 # Don't try gcc -ansi; that turns off useful extensions and
4744 # breaks some systems' header files.
4745 # AIX                   -qlanglvl=ansi
4746 # Ultrix and OSF/1      -std1
4747 # HP-UX 10.20 and later -Ae
4748 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4749 # SVR4                  -Xc -D__EXTENSIONS__
4750 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4751 do
4752   CC="$ac_save_CC $ac_arg"
4753   rm -f conftest.$ac_objext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4755   (eval $ac_compile) 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); } &&
4759          { ac_try='test -s conftest.$ac_objext'
4760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761   (eval $ac_try) 2>&5
4762   ac_status=$?
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); }; }; then
4765   ac_cv_prog_cc_stdc=$ac_arg
4766 break
4767 else
4768   echo "$as_me: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4770 fi
4771 rm -f conftest.$ac_objext
4772 done
4773 rm -f conftest.$ac_ext conftest.$ac_objext
4774 CC=$ac_save_CC
4775
4776 fi
4777
4778 case "x$ac_cv_prog_cc_stdc" in
4779   x|xno)
4780     echo "$as_me:$LINENO: result: none needed" >&5
4781 echo "${ECHO_T}none needed" >&6 ;;
4782   *)
4783     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4784 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4785     CC="$CC $ac_cv_prog_cc_stdc" ;;
4786 esac
4787
4788 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4789 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4790 if test "${ac_cv_c_const+set}" = set; then
4791   echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793   cat >conftest.$ac_ext <<_ACEOF
4794 #line $LINENO "configure"
4795 #include "confdefs.h"
4796
4797 #ifdef F77_DUMMY_MAIN
4798 #  ifdef __cplusplus
4799      extern "C"
4800 #  endif
4801    int F77_DUMMY_MAIN() { return 1; }
4802 #endif
4803 int
4804 main ()
4805 {
4806 /* FIXME: Include the comments suggested by Paul. */
4807 #ifndef __cplusplus
4808   /* Ultrix mips cc rejects this.  */
4809   typedef int charset[2];
4810   const charset x;
4811   /* SunOS 4.1.1 cc rejects this.  */
4812   char const *const *ccp;
4813   char **p;
4814   /* NEC SVR4.0.2 mips cc rejects this.  */
4815   struct point {int x, y;};
4816   static struct point const zero = {0,0};
4817   /* AIX XL C 1.02.0.0 rejects this.
4818      It does not let you subtract one const X* pointer from another in
4819      an arm of an if-expression whose if-part is not a constant
4820      expression */
4821   const char *g = "string";
4822   ccp = &g + (g ? g-g : 0);
4823   /* HPUX 7.0 cc rejects these. */
4824   ++ccp;
4825   p = (char**) ccp;
4826   ccp = (char const *const *) p;
4827   { /* SCO 3.2v4 cc rejects this.  */
4828     char *t;
4829     char const *s = 0 ? (char *) 0 : (char const *) 0;
4830
4831     *t++ = 0;
4832   }
4833   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4834     int x[] = {25, 17};
4835     const int *foo = &x[0];
4836     ++foo;
4837   }
4838   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4839     typedef const int *iptr;
4840     iptr p = 0;
4841     ++p;
4842   }
4843   { /* AIX XL C 1.02.0.0 rejects this saying
4844        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4845     struct s { int j; const int *ap[3]; };
4846     struct s *b; b->j = 5;
4847   }
4848   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4849     const int foo = 10;
4850   }
4851 #endif
4852
4853   ;
4854   return 0;
4855 }
4856 _ACEOF
4857 rm -f conftest.$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859   (eval $ac_compile) 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); } &&
4863          { ac_try='test -s conftest.$ac_objext'
4864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865   (eval $ac_try) 2>&5
4866   ac_status=$?
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); }; }; then
4869   ac_cv_c_const=yes
4870 else
4871   echo "$as_me: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4873 ac_cv_c_const=no
4874 fi
4875 rm -f conftest.$ac_objext conftest.$ac_ext
4876 fi
4877 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4878 echo "${ECHO_T}$ac_cv_c_const" >&6
4879 if test $ac_cv_c_const = no; then
4880
4881 cat >>confdefs.h <<\_ACEOF
4882 #define const
4883 _ACEOF
4884
4885 fi
4886
4887 echo "$as_me:$LINENO: checking for inline" >&5
4888 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4889 if test "${ac_cv_c_inline+set}" = set; then
4890   echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892   ac_cv_c_inline=no
4893 for ac_kw in inline __inline__ __inline; do
4894   cat >conftest.$ac_ext <<_ACEOF
4895 #line $LINENO "configure"
4896 #include "confdefs.h"
4897 #ifndef __cplusplus
4898 static $ac_kw int static_foo () {return 0; }
4899 $ac_kw int foo () {return 0; }
4900 #endif
4901
4902 _ACEOF
4903 rm -f conftest.$ac_objext
4904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4905   (eval $ac_compile) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); } &&
4909          { ac_try='test -s conftest.$ac_objext'
4910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911   (eval $ac_try) 2>&5
4912   ac_status=$?
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); }; }; then
4915   ac_cv_c_inline=$ac_kw; break
4916 else
4917   echo "$as_me: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4919 fi
4920 rm -f conftest.$ac_objext conftest.$ac_ext
4921 done
4922
4923 fi
4924 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4925 echo "${ECHO_T}$ac_cv_c_inline" >&6
4926 case $ac_cv_c_inline in
4927   inline | yes) ;;
4928   no)
4929 cat >>confdefs.h <<\_ACEOF
4930 #define inline
4931 _ACEOF
4932  ;;
4933   *)  cat >>confdefs.h <<_ACEOF
4934 #define inline $ac_cv_c_inline
4935 _ACEOF
4936  ;;
4937 esac
4938
4939 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4940 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4941 if test "${ac_cv_c_bigendian+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   # See if sys/param.h defines the BYTE_ORDER macro.
4945 cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4947 #include "confdefs.h"
4948 #include <sys/types.h>
4949 #include <sys/param.h>
4950
4951 #ifdef F77_DUMMY_MAIN
4952 #  ifdef __cplusplus
4953      extern "C"
4954 #  endif
4955    int F77_DUMMY_MAIN() { return 1; }
4956 #endif
4957 int
4958 main ()
4959 {
4960 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4961  bogus endian macros
4962 #endif
4963
4964   ;
4965   return 0;
4966 }
4967 _ACEOF
4968 rm -f conftest.$ac_objext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970   (eval $ac_compile) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); } &&
4974          { ac_try='test -s conftest.$ac_objext'
4975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976   (eval $ac_try) 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); }; }; then
4980   # It does; now see whether it defined to BIG_ENDIAN or not.
4981 cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4983 #include "confdefs.h"
4984 #include <sys/types.h>
4985 #include <sys/param.h>
4986
4987 #ifdef F77_DUMMY_MAIN
4988 #  ifdef __cplusplus
4989      extern "C"
4990 #  endif
4991    int F77_DUMMY_MAIN() { return 1; }
4992 #endif
4993 int
4994 main ()
4995 {
4996 #if BYTE_ORDER != BIG_ENDIAN
4997  not big endian
4998 #endif
4999
5000   ;
5001   return 0;
5002 }
5003 _ACEOF
5004 rm -f conftest.$ac_objext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006   (eval $ac_compile) 2>&5
5007   ac_status=$?
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); } &&
5010          { ac_try='test -s conftest.$ac_objext'
5011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012   (eval $ac_try) 2>&5
5013   ac_status=$?
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); }; }; then
5016   ac_cv_c_bigendian=yes
5017 else
5018   echo "$as_me: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5020 ac_cv_c_bigendian=no
5021 fi
5022 rm -f conftest.$ac_objext conftest.$ac_ext
5023 else
5024   echo "$as_me: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5026 # It does not; compile a test program.
5027 if test "$cross_compiling" = yes; then
5028   # try to guess the endianess by grep'ing values into an object file
5029   ac_cv_c_bigendian=unknown
5030   cat >conftest.$ac_ext <<_ACEOF
5031 #line $LINENO "configure"
5032 #include "confdefs.h"
5033 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5034 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5035 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5036 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5037 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5038 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5039 #ifdef F77_DUMMY_MAIN
5040 #  ifdef __cplusplus
5041      extern "C"
5042 #  endif
5043    int F77_DUMMY_MAIN() { return 1; }
5044 #endif
5045 int
5046 main ()
5047 {
5048  _ascii (); _ebcdic ();
5049   ;
5050   return 0;
5051 }
5052 _ACEOF
5053 rm -f conftest.$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055   (eval $ac_compile) 2>&5
5056   ac_status=$?
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); } &&
5059          { ac_try='test -s conftest.$ac_objext'
5060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061   (eval $ac_try) 2>&5
5062   ac_status=$?
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); }; }; then
5065   if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5066   ac_cv_c_bigendian=yes
5067 fi
5068 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5069   if test "$ac_cv_c_bigendian" = unknown; then
5070     ac_cv_c_bigendian=no
5071   else
5072     # finding both strings is unlikely to happen, but who knows?
5073     ac_cv_c_bigendian=unknown
5074   fi
5075 fi
5076 else
5077   echo "$as_me: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5079 fi
5080 rm -f conftest.$ac_objext conftest.$ac_ext
5081 else
5082   cat >conftest.$ac_ext <<_ACEOF
5083 #line $LINENO "configure"
5084 #include "confdefs.h"
5085 int
5086 main ()
5087 {
5088   /* Are we little or big endian?  From Harbison&Steele.  */
5089   union
5090   {
5091     long l;
5092     char c[sizeof (long)];
5093   } u;
5094   u.l = 1;
5095   exit (u.c[sizeof (long) - 1] == 1);
5096 }
5097 _ACEOF
5098 rm -f conftest$ac_exeext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5100   (eval $ac_link) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; }; then
5109   ac_cv_c_bigendian=no
5110 else
5111   echo "$as_me: program exited with status $ac_status" >&5
5112 echo "$as_me: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5114 ( exit $ac_status )
5115 ac_cv_c_bigendian=yes
5116 fi
5117 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5118 fi
5119 fi
5120 rm -f conftest.$ac_objext conftest.$ac_ext
5121 fi
5122 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5123 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5124 case $ac_cv_c_bigendian in
5125   yes)
5126
5127 cat >>confdefs.h <<\_ACEOF
5128 #define WORDS_BIGENDIAN 1
5129 _ACEOF
5130  ;;
5131   no)
5132      ;;
5133   *)
5134     { { echo "$as_me:$LINENO: error: unknown endianess
5135 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5136 echo "$as_me: error: unknown endianess
5137 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5138    { (exit 1); exit 1; }; } ;;
5139 esac
5140
5141 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
5142 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
5143 if test "${ac_cv_c_stringize+set}" = set; then
5144   echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146   cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5148 #include "confdefs.h"
5149 #define x(y) #y
5150
5151 char *s = x(teststring);
5152 _ACEOF
5153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5154   egrep "#teststring" >/dev/null 2>&1; then
5155   ac_cv_c_stringize=no
5156 else
5157   ac_cv_c_stringize=yes
5158 fi
5159 rm -f conftest*
5160
5161 fi
5162 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
5163 echo "${ECHO_T}$ac_cv_c_stringize" >&6
5164 if test $ac_cv_c_stringize = yes; then
5165
5166 cat >>confdefs.h <<\_ACEOF
5167 #define HAVE_STRINGIZE 1
5168 _ACEOF
5169
5170 fi
5171
5172 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5173 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5174 if test "${ac_cv_c_long_double+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   cat >conftest.$ac_ext <<_ACEOF
5178 #line $LINENO "configure"
5179 #include "confdefs.h"
5180 #include <float.h>
5181           long double foo = 0.0;
5182 #ifdef F77_DUMMY_MAIN
5183 #  ifdef __cplusplus
5184      extern "C"
5185 #  endif
5186    int F77_DUMMY_MAIN() { return 1; }
5187 #endif
5188 int
5189 main ()
5190 {
5191 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
5192           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5193           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5194 test_array [0] = 0
5195
5196   ;
5197   return 0;
5198 }
5199 _ACEOF
5200 rm -f conftest.$ac_objext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202   (eval $ac_compile) 2>&5
5203   ac_status=$?
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); } &&
5206          { ac_try='test -s conftest.$ac_objext'
5207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208   (eval $ac_try) 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); }; }; then
5212   ac_cv_c_long_double=yes
5213 else
5214   echo "$as_me: failed program was:" >&5
5215 cat conftest.$ac_ext >&5
5216 ac_cv_c_long_double=no
5217 fi
5218 rm -f conftest.$ac_objext conftest.$ac_ext
5219 fi
5220 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5221 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5222 if test $ac_cv_c_long_double = yes; then
5223
5224 cat >>confdefs.h <<\_ACEOF
5225 #define HAVE_LONG_DOUBLE 1
5226 _ACEOF
5227
5228 fi
5229
5230 echo "$as_me:$LINENO: checking for function prototypes" >&5
5231 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5232 if test "$ac_cv_prog_cc_stdc" != no; then
5233   echo "$as_me:$LINENO: result: yes" >&5
5234 echo "${ECHO_T}yes" >&6
5235
5236 cat >>confdefs.h <<\_ACEOF
5237 #define PROTOTYPES 1
5238 _ACEOF
5239
5240
5241 cat >>confdefs.h <<\_ACEOF
5242 #define __PROTOTYPES 1
5243 _ACEOF
5244
5245 else
5246   echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6
5248 fi
5249
5250
5251 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5252 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5253 if test "${ac_cv_c_char_unsigned+set}" = set; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256   cat >conftest.$ac_ext <<_ACEOF
5257 #line $LINENO "configure"
5258 #include "confdefs.h"
5259 $ac_includes_default
5260 #ifdef F77_DUMMY_MAIN
5261 #  ifdef __cplusplus
5262      extern "C"
5263 #  endif
5264    int F77_DUMMY_MAIN() { return 1; }
5265 #endif
5266 int
5267 main ()
5268 {
5269 static int test_array [1 - 2 * !(((char) -1) < 0)];
5270 test_array [0] = 0
5271
5272   ;
5273   return 0;
5274 }
5275 _ACEOF
5276 rm -f conftest.$ac_objext
5277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5278   (eval $ac_compile) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); } &&
5282          { ac_try='test -s conftest.$ac_objext'
5283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284   (eval $ac_try) 2>&5
5285   ac_status=$?
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); }; }; then
5288   ac_cv_c_char_unsigned=no
5289 else
5290   echo "$as_me: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5292 ac_cv_c_char_unsigned=yes
5293 fi
5294 rm -f conftest.$ac_objext conftest.$ac_ext
5295 fi
5296 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5297 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5298 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5299   cat >>confdefs.h <<\_ACEOF
5300 #define __CHAR_UNSIGNED__ 1
5301 _ACEOF
5302
5303 fi
5304
5305
5306
5307         MKINSTALLDIRS=
5308   if test -n "$ac_aux_dir"; then
5309     case "$ac_aux_dir" in
5310       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5311       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5312     esac
5313   fi
5314   if test -z "$MKINSTALLDIRS"; then
5315     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5316   fi
5317
5318
5319
5320   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5321 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5322     # Check whether --enable-nls or --disable-nls was given.
5323 if test "${enable_nls+set}" = set; then
5324   enableval="$enable_nls"
5325   USE_NLS=$enableval
5326 else
5327   USE_NLS=yes
5328 fi;
5329   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5330 echo "${ECHO_T}$USE_NLS" >&6
5331
5332
5333
5334
5335
5336
5337 # Prepare PATH_SEPARATOR.
5338 # The user is always right.
5339 if test "${PATH_SEPARATOR+set}" != set; then
5340   echo "#! /bin/sh" >conf$$.sh
5341   echo  "exit 0"   >>conf$$.sh
5342   chmod +x conf$$.sh
5343   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5344     PATH_SEPARATOR=';'
5345   else
5346     PATH_SEPARATOR=:
5347   fi
5348   rm -f conf$$.sh
5349 fi
5350
5351 # Find out how to test for executable files. Don't use a zero-byte file,
5352 # as systems may use methods other than mode bits to determine executability.
5353 cat >conf$$.file <<_ASEOF
5354 #! /bin/sh
5355 exit 0
5356 _ASEOF
5357 chmod +x conf$$.file
5358 if test -x conf$$.file >/dev/null 2>&1; then
5359   ac_executable_p="test -x"
5360 else
5361   ac_executable_p="test -f"
5362 fi
5363 rm -f conf$$.file
5364
5365 # Extract the first word of "msgfmt", so it can be a program name with args.
5366 set dummy msgfmt; ac_word=$2
5367 echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5369 if test "${ac_cv_path_MSGFMT+set}" = set; then
5370   echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372   case "$MSGFMT" in
5373   [\\/]* | ?:[\\/]*)
5374     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5375     ;;
5376   *)
5377     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5378     for ac_dir in $PATH; do
5379       IFS="$ac_save_IFS"
5380       test -z "$ac_dir" && ac_dir=.
5381       for ac_exec_ext in '' $ac_executable_extensions; do
5382         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5383           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5384      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5385             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5386             break 2
5387           fi
5388         fi
5389       done
5390     done
5391     IFS="$ac_save_IFS"
5392   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5393     ;;
5394 esac
5395 fi
5396 MSGFMT="$ac_cv_path_MSGFMT"
5397 if test "$MSGFMT" != ":"; then
5398   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5399 echo "${ECHO_T}$MSGFMT" >&6
5400 else
5401   echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6
5403 fi
5404
5405   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5406 set dummy gmsgfmt; ac_word=$2
5407 echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5410   echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412   case $GMSGFMT in
5413   [\\/]* | ?:[\\/]*)
5414   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5415   ;;
5416   *)
5417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5419 do
5420   IFS=$as_save_IFS
5421   test -z "$as_dir" && as_dir=.
5422   for ac_exec_ext in '' $ac_executable_extensions; do
5423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426     break 2
5427   fi
5428 done
5429 done
5430
5431   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5432   ;;
5433 esac
5434 fi
5435 GMSGFMT=$ac_cv_path_GMSGFMT
5436
5437 if test -n "$GMSGFMT"; then
5438   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5439 echo "${ECHO_T}$GMSGFMT" >&6
5440 else
5441   echo "$as_me:$LINENO: result: no" >&5
5442 echo "${ECHO_T}no" >&6
5443 fi
5444
5445
5446
5447 # Prepare PATH_SEPARATOR.
5448 # The user is always right.
5449 if test "${PATH_SEPARATOR+set}" != set; then
5450   echo "#! /bin/sh" >conf$$.sh
5451   echo  "exit 0"   >>conf$$.sh
5452   chmod +x conf$$.sh
5453   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5454     PATH_SEPARATOR=';'
5455   else
5456     PATH_SEPARATOR=:
5457   fi
5458   rm -f conf$$.sh
5459 fi
5460
5461 # Find out how to test for executable files. Don't use a zero-byte file,
5462 # as systems may use methods other than mode bits to determine executability.
5463 cat >conf$$.file <<_ASEOF
5464 #! /bin/sh
5465 exit 0
5466 _ASEOF
5467 chmod +x conf$$.file
5468 if test -x conf$$.file >/dev/null 2>&1; then
5469   ac_executable_p="test -x"
5470 else
5471   ac_executable_p="test -f"
5472 fi
5473 rm -f conf$$.file
5474
5475 # Extract the first word of "xgettext", so it can be a program name with args.
5476 set dummy xgettext; ac_word=$2
5477 echo "$as_me:$LINENO: checking for $ac_word" >&5
5478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5479 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5480   echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482   case "$XGETTEXT" in
5483   [\\/]* | ?:[\\/]*)
5484     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5485     ;;
5486   *)
5487     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5488     for ac_dir in $PATH; do
5489       IFS="$ac_save_IFS"
5490       test -z "$ac_dir" && ac_dir=.
5491       for ac_exec_ext in '' $ac_executable_extensions; do
5492         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5493           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5494      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5495             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5496             break 2
5497           fi
5498         fi
5499       done
5500     done
5501     IFS="$ac_save_IFS"
5502   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5503     ;;
5504 esac
5505 fi
5506 XGETTEXT="$ac_cv_path_XGETTEXT"
5507 if test "$XGETTEXT" != ":"; then
5508   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5509 echo "${ECHO_T}$XGETTEXT" >&6
5510 else
5511   echo "$as_me:$LINENO: result: no" >&5
5512 echo "${ECHO_T}no" >&6
5513 fi
5514
5515     rm -f messages.po
5516
5517
5518 # Prepare PATH_SEPARATOR.
5519 # The user is always right.
5520 if test "${PATH_SEPARATOR+set}" != set; then
5521   echo "#! /bin/sh" >conf$$.sh
5522   echo  "exit 0"   >>conf$$.sh
5523   chmod +x conf$$.sh
5524   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5525     PATH_SEPARATOR=';'
5526   else
5527     PATH_SEPARATOR=:
5528   fi
5529   rm -f conf$$.sh
5530 fi
5531
5532 # Find out how to test for executable files. Don't use a zero-byte file,
5533 # as systems may use methods other than mode bits to determine executability.
5534 cat >conf$$.file <<_ASEOF
5535 #! /bin/sh
5536 exit 0
5537 _ASEOF
5538 chmod +x conf$$.file
5539 if test -x conf$$.file >/dev/null 2>&1; then
5540   ac_executable_p="test -x"
5541 else
5542   ac_executable_p="test -f"
5543 fi
5544 rm -f conf$$.file
5545
5546 # Extract the first word of "msgmerge", so it can be a program name with args.
5547 set dummy msgmerge; ac_word=$2
5548 echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5550 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5551   echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553   case "$MSGMERGE" in
5554   [\\/]* | ?:[\\/]*)
5555     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5556     ;;
5557   *)
5558     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5559     for ac_dir in $PATH; do
5560       IFS="$ac_save_IFS"
5561       test -z "$ac_dir" && ac_dir=.
5562       for ac_exec_ext in '' $ac_executable_extensions; do
5563         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5564           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5565             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5566             break 2
5567           fi
5568         fi
5569       done
5570     done
5571     IFS="$ac_save_IFS"
5572   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5573     ;;
5574 esac
5575 fi
5576 MSGMERGE="$ac_cv_path_MSGMERGE"
5577 if test "$MSGMERGE" != ":"; then
5578   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5579 echo "${ECHO_T}$MSGMERGE" >&6
5580 else
5581   echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6
5583 fi
5584
5585
5586       if test "$GMSGFMT" != ":"; then
5587             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5588        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5589       : ;
5590     else
5591       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5592       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5593 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5594       GMSGFMT=":"
5595     fi
5596   fi
5597
5598       if test "$XGETTEXT" != ":"; then
5599             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5600        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5601       : ;
5602     else
5603       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5604 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5605       XGETTEXT=":"
5606     fi
5607         rm -f messages.po
5608   fi
5609
5610   ac_config_commands="$ac_config_commands default-1"
5611
5612
5613 echo "$as_me:$LINENO: checking for off_t" >&5
5614 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5615 if test "${ac_cv_type_off_t+set}" = set; then
5616   echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618   cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5620 #include "confdefs.h"
5621 $ac_includes_default
5622 #ifdef F77_DUMMY_MAIN
5623 #  ifdef __cplusplus
5624      extern "C"
5625 #  endif
5626    int F77_DUMMY_MAIN() { return 1; }
5627 #endif
5628 int
5629 main ()
5630 {
5631 if ((off_t *) 0)
5632   return 0;
5633 if (sizeof (off_t))
5634   return 0;
5635   ;
5636   return 0;
5637 }
5638 _ACEOF
5639 rm -f conftest.$ac_objext
5640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5641   (eval $ac_compile) 2>&5
5642   ac_status=$?
5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); } &&
5645          { ac_try='test -s conftest.$ac_objext'
5646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647   (eval $ac_try) 2>&5
5648   ac_status=$?
5649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650   (exit $ac_status); }; }; then
5651   ac_cv_type_off_t=yes
5652 else
5653   echo "$as_me: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5655 ac_cv_type_off_t=no
5656 fi
5657 rm -f conftest.$ac_objext conftest.$ac_ext
5658 fi
5659 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5660 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5661 if test $ac_cv_type_off_t = yes; then
5662   :
5663 else
5664
5665 cat >>confdefs.h <<_ACEOF
5666 #define off_t long
5667 _ACEOF
5668
5669 fi
5670
5671 echo "$as_me:$LINENO: checking for size_t" >&5
5672 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5673 if test "${ac_cv_type_size_t+set}" = set; then
5674   echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676   cat >conftest.$ac_ext <<_ACEOF
5677 #line $LINENO "configure"
5678 #include "confdefs.h"
5679 $ac_includes_default
5680 #ifdef F77_DUMMY_MAIN
5681 #  ifdef __cplusplus
5682      extern "C"
5683 #  endif
5684    int F77_DUMMY_MAIN() { return 1; }
5685 #endif
5686 int
5687 main ()
5688 {
5689 if ((size_t *) 0)
5690   return 0;
5691 if (sizeof (size_t))
5692   return 0;
5693   ;
5694   return 0;
5695 }
5696 _ACEOF
5697 rm -f conftest.$ac_objext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699   (eval $ac_compile) 2>&5
5700   ac_status=$?
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); } &&
5703          { ac_try='test -s conftest.$ac_objext'
5704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705   (eval $ac_try) 2>&5
5706   ac_status=$?
5707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708   (exit $ac_status); }; }; then
5709   ac_cv_type_size_t=yes
5710 else
5711   echo "$as_me: failed program was:" >&5
5712 cat conftest.$ac_ext >&5
5713 ac_cv_type_size_t=no
5714 fi
5715 rm -f conftest.$ac_objext conftest.$ac_ext
5716 fi
5717 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5718 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5719 if test $ac_cv_type_size_t = yes; then
5720   :
5721 else
5722
5723 cat >>confdefs.h <<_ACEOF
5724 #define size_t unsigned
5725 _ACEOF
5726
5727 fi
5728
5729 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5730 # for constant arguments.  Useless!
5731 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5732 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5733 if test "${ac_cv_working_alloca_h+set}" = set; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736   cat >conftest.$ac_ext <<_ACEOF
5737 #line $LINENO "configure"
5738 #include "confdefs.h"
5739 #include <alloca.h>
5740 #ifdef F77_DUMMY_MAIN
5741 #  ifdef __cplusplus
5742      extern "C"
5743 #  endif
5744    int F77_DUMMY_MAIN() { return 1; }
5745 #endif
5746 int
5747 main ()
5748 {
5749 char *p = (char *) alloca (2 * sizeof (int));
5750   ;
5751   return 0;
5752 }
5753 _ACEOF
5754 rm -f conftest.$ac_objext conftest$ac_exeext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756   (eval $ac_link) 2>&5
5757   ac_status=$?
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); } &&
5760          { ac_try='test -s conftest$ac_exeext'
5761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762   (eval $ac_try) 2>&5
5763   ac_status=$?
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); }; }; then
5766   ac_cv_working_alloca_h=yes
5767 else
5768   echo "$as_me: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5770 ac_cv_working_alloca_h=no
5771 fi
5772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5773 fi
5774 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5775 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5776 if test $ac_cv_working_alloca_h = yes; then
5777
5778 cat >>confdefs.h <<\_ACEOF
5779 #define HAVE_ALLOCA_H 1
5780 _ACEOF
5781
5782 fi
5783
5784 echo "$as_me:$LINENO: checking for alloca" >&5
5785 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5786 if test "${ac_cv_func_alloca_works+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   cat >conftest.$ac_ext <<_ACEOF
5790 #line $LINENO "configure"
5791 #include "confdefs.h"
5792 #ifdef __GNUC__
5793 # define alloca __builtin_alloca
5794 #else
5795 # ifdef _MSC_VER
5796 #  include <malloc.h>
5797 #  define alloca _alloca
5798 # else
5799 #  if HAVE_ALLOCA_H
5800 #   include <alloca.h>
5801 #  else
5802 #   ifdef _AIX
5803  #pragma alloca
5804 #   else
5805 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5806 char *alloca ();
5807 #    endif
5808 #   endif
5809 #  endif
5810 # endif
5811 #endif
5812
5813 #ifdef F77_DUMMY_MAIN
5814 #  ifdef __cplusplus
5815      extern "C"
5816 #  endif
5817    int F77_DUMMY_MAIN() { return 1; }
5818 #endif
5819 int
5820 main ()
5821 {
5822 char *p = (char *) alloca (1);
5823   ;
5824   return 0;
5825 }
5826 _ACEOF
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829   (eval $ac_link) 2>&5
5830   ac_status=$?
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); } &&
5833          { ac_try='test -s conftest$ac_exeext'
5834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835   (eval $ac_try) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); }; }; then
5839   ac_cv_func_alloca_works=yes
5840 else
5841   echo "$as_me: failed program was:" >&5
5842 cat conftest.$ac_ext >&5
5843 ac_cv_func_alloca_works=no
5844 fi
5845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5846 fi
5847 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5848 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5849
5850 if test $ac_cv_func_alloca_works = yes; then
5851
5852 cat >>confdefs.h <<\_ACEOF
5853 #define HAVE_ALLOCA 1
5854 _ACEOF
5855
5856 else
5857   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5858 # that cause trouble.  Some versions do not even contain alloca or
5859 # contain a buggy version.  If you still want to use their alloca,
5860 # use ar to extract alloca.o from them instead of compiling alloca.c.
5861
5862 ALLOCA=alloca.$ac_objext
5863
5864 cat >>confdefs.h <<\_ACEOF
5865 #define C_ALLOCA 1
5866 _ACEOF
5867
5868
5869 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5870 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5871 if test "${ac_cv_os_cray+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   cat >conftest.$ac_ext <<_ACEOF
5875 #line $LINENO "configure"
5876 #include "confdefs.h"
5877 #if defined(CRAY) && ! defined(CRAY2)
5878 webecray
5879 #else
5880 wenotbecray
5881 #endif
5882
5883 _ACEOF
5884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5885   egrep "webecray" >/dev/null 2>&1; then
5886   ac_cv_os_cray=yes
5887 else
5888   ac_cv_os_cray=no
5889 fi
5890 rm -f conftest*
5891
5892 fi
5893 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5894 echo "${ECHO_T}$ac_cv_os_cray" >&6
5895 if test $ac_cv_os_cray = yes; then
5896   for ac_func in _getb67 GETB67 getb67; do
5897     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5898 echo "$as_me:$LINENO: checking for $ac_func" >&5
5899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5900 if eval "test \"\${$as_ac_var+set}\" = set"; then
5901   echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903   cat >conftest.$ac_ext <<_ACEOF
5904 #line $LINENO "configure"
5905 #include "confdefs.h"
5906 /* System header to define __stub macros and hopefully few prototypes,
5907     which can conflict with char $ac_func (); below.  */
5908 #include <assert.h>
5909 /* Override any gcc2 internal prototype to avoid an error.  */
5910 #ifdef __cplusplus
5911 extern "C"
5912 #endif
5913 /* We use char because int might match the return type of a gcc2
5914    builtin and then its argument prototype would still apply.  */
5915 char $ac_func ();
5916 char (*f) ();
5917
5918 #ifdef F77_DUMMY_MAIN
5919 #  ifdef __cplusplus
5920      extern "C"
5921 #  endif
5922    int F77_DUMMY_MAIN() { return 1; }
5923 #endif
5924 int
5925 main ()
5926 {
5927 /* The GNU C library defines this for functions which it implements
5928     to always fail with ENOSYS.  Some functions are actually named
5929     something starting with __ and the normal name is an alias.  */
5930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5931 choke me
5932 #else
5933 f = $ac_func;
5934 #endif
5935
5936   ;
5937   return 0;
5938 }
5939 _ACEOF
5940 rm -f conftest.$ac_objext conftest$ac_exeext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942   (eval $ac_link) 2>&5
5943   ac_status=$?
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); } &&
5946          { ac_try='test -s conftest$ac_exeext'
5947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948   (eval $ac_try) 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); }; }; then
5952   eval "$as_ac_var=yes"
5953 else
5954   echo "$as_me: failed program was:" >&5
5955 cat conftest.$ac_ext >&5
5956 eval "$as_ac_var=no"
5957 fi
5958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5959 fi
5960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5962 if test `eval echo '${'$as_ac_var'}'` = yes; then
5963
5964 cat >>confdefs.h <<_ACEOF
5965 #define CRAY_STACKSEG_END $ac_func
5966 _ACEOF
5967
5968     break
5969 fi
5970
5971   done
5972 fi
5973
5974 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5975 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5976 if test "${ac_cv_c_stack_direction+set}" = set; then
5977   echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979   if test "$cross_compiling" = yes; then
5980   ac_cv_c_stack_direction=0
5981 else
5982   cat >conftest.$ac_ext <<_ACEOF
5983 #line $LINENO "configure"
5984 #include "confdefs.h"
5985 int
5986 find_stack_direction ()
5987 {
5988   static char *addr = 0;
5989   auto char dummy;
5990   if (addr == 0)
5991     {
5992       addr = &dummy;
5993       return find_stack_direction ();
5994     }
5995   else
5996     return (&dummy > addr) ? 1 : -1;
5997 }
5998
5999 int
6000 main ()
6001 {
6002   exit (find_stack_direction () < 0);
6003 }
6004 _ACEOF
6005 rm -f conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007   (eval $ac_link) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012   (eval $ac_try) 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); }; }; then
6016   ac_cv_c_stack_direction=1
6017 else
6018   echo "$as_me: program exited with status $ac_status" >&5
6019 echo "$as_me: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6021 ( exit $ac_status )
6022 ac_cv_c_stack_direction=-1
6023 fi
6024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6025 fi
6026 fi
6027 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6028 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6029
6030 cat >>confdefs.h <<_ACEOF
6031 #define STACK_DIRECTION $ac_cv_c_stack_direction
6032 _ACEOF
6033
6034
6035 fi
6036
6037
6038
6039 for ac_header in stdlib.h unistd.h
6040 do
6041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6043   echo "$as_me:$LINENO: checking for $ac_header" >&5
6044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6046   echo $ECHO_N "(cached) $ECHO_C" >&6
6047 fi
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050 else
6051   # Is the header compilable?
6052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6054 cat >conftest.$ac_ext <<_ACEOF
6055 #line $LINENO "configure"
6056 #include "confdefs.h"
6057 $ac_includes_default
6058 #include <$ac_header>
6059 _ACEOF
6060 rm -f conftest.$ac_objext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062   (eval $ac_compile) 2>&5
6063   ac_status=$?
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); } &&
6066          { ac_try='test -s conftest.$ac_objext'
6067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068   (eval $ac_try) 2>&5
6069   ac_status=$?
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); }; }; then
6072   ac_header_compiler=yes
6073 else
6074   echo "$as_me: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6076 ac_header_compiler=no
6077 fi
6078 rm -f conftest.$ac_objext conftest.$ac_ext
6079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6080 echo "${ECHO_T}$ac_header_compiler" >&6
6081
6082 # Is the header present?
6083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6085 cat >conftest.$ac_ext <<_ACEOF
6086 #line $LINENO "configure"
6087 #include "confdefs.h"
6088 #include <$ac_header>
6089 _ACEOF
6090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6092   ac_status=$?
6093   egrep -v '^ *\+' conftest.er1 >conftest.err
6094   rm -f conftest.er1
6095   cat conftest.err >&5
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); } >/dev/null; then
6098   if test -s conftest.err; then
6099     ac_cpp_err=$ac_c_preproc_warn_flag
6100   else
6101     ac_cpp_err=
6102   fi
6103 else
6104   ac_cpp_err=yes
6105 fi
6106 if test -z "$ac_cpp_err"; then
6107   ac_header_preproc=yes
6108 else
6109   echo "$as_me: failed program was:" >&5
6110   cat conftest.$ac_ext >&5
6111   ac_header_preproc=no
6112 fi
6113 rm -f conftest.err conftest.$ac_ext
6114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6115 echo "${ECHO_T}$ac_header_preproc" >&6
6116
6117 # So?  What about this header?
6118 case $ac_header_compiler:$ac_header_preproc in
6119   yes:no )
6120     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6124   no:yes )
6125     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6127     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6131 esac
6132 echo "$as_me:$LINENO: checking for $ac_header" >&5
6133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6135   echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137   eval "$as_ac_Header=$ac_header_preproc"
6138 fi
6139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6141
6142 fi
6143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6144   cat >>confdefs.h <<_ACEOF
6145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6146 _ACEOF
6147
6148 fi
6149
6150 done
6151
6152
6153 for ac_func in getpagesize
6154 do
6155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6156 echo "$as_me:$LINENO: checking for $ac_func" >&5
6157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6158 if eval "test \"\${$as_ac_var+set}\" = set"; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   cat >conftest.$ac_ext <<_ACEOF
6162 #line $LINENO "configure"
6163 #include "confdefs.h"
6164 /* System header to define __stub macros and hopefully few prototypes,
6165     which can conflict with char $ac_func (); below.  */
6166 #include <assert.h>
6167 /* Override any gcc2 internal prototype to avoid an error.  */
6168 #ifdef __cplusplus
6169 extern "C"
6170 #endif
6171 /* We use char because int might match the return type of a gcc2
6172    builtin and then its argument prototype would still apply.  */
6173 char $ac_func ();
6174 char (*f) ();
6175
6176 #ifdef F77_DUMMY_MAIN
6177 #  ifdef __cplusplus
6178      extern "C"
6179 #  endif
6180    int F77_DUMMY_MAIN() { return 1; }
6181 #endif
6182 int
6183 main ()
6184 {
6185 /* The GNU C library defines this for functions which it implements
6186     to always fail with ENOSYS.  Some functions are actually named
6187     something starting with __ and the normal name is an alias.  */
6188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6189 choke me
6190 #else
6191 f = $ac_func;
6192 #endif
6193
6194   ;
6195   return 0;
6196 }
6197 _ACEOF
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200   (eval $ac_link) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); } &&
6204          { ac_try='test -s conftest$ac_exeext'
6205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206   (eval $ac_try) 2>&5
6207   ac_status=$?
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); }; }; then
6210   eval "$as_ac_var=yes"
6211 else
6212   echo "$as_me: failed program was:" >&5
6213 cat conftest.$ac_ext >&5
6214 eval "$as_ac_var=no"
6215 fi
6216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6217 fi
6218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6220 if test `eval echo '${'$as_ac_var'}'` = yes; then
6221   cat >>confdefs.h <<_ACEOF
6222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6223 _ACEOF
6224
6225 fi
6226 done
6227
6228 echo "$as_me:$LINENO: checking for working mmap" >&5
6229 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6230 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233   if test "$cross_compiling" = yes; then
6234   ac_cv_func_mmap_fixed_mapped=no
6235 else
6236   cat >conftest.$ac_ext <<_ACEOF
6237 #line $LINENO "configure"
6238 #include "confdefs.h"
6239 $ac_includes_default
6240 /* malloc might have been renamed as rpl_malloc. */
6241 #undef malloc
6242
6243 /* Thanks to Mike Haertel and Jim Avera for this test.
6244    Here is a matrix of mmap possibilities:
6245         mmap private not fixed
6246         mmap private fixed at somewhere currently unmapped
6247         mmap private fixed at somewhere already mapped
6248         mmap shared not fixed
6249         mmap shared fixed at somewhere currently unmapped
6250         mmap shared fixed at somewhere already mapped
6251    For private mappings, we should verify that changes cannot be read()
6252    back from the file, nor mmap's back from the file at a different
6253    address.  (There have been systems where private was not correctly
6254    implemented like the infamous i386 svr4.0, and systems where the
6255    VM page cache was not coherent with the file system buffer cache
6256    like early versions of FreeBSD and possibly contemporary NetBSD.)
6257    For shared mappings, we should conversely verify that changes get
6258    propagated back to all the places they're supposed to be.
6259
6260    Grep wants private fixed already mapped.
6261    The main things grep needs to know about mmap are:
6262    * does it exist and is it safe to write into the mmap'd area
6263    * how to use it (BSD variants)  */
6264
6265 #include <fcntl.h>
6266 #include <sys/mman.h>
6267
6268 #if !STDC_HEADERS && !HAVE_STDLIB_H
6269 char *malloc ();
6270 #endif
6271
6272 /* This mess was copied from the GNU getpagesize.h.  */
6273 #if !HAVE_GETPAGESIZE
6274 /* Assume that all systems that can run configure have sys/param.h.  */
6275 # if !HAVE_SYS_PARAM_H
6276 #  define HAVE_SYS_PARAM_H 1
6277 # endif
6278
6279 # ifdef _SC_PAGESIZE
6280 #  define getpagesize() sysconf(_SC_PAGESIZE)
6281 # else /* no _SC_PAGESIZE */
6282 #  if HAVE_SYS_PARAM_H
6283 #   include <sys/param.h>
6284 #   ifdef EXEC_PAGESIZE
6285 #    define getpagesize() EXEC_PAGESIZE
6286 #   else /* no EXEC_PAGESIZE */
6287 #    ifdef NBPG
6288 #     define getpagesize() NBPG * CLSIZE
6289 #     ifndef CLSIZE
6290 #      define CLSIZE 1
6291 #     endif /* no CLSIZE */
6292 #    else /* no NBPG */
6293 #     ifdef NBPC
6294 #      define getpagesize() NBPC
6295 #     else /* no NBPC */
6296 #      ifdef PAGESIZE
6297 #       define getpagesize() PAGESIZE
6298 #      endif /* PAGESIZE */
6299 #     endif /* no NBPC */
6300 #    endif /* no NBPG */
6301 #   endif /* no EXEC_PAGESIZE */
6302 #  else /* no HAVE_SYS_PARAM_H */
6303 #   define getpagesize() 8192   /* punt totally */
6304 #  endif /* no HAVE_SYS_PARAM_H */
6305 # endif /* no _SC_PAGESIZE */
6306
6307 #endif /* no HAVE_GETPAGESIZE */
6308
6309 int
6310 main ()
6311 {
6312   char *data, *data2, *data3;
6313   int i, pagesize;
6314   int fd;
6315
6316   pagesize = getpagesize ();
6317
6318   /* First, make a file with some known garbage in it. */
6319   data = (char *) malloc (pagesize);
6320   if (!data)
6321     exit (1);
6322   for (i = 0; i < pagesize; ++i)
6323     *(data + i) = rand ();
6324   umask (0);
6325   fd = creat ("conftest.mmap", 0600);
6326   if (fd < 0)
6327     exit (1);
6328   if (write (fd, data, pagesize) != pagesize)
6329     exit (1);
6330   close (fd);
6331
6332   /* Next, try to mmap the file at a fixed address which already has
6333      something else allocated at it.  If we can, also make sure that
6334      we see the same garbage.  */
6335   fd = open ("conftest.mmap", O_RDWR);
6336   if (fd < 0)
6337     exit (1);
6338   data2 = (char *) malloc (2 * pagesize);
6339   if (!data2)
6340     exit (1);
6341   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6342   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6343                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6344     exit (1);
6345   for (i = 0; i < pagesize; ++i)
6346     if (*(data + i) != *(data2 + i))
6347       exit (1);
6348
6349   /* Finally, make sure that changes to the mapped area do not
6350      percolate back to the file as seen by read().  (This is a bug on
6351      some variants of i386 svr4.0.)  */
6352   for (i = 0; i < pagesize; ++i)
6353     *(data2 + i) = *(data2 + i) + 1;
6354   data3 = (char *) malloc (pagesize);
6355   if (!data3)
6356     exit (1);
6357   if (read (fd, data3, pagesize) != pagesize)
6358     exit (1);
6359   for (i = 0; i < pagesize; ++i)
6360     if (*(data + i) != *(data3 + i))
6361       exit (1);
6362   close (fd);
6363   exit (0);
6364 }
6365 _ACEOF
6366 rm -f conftest$ac_exeext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368   (eval $ac_link) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373   (eval $ac_try) 2>&5
6374   ac_status=$?
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); }; }; then
6377   ac_cv_func_mmap_fixed_mapped=yes
6378 else
6379   echo "$as_me: program exited with status $ac_status" >&5
6380 echo "$as_me: failed program was:" >&5
6381 cat conftest.$ac_ext >&5
6382 ( exit $ac_status )
6383 ac_cv_func_mmap_fixed_mapped=no
6384 fi
6385 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6386 fi
6387 fi
6388 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6389 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6390 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6391
6392 cat >>confdefs.h <<\_ACEOF
6393 #define HAVE_MMAP 1
6394 _ACEOF
6395
6396 fi
6397 rm -f conftest.mmap
6398
6399
6400     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6401 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6402 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6403   echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405   cat >conftest.$ac_ext <<_ACEOF
6406 #line $LINENO "configure"
6407 #include "confdefs.h"
6408
6409 #include <features.h>
6410 #ifdef __GNU_LIBRARY__
6411  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6412   Lucky GNU user
6413  #endif
6414 #endif
6415
6416 _ACEOF
6417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6418   egrep "Lucky GNU user" >/dev/null 2>&1; then
6419   ac_cv_gnu_library_2_1=yes
6420 else
6421   ac_cv_gnu_library_2_1=no
6422 fi
6423 rm -f conftest*
6424
6425
6426
6427 fi
6428 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6429 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6430
6431     GLIBC21="$ac_cv_gnu_library_2_1"
6432
6433
6434
6435
6436   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6437 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
6438 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6439   echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6441
6442       if test "$cross_compiling" = yes; then
6443
6444           # Guess based on the CPU.
6445           case "$host_cpu" in
6446             alpha* | i3456786 | m68k | s390*)
6447               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6448             *)
6449               gt_cv_int_divbyzero_sigfpe="guessing no";;
6450           esac
6451
6452 else
6453   cat >conftest.$ac_ext <<_ACEOF
6454 #line $LINENO "configure"
6455 #include "confdefs.h"
6456
6457 #include <stdlib.h>
6458 #include <signal.h>
6459
6460 static void
6461 #ifdef __cplusplus
6462 sigfpe_handler (int sig)
6463 #else
6464 sigfpe_handler (sig) int sig;
6465 #endif
6466 {
6467   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6468   exit (sig != SIGFPE);
6469 }
6470
6471 int x = 1;
6472 int y = 0;
6473 int z;
6474 int nan;
6475
6476 int main ()
6477 {
6478   signal (SIGFPE, sigfpe_handler);
6479 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6480 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6481   signal (SIGTRAP, sigfpe_handler);
6482 #endif
6483 /* Linux/SPARC yields signal SIGILL.  */
6484 #if defined (__sparc__) && defined (__linux__)
6485   signal (SIGILL, sigfpe_handler);
6486 #endif
6487
6488   z = x / y;
6489   nan = y / y;
6490   exit (1);
6491 }
6492
6493 _ACEOF
6494 rm -f conftest$ac_exeext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496   (eval $ac_link) 2>&5
6497   ac_status=$?
6498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501   (eval $ac_try) 2>&5
6502   ac_status=$?
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); }; }; then
6505   gt_cv_int_divbyzero_sigfpe=yes
6506 else
6507   echo "$as_me: program exited with status $ac_status" >&5
6508 echo "$as_me: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6510 ( exit $ac_status )
6511 gt_cv_int_divbyzero_sigfpe=no
6512 fi
6513 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6514 fi
6515
6516 fi
6517 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6518 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
6519   case "$gt_cv_int_divbyzero_sigfpe" in
6520     *yes) value=1;;
6521     *) value=0;;
6522   esac
6523
6524 cat >>confdefs.h <<_ACEOF
6525 #define INTDIV0_RAISES_SIGFPE $value
6526 _ACEOF
6527
6528
6529
6530   echo "$as_me:$LINENO: checking for inttypes.h" >&5
6531 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6532 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6533   echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535   cat >conftest.$ac_ext <<_ACEOF
6536 #line $LINENO "configure"
6537 #include "confdefs.h"
6538 #include <sys/types.h>
6539 #include <inttypes.h>
6540 #ifdef F77_DUMMY_MAIN
6541 #  ifdef __cplusplus
6542      extern "C"
6543 #  endif
6544    int F77_DUMMY_MAIN() { return 1; }
6545 #endif
6546 int
6547 main ()
6548 {
6549 uintmax_t i = (uintmax_t) -1;
6550   ;
6551   return 0;
6552 }
6553 _ACEOF
6554 rm -f conftest.$ac_objext
6555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6556   (eval $ac_compile) 2>&5
6557   ac_status=$?
6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); } &&
6560          { ac_try='test -s conftest.$ac_objext'
6561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562   (eval $ac_try) 2>&5
6563   ac_status=$?
6564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565   (exit $ac_status); }; }; then
6566   jm_ac_cv_header_inttypes_h=yes
6567 else
6568   echo "$as_me: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6570 jm_ac_cv_header_inttypes_h=no
6571 fi
6572 rm -f conftest.$ac_objext conftest.$ac_ext
6573 fi
6574 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6575 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
6576   if test $jm_ac_cv_header_inttypes_h = yes; then
6577
6578 cat >>confdefs.h <<_ACEOF
6579 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6580 _ACEOF
6581
6582   fi
6583
6584
6585   echo "$as_me:$LINENO: checking for stdint.h" >&5
6586 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6587 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590   cat >conftest.$ac_ext <<_ACEOF
6591 #line $LINENO "configure"
6592 #include "confdefs.h"
6593 #include <sys/types.h>
6594 #include <stdint.h>
6595 #ifdef F77_DUMMY_MAIN
6596 #  ifdef __cplusplus
6597      extern "C"
6598 #  endif
6599    int F77_DUMMY_MAIN() { return 1; }
6600 #endif
6601 int
6602 main ()
6603 {
6604 uintmax_t i = (uintmax_t) -1;
6605   ;
6606   return 0;
6607 }
6608 _ACEOF
6609 rm -f conftest.$ac_objext
6610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611   (eval $ac_compile) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); } &&
6615          { ac_try='test -s conftest.$ac_objext'
6616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617   (eval $ac_try) 2>&5
6618   ac_status=$?
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); }; }; then
6621   jm_ac_cv_header_stdint_h=yes
6622 else
6623   echo "$as_me: failed program was:" >&5
6624 cat conftest.$ac_ext >&5
6625 jm_ac_cv_header_stdint_h=no
6626 fi
6627 rm -f conftest.$ac_objext conftest.$ac_ext
6628 fi
6629 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6630 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
6631   if test $jm_ac_cv_header_stdint_h = yes; then
6632
6633 cat >>confdefs.h <<_ACEOF
6634 #define HAVE_STDINT_H_WITH_UINTMAX 1
6635 _ACEOF
6636
6637   fi
6638
6639
6640   echo "$as_me:$LINENO: checking for unsigned long long" >&5
6641 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6642 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6643   echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645   cat >conftest.$ac_ext <<_ACEOF
6646 #line $LINENO "configure"
6647 #include "confdefs.h"
6648 unsigned long long ull = 1; int i = 63;
6649 #ifdef F77_DUMMY_MAIN
6650 #  ifdef __cplusplus
6651      extern "C"
6652 #  endif
6653    int F77_DUMMY_MAIN() { return 1; }
6654 #endif
6655 int
6656 main ()
6657 {
6658 unsigned long long ullmax = (unsigned long long) -1;
6659      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6660   ;
6661   return 0;
6662 }
6663 _ACEOF
6664 rm -f conftest.$ac_objext conftest$ac_exeext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6666   (eval $ac_link) 2>&5
6667   ac_status=$?
6668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669   (exit $ac_status); } &&
6670          { ac_try='test -s conftest$ac_exeext'
6671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672   (eval $ac_try) 2>&5
6673   ac_status=$?
6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675   (exit $ac_status); }; }; then
6676   ac_cv_type_unsigned_long_long=yes
6677 else
6678   echo "$as_me: failed program was:" >&5
6679 cat conftest.$ac_ext >&5
6680 ac_cv_type_unsigned_long_long=no
6681 fi
6682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6683 fi
6684 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6685 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6686   if test $ac_cv_type_unsigned_long_long = yes; then
6687
6688 cat >>confdefs.h <<\_ACEOF
6689 #define HAVE_UNSIGNED_LONG_LONG 1
6690 _ACEOF
6691
6692   fi
6693
6694
6695
6696
6697   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6698
6699     test $ac_cv_type_unsigned_long_long = yes \
6700       && ac_type='unsigned long long' \
6701       || ac_type='unsigned long'
6702
6703 cat >>confdefs.h <<_ACEOF
6704 #define uintmax_t $ac_type
6705 _ACEOF
6706
6707   else
6708
6709 cat >>confdefs.h <<\_ACEOF
6710 #define HAVE_UINTMAX_T 1
6711 _ACEOF
6712
6713   fi
6714
6715
6716   echo "$as_me:$LINENO: checking for inttypes.h" >&5
6717 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6718 if test "${gt_cv_header_inttypes_h+set}" = set; then
6719   echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721
6722     cat >conftest.$ac_ext <<_ACEOF
6723 #line $LINENO "configure"
6724 #include "confdefs.h"
6725 #include <sys/types.h>
6726 #include <inttypes.h>
6727 #ifdef F77_DUMMY_MAIN
6728 #  ifdef __cplusplus
6729      extern "C"
6730 #  endif
6731    int F77_DUMMY_MAIN() { return 1; }
6732 #endif
6733 int
6734 main ()
6735 {
6736
6737   ;
6738   return 0;
6739 }
6740 _ACEOF
6741 rm -f conftest.$ac_objext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6743   (eval $ac_compile) 2>&5
6744   ac_status=$?
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); } &&
6747          { ac_try='test -s conftest.$ac_objext'
6748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749   (eval $ac_try) 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); }; }; then
6753   gt_cv_header_inttypes_h=yes
6754 else
6755   echo "$as_me: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6757 gt_cv_header_inttypes_h=no
6758 fi
6759 rm -f conftest.$ac_objext conftest.$ac_ext
6760
6761 fi
6762 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6763 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6764   if test $gt_cv_header_inttypes_h = yes; then
6765
6766 cat >>confdefs.h <<_ACEOF
6767 #define HAVE_INTTYPES_H 1
6768 _ACEOF
6769
6770   fi
6771
6772
6773
6774   if test $gt_cv_header_inttypes_h = yes; then
6775     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6776 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6777 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6778   echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780
6781         cat >conftest.$ac_ext <<_ACEOF
6782 #line $LINENO "configure"
6783 #include "confdefs.h"
6784 #include <inttypes.h>
6785 #ifdef PRId32
6786 char *p = PRId32;
6787 #endif
6788
6789 #ifdef F77_DUMMY_MAIN
6790 #  ifdef __cplusplus
6791      extern "C"
6792 #  endif
6793    int F77_DUMMY_MAIN() { return 1; }
6794 #endif
6795 int
6796 main ()
6797 {
6798
6799   ;
6800   return 0;
6801 }
6802 _ACEOF
6803 rm -f conftest.$ac_objext
6804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6805   (eval $ac_compile) 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); } &&
6809          { ac_try='test -s conftest.$ac_objext'
6810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811   (eval $ac_try) 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; }; then
6815   gt_cv_inttypes_pri_broken=no
6816 else
6817   echo "$as_me: failed program was:" >&5
6818 cat conftest.$ac_ext >&5
6819 gt_cv_inttypes_pri_broken=yes
6820 fi
6821 rm -f conftest.$ac_objext conftest.$ac_ext
6822
6823 fi
6824 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6825 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6826   fi
6827   if test "$gt_cv_inttypes_pri_broken" = yes; then
6828
6829 cat >>confdefs.h <<_ACEOF
6830 #define PRI_MACROS_BROKEN 1
6831 _ACEOF
6832
6833   fi
6834
6835
6836       if test "X$prefix" = "XNONE"; then
6837     acl_final_prefix="$ac_default_prefix"
6838   else
6839     acl_final_prefix="$prefix"
6840   fi
6841   if test "X$exec_prefix" = "XNONE"; then
6842     acl_final_exec_prefix='${prefix}'
6843   else
6844     acl_final_exec_prefix="$exec_prefix"
6845   fi
6846   acl_save_prefix="$prefix"
6847   prefix="$acl_final_prefix"
6848   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6849   prefix="$acl_save_prefix"
6850
6851
6852 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6853 if test "${with_gnu_ld+set}" = set; then
6854   withval="$with_gnu_ld"
6855   test "$withval" = no || with_gnu_ld=yes
6856 else
6857   with_gnu_ld=no
6858 fi;
6859 # Prepare PATH_SEPARATOR.
6860 # The user is always right.
6861 if test "${PATH_SEPARATOR+set}" != set; then
6862   echo "#! /bin/sh" >conf$$.sh
6863   echo  "exit 0"   >>conf$$.sh
6864   chmod +x conf$$.sh
6865   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6866     PATH_SEPARATOR=';'
6867   else
6868     PATH_SEPARATOR=:
6869   fi
6870   rm -f conf$$.sh
6871 fi
6872 ac_prog=ld
6873 if test "$GCC" = yes; then
6874   # Check if gcc -print-prog-name=ld gives a path.
6875   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6876 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6877   case $host in
6878   *-*-mingw*)
6879     # gcc leaves a trailing carriage return which upsets mingw
6880     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6881   *)
6882     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6883   esac
6884   case $ac_prog in
6885     # Accept absolute paths.
6886     [\\/]* | [A-Za-z]:[\\/]*)
6887       re_direlt='/[^/][^/]*/\.\./'
6888       # Canonicalize the path of ld
6889       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6890       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6891         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6892       done
6893       test -z "$LD" && LD="$ac_prog"
6894       ;;
6895   "")
6896     # If it fails, then pretend we aren't using GCC.
6897     ac_prog=ld
6898     ;;
6899   *)
6900     # If it is relative, then search for the first ld in PATH.
6901     with_gnu_ld=unknown
6902     ;;
6903   esac
6904 elif test "$with_gnu_ld" = yes; then
6905   echo "$as_me:$LINENO: checking for GNU ld" >&5
6906 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6907 else
6908   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6909 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6910 fi
6911 if test "${acl_cv_path_LD+set}" = set; then
6912   echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914   if test -z "$LD"; then
6915   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6916   for ac_dir in $PATH; do
6917     test -z "$ac_dir" && ac_dir=.
6918     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6919       acl_cv_path_LD="$ac_dir/$ac_prog"
6920       # Check to see if the program is GNU ld.  I'd rather use --version,
6921       # but apparently some GNU ld's only accept -v.
6922       # Break only if it was the GNU/non-GNU ld that we prefer.
6923       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6924         test "$with_gnu_ld" != no && break
6925       else
6926         test "$with_gnu_ld" != yes && break
6927       fi
6928     fi
6929   done
6930   IFS="$ac_save_ifs"
6931 else
6932   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6933 fi
6934 fi
6935
6936 LD="$acl_cv_path_LD"
6937 if test -n "$LD"; then
6938   echo "$as_me:$LINENO: result: $LD" >&5
6939 echo "${ECHO_T}$LD" >&6
6940 else
6941   echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6
6943 fi
6944 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6945 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6946    { (exit 1); exit 1; }; }
6947 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6948 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6949 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6950   echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6953 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6954   acl_cv_prog_gnu_ld=yes
6955 else
6956   acl_cv_prog_gnu_ld=no
6957 fi
6958 fi
6959 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6960 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6961 with_gnu_ld=$acl_cv_prog_gnu_ld
6962
6963
6964
6965                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6966 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6967 if test "${acl_cv_rpath+set}" = set; then
6968   echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970
6971     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6972     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6973     . ./conftest.sh
6974     rm -f ./conftest.sh
6975     acl_cv_rpath=done
6976
6977 fi
6978 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6979 echo "${ECHO_T}$acl_cv_rpath" >&6
6980   wl="$acl_cv_wl"
6981   libext="$acl_cv_libext"
6982   shlibext="$acl_cv_shlibext"
6983   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6984   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6985   hardcode_direct="$acl_cv_hardcode_direct"
6986   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6987     # Check whether --enable-rpath or --disable-rpath was given.
6988 if test "${enable_rpath+set}" = set; then
6989   enableval="$enable_rpath"
6990   :
6991 else
6992   enable_rpath=yes
6993 fi;
6994
6995
6996
6997
6998
6999
7000
7001     use_additional=yes
7002
7003   acl_save_prefix="$prefix"
7004   prefix="$acl_final_prefix"
7005   acl_save_exec_prefix="$exec_prefix"
7006   exec_prefix="$acl_final_exec_prefix"
7007
7008     eval additional_includedir=\"$includedir\"
7009     eval additional_libdir=\"$libdir\"
7010
7011   exec_prefix="$acl_save_exec_prefix"
7012   prefix="$acl_save_prefix"
7013
7014
7015 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7016 if test "${with_libiconv_prefix+set}" = set; then
7017   withval="$with_libiconv_prefix"
7018
7019     if test "X$withval" = "Xno"; then
7020       use_additional=no
7021     else
7022       if test "X$withval" = "X"; then
7023
7024   acl_save_prefix="$prefix"
7025   prefix="$acl_final_prefix"
7026   acl_save_exec_prefix="$exec_prefix"
7027   exec_prefix="$acl_final_exec_prefix"
7028
7029           eval additional_includedir=\"$includedir\"
7030           eval additional_libdir=\"$libdir\"
7031
7032   exec_prefix="$acl_save_exec_prefix"
7033   prefix="$acl_save_prefix"
7034
7035       else
7036         additional_includedir="$withval/include"
7037         additional_libdir="$withval/lib"
7038       fi
7039     fi
7040
7041 fi;
7042       LIBICONV=
7043   LTLIBICONV=
7044   INCICONV=
7045   rpathdirs=
7046   ltrpathdirs=
7047   names_already_handled=
7048   names_next_round='iconv '
7049   while test -n "$names_next_round"; do
7050     names_this_round="$names_next_round"
7051     names_next_round=
7052     for name in $names_this_round; do
7053       already_handled=
7054       for n in $names_already_handled; do
7055         if test "$n" = "$name"; then
7056           already_handled=yes
7057           break
7058         fi
7059       done
7060       if test -z "$already_handled"; then
7061         names_already_handled="$names_already_handled $name"
7062                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7063         eval value=\"\$HAVE_LIB$uppername\"
7064         if test -n "$value"; then
7065           if test "$value" = yes; then
7066             eval value=\"\$LIB$uppername\"
7067             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7068             eval value=\"\$LTLIB$uppername\"
7069             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7070           else
7071                                     :
7072           fi
7073         else
7074                               found_dir=
7075           found_la=
7076           found_so=
7077           found_a=
7078           if test $use_additional = yes; then
7079             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7080               found_dir="$additional_libdir"
7081               found_so="$additional_libdir/lib$name.$shlibext"
7082               if test -f "$additional_libdir/lib$name.la"; then
7083                 found_la="$additional_libdir/lib$name.la"
7084               fi
7085             else
7086               if test -f "$additional_libdir/lib$name.$libext"; then
7087                 found_dir="$additional_libdir"
7088                 found_a="$additional_libdir/lib$name.$libext"
7089                 if test -f "$additional_libdir/lib$name.la"; then
7090                   found_la="$additional_libdir/lib$name.la"
7091                 fi
7092               fi
7093             fi
7094           fi
7095           if test "X$found_dir" = "X"; then
7096             for x in $LDFLAGS $LTLIBICONV; do
7097
7098   acl_save_prefix="$prefix"
7099   prefix="$acl_final_prefix"
7100   acl_save_exec_prefix="$exec_prefix"
7101   exec_prefix="$acl_final_exec_prefix"
7102   eval x=\"$x\"
7103   exec_prefix="$acl_save_exec_prefix"
7104   prefix="$acl_save_prefix"
7105
7106               case "$x" in
7107                 -L*)
7108                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7109                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7110                     found_dir="$dir"
7111                     found_so="$dir/lib$name.$shlibext"
7112                     if test -f "$dir/lib$name.la"; then
7113                       found_la="$dir/lib$name.la"
7114                     fi
7115                   else
7116                     if test -f "$dir/lib$name.$libext"; then
7117                       found_dir="$dir"
7118                       found_a="$dir/lib$name.$libext"
7119                       if test -f "$dir/lib$name.la"; then
7120                         found_la="$dir/lib$name.la"
7121                       fi
7122                     fi
7123                   fi
7124                   ;;
7125               esac
7126               if test "X$found_dir" != "X"; then
7127                 break
7128               fi
7129             done
7130           fi
7131           if test "X$found_dir" != "X"; then
7132                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7133             if test "X$found_so" != "X"; then
7134                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7135                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7136               else
7137                                                                                 haveit=
7138                 for x in $ltrpathdirs; do
7139                   if test "X$x" = "X$found_dir"; then
7140                     haveit=yes
7141                     break
7142                   fi
7143                 done
7144                 if test -z "$haveit"; then
7145                   ltrpathdirs="$ltrpathdirs $found_dir"
7146                 fi
7147                                 if test "$hardcode_direct" = yes; then
7148                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7149                 else
7150                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7151                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7152                                                             haveit=
7153                     for x in $rpathdirs; do
7154                       if test "X$x" = "X$found_dir"; then
7155                         haveit=yes
7156                         break
7157                       fi
7158                     done
7159                     if test -z "$haveit"; then
7160                       rpathdirs="$rpathdirs $found_dir"
7161                     fi
7162                   else
7163                                                                                 haveit=
7164                     for x in $LDFLAGS $LIBICONV; do
7165
7166   acl_save_prefix="$prefix"
7167   prefix="$acl_final_prefix"
7168   acl_save_exec_prefix="$exec_prefix"
7169   exec_prefix="$acl_final_exec_prefix"
7170   eval x=\"$x\"
7171   exec_prefix="$acl_save_exec_prefix"
7172   prefix="$acl_save_prefix"
7173
7174                       if test "X$x" = "X-L$found_dir"; then
7175                         haveit=yes
7176                         break
7177                       fi
7178                     done
7179                     if test -z "$haveit"; then
7180                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7181                     fi
7182                     if test "$hardcode_minus_L" != no; then
7183                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7184                     else
7185                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7186                     fi
7187                   fi
7188                 fi
7189               fi
7190             else
7191               if test "X$found_a" != "X"; then
7192                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7193               else
7194                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7195               fi
7196             fi
7197                         additional_includedir=
7198             case "$found_dir" in
7199               */lib | */lib/)
7200                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7201                 additional_includedir="$basedir/include"
7202                 ;;
7203             esac
7204             if test "X$additional_includedir" != "X"; then
7205                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7206                 haveit=
7207                 if test "X$additional_includedir" = "X/usr/local/include"; then
7208                   if test -n "$GCC"; then
7209                     case $host_os in
7210                       linux*) haveit=yes;;
7211                     esac
7212                   fi
7213                 fi
7214                 if test -z "$haveit"; then
7215                   for x in $CPPFLAGS $INCICONV; do
7216
7217   acl_save_prefix="$prefix"
7218   prefix="$acl_final_prefix"
7219   acl_save_exec_prefix="$exec_prefix"
7220   exec_prefix="$acl_final_exec_prefix"
7221   eval x=\"$x\"
7222   exec_prefix="$acl_save_exec_prefix"
7223   prefix="$acl_save_prefix"
7224
7225                     if test "X$x" = "X-I$additional_includedir"; then
7226                       haveit=yes
7227                       break
7228                     fi
7229                   done
7230                   if test -z "$haveit"; then
7231                     if test -d "$additional_includedir"; then
7232                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7233                     fi
7234                   fi
7235                 fi
7236               fi
7237             fi
7238                         if test -n "$found_la"; then
7239                                                         save_libdir="$libdir"
7240               case "$found_la" in
7241                 */* | *\\*) . "$found_la" ;;
7242                 *) . "./$found_la" ;;
7243               esac
7244               libdir="$save_libdir"
7245                             for dep in $dependency_libs; do
7246                 case "$dep" in
7247                   -L*)
7248                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7249                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7250                       haveit=
7251                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7252                         if test -n "$GCC"; then
7253                           case $host_os in
7254                             linux*) haveit=yes;;
7255                           esac
7256                         fi
7257                       fi
7258                       if test -z "$haveit"; then
7259                         haveit=
7260                         for x in $LDFLAGS $LIBICONV; do
7261
7262   acl_save_prefix="$prefix"
7263   prefix="$acl_final_prefix"
7264   acl_save_exec_prefix="$exec_prefix"
7265   exec_prefix="$acl_final_exec_prefix"
7266   eval x=\"$x\"
7267   exec_prefix="$acl_save_exec_prefix"
7268   prefix="$acl_save_prefix"
7269
7270                           if test "X$x" = "X-L$additional_libdir"; then
7271                             haveit=yes
7272                             break
7273                           fi
7274                         done
7275                         if test -z "$haveit"; then
7276                           if test -d "$additional_libdir"; then
7277                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7278                           fi
7279                         fi
7280                         haveit=
7281                         for x in $LDFLAGS $LTLIBICONV; do
7282
7283   acl_save_prefix="$prefix"
7284   prefix="$acl_final_prefix"
7285   acl_save_exec_prefix="$exec_prefix"
7286   exec_prefix="$acl_final_exec_prefix"
7287   eval x=\"$x\"
7288   exec_prefix="$acl_save_exec_prefix"
7289   prefix="$acl_save_prefix"
7290
7291                           if test "X$x" = "X-L$additional_libdir"; then
7292                             haveit=yes
7293                             break
7294                           fi
7295                         done
7296                         if test -z "$haveit"; then
7297                           if test -d "$additional_libdir"; then
7298                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7299                           fi
7300                         fi
7301                       fi
7302                     fi
7303                     ;;
7304                   -R*)
7305                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7306                     if test "$enable_rpath" != no; then
7307                                                                   haveit=
7308                       for x in $rpathdirs; do
7309                         if test "X$x" = "X$dir"; then
7310                           haveit=yes
7311                           break
7312                         fi
7313                       done
7314                       if test -z "$haveit"; then
7315                         rpathdirs="$rpathdirs $dir"
7316                       fi
7317                                                                   haveit=
7318                       for x in $ltrpathdirs; do
7319                         if test "X$x" = "X$dir"; then
7320                           haveit=yes
7321                           break
7322                         fi
7323                       done
7324                       if test -z "$haveit"; then
7325                         ltrpathdirs="$ltrpathdirs $dir"
7326                       fi
7327                     fi
7328                     ;;
7329                   -l*)
7330                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7331                     ;;
7332                   *.la)
7333                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7334                     ;;
7335                   *)
7336                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7337                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7338                     ;;
7339                 esac
7340               done
7341             fi
7342           else
7343                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7344             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7345           fi
7346         fi
7347       fi
7348     done
7349   done
7350   if test "X$rpathdirs" != "X"; then
7351     if test -n "$hardcode_libdir_separator"; then
7352                         alldirs=
7353       for found_dir in $rpathdirs; do
7354         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7355       done
7356             acl_save_libdir="$libdir"
7357       libdir="$alldirs"
7358       eval flag=\"$hardcode_libdir_flag_spec\"
7359       libdir="$acl_save_libdir"
7360       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7361     else
7362             for found_dir in $rpathdirs; do
7363         acl_save_libdir="$libdir"
7364         libdir="$found_dir"
7365         eval flag=\"$hardcode_libdir_flag_spec\"
7366         libdir="$acl_save_libdir"
7367         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7368       done
7369     fi
7370   fi
7371   if test "X$ltrpathdirs" != "X"; then
7372             for found_dir in $ltrpathdirs; do
7373       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7374     done
7375   fi
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7391 stdlib.h string.h unistd.h sys/param.h
7392 do
7393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7395   echo "$as_me:$LINENO: checking for $ac_header" >&5
7396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7398   echo $ECHO_N "(cached) $ECHO_C" >&6
7399 fi
7400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7402 else
7403   # Is the header compilable?
7404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7406 cat >conftest.$ac_ext <<_ACEOF
7407 #line $LINENO "configure"
7408 #include "confdefs.h"
7409 $ac_includes_default
7410 #include <$ac_header>
7411 _ACEOF
7412 rm -f conftest.$ac_objext
7413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7414   (eval $ac_compile) 2>&5
7415   ac_status=$?
7416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417   (exit $ac_status); } &&
7418          { ac_try='test -s conftest.$ac_objext'
7419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420   (eval $ac_try) 2>&5
7421   ac_status=$?
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); }; }; then
7424   ac_header_compiler=yes
7425 else
7426   echo "$as_me: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7428 ac_header_compiler=no
7429 fi
7430 rm -f conftest.$ac_objext conftest.$ac_ext
7431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7432 echo "${ECHO_T}$ac_header_compiler" >&6
7433
7434 # Is the header present?
7435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7437 cat >conftest.$ac_ext <<_ACEOF
7438 #line $LINENO "configure"
7439 #include "confdefs.h"
7440 #include <$ac_header>
7441 _ACEOF
7442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7443   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7444   ac_status=$?
7445   egrep -v '^ *\+' conftest.er1 >conftest.err
7446   rm -f conftest.er1
7447   cat conftest.err >&5
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); } >/dev/null; then
7450   if test -s conftest.err; then
7451     ac_cpp_err=$ac_c_preproc_warn_flag
7452   else
7453     ac_cpp_err=
7454   fi
7455 else
7456   ac_cpp_err=yes
7457 fi
7458 if test -z "$ac_cpp_err"; then
7459   ac_header_preproc=yes
7460 else
7461   echo "$as_me: failed program was:" >&5
7462   cat conftest.$ac_ext >&5
7463   ac_header_preproc=no
7464 fi
7465 rm -f conftest.err conftest.$ac_ext
7466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7467 echo "${ECHO_T}$ac_header_preproc" >&6
7468
7469 # So?  What about this header?
7470 case $ac_header_compiler:$ac_header_preproc in
7471   yes:no )
7472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7476   no:yes )
7477     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7479     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7483 esac
7484 echo "$as_me:$LINENO: checking for $ac_header" >&5
7485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   eval "$as_ac_Header=$ac_header_preproc"
7490 fi
7491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7493
7494 fi
7495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7496   cat >>confdefs.h <<_ACEOF
7497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7498 _ACEOF
7499
7500 fi
7501
7502 done
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
7527 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
7528 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
7529 __fsetlocking
7530 do
7531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7532 echo "$as_me:$LINENO: checking for $ac_func" >&5
7533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7534 if eval "test \"\${$as_ac_var+set}\" = set"; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   cat >conftest.$ac_ext <<_ACEOF
7538 #line $LINENO "configure"
7539 #include "confdefs.h"
7540 /* System header to define __stub macros and hopefully few prototypes,
7541     which can conflict with char $ac_func (); below.  */
7542 #include <assert.h>
7543 /* Override any gcc2 internal prototype to avoid an error.  */
7544 #ifdef __cplusplus
7545 extern "C"
7546 #endif
7547 /* We use char because int might match the return type of a gcc2
7548    builtin and then its argument prototype would still apply.  */
7549 char $ac_func ();
7550 char (*f) ();
7551
7552 #ifdef F77_DUMMY_MAIN
7553 #  ifdef __cplusplus
7554      extern "C"
7555 #  endif
7556    int F77_DUMMY_MAIN() { return 1; }
7557 #endif
7558 int
7559 main ()
7560 {
7561 /* The GNU C library defines this for functions which it implements
7562     to always fail with ENOSYS.  Some functions are actually named
7563     something starting with __ and the normal name is an alias.  */
7564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7565 choke me
7566 #else
7567 f = $ac_func;
7568 #endif
7569
7570   ;
7571   return 0;
7572 }
7573 _ACEOF
7574 rm -f conftest.$ac_objext conftest$ac_exeext
7575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7576   (eval $ac_link) 2>&5
7577   ac_status=$?
7578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); } &&
7580          { ac_try='test -s conftest$ac_exeext'
7581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582   (eval $ac_try) 2>&5
7583   ac_status=$?
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); }; }; then
7586   eval "$as_ac_var=yes"
7587 else
7588   echo "$as_me: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7590 eval "$as_ac_var=no"
7591 fi
7592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7593 fi
7594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7596 if test `eval echo '${'$as_ac_var'}'` = yes; then
7597   cat >>confdefs.h <<_ACEOF
7598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7599 _ACEOF
7600
7601 fi
7602 done
7603
7604
7605
7606
7607
7608
7609
7610           am_save_CPPFLAGS="$CPPFLAGS"
7611
7612   for element in $INCICONV; do
7613     haveit=
7614     for x in $CPPFLAGS; do
7615
7616   acl_save_prefix="$prefix"
7617   prefix="$acl_final_prefix"
7618   acl_save_exec_prefix="$exec_prefix"
7619   exec_prefix="$acl_final_exec_prefix"
7620   eval x=\"$x\"
7621   exec_prefix="$acl_save_exec_prefix"
7622   prefix="$acl_save_prefix"
7623
7624       if test "X$x" = "X$element"; then
7625         haveit=yes
7626         break
7627       fi
7628     done
7629     if test -z "$haveit"; then
7630       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7631     fi
7632   done
7633
7634
7635   echo "$as_me:$LINENO: checking for iconv" >&5
7636 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7637 if test "${am_cv_func_iconv+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640
7641     am_cv_func_iconv="no, consider installing GNU libiconv"
7642     am_cv_lib_iconv=no
7643     cat >conftest.$ac_ext <<_ACEOF
7644 #line $LINENO "configure"
7645 #include "confdefs.h"
7646 #include <stdlib.h>
7647 #include <iconv.h>
7648 #ifdef F77_DUMMY_MAIN
7649 #  ifdef __cplusplus
7650      extern "C"
7651 #  endif
7652    int F77_DUMMY_MAIN() { return 1; }
7653 #endif
7654 int
7655 main ()
7656 {
7657 iconv_t cd = iconv_open("","");
7658        iconv(cd,NULL,NULL,NULL,NULL);
7659        iconv_close(cd);
7660   ;
7661   return 0;
7662 }
7663 _ACEOF
7664 rm -f conftest.$ac_objext conftest$ac_exeext
7665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7666   (eval $ac_link) 2>&5
7667   ac_status=$?
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); } &&
7670          { ac_try='test -s conftest$ac_exeext'
7671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672   (eval $ac_try) 2>&5
7673   ac_status=$?
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); }; }; then
7676   am_cv_func_iconv=yes
7677 else
7678   echo "$as_me: failed program was:" >&5
7679 cat conftest.$ac_ext >&5
7680 fi
7681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7682     if test "$am_cv_func_iconv" != yes; then
7683       am_save_LIBS="$LIBS"
7684       LIBS="$LIBS $LIBICONV"
7685       cat >conftest.$ac_ext <<_ACEOF
7686 #line $LINENO "configure"
7687 #include "confdefs.h"
7688 #include <stdlib.h>
7689 #include <iconv.h>
7690 #ifdef F77_DUMMY_MAIN
7691 #  ifdef __cplusplus
7692      extern "C"
7693 #  endif
7694    int F77_DUMMY_MAIN() { return 1; }
7695 #endif
7696 int
7697 main ()
7698 {
7699 iconv_t cd = iconv_open("","");
7700          iconv(cd,NULL,NULL,NULL,NULL);
7701          iconv_close(cd);
7702   ;
7703   return 0;
7704 }
7705 _ACEOF
7706 rm -f conftest.$ac_objext conftest$ac_exeext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7708   (eval $ac_link) 2>&5
7709   ac_status=$?
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); } &&
7712          { ac_try='test -s conftest$ac_exeext'
7713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714   (eval $ac_try) 2>&5
7715   ac_status=$?
7716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717   (exit $ac_status); }; }; then
7718   am_cv_lib_iconv=yes
7719         am_cv_func_iconv=yes
7720 else
7721   echo "$as_me: failed program was:" >&5
7722 cat conftest.$ac_ext >&5
7723 fi
7724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7725       LIBS="$am_save_LIBS"
7726     fi
7727
7728 fi
7729 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7730 echo "${ECHO_T}$am_cv_func_iconv" >&6
7731   if test "$am_cv_func_iconv" = yes; then
7732
7733 cat >>confdefs.h <<\_ACEOF
7734 #define HAVE_ICONV 1
7735 _ACEOF
7736
7737   fi
7738   if test "$am_cv_lib_iconv" = yes; then
7739     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7740 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7741     echo "$as_me:$LINENO: result: $LIBICONV" >&5
7742 echo "${ECHO_T}$LIBICONV" >&6
7743   else
7744             CPPFLAGS="$am_save_CPPFLAGS"
7745     LIBICONV=
7746     LTLIBICONV=
7747   fi
7748
7749
7750
7751   if test "$am_cv_func_iconv" = yes; then
7752     echo "$as_me:$LINENO: checking for iconv declaration" >&5
7753 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7754     if test "${am_cv_proto_iconv+set}" = set; then
7755   echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757
7758       cat >conftest.$ac_ext <<_ACEOF
7759 #line $LINENO "configure"
7760 #include "confdefs.h"
7761
7762 #include <stdlib.h>
7763 #include <iconv.h>
7764 extern
7765 #ifdef __cplusplus
7766 "C"
7767 #endif
7768 #if defined(__STDC__) || defined(__cplusplus)
7769 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7770 #else
7771 size_t iconv();
7772 #endif
7773
7774 #ifdef F77_DUMMY_MAIN
7775 #  ifdef __cplusplus
7776      extern "C"
7777 #  endif
7778    int F77_DUMMY_MAIN() { return 1; }
7779 #endif
7780 int
7781 main ()
7782 {
7783
7784   ;
7785   return 0;
7786 }
7787 _ACEOF
7788 rm -f conftest.$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790   (eval $ac_compile) 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); } &&
7794          { ac_try='test -s conftest.$ac_objext'
7795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796   (eval $ac_try) 2>&5
7797   ac_status=$?
7798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799   (exit $ac_status); }; }; then
7800   am_cv_proto_iconv_arg1=""
7801 else
7802   echo "$as_me: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7804 am_cv_proto_iconv_arg1="const"
7805 fi
7806 rm -f conftest.$ac_objext conftest.$ac_ext
7807       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7808 fi
7809
7810     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7811     echo "$as_me:$LINENO: result: ${ac_t:-
7812          }$am_cv_proto_iconv" >&5
7813 echo "${ECHO_T}${ac_t:-
7814          }$am_cv_proto_iconv" >&6
7815
7816 cat >>confdefs.h <<_ACEOF
7817 #define ICONV_CONST $am_cv_proto_iconv_arg1
7818 _ACEOF
7819
7820   fi
7821
7822
7823   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7824 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7825 if test "${am_cv_langinfo_codeset+set}" = set; then
7826   echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828   cat >conftest.$ac_ext <<_ACEOF
7829 #line $LINENO "configure"
7830 #include "confdefs.h"
7831 #include <langinfo.h>
7832 #ifdef F77_DUMMY_MAIN
7833 #  ifdef __cplusplus
7834      extern "C"
7835 #  endif
7836    int F77_DUMMY_MAIN() { return 1; }
7837 #endif
7838 int
7839 main ()
7840 {
7841 char* cs = nl_langinfo(CODESET);
7842   ;
7843   return 0;
7844 }
7845 _ACEOF
7846 rm -f conftest.$ac_objext conftest$ac_exeext
7847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7848   (eval $ac_link) 2>&5
7849   ac_status=$?
7850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851   (exit $ac_status); } &&
7852          { ac_try='test -s conftest$ac_exeext'
7853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854   (eval $ac_try) 2>&5
7855   ac_status=$?
7856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857   (exit $ac_status); }; }; then
7858   am_cv_langinfo_codeset=yes
7859 else
7860   echo "$as_me: failed program was:" >&5
7861 cat conftest.$ac_ext >&5
7862 am_cv_langinfo_codeset=no
7863 fi
7864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7865
7866 fi
7867 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7868 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7869   if test $am_cv_langinfo_codeset = yes; then
7870
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_LANGINFO_CODESET 1
7873 _ACEOF
7874
7875   fi
7876
7877   if test $ac_cv_header_locale_h = yes; then
7878
7879   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7880 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7881 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7882   echo $ECHO_N "(cached) $ECHO_C" >&6
7883 else
7884   cat >conftest.$ac_ext <<_ACEOF
7885 #line $LINENO "configure"
7886 #include "confdefs.h"
7887 #include <locale.h>
7888 #ifdef F77_DUMMY_MAIN
7889 #  ifdef __cplusplus
7890      extern "C"
7891 #  endif
7892    int F77_DUMMY_MAIN() { return 1; }
7893 #endif
7894 int
7895 main ()
7896 {
7897 return LC_MESSAGES
7898   ;
7899   return 0;
7900 }
7901 _ACEOF
7902 rm -f conftest.$ac_objext conftest$ac_exeext
7903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7904   (eval $ac_link) 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); } &&
7908          { ac_try='test -s conftest$ac_exeext'
7909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910   (eval $ac_try) 2>&5
7911   ac_status=$?
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); }; }; then
7914   am_cv_val_LC_MESSAGES=yes
7915 else
7916   echo "$as_me: failed program was:" >&5
7917 cat conftest.$ac_ext >&5
7918 am_cv_val_LC_MESSAGES=no
7919 fi
7920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7921 fi
7922 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7923 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7924   if test $am_cv_val_LC_MESSAGES = yes; then
7925
7926 cat >>confdefs.h <<\_ACEOF
7927 #define HAVE_LC_MESSAGES 1
7928 _ACEOF
7929
7930   fi
7931
7932   fi
7933
7934                       for ac_prog in bison
7935 do
7936   # Extract the first word of "$ac_prog", so it can be a program name with args.
7937 set dummy $ac_prog; ac_word=$2
7938 echo "$as_me:$LINENO: checking for $ac_word" >&5
7939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7940 if test "${ac_cv_prog_INTLBISON+set}" = set; then
7941   echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943   if test -n "$INTLBISON"; then
7944   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7948 do
7949   IFS=$as_save_IFS
7950   test -z "$as_dir" && as_dir=.
7951   for ac_exec_ext in '' $ac_executable_extensions; do
7952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7953     ac_cv_prog_INTLBISON="$ac_prog"
7954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7955     break 2
7956   fi
7957 done
7958 done
7959
7960 fi
7961 fi
7962 INTLBISON=$ac_cv_prog_INTLBISON
7963 if test -n "$INTLBISON"; then
7964   echo "$as_me:$LINENO: result: $INTLBISON" >&5
7965 echo "${ECHO_T}$INTLBISON" >&6
7966 else
7967   echo "$as_me:$LINENO: result: no" >&5
7968 echo "${ECHO_T}no" >&6
7969 fi
7970
7971   test -n "$INTLBISON" && break
7972 done
7973
7974   if test -z "$INTLBISON"; then
7975     ac_verc_fail=yes
7976   else
7977         echo "$as_me:$LINENO: checking version of bison" >&5
7978 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
7979     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7980     case $ac_prog_version in
7981       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7982       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7983          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7984       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7985     esac
7986     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
7987 echo "${ECHO_T}$ac_prog_version" >&6
7988   fi
7989   if test $ac_verc_fail = yes; then
7990     INTLBISON=:
7991   fi
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8009 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8010     # Check whether --enable-nls or --disable-nls was given.
8011 if test "${enable_nls+set}" = set; then
8012   enableval="$enable_nls"
8013   USE_NLS=$enableval
8014 else
8015   USE_NLS=yes
8016 fi;
8017   echo "$as_me:$LINENO: result: $USE_NLS" >&5
8018 echo "${ECHO_T}$USE_NLS" >&6
8019
8020
8021
8022
8023     BUILD_INCLUDED_LIBINTL=no
8024     USE_INCLUDED_LIBINTL=no
8025
8026   LIBINTL=
8027   LTLIBINTL=
8028   POSUB=
8029
8030     if test "$USE_NLS" = "yes"; then
8031     gt_use_preinstalled_gnugettext=no
8032
8033       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8034 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8035
8036 # Check whether --with-included-gettext or --without-included-gettext was given.
8037 if test "${with_included_gettext+set}" = set; then
8038   withval="$with_included_gettext"
8039   nls_cv_force_use_gnu_gettext=$withval
8040 else
8041   nls_cv_force_use_gnu_gettext=no
8042 fi;
8043       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8044 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8045
8046       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8047       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8048
8049
8050
8051
8052
8053
8054         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8055 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8056 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8057   echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059   cat >conftest.$ac_ext <<_ACEOF
8060 #line $LINENO "configure"
8061 #include "confdefs.h"
8062 #include <libintl.h>
8063 extern int _nl_msg_cat_cntr;
8064 extern int *_nl_domain_bindings;
8065 #ifdef F77_DUMMY_MAIN
8066 #  ifdef __cplusplus
8067      extern "C"
8068 #  endif
8069    int F77_DUMMY_MAIN() { return 1; }
8070 #endif
8071 int
8072 main ()
8073 {
8074 bindtextdomain ("", "");
8075 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8076   ;
8077   return 0;
8078 }
8079 _ACEOF
8080 rm -f conftest.$ac_objext conftest$ac_exeext
8081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8082   (eval $ac_link) 2>&5
8083   ac_status=$?
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); } &&
8086          { ac_try='test -s conftest$ac_exeext'
8087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088   (eval $ac_try) 2>&5
8089   ac_status=$?
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); }; }; then
8092   gt_cv_func_gnugettext2_libc=yes
8093 else
8094   echo "$as_me: failed program was:" >&5
8095 cat conftest.$ac_ext >&5
8096 gt_cv_func_gnugettext2_libc=no
8097 fi
8098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8099 fi
8100 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8101 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8102
8103         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8104
8105
8106
8107     use_additional=yes
8108
8109   acl_save_prefix="$prefix"
8110   prefix="$acl_final_prefix"
8111   acl_save_exec_prefix="$exec_prefix"
8112   exec_prefix="$acl_final_exec_prefix"
8113
8114     eval additional_includedir=\"$includedir\"
8115     eval additional_libdir=\"$libdir\"
8116
8117   exec_prefix="$acl_save_exec_prefix"
8118   prefix="$acl_save_prefix"
8119
8120
8121 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8122 if test "${with_libintl_prefix+set}" = set; then
8123   withval="$with_libintl_prefix"
8124
8125     if test "X$withval" = "Xno"; then
8126       use_additional=no
8127     else
8128       if test "X$withval" = "X"; then
8129
8130   acl_save_prefix="$prefix"
8131   prefix="$acl_final_prefix"
8132   acl_save_exec_prefix="$exec_prefix"
8133   exec_prefix="$acl_final_exec_prefix"
8134
8135           eval additional_includedir=\"$includedir\"
8136           eval additional_libdir=\"$libdir\"
8137
8138   exec_prefix="$acl_save_exec_prefix"
8139   prefix="$acl_save_prefix"
8140
8141       else
8142         additional_includedir="$withval/include"
8143         additional_libdir="$withval/lib"
8144       fi
8145     fi
8146
8147 fi;
8148       LIBINTL=
8149   LTLIBINTL=
8150   INCINTL=
8151   rpathdirs=
8152   ltrpathdirs=
8153   names_already_handled=
8154   names_next_round='intl '
8155   while test -n "$names_next_round"; do
8156     names_this_round="$names_next_round"
8157     names_next_round=
8158     for name in $names_this_round; do
8159       already_handled=
8160       for n in $names_already_handled; do
8161         if test "$n" = "$name"; then
8162           already_handled=yes
8163           break
8164         fi
8165       done
8166       if test -z "$already_handled"; then
8167         names_already_handled="$names_already_handled $name"
8168                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8169         eval value=\"\$HAVE_LIB$uppername\"
8170         if test -n "$value"; then
8171           if test "$value" = yes; then
8172             eval value=\"\$LIB$uppername\"
8173             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8174             eval value=\"\$LTLIB$uppername\"
8175             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8176           else
8177                                     :
8178           fi
8179         else
8180                               found_dir=
8181           found_la=
8182           found_so=
8183           found_a=
8184           if test $use_additional = yes; then
8185             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8186               found_dir="$additional_libdir"
8187               found_so="$additional_libdir/lib$name.$shlibext"
8188               if test -f "$additional_libdir/lib$name.la"; then
8189                 found_la="$additional_libdir/lib$name.la"
8190               fi
8191             else
8192               if test -f "$additional_libdir/lib$name.$libext"; then
8193                 found_dir="$additional_libdir"
8194                 found_a="$additional_libdir/lib$name.$libext"
8195                 if test -f "$additional_libdir/lib$name.la"; then
8196                   found_la="$additional_libdir/lib$name.la"
8197                 fi
8198               fi
8199             fi
8200           fi
8201           if test "X$found_dir" = "X"; then
8202             for x in $LDFLAGS $LTLIBINTL; do
8203
8204   acl_save_prefix="$prefix"
8205   prefix="$acl_final_prefix"
8206   acl_save_exec_prefix="$exec_prefix"
8207   exec_prefix="$acl_final_exec_prefix"
8208   eval x=\"$x\"
8209   exec_prefix="$acl_save_exec_prefix"
8210   prefix="$acl_save_prefix"
8211
8212               case "$x" in
8213                 -L*)
8214                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8215                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8216                     found_dir="$dir"
8217                     found_so="$dir/lib$name.$shlibext"
8218                     if test -f "$dir/lib$name.la"; then
8219                       found_la="$dir/lib$name.la"
8220                     fi
8221                   else
8222                     if test -f "$dir/lib$name.$libext"; then
8223                       found_dir="$dir"
8224                       found_a="$dir/lib$name.$libext"
8225                       if test -f "$dir/lib$name.la"; then
8226                         found_la="$dir/lib$name.la"
8227                       fi
8228                     fi
8229                   fi
8230                   ;;
8231               esac
8232               if test "X$found_dir" != "X"; then
8233                 break
8234               fi
8235             done
8236           fi
8237           if test "X$found_dir" != "X"; then
8238                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8239             if test "X$found_so" != "X"; then
8240                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8241                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8242               else
8243                                                                                 haveit=
8244                 for x in $ltrpathdirs; do
8245                   if test "X$x" = "X$found_dir"; then
8246                     haveit=yes
8247                     break
8248                   fi
8249                 done
8250                 if test -z "$haveit"; then
8251                   ltrpathdirs="$ltrpathdirs $found_dir"
8252                 fi
8253                                 if test "$hardcode_direct" = yes; then
8254                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8255                 else
8256                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8257                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8258                                                             haveit=
8259                     for x in $rpathdirs; do
8260                       if test "X$x" = "X$found_dir"; then
8261                         haveit=yes
8262                         break
8263                       fi
8264                     done
8265                     if test -z "$haveit"; then
8266                       rpathdirs="$rpathdirs $found_dir"
8267                     fi
8268                   else
8269                                                                                 haveit=
8270                     for x in $LDFLAGS $LIBINTL; do
8271
8272   acl_save_prefix="$prefix"
8273   prefix="$acl_final_prefix"
8274   acl_save_exec_prefix="$exec_prefix"
8275   exec_prefix="$acl_final_exec_prefix"
8276   eval x=\"$x\"
8277   exec_prefix="$acl_save_exec_prefix"
8278   prefix="$acl_save_prefix"
8279
8280                       if test "X$x" = "X-L$found_dir"; then
8281                         haveit=yes
8282                         break
8283                       fi
8284                     done
8285                     if test -z "$haveit"; then
8286                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8287                     fi
8288                     if test "$hardcode_minus_L" != no; then
8289                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8290                     else
8291                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8292                     fi
8293                   fi
8294                 fi
8295               fi
8296             else
8297               if test "X$found_a" != "X"; then
8298                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8299               else
8300                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8301               fi
8302             fi
8303                         additional_includedir=
8304             case "$found_dir" in
8305               */lib | */lib/)
8306                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8307                 additional_includedir="$basedir/include"
8308                 ;;
8309             esac
8310             if test "X$additional_includedir" != "X"; then
8311                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8312                 haveit=
8313                 if test "X$additional_includedir" = "X/usr/local/include"; then
8314                   if test -n "$GCC"; then
8315                     case $host_os in
8316                       linux*) haveit=yes;;
8317                     esac
8318                   fi
8319                 fi
8320                 if test -z "$haveit"; then
8321                   for x in $CPPFLAGS $INCINTL; do
8322
8323   acl_save_prefix="$prefix"
8324   prefix="$acl_final_prefix"
8325   acl_save_exec_prefix="$exec_prefix"
8326   exec_prefix="$acl_final_exec_prefix"
8327   eval x=\"$x\"
8328   exec_prefix="$acl_save_exec_prefix"
8329   prefix="$acl_save_prefix"
8330
8331                     if test "X$x" = "X-I$additional_includedir"; then
8332                       haveit=yes
8333                       break
8334                     fi
8335                   done
8336                   if test -z "$haveit"; then
8337                     if test -d "$additional_includedir"; then
8338                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8339                     fi
8340                   fi
8341                 fi
8342               fi
8343             fi
8344                         if test -n "$found_la"; then
8345                                                         save_libdir="$libdir"
8346               case "$found_la" in
8347                 */* | *\\*) . "$found_la" ;;
8348                 *) . "./$found_la" ;;
8349               esac
8350               libdir="$save_libdir"
8351                             for dep in $dependency_libs; do
8352                 case "$dep" in
8353                   -L*)
8354                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8355                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8356                       haveit=
8357                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8358                         if test -n "$GCC"; then
8359                           case $host_os in
8360                             linux*) haveit=yes;;
8361                           esac
8362                         fi
8363                       fi
8364                       if test -z "$haveit"; then
8365                         haveit=
8366                         for x in $LDFLAGS $LIBINTL; do
8367
8368   acl_save_prefix="$prefix"
8369   prefix="$acl_final_prefix"
8370   acl_save_exec_prefix="$exec_prefix"
8371   exec_prefix="$acl_final_exec_prefix"
8372   eval x=\"$x\"
8373   exec_prefix="$acl_save_exec_prefix"
8374   prefix="$acl_save_prefix"
8375
8376                           if test "X$x" = "X-L$additional_libdir"; then
8377                             haveit=yes
8378                             break
8379                           fi
8380                         done
8381                         if test -z "$haveit"; then
8382                           if test -d "$additional_libdir"; then
8383                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8384                           fi
8385                         fi
8386                         haveit=
8387                         for x in $LDFLAGS $LTLIBINTL; do
8388
8389   acl_save_prefix="$prefix"
8390   prefix="$acl_final_prefix"
8391   acl_save_exec_prefix="$exec_prefix"
8392   exec_prefix="$acl_final_exec_prefix"
8393   eval x=\"$x\"
8394   exec_prefix="$acl_save_exec_prefix"
8395   prefix="$acl_save_prefix"
8396
8397                           if test "X$x" = "X-L$additional_libdir"; then
8398                             haveit=yes
8399                             break
8400                           fi
8401                         done
8402                         if test -z "$haveit"; then
8403                           if test -d "$additional_libdir"; then
8404                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8405                           fi
8406                         fi
8407                       fi
8408                     fi
8409                     ;;
8410                   -R*)
8411                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8412                     if test "$enable_rpath" != no; then
8413                                                                   haveit=
8414                       for x in $rpathdirs; do
8415                         if test "X$x" = "X$dir"; then
8416                           haveit=yes
8417                           break
8418                         fi
8419                       done
8420                       if test -z "$haveit"; then
8421                         rpathdirs="$rpathdirs $dir"
8422                       fi
8423                                                                   haveit=
8424                       for x in $ltrpathdirs; do
8425                         if test "X$x" = "X$dir"; then
8426                           haveit=yes
8427                           break
8428                         fi
8429                       done
8430                       if test -z "$haveit"; then
8431                         ltrpathdirs="$ltrpathdirs $dir"
8432                       fi
8433                     fi
8434                     ;;
8435                   -l*)
8436                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8437                     ;;
8438                   *.la)
8439                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8440                     ;;
8441                   *)
8442                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8443                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8444                     ;;
8445                 esac
8446               done
8447             fi
8448           else
8449                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8450             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8451           fi
8452         fi
8453       fi
8454     done
8455   done
8456   if test "X$rpathdirs" != "X"; then
8457     if test -n "$hardcode_libdir_separator"; then
8458                         alldirs=
8459       for found_dir in $rpathdirs; do
8460         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8461       done
8462             acl_save_libdir="$libdir"
8463       libdir="$alldirs"
8464       eval flag=\"$hardcode_libdir_flag_spec\"
8465       libdir="$acl_save_libdir"
8466       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8467     else
8468             for found_dir in $rpathdirs; do
8469         acl_save_libdir="$libdir"
8470         libdir="$found_dir"
8471         eval flag=\"$hardcode_libdir_flag_spec\"
8472         libdir="$acl_save_libdir"
8473         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8474       done
8475     fi
8476   fi
8477   if test "X$ltrpathdirs" != "X"; then
8478             for found_dir in $ltrpathdirs; do
8479       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8480     done
8481   fi
8482
8483           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8484 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8485 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
8486   echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488   gt_save_CPPFLAGS="$CPPFLAGS"
8489             CPPFLAGS="$CPPFLAGS $INCINTL"
8490             gt_save_LIBS="$LIBS"
8491             LIBS="$LIBS $LIBINTL"
8492                         cat >conftest.$ac_ext <<_ACEOF
8493 #line $LINENO "configure"
8494 #include "confdefs.h"
8495 #include <libintl.h>
8496 extern int _nl_msg_cat_cntr;
8497 extern
8498 #ifdef __cplusplus
8499 "C"
8500 #endif
8501 const char *_nl_expand_alias ();
8502 #ifdef F77_DUMMY_MAIN
8503 #  ifdef __cplusplus
8504      extern "C"
8505 #  endif
8506    int F77_DUMMY_MAIN() { return 1; }
8507 #endif
8508 int
8509 main ()
8510 {
8511 bindtextdomain ("", "");
8512 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 rm -f conftest.$ac_objext conftest$ac_exeext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8519   (eval $ac_link) 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -s conftest$ac_exeext'
8524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525   (eval $ac_try) 2>&5
8526   ac_status=$?
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); }; }; then
8529   gt_cv_func_gnugettext2_libintl=yes
8530 else
8531   echo "$as_me: failed program was:" >&5
8532 cat conftest.$ac_ext >&5
8533 gt_cv_func_gnugettext2_libintl=no
8534 fi
8535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8536                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
8537               LIBS="$LIBS $LIBICONV"
8538               cat >conftest.$ac_ext <<_ACEOF
8539 #line $LINENO "configure"
8540 #include "confdefs.h"
8541 #include <libintl.h>
8542 extern int _nl_msg_cat_cntr;
8543 extern
8544 #ifdef __cplusplus
8545 "C"
8546 #endif
8547 const char *_nl_expand_alias ();
8548 #ifdef F77_DUMMY_MAIN
8549 #  ifdef __cplusplus
8550      extern "C"
8551 #  endif
8552    int F77_DUMMY_MAIN() { return 1; }
8553 #endif
8554 int
8555 main ()
8556 {
8557 bindtextdomain ("", "");
8558 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8559   ;
8560   return 0;
8561 }
8562 _ACEOF
8563 rm -f conftest.$ac_objext conftest$ac_exeext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8565   (eval $ac_link) 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); } &&
8569          { ac_try='test -s conftest$ac_exeext'
8570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571   (eval $ac_try) 2>&5
8572   ac_status=$?
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); }; }; then
8575   LIBINTL="$LIBINTL $LIBICONV"
8576                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8577                 gt_cv_func_gnugettext2_libintl=yes
8578
8579 else
8580   echo "$as_me: failed program was:" >&5
8581 cat conftest.$ac_ext >&5
8582 fi
8583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8584             fi
8585             CPPFLAGS="$gt_save_CPPFLAGS"
8586             LIBS="$gt_save_LIBS"
8587 fi
8588 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
8589 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
8590         fi
8591
8592                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8593            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8594                 && test "$PACKAGE" != gettext-runtime \
8595                 && test "$PACKAGE" != gettext-tools; }; then
8596           gt_use_preinstalled_gnugettext=yes
8597         else
8598                     LIBINTL=
8599           LTLIBINTL=
8600           INCINTL=
8601         fi
8602
8603
8604         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8605                               nls_cv_use_gnu_gettext=yes
8606         fi
8607       fi
8608
8609       if test "$nls_cv_use_gnu_gettext" = "yes"; then
8610                 BUILD_INCLUDED_LIBINTL=yes
8611         USE_INCLUDED_LIBINTL=yes
8612         LIBINTL="lib/intl/libintl.a $LIBICONV"
8613         LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
8614         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8615       fi
8616
8617       if test "$gt_use_preinstalled_gnugettext" = "yes" \
8618          || test "$nls_cv_use_gnu_gettext" = "yes"; then
8619                 CATOBJEXT=.gmo
8620       fi
8621
8622
8623     if test "$gt_use_preinstalled_gnugettext" = "yes" \
8624        || test "$nls_cv_use_gnu_gettext" = "yes"; then
8625
8626 cat >>confdefs.h <<\_ACEOF
8627 #define ENABLE_NLS 1
8628 _ACEOF
8629
8630     else
8631       USE_NLS=no
8632     fi
8633   fi
8634
8635   echo "$as_me:$LINENO: checking whether to use NLS" >&5
8636 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
8637   echo "$as_me:$LINENO: result: $USE_NLS" >&5
8638 echo "${ECHO_T}$USE_NLS" >&6
8639   if test "$USE_NLS" = "yes"; then
8640     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
8641 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
8642     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8643       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8644         gt_source="external libintl"
8645       else
8646         gt_source="libc"
8647       fi
8648     else
8649       gt_source="included intl directory"
8650     fi
8651     echo "$as_me:$LINENO: result: $gt_source" >&5
8652 echo "${ECHO_T}$gt_source" >&6
8653   fi
8654
8655   if test "$USE_NLS" = "yes"; then
8656
8657     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8658       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8659         echo "$as_me:$LINENO: checking how to link with libintl" >&5
8660 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
8661         echo "$as_me:$LINENO: result: $LIBINTL" >&5
8662 echo "${ECHO_T}$LIBINTL" >&6
8663
8664   for element in $INCINTL; do
8665     haveit=
8666     for x in $CPPFLAGS; do
8667
8668   acl_save_prefix="$prefix"
8669   prefix="$acl_final_prefix"
8670   acl_save_exec_prefix="$exec_prefix"
8671   exec_prefix="$acl_final_exec_prefix"
8672   eval x=\"$x\"
8673   exec_prefix="$acl_save_exec_prefix"
8674   prefix="$acl_save_prefix"
8675
8676       if test "X$x" = "X$element"; then
8677         haveit=yes
8678         break
8679       fi
8680     done
8681     if test -z "$haveit"; then
8682       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8683     fi
8684   done
8685
8686       fi
8687
8688
8689 cat >>confdefs.h <<\_ACEOF
8690 #define HAVE_GETTEXT 1
8691 _ACEOF
8692
8693
8694 cat >>confdefs.h <<\_ACEOF
8695 #define HAVE_DCGETTEXT 1
8696 _ACEOF
8697
8698     fi
8699
8700         POSUB=po
8701   fi
8702
8703
8704             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
8705       BUILD_INCLUDED_LIBINTL=yes
8706     fi
8707
8708
8709
8710
8711
8712         nls_cv_header_intl=
8713     nls_cv_header_libgt=
8714
8715         DATADIRNAME=share
8716
8717
8718         INSTOBJEXT=.mo
8719
8720
8721         GENCAT=gencat
8722
8723
8724         if test "$USE_INCLUDED_LIBINTL" = yes; then
8725       INTLOBJS="\$(GETTOBJS)"
8726     fi
8727
8728
8729         INTL_LIBTOOL_SUFFIX_PREFIX=
8730
8731
8732
8733     INTLLIBS="$LIBINTL"
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746 ac_header_dirent=no
8747 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8748   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8749 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8750 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8752   echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754   cat >conftest.$ac_ext <<_ACEOF
8755 #line $LINENO "configure"
8756 #include "confdefs.h"
8757 #include <sys/types.h>
8758 #include <$ac_hdr>
8759
8760 #ifdef F77_DUMMY_MAIN
8761 #  ifdef __cplusplus
8762      extern "C"
8763 #  endif
8764    int F77_DUMMY_MAIN() { return 1; }
8765 #endif
8766 int
8767 main ()
8768 {
8769 if ((DIR *) 0)
8770 return 0;
8771   ;
8772   return 0;
8773 }
8774 _ACEOF
8775 rm -f conftest.$ac_objext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777   (eval $ac_compile) 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); } &&
8781          { ac_try='test -s conftest.$ac_objext'
8782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783   (eval $ac_try) 2>&5
8784   ac_status=$?
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); }; }; then
8787   eval "$as_ac_Header=yes"
8788 else
8789   echo "$as_me: failed program was:" >&5
8790 cat conftest.$ac_ext >&5
8791 eval "$as_ac_Header=no"
8792 fi
8793 rm -f conftest.$ac_objext conftest.$ac_ext
8794 fi
8795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8798   cat >>confdefs.h <<_ACEOF
8799 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8800 _ACEOF
8801
8802 ac_header_dirent=$ac_hdr; break
8803 fi
8804
8805 done
8806 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8807 if test $ac_header_dirent = dirent.h; then
8808   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8809 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8810 if test "${ac_cv_search_opendir+set}" = set; then
8811   echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813   ac_func_search_save_LIBS=$LIBS
8814 ac_cv_search_opendir=no
8815 cat >conftest.$ac_ext <<_ACEOF
8816 #line $LINENO "configure"
8817 #include "confdefs.h"
8818
8819 /* Override any gcc2 internal prototype to avoid an error.  */
8820 #ifdef __cplusplus
8821 extern "C"
8822 #endif
8823 /* We use char because int might match the return type of a gcc2
8824    builtin and then its argument prototype would still apply.  */
8825 char opendir ();
8826 #ifdef F77_DUMMY_MAIN
8827 #  ifdef __cplusplus
8828      extern "C"
8829 #  endif
8830    int F77_DUMMY_MAIN() { return 1; }
8831 #endif
8832 int
8833 main ()
8834 {
8835 opendir ();
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842   (eval $ac_link) 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } &&
8846          { ac_try='test -s conftest$ac_exeext'
8847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848   (eval $ac_try) 2>&5
8849   ac_status=$?
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); }; }; then
8852   ac_cv_search_opendir="none required"
8853 else
8854   echo "$as_me: failed program was:" >&5
8855 cat conftest.$ac_ext >&5
8856 fi
8857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8858 if test "$ac_cv_search_opendir" = no; then
8859   for ac_lib in dir; do
8860     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8861     cat >conftest.$ac_ext <<_ACEOF
8862 #line $LINENO "configure"
8863 #include "confdefs.h"
8864
8865 /* Override any gcc2 internal prototype to avoid an error.  */
8866 #ifdef __cplusplus
8867 extern "C"
8868 #endif
8869 /* We use char because int might match the return type of a gcc2
8870    builtin and then its argument prototype would still apply.  */
8871 char opendir ();
8872 #ifdef F77_DUMMY_MAIN
8873 #  ifdef __cplusplus
8874      extern "C"
8875 #  endif
8876    int F77_DUMMY_MAIN() { return 1; }
8877 #endif
8878 int
8879 main ()
8880 {
8881 opendir ();
8882   ;
8883   return 0;
8884 }
8885 _ACEOF
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888   (eval $ac_link) 2>&5
8889   ac_status=$?
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); } &&
8892          { ac_try='test -s conftest$ac_exeext'
8893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894   (eval $ac_try) 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); }; }; then
8898   ac_cv_search_opendir="-l$ac_lib"
8899 break
8900 else
8901   echo "$as_me: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8903 fi
8904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8905   done
8906 fi
8907 LIBS=$ac_func_search_save_LIBS
8908 fi
8909 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8910 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8911 if test "$ac_cv_search_opendir" != no; then
8912   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8913
8914 fi
8915
8916 else
8917   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8918 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8919 if test "${ac_cv_search_opendir+set}" = set; then
8920   echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922   ac_func_search_save_LIBS=$LIBS
8923 ac_cv_search_opendir=no
8924 cat >conftest.$ac_ext <<_ACEOF
8925 #line $LINENO "configure"
8926 #include "confdefs.h"
8927
8928 /* Override any gcc2 internal prototype to avoid an error.  */
8929 #ifdef __cplusplus
8930 extern "C"
8931 #endif
8932 /* We use char because int might match the return type of a gcc2
8933    builtin and then its argument prototype would still apply.  */
8934 char opendir ();
8935 #ifdef F77_DUMMY_MAIN
8936 #  ifdef __cplusplus
8937      extern "C"
8938 #  endif
8939    int F77_DUMMY_MAIN() { return 1; }
8940 #endif
8941 int
8942 main ()
8943 {
8944 opendir ();
8945   ;
8946   return 0;
8947 }
8948 _ACEOF
8949 rm -f conftest.$ac_objext conftest$ac_exeext
8950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8951   (eval $ac_link) 2>&5
8952   ac_status=$?
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); } &&
8955          { ac_try='test -s conftest$ac_exeext'
8956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957   (eval $ac_try) 2>&5
8958   ac_status=$?
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); }; }; then
8961   ac_cv_search_opendir="none required"
8962 else
8963   echo "$as_me: failed program was:" >&5
8964 cat conftest.$ac_ext >&5
8965 fi
8966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8967 if test "$ac_cv_search_opendir" = no; then
8968   for ac_lib in x; do
8969     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8970     cat >conftest.$ac_ext <<_ACEOF
8971 #line $LINENO "configure"
8972 #include "confdefs.h"
8973
8974 /* Override any gcc2 internal prototype to avoid an error.  */
8975 #ifdef __cplusplus
8976 extern "C"
8977 #endif
8978 /* We use char because int might match the return type of a gcc2
8979    builtin and then its argument prototype would still apply.  */
8980 char opendir ();
8981 #ifdef F77_DUMMY_MAIN
8982 #  ifdef __cplusplus
8983      extern "C"
8984 #  endif
8985    int F77_DUMMY_MAIN() { return 1; }
8986 #endif
8987 int
8988 main ()
8989 {
8990 opendir ();
8991   ;
8992   return 0;
8993 }
8994 _ACEOF
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997   (eval $ac_link) 2>&5
8998   ac_status=$?
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); } &&
9001          { ac_try='test -s conftest$ac_exeext'
9002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003   (eval $ac_try) 2>&5
9004   ac_status=$?
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); }; }; then
9007   ac_cv_search_opendir="-l$ac_lib"
9008 break
9009 else
9010   echo "$as_me: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9012 fi
9013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9014   done
9015 fi
9016 LIBS=$ac_func_search_save_LIBS
9017 fi
9018 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9019 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9020 if test "$ac_cv_search_opendir" != no; then
9021   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9022
9023 fi
9024
9025 fi
9026
9027 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9028 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9029 if test "${ac_cv_header_time+set}" = set; then
9030   echo $ECHO_N "(cached) $ECHO_C" >&6
9031 else
9032   cat >conftest.$ac_ext <<_ACEOF
9033 #line $LINENO "configure"
9034 #include "confdefs.h"
9035 #include <sys/types.h>
9036 #include <sys/time.h>
9037 #include <time.h>
9038
9039 #ifdef F77_DUMMY_MAIN
9040 #  ifdef __cplusplus
9041      extern "C"
9042 #  endif
9043    int F77_DUMMY_MAIN() { return 1; }
9044 #endif
9045 int
9046 main ()
9047 {
9048 if ((struct tm *) 0)
9049 return 0;
9050   ;
9051   return 0;
9052 }
9053 _ACEOF
9054 rm -f conftest.$ac_objext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056   (eval $ac_compile) 2>&5
9057   ac_status=$?
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); } &&
9060          { ac_try='test -s conftest.$ac_objext'
9061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062   (eval $ac_try) 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); }; }; then
9066   ac_cv_header_time=yes
9067 else
9068   echo "$as_me: failed program was:" >&5
9069 cat conftest.$ac_ext >&5
9070 ac_cv_header_time=no
9071 fi
9072 rm -f conftest.$ac_objext conftest.$ac_ext
9073 fi
9074 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9075 echo "${ECHO_T}$ac_cv_header_time" >&6
9076 if test $ac_cv_header_time = yes; then
9077
9078 cat >>confdefs.h <<\_ACEOF
9079 #define TIME_WITH_SYS_TIME 1
9080 _ACEOF
9081
9082 fi
9083
9084
9085
9086
9087 for ac_header in inttypes.h
9088 do
9089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091   echo "$as_me:$LINENO: checking for $ac_header" >&5
9092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9094   echo $ECHO_N "(cached) $ECHO_C" >&6
9095 fi
9096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9098 else
9099   # Is the header compilable?
9100 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9102 cat >conftest.$ac_ext <<_ACEOF
9103 #line $LINENO "configure"
9104 #include "confdefs.h"
9105 $ac_includes_default
9106 #include <$ac_header>
9107 _ACEOF
9108 rm -f conftest.$ac_objext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9110   (eval $ac_compile) 2>&5
9111   ac_status=$?
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } &&
9114          { ac_try='test -s conftest.$ac_objext'
9115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116   (eval $ac_try) 2>&5
9117   ac_status=$?
9118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119   (exit $ac_status); }; }; then
9120   ac_header_compiler=yes
9121 else
9122   echo "$as_me: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9124 ac_header_compiler=no
9125 fi
9126 rm -f conftest.$ac_objext conftest.$ac_ext
9127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9128 echo "${ECHO_T}$ac_header_compiler" >&6
9129
9130 # Is the header present?
9131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9133 cat >conftest.$ac_ext <<_ACEOF
9134 #line $LINENO "configure"
9135 #include "confdefs.h"
9136 #include <$ac_header>
9137 _ACEOF
9138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9140   ac_status=$?
9141   egrep -v '^ *\+' conftest.er1 >conftest.err
9142   rm -f conftest.er1
9143   cat conftest.err >&5
9144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145   (exit $ac_status); } >/dev/null; then
9146   if test -s conftest.err; then
9147     ac_cpp_err=$ac_c_preproc_warn_flag
9148   else
9149     ac_cpp_err=
9150   fi
9151 else
9152   ac_cpp_err=yes
9153 fi
9154 if test -z "$ac_cpp_err"; then
9155   ac_header_preproc=yes
9156 else
9157   echo "$as_me: failed program was:" >&5
9158   cat conftest.$ac_ext >&5
9159   ac_header_preproc=no
9160 fi
9161 rm -f conftest.err conftest.$ac_ext
9162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9163 echo "${ECHO_T}$ac_header_preproc" >&6
9164
9165 # So?  What about this header?
9166 case $ac_header_compiler:$ac_header_preproc in
9167   yes:no )
9168     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9172   no:yes )
9173     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9175     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9179 esac
9180 echo "$as_me:$LINENO: checking for $ac_header" >&5
9181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9183   echo $ECHO_N "(cached) $ECHO_C" >&6
9184 else
9185   eval "$as_ac_Header=$ac_header_preproc"
9186 fi
9187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9189
9190 fi
9191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9192   cat >>confdefs.h <<_ACEOF
9193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9194 _ACEOF
9195
9196 fi
9197
9198 done
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
9222                  memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
9223                  stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h
9224 do
9225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9227   echo "$as_me:$LINENO: checking for $ac_header" >&5
9228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9230   echo $ECHO_N "(cached) $ECHO_C" >&6
9231 fi
9232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9234 else
9235   # Is the header compilable?
9236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9238 cat >conftest.$ac_ext <<_ACEOF
9239 #line $LINENO "configure"
9240 #include "confdefs.h"
9241 $ac_includes_default
9242 #include <$ac_header>
9243 _ACEOF
9244 rm -f conftest.$ac_objext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246   (eval $ac_compile) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); } &&
9250          { ac_try='test -s conftest.$ac_objext'
9251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252   (eval $ac_try) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; }; then
9256   ac_header_compiler=yes
9257 else
9258   echo "$as_me: failed program was:" >&5
9259 cat conftest.$ac_ext >&5
9260 ac_header_compiler=no
9261 fi
9262 rm -f conftest.$ac_objext conftest.$ac_ext
9263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9264 echo "${ECHO_T}$ac_header_compiler" >&6
9265
9266 # Is the header present?
9267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9269 cat >conftest.$ac_ext <<_ACEOF
9270 #line $LINENO "configure"
9271 #include "confdefs.h"
9272 #include <$ac_header>
9273 _ACEOF
9274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9275   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9276   ac_status=$?
9277   egrep -v '^ *\+' conftest.er1 >conftest.err
9278   rm -f conftest.er1
9279   cat conftest.err >&5
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); } >/dev/null; then
9282   if test -s conftest.err; then
9283     ac_cpp_err=$ac_c_preproc_warn_flag
9284   else
9285     ac_cpp_err=
9286   fi
9287 else
9288   ac_cpp_err=yes
9289 fi
9290 if test -z "$ac_cpp_err"; then
9291   ac_header_preproc=yes
9292 else
9293   echo "$as_me: failed program was:" >&5
9294   cat conftest.$ac_ext >&5
9295   ac_header_preproc=no
9296 fi
9297 rm -f conftest.err conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9299 echo "${ECHO_T}$ac_header_preproc" >&6
9300
9301 # So?  What about this header?
9302 case $ac_header_compiler:$ac_header_preproc in
9303   yes:no )
9304     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9308   no:yes )
9309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9311     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9315 esac
9316 echo "$as_me:$LINENO: checking for $ac_header" >&5
9317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9319   echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321   eval "$as_ac_Header=$ac_header_preproc"
9322 fi
9323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9325
9326 fi
9327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9328   cat >>confdefs.h <<_ACEOF
9329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9330 _ACEOF
9331
9332 fi
9333
9334 done
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
9349                  sys/resource.h sys/param.h sys/socket.h sys/stat.h \
9350                  sys/time.h sys/times.h sys/types.h sys/wait.h
9351 do
9352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9354   echo "$as_me:$LINENO: checking for $ac_header" >&5
9355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9357   echo $ECHO_N "(cached) $ECHO_C" >&6
9358 fi
9359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9361 else
9362   # Is the header compilable?
9363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9365 cat >conftest.$ac_ext <<_ACEOF
9366 #line $LINENO "configure"
9367 #include "confdefs.h"
9368 $ac_includes_default
9369 #include <$ac_header>
9370 _ACEOF
9371 rm -f conftest.$ac_objext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373   (eval $ac_compile) 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); } &&
9377          { ac_try='test -s conftest.$ac_objext'
9378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379   (eval $ac_try) 2>&5
9380   ac_status=$?
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); }; }; then
9383   ac_header_compiler=yes
9384 else
9385   echo "$as_me: failed program was:" >&5
9386 cat conftest.$ac_ext >&5
9387 ac_header_compiler=no
9388 fi
9389 rm -f conftest.$ac_objext conftest.$ac_ext
9390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9391 echo "${ECHO_T}$ac_header_compiler" >&6
9392
9393 # Is the header present?
9394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9396 cat >conftest.$ac_ext <<_ACEOF
9397 #line $LINENO "configure"
9398 #include "confdefs.h"
9399 #include <$ac_header>
9400 _ACEOF
9401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9403   ac_status=$?
9404   egrep -v '^ *\+' conftest.er1 >conftest.err
9405   rm -f conftest.er1
9406   cat conftest.err >&5
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); } >/dev/null; then
9409   if test -s conftest.err; then
9410     ac_cpp_err=$ac_c_preproc_warn_flag
9411   else
9412     ac_cpp_err=
9413   fi
9414 else
9415   ac_cpp_err=yes
9416 fi
9417 if test -z "$ac_cpp_err"; then
9418   ac_header_preproc=yes
9419 else
9420   echo "$as_me: failed program was:" >&5
9421   cat conftest.$ac_ext >&5
9422   ac_header_preproc=no
9423 fi
9424 rm -f conftest.err conftest.$ac_ext
9425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9426 echo "${ECHO_T}$ac_header_preproc" >&6
9427
9428 # So?  What about this header?
9429 case $ac_header_compiler:$ac_header_preproc in
9430   yes:no )
9431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9435   no:yes )
9436     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9438     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9442 esac
9443 echo "$as_me:$LINENO: checking for $ac_header" >&5
9444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9446   echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448   eval "$as_ac_Header=$ac_header_preproc"
9449 fi
9450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9452
9453 fi
9454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9455   cat >>confdefs.h <<_ACEOF
9456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9457 _ACEOF
9458
9459 fi
9460
9461 done
9462
9463
9464
9465 for ac_header in netinet/in.h arpa/inet.h
9466 do
9467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9469   echo "$as_me:$LINENO: checking for $ac_header" >&5
9470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9472   echo $ECHO_N "(cached) $ECHO_C" >&6
9473 fi
9474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9476 else
9477   # Is the header compilable?
9478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9480 cat >conftest.$ac_ext <<_ACEOF
9481 #line $LINENO "configure"
9482 #include "confdefs.h"
9483 $ac_includes_default
9484 #include <$ac_header>
9485 _ACEOF
9486 rm -f conftest.$ac_objext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488   (eval $ac_compile) 2>&5
9489   ac_status=$?
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); } &&
9492          { ac_try='test -s conftest.$ac_objext'
9493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494   (eval $ac_try) 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); }; }; then
9498   ac_header_compiler=yes
9499 else
9500   echo "$as_me: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9502 ac_header_compiler=no
9503 fi
9504 rm -f conftest.$ac_objext conftest.$ac_ext
9505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9506 echo "${ECHO_T}$ac_header_compiler" >&6
9507
9508 # Is the header present?
9509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9511 cat >conftest.$ac_ext <<_ACEOF
9512 #line $LINENO "configure"
9513 #include "confdefs.h"
9514 #include <$ac_header>
9515 _ACEOF
9516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9518   ac_status=$?
9519   egrep -v '^ *\+' conftest.er1 >conftest.err
9520   rm -f conftest.er1
9521   cat conftest.err >&5
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); } >/dev/null; then
9524   if test -s conftest.err; then
9525     ac_cpp_err=$ac_c_preproc_warn_flag
9526   else
9527     ac_cpp_err=
9528   fi
9529 else
9530   ac_cpp_err=yes
9531 fi
9532 if test -z "$ac_cpp_err"; then
9533   ac_header_preproc=yes
9534 else
9535   echo "$as_me: failed program was:" >&5
9536   cat conftest.$ac_ext >&5
9537   ac_header_preproc=no
9538 fi
9539 rm -f conftest.err conftest.$ac_ext
9540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9541 echo "${ECHO_T}$ac_header_preproc" >&6
9542
9543 # So?  What about this header?
9544 case $ac_header_compiler:$ac_header_preproc in
9545   yes:no )
9546     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9548     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9550   no:yes )
9551     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9553     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9557 esac
9558 echo "$as_me:$LINENO: checking for $ac_header" >&5
9559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9561   echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563   eval "$as_ac_Header=$ac_header_preproc"
9564 fi
9565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9567
9568 fi
9569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9570   cat >>confdefs.h <<_ACEOF
9571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9572 _ACEOF
9573
9574 fi
9575
9576 done
9577
9578
9579 echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
9580 echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
9581 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
9582   echo $ECHO_N "(cached) $ECHO_C" >&6
9583 else
9584   cat >conftest.$ac_ext <<_ACEOF
9585 #line $LINENO "configure"
9586 #include "confdefs.h"
9587
9588 #if HAVE_SYS_STREAM_H
9589 #  include <sys/stream.h>
9590 #endif
9591
9592
9593 #include <sys/ptem.h>
9594 _ACEOF
9595 rm -f conftest.$ac_objext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9597   (eval $ac_compile) 2>&5
9598   ac_status=$?
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); } &&
9601          { ac_try='test -s conftest.$ac_objext'
9602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603   (eval $ac_try) 2>&5
9604   ac_status=$?
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); }; }; then
9607   ac_cv_header_sys_ptem_h=yes
9608 else
9609   echo "$as_me: failed program was:" >&5
9610 cat conftest.$ac_ext >&5
9611 ac_cv_header_sys_ptem_h=no
9612 fi
9613 rm -f conftest.$ac_objext conftest.$ac_ext
9614 fi
9615 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
9616 echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
9617
9618
9619
9620 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9621 # for constant arguments.  Useless!
9622 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9623 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9624 if test "${ac_cv_working_alloca_h+set}" = set; then
9625   echo $ECHO_N "(cached) $ECHO_C" >&6
9626 else
9627   cat >conftest.$ac_ext <<_ACEOF
9628 #line $LINENO "configure"
9629 #include "confdefs.h"
9630 #include <alloca.h>
9631 #ifdef F77_DUMMY_MAIN
9632 #  ifdef __cplusplus
9633      extern "C"
9634 #  endif
9635    int F77_DUMMY_MAIN() { return 1; }
9636 #endif
9637 int
9638 main ()
9639 {
9640 char *p = (char *) alloca (2 * sizeof (int));
9641   ;
9642   return 0;
9643 }
9644 _ACEOF
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9647   (eval $ac_link) 2>&5
9648   ac_status=$?
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } &&
9651          { ac_try='test -s conftest$ac_exeext'
9652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653   (eval $ac_try) 2>&5
9654   ac_status=$?
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); }; }; then
9657   ac_cv_working_alloca_h=yes
9658 else
9659   echo "$as_me: failed program was:" >&5
9660 cat conftest.$ac_ext >&5
9661 ac_cv_working_alloca_h=no
9662 fi
9663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9664 fi
9665 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9666 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9667 if test $ac_cv_working_alloca_h = yes; then
9668
9669 cat >>confdefs.h <<\_ACEOF
9670 #define HAVE_ALLOCA_H 1
9671 _ACEOF
9672
9673 fi
9674
9675 echo "$as_me:$LINENO: checking for alloca" >&5
9676 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9677 if test "${ac_cv_func_alloca_works+set}" = set; then
9678   echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680   cat >conftest.$ac_ext <<_ACEOF
9681 #line $LINENO "configure"
9682 #include "confdefs.h"
9683 #ifdef __GNUC__
9684 # define alloca __builtin_alloca
9685 #else
9686 # ifdef _MSC_VER
9687 #  include <malloc.h>
9688 #  define alloca _alloca
9689 # else
9690 #  if HAVE_ALLOCA_H
9691 #   include <alloca.h>
9692 #  else
9693 #   ifdef _AIX
9694  #pragma alloca
9695 #   else
9696 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9697 char *alloca ();
9698 #    endif
9699 #   endif
9700 #  endif
9701 # endif
9702 #endif
9703
9704 #ifdef F77_DUMMY_MAIN
9705 #  ifdef __cplusplus
9706      extern "C"
9707 #  endif
9708    int F77_DUMMY_MAIN() { return 1; }
9709 #endif
9710 int
9711 main ()
9712 {
9713 char *p = (char *) alloca (1);
9714   ;
9715   return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720   (eval $ac_link) 2>&5
9721   ac_status=$?
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); } &&
9724          { ac_try='test -s conftest$ac_exeext'
9725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726   (eval $ac_try) 2>&5
9727   ac_status=$?
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); }; }; then
9730   ac_cv_func_alloca_works=yes
9731 else
9732   echo "$as_me: failed program was:" >&5
9733 cat conftest.$ac_ext >&5
9734 ac_cv_func_alloca_works=no
9735 fi
9736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9737 fi
9738 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9739 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9740
9741 if test $ac_cv_func_alloca_works = yes; then
9742
9743 cat >>confdefs.h <<\_ACEOF
9744 #define HAVE_ALLOCA 1
9745 _ACEOF
9746
9747 else
9748   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9749 # that cause trouble.  Some versions do not even contain alloca or
9750 # contain a buggy version.  If you still want to use their alloca,
9751 # use ar to extract alloca.o from them instead of compiling alloca.c.
9752
9753 ALLOCA=alloca.$ac_objext
9754
9755 cat >>confdefs.h <<\_ACEOF
9756 #define C_ALLOCA 1
9757 _ACEOF
9758
9759
9760 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9761 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9762 if test "${ac_cv_os_cray+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   cat >conftest.$ac_ext <<_ACEOF
9766 #line $LINENO "configure"
9767 #include "confdefs.h"
9768 #if defined(CRAY) && ! defined(CRAY2)
9769 webecray
9770 #else
9771 wenotbecray
9772 #endif
9773
9774 _ACEOF
9775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9776   egrep "webecray" >/dev/null 2>&1; then
9777   ac_cv_os_cray=yes
9778 else
9779   ac_cv_os_cray=no
9780 fi
9781 rm -f conftest*
9782
9783 fi
9784 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9785 echo "${ECHO_T}$ac_cv_os_cray" >&6
9786 if test $ac_cv_os_cray = yes; then
9787   for ac_func in _getb67 GETB67 getb67; do
9788     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9789 echo "$as_me:$LINENO: checking for $ac_func" >&5
9790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9791 if eval "test \"\${$as_ac_var+set}\" = set"; then
9792   echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794   cat >conftest.$ac_ext <<_ACEOF
9795 #line $LINENO "configure"
9796 #include "confdefs.h"
9797 /* System header to define __stub macros and hopefully few prototypes,
9798     which can conflict with char $ac_func (); below.  */
9799 #include <assert.h>
9800 /* Override any gcc2 internal prototype to avoid an error.  */
9801 #ifdef __cplusplus
9802 extern "C"
9803 #endif
9804 /* We use char because int might match the return type of a gcc2
9805    builtin and then its argument prototype would still apply.  */
9806 char $ac_func ();
9807 char (*f) ();
9808
9809 #ifdef F77_DUMMY_MAIN
9810 #  ifdef __cplusplus
9811      extern "C"
9812 #  endif
9813    int F77_DUMMY_MAIN() { return 1; }
9814 #endif
9815 int
9816 main ()
9817 {
9818 /* The GNU C library defines this for functions which it implements
9819     to always fail with ENOSYS.  Some functions are actually named
9820     something starting with __ and the normal name is an alias.  */
9821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9822 choke me
9823 #else
9824 f = $ac_func;
9825 #endif
9826
9827   ;
9828   return 0;
9829 }
9830 _ACEOF
9831 rm -f conftest.$ac_objext conftest$ac_exeext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833   (eval $ac_link) 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); } &&
9837          { ac_try='test -s conftest$ac_exeext'
9838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839   (eval $ac_try) 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; }; then
9843   eval "$as_ac_var=yes"
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 cat conftest.$ac_ext >&5
9847 eval "$as_ac_var=no"
9848 fi
9849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9850 fi
9851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9853 if test `eval echo '${'$as_ac_var'}'` = yes; then
9854
9855 cat >>confdefs.h <<_ACEOF
9856 #define CRAY_STACKSEG_END $ac_func
9857 _ACEOF
9858
9859     break
9860 fi
9861
9862   done
9863 fi
9864
9865 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9866 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9867 if test "${ac_cv_c_stack_direction+set}" = set; then
9868   echo $ECHO_N "(cached) $ECHO_C" >&6
9869 else
9870   if test "$cross_compiling" = yes; then
9871   ac_cv_c_stack_direction=0
9872 else
9873   cat >conftest.$ac_ext <<_ACEOF
9874 #line $LINENO "configure"
9875 #include "confdefs.h"
9876 int
9877 find_stack_direction ()
9878 {
9879   static char *addr = 0;
9880   auto char dummy;
9881   if (addr == 0)
9882     {
9883       addr = &dummy;
9884       return find_stack_direction ();
9885     }
9886   else
9887     return (&dummy > addr) ? 1 : -1;
9888 }
9889
9890 int
9891 main ()
9892 {
9893   exit (find_stack_direction () < 0);
9894 }
9895 _ACEOF
9896 rm -f conftest$ac_exeext
9897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9898   (eval $ac_link) 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903   (eval $ac_try) 2>&5
9904   ac_status=$?
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); }; }; then
9907   ac_cv_c_stack_direction=1
9908 else
9909   echo "$as_me: program exited with status $ac_status" >&5
9910 echo "$as_me: failed program was:" >&5
9911 cat conftest.$ac_ext >&5
9912 ( exit $ac_status )
9913 ac_cv_c_stack_direction=-1
9914 fi
9915 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9916 fi
9917 fi
9918 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9919 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9920
9921 cat >>confdefs.h <<_ACEOF
9922 #define STACK_DIRECTION $ac_cv_c_stack_direction
9923 _ACEOF
9924
9925
9926 fi
9927
9928 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
9929 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
9930 if test "${ac_cv_func_getpgrp_void+set}" = set; then
9931   echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933   # Use it with a single arg.
9934 cat >conftest.$ac_ext <<_ACEOF
9935 #line $LINENO "configure"
9936 #include "confdefs.h"
9937 $ac_includes_default
9938 #ifdef F77_DUMMY_MAIN
9939 #  ifdef __cplusplus
9940      extern "C"
9941 #  endif
9942    int F77_DUMMY_MAIN() { return 1; }
9943 #endif
9944 int
9945 main ()
9946 {
9947 getpgrp (0);
9948   ;
9949   return 0;
9950 }
9951 _ACEOF
9952 rm -f conftest.$ac_objext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9954   (eval $ac_compile) 2>&5
9955   ac_status=$?
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); } &&
9958          { ac_try='test -s conftest.$ac_objext'
9959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960   (eval $ac_try) 2>&5
9961   ac_status=$?
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); }; }; then
9964   ac_cv_func_getpgrp_void=no
9965 else
9966   echo "$as_me: failed program was:" >&5
9967 cat conftest.$ac_ext >&5
9968 ac_cv_func_getpgrp_void=yes
9969 fi
9970 rm -f conftest.$ac_objext conftest.$ac_ext
9971
9972 fi
9973 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
9974 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
9975 if test $ac_cv_func_getpgrp_void = yes; then
9976
9977 cat >>confdefs.h <<\_ACEOF
9978 #define GETPGRP_VOID 1
9979 _ACEOF
9980
9981 fi
9982
9983 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
9984 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
9985 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
9986   echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988   if test "$cross_compiling" = yes; then
9989   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9990 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9991    { (exit 1); exit 1; }; }
9992 else
9993   cat >conftest.$ac_ext <<_ACEOF
9994 #line $LINENO "configure"
9995 #include "confdefs.h"
9996 #include <stdio.h>
9997 /* If setvbuf has the reversed format, exit 0. */
9998 int
9999 main ()
10000 {
10001   /* This call has the arguments reversed.
10002      A reversed system may check and see that the address of main
10003      is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
10004   if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
10005     exit(1);
10006   putc('\r', stdout);
10007   exit(0);                      /* Non-reversed systems segv here.  */
10008 }
10009 _ACEOF
10010 rm -f conftest$ac_exeext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012   (eval $ac_link) 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017   (eval $ac_try) 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; }; then
10021   ac_cv_func_setvbuf_reversed=yes
10022 else
10023   echo "$as_me: program exited with status $ac_status" >&5
10024 echo "$as_me: failed program was:" >&5
10025 cat conftest.$ac_ext >&5
10026 ( exit $ac_status )
10027 ac_cv_func_setvbuf_reversed=no
10028 fi
10029 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10030 fi
10031 rm -f core core.* *.core
10032 fi
10033 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10034 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10035 if test $ac_cv_func_setvbuf_reversed = yes; then
10036
10037 cat >>confdefs.h <<\_ACEOF
10038 #define SETVBUF_REVERSED 1
10039 _ACEOF
10040
10041 fi
10042
10043
10044 for ac_func in vprintf
10045 do
10046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10047 echo "$as_me:$LINENO: checking for $ac_func" >&5
10048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10049 if eval "test \"\${$as_ac_var+set}\" = set"; then
10050   echo $ECHO_N "(cached) $ECHO_C" >&6
10051 else
10052   cat >conftest.$ac_ext <<_ACEOF
10053 #line $LINENO "configure"
10054 #include "confdefs.h"
10055 /* System header to define __stub macros and hopefully few prototypes,
10056     which can conflict with char $ac_func (); below.  */
10057 #include <assert.h>
10058 /* Override any gcc2 internal prototype to avoid an error.  */
10059 #ifdef __cplusplus
10060 extern "C"
10061 #endif
10062 /* We use char because int might match the return type of a gcc2
10063    builtin and then its argument prototype would still apply.  */
10064 char $ac_func ();
10065 char (*f) ();
10066
10067 #ifdef F77_DUMMY_MAIN
10068 #  ifdef __cplusplus
10069      extern "C"
10070 #  endif
10071    int F77_DUMMY_MAIN() { return 1; }
10072 #endif
10073 int
10074 main ()
10075 {
10076 /* The GNU C library defines this for functions which it implements
10077     to always fail with ENOSYS.  Some functions are actually named
10078     something starting with __ and the normal name is an alias.  */
10079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10080 choke me
10081 #else
10082 f = $ac_func;
10083 #endif
10084
10085   ;
10086   return 0;
10087 }
10088 _ACEOF
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091   (eval $ac_link) 2>&5
10092   ac_status=$?
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); } &&
10095          { ac_try='test -s conftest$ac_exeext'
10096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097   (eval $ac_try) 2>&5
10098   ac_status=$?
10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100   (exit $ac_status); }; }; then
10101   eval "$as_ac_var=yes"
10102 else
10103   echo "$as_me: failed program was:" >&5
10104 cat conftest.$ac_ext >&5
10105 eval "$as_ac_var=no"
10106 fi
10107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10108 fi
10109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10111 if test `eval echo '${'$as_ac_var'}'` = yes; then
10112   cat >>confdefs.h <<_ACEOF
10113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10114 _ACEOF
10115
10116 echo "$as_me:$LINENO: checking for _doprnt" >&5
10117 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10118 if test "${ac_cv_func__doprnt+set}" = set; then
10119   echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121   cat >conftest.$ac_ext <<_ACEOF
10122 #line $LINENO "configure"
10123 #include "confdefs.h"
10124 /* System header to define __stub macros and hopefully few prototypes,
10125     which can conflict with char _doprnt (); below.  */
10126 #include <assert.h>
10127 /* Override any gcc2 internal prototype to avoid an error.  */
10128 #ifdef __cplusplus
10129 extern "C"
10130 #endif
10131 /* We use char because int might match the return type of a gcc2
10132    builtin and then its argument prototype would still apply.  */
10133 char _doprnt ();
10134 char (*f) ();
10135
10136 #ifdef F77_DUMMY_MAIN
10137 #  ifdef __cplusplus
10138      extern "C"
10139 #  endif
10140    int F77_DUMMY_MAIN() { return 1; }
10141 #endif
10142 int
10143 main ()
10144 {
10145 /* The GNU C library defines this for functions which it implements
10146     to always fail with ENOSYS.  Some functions are actually named
10147     something starting with __ and the normal name is an alias.  */
10148 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10149 choke me
10150 #else
10151 f = _doprnt;
10152 #endif
10153
10154   ;
10155   return 0;
10156 }
10157 _ACEOF
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160   (eval $ac_link) 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); } &&
10164          { ac_try='test -s conftest$ac_exeext'
10165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166   (eval $ac_try) 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); }; }; then
10170   ac_cv_func__doprnt=yes
10171 else
10172   echo "$as_me: failed program was:" >&5
10173 cat conftest.$ac_ext >&5
10174 ac_cv_func__doprnt=no
10175 fi
10176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10177 fi
10178 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10179 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10180 if test $ac_cv_func__doprnt = yes; then
10181
10182 cat >>confdefs.h <<\_ACEOF
10183 #define HAVE_DOPRNT 1
10184 _ACEOF
10185
10186 fi
10187
10188 fi
10189 done
10190
10191
10192 echo "$as_me:$LINENO: checking for working strcoll" >&5
10193 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
10194 if test "${ac_cv_func_strcoll_works+set}" = set; then
10195   echo $ECHO_N "(cached) $ECHO_C" >&6
10196 else
10197   if test "$cross_compiling" = yes; then
10198   ac_cv_func_strcoll_works=no
10199 else
10200   cat >conftest.$ac_ext <<_ACEOF
10201 #line $LINENO "configure"
10202 #include "confdefs.h"
10203 $ac_includes_default
10204 #ifdef F77_DUMMY_MAIN
10205 #  ifdef __cplusplus
10206      extern "C"
10207 #  endif
10208    int F77_DUMMY_MAIN() { return 1; }
10209 #endif
10210 int
10211 main ()
10212 {
10213 exit (strcoll ("abc", "def") >= 0 ||
10214          strcoll ("ABC", "DEF") >= 0 ||
10215          strcoll ("123", "456") >= 0)
10216   ;
10217   return 0;
10218 }
10219 _ACEOF
10220 rm -f conftest$ac_exeext
10221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10222   (eval $ac_link) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227   (eval $ac_try) 2>&5
10228   ac_status=$?
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); }; }; then
10231   ac_cv_func_strcoll_works=yes
10232 else
10233   echo "$as_me: program exited with status $ac_status" >&5
10234 echo "$as_me: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10236 ( exit $ac_status )
10237 ac_cv_func_strcoll_works=no
10238 fi
10239 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10240 fi
10241 fi
10242 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
10243 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
10244 if test $ac_cv_func_strcoll_works = yes; then
10245
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_STRCOLL 1
10248 _ACEOF
10249
10250 fi
10251
10252
10253
10254 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
10255         MALLOC_TARGET=alloca
10256         MALLOC_SRC=alloca.c
10257
10258         MALLOC_LIB='-lmalloc'
10259         MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
10260         MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
10261         MALLOC_DEP='$(MALLOC_LIBRARY)'
10262 fi
10263
10264 if test "$ac_cv_func_vprintf" = no; then
10265     echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
10266 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
10267     cat >conftest.$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10269 #include "confdefs.h"
10270 #include <stdio.h>
10271
10272 _ACEOF
10273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10274   egrep "[int[  ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
10275   ac_cv_func_vprintf=yes
10276 fi
10277 rm -f conftest*
10278
10279     echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
10280 echo "${ECHO_T}$ac_cv_func_vprintf" >&6
10281     if test $ac_cv_func_vprintf = yes; then
10282         cat >>confdefs.h <<\_ACEOF
10283 #define HAVE_VPRINTF 1
10284 _ACEOF
10285
10286     fi
10287 fi
10288
10289 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
10290   LIBOBJS="$LIBOBJS vprint.$ac_objext"
10291 fi
10292
10293 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10294 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10295 if test "${ac_cv_type_signal+set}" = set; then
10296   echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298   cat >conftest.$ac_ext <<_ACEOF
10299 #line $LINENO "configure"
10300 #include "confdefs.h"
10301 #include <sys/types.h>
10302 #include <signal.h>
10303 #ifdef signal
10304 # undef signal
10305 #endif
10306 #ifdef __cplusplus
10307 extern "C" void (*signal (int, void (*)(int)))(int);
10308 #else
10309 void (*signal ()) ();
10310 #endif
10311
10312 #ifdef F77_DUMMY_MAIN
10313 #  ifdef __cplusplus
10314      extern "C"
10315 #  endif
10316    int F77_DUMMY_MAIN() { return 1; }
10317 #endif
10318 int
10319 main ()
10320 {
10321 int i;
10322   ;
10323   return 0;
10324 }
10325 _ACEOF
10326 rm -f conftest.$ac_objext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10328   (eval $ac_compile) 2>&5
10329   ac_status=$?
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); } &&
10332          { ac_try='test -s conftest.$ac_objext'
10333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334   (eval $ac_try) 2>&5
10335   ac_status=$?
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); }; }; then
10338   ac_cv_type_signal=void
10339 else
10340   echo "$as_me: failed program was:" >&5
10341 cat conftest.$ac_ext >&5
10342 ac_cv_type_signal=int
10343 fi
10344 rm -f conftest.$ac_objext conftest.$ac_ext
10345 fi
10346 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10347 echo "${ECHO_T}$ac_cv_type_signal" >&6
10348
10349 cat >>confdefs.h <<_ACEOF
10350 #define RETSIGTYPE $ac_cv_type_signal
10351 _ACEOF
10352
10353
10354
10355 echo "$as_me:$LINENO: checking for __setostype" >&5
10356 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
10357 if test "${ac_cv_func___setostype+set}" = set; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   cat >conftest.$ac_ext <<_ACEOF
10361 #line $LINENO "configure"
10362 #include "confdefs.h"
10363 /* System header to define __stub macros and hopefully few prototypes,
10364     which can conflict with char __setostype (); below.  */
10365 #include <assert.h>
10366 /* Override any gcc2 internal prototype to avoid an error.  */
10367 #ifdef __cplusplus
10368 extern "C"
10369 #endif
10370 /* We use char because int might match the return type of a gcc2
10371    builtin and then its argument prototype would still apply.  */
10372 char __setostype ();
10373 char (*f) ();
10374
10375 #ifdef F77_DUMMY_MAIN
10376 #  ifdef __cplusplus
10377      extern "C"
10378 #  endif
10379    int F77_DUMMY_MAIN() { return 1; }
10380 #endif
10381 int
10382 main ()
10383 {
10384 /* The GNU C library defines this for functions which it implements
10385     to always fail with ENOSYS.  Some functions are actually named
10386     something starting with __ and the normal name is an alias.  */
10387 #if defined (__stub___setostype) || defined (__stub_____setostype)
10388 choke me
10389 #else
10390 f = __setostype;
10391 #endif
10392
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399   (eval $ac_link) 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); } &&
10403          { ac_try='test -s conftest$ac_exeext'
10404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405   (eval $ac_try) 2>&5
10406   ac_status=$?
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); }; }; then
10409   ac_cv_func___setostype=yes
10410 else
10411   echo "$as_me: failed program was:" >&5
10412 cat conftest.$ac_ext >&5
10413 ac_cv_func___setostype=no
10414 fi
10415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10416 fi
10417 echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
10418 echo "${ECHO_T}$ac_cv_func___setostype" >&6
10419 if test $ac_cv_func___setostype = yes; then
10420   cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_SETOSTYPE 1
10422 _ACEOF
10423
10424 fi
10425
10426 echo "$as_me:$LINENO: checking for wait3" >&5
10427 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
10428 if test "${ac_cv_func_wait3+set}" = set; then
10429   echo $ECHO_N "(cached) $ECHO_C" >&6
10430 else
10431   cat >conftest.$ac_ext <<_ACEOF
10432 #line $LINENO "configure"
10433 #include "confdefs.h"
10434 /* System header to define __stub macros and hopefully few prototypes,
10435     which can conflict with char wait3 (); below.  */
10436 #include <assert.h>
10437 /* Override any gcc2 internal prototype to avoid an error.  */
10438 #ifdef __cplusplus
10439 extern "C"
10440 #endif
10441 /* We use char because int might match the return type of a gcc2
10442    builtin and then its argument prototype would still apply.  */
10443 char wait3 ();
10444 char (*f) ();
10445
10446 #ifdef F77_DUMMY_MAIN
10447 #  ifdef __cplusplus
10448      extern "C"
10449 #  endif
10450    int F77_DUMMY_MAIN() { return 1; }
10451 #endif
10452 int
10453 main ()
10454 {
10455 /* The GNU C library defines this for functions which it implements
10456     to always fail with ENOSYS.  Some functions are actually named
10457     something starting with __ and the normal name is an alias.  */
10458 #if defined (__stub_wait3) || defined (__stub___wait3)
10459 choke me
10460 #else
10461 f = wait3;
10462 #endif
10463
10464   ;
10465   return 0;
10466 }
10467 _ACEOF
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10470   (eval $ac_link) 2>&5
10471   ac_status=$?
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); } &&
10474          { ac_try='test -s conftest$ac_exeext'
10475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476   (eval $ac_try) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); }; }; then
10480   ac_cv_func_wait3=yes
10481 else
10482   echo "$as_me: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10484 ac_cv_func_wait3=no
10485 fi
10486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10487 fi
10488 echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
10489 echo "${ECHO_T}$ac_cv_func_wait3" >&6
10490 if test $ac_cv_func_wait3 = yes; then
10491   cat >>confdefs.h <<\_ACEOF
10492 #define HAVE_WAIT3 1
10493 _ACEOF
10494
10495 fi
10496
10497 echo "$as_me:$LINENO: checking for isinf" >&5
10498 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10499 if test "${ac_cv_func_isinf+set}" = set; then
10500   echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502   cat >conftest.$ac_ext <<_ACEOF
10503 #line $LINENO "configure"
10504 #include "confdefs.h"
10505 /* System header to define __stub macros and hopefully few prototypes,
10506     which can conflict with char isinf (); below.  */
10507 #include <assert.h>
10508 /* Override any gcc2 internal prototype to avoid an error.  */
10509 #ifdef __cplusplus
10510 extern "C"
10511 #endif
10512 /* We use char because int might match the return type of a gcc2
10513    builtin and then its argument prototype would still apply.  */
10514 char isinf ();
10515 char (*f) ();
10516
10517 #ifdef F77_DUMMY_MAIN
10518 #  ifdef __cplusplus
10519      extern "C"
10520 #  endif
10521    int F77_DUMMY_MAIN() { return 1; }
10522 #endif
10523 int
10524 main ()
10525 {
10526 /* The GNU C library defines this for functions which it implements
10527     to always fail with ENOSYS.  Some functions are actually named
10528     something starting with __ and the normal name is an alias.  */
10529 #if defined (__stub_isinf) || defined (__stub___isinf)
10530 choke me
10531 #else
10532 f = isinf;
10533 #endif
10534
10535   ;
10536   return 0;
10537 }
10538 _ACEOF
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10541   (eval $ac_link) 2>&5
10542   ac_status=$?
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); } &&
10545          { ac_try='test -s conftest$ac_exeext'
10546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547   (eval $ac_try) 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); }; }; then
10551   ac_cv_func_isinf=yes
10552 else
10553   echo "$as_me: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10555 ac_cv_func_isinf=no
10556 fi
10557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10558 fi
10559 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10560 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10561 if test $ac_cv_func_isinf = yes; then
10562   cat >>confdefs.h <<\_ACEOF
10563 #define HAVE_ISINF_IN_LIBC 1
10564 _ACEOF
10565
10566 fi
10567
10568
10569 echo "$as_me:$LINENO: checking for mkfifo" >&5
10570 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
10571 if test "${ac_cv_func_mkfifo+set}" = set; then
10572   echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574   cat >conftest.$ac_ext <<_ACEOF
10575 #line $LINENO "configure"
10576 #include "confdefs.h"
10577 /* System header to define __stub macros and hopefully few prototypes,
10578     which can conflict with char mkfifo (); below.  */
10579 #include <assert.h>
10580 /* Override any gcc2 internal prototype to avoid an error.  */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 /* We use char because int might match the return type of a gcc2
10585    builtin and then its argument prototype would still apply.  */
10586 char mkfifo ();
10587 char (*f) ();
10588
10589 #ifdef F77_DUMMY_MAIN
10590 #  ifdef __cplusplus
10591      extern "C"
10592 #  endif
10593    int F77_DUMMY_MAIN() { return 1; }
10594 #endif
10595 int
10596 main ()
10597 {
10598 /* The GNU C library defines this for functions which it implements
10599     to always fail with ENOSYS.  Some functions are actually named
10600     something starting with __ and the normal name is an alias.  */
10601 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
10602 choke me
10603 #else
10604 f = mkfifo;
10605 #endif
10606
10607   ;
10608   return 0;
10609 }
10610 _ACEOF
10611 rm -f conftest.$ac_objext conftest$ac_exeext
10612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10613   (eval $ac_link) 2>&5
10614   ac_status=$?
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); } &&
10617          { ac_try='test -s conftest$ac_exeext'
10618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619   (eval $ac_try) 2>&5
10620   ac_status=$?
10621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622   (exit $ac_status); }; }; then
10623   ac_cv_func_mkfifo=yes
10624 else
10625   echo "$as_me: failed program was:" >&5
10626 cat conftest.$ac_ext >&5
10627 ac_cv_func_mkfifo=no
10628 fi
10629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10630 fi
10631 echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
10632 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
10633 if test $ac_cv_func_mkfifo = yes; then
10634   cat >>confdefs.h <<\_ACEOF
10635 #define HAVE_MKFIFO 1
10636 _ACEOF
10637
10638 else
10639   cat >>confdefs.h <<\_ACEOF
10640 #define MKFIFO_MISSING 1
10641 _ACEOF
10642
10643 fi
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667 for ac_func in dup2 fcntl getdtablesize getgroups gethostname getpagesize \
10668                 getpeername getrlimit getrusage gettimeofday kill killpg \
10669                 lstat readlink sbrk select setdtablesize tcgetpgrp uname \
10670                 ulimit waitpid
10671 do
10672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10673 echo "$as_me:$LINENO: checking for $ac_func" >&5
10674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10675 if eval "test \"\${$as_ac_var+set}\" = set"; then
10676   echo $ECHO_N "(cached) $ECHO_C" >&6
10677 else
10678   cat >conftest.$ac_ext <<_ACEOF
10679 #line $LINENO "configure"
10680 #include "confdefs.h"
10681 /* System header to define __stub macros and hopefully few prototypes,
10682     which can conflict with char $ac_func (); below.  */
10683 #include <assert.h>
10684 /* Override any gcc2 internal prototype to avoid an error.  */
10685 #ifdef __cplusplus
10686 extern "C"
10687 #endif
10688 /* We use char because int might match the return type of a gcc2
10689    builtin and then its argument prototype would still apply.  */
10690 char $ac_func ();
10691 char (*f) ();
10692
10693 #ifdef F77_DUMMY_MAIN
10694 #  ifdef __cplusplus
10695      extern "C"
10696 #  endif
10697    int F77_DUMMY_MAIN() { return 1; }
10698 #endif
10699 int
10700 main ()
10701 {
10702 /* The GNU C library defines this for functions which it implements
10703     to always fail with ENOSYS.  Some functions are actually named
10704     something starting with __ and the normal name is an alias.  */
10705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10706 choke me
10707 #else
10708 f = $ac_func;
10709 #endif
10710
10711   ;
10712   return 0;
10713 }
10714 _ACEOF
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10717   (eval $ac_link) 2>&5
10718   ac_status=$?
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); } &&
10721          { ac_try='test -s conftest$ac_exeext'
10722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723   (eval $ac_try) 2>&5
10724   ac_status=$?
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); }; }; then
10727   eval "$as_ac_var=yes"
10728 else
10729   echo "$as_me: failed program was:" >&5
10730 cat conftest.$ac_ext >&5
10731 eval "$as_ac_var=no"
10732 fi
10733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10734 fi
10735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10737 if test `eval echo '${'$as_ac_var'}'` = yes; then
10738   cat >>confdefs.h <<_ACEOF
10739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10740 _ACEOF
10741
10742 fi
10743 done
10744
10745
10746 for ac_func in rename
10747 do
10748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10749 echo "$as_me:$LINENO: checking for $ac_func" >&5
10750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10751 if eval "test \"\${$as_ac_var+set}\" = set"; then
10752   echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754   cat >conftest.$ac_ext <<_ACEOF
10755 #line $LINENO "configure"
10756 #include "confdefs.h"
10757 /* System header to define __stub macros and hopefully few prototypes,
10758     which can conflict with char $ac_func (); below.  */
10759 #include <assert.h>
10760 /* Override any gcc2 internal prototype to avoid an error.  */
10761 #ifdef __cplusplus
10762 extern "C"
10763 #endif
10764 /* We use char because int might match the return type of a gcc2
10765    builtin and then its argument prototype would still apply.  */
10766 char $ac_func ();
10767 char (*f) ();
10768
10769 #ifdef F77_DUMMY_MAIN
10770 #  ifdef __cplusplus
10771      extern "C"
10772 #  endif
10773    int F77_DUMMY_MAIN() { return 1; }
10774 #endif
10775 int
10776 main ()
10777 {
10778 /* The GNU C library defines this for functions which it implements
10779     to always fail with ENOSYS.  Some functions are actually named
10780     something starting with __ and the normal name is an alias.  */
10781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10782 choke me
10783 #else
10784 f = $ac_func;
10785 #endif
10786
10787   ;
10788   return 0;
10789 }
10790 _ACEOF
10791 rm -f conftest.$ac_objext conftest$ac_exeext
10792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10793   (eval $ac_link) 2>&5
10794   ac_status=$?
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); } &&
10797          { ac_try='test -s conftest$ac_exeext'
10798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799   (eval $ac_try) 2>&5
10800   ac_status=$?
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); }; }; then
10803   eval "$as_ac_var=yes"
10804 else
10805   echo "$as_me: failed program was:" >&5
10806 cat conftest.$ac_ext >&5
10807 eval "$as_ac_var=no"
10808 fi
10809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10810 fi
10811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10813 if test `eval echo '${'$as_ac_var'}'` = yes; then
10814   cat >>confdefs.h <<_ACEOF
10815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10816 _ACEOF
10817
10818 else
10819   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10820 fi
10821 done
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852 for ac_func in bcopy bzero confstr fnmatch \
10853                 getaddrinfo gethostbyname getservbyname getservent inet_aton \
10854                 memmove pathconf putenv raise regcomp regexec \
10855                 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
10856                 sysconf tcgetattr times ttyname tzset unsetenv
10857 do
10858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10859 echo "$as_me:$LINENO: checking for $ac_func" >&5
10860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10861 if eval "test \"\${$as_ac_var+set}\" = set"; then
10862   echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864   cat >conftest.$ac_ext <<_ACEOF
10865 #line $LINENO "configure"
10866 #include "confdefs.h"
10867 /* System header to define __stub macros and hopefully few prototypes,
10868     which can conflict with char $ac_func (); below.  */
10869 #include <assert.h>
10870 /* Override any gcc2 internal prototype to avoid an error.  */
10871 #ifdef __cplusplus
10872 extern "C"
10873 #endif
10874 /* We use char because int might match the return type of a gcc2
10875    builtin and then its argument prototype would still apply.  */
10876 char $ac_func ();
10877 char (*f) ();
10878
10879 #ifdef F77_DUMMY_MAIN
10880 #  ifdef __cplusplus
10881      extern "C"
10882 #  endif
10883    int F77_DUMMY_MAIN() { return 1; }
10884 #endif
10885 int
10886 main ()
10887 {
10888 /* The GNU C library defines this for functions which it implements
10889     to always fail with ENOSYS.  Some functions are actually named
10890     something starting with __ and the normal name is an alias.  */
10891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10892 choke me
10893 #else
10894 f = $ac_func;
10895 #endif
10896
10897   ;
10898   return 0;
10899 }
10900 _ACEOF
10901 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10903   (eval $ac_link) 2>&5
10904   ac_status=$?
10905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906   (exit $ac_status); } &&
10907          { ac_try='test -s conftest$ac_exeext'
10908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909   (eval $ac_try) 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); }; }; then
10913   eval "$as_ac_var=yes"
10914 else
10915   echo "$as_me: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 eval "$as_ac_var=no"
10918 fi
10919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10920 fi
10921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10923 if test `eval echo '${'$as_ac_var'}'` = yes; then
10924   cat >>confdefs.h <<_ACEOF
10925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10926 _ACEOF
10927
10928 fi
10929 done
10930
10931
10932
10933
10934
10935
10936 for ac_func in vsnprintf snprintf vasprintf asprintf
10937 do
10938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10939 echo "$as_me:$LINENO: checking for $ac_func" >&5
10940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10941 if eval "test \"\${$as_ac_var+set}\" = set"; then
10942   echo $ECHO_N "(cached) $ECHO_C" >&6
10943 else
10944   cat >conftest.$ac_ext <<_ACEOF
10945 #line $LINENO "configure"
10946 #include "confdefs.h"
10947 /* System header to define __stub macros and hopefully few prototypes,
10948     which can conflict with char $ac_func (); below.  */
10949 #include <assert.h>
10950 /* Override any gcc2 internal prototype to avoid an error.  */
10951 #ifdef __cplusplus
10952 extern "C"
10953 #endif
10954 /* We use char because int might match the return type of a gcc2
10955    builtin and then its argument prototype would still apply.  */
10956 char $ac_func ();
10957 char (*f) ();
10958
10959 #ifdef F77_DUMMY_MAIN
10960 #  ifdef __cplusplus
10961      extern "C"
10962 #  endif
10963    int F77_DUMMY_MAIN() { return 1; }
10964 #endif
10965 int
10966 main ()
10967 {
10968 /* The GNU C library defines this for functions which it implements
10969     to always fail with ENOSYS.  Some functions are actually named
10970     something starting with __ and the normal name is an alias.  */
10971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10972 choke me
10973 #else
10974 f = $ac_func;
10975 #endif
10976
10977   ;
10978   return 0;
10979 }
10980 _ACEOF
10981 rm -f conftest.$ac_objext conftest$ac_exeext
10982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10983   (eval $ac_link) 2>&5
10984   ac_status=$?
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } &&
10987          { ac_try='test -s conftest$ac_exeext'
10988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989   (eval $ac_try) 2>&5
10990   ac_status=$?
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); }; }; then
10993   eval "$as_ac_var=yes"
10994 else
10995   echo "$as_me: failed program was:" >&5
10996 cat conftest.$ac_ext >&5
10997 eval "$as_ac_var=no"
10998 fi
10999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11000 fi
11001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11003 if test `eval echo '${'$as_ac_var'}'` = yes; then
11004   cat >>confdefs.h <<_ACEOF
11005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11006 _ACEOF
11007
11008 fi
11009 done
11010
11011
11012
11013
11014
11015
11016
11017 for ac_func in isascii isblank isgraph isprint isspace isxdigit
11018 do
11019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11020 echo "$as_me:$LINENO: checking for $ac_func" >&5
11021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11022 if eval "test \"\${$as_ac_var+set}\" = set"; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   cat >conftest.$ac_ext <<_ACEOF
11026 #line $LINENO "configure"
11027 #include "confdefs.h"
11028 /* System header to define __stub macros and hopefully few prototypes,
11029     which can conflict with char $ac_func (); below.  */
11030 #include <assert.h>
11031 /* Override any gcc2 internal prototype to avoid an error.  */
11032 #ifdef __cplusplus
11033 extern "C"
11034 #endif
11035 /* We use char because int might match the return type of a gcc2
11036    builtin and then its argument prototype would still apply.  */
11037 char $ac_func ();
11038 char (*f) ();
11039
11040 #ifdef F77_DUMMY_MAIN
11041 #  ifdef __cplusplus
11042      extern "C"
11043 #  endif
11044    int F77_DUMMY_MAIN() { return 1; }
11045 #endif
11046 int
11047 main ()
11048 {
11049 /* The GNU C library defines this for functions which it implements
11050     to always fail with ENOSYS.  Some functions are actually named
11051     something starting with __ and the normal name is an alias.  */
11052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11053 choke me
11054 #else
11055 f = $ac_func;
11056 #endif
11057
11058   ;
11059   return 0;
11060 }
11061 _ACEOF
11062 rm -f conftest.$ac_objext conftest$ac_exeext
11063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064   (eval $ac_link) 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); } &&
11068          { ac_try='test -s conftest$ac_exeext'
11069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070   (eval $ac_try) 2>&5
11071   ac_status=$?
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); }; }; then
11074   eval "$as_ac_var=yes"
11075 else
11076   echo "$as_me: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11078 eval "$as_ac_var=no"
11079 fi
11080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11081 fi
11082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11084 if test `eval echo '${'$as_ac_var'}'` = yes; then
11085   cat >>confdefs.h <<_ACEOF
11086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11087 _ACEOF
11088
11089 fi
11090 done
11091
11092
11093
11094
11095 for ac_func in getpwent getpwnam getpwuid
11096 do
11097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11098 echo "$as_me:$LINENO: checking for $ac_func" >&5
11099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11100 if eval "test \"\${$as_ac_var+set}\" = set"; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   cat >conftest.$ac_ext <<_ACEOF
11104 #line $LINENO "configure"
11105 #include "confdefs.h"
11106 /* System header to define __stub macros and hopefully few prototypes,
11107     which can conflict with char $ac_func (); below.  */
11108 #include <assert.h>
11109 /* Override any gcc2 internal prototype to avoid an error.  */
11110 #ifdef __cplusplus
11111 extern "C"
11112 #endif
11113 /* We use char because int might match the return type of a gcc2
11114    builtin and then its argument prototype would still apply.  */
11115 char $ac_func ();
11116 char (*f) ();
11117
11118 #ifdef F77_DUMMY_MAIN
11119 #  ifdef __cplusplus
11120      extern "C"
11121 #  endif
11122    int F77_DUMMY_MAIN() { return 1; }
11123 #endif
11124 int
11125 main ()
11126 {
11127 /* The GNU C library defines this for functions which it implements
11128     to always fail with ENOSYS.  Some functions are actually named
11129     something starting with __ and the normal name is an alias.  */
11130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11131 choke me
11132 #else
11133 f = $ac_func;
11134 #endif
11135
11136   ;
11137   return 0;
11138 }
11139 _ACEOF
11140 rm -f conftest.$ac_objext conftest$ac_exeext
11141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11142   (eval $ac_link) 2>&5
11143   ac_status=$?
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); } &&
11146          { ac_try='test -s conftest$ac_exeext'
11147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148   (eval $ac_try) 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; }; then
11152   eval "$as_ac_var=yes"
11153 else
11154   echo "$as_me: failed program was:" >&5
11155 cat conftest.$ac_ext >&5
11156 eval "$as_ac_var=no"
11157 fi
11158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11159 fi
11160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11162 if test `eval echo '${'$as_ac_var'}'` = yes; then
11163   cat >>confdefs.h <<_ACEOF
11164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11165 _ACEOF
11166
11167 fi
11168 done
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178 for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
11179 do
11180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181 echo "$as_me:$LINENO: checking for $ac_func" >&5
11182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11183 if eval "test \"\${$as_ac_var+set}\" = set"; then
11184   echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186   cat >conftest.$ac_ext <<_ACEOF
11187 #line $LINENO "configure"
11188 #include "confdefs.h"
11189 /* System header to define __stub macros and hopefully few prototypes,
11190     which can conflict with char $ac_func (); below.  */
11191 #include <assert.h>
11192 /* Override any gcc2 internal prototype to avoid an error.  */
11193 #ifdef __cplusplus
11194 extern "C"
11195 #endif
11196 /* We use char because int might match the return type of a gcc2
11197    builtin and then its argument prototype would still apply.  */
11198 char $ac_func ();
11199 char (*f) ();
11200
11201 #ifdef F77_DUMMY_MAIN
11202 #  ifdef __cplusplus
11203      extern "C"
11204 #  endif
11205    int F77_DUMMY_MAIN() { return 1; }
11206 #endif
11207 int
11208 main ()
11209 {
11210 /* The GNU C library defines this for functions which it implements
11211     to always fail with ENOSYS.  Some functions are actually named
11212     something starting with __ and the normal name is an alias.  */
11213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11214 choke me
11215 #else
11216 f = $ac_func;
11217 #endif
11218
11219   ;
11220   return 0;
11221 }
11222 _ACEOF
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225   (eval $ac_link) 2>&5
11226   ac_status=$?
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); } &&
11229          { ac_try='test -s conftest$ac_exeext'
11230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231   (eval $ac_try) 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); }; }; then
11235   eval "$as_ac_var=yes"
11236 else
11237   echo "$as_me: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11239 eval "$as_ac_var=no"
11240 fi
11241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11242 fi
11243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11245 if test `eval echo '${'$as_ac_var'}'` = yes; then
11246   cat >>confdefs.h <<_ACEOF
11247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11248 _ACEOF
11249
11250 else
11251   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11252 fi
11253 done
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
11264 do
11265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11266 echo "$as_me:$LINENO: checking for $ac_func" >&5
11267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11268 if eval "test \"\${$as_ac_var+set}\" = set"; then
11269   echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11271   cat >conftest.$ac_ext <<_ACEOF
11272 #line $LINENO "configure"
11273 #include "confdefs.h"
11274 /* System header to define __stub macros and hopefully few prototypes,
11275     which can conflict with char $ac_func (); below.  */
11276 #include <assert.h>
11277 /* Override any gcc2 internal prototype to avoid an error.  */
11278 #ifdef __cplusplus
11279 extern "C"
11280 #endif
11281 /* We use char because int might match the return type of a gcc2
11282    builtin and then its argument prototype would still apply.  */
11283 char $ac_func ();
11284 char (*f) ();
11285
11286 #ifdef F77_DUMMY_MAIN
11287 #  ifdef __cplusplus
11288      extern "C"
11289 #  endif
11290    int F77_DUMMY_MAIN() { return 1; }
11291 #endif
11292 int
11293 main ()
11294 {
11295 /* The GNU C library defines this for functions which it implements
11296     to always fail with ENOSYS.  Some functions are actually named
11297     something starting with __ and the normal name is an alias.  */
11298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11299 choke me
11300 #else
11301 f = $ac_func;
11302 #endif
11303
11304   ;
11305   return 0;
11306 }
11307 _ACEOF
11308 rm -f conftest.$ac_objext conftest$ac_exeext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11310   (eval $ac_link) 2>&5
11311   ac_status=$?
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); } &&
11314          { ac_try='test -s conftest$ac_exeext'
11315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316   (eval $ac_try) 2>&5
11317   ac_status=$?
11318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); }; }; then
11320   eval "$as_ac_var=yes"
11321 else
11322   echo "$as_me: failed program was:" >&5
11323 cat conftest.$ac_ext >&5
11324 eval "$as_ac_var=no"
11325 fi
11326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11327 fi
11328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11330 if test `eval echo '${'$as_ac_var'}'` = yes; then
11331   cat >>confdefs.h <<_ACEOF
11332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11333 _ACEOF
11334
11335 else
11336   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11337 fi
11338 done
11339
11340
11341
11342 echo "$as_me:$LINENO: checking whether confstr is declared" >&5
11343 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
11344 if test "${ac_cv_have_decl_confstr+set}" = set; then
11345   echo $ECHO_N "(cached) $ECHO_C" >&6
11346 else
11347   cat >conftest.$ac_ext <<_ACEOF
11348 #line $LINENO "configure"
11349 #include "confdefs.h"
11350 $ac_includes_default
11351 #ifdef F77_DUMMY_MAIN
11352 #  ifdef __cplusplus
11353      extern "C"
11354 #  endif
11355    int F77_DUMMY_MAIN() { return 1; }
11356 #endif
11357 int
11358 main ()
11359 {
11360 #ifndef confstr
11361   char *p = (char *) confstr;
11362 #endif
11363
11364   ;
11365   return 0;
11366 }
11367 _ACEOF
11368 rm -f conftest.$ac_objext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370   (eval $ac_compile) 2>&5
11371   ac_status=$?
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); } &&
11374          { ac_try='test -s conftest.$ac_objext'
11375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376   (eval $ac_try) 2>&5
11377   ac_status=$?
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); }; }; then
11380   ac_cv_have_decl_confstr=yes
11381 else
11382   echo "$as_me: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11384 ac_cv_have_decl_confstr=no
11385 fi
11386 rm -f conftest.$ac_objext conftest.$ac_ext
11387 fi
11388 echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
11389 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
11390 if test $ac_cv_have_decl_confstr = yes; then
11391
11392 cat >>confdefs.h <<_ACEOF
11393 #define HAVE_DECL_CONFSTR 1
11394 _ACEOF
11395
11396
11397 else
11398   cat >>confdefs.h <<_ACEOF
11399 #define HAVE_DECL_CONFSTR 0
11400 _ACEOF
11401
11402
11403 fi
11404
11405
11406 echo "$as_me:$LINENO: checking whether printf is declared" >&5
11407 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
11408 if test "${ac_cv_have_decl_printf+set}" = set; then
11409   echo $ECHO_N "(cached) $ECHO_C" >&6
11410 else
11411   cat >conftest.$ac_ext <<_ACEOF
11412 #line $LINENO "configure"
11413 #include "confdefs.h"
11414 $ac_includes_default
11415 #ifdef F77_DUMMY_MAIN
11416 #  ifdef __cplusplus
11417      extern "C"
11418 #  endif
11419    int F77_DUMMY_MAIN() { return 1; }
11420 #endif
11421 int
11422 main ()
11423 {
11424 #ifndef printf
11425   char *p = (char *) printf;
11426 #endif
11427
11428   ;
11429   return 0;
11430 }
11431 _ACEOF
11432 rm -f conftest.$ac_objext
11433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11434   (eval $ac_compile) 2>&5
11435   ac_status=$?
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); } &&
11438          { ac_try='test -s conftest.$ac_objext'
11439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440   (eval $ac_try) 2>&5
11441   ac_status=$?
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); }; }; then
11444   ac_cv_have_decl_printf=yes
11445 else
11446   echo "$as_me: failed program was:" >&5
11447 cat conftest.$ac_ext >&5
11448 ac_cv_have_decl_printf=no
11449 fi
11450 rm -f conftest.$ac_objext conftest.$ac_ext
11451 fi
11452 echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
11453 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
11454 if test $ac_cv_have_decl_printf = yes; then
11455
11456 cat >>confdefs.h <<_ACEOF
11457 #define HAVE_DECL_PRINTF 1
11458 _ACEOF
11459
11460
11461 else
11462   cat >>confdefs.h <<_ACEOF
11463 #define HAVE_DECL_PRINTF 0
11464 _ACEOF
11465
11466
11467 fi
11468
11469
11470 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
11471 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
11472 if test "${ac_cv_have_decl_sbrk+set}" = set; then
11473   echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475   cat >conftest.$ac_ext <<_ACEOF
11476 #line $LINENO "configure"
11477 #include "confdefs.h"
11478 $ac_includes_default
11479 #ifdef F77_DUMMY_MAIN
11480 #  ifdef __cplusplus
11481      extern "C"
11482 #  endif
11483    int F77_DUMMY_MAIN() { return 1; }
11484 #endif
11485 int
11486 main ()
11487 {
11488 #ifndef sbrk
11489   char *p = (char *) sbrk;
11490 #endif
11491
11492   ;
11493   return 0;
11494 }
11495 _ACEOF
11496 rm -f conftest.$ac_objext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11498   (eval $ac_compile) 2>&5
11499   ac_status=$?
11500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501   (exit $ac_status); } &&
11502          { ac_try='test -s conftest.$ac_objext'
11503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504   (eval $ac_try) 2>&5
11505   ac_status=$?
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); }; }; then
11508   ac_cv_have_decl_sbrk=yes
11509 else
11510   echo "$as_me: failed program was:" >&5
11511 cat conftest.$ac_ext >&5
11512 ac_cv_have_decl_sbrk=no
11513 fi
11514 rm -f conftest.$ac_objext conftest.$ac_ext
11515 fi
11516 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
11517 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
11518 if test $ac_cv_have_decl_sbrk = yes; then
11519
11520 cat >>confdefs.h <<_ACEOF
11521 #define HAVE_DECL_SBRK 1
11522 _ACEOF
11523
11524
11525 else
11526   cat >>confdefs.h <<_ACEOF
11527 #define HAVE_DECL_SBRK 0
11528 _ACEOF
11529
11530
11531 fi
11532
11533
11534 echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
11535 echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6
11536 if test "${ac_cv_have_decl_strcpy+set}" = set; then
11537   echo $ECHO_N "(cached) $ECHO_C" >&6
11538 else
11539   cat >conftest.$ac_ext <<_ACEOF
11540 #line $LINENO "configure"
11541 #include "confdefs.h"
11542 $ac_includes_default
11543 #ifdef F77_DUMMY_MAIN
11544 #  ifdef __cplusplus
11545      extern "C"
11546 #  endif
11547    int F77_DUMMY_MAIN() { return 1; }
11548 #endif
11549 int
11550 main ()
11551 {
11552 #ifndef strcpy
11553   char *p = (char *) strcpy;
11554 #endif
11555
11556   ;
11557   return 0;
11558 }
11559 _ACEOF
11560 rm -f conftest.$ac_objext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11562   (eval $ac_compile) 2>&5
11563   ac_status=$?
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } &&
11566          { ac_try='test -s conftest.$ac_objext'
11567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568   (eval $ac_try) 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); }; }; then
11572   ac_cv_have_decl_strcpy=yes
11573 else
11574   echo "$as_me: failed program was:" >&5
11575 cat conftest.$ac_ext >&5
11576 ac_cv_have_decl_strcpy=no
11577 fi
11578 rm -f conftest.$ac_objext conftest.$ac_ext
11579 fi
11580 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
11581 echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6
11582 if test $ac_cv_have_decl_strcpy = yes; then
11583
11584 cat >>confdefs.h <<_ACEOF
11585 #define HAVE_DECL_STRCPY 1
11586 _ACEOF
11587
11588
11589 else
11590   cat >>confdefs.h <<_ACEOF
11591 #define HAVE_DECL_STRCPY 0
11592 _ACEOF
11593
11594
11595 fi
11596
11597
11598 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
11599 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
11600 if test "${ac_cv_have_decl_strsignal+set}" = set; then
11601   echo $ECHO_N "(cached) $ECHO_C" >&6
11602 else
11603   cat >conftest.$ac_ext <<_ACEOF
11604 #line $LINENO "configure"
11605 #include "confdefs.h"
11606 $ac_includes_default
11607 #ifdef F77_DUMMY_MAIN
11608 #  ifdef __cplusplus
11609      extern "C"
11610 #  endif
11611    int F77_DUMMY_MAIN() { return 1; }
11612 #endif
11613 int
11614 main ()
11615 {
11616 #ifndef strsignal
11617   char *p = (char *) strsignal;
11618 #endif
11619
11620   ;
11621   return 0;
11622 }
11623 _ACEOF
11624 rm -f conftest.$ac_objext
11625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11626   (eval $ac_compile) 2>&5
11627   ac_status=$?
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); } &&
11630          { ac_try='test -s conftest.$ac_objext'
11631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632   (eval $ac_try) 2>&5
11633   ac_status=$?
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); }; }; then
11636   ac_cv_have_decl_strsignal=yes
11637 else
11638   echo "$as_me: failed program was:" >&5
11639 cat conftest.$ac_ext >&5
11640 ac_cv_have_decl_strsignal=no
11641 fi
11642 rm -f conftest.$ac_objext conftest.$ac_ext
11643 fi
11644 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
11645 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
11646 if test $ac_cv_have_decl_strsignal = yes; then
11647
11648 cat >>confdefs.h <<_ACEOF
11649 #define HAVE_DECL_STRSIGNAL 1
11650 _ACEOF
11651
11652
11653 else
11654   cat >>confdefs.h <<_ACEOF
11655 #define HAVE_DECL_STRSIGNAL 0
11656 _ACEOF
11657
11658
11659 fi
11660
11661
11662
11663 echo "$as_me:$LINENO: checking whether strtold is declared" >&5
11664 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
11665 if test "${ac_cv_have_decl_strtold+set}" = set; then
11666   echo $ECHO_N "(cached) $ECHO_C" >&6
11667 else
11668   cat >conftest.$ac_ext <<_ACEOF
11669 #line $LINENO "configure"
11670 #include "confdefs.h"
11671 $ac_includes_default
11672 #ifdef F77_DUMMY_MAIN
11673 #  ifdef __cplusplus
11674      extern "C"
11675 #  endif
11676    int F77_DUMMY_MAIN() { return 1; }
11677 #endif
11678 int
11679 main ()
11680 {
11681 #ifndef strtold
11682   char *p = (char *) strtold;
11683 #endif
11684
11685   ;
11686   return 0;
11687 }
11688 _ACEOF
11689 rm -f conftest.$ac_objext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11691   (eval $ac_compile) 2>&5
11692   ac_status=$?
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); } &&
11695          { ac_try='test -s conftest.$ac_objext'
11696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697   (eval $ac_try) 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; }; then
11701   ac_cv_have_decl_strtold=yes
11702 else
11703   echo "$as_me: failed program was:" >&5
11704 cat conftest.$ac_ext >&5
11705 ac_cv_have_decl_strtold=no
11706 fi
11707 rm -f conftest.$ac_objext conftest.$ac_ext
11708 fi
11709 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
11710 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
11711 if test $ac_cv_have_decl_strtold = yes; then
11712
11713 cat >>confdefs.h <<_ACEOF
11714 #define HAVE_DECL_STRTOLD 1
11715 _ACEOF
11716
11717
11718     echo "$as_me:$LINENO: checking for broken strtold" >&5
11719 echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6
11720     if test "${bash_cv_strtold_broken+set}" = set; then
11721   echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723   cat >conftest.$ac_ext <<_ACEOF
11724 #line $LINENO "configure"
11725 #include "confdefs.h"
11726 #include <stdlib.h>
11727 #ifdef F77_DUMMY_MAIN
11728 #  ifdef __cplusplus
11729      extern "C"
11730 #  endif
11731    int F77_DUMMY_MAIN() { return 1; }
11732 #endif
11733 int
11734 main ()
11735 {
11736 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
11737   ;
11738   return 0;
11739 }
11740 _ACEOF
11741 rm -f conftest.$ac_objext
11742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743   (eval $ac_compile) 2>&5
11744   ac_status=$?
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); } &&
11747          { ac_try='test -s conftest.$ac_objext'
11748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749   (eval $ac_try) 2>&5
11750   ac_status=$?
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); }; }; then
11753   bash_cv_strtold_broken=no
11754 else
11755   echo "$as_me: failed program was:" >&5
11756 cat conftest.$ac_ext >&5
11757 bash_cv_strtold_broken=yes
11758 fi
11759 rm -f conftest.$ac_objext conftest.$ac_ext
11760
11761
11762 fi
11763
11764     echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
11765 echo "${ECHO_T}$bash_cv_strtold_broken" >&6
11766     if test "$bash_cv_strtold_broken" = "yes" ; then
11767         cat >>confdefs.h <<\_ACEOF
11768 #define STRTOLD_BROKEN 1
11769 _ACEOF
11770
11771     fi
11772
11773 else
11774   cat >>confdefs.h <<_ACEOF
11775 #define HAVE_DECL_STRTOLD 0
11776 _ACEOF
11777
11778
11779 fi
11780
11781
11782
11783
11784
11785
11786
11787 echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
11788 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
11789 if test "${bash_cv_decl_strtoimax+set}" = set; then
11790   echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792   cat >conftest.$ac_ext <<_ACEOF
11793 #line $LINENO "configure"
11794 #include "confdefs.h"
11795
11796 #if STDC_HEADERS
11797 #  include <stdlib.h>
11798 #endif
11799 #if HAVE_INTTYPES_H
11800 #  include <inttypes.h>
11801 #endif
11802
11803 #ifdef F77_DUMMY_MAIN
11804 #  ifdef __cplusplus
11805      extern "C"
11806 #  endif
11807    int F77_DUMMY_MAIN() { return 1; }
11808 #endif
11809 int
11810 main ()
11811 {
11812 return !strtoimax;
11813   ;
11814   return 0;
11815 }
11816 _ACEOF
11817 rm -f conftest.$ac_objext conftest$ac_exeext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11819   (eval $ac_link) 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } &&
11823          { ac_try='test -s conftest$ac_exeext'
11824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825   (eval $ac_try) 2>&5
11826   ac_status=$?
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); }; }; then
11829   bash_cv_decl_strtoimax=yes
11830 else
11831   echo "$as_me: failed program was:" >&5
11832 cat conftest.$ac_ext >&5
11833 bash_cv_decl_strtoimax=no
11834 fi
11835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11836 fi
11837 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
11838 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
11839 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11840 if test $bash_cv_decl_strtoimax = yes; then
11841   cat >>confdefs.h <<_ACEOF
11842 #define $bash_tr_func 1
11843 _ACEOF
11844
11845 else
11846   cat >>confdefs.h <<_ACEOF
11847 #define $bash_tr_func 0
11848 _ACEOF
11849
11850 fi
11851
11852
11853
11854
11855 echo "$as_me:$LINENO: checking for declaration of strtol" >&5
11856 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
11857 if test "${bash_cv_decl_strtol+set}" = set; then
11858   echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860   cat >conftest.$ac_ext <<_ACEOF
11861 #line $LINENO "configure"
11862 #include "confdefs.h"
11863
11864 #if STDC_HEADERS
11865 #  include <stdlib.h>
11866 #endif
11867 #if HAVE_INTTYPES_H
11868 #  include <inttypes.h>
11869 #endif
11870
11871 #ifdef F77_DUMMY_MAIN
11872 #  ifdef __cplusplus
11873      extern "C"
11874 #  endif
11875    int F77_DUMMY_MAIN() { return 1; }
11876 #endif
11877 int
11878 main ()
11879 {
11880 return !strtol;
11881   ;
11882   return 0;
11883 }
11884 _ACEOF
11885 rm -f conftest.$ac_objext conftest$ac_exeext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11887   (eval $ac_link) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); } &&
11891          { ac_try='test -s conftest$ac_exeext'
11892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893   (eval $ac_try) 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); }; }; then
11897   bash_cv_decl_strtol=yes
11898 else
11899   echo "$as_me: failed program was:" >&5
11900 cat conftest.$ac_ext >&5
11901 bash_cv_decl_strtol=no
11902 fi
11903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11904 fi
11905 echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
11906 echo "${ECHO_T}$bash_cv_decl_strtol" >&6
11907 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11908 if test $bash_cv_decl_strtol = yes; then
11909   cat >>confdefs.h <<_ACEOF
11910 #define $bash_tr_func 1
11911 _ACEOF
11912
11913 else
11914   cat >>confdefs.h <<_ACEOF
11915 #define $bash_tr_func 0
11916 _ACEOF
11917
11918 fi
11919
11920
11921
11922
11923 echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
11924 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
11925 if test "${bash_cv_decl_strtoll+set}" = set; then
11926   echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928   cat >conftest.$ac_ext <<_ACEOF
11929 #line $LINENO "configure"
11930 #include "confdefs.h"
11931
11932 #if STDC_HEADERS
11933 #  include <stdlib.h>
11934 #endif
11935 #if HAVE_INTTYPES_H
11936 #  include <inttypes.h>
11937 #endif
11938
11939 #ifdef F77_DUMMY_MAIN
11940 #  ifdef __cplusplus
11941      extern "C"
11942 #  endif
11943    int F77_DUMMY_MAIN() { return 1; }
11944 #endif
11945 int
11946 main ()
11947 {
11948 return !strtoll;
11949   ;
11950   return 0;
11951 }
11952 _ACEOF
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11955   (eval $ac_link) 2>&5
11956   ac_status=$?
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); } &&
11959          { ac_try='test -s conftest$ac_exeext'
11960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961   (eval $ac_try) 2>&5
11962   ac_status=$?
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); }; }; then
11965   bash_cv_decl_strtoll=yes
11966 else
11967   echo "$as_me: failed program was:" >&5
11968 cat conftest.$ac_ext >&5
11969 bash_cv_decl_strtoll=no
11970 fi
11971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11972 fi
11973 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
11974 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
11975 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11976 if test $bash_cv_decl_strtoll = yes; then
11977   cat >>confdefs.h <<_ACEOF
11978 #define $bash_tr_func 1
11979 _ACEOF
11980
11981 else
11982   cat >>confdefs.h <<_ACEOF
11983 #define $bash_tr_func 0
11984 _ACEOF
11985
11986 fi
11987
11988
11989
11990
11991 echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
11992 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
11993 if test "${bash_cv_decl_strtoul+set}" = set; then
11994   echo $ECHO_N "(cached) $ECHO_C" >&6
11995 else
11996   cat >conftest.$ac_ext <<_ACEOF
11997 #line $LINENO "configure"
11998 #include "confdefs.h"
11999
12000 #if STDC_HEADERS
12001 #  include <stdlib.h>
12002 #endif
12003 #if HAVE_INTTYPES_H
12004 #  include <inttypes.h>
12005 #endif
12006
12007 #ifdef F77_DUMMY_MAIN
12008 #  ifdef __cplusplus
12009      extern "C"
12010 #  endif
12011    int F77_DUMMY_MAIN() { return 1; }
12012 #endif
12013 int
12014 main ()
12015 {
12016 return !strtoul;
12017   ;
12018   return 0;
12019 }
12020 _ACEOF
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023   (eval $ac_link) 2>&5
12024   ac_status=$?
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); } &&
12027          { ac_try='test -s conftest$ac_exeext'
12028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029   (eval $ac_try) 2>&5
12030   ac_status=$?
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); }; }; then
12033   bash_cv_decl_strtoul=yes
12034 else
12035   echo "$as_me: failed program was:" >&5
12036 cat conftest.$ac_ext >&5
12037 bash_cv_decl_strtoul=no
12038 fi
12039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12040 fi
12041 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
12042 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
12043 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12044 if test $bash_cv_decl_strtoul = yes; then
12045   cat >>confdefs.h <<_ACEOF
12046 #define $bash_tr_func 1
12047 _ACEOF
12048
12049 else
12050   cat >>confdefs.h <<_ACEOF
12051 #define $bash_tr_func 0
12052 _ACEOF
12053
12054 fi
12055
12056
12057
12058
12059 echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
12060 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
12061 if test "${bash_cv_decl_strtoull+set}" = set; then
12062   echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064   cat >conftest.$ac_ext <<_ACEOF
12065 #line $LINENO "configure"
12066 #include "confdefs.h"
12067
12068 #if STDC_HEADERS
12069 #  include <stdlib.h>
12070 #endif
12071 #if HAVE_INTTYPES_H
12072 #  include <inttypes.h>
12073 #endif
12074
12075 #ifdef F77_DUMMY_MAIN
12076 #  ifdef __cplusplus
12077      extern "C"
12078 #  endif
12079    int F77_DUMMY_MAIN() { return 1; }
12080 #endif
12081 int
12082 main ()
12083 {
12084 return !strtoull;
12085   ;
12086   return 0;
12087 }
12088 _ACEOF
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091   (eval $ac_link) 2>&5
12092   ac_status=$?
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } &&
12095          { ac_try='test -s conftest$ac_exeext'
12096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097   (eval $ac_try) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; }; then
12101   bash_cv_decl_strtoull=yes
12102 else
12103   echo "$as_me: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
12105 bash_cv_decl_strtoull=no
12106 fi
12107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12108 fi
12109 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
12110 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
12111 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12112 if test $bash_cv_decl_strtoull = yes; then
12113   cat >>confdefs.h <<_ACEOF
12114 #define $bash_tr_func 1
12115 _ACEOF
12116
12117 else
12118   cat >>confdefs.h <<_ACEOF
12119 #define $bash_tr_func 0
12120 _ACEOF
12121
12122 fi
12123
12124
12125
12126
12127 echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
12128 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
12129 if test "${bash_cv_decl_strtoumax+set}" = set; then
12130   echo $ECHO_N "(cached) $ECHO_C" >&6
12131 else
12132   cat >conftest.$ac_ext <<_ACEOF
12133 #line $LINENO "configure"
12134 #include "confdefs.h"
12135
12136 #if STDC_HEADERS
12137 #  include <stdlib.h>
12138 #endif
12139 #if HAVE_INTTYPES_H
12140 #  include <inttypes.h>
12141 #endif
12142
12143 #ifdef F77_DUMMY_MAIN
12144 #  ifdef __cplusplus
12145      extern "C"
12146 #  endif
12147    int F77_DUMMY_MAIN() { return 1; }
12148 #endif
12149 int
12150 main ()
12151 {
12152 return !strtoumax;
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12159   (eval $ac_link) 2>&5
12160   ac_status=$?
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); } &&
12163          { ac_try='test -s conftest$ac_exeext'
12164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165   (eval $ac_try) 2>&5
12166   ac_status=$?
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); }; }; then
12169   bash_cv_decl_strtoumax=yes
12170 else
12171   echo "$as_me: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12173 bash_cv_decl_strtoumax=no
12174 fi
12175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12176 fi
12177 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
12178 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
12179 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12180 if test $bash_cv_decl_strtoumax = yes; then
12181   cat >>confdefs.h <<_ACEOF
12182 #define $bash_tr_func 1
12183 _ACEOF
12184
12185 else
12186   cat >>confdefs.h <<_ACEOF
12187 #define $bash_tr_func 0
12188 _ACEOF
12189
12190 fi
12191
12192
12193
12194
12195 for ac_header in sys/time.h unistd.h
12196 do
12197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12199   echo "$as_me:$LINENO: checking for $ac_header" >&5
12200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12202   echo $ECHO_N "(cached) $ECHO_C" >&6
12203 fi
12204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12206 else
12207   # Is the header compilable?
12208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12210 cat >conftest.$ac_ext <<_ACEOF
12211 #line $LINENO "configure"
12212 #include "confdefs.h"
12213 $ac_includes_default
12214 #include <$ac_header>
12215 _ACEOF
12216 rm -f conftest.$ac_objext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12218   (eval $ac_compile) 2>&5
12219   ac_status=$?
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); } &&
12222          { ac_try='test -s conftest.$ac_objext'
12223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224   (eval $ac_try) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; }; then
12228   ac_header_compiler=yes
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 cat conftest.$ac_ext >&5
12232 ac_header_compiler=no
12233 fi
12234 rm -f conftest.$ac_objext conftest.$ac_ext
12235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236 echo "${ECHO_T}$ac_header_compiler" >&6
12237
12238 # Is the header present?
12239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12242 #line $LINENO "configure"
12243 #include "confdefs.h"
12244 #include <$ac_header>
12245 _ACEOF
12246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12247   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12248   ac_status=$?
12249   egrep -v '^ *\+' conftest.er1 >conftest.err
12250   rm -f conftest.er1
12251   cat conftest.err >&5
12252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253   (exit $ac_status); } >/dev/null; then
12254   if test -s conftest.err; then
12255     ac_cpp_err=$ac_c_preproc_warn_flag
12256   else
12257     ac_cpp_err=
12258   fi
12259 else
12260   ac_cpp_err=yes
12261 fi
12262 if test -z "$ac_cpp_err"; then
12263   ac_header_preproc=yes
12264 else
12265   echo "$as_me: failed program was:" >&5
12266   cat conftest.$ac_ext >&5
12267   ac_header_preproc=no
12268 fi
12269 rm -f conftest.err conftest.$ac_ext
12270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12271 echo "${ECHO_T}$ac_header_preproc" >&6
12272
12273 # So?  What about this header?
12274 case $ac_header_compiler:$ac_header_preproc in
12275   yes:no )
12276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12280   no:yes )
12281     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12283     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12287 esac
12288 echo "$as_me:$LINENO: checking for $ac_header" >&5
12289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12291   echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293   eval "$as_ac_Header=$ac_header_preproc"
12294 fi
12295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12297
12298 fi
12299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12300   cat >>confdefs.h <<_ACEOF
12301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12302 _ACEOF
12303
12304 fi
12305
12306 done
12307
12308
12309 for ac_func in alarm
12310 do
12311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12312 echo "$as_me:$LINENO: checking for $ac_func" >&5
12313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12314 if eval "test \"\${$as_ac_var+set}\" = set"; then
12315   echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317   cat >conftest.$ac_ext <<_ACEOF
12318 #line $LINENO "configure"
12319 #include "confdefs.h"
12320 /* System header to define __stub macros and hopefully few prototypes,
12321     which can conflict with char $ac_func (); below.  */
12322 #include <assert.h>
12323 /* Override any gcc2 internal prototype to avoid an error.  */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 /* We use char because int might match the return type of a gcc2
12328    builtin and then its argument prototype would still apply.  */
12329 char $ac_func ();
12330 char (*f) ();
12331
12332 #ifdef F77_DUMMY_MAIN
12333 #  ifdef __cplusplus
12334      extern "C"
12335 #  endif
12336    int F77_DUMMY_MAIN() { return 1; }
12337 #endif
12338 int
12339 main ()
12340 {
12341 /* The GNU C library defines this for functions which it implements
12342     to always fail with ENOSYS.  Some functions are actually named
12343     something starting with __ and the normal name is an alias.  */
12344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12345 choke me
12346 #else
12347 f = $ac_func;
12348 #endif
12349
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12356   (eval $ac_link) 2>&5
12357   ac_status=$?
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); } &&
12360          { ac_try='test -s conftest$ac_exeext'
12361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362   (eval $ac_try) 2>&5
12363   ac_status=$?
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); }; }; then
12366   eval "$as_ac_var=yes"
12367 else
12368   echo "$as_me: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 eval "$as_ac_var=no"
12371 fi
12372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12373 fi
12374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12376 if test `eval echo '${'$as_ac_var'}'` = yes; then
12377   cat >>confdefs.h <<_ACEOF
12378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12379 _ACEOF
12380
12381 fi
12382 done
12383
12384 echo "$as_me:$LINENO: checking for working mktime" >&5
12385 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
12386 if test "${ac_cv_func_working_mktime+set}" = set; then
12387   echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389   if test "$cross_compiling" = yes; then
12390   ac_cv_func_working_mktime=no
12391 else
12392   cat >conftest.$ac_ext <<_ACEOF
12393 #line $LINENO "configure"
12394 #include "confdefs.h"
12395 /* Test program from Paul Eggert and Tony Leneis.  */
12396 #if TIME_WITH_SYS_TIME
12397 # include <sys/time.h>
12398 # include <time.h>
12399 #else
12400 # if HAVE_SYS_TIME_H
12401 #  include <sys/time.h>
12402 # else
12403 #  include <time.h>
12404 # endif
12405 #endif
12406
12407 #if HAVE_UNISTD_H
12408 # include <unistd.h>
12409 #endif
12410
12411 #if !HAVE_ALARM
12412 # define alarm(X) /* empty */
12413 #endif
12414
12415 /* Work around redefinition to rpl_putenv by other config tests.  */
12416 #undef putenv
12417
12418 static time_t time_t_max;
12419
12420 /* Values we'll use to set the TZ environment variable.  */
12421 static const char *const tz_strings[] = {
12422   (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12423   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12424 };
12425 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12426
12427 /* Fail if mktime fails to convert a date in the spring-forward gap.
12428    Based on a problem report from Andreas Jaeger.  */
12429 static void
12430 spring_forward_gap ()
12431 {
12432   /* glibc (up to about 1998-10-07) failed this test. */
12433   struct tm tm;
12434
12435   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12436      instead of "TZ=America/Vancouver" in order to detect the bug even
12437      on systems that don't support the Olson extension, or don't have the
12438      full zoneinfo tables installed.  */
12439   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12440
12441   tm.tm_year = 98;
12442   tm.tm_mon = 3;
12443   tm.tm_mday = 5;
12444   tm.tm_hour = 2;
12445   tm.tm_min = 0;
12446   tm.tm_sec = 0;
12447   tm.tm_isdst = -1;
12448   if (mktime (&tm) == (time_t)-1)
12449     exit (1);
12450 }
12451
12452 static void
12453 mktime_test (now)
12454      time_t now;
12455 {
12456   struct tm *lt;
12457   if ((lt = localtime (&now)) && mktime (lt) != now)
12458     exit (1);
12459   now = time_t_max - now;
12460   if ((lt = localtime (&now)) && mktime (lt) != now)
12461     exit (1);
12462 }
12463
12464 static void
12465 irix_6_4_bug ()
12466 {
12467   /* Based on code from Ariel Faigon.  */
12468   struct tm tm;
12469   tm.tm_year = 96;
12470   tm.tm_mon = 3;
12471   tm.tm_mday = 0;
12472   tm.tm_hour = 0;
12473   tm.tm_min = 0;
12474   tm.tm_sec = 0;
12475   tm.tm_isdst = -1;
12476   mktime (&tm);
12477   if (tm.tm_mon != 2 || tm.tm_mday != 31)
12478     exit (1);
12479 }
12480
12481 static void
12482 bigtime_test (j)
12483      int j;
12484 {
12485   struct tm tm;
12486   time_t now;
12487   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12488   now = mktime (&tm);
12489   if (now != (time_t) -1)
12490     {
12491       struct tm *lt = localtime (&now);
12492       if (! (lt
12493              && lt->tm_year == tm.tm_year
12494              && lt->tm_mon == tm.tm_mon
12495              && lt->tm_mday == tm.tm_mday
12496              && lt->tm_hour == tm.tm_hour
12497              && lt->tm_min == tm.tm_min
12498              && lt->tm_sec == tm.tm_sec
12499              && lt->tm_yday == tm.tm_yday
12500              && lt->tm_wday == tm.tm_wday
12501              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12502                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12503         exit (1);
12504     }
12505 }
12506
12507 int
12508 main ()
12509 {
12510   time_t t, delta;
12511   int i, j;
12512
12513   /* This test makes some buggy mktime implementations loop.
12514      Give up after 60 seconds; a mktime slower than that
12515      isn't worth using anyway.  */
12516   alarm (60);
12517
12518   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12519     continue;
12520   time_t_max--;
12521   delta = time_t_max / 997; /* a suitable prime number */
12522   for (i = 0; i < N_STRINGS; i++)
12523     {
12524       if (tz_strings[i])
12525         putenv (tz_strings[i]);
12526
12527       for (t = 0; t <= time_t_max - delta; t += delta)
12528         mktime_test (t);
12529       mktime_test ((time_t) 60 * 60);
12530       mktime_test ((time_t) 60 * 60 * 24);
12531
12532       for (j = 1; 0 < j; j *= 2)
12533         bigtime_test (j);
12534       bigtime_test (j - 1);
12535     }
12536   irix_6_4_bug ();
12537   spring_forward_gap ();
12538   exit (0);
12539 }
12540 _ACEOF
12541 rm -f conftest$ac_exeext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543   (eval $ac_link) 2>&5
12544   ac_status=$?
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548   (eval $ac_try) 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; }; then
12552   ac_cv_func_working_mktime=yes
12553 else
12554   echo "$as_me: program exited with status $ac_status" >&5
12555 echo "$as_me: failed program was:" >&5
12556 cat conftest.$ac_ext >&5
12557 ( exit $ac_status )
12558 ac_cv_func_working_mktime=no
12559 fi
12560 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12561 fi
12562 fi
12563 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12564 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12565 if test $ac_cv_func_working_mktime = no; then
12566   LIBOBJS="$LIBOBJS mktime.$ac_objext"
12567 fi
12568
12569
12570
12571
12572
12573
12574
12575
12576 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
12577 do
12578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12580   echo "$as_me:$LINENO: checking for $ac_header" >&5
12581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12583   echo $ECHO_N "(cached) $ECHO_C" >&6
12584 fi
12585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12587 else
12588   # Is the header compilable?
12589 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12591 cat >conftest.$ac_ext <<_ACEOF
12592 #line $LINENO "configure"
12593 #include "confdefs.h"
12594 $ac_includes_default
12595 #include <$ac_header>
12596 _ACEOF
12597 rm -f conftest.$ac_objext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599   (eval $ac_compile) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); } &&
12603          { ac_try='test -s conftest.$ac_objext'
12604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605   (eval $ac_try) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; }; then
12609   ac_header_compiler=yes
12610 else
12611   echo "$as_me: failed program was:" >&5
12612 cat conftest.$ac_ext >&5
12613 ac_header_compiler=no
12614 fi
12615 rm -f conftest.$ac_objext conftest.$ac_ext
12616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12617 echo "${ECHO_T}$ac_header_compiler" >&6
12618
12619 # Is the header present?
12620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12622 cat >conftest.$ac_ext <<_ACEOF
12623 #line $LINENO "configure"
12624 #include "confdefs.h"
12625 #include <$ac_header>
12626 _ACEOF
12627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12629   ac_status=$?
12630   egrep -v '^ *\+' conftest.er1 >conftest.err
12631   rm -f conftest.er1
12632   cat conftest.err >&5
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); } >/dev/null; then
12635   if test -s conftest.err; then
12636     ac_cpp_err=$ac_c_preproc_warn_flag
12637   else
12638     ac_cpp_err=
12639   fi
12640 else
12641   ac_cpp_err=yes
12642 fi
12643 if test -z "$ac_cpp_err"; then
12644   ac_header_preproc=yes
12645 else
12646   echo "$as_me: failed program was:" >&5
12647   cat conftest.$ac_ext >&5
12648   ac_header_preproc=no
12649 fi
12650 rm -f conftest.err conftest.$ac_ext
12651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12652 echo "${ECHO_T}$ac_header_preproc" >&6
12653
12654 # So?  What about this header?
12655 case $ac_header_compiler:$ac_header_preproc in
12656   yes:no )
12657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12661   no:yes )
12662     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12664     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12668 esac
12669 echo "$as_me:$LINENO: checking for $ac_header" >&5
12670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12672   echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674   eval "$as_ac_Header=$ac_header_preproc"
12675 fi
12676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12678
12679 fi
12680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12681   cat >>confdefs.h <<_ACEOF
12682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12683 _ACEOF
12684
12685 fi
12686
12687 done
12688
12689
12690
12691
12692 for ac_header in stdlib.h unistd.h
12693 do
12694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12696   echo "$as_me:$LINENO: checking for $ac_header" >&5
12697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12699   echo $ECHO_N "(cached) $ECHO_C" >&6
12700 fi
12701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12703 else
12704   # Is the header compilable?
12705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12707 cat >conftest.$ac_ext <<_ACEOF
12708 #line $LINENO "configure"
12709 #include "confdefs.h"
12710 $ac_includes_default
12711 #include <$ac_header>
12712 _ACEOF
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12715   (eval $ac_compile) 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); } &&
12719          { ac_try='test -s conftest.$ac_objext'
12720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721   (eval $ac_try) 2>&5
12722   ac_status=$?
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); }; }; then
12725   ac_header_compiler=yes
12726 else
12727   echo "$as_me: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12729 ac_header_compiler=no
12730 fi
12731 rm -f conftest.$ac_objext conftest.$ac_ext
12732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12733 echo "${ECHO_T}$ac_header_compiler" >&6
12734
12735 # Is the header present?
12736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12738 cat >conftest.$ac_ext <<_ACEOF
12739 #line $LINENO "configure"
12740 #include "confdefs.h"
12741 #include <$ac_header>
12742 _ACEOF
12743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12744   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12745   ac_status=$?
12746   egrep -v '^ *\+' conftest.er1 >conftest.err
12747   rm -f conftest.er1
12748   cat conftest.err >&5
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); } >/dev/null; then
12751   if test -s conftest.err; then
12752     ac_cpp_err=$ac_c_preproc_warn_flag
12753   else
12754     ac_cpp_err=
12755   fi
12756 else
12757   ac_cpp_err=yes
12758 fi
12759 if test -z "$ac_cpp_err"; then
12760   ac_header_preproc=yes
12761 else
12762   echo "$as_me: failed program was:" >&5
12763   cat conftest.$ac_ext >&5
12764   ac_header_preproc=no
12765 fi
12766 rm -f conftest.err conftest.$ac_ext
12767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12768 echo "${ECHO_T}$ac_header_preproc" >&6
12769
12770 # So?  What about this header?
12771 case $ac_header_compiler:$ac_header_preproc in
12772   yes:no )
12773     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12777   no:yes )
12778     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12780     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12784 esac
12785 echo "$as_me:$LINENO: checking for $ac_header" >&5
12786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12788   echo $ECHO_N "(cached) $ECHO_C" >&6
12789 else
12790   eval "$as_ac_Header=$ac_header_preproc"
12791 fi
12792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12794
12795 fi
12796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12797   cat >>confdefs.h <<_ACEOF
12798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12799 _ACEOF
12800
12801 fi
12802
12803 done
12804
12805
12806 for ac_func in getpagesize
12807 do
12808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12809 echo "$as_me:$LINENO: checking for $ac_func" >&5
12810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12811 if eval "test \"\${$as_ac_var+set}\" = set"; then
12812   echo $ECHO_N "(cached) $ECHO_C" >&6
12813 else
12814   cat >conftest.$ac_ext <<_ACEOF
12815 #line $LINENO "configure"
12816 #include "confdefs.h"
12817 /* System header to define __stub macros and hopefully few prototypes,
12818     which can conflict with char $ac_func (); below.  */
12819 #include <assert.h>
12820 /* Override any gcc2 internal prototype to avoid an error.  */
12821 #ifdef __cplusplus
12822 extern "C"
12823 #endif
12824 /* We use char because int might match the return type of a gcc2
12825    builtin and then its argument prototype would still apply.  */
12826 char $ac_func ();
12827 char (*f) ();
12828
12829 #ifdef F77_DUMMY_MAIN
12830 #  ifdef __cplusplus
12831      extern "C"
12832 #  endif
12833    int F77_DUMMY_MAIN() { return 1; }
12834 #endif
12835 int
12836 main ()
12837 {
12838 /* The GNU C library defines this for functions which it implements
12839     to always fail with ENOSYS.  Some functions are actually named
12840     something starting with __ and the normal name is an alias.  */
12841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12842 choke me
12843 #else
12844 f = $ac_func;
12845 #endif
12846
12847   ;
12848   return 0;
12849 }
12850 _ACEOF
12851 rm -f conftest.$ac_objext conftest$ac_exeext
12852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12853   (eval $ac_link) 2>&5
12854   ac_status=$?
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); } &&
12857          { ac_try='test -s conftest$ac_exeext'
12858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859   (eval $ac_try) 2>&5
12860   ac_status=$?
12861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862   (exit $ac_status); }; }; then
12863   eval "$as_ac_var=yes"
12864 else
12865   echo "$as_me: failed program was:" >&5
12866 cat conftest.$ac_ext >&5
12867 eval "$as_ac_var=no"
12868 fi
12869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12870 fi
12871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12873 if test `eval echo '${'$as_ac_var'}'` = yes; then
12874   cat >>confdefs.h <<_ACEOF
12875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12876 _ACEOF
12877
12878 fi
12879 done
12880
12881 echo "$as_me:$LINENO: checking for working mmap" >&5
12882 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12883 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12884   echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886   if test "$cross_compiling" = yes; then
12887   ac_cv_func_mmap_fixed_mapped=no
12888 else
12889   cat >conftest.$ac_ext <<_ACEOF
12890 #line $LINENO "configure"
12891 #include "confdefs.h"
12892 $ac_includes_default
12893 /* malloc might have been renamed as rpl_malloc. */
12894 #undef malloc
12895
12896 /* Thanks to Mike Haertel and Jim Avera for this test.
12897    Here is a matrix of mmap possibilities:
12898         mmap private not fixed
12899         mmap private fixed at somewhere currently unmapped
12900         mmap private fixed at somewhere already mapped
12901         mmap shared not fixed
12902         mmap shared fixed at somewhere currently unmapped
12903         mmap shared fixed at somewhere already mapped
12904    For private mappings, we should verify that changes cannot be read()
12905    back from the file, nor mmap's back from the file at a different
12906    address.  (There have been systems where private was not correctly
12907    implemented like the infamous i386 svr4.0, and systems where the
12908    VM page cache was not coherent with the file system buffer cache
12909    like early versions of FreeBSD and possibly contemporary NetBSD.)
12910    For shared mappings, we should conversely verify that changes get
12911    propagated back to all the places they're supposed to be.
12912
12913    Grep wants private fixed already mapped.
12914    The main things grep needs to know about mmap are:
12915    * does it exist and is it safe to write into the mmap'd area
12916    * how to use it (BSD variants)  */
12917
12918 #include <fcntl.h>
12919 #include <sys/mman.h>
12920
12921 #if !STDC_HEADERS && !HAVE_STDLIB_H
12922 char *malloc ();
12923 #endif
12924
12925 /* This mess was copied from the GNU getpagesize.h.  */
12926 #if !HAVE_GETPAGESIZE
12927 /* Assume that all systems that can run configure have sys/param.h.  */
12928 # if !HAVE_SYS_PARAM_H
12929 #  define HAVE_SYS_PARAM_H 1
12930 # endif
12931
12932 # ifdef _SC_PAGESIZE
12933 #  define getpagesize() sysconf(_SC_PAGESIZE)
12934 # else /* no _SC_PAGESIZE */
12935 #  if HAVE_SYS_PARAM_H
12936 #   include <sys/param.h>
12937 #   ifdef EXEC_PAGESIZE
12938 #    define getpagesize() EXEC_PAGESIZE
12939 #   else /* no EXEC_PAGESIZE */
12940 #    ifdef NBPG
12941 #     define getpagesize() NBPG * CLSIZE
12942 #     ifndef CLSIZE
12943 #      define CLSIZE 1
12944 #     endif /* no CLSIZE */
12945 #    else /* no NBPG */
12946 #     ifdef NBPC
12947 #      define getpagesize() NBPC
12948 #     else /* no NBPC */
12949 #      ifdef PAGESIZE
12950 #       define getpagesize() PAGESIZE
12951 #      endif /* PAGESIZE */
12952 #     endif /* no NBPC */
12953 #    endif /* no NBPG */
12954 #   endif /* no EXEC_PAGESIZE */
12955 #  else /* no HAVE_SYS_PARAM_H */
12956 #   define getpagesize() 8192   /* punt totally */
12957 #  endif /* no HAVE_SYS_PARAM_H */
12958 # endif /* no _SC_PAGESIZE */
12959
12960 #endif /* no HAVE_GETPAGESIZE */
12961
12962 int
12963 main ()
12964 {
12965   char *data, *data2, *data3;
12966   int i, pagesize;
12967   int fd;
12968
12969   pagesize = getpagesize ();
12970
12971   /* First, make a file with some known garbage in it. */
12972   data = (char *) malloc (pagesize);
12973   if (!data)
12974     exit (1);
12975   for (i = 0; i < pagesize; ++i)
12976     *(data + i) = rand ();
12977   umask (0);
12978   fd = creat ("conftest.mmap", 0600);
12979   if (fd < 0)
12980     exit (1);
12981   if (write (fd, data, pagesize) != pagesize)
12982     exit (1);
12983   close (fd);
12984
12985   /* Next, try to mmap the file at a fixed address which already has
12986      something else allocated at it.  If we can, also make sure that
12987      we see the same garbage.  */
12988   fd = open ("conftest.mmap", O_RDWR);
12989   if (fd < 0)
12990     exit (1);
12991   data2 = (char *) malloc (2 * pagesize);
12992   if (!data2)
12993     exit (1);
12994   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12995   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12996                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12997     exit (1);
12998   for (i = 0; i < pagesize; ++i)
12999     if (*(data + i) != *(data2 + i))
13000       exit (1);
13001
13002   /* Finally, make sure that changes to the mapped area do not
13003      percolate back to the file as seen by read().  (This is a bug on
13004      some variants of i386 svr4.0.)  */
13005   for (i = 0; i < pagesize; ++i)
13006     *(data2 + i) = *(data2 + i) + 1;
13007   data3 = (char *) malloc (pagesize);
13008   if (!data3)
13009     exit (1);
13010   if (read (fd, data3, pagesize) != pagesize)
13011     exit (1);
13012   for (i = 0; i < pagesize; ++i)
13013     if (*(data + i) != *(data3 + i))
13014       exit (1);
13015   close (fd);
13016   exit (0);
13017 }
13018 _ACEOF
13019 rm -f conftest$ac_exeext
13020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13021   (eval $ac_link) 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026   (eval $ac_try) 2>&5
13027   ac_status=$?
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); }; }; then
13030   ac_cv_func_mmap_fixed_mapped=yes
13031 else
13032   echo "$as_me: program exited with status $ac_status" >&5
13033 echo "$as_me: failed program was:" >&5
13034 cat conftest.$ac_ext >&5
13035 ( exit $ac_status )
13036 ac_cv_func_mmap_fixed_mapped=no
13037 fi
13038 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13039 fi
13040 fi
13041 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13042 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13043 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13044
13045 cat >>confdefs.h <<\_ACEOF
13046 #define HAVE_MMAP 1
13047 _ACEOF
13048
13049 fi
13050 rm -f conftest.mmap
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
13062                 munmap stpcpy strcspn strdup
13063 do
13064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13065 echo "$as_me:$LINENO: checking for $ac_func" >&5
13066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13067 if eval "test \"\${$as_ac_var+set}\" = set"; then
13068   echo $ECHO_N "(cached) $ECHO_C" >&6
13069 else
13070   cat >conftest.$ac_ext <<_ACEOF
13071 #line $LINENO "configure"
13072 #include "confdefs.h"
13073 /* System header to define __stub macros and hopefully few prototypes,
13074     which can conflict with char $ac_func (); below.  */
13075 #include <assert.h>
13076 /* Override any gcc2 internal prototype to avoid an error.  */
13077 #ifdef __cplusplus
13078 extern "C"
13079 #endif
13080 /* We use char because int might match the return type of a gcc2
13081    builtin and then its argument prototype would still apply.  */
13082 char $ac_func ();
13083 char (*f) ();
13084
13085 #ifdef F77_DUMMY_MAIN
13086 #  ifdef __cplusplus
13087      extern "C"
13088 #  endif
13089    int F77_DUMMY_MAIN() { return 1; }
13090 #endif
13091 int
13092 main ()
13093 {
13094 /* The GNU C library defines this for functions which it implements
13095     to always fail with ENOSYS.  Some functions are actually named
13096     something starting with __ and the normal name is an alias.  */
13097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13098 choke me
13099 #else
13100 f = $ac_func;
13101 #endif
13102
13103   ;
13104   return 0;
13105 }
13106 _ACEOF
13107 rm -f conftest.$ac_objext conftest$ac_exeext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13109   (eval $ac_link) 2>&5
13110   ac_status=$?
13111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); } &&
13113          { ac_try='test -s conftest$ac_exeext'
13114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115   (eval $ac_try) 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; }; then
13119   eval "$as_ac_var=yes"
13120 else
13121   echo "$as_me: failed program was:" >&5
13122 cat conftest.$ac_ext >&5
13123 eval "$as_ac_var=no"
13124 fi
13125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13126 fi
13127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13129 if test `eval echo '${'$as_ac_var'}'` = yes; then
13130   cat >>confdefs.h <<_ACEOF
13131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13132 _ACEOF
13133
13134 fi
13135 done
13136
13137
13138 INTL_DEP= INTL_INC= LIBINTL_H=
13139 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
13140         INTL_DEP='${INTL_LIBDIR}/libintl.a'
13141         INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
13142         LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
13143 fi
13144
13145
13146
13147
13148
13149
13150
13151 for ac_header in wctype.h
13152 do
13153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13155   echo "$as_me:$LINENO: checking for $ac_header" >&5
13156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13158   echo $ECHO_N "(cached) $ECHO_C" >&6
13159 fi
13160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13162 else
13163   # Is the header compilable?
13164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13166 cat >conftest.$ac_ext <<_ACEOF
13167 #line $LINENO "configure"
13168 #include "confdefs.h"
13169 $ac_includes_default
13170 #include <$ac_header>
13171 _ACEOF
13172 rm -f conftest.$ac_objext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13174   (eval $ac_compile) 2>&5
13175   ac_status=$?
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); } &&
13178          { ac_try='test -s conftest.$ac_objext'
13179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180   (eval $ac_try) 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); }; }; then
13184   ac_header_compiler=yes
13185 else
13186   echo "$as_me: failed program was:" >&5
13187 cat conftest.$ac_ext >&5
13188 ac_header_compiler=no
13189 fi
13190 rm -f conftest.$ac_objext conftest.$ac_ext
13191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13192 echo "${ECHO_T}$ac_header_compiler" >&6
13193
13194 # Is the header present?
13195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13197 cat >conftest.$ac_ext <<_ACEOF
13198 #line $LINENO "configure"
13199 #include "confdefs.h"
13200 #include <$ac_header>
13201 _ACEOF
13202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13203   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13204   ac_status=$?
13205   egrep -v '^ *\+' conftest.er1 >conftest.err
13206   rm -f conftest.er1
13207   cat conftest.err >&5
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); } >/dev/null; then
13210   if test -s conftest.err; then
13211     ac_cpp_err=$ac_c_preproc_warn_flag
13212   else
13213     ac_cpp_err=
13214   fi
13215 else
13216   ac_cpp_err=yes
13217 fi
13218 if test -z "$ac_cpp_err"; then
13219   ac_header_preproc=yes
13220 else
13221   echo "$as_me: failed program was:" >&5
13222   cat conftest.$ac_ext >&5
13223   ac_header_preproc=no
13224 fi
13225 rm -f conftest.err conftest.$ac_ext
13226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13227 echo "${ECHO_T}$ac_header_preproc" >&6
13228
13229 # So?  What about this header?
13230 case $ac_header_compiler:$ac_header_preproc in
13231   yes:no )
13232     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13236   no:yes )
13237     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13239     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13243 esac
13244 echo "$as_me:$LINENO: checking for $ac_header" >&5
13245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13247   echo $ECHO_N "(cached) $ECHO_C" >&6
13248 else
13249   eval "$as_ac_Header=$ac_header_preproc"
13250 fi
13251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13253
13254 fi
13255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13256   cat >>confdefs.h <<_ACEOF
13257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13258 _ACEOF
13259
13260 fi
13261
13262 done
13263
13264
13265 for ac_header in wchar.h
13266 do
13267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13269   echo "$as_me:$LINENO: checking for $ac_header" >&5
13270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13272   echo $ECHO_N "(cached) $ECHO_C" >&6
13273 fi
13274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13276 else
13277   # Is the header compilable?
13278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13280 cat >conftest.$ac_ext <<_ACEOF
13281 #line $LINENO "configure"
13282 #include "confdefs.h"
13283 $ac_includes_default
13284 #include <$ac_header>
13285 _ACEOF
13286 rm -f conftest.$ac_objext
13287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13288   (eval $ac_compile) 2>&5
13289   ac_status=$?
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } &&
13292          { ac_try='test -s conftest.$ac_objext'
13293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294   (eval $ac_try) 2>&5
13295   ac_status=$?
13296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297   (exit $ac_status); }; }; then
13298   ac_header_compiler=yes
13299 else
13300   echo "$as_me: failed program was:" >&5
13301 cat conftest.$ac_ext >&5
13302 ac_header_compiler=no
13303 fi
13304 rm -f conftest.$ac_objext conftest.$ac_ext
13305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13306 echo "${ECHO_T}$ac_header_compiler" >&6
13307
13308 # Is the header present?
13309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13311 cat >conftest.$ac_ext <<_ACEOF
13312 #line $LINENO "configure"
13313 #include "confdefs.h"
13314 #include <$ac_header>
13315 _ACEOF
13316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13317   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13318   ac_status=$?
13319   egrep -v '^ *\+' conftest.er1 >conftest.err
13320   rm -f conftest.er1
13321   cat conftest.err >&5
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } >/dev/null; then
13324   if test -s conftest.err; then
13325     ac_cpp_err=$ac_c_preproc_warn_flag
13326   else
13327     ac_cpp_err=
13328   fi
13329 else
13330   ac_cpp_err=yes
13331 fi
13332 if test -z "$ac_cpp_err"; then
13333   ac_header_preproc=yes
13334 else
13335   echo "$as_me: failed program was:" >&5
13336   cat conftest.$ac_ext >&5
13337   ac_header_preproc=no
13338 fi
13339 rm -f conftest.err conftest.$ac_ext
13340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13341 echo "${ECHO_T}$ac_header_preproc" >&6
13342
13343 # So?  What about this header?
13344 case $ac_header_compiler:$ac_header_preproc in
13345   yes:no )
13346     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13350   no:yes )
13351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13353     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13357 esac
13358 echo "$as_me:$LINENO: checking for $ac_header" >&5
13359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13361   echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363   eval "$as_ac_Header=$ac_header_preproc"
13364 fi
13365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13367
13368 fi
13369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13370   cat >>confdefs.h <<_ACEOF
13371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13372 _ACEOF
13373
13374 fi
13375
13376 done
13377
13378
13379 for ac_header in langinfo.h
13380 do
13381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13383   echo "$as_me:$LINENO: checking for $ac_header" >&5
13384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13386   echo $ECHO_N "(cached) $ECHO_C" >&6
13387 fi
13388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13390 else
13391   # Is the header compilable?
13392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13394 cat >conftest.$ac_ext <<_ACEOF
13395 #line $LINENO "configure"
13396 #include "confdefs.h"
13397 $ac_includes_default
13398 #include <$ac_header>
13399 _ACEOF
13400 rm -f conftest.$ac_objext
13401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13402   (eval $ac_compile) 2>&5
13403   ac_status=$?
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); } &&
13406          { ac_try='test -s conftest.$ac_objext'
13407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408   (eval $ac_try) 2>&5
13409   ac_status=$?
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); }; }; then
13412   ac_header_compiler=yes
13413 else
13414   echo "$as_me: failed program was:" >&5
13415 cat conftest.$ac_ext >&5
13416 ac_header_compiler=no
13417 fi
13418 rm -f conftest.$ac_objext conftest.$ac_ext
13419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13420 echo "${ECHO_T}$ac_header_compiler" >&6
13421
13422 # Is the header present?
13423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13425 cat >conftest.$ac_ext <<_ACEOF
13426 #line $LINENO "configure"
13427 #include "confdefs.h"
13428 #include <$ac_header>
13429 _ACEOF
13430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13432   ac_status=$?
13433   egrep -v '^ *\+' conftest.er1 >conftest.err
13434   rm -f conftest.er1
13435   cat conftest.err >&5
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); } >/dev/null; then
13438   if test -s conftest.err; then
13439     ac_cpp_err=$ac_c_preproc_warn_flag
13440   else
13441     ac_cpp_err=
13442   fi
13443 else
13444   ac_cpp_err=yes
13445 fi
13446 if test -z "$ac_cpp_err"; then
13447   ac_header_preproc=yes
13448 else
13449   echo "$as_me: failed program was:" >&5
13450   cat conftest.$ac_ext >&5
13451   ac_header_preproc=no
13452 fi
13453 rm -f conftest.err conftest.$ac_ext
13454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13455 echo "${ECHO_T}$ac_header_preproc" >&6
13456
13457 # So?  What about this header?
13458 case $ac_header_compiler:$ac_header_preproc in
13459   yes:no )
13460     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13464   no:yes )
13465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13467     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13471 esac
13472 echo "$as_me:$LINENO: checking for $ac_header" >&5
13473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13475   echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477   eval "$as_ac_Header=$ac_header_preproc"
13478 fi
13479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13481
13482 fi
13483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13484   cat >>confdefs.h <<_ACEOF
13485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13486 _ACEOF
13487
13488 fi
13489
13490 done
13491
13492
13493 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
13494 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
13495 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
13496   echo $ECHO_N "(cached) $ECHO_C" >&6
13497 else
13498   cat >conftest.$ac_ext <<_ACEOF
13499 #line $LINENO "configure"
13500 #include "confdefs.h"
13501 /* System header to define __stub macros and hopefully few prototypes,
13502     which can conflict with char mbsrtowcs (); below.  */
13503 #include <assert.h>
13504 /* Override any gcc2 internal prototype to avoid an error.  */
13505 #ifdef __cplusplus
13506 extern "C"
13507 #endif
13508 /* We use char because int might match the return type of a gcc2
13509    builtin and then its argument prototype would still apply.  */
13510 char mbsrtowcs ();
13511 char (*f) ();
13512
13513 #ifdef F77_DUMMY_MAIN
13514 #  ifdef __cplusplus
13515      extern "C"
13516 #  endif
13517    int F77_DUMMY_MAIN() { return 1; }
13518 #endif
13519 int
13520 main ()
13521 {
13522 /* The GNU C library defines this for functions which it implements
13523     to always fail with ENOSYS.  Some functions are actually named
13524     something starting with __ and the normal name is an alias.  */
13525 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
13526 choke me
13527 #else
13528 f = mbsrtowcs;
13529 #endif
13530
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 rm -f conftest.$ac_objext conftest$ac_exeext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13537   (eval $ac_link) 2>&5
13538   ac_status=$?
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); } &&
13541          { ac_try='test -s conftest$ac_exeext'
13542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543   (eval $ac_try) 2>&5
13544   ac_status=$?
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); }; }; then
13547   ac_cv_func_mbsrtowcs=yes
13548 else
13549   echo "$as_me: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13551 ac_cv_func_mbsrtowcs=no
13552 fi
13553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13554 fi
13555 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
13556 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
13557 if test $ac_cv_func_mbsrtowcs = yes; then
13558   cat >>confdefs.h <<\_ACEOF
13559 #define HAVE_MBSRTOWCS 1
13560 _ACEOF
13561
13562 fi
13563
13564 echo "$as_me:$LINENO: checking for mbrtowc" >&5
13565 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
13566 if test "${ac_cv_func_mbrtowc+set}" = set; then
13567   echo $ECHO_N "(cached) $ECHO_C" >&6
13568 else
13569   cat >conftest.$ac_ext <<_ACEOF
13570 #line $LINENO "configure"
13571 #include "confdefs.h"
13572 /* System header to define __stub macros and hopefully few prototypes,
13573     which can conflict with char mbrtowc (); below.  */
13574 #include <assert.h>
13575 /* Override any gcc2 internal prototype to avoid an error.  */
13576 #ifdef __cplusplus
13577 extern "C"
13578 #endif
13579 /* We use char because int might match the return type of a gcc2
13580    builtin and then its argument prototype would still apply.  */
13581 char mbrtowc ();
13582 char (*f) ();
13583
13584 #ifdef F77_DUMMY_MAIN
13585 #  ifdef __cplusplus
13586      extern "C"
13587 #  endif
13588    int F77_DUMMY_MAIN() { return 1; }
13589 #endif
13590 int
13591 main ()
13592 {
13593 /* The GNU C library defines this for functions which it implements
13594     to always fail with ENOSYS.  Some functions are actually named
13595     something starting with __ and the normal name is an alias.  */
13596 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
13597 choke me
13598 #else
13599 f = mbrtowc;
13600 #endif
13601
13602   ;
13603   return 0;
13604 }
13605 _ACEOF
13606 rm -f conftest.$ac_objext conftest$ac_exeext
13607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13608   (eval $ac_link) 2>&5
13609   ac_status=$?
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); } &&
13612          { ac_try='test -s conftest$ac_exeext'
13613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614   (eval $ac_try) 2>&5
13615   ac_status=$?
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); }; }; then
13618   ac_cv_func_mbrtowc=yes
13619 else
13620   echo "$as_me: failed program was:" >&5
13621 cat conftest.$ac_ext >&5
13622 ac_cv_func_mbrtowc=no
13623 fi
13624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13625 fi
13626 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
13627 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
13628 if test $ac_cv_func_mbrtowc = yes; then
13629   cat >>confdefs.h <<\_ACEOF
13630 #define HAVE_MBRTOWC 1
13631 _ACEOF
13632
13633 fi
13634
13635 echo "$as_me:$LINENO: checking for mbrlen" >&5
13636 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
13637 if test "${ac_cv_func_mbrlen+set}" = set; then
13638   echo $ECHO_N "(cached) $ECHO_C" >&6
13639 else
13640   cat >conftest.$ac_ext <<_ACEOF
13641 #line $LINENO "configure"
13642 #include "confdefs.h"
13643 /* System header to define __stub macros and hopefully few prototypes,
13644     which can conflict with char mbrlen (); below.  */
13645 #include <assert.h>
13646 /* Override any gcc2 internal prototype to avoid an error.  */
13647 #ifdef __cplusplus
13648 extern "C"
13649 #endif
13650 /* We use char because int might match the return type of a gcc2
13651    builtin and then its argument prototype would still apply.  */
13652 char mbrlen ();
13653 char (*f) ();
13654
13655 #ifdef F77_DUMMY_MAIN
13656 #  ifdef __cplusplus
13657      extern "C"
13658 #  endif
13659    int F77_DUMMY_MAIN() { return 1; }
13660 #endif
13661 int
13662 main ()
13663 {
13664 /* The GNU C library defines this for functions which it implements
13665     to always fail with ENOSYS.  Some functions are actually named
13666     something starting with __ and the normal name is an alias.  */
13667 #if defined (__stub_mbrlen) || defined (__stub___mbrlen)
13668 choke me
13669 #else
13670 f = mbrlen;
13671 #endif
13672
13673   ;
13674   return 0;
13675 }
13676 _ACEOF
13677 rm -f conftest.$ac_objext conftest$ac_exeext
13678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13679   (eval $ac_link) 2>&5
13680   ac_status=$?
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); } &&
13683          { ac_try='test -s conftest$ac_exeext'
13684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685   (eval $ac_try) 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; }; then
13689   ac_cv_func_mbrlen=yes
13690 else
13691   echo "$as_me: failed program was:" >&5
13692 cat conftest.$ac_ext >&5
13693 ac_cv_func_mbrlen=no
13694 fi
13695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13696 fi
13697 echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
13698 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
13699 if test $ac_cv_func_mbrlen = yes; then
13700   cat >>confdefs.h <<\_ACEOF
13701 #define HAVE_MBRLEN 1
13702 _ACEOF
13703
13704 fi
13705
13706 echo "$as_me:$LINENO: checking for wctomb" >&5
13707 echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
13708 if test "${ac_cv_func_wctomb+set}" = set; then
13709   echo $ECHO_N "(cached) $ECHO_C" >&6
13710 else
13711   cat >conftest.$ac_ext <<_ACEOF
13712 #line $LINENO "configure"
13713 #include "confdefs.h"
13714 /* System header to define __stub macros and hopefully few prototypes,
13715     which can conflict with char wctomb (); below.  */
13716 #include <assert.h>
13717 /* Override any gcc2 internal prototype to avoid an error.  */
13718 #ifdef __cplusplus
13719 extern "C"
13720 #endif
13721 /* We use char because int might match the return type of a gcc2
13722    builtin and then its argument prototype would still apply.  */
13723 char wctomb ();
13724 char (*f) ();
13725
13726 #ifdef F77_DUMMY_MAIN
13727 #  ifdef __cplusplus
13728      extern "C"
13729 #  endif
13730    int F77_DUMMY_MAIN() { return 1; }
13731 #endif
13732 int
13733 main ()
13734 {
13735 /* The GNU C library defines this for functions which it implements
13736     to always fail with ENOSYS.  Some functions are actually named
13737     something starting with __ and the normal name is an alias.  */
13738 #if defined (__stub_wctomb) || defined (__stub___wctomb)
13739 choke me
13740 #else
13741 f = wctomb;
13742 #endif
13743
13744   ;
13745   return 0;
13746 }
13747 _ACEOF
13748 rm -f conftest.$ac_objext conftest$ac_exeext
13749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13750   (eval $ac_link) 2>&5
13751   ac_status=$?
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); } &&
13754          { ac_try='test -s conftest$ac_exeext'
13755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756   (eval $ac_try) 2>&5
13757   ac_status=$?
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); }; }; then
13760   ac_cv_func_wctomb=yes
13761 else
13762   echo "$as_me: failed program was:" >&5
13763 cat conftest.$ac_ext >&5
13764 ac_cv_func_wctomb=no
13765 fi
13766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13767 fi
13768 echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
13769 echo "${ECHO_T}$ac_cv_func_wctomb" >&6
13770 if test $ac_cv_func_wctomb = yes; then
13771   cat >>confdefs.h <<\_ACEOF
13772 #define HAVE_WCTOMB 1
13773 _ACEOF
13774
13775 fi
13776
13777 echo "$as_me:$LINENO: checking for wcwidth" >&5
13778 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
13779 if test "${ac_cv_func_wcwidth+set}" = set; then
13780   echo $ECHO_N "(cached) $ECHO_C" >&6
13781 else
13782   cat >conftest.$ac_ext <<_ACEOF
13783 #line $LINENO "configure"
13784 #include "confdefs.h"
13785 /* System header to define __stub macros and hopefully few prototypes,
13786     which can conflict with char wcwidth (); below.  */
13787 #include <assert.h>
13788 /* Override any gcc2 internal prototype to avoid an error.  */
13789 #ifdef __cplusplus
13790 extern "C"
13791 #endif
13792 /* We use char because int might match the return type of a gcc2
13793    builtin and then its argument prototype would still apply.  */
13794 char wcwidth ();
13795 char (*f) ();
13796
13797 #ifdef F77_DUMMY_MAIN
13798 #  ifdef __cplusplus
13799      extern "C"
13800 #  endif
13801    int F77_DUMMY_MAIN() { return 1; }
13802 #endif
13803 int
13804 main ()
13805 {
13806 /* The GNU C library defines this for functions which it implements
13807     to always fail with ENOSYS.  Some functions are actually named
13808     something starting with __ and the normal name is an alias.  */
13809 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
13810 choke me
13811 #else
13812 f = wcwidth;
13813 #endif
13814
13815   ;
13816   return 0;
13817 }
13818 _ACEOF
13819 rm -f conftest.$ac_objext conftest$ac_exeext
13820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13821   (eval $ac_link) 2>&5
13822   ac_status=$?
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); } &&
13825          { ac_try='test -s conftest$ac_exeext'
13826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827   (eval $ac_try) 2>&5
13828   ac_status=$?
13829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830   (exit $ac_status); }; }; then
13831   ac_cv_func_wcwidth=yes
13832 else
13833   echo "$as_me: failed program was:" >&5
13834 cat conftest.$ac_ext >&5
13835 ac_cv_func_wcwidth=no
13836 fi
13837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13838 fi
13839 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
13840 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
13841 if test $ac_cv_func_wcwidth = yes; then
13842   cat >>confdefs.h <<\_ACEOF
13843 #define HAVE_WCWIDTH 1
13844 _ACEOF
13845
13846 fi
13847
13848 echo "$as_me:$LINENO: checking for wcsdup" >&5
13849 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
13850 if test "${ac_cv_func_wcsdup+set}" = set; then
13851   echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853   cat >conftest.$ac_ext <<_ACEOF
13854 #line $LINENO "configure"
13855 #include "confdefs.h"
13856 /* System header to define __stub macros and hopefully few prototypes,
13857     which can conflict with char wcsdup (); below.  */
13858 #include <assert.h>
13859 /* Override any gcc2 internal prototype to avoid an error.  */
13860 #ifdef __cplusplus
13861 extern "C"
13862 #endif
13863 /* We use char because int might match the return type of a gcc2
13864    builtin and then its argument prototype would still apply.  */
13865 char wcsdup ();
13866 char (*f) ();
13867
13868 #ifdef F77_DUMMY_MAIN
13869 #  ifdef __cplusplus
13870      extern "C"
13871 #  endif
13872    int F77_DUMMY_MAIN() { return 1; }
13873 #endif
13874 int
13875 main ()
13876 {
13877 /* The GNU C library defines this for functions which it implements
13878     to always fail with ENOSYS.  Some functions are actually named
13879     something starting with __ and the normal name is an alias.  */
13880 #if defined (__stub_wcsdup) || defined (__stub___wcsdup)
13881 choke me
13882 #else
13883 f = wcsdup;
13884 #endif
13885
13886   ;
13887   return 0;
13888 }
13889 _ACEOF
13890 rm -f conftest.$ac_objext conftest$ac_exeext
13891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13892   (eval $ac_link) 2>&5
13893   ac_status=$?
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); } &&
13896          { ac_try='test -s conftest$ac_exeext'
13897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898   (eval $ac_try) 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); }; }; then
13902   ac_cv_func_wcsdup=yes
13903 else
13904   echo "$as_me: failed program was:" >&5
13905 cat conftest.$ac_ext >&5
13906 ac_cv_func_wcsdup=no
13907 fi
13908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13909 fi
13910 echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
13911 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
13912 if test $ac_cv_func_wcsdup = yes; then
13913   cat >>confdefs.h <<\_ACEOF
13914 #define HAVE_WCSDUP 1
13915 _ACEOF
13916
13917 fi
13918
13919
13920 echo "$as_me:$LINENO: checking for mbstate_t" >&5
13921 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
13922 if test "${bash_cv_have_mbstate_t+set}" = set; then
13923   echo $ECHO_N "(cached) $ECHO_C" >&6
13924 else
13925   cat >conftest.$ac_ext <<_ACEOF
13926 #line $LINENO "configure"
13927 #include "confdefs.h"
13928
13929 #include <wchar.h>
13930 #ifdef F77_DUMMY_MAIN
13931 #  ifdef __cplusplus
13932      extern "C"
13933 #  endif
13934    int F77_DUMMY_MAIN() { return 1; }
13935 #endif
13936 int
13937 main ()
13938 {
13939
13940   mbstate_t ps;
13941   mbstate_t *psp;
13942   psp = (mbstate_t *)0;
13943
13944   ;
13945   return 0;
13946 }
13947 _ACEOF
13948 rm -f conftest.$ac_objext
13949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950   (eval $ac_compile) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); } &&
13954          { ac_try='test -s conftest.$ac_objext'
13955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956   (eval $ac_try) 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); }; }; then
13960   bash_cv_have_mbstate_t=yes
13961 else
13962   echo "$as_me: failed program was:" >&5
13963 cat conftest.$ac_ext >&5
13964 bash_cv_have_mbstate_t=no
13965 fi
13966 rm -f conftest.$ac_objext conftest.$ac_ext
13967 fi
13968 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
13969 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
13970 if test $bash_cv_have_mbstate_t = yes; then
13971         cat >>confdefs.h <<\_ACEOF
13972 #define HAVE_MBSTATE_T 1
13973 _ACEOF
13974
13975 fi
13976
13977 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13978 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
13979 if test "${bash_cv_langinfo_codeset+set}" = set; then
13980   echo $ECHO_N "(cached) $ECHO_C" >&6
13981 else
13982   cat >conftest.$ac_ext <<_ACEOF
13983 #line $LINENO "configure"
13984 #include "confdefs.h"
13985 #include <langinfo.h>
13986 #ifdef F77_DUMMY_MAIN
13987 #  ifdef __cplusplus
13988      extern "C"
13989 #  endif
13990    int F77_DUMMY_MAIN() { return 1; }
13991 #endif
13992 int
13993 main ()
13994 {
13995 char* cs = nl_langinfo(CODESET);
13996   ;
13997   return 0;
13998 }
13999 _ACEOF
14000 rm -f conftest.$ac_objext conftest$ac_exeext
14001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14002   (eval $ac_link) 2>&5
14003   ac_status=$?
14004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); } &&
14006          { ac_try='test -s conftest$ac_exeext'
14007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008   (eval $ac_try) 2>&5
14009   ac_status=$?
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); }; }; then
14012   bash_cv_langinfo_codeset=yes
14013 else
14014   echo "$as_me: failed program was:" >&5
14015 cat conftest.$ac_ext >&5
14016 bash_cv_langinfo_codeset=no
14017 fi
14018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14019 fi
14020 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
14021 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
14022 if test $bash_cv_langinfo_codeset = yes; then
14023   cat >>confdefs.h <<\_ACEOF
14024 #define HAVE_LANGINFO_CODESET 1
14025 _ACEOF
14026
14027 fi
14028
14029
14030
14031 if test "$opt_static_link" != yes; then
14032
14033 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14034 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14035 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14036   echo $ECHO_N "(cached) $ECHO_C" >&6
14037 else
14038   ac_check_lib_save_LIBS=$LIBS
14039 LIBS="-ldl  $LIBS"
14040 cat >conftest.$ac_ext <<_ACEOF
14041 #line $LINENO "configure"
14042 #include "confdefs.h"
14043
14044 /* Override any gcc2 internal prototype to avoid an error.  */
14045 #ifdef __cplusplus
14046 extern "C"
14047 #endif
14048 /* We use char because int might match the return type of a gcc2
14049    builtin and then its argument prototype would still apply.  */
14050 char dlopen ();
14051 #ifdef F77_DUMMY_MAIN
14052 #  ifdef __cplusplus
14053      extern "C"
14054 #  endif
14055    int F77_DUMMY_MAIN() { return 1; }
14056 #endif
14057 int
14058 main ()
14059 {
14060 dlopen ();
14061   ;
14062   return 0;
14063 }
14064 _ACEOF
14065 rm -f conftest.$ac_objext conftest$ac_exeext
14066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14067   (eval $ac_link) 2>&5
14068   ac_status=$?
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); } &&
14071          { ac_try='test -s conftest$ac_exeext'
14072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073   (eval $ac_try) 2>&5
14074   ac_status=$?
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); }; }; then
14077   ac_cv_lib_dl_dlopen=yes
14078 else
14079   echo "$as_me: failed program was:" >&5
14080 cat conftest.$ac_ext >&5
14081 ac_cv_lib_dl_dlopen=no
14082 fi
14083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14084 LIBS=$ac_check_lib_save_LIBS
14085 fi
14086 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14087 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14088 if test $ac_cv_lib_dl_dlopen = yes; then
14089   cat >>confdefs.h <<_ACEOF
14090 #define HAVE_LIBDL 1
14091 _ACEOF
14092
14093   LIBS="-ldl $LIBS"
14094
14095 fi
14096
14097
14098
14099
14100 for ac_func in dlopen dlclose dlsym
14101 do
14102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14103 echo "$as_me:$LINENO: checking for $ac_func" >&5
14104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14105 if eval "test \"\${$as_ac_var+set}\" = set"; then
14106   echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108   cat >conftest.$ac_ext <<_ACEOF
14109 #line $LINENO "configure"
14110 #include "confdefs.h"
14111 /* System header to define __stub macros and hopefully few prototypes,
14112     which can conflict with char $ac_func (); below.  */
14113 #include <assert.h>
14114 /* Override any gcc2 internal prototype to avoid an error.  */
14115 #ifdef __cplusplus
14116 extern "C"
14117 #endif
14118 /* We use char because int might match the return type of a gcc2
14119    builtin and then its argument prototype would still apply.  */
14120 char $ac_func ();
14121 char (*f) ();
14122
14123 #ifdef F77_DUMMY_MAIN
14124 #  ifdef __cplusplus
14125      extern "C"
14126 #  endif
14127    int F77_DUMMY_MAIN() { return 1; }
14128 #endif
14129 int
14130 main ()
14131 {
14132 /* The GNU C library defines this for functions which it implements
14133     to always fail with ENOSYS.  Some functions are actually named
14134     something starting with __ and the normal name is an alias.  */
14135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14136 choke me
14137 #else
14138 f = $ac_func;
14139 #endif
14140
14141   ;
14142   return 0;
14143 }
14144 _ACEOF
14145 rm -f conftest.$ac_objext conftest$ac_exeext
14146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14147   (eval $ac_link) 2>&5
14148   ac_status=$?
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); } &&
14151          { ac_try='test -s conftest$ac_exeext'
14152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153   (eval $ac_try) 2>&5
14154   ac_status=$?
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); }; }; then
14157   eval "$as_ac_var=yes"
14158 else
14159   echo "$as_me: failed program was:" >&5
14160 cat conftest.$ac_ext >&5
14161 eval "$as_ac_var=no"
14162 fi
14163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14164 fi
14165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14167 if test `eval echo '${'$as_ac_var'}'` = yes; then
14168   cat >>confdefs.h <<_ACEOF
14169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14170 _ACEOF
14171
14172 fi
14173 done
14174
14175 fi
14176
14177 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
14178 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
14179 if test "${ac_cv_decl_sys_siglist+set}" = set; then
14180   echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182   cat >conftest.$ac_ext <<_ACEOF
14183 #line $LINENO "configure"
14184 #include "confdefs.h"
14185 #include <sys/types.h>
14186 #include <signal.h>
14187 /* NetBSD declares sys_siglist in unistd.h.  */
14188 #if HAVE_UNISTD_H
14189 # include <unistd.h>
14190 #endif
14191
14192 #ifdef F77_DUMMY_MAIN
14193 #  ifdef __cplusplus
14194      extern "C"
14195 #  endif
14196    int F77_DUMMY_MAIN() { return 1; }
14197 #endif
14198 int
14199 main ()
14200 {
14201 char *msg = *(sys_siglist + 1);
14202   ;
14203   return 0;
14204 }
14205 _ACEOF
14206 rm -f conftest.$ac_objext
14207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14208   (eval $ac_compile) 2>&5
14209   ac_status=$?
14210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); } &&
14212          { ac_try='test -s conftest.$ac_objext'
14213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214   (eval $ac_try) 2>&5
14215   ac_status=$?
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); }; }; then
14218   ac_cv_decl_sys_siglist=yes
14219 else
14220   echo "$as_me: failed program was:" >&5
14221 cat conftest.$ac_ext >&5
14222 ac_cv_decl_sys_siglist=no
14223 fi
14224 rm -f conftest.$ac_objext conftest.$ac_ext
14225 fi
14226 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
14227 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
14228 if test $ac_cv_decl_sys_siglist = yes; then
14229
14230 cat >>confdefs.h <<\_ACEOF
14231 #define SYS_SIGLIST_DECLARED 1
14232 _ACEOF
14233
14234 fi
14235
14236
14237 if test "$ac_cv_func_inet_aton" != 'yes'; then
14238
14239 echo "$as_me:$LINENO: checking for inet_aton" >&5
14240 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14241 if test "${bash_cv_func_inet_aton+set}" = set; then
14242   echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244   cat >conftest.$ac_ext <<_ACEOF
14245 #line $LINENO "configure"
14246 #include "confdefs.h"
14247
14248 #include <sys/types.h>
14249 #include <netinet/in.h>
14250 #include <arpa/inet.h>
14251 struct in_addr ap;
14252 #ifdef F77_DUMMY_MAIN
14253 #  ifdef __cplusplus
14254      extern "C"
14255 #  endif
14256    int F77_DUMMY_MAIN() { return 1; }
14257 #endif
14258 int
14259 main ()
14260 {
14261  inet_aton("127.0.0.1", &ap);
14262   ;
14263   return 0;
14264 }
14265 _ACEOF
14266 rm -f conftest.$ac_objext conftest$ac_exeext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14268   (eval $ac_link) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); } &&
14272          { ac_try='test -s conftest$ac_exeext'
14273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274   (eval $ac_try) 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); }; }; then
14278   bash_cv_func_inet_aton=yes
14279 else
14280   echo "$as_me: failed program was:" >&5
14281 cat conftest.$ac_ext >&5
14282 bash_cv_func_inet_aton=no
14283 fi
14284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14285 fi
14286 echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
14287 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
14288 if test $bash_cv_func_inet_aton = yes; then
14289   cat >>confdefs.h <<\_ACEOF
14290 #define HAVE_INET_ATON 1
14291 _ACEOF
14292
14293 else
14294   LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
14295 fi
14296
14297 fi
14298
14299 case "$host_os" in
14300 irix4*)
14301 echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
14302 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
14303 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
14304   echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306   ac_check_lib_save_LIBS=$LIBS
14307 LIBS="-lsun  $LIBS"
14308 cat >conftest.$ac_ext <<_ACEOF
14309 #line $LINENO "configure"
14310 #include "confdefs.h"
14311
14312 /* Override any gcc2 internal prototype to avoid an error.  */
14313 #ifdef __cplusplus
14314 extern "C"
14315 #endif
14316 /* We use char because int might match the return type of a gcc2
14317    builtin and then its argument prototype would still apply.  */
14318 char getpwent ();
14319 #ifdef F77_DUMMY_MAIN
14320 #  ifdef __cplusplus
14321      extern "C"
14322 #  endif
14323    int F77_DUMMY_MAIN() { return 1; }
14324 #endif
14325 int
14326 main ()
14327 {
14328 getpwent ();
14329   ;
14330   return 0;
14331 }
14332 _ACEOF
14333 rm -f conftest.$ac_objext conftest$ac_exeext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14335   (eval $ac_link) 2>&5
14336   ac_status=$?
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); } &&
14339          { ac_try='test -s conftest$ac_exeext'
14340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341   (eval $ac_try) 2>&5
14342   ac_status=$?
14343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344   (exit $ac_status); }; }; then
14345   ac_cv_lib_sun_getpwent=yes
14346 else
14347   echo "$as_me: failed program was:" >&5
14348 cat conftest.$ac_ext >&5
14349 ac_cv_lib_sun_getpwent=no
14350 fi
14351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14352 LIBS=$ac_check_lib_save_LIBS
14353 fi
14354 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
14355 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
14356 if test $ac_cv_lib_sun_getpwent = yes; then
14357   cat >>confdefs.h <<_ACEOF
14358 #define HAVE_LIBSUN 1
14359 _ACEOF
14360
14361   LIBS="-lsun $LIBS"
14362
14363 fi
14364  ;;
14365 esac
14366
14367 if test "$ac_cv_func_getpeername" = no; then
14368
14369 if test "X$bash_cv_have_socklib" = "X"; then
14370 _bash_needmsg=
14371 else
14372 echo "$as_me:$LINENO: checking for socket library" >&5
14373 echo $ECHO_N "checking for socket library... $ECHO_C" >&6
14374 _bash_needmsg=yes
14375 fi
14376 if test "${bash_cv_have_socklib+set}" = set; then
14377   echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379   echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
14380 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
14381 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
14382   echo $ECHO_N "(cached) $ECHO_C" >&6
14383 else
14384   ac_check_lib_save_LIBS=$LIBS
14385 LIBS="-lsocket -lnsl $LIBS"
14386 cat >conftest.$ac_ext <<_ACEOF
14387 #line $LINENO "configure"
14388 #include "confdefs.h"
14389
14390 /* Override any gcc2 internal prototype to avoid an error.  */
14391 #ifdef __cplusplus
14392 extern "C"
14393 #endif
14394 /* We use char because int might match the return type of a gcc2
14395    builtin and then its argument prototype would still apply.  */
14396 char getpeername ();
14397 #ifdef F77_DUMMY_MAIN
14398 #  ifdef __cplusplus
14399      extern "C"
14400 #  endif
14401    int F77_DUMMY_MAIN() { return 1; }
14402 #endif
14403 int
14404 main ()
14405 {
14406 getpeername ();
14407   ;
14408   return 0;
14409 }
14410 _ACEOF
14411 rm -f conftest.$ac_objext conftest$ac_exeext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14413   (eval $ac_link) 2>&5
14414   ac_status=$?
14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416   (exit $ac_status); } &&
14417          { ac_try='test -s conftest$ac_exeext'
14418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419   (eval $ac_try) 2>&5
14420   ac_status=$?
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); }; }; then
14423   ac_cv_lib_socket_getpeername=yes
14424 else
14425   echo "$as_me: failed program was:" >&5
14426 cat conftest.$ac_ext >&5
14427 ac_cv_lib_socket_getpeername=no
14428 fi
14429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14430 LIBS=$ac_check_lib_save_LIBS
14431 fi
14432 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
14433 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
14434 if test $ac_cv_lib_socket_getpeername = yes; then
14435   bash_cv_have_socklib=yes
14436 else
14437   bash_cv_have_socklib=no
14438 fi
14439
14440 fi
14441
14442 if test "X$_bash_needmsg" = Xyes; then
14443   echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
14444 echo "${ECHO_T}$bash_cv_have_socklib" >&6
14445   _bash_needmsg=
14446 fi
14447 if test $bash_cv_have_socklib = yes; then
14448   # check for libnsl, add it to LIBS if present
14449   if test "X$bash_cv_have_libnsl" = "X"; then
14450     _bash_needmsg=
14451   else
14452     echo "$as_me:$LINENO: checking for libnsl" >&5
14453 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
14454     _bash_needmsg=yes
14455   fi
14456   if test "${bash_cv_have_libnsl+set}" = set; then
14457   echo $ECHO_N "(cached) $ECHO_C" >&6
14458 else
14459   echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14460 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
14461 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14462   echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464   ac_check_lib_save_LIBS=$LIBS
14465 LIBS="-lnsl  $LIBS"
14466 cat >conftest.$ac_ext <<_ACEOF
14467 #line $LINENO "configure"
14468 #include "confdefs.h"
14469
14470 /* Override any gcc2 internal prototype to avoid an error.  */
14471 #ifdef __cplusplus
14472 extern "C"
14473 #endif
14474 /* We use char because int might match the return type of a gcc2
14475    builtin and then its argument prototype would still apply.  */
14476 char t_open ();
14477 #ifdef F77_DUMMY_MAIN
14478 #  ifdef __cplusplus
14479      extern "C"
14480 #  endif
14481    int F77_DUMMY_MAIN() { return 1; }
14482 #endif
14483 int
14484 main ()
14485 {
14486 t_open ();
14487   ;
14488   return 0;
14489 }
14490 _ACEOF
14491 rm -f conftest.$ac_objext conftest$ac_exeext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14493   (eval $ac_link) 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); } &&
14497          { ac_try='test -s conftest$ac_exeext'
14498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499   (eval $ac_try) 2>&5
14500   ac_status=$?
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); }; }; then
14503   ac_cv_lib_nsl_t_open=yes
14504 else
14505   echo "$as_me: failed program was:" >&5
14506 cat conftest.$ac_ext >&5
14507 ac_cv_lib_nsl_t_open=no
14508 fi
14509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14510 LIBS=$ac_check_lib_save_LIBS
14511 fi
14512 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14513 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
14514 if test $ac_cv_lib_nsl_t_open = yes; then
14515   bash_cv_have_libnsl=yes
14516 else
14517   bash_cv_have_libnsl=no
14518 fi
14519
14520 fi
14521
14522   if test "X$_bash_needmsg" = Xyes; then
14523     echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
14524 echo "${ECHO_T}$bash_cv_have_libnsl" >&6
14525     _bash_needmsg=
14526   fi
14527   if test $bash_cv_have_libnsl = yes; then
14528     LIBS="-lsocket -lnsl $LIBS"
14529   else
14530     LIBS="-lsocket $LIBS"
14531   fi
14532   cat >>confdefs.h <<\_ACEOF
14533 #define HAVE_LIBSOCKET 1
14534 _ACEOF
14535
14536   cat >>confdefs.h <<\_ACEOF
14537 #define HAVE_GETPEERNAME 1
14538 _ACEOF
14539
14540 fi
14541
14542 fi
14543 if test "$ac_cv_func_gethostbyname" = no; then
14544         if test "X$bash_cv_have_gethostbyname" = "X"; then
14545 _bash_needmsg=yes
14546 else
14547 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
14548 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
14549 _bash_needmsg=
14550 fi
14551 if test "${bash_cv_have_gethostbyname+set}" = set; then
14552   echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554   cat >conftest.$ac_ext <<_ACEOF
14555 #line $LINENO "configure"
14556 #include "confdefs.h"
14557 #include <netdb.h>
14558 #ifdef F77_DUMMY_MAIN
14559 #  ifdef __cplusplus
14560      extern "C"
14561 #  endif
14562    int F77_DUMMY_MAIN() { return 1; }
14563 #endif
14564 int
14565 main ()
14566 {
14567  struct hostent *hp;
14568   hp = gethostbyname("localhost");
14569
14570   ;
14571   return 0;
14572 }
14573 _ACEOF
14574 rm -f conftest.$ac_objext conftest$ac_exeext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14576   (eval $ac_link) 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); } &&
14580          { ac_try='test -s conftest$ac_exeext'
14581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582   (eval $ac_try) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); }; }; then
14586   bash_cv_have_gethostbyname=yes
14587 else
14588   echo "$as_me: failed program was:" >&5
14589 cat conftest.$ac_ext >&5
14590 bash_cv_have_gethostbyname=no
14591 fi
14592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14593
14594 fi
14595
14596 if test "X$_bash_needmsg" = Xyes; then
14597     echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
14598 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
14599 fi
14600 echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
14601 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
14602 if test "$bash_cv_have_gethostbyname" = yes; then
14603 cat >>confdefs.h <<\_ACEOF
14604 #define HAVE_GETHOSTBYNAME 1
14605 _ACEOF
14606
14607 fi
14608
14609 fi
14610
14611 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14612 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
14613 if test "${ac_cv_type_uid_t+set}" = set; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   cat >conftest.$ac_ext <<_ACEOF
14617 #line $LINENO "configure"
14618 #include "confdefs.h"
14619 #include <sys/types.h>
14620
14621 _ACEOF
14622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14623   egrep "uid_t" >/dev/null 2>&1; then
14624   ac_cv_type_uid_t=yes
14625 else
14626   ac_cv_type_uid_t=no
14627 fi
14628 rm -f conftest*
14629
14630 fi
14631 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14632 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
14633 if test $ac_cv_type_uid_t = no; then
14634
14635 cat >>confdefs.h <<\_ACEOF
14636 #define uid_t int
14637 _ACEOF
14638
14639
14640 cat >>confdefs.h <<\_ACEOF
14641 #define gid_t int
14642 _ACEOF
14643
14644 fi
14645
14646 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
14647 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
14648 if test "${ac_cv_type_getgroups+set}" = set; then
14649   echo $ECHO_N "(cached) $ECHO_C" >&6
14650 else
14651   if test "$cross_compiling" = yes; then
14652   ac_cv_type_getgroups=cross
14653 else
14654   cat >conftest.$ac_ext <<_ACEOF
14655 #line $LINENO "configure"
14656 #include "confdefs.h"
14657 /* Thanks to Mike Rendell for this test.  */
14658 #include <sys/types.h>
14659 #define NGID 256
14660 #undef MAX
14661 #define MAX(x, y) ((x) > (y) ? (x) : (y))
14662
14663 int
14664 main ()
14665 {
14666   gid_t gidset[NGID];
14667   int i, n;
14668   union { gid_t gval; long lval; }  val;
14669
14670   val.lval = -1;
14671   for (i = 0; i < NGID; i++)
14672     gidset[i] = val.gval;
14673   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
14674                  gidset);
14675   /* Exit non-zero if getgroups seems to require an array of ints.  This
14676      happens when gid_t is short but getgroups modifies an array of ints.  */
14677   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
14678 }
14679 _ACEOF
14680 rm -f conftest$ac_exeext
14681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14682   (eval $ac_link) 2>&5
14683   ac_status=$?
14684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687   (eval $ac_try) 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); }; }; then
14691   ac_cv_type_getgroups=gid_t
14692 else
14693   echo "$as_me: program exited with status $ac_status" >&5
14694 echo "$as_me: failed program was:" >&5
14695 cat conftest.$ac_ext >&5
14696 ( exit $ac_status )
14697 ac_cv_type_getgroups=int
14698 fi
14699 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14700 fi
14701 if test $ac_cv_type_getgroups = cross; then
14702         cat >conftest.$ac_ext <<_ACEOF
14703 #line $LINENO "configure"
14704 #include "confdefs.h"
14705 #include <unistd.h>
14706
14707 _ACEOF
14708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14709   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
14710   ac_cv_type_getgroups=gid_t
14711 else
14712   ac_cv_type_getgroups=int
14713 fi
14714 rm -f conftest*
14715
14716 fi
14717 fi
14718 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
14719 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
14720
14721 cat >>confdefs.h <<_ACEOF
14722 #define GETGROUPS_T $ac_cv_type_getgroups
14723 _ACEOF
14724
14725
14726 echo "$as_me:$LINENO: checking for off_t" >&5
14727 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14728 if test "${ac_cv_type_off_t+set}" = set; then
14729   echo $ECHO_N "(cached) $ECHO_C" >&6
14730 else
14731   cat >conftest.$ac_ext <<_ACEOF
14732 #line $LINENO "configure"
14733 #include "confdefs.h"
14734 $ac_includes_default
14735 #ifdef F77_DUMMY_MAIN
14736 #  ifdef __cplusplus
14737      extern "C"
14738 #  endif
14739    int F77_DUMMY_MAIN() { return 1; }
14740 #endif
14741 int
14742 main ()
14743 {
14744 if ((off_t *) 0)
14745   return 0;
14746 if (sizeof (off_t))
14747   return 0;
14748   ;
14749   return 0;
14750 }
14751 _ACEOF
14752 rm -f conftest.$ac_objext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14754   (eval $ac_compile) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); } &&
14758          { ac_try='test -s conftest.$ac_objext'
14759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760   (eval $ac_try) 2>&5
14761   ac_status=$?
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); }; }; then
14764   ac_cv_type_off_t=yes
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 cat conftest.$ac_ext >&5
14768 ac_cv_type_off_t=no
14769 fi
14770 rm -f conftest.$ac_objext conftest.$ac_ext
14771 fi
14772 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14773 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14774 if test $ac_cv_type_off_t = yes; then
14775   :
14776 else
14777
14778 cat >>confdefs.h <<_ACEOF
14779 #define off_t long
14780 _ACEOF
14781
14782 fi
14783
14784 echo "$as_me:$LINENO: checking for mode_t" >&5
14785 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14786 if test "${ac_cv_type_mode_t+set}" = set; then
14787   echo $ECHO_N "(cached) $ECHO_C" >&6
14788 else
14789   cat >conftest.$ac_ext <<_ACEOF
14790 #line $LINENO "configure"
14791 #include "confdefs.h"
14792 $ac_includes_default
14793 #ifdef F77_DUMMY_MAIN
14794 #  ifdef __cplusplus
14795      extern "C"
14796 #  endif
14797    int F77_DUMMY_MAIN() { return 1; }
14798 #endif
14799 int
14800 main ()
14801 {
14802 if ((mode_t *) 0)
14803   return 0;
14804 if (sizeof (mode_t))
14805   return 0;
14806   ;
14807   return 0;
14808 }
14809 _ACEOF
14810 rm -f conftest.$ac_objext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812   (eval $ac_compile) 2>&5
14813   ac_status=$?
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); } &&
14816          { ac_try='test -s conftest.$ac_objext'
14817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818   (eval $ac_try) 2>&5
14819   ac_status=$?
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); }; }; then
14822   ac_cv_type_mode_t=yes
14823 else
14824   echo "$as_me: failed program was:" >&5
14825 cat conftest.$ac_ext >&5
14826 ac_cv_type_mode_t=no
14827 fi
14828 rm -f conftest.$ac_objext conftest.$ac_ext
14829 fi
14830 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14831 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14832 if test $ac_cv_type_mode_t = yes; then
14833   :
14834 else
14835
14836 cat >>confdefs.h <<_ACEOF
14837 #define mode_t int
14838 _ACEOF
14839
14840 fi
14841
14842 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14843 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
14844 if test "${ac_cv_type_uid_t+set}" = set; then
14845   echo $ECHO_N "(cached) $ECHO_C" >&6
14846 else
14847   cat >conftest.$ac_ext <<_ACEOF
14848 #line $LINENO "configure"
14849 #include "confdefs.h"
14850 #include <sys/types.h>
14851
14852 _ACEOF
14853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14854   egrep "uid_t" >/dev/null 2>&1; then
14855   ac_cv_type_uid_t=yes
14856 else
14857   ac_cv_type_uid_t=no
14858 fi
14859 rm -f conftest*
14860
14861 fi
14862 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14863 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
14864 if test $ac_cv_type_uid_t = no; then
14865
14866 cat >>confdefs.h <<\_ACEOF
14867 #define uid_t int
14868 _ACEOF
14869
14870
14871 cat >>confdefs.h <<\_ACEOF
14872 #define gid_t int
14873 _ACEOF
14874
14875 fi
14876
14877 echo "$as_me:$LINENO: checking for pid_t" >&5
14878 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14879 if test "${ac_cv_type_pid_t+set}" = set; then
14880   echo $ECHO_N "(cached) $ECHO_C" >&6
14881 else
14882   cat >conftest.$ac_ext <<_ACEOF
14883 #line $LINENO "configure"
14884 #include "confdefs.h"
14885 $ac_includes_default
14886 #ifdef F77_DUMMY_MAIN
14887 #  ifdef __cplusplus
14888      extern "C"
14889 #  endif
14890    int F77_DUMMY_MAIN() { return 1; }
14891 #endif
14892 int
14893 main ()
14894 {
14895 if ((pid_t *) 0)
14896   return 0;
14897 if (sizeof (pid_t))
14898   return 0;
14899   ;
14900   return 0;
14901 }
14902 _ACEOF
14903 rm -f conftest.$ac_objext
14904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14905   (eval $ac_compile) 2>&5
14906   ac_status=$?
14907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908   (exit $ac_status); } &&
14909          { ac_try='test -s conftest.$ac_objext'
14910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911   (eval $ac_try) 2>&5
14912   ac_status=$?
14913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); }; }; then
14915   ac_cv_type_pid_t=yes
14916 else
14917   echo "$as_me: failed program was:" >&5
14918 cat conftest.$ac_ext >&5
14919 ac_cv_type_pid_t=no
14920 fi
14921 rm -f conftest.$ac_objext conftest.$ac_ext
14922 fi
14923 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14924 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14925 if test $ac_cv_type_pid_t = yes; then
14926   :
14927 else
14928
14929 cat >>confdefs.h <<_ACEOF
14930 #define pid_t int
14931 _ACEOF
14932
14933 fi
14934
14935 echo "$as_me:$LINENO: checking for size_t" >&5
14936 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14937 if test "${ac_cv_type_size_t+set}" = set; then
14938   echo $ECHO_N "(cached) $ECHO_C" >&6
14939 else
14940   cat >conftest.$ac_ext <<_ACEOF
14941 #line $LINENO "configure"
14942 #include "confdefs.h"
14943 $ac_includes_default
14944 #ifdef F77_DUMMY_MAIN
14945 #  ifdef __cplusplus
14946      extern "C"
14947 #  endif
14948    int F77_DUMMY_MAIN() { return 1; }
14949 #endif
14950 int
14951 main ()
14952 {
14953 if ((size_t *) 0)
14954   return 0;
14955 if (sizeof (size_t))
14956   return 0;
14957   ;
14958   return 0;
14959 }
14960 _ACEOF
14961 rm -f conftest.$ac_objext
14962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14963   (eval $ac_compile) 2>&5
14964   ac_status=$?
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); } &&
14967          { ac_try='test -s conftest.$ac_objext'
14968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969   (eval $ac_try) 2>&5
14970   ac_status=$?
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); }; }; then
14973   ac_cv_type_size_t=yes
14974 else
14975   echo "$as_me: failed program was:" >&5
14976 cat conftest.$ac_ext >&5
14977 ac_cv_type_size_t=no
14978 fi
14979 rm -f conftest.$ac_objext conftest.$ac_ext
14980 fi
14981 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14982 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14983 if test $ac_cv_type_size_t = yes; then
14984   :
14985 else
14986
14987 cat >>confdefs.h <<_ACEOF
14988 #define size_t unsigned
14989 _ACEOF
14990
14991 fi
14992
14993 echo "$as_me:$LINENO: checking for ssize_t" >&5
14994 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14995 if test "${ac_cv_type_ssize_t+set}" = set; then
14996   echo $ECHO_N "(cached) $ECHO_C" >&6
14997 else
14998   cat >conftest.$ac_ext <<_ACEOF
14999 #line $LINENO "configure"
15000 #include "confdefs.h"
15001 $ac_includes_default
15002 #ifdef F77_DUMMY_MAIN
15003 #  ifdef __cplusplus
15004      extern "C"
15005 #  endif
15006    int F77_DUMMY_MAIN() { return 1; }
15007 #endif
15008 int
15009 main ()
15010 {
15011 if ((ssize_t *) 0)
15012   return 0;
15013 if (sizeof (ssize_t))
15014   return 0;
15015   ;
15016   return 0;
15017 }
15018 _ACEOF
15019 rm -f conftest.$ac_objext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15021   (eval $ac_compile) 2>&5
15022   ac_status=$?
15023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); } &&
15025          { ac_try='test -s conftest.$ac_objext'
15026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027   (eval $ac_try) 2>&5
15028   ac_status=$?
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); }; }; then
15031   ac_cv_type_ssize_t=yes
15032 else
15033   echo "$as_me: failed program was:" >&5
15034 cat conftest.$ac_ext >&5
15035 ac_cv_type_ssize_t=no
15036 fi
15037 rm -f conftest.$ac_objext conftest.$ac_ext
15038 fi
15039 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15040 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15041 if test $ac_cv_type_ssize_t = yes; then
15042   :
15043 else
15044
15045 cat >>confdefs.h <<_ACEOF
15046 #define ssize_t int
15047 _ACEOF
15048
15049 fi
15050
15051 echo "$as_me:$LINENO: checking for time_t" >&5
15052 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
15053 if test "${ac_cv_type_time_t+set}" = set; then
15054   echo $ECHO_N "(cached) $ECHO_C" >&6
15055 else
15056   cat >conftest.$ac_ext <<_ACEOF
15057 #line $LINENO "configure"
15058 #include "confdefs.h"
15059 $ac_includes_default
15060 #ifdef F77_DUMMY_MAIN
15061 #  ifdef __cplusplus
15062      extern "C"
15063 #  endif
15064    int F77_DUMMY_MAIN() { return 1; }
15065 #endif
15066 int
15067 main ()
15068 {
15069 if ((time_t *) 0)
15070   return 0;
15071 if (sizeof (time_t))
15072   return 0;
15073   ;
15074   return 0;
15075 }
15076 _ACEOF
15077 rm -f conftest.$ac_objext
15078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15079   (eval $ac_compile) 2>&5
15080   ac_status=$?
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); } &&
15083          { ac_try='test -s conftest.$ac_objext'
15084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085   (eval $ac_try) 2>&5
15086   ac_status=$?
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); }; }; then
15089   ac_cv_type_time_t=yes
15090 else
15091   echo "$as_me: failed program was:" >&5
15092 cat conftest.$ac_ext >&5
15093 ac_cv_type_time_t=no
15094 fi
15095 rm -f conftest.$ac_objext conftest.$ac_ext
15096 fi
15097 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
15098 echo "${ECHO_T}$ac_cv_type_time_t" >&6
15099 if test $ac_cv_type_time_t = yes; then
15100   :
15101 else
15102
15103 cat >>confdefs.h <<_ACEOF
15104 #define time_t long
15105 _ACEOF
15106
15107 fi
15108
15109
15110
15111 echo "$as_me:$LINENO: checking for long long" >&5
15112 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15113 if test "${bash_cv_type_long_long+set}" = set; then
15114   echo $ECHO_N "(cached) $ECHO_C" >&6
15115 else
15116   cat >conftest.$ac_ext <<_ACEOF
15117 #line $LINENO "configure"
15118 #include "confdefs.h"
15119
15120 long long ll = 1; int i = 63;
15121 #ifdef F77_DUMMY_MAIN
15122 #  ifdef __cplusplus
15123      extern "C"
15124 #  endif
15125    int F77_DUMMY_MAIN() { return 1; }
15126 #endif
15127 int
15128 main ()
15129 {
15130
15131 long long llm = (long long) -1;
15132 return ll << i | ll >> i | llm / ll | llm % ll;
15133
15134   ;
15135   return 0;
15136 }
15137 _ACEOF
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15140   (eval $ac_link) 2>&5
15141   ac_status=$?
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); } &&
15144          { ac_try='test -s conftest$ac_exeext'
15145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146   (eval $ac_try) 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); }; }; then
15150   bash_cv_type_long_long='long long'
15151 else
15152   echo "$as_me: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15154 bash_cv_type_long_long='long'
15155 fi
15156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15157 fi
15158 echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
15159 echo "${ECHO_T}$bash_cv_type_long_long" >&6
15160 if test "$bash_cv_type_long_long" = 'long long'; then
15161   cat >>confdefs.h <<\_ACEOF
15162 #define HAVE_LONG_LONG 1
15163 _ACEOF
15164
15165 fi
15166
15167
15168 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15169 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15170 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
15171   echo $ECHO_N "(cached) $ECHO_C" >&6
15172 else
15173   cat >conftest.$ac_ext <<_ACEOF
15174 #line $LINENO "configure"
15175 #include "confdefs.h"
15176
15177 unsigned long long ull = 1; int i = 63;
15178 #ifdef F77_DUMMY_MAIN
15179 #  ifdef __cplusplus
15180      extern "C"
15181 #  endif
15182    int F77_DUMMY_MAIN() { return 1; }
15183 #endif
15184 int
15185 main ()
15186 {
15187
15188 unsigned long long ullmax = (unsigned long long) -1;
15189 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15190
15191   ;
15192   return 0;
15193 }
15194 _ACEOF
15195 rm -f conftest.$ac_objext conftest$ac_exeext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15197   (eval $ac_link) 2>&5
15198   ac_status=$?
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); } &&
15201          { ac_try='test -s conftest$ac_exeext'
15202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203   (eval $ac_try) 2>&5
15204   ac_status=$?
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); }; }; then
15207   bash_cv_type_unsigned_long_long='unsigned long long'
15208 else
15209   echo "$as_me: failed program was:" >&5
15210 cat conftest.$ac_ext >&5
15211 bash_cv_type_unsigned_long_long='unsigned long'
15212 fi
15213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15214 fi
15215 echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
15216 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
15217 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
15218   cat >>confdefs.h <<\_ACEOF
15219 #define HAVE_UNSIGNED_LONG_LONG 1
15220 _ACEOF
15221
15222 fi
15223
15224
15225 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15226 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15227 if test "${ac_cv_type_signal+set}" = set; then
15228   echo $ECHO_N "(cached) $ECHO_C" >&6
15229 else
15230   cat >conftest.$ac_ext <<_ACEOF
15231 #line $LINENO "configure"
15232 #include "confdefs.h"
15233 #include <sys/types.h>
15234 #include <signal.h>
15235 #ifdef signal
15236 # undef signal
15237 #endif
15238 #ifdef __cplusplus
15239 extern "C" void (*signal (int, void (*)(int)))(int);
15240 #else
15241 void (*signal ()) ();
15242 #endif
15243
15244 #ifdef F77_DUMMY_MAIN
15245 #  ifdef __cplusplus
15246      extern "C"
15247 #  endif
15248    int F77_DUMMY_MAIN() { return 1; }
15249 #endif
15250 int
15251 main ()
15252 {
15253 int i;
15254   ;
15255   return 0;
15256 }
15257 _ACEOF
15258 rm -f conftest.$ac_objext
15259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15260   (eval $ac_compile) 2>&5
15261   ac_status=$?
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); } &&
15264          { ac_try='test -s conftest.$ac_objext'
15265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266   (eval $ac_try) 2>&5
15267   ac_status=$?
15268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); }; }; then
15270   ac_cv_type_signal=void
15271 else
15272   echo "$as_me: failed program was:" >&5
15273 cat conftest.$ac_ext >&5
15274 ac_cv_type_signal=int
15275 fi
15276 rm -f conftest.$ac_objext conftest.$ac_ext
15277 fi
15278 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15279 echo "${ECHO_T}$ac_cv_type_signal" >&6
15280
15281 cat >>confdefs.h <<_ACEOF
15282 #define RETSIGTYPE $ac_cv_type_signal
15283 _ACEOF
15284
15285
15286
15287 echo "$as_me:$LINENO: checking for char" >&5
15288 echo $ECHO_N "checking for char... $ECHO_C" >&6
15289 if test "${ac_cv_type_char+set}" = set; then
15290   echo $ECHO_N "(cached) $ECHO_C" >&6
15291 else
15292   cat >conftest.$ac_ext <<_ACEOF
15293 #line $LINENO "configure"
15294 #include "confdefs.h"
15295 $ac_includes_default
15296 #ifdef F77_DUMMY_MAIN
15297 #  ifdef __cplusplus
15298      extern "C"
15299 #  endif
15300    int F77_DUMMY_MAIN() { return 1; }
15301 #endif
15302 int
15303 main ()
15304 {
15305 if ((char *) 0)
15306   return 0;
15307 if (sizeof (char))
15308   return 0;
15309   ;
15310   return 0;
15311 }
15312 _ACEOF
15313 rm -f conftest.$ac_objext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15315   (eval $ac_compile) 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); } &&
15319          { ac_try='test -s conftest.$ac_objext'
15320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321   (eval $ac_try) 2>&5
15322   ac_status=$?
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); }; }; then
15325   ac_cv_type_char=yes
15326 else
15327   echo "$as_me: failed program was:" >&5
15328 cat conftest.$ac_ext >&5
15329 ac_cv_type_char=no
15330 fi
15331 rm -f conftest.$ac_objext conftest.$ac_ext
15332 fi
15333 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15334 echo "${ECHO_T}$ac_cv_type_char" >&6
15335
15336 echo "$as_me:$LINENO: checking size of char" >&5
15337 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15338 if test "${ac_cv_sizeof_char+set}" = set; then
15339   echo $ECHO_N "(cached) $ECHO_C" >&6
15340 else
15341   if test "$ac_cv_type_char" = yes; then
15342   # The cast to unsigned long works around a bug in the HP C Compiler
15343   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15344   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15345   # This bug is HP SR number 8606223364.
15346   if test "$cross_compiling" = yes; then
15347   # Depending upon the size, compute the lo and hi bounds.
15348 cat >conftest.$ac_ext <<_ACEOF
15349 #line $LINENO "configure"
15350 #include "confdefs.h"
15351 $ac_includes_default
15352 #ifdef F77_DUMMY_MAIN
15353 #  ifdef __cplusplus
15354      extern "C"
15355 #  endif
15356    int F77_DUMMY_MAIN() { return 1; }
15357 #endif
15358 int
15359 main ()
15360 {
15361 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15362 test_array [0] = 0
15363
15364   ;
15365   return 0;
15366 }
15367 _ACEOF
15368 rm -f conftest.$ac_objext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15370   (eval $ac_compile) 2>&5
15371   ac_status=$?
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); } &&
15374          { ac_try='test -s conftest.$ac_objext'
15375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376   (eval $ac_try) 2>&5
15377   ac_status=$?
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); }; }; then
15380   ac_lo=0 ac_mid=0
15381   while :; do
15382     cat >conftest.$ac_ext <<_ACEOF
15383 #line $LINENO "configure"
15384 #include "confdefs.h"
15385 $ac_includes_default
15386 #ifdef F77_DUMMY_MAIN
15387 #  ifdef __cplusplus
15388      extern "C"
15389 #  endif
15390    int F77_DUMMY_MAIN() { return 1; }
15391 #endif
15392 int
15393 main ()
15394 {
15395 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15396 test_array [0] = 0
15397
15398   ;
15399   return 0;
15400 }
15401 _ACEOF
15402 rm -f conftest.$ac_objext
15403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15404   (eval $ac_compile) 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); } &&
15408          { ac_try='test -s conftest.$ac_objext'
15409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410   (eval $ac_try) 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; }; then
15414   ac_hi=$ac_mid; break
15415 else
15416   echo "$as_me: failed program was:" >&5
15417 cat conftest.$ac_ext >&5
15418 ac_lo=`expr $ac_mid + 1`
15419                     if test $ac_lo -le $ac_mid; then
15420                       ac_lo= ac_hi=
15421                       break
15422                     fi
15423                     ac_mid=`expr 2 '*' $ac_mid + 1`
15424 fi
15425 rm -f conftest.$ac_objext conftest.$ac_ext
15426   done
15427 else
15428   echo "$as_me: failed program was:" >&5
15429 cat conftest.$ac_ext >&5
15430 cat >conftest.$ac_ext <<_ACEOF
15431 #line $LINENO "configure"
15432 #include "confdefs.h"
15433 $ac_includes_default
15434 #ifdef F77_DUMMY_MAIN
15435 #  ifdef __cplusplus
15436      extern "C"
15437 #  endif
15438    int F77_DUMMY_MAIN() { return 1; }
15439 #endif
15440 int
15441 main ()
15442 {
15443 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15444 test_array [0] = 0
15445
15446   ;
15447   return 0;
15448 }
15449 _ACEOF
15450 rm -f conftest.$ac_objext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15452   (eval $ac_compile) 2>&5
15453   ac_status=$?
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); } &&
15456          { ac_try='test -s conftest.$ac_objext'
15457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458   (eval $ac_try) 2>&5
15459   ac_status=$?
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); }; }; then
15462   ac_hi=-1 ac_mid=-1
15463   while :; do
15464     cat >conftest.$ac_ext <<_ACEOF
15465 #line $LINENO "configure"
15466 #include "confdefs.h"
15467 $ac_includes_default
15468 #ifdef F77_DUMMY_MAIN
15469 #  ifdef __cplusplus
15470      extern "C"
15471 #  endif
15472    int F77_DUMMY_MAIN() { return 1; }
15473 #endif
15474 int
15475 main ()
15476 {
15477 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15478 test_array [0] = 0
15479
15480   ;
15481   return 0;
15482 }
15483 _ACEOF
15484 rm -f conftest.$ac_objext
15485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15486   (eval $ac_compile) 2>&5
15487   ac_status=$?
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); } &&
15490          { ac_try='test -s conftest.$ac_objext'
15491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492   (eval $ac_try) 2>&5
15493   ac_status=$?
15494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495   (exit $ac_status); }; }; then
15496   ac_lo=$ac_mid; break
15497 else
15498   echo "$as_me: failed program was:" >&5
15499 cat conftest.$ac_ext >&5
15500 ac_hi=`expr '(' $ac_mid ')' - 1`
15501                        if test $ac_mid -le $ac_hi; then
15502                          ac_lo= ac_hi=
15503                          break
15504                        fi
15505                        ac_mid=`expr 2 '*' $ac_mid`
15506 fi
15507 rm -f conftest.$ac_objext conftest.$ac_ext
15508   done
15509 else
15510   echo "$as_me: failed program was:" >&5
15511 cat conftest.$ac_ext >&5
15512 ac_lo= ac_hi=
15513 fi
15514 rm -f conftest.$ac_objext conftest.$ac_ext
15515 fi
15516 rm -f conftest.$ac_objext conftest.$ac_ext
15517 # Binary search between lo and hi bounds.
15518 while test "x$ac_lo" != "x$ac_hi"; do
15519   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15520   cat >conftest.$ac_ext <<_ACEOF
15521 #line $LINENO "configure"
15522 #include "confdefs.h"
15523 $ac_includes_default
15524 #ifdef F77_DUMMY_MAIN
15525 #  ifdef __cplusplus
15526      extern "C"
15527 #  endif
15528    int F77_DUMMY_MAIN() { return 1; }
15529 #endif
15530 int
15531 main ()
15532 {
15533 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15534 test_array [0] = 0
15535
15536   ;
15537   return 0;
15538 }
15539 _ACEOF
15540 rm -f conftest.$ac_objext
15541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15542   (eval $ac_compile) 2>&5
15543   ac_status=$?
15544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   (exit $ac_status); } &&
15546          { ac_try='test -s conftest.$ac_objext'
15547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548   (eval $ac_try) 2>&5
15549   ac_status=$?
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); }; }; then
15552   ac_hi=$ac_mid
15553 else
15554   echo "$as_me: failed program was:" >&5
15555 cat conftest.$ac_ext >&5
15556 ac_lo=`expr '(' $ac_mid ')' + 1`
15557 fi
15558 rm -f conftest.$ac_objext conftest.$ac_ext
15559 done
15560 case $ac_lo in
15561 ?*) ac_cv_sizeof_char=$ac_lo;;
15562 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
15563 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
15564    { (exit 1); exit 1; }; } ;;
15565 esac
15566 else
15567   if test "$cross_compiling" = yes; then
15568   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15569 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15570    { (exit 1); exit 1; }; }
15571 else
15572   cat >conftest.$ac_ext <<_ACEOF
15573 #line $LINENO "configure"
15574 #include "confdefs.h"
15575 $ac_includes_default
15576 long longval () { return (long) (sizeof (char)); }
15577 unsigned long ulongval () { return (long) (sizeof (char)); }
15578 #include <stdio.h>
15579 #include <stdlib.h>
15580 #ifdef F77_DUMMY_MAIN
15581 #  ifdef __cplusplus
15582      extern "C"
15583 #  endif
15584    int F77_DUMMY_MAIN() { return 1; }
15585 #endif
15586 int
15587 main ()
15588 {
15589
15590   FILE *f = fopen ("conftest.val", "w");
15591   if (! f)
15592     exit (1);
15593   if (((long) (sizeof (char))) < 0)
15594     {
15595       long i = longval ();
15596       if (i != ((long) (sizeof (char))))
15597         exit (1);
15598       fprintf (f, "%ld\n", i);
15599     }
15600   else
15601     {
15602       unsigned long i = ulongval ();
15603       if (i != ((long) (sizeof (char))))
15604         exit (1);
15605       fprintf (f, "%lu\n", i);
15606     }
15607   exit (ferror (f) || fclose (f) != 0);
15608
15609   ;
15610   return 0;
15611 }
15612 _ACEOF
15613 rm -f conftest$ac_exeext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15615   (eval $ac_link) 2>&5
15616   ac_status=$?
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620   (eval $ac_try) 2>&5
15621   ac_status=$?
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); }; }; then
15624   ac_cv_sizeof_char=`cat conftest.val`
15625 else
15626   echo "$as_me: program exited with status $ac_status" >&5
15627 echo "$as_me: failed program was:" >&5
15628 cat conftest.$ac_ext >&5
15629 ( exit $ac_status )
15630 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
15631 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
15632    { (exit 1); exit 1; }; }
15633 fi
15634 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15635 fi
15636 fi
15637 rm -f conftest.val
15638 else
15639   ac_cv_sizeof_char=0
15640 fi
15641 fi
15642 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15643 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15644 cat >>confdefs.h <<_ACEOF
15645 #define SIZEOF_CHAR $ac_cv_sizeof_char
15646 _ACEOF
15647
15648
15649 echo "$as_me:$LINENO: checking for short" >&5
15650 echo $ECHO_N "checking for short... $ECHO_C" >&6
15651 if test "${ac_cv_type_short+set}" = set; then
15652   echo $ECHO_N "(cached) $ECHO_C" >&6
15653 else
15654   cat >conftest.$ac_ext <<_ACEOF
15655 #line $LINENO "configure"
15656 #include "confdefs.h"
15657 $ac_includes_default
15658 #ifdef F77_DUMMY_MAIN
15659 #  ifdef __cplusplus
15660      extern "C"
15661 #  endif
15662    int F77_DUMMY_MAIN() { return 1; }
15663 #endif
15664 int
15665 main ()
15666 {
15667 if ((short *) 0)
15668   return 0;
15669 if (sizeof (short))
15670   return 0;
15671   ;
15672   return 0;
15673 }
15674 _ACEOF
15675 rm -f conftest.$ac_objext
15676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15677   (eval $ac_compile) 2>&5
15678   ac_status=$?
15679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680   (exit $ac_status); } &&
15681          { ac_try='test -s conftest.$ac_objext'
15682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683   (eval $ac_try) 2>&5
15684   ac_status=$?
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); }; }; then
15687   ac_cv_type_short=yes
15688 else
15689   echo "$as_me: failed program was:" >&5
15690 cat conftest.$ac_ext >&5
15691 ac_cv_type_short=no
15692 fi
15693 rm -f conftest.$ac_objext conftest.$ac_ext
15694 fi
15695 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15696 echo "${ECHO_T}$ac_cv_type_short" >&6
15697
15698 echo "$as_me:$LINENO: checking size of short" >&5
15699 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15700 if test "${ac_cv_sizeof_short+set}" = set; then
15701   echo $ECHO_N "(cached) $ECHO_C" >&6
15702 else
15703   if test "$ac_cv_type_short" = yes; then
15704   # The cast to unsigned long works around a bug in the HP C Compiler
15705   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15706   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15707   # This bug is HP SR number 8606223364.
15708   if test "$cross_compiling" = yes; then
15709   # Depending upon the size, compute the lo and hi bounds.
15710 cat >conftest.$ac_ext <<_ACEOF
15711 #line $LINENO "configure"
15712 #include "confdefs.h"
15713 $ac_includes_default
15714 #ifdef F77_DUMMY_MAIN
15715 #  ifdef __cplusplus
15716      extern "C"
15717 #  endif
15718    int F77_DUMMY_MAIN() { return 1; }
15719 #endif
15720 int
15721 main ()
15722 {
15723 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15724 test_array [0] = 0
15725
15726   ;
15727   return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15732   (eval $ac_compile) 2>&5
15733   ac_status=$?
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); } &&
15736          { ac_try='test -s conftest.$ac_objext'
15737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738   (eval $ac_try) 2>&5
15739   ac_status=$?
15740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); }; }; then
15742   ac_lo=0 ac_mid=0
15743   while :; do
15744     cat >conftest.$ac_ext <<_ACEOF
15745 #line $LINENO "configure"
15746 #include "confdefs.h"
15747 $ac_includes_default
15748 #ifdef F77_DUMMY_MAIN
15749 #  ifdef __cplusplus
15750      extern "C"
15751 #  endif
15752    int F77_DUMMY_MAIN() { return 1; }
15753 #endif
15754 int
15755 main ()
15756 {
15757 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15758 test_array [0] = 0
15759
15760   ;
15761   return 0;
15762 }
15763 _ACEOF
15764 rm -f conftest.$ac_objext
15765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15766   (eval $ac_compile) 2>&5
15767   ac_status=$?
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); } &&
15770          { ac_try='test -s conftest.$ac_objext'
15771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772   (eval $ac_try) 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); }; }; then
15776   ac_hi=$ac_mid; break
15777 else
15778   echo "$as_me: failed program was:" >&5
15779 cat conftest.$ac_ext >&5
15780 ac_lo=`expr $ac_mid + 1`
15781                     if test $ac_lo -le $ac_mid; then
15782                       ac_lo= ac_hi=
15783                       break
15784                     fi
15785                     ac_mid=`expr 2 '*' $ac_mid + 1`
15786 fi
15787 rm -f conftest.$ac_objext conftest.$ac_ext
15788   done
15789 else
15790   echo "$as_me: failed program was:" >&5
15791 cat conftest.$ac_ext >&5
15792 cat >conftest.$ac_ext <<_ACEOF
15793 #line $LINENO "configure"
15794 #include "confdefs.h"
15795 $ac_includes_default
15796 #ifdef F77_DUMMY_MAIN
15797 #  ifdef __cplusplus
15798      extern "C"
15799 #  endif
15800    int F77_DUMMY_MAIN() { return 1; }
15801 #endif
15802 int
15803 main ()
15804 {
15805 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15806 test_array [0] = 0
15807
15808   ;
15809   return 0;
15810 }
15811 _ACEOF
15812 rm -f conftest.$ac_objext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15814   (eval $ac_compile) 2>&5
15815   ac_status=$?
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); } &&
15818          { ac_try='test -s conftest.$ac_objext'
15819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820   (eval $ac_try) 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); }; }; then
15824   ac_hi=-1 ac_mid=-1
15825   while :; do
15826     cat >conftest.$ac_ext <<_ACEOF
15827 #line $LINENO "configure"
15828 #include "confdefs.h"
15829 $ac_includes_default
15830 #ifdef F77_DUMMY_MAIN
15831 #  ifdef __cplusplus
15832      extern "C"
15833 #  endif
15834    int F77_DUMMY_MAIN() { return 1; }
15835 #endif
15836 int
15837 main ()
15838 {
15839 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15840 test_array [0] = 0
15841
15842   ;
15843   return 0;
15844 }
15845 _ACEOF
15846 rm -f conftest.$ac_objext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15848   (eval $ac_compile) 2>&5
15849   ac_status=$?
15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); } &&
15852          { ac_try='test -s conftest.$ac_objext'
15853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854   (eval $ac_try) 2>&5
15855   ac_status=$?
15856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857   (exit $ac_status); }; }; then
15858   ac_lo=$ac_mid; break
15859 else
15860   echo "$as_me: failed program was:" >&5
15861 cat conftest.$ac_ext >&5
15862 ac_hi=`expr '(' $ac_mid ')' - 1`
15863                        if test $ac_mid -le $ac_hi; then
15864                          ac_lo= ac_hi=
15865                          break
15866                        fi
15867                        ac_mid=`expr 2 '*' $ac_mid`
15868 fi
15869 rm -f conftest.$ac_objext conftest.$ac_ext
15870   done
15871 else
15872   echo "$as_me: failed program was:" >&5
15873 cat conftest.$ac_ext >&5
15874 ac_lo= ac_hi=
15875 fi
15876 rm -f conftest.$ac_objext conftest.$ac_ext
15877 fi
15878 rm -f conftest.$ac_objext conftest.$ac_ext
15879 # Binary search between lo and hi bounds.
15880 while test "x$ac_lo" != "x$ac_hi"; do
15881   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15882   cat >conftest.$ac_ext <<_ACEOF
15883 #line $LINENO "configure"
15884 #include "confdefs.h"
15885 $ac_includes_default
15886 #ifdef F77_DUMMY_MAIN
15887 #  ifdef __cplusplus
15888      extern "C"
15889 #  endif
15890    int F77_DUMMY_MAIN() { return 1; }
15891 #endif
15892 int
15893 main ()
15894 {
15895 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15896 test_array [0] = 0
15897
15898   ;
15899   return 0;
15900 }
15901 _ACEOF
15902 rm -f conftest.$ac_objext
15903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15904   (eval $ac_compile) 2>&5
15905   ac_status=$?
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); } &&
15908          { ac_try='test -s conftest.$ac_objext'
15909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910   (eval $ac_try) 2>&5
15911   ac_status=$?
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); }; }; then
15914   ac_hi=$ac_mid
15915 else
15916   echo "$as_me: failed program was:" >&5
15917 cat conftest.$ac_ext >&5
15918 ac_lo=`expr '(' $ac_mid ')' + 1`
15919 fi
15920 rm -f conftest.$ac_objext conftest.$ac_ext
15921 done
15922 case $ac_lo in
15923 ?*) ac_cv_sizeof_short=$ac_lo;;
15924 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
15925 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
15926    { (exit 1); exit 1; }; } ;;
15927 esac
15928 else
15929   if test "$cross_compiling" = yes; then
15930   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15931 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15932    { (exit 1); exit 1; }; }
15933 else
15934   cat >conftest.$ac_ext <<_ACEOF
15935 #line $LINENO "configure"
15936 #include "confdefs.h"
15937 $ac_includes_default
15938 long longval () { return (long) (sizeof (short)); }
15939 unsigned long ulongval () { return (long) (sizeof (short)); }
15940 #include <stdio.h>
15941 #include <stdlib.h>
15942 #ifdef F77_DUMMY_MAIN
15943 #  ifdef __cplusplus
15944      extern "C"
15945 #  endif
15946    int F77_DUMMY_MAIN() { return 1; }
15947 #endif
15948 int
15949 main ()
15950 {
15951
15952   FILE *f = fopen ("conftest.val", "w");
15953   if (! f)
15954     exit (1);
15955   if (((long) (sizeof (short))) < 0)
15956     {
15957       long i = longval ();
15958       if (i != ((long) (sizeof (short))))
15959         exit (1);
15960       fprintf (f, "%ld\n", i);
15961     }
15962   else
15963     {
15964       unsigned long i = ulongval ();
15965       if (i != ((long) (sizeof (short))))
15966         exit (1);
15967       fprintf (f, "%lu\n", i);
15968     }
15969   exit (ferror (f) || fclose (f) != 0);
15970
15971   ;
15972   return 0;
15973 }
15974 _ACEOF
15975 rm -f conftest$ac_exeext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15977   (eval $ac_link) 2>&5
15978   ac_status=$?
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982   (eval $ac_try) 2>&5
15983   ac_status=$?
15984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); }; }; then
15986   ac_cv_sizeof_short=`cat conftest.val`
15987 else
15988   echo "$as_me: program exited with status $ac_status" >&5
15989 echo "$as_me: failed program was:" >&5
15990 cat conftest.$ac_ext >&5
15991 ( exit $ac_status )
15992 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
15993 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
15994    { (exit 1); exit 1; }; }
15995 fi
15996 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15997 fi
15998 fi
15999 rm -f conftest.val
16000 else
16001   ac_cv_sizeof_short=0
16002 fi
16003 fi
16004 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16005 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16006 cat >>confdefs.h <<_ACEOF
16007 #define SIZEOF_SHORT $ac_cv_sizeof_short
16008 _ACEOF
16009
16010
16011 echo "$as_me:$LINENO: checking for int" >&5
16012 echo $ECHO_N "checking for int... $ECHO_C" >&6
16013 if test "${ac_cv_type_int+set}" = set; then
16014   echo $ECHO_N "(cached) $ECHO_C" >&6
16015 else
16016   cat >conftest.$ac_ext <<_ACEOF
16017 #line $LINENO "configure"
16018 #include "confdefs.h"
16019 $ac_includes_default
16020 #ifdef F77_DUMMY_MAIN
16021 #  ifdef __cplusplus
16022      extern "C"
16023 #  endif
16024    int F77_DUMMY_MAIN() { return 1; }
16025 #endif
16026 int
16027 main ()
16028 {
16029 if ((int *) 0)
16030   return 0;
16031 if (sizeof (int))
16032   return 0;
16033   ;
16034   return 0;
16035 }
16036 _ACEOF
16037 rm -f conftest.$ac_objext
16038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16039   (eval $ac_compile) 2>&5
16040   ac_status=$?
16041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042   (exit $ac_status); } &&
16043          { ac_try='test -s conftest.$ac_objext'
16044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045   (eval $ac_try) 2>&5
16046   ac_status=$?
16047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048   (exit $ac_status); }; }; then
16049   ac_cv_type_int=yes
16050 else
16051   echo "$as_me: failed program was:" >&5
16052 cat conftest.$ac_ext >&5
16053 ac_cv_type_int=no
16054 fi
16055 rm -f conftest.$ac_objext conftest.$ac_ext
16056 fi
16057 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16058 echo "${ECHO_T}$ac_cv_type_int" >&6
16059
16060 echo "$as_me:$LINENO: checking size of int" >&5
16061 echo $ECHO_N "checking size of int... $ECHO_C" >&6
16062 if test "${ac_cv_sizeof_int+set}" = set; then
16063   echo $ECHO_N "(cached) $ECHO_C" >&6
16064 else
16065   if test "$ac_cv_type_int" = yes; then
16066   # The cast to unsigned long works around a bug in the HP C Compiler
16067   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16068   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16069   # This bug is HP SR number 8606223364.
16070   if test "$cross_compiling" = yes; then
16071   # Depending upon the size, compute the lo and hi bounds.
16072 cat >conftest.$ac_ext <<_ACEOF
16073 #line $LINENO "configure"
16074 #include "confdefs.h"
16075 $ac_includes_default
16076 #ifdef F77_DUMMY_MAIN
16077 #  ifdef __cplusplus
16078      extern "C"
16079 #  endif
16080    int F77_DUMMY_MAIN() { return 1; }
16081 #endif
16082 int
16083 main ()
16084 {
16085 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16086 test_array [0] = 0
16087
16088   ;
16089   return 0;
16090 }
16091 _ACEOF
16092 rm -f conftest.$ac_objext
16093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16094   (eval $ac_compile) 2>&5
16095   ac_status=$?
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); } &&
16098          { ac_try='test -s conftest.$ac_objext'
16099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100   (eval $ac_try) 2>&5
16101   ac_status=$?
16102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103   (exit $ac_status); }; }; then
16104   ac_lo=0 ac_mid=0
16105   while :; do
16106     cat >conftest.$ac_ext <<_ACEOF
16107 #line $LINENO "configure"
16108 #include "confdefs.h"
16109 $ac_includes_default
16110 #ifdef F77_DUMMY_MAIN
16111 #  ifdef __cplusplus
16112      extern "C"
16113 #  endif
16114    int F77_DUMMY_MAIN() { return 1; }
16115 #endif
16116 int
16117 main ()
16118 {
16119 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16120 test_array [0] = 0
16121
16122   ;
16123   return 0;
16124 }
16125 _ACEOF
16126 rm -f conftest.$ac_objext
16127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16128   (eval $ac_compile) 2>&5
16129   ac_status=$?
16130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131   (exit $ac_status); } &&
16132          { ac_try='test -s conftest.$ac_objext'
16133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134   (eval $ac_try) 2>&5
16135   ac_status=$?
16136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137   (exit $ac_status); }; }; then
16138   ac_hi=$ac_mid; break
16139 else
16140   echo "$as_me: failed program was:" >&5
16141 cat conftest.$ac_ext >&5
16142 ac_lo=`expr $ac_mid + 1`
16143                     if test $ac_lo -le $ac_mid; then
16144                       ac_lo= ac_hi=
16145                       break
16146                     fi
16147                     ac_mid=`expr 2 '*' $ac_mid + 1`
16148 fi
16149 rm -f conftest.$ac_objext conftest.$ac_ext
16150   done
16151 else
16152   echo "$as_me: failed program was:" >&5
16153 cat conftest.$ac_ext >&5
16154 cat >conftest.$ac_ext <<_ACEOF
16155 #line $LINENO "configure"
16156 #include "confdefs.h"
16157 $ac_includes_default
16158 #ifdef F77_DUMMY_MAIN
16159 #  ifdef __cplusplus
16160      extern "C"
16161 #  endif
16162    int F77_DUMMY_MAIN() { return 1; }
16163 #endif
16164 int
16165 main ()
16166 {
16167 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16168 test_array [0] = 0
16169
16170   ;
16171   return 0;
16172 }
16173 _ACEOF
16174 rm -f conftest.$ac_objext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16176   (eval $ac_compile) 2>&5
16177   ac_status=$?
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); } &&
16180          { ac_try='test -s conftest.$ac_objext'
16181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182   (eval $ac_try) 2>&5
16183   ac_status=$?
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); }; }; then
16186   ac_hi=-1 ac_mid=-1
16187   while :; do
16188     cat >conftest.$ac_ext <<_ACEOF
16189 #line $LINENO "configure"
16190 #include "confdefs.h"
16191 $ac_includes_default
16192 #ifdef F77_DUMMY_MAIN
16193 #  ifdef __cplusplus
16194      extern "C"
16195 #  endif
16196    int F77_DUMMY_MAIN() { return 1; }
16197 #endif
16198 int
16199 main ()
16200 {
16201 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16202 test_array [0] = 0
16203
16204   ;
16205   return 0;
16206 }
16207 _ACEOF
16208 rm -f conftest.$ac_objext
16209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210   (eval $ac_compile) 2>&5
16211   ac_status=$?
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); } &&
16214          { ac_try='test -s conftest.$ac_objext'
16215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216   (eval $ac_try) 2>&5
16217   ac_status=$?
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); }; }; then
16220   ac_lo=$ac_mid; break
16221 else
16222   echo "$as_me: failed program was:" >&5
16223 cat conftest.$ac_ext >&5
16224 ac_hi=`expr '(' $ac_mid ')' - 1`
16225                        if test $ac_mid -le $ac_hi; then
16226                          ac_lo= ac_hi=
16227                          break
16228                        fi
16229                        ac_mid=`expr 2 '*' $ac_mid`
16230 fi
16231 rm -f conftest.$ac_objext conftest.$ac_ext
16232   done
16233 else
16234   echo "$as_me: failed program was:" >&5
16235 cat conftest.$ac_ext >&5
16236 ac_lo= ac_hi=
16237 fi
16238 rm -f conftest.$ac_objext conftest.$ac_ext
16239 fi
16240 rm -f conftest.$ac_objext conftest.$ac_ext
16241 # Binary search between lo and hi bounds.
16242 while test "x$ac_lo" != "x$ac_hi"; do
16243   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16244   cat >conftest.$ac_ext <<_ACEOF
16245 #line $LINENO "configure"
16246 #include "confdefs.h"
16247 $ac_includes_default
16248 #ifdef F77_DUMMY_MAIN
16249 #  ifdef __cplusplus
16250      extern "C"
16251 #  endif
16252    int F77_DUMMY_MAIN() { return 1; }
16253 #endif
16254 int
16255 main ()
16256 {
16257 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16258 test_array [0] = 0
16259
16260   ;
16261   return 0;
16262 }
16263 _ACEOF
16264 rm -f conftest.$ac_objext
16265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16266   (eval $ac_compile) 2>&5
16267   ac_status=$?
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); } &&
16270          { ac_try='test -s conftest.$ac_objext'
16271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16272   (eval $ac_try) 2>&5
16273   ac_status=$?
16274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275   (exit $ac_status); }; }; then
16276   ac_hi=$ac_mid
16277 else
16278   echo "$as_me: failed program was:" >&5
16279 cat conftest.$ac_ext >&5
16280 ac_lo=`expr '(' $ac_mid ')' + 1`
16281 fi
16282 rm -f conftest.$ac_objext conftest.$ac_ext
16283 done
16284 case $ac_lo in
16285 ?*) ac_cv_sizeof_int=$ac_lo;;
16286 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
16287 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
16288    { (exit 1); exit 1; }; } ;;
16289 esac
16290 else
16291   if test "$cross_compiling" = yes; then
16292   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16293 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16294    { (exit 1); exit 1; }; }
16295 else
16296   cat >conftest.$ac_ext <<_ACEOF
16297 #line $LINENO "configure"
16298 #include "confdefs.h"
16299 $ac_includes_default
16300 long longval () { return (long) (sizeof (int)); }
16301 unsigned long ulongval () { return (long) (sizeof (int)); }
16302 #include <stdio.h>
16303 #include <stdlib.h>
16304 #ifdef F77_DUMMY_MAIN
16305 #  ifdef __cplusplus
16306      extern "C"
16307 #  endif
16308    int F77_DUMMY_MAIN() { return 1; }
16309 #endif
16310 int
16311 main ()
16312 {
16313
16314   FILE *f = fopen ("conftest.val", "w");
16315   if (! f)
16316     exit (1);
16317   if (((long) (sizeof (int))) < 0)
16318     {
16319       long i = longval ();
16320       if (i != ((long) (sizeof (int))))
16321         exit (1);
16322       fprintf (f, "%ld\n", i);
16323     }
16324   else
16325     {
16326       unsigned long i = ulongval ();
16327       if (i != ((long) (sizeof (int))))
16328         exit (1);
16329       fprintf (f, "%lu\n", i);
16330     }
16331   exit (ferror (f) || fclose (f) != 0);
16332
16333   ;
16334   return 0;
16335 }
16336 _ACEOF
16337 rm -f conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339   (eval $ac_link) 2>&5
16340   ac_status=$?
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344   (eval $ac_try) 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); }; }; then
16348   ac_cv_sizeof_int=`cat conftest.val`
16349 else
16350   echo "$as_me: program exited with status $ac_status" >&5
16351 echo "$as_me: failed program was:" >&5
16352 cat conftest.$ac_ext >&5
16353 ( exit $ac_status )
16354 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
16355 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
16356    { (exit 1); exit 1; }; }
16357 fi
16358 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16359 fi
16360 fi
16361 rm -f conftest.val
16362 else
16363   ac_cv_sizeof_int=0
16364 fi
16365 fi
16366 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16367 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16368 cat >>confdefs.h <<_ACEOF
16369 #define SIZEOF_INT $ac_cv_sizeof_int
16370 _ACEOF
16371
16372
16373 echo "$as_me:$LINENO: checking for long" >&5
16374 echo $ECHO_N "checking for long... $ECHO_C" >&6
16375 if test "${ac_cv_type_long+set}" = set; then
16376   echo $ECHO_N "(cached) $ECHO_C" >&6
16377 else
16378   cat >conftest.$ac_ext <<_ACEOF
16379 #line $LINENO "configure"
16380 #include "confdefs.h"
16381 $ac_includes_default
16382 #ifdef F77_DUMMY_MAIN
16383 #  ifdef __cplusplus
16384      extern "C"
16385 #  endif
16386    int F77_DUMMY_MAIN() { return 1; }
16387 #endif
16388 int
16389 main ()
16390 {
16391 if ((long *) 0)
16392   return 0;
16393 if (sizeof (long))
16394   return 0;
16395   ;
16396   return 0;
16397 }
16398 _ACEOF
16399 rm -f conftest.$ac_objext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16401   (eval $ac_compile) 2>&5
16402   ac_status=$?
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); } &&
16405          { ac_try='test -s conftest.$ac_objext'
16406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407   (eval $ac_try) 2>&5
16408   ac_status=$?
16409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410   (exit $ac_status); }; }; then
16411   ac_cv_type_long=yes
16412 else
16413   echo "$as_me: failed program was:" >&5
16414 cat conftest.$ac_ext >&5
16415 ac_cv_type_long=no
16416 fi
16417 rm -f conftest.$ac_objext conftest.$ac_ext
16418 fi
16419 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16420 echo "${ECHO_T}$ac_cv_type_long" >&6
16421
16422 echo "$as_me:$LINENO: checking size of long" >&5
16423 echo $ECHO_N "checking size of long... $ECHO_C" >&6
16424 if test "${ac_cv_sizeof_long+set}" = set; then
16425   echo $ECHO_N "(cached) $ECHO_C" >&6
16426 else
16427   if test "$ac_cv_type_long" = yes; then
16428   # The cast to unsigned long works around a bug in the HP C Compiler
16429   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16430   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16431   # This bug is HP SR number 8606223364.
16432   if test "$cross_compiling" = yes; then
16433   # Depending upon the size, compute the lo and hi bounds.
16434 cat >conftest.$ac_ext <<_ACEOF
16435 #line $LINENO "configure"
16436 #include "confdefs.h"
16437 $ac_includes_default
16438 #ifdef F77_DUMMY_MAIN
16439 #  ifdef __cplusplus
16440      extern "C"
16441 #  endif
16442    int F77_DUMMY_MAIN() { return 1; }
16443 #endif
16444 int
16445 main ()
16446 {
16447 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16448 test_array [0] = 0
16449
16450   ;
16451   return 0;
16452 }
16453 _ACEOF
16454 rm -f conftest.$ac_objext
16455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16456   (eval $ac_compile) 2>&5
16457   ac_status=$?
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); } &&
16460          { ac_try='test -s conftest.$ac_objext'
16461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462   (eval $ac_try) 2>&5
16463   ac_status=$?
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); }; }; then
16466   ac_lo=0 ac_mid=0
16467   while :; do
16468     cat >conftest.$ac_ext <<_ACEOF
16469 #line $LINENO "configure"
16470 #include "confdefs.h"
16471 $ac_includes_default
16472 #ifdef F77_DUMMY_MAIN
16473 #  ifdef __cplusplus
16474      extern "C"
16475 #  endif
16476    int F77_DUMMY_MAIN() { return 1; }
16477 #endif
16478 int
16479 main ()
16480 {
16481 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16482 test_array [0] = 0
16483
16484   ;
16485   return 0;
16486 }
16487 _ACEOF
16488 rm -f conftest.$ac_objext
16489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16490   (eval $ac_compile) 2>&5
16491   ac_status=$?
16492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493   (exit $ac_status); } &&
16494          { ac_try='test -s conftest.$ac_objext'
16495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496   (eval $ac_try) 2>&5
16497   ac_status=$?
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); }; }; then
16500   ac_hi=$ac_mid; break
16501 else
16502   echo "$as_me: failed program was:" >&5
16503 cat conftest.$ac_ext >&5
16504 ac_lo=`expr $ac_mid + 1`
16505                     if test $ac_lo -le $ac_mid; then
16506                       ac_lo= ac_hi=
16507                       break
16508                     fi
16509                     ac_mid=`expr 2 '*' $ac_mid + 1`
16510 fi
16511 rm -f conftest.$ac_objext conftest.$ac_ext
16512   done
16513 else
16514   echo "$as_me: failed program was:" >&5
16515 cat conftest.$ac_ext >&5
16516 cat >conftest.$ac_ext <<_ACEOF
16517 #line $LINENO "configure"
16518 #include "confdefs.h"
16519 $ac_includes_default
16520 #ifdef F77_DUMMY_MAIN
16521 #  ifdef __cplusplus
16522      extern "C"
16523 #  endif
16524    int F77_DUMMY_MAIN() { return 1; }
16525 #endif
16526 int
16527 main ()
16528 {
16529 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16530 test_array [0] = 0
16531
16532   ;
16533   return 0;
16534 }
16535 _ACEOF
16536 rm -f conftest.$ac_objext
16537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16538   (eval $ac_compile) 2>&5
16539   ac_status=$?
16540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541   (exit $ac_status); } &&
16542          { ac_try='test -s conftest.$ac_objext'
16543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544   (eval $ac_try) 2>&5
16545   ac_status=$?
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); }; }; then
16548   ac_hi=-1 ac_mid=-1
16549   while :; do
16550     cat >conftest.$ac_ext <<_ACEOF
16551 #line $LINENO "configure"
16552 #include "confdefs.h"
16553 $ac_includes_default
16554 #ifdef F77_DUMMY_MAIN
16555 #  ifdef __cplusplus
16556      extern "C"
16557 #  endif
16558    int F77_DUMMY_MAIN() { return 1; }
16559 #endif
16560 int
16561 main ()
16562 {
16563 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16564 test_array [0] = 0
16565
16566   ;
16567   return 0;
16568 }
16569 _ACEOF
16570 rm -f conftest.$ac_objext
16571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16572   (eval $ac_compile) 2>&5
16573   ac_status=$?
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); } &&
16576          { ac_try='test -s conftest.$ac_objext'
16577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16578   (eval $ac_try) 2>&5
16579   ac_status=$?
16580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581   (exit $ac_status); }; }; then
16582   ac_lo=$ac_mid; break
16583 else
16584   echo "$as_me: failed program was:" >&5
16585 cat conftest.$ac_ext >&5
16586 ac_hi=`expr '(' $ac_mid ')' - 1`
16587                        if test $ac_mid -le $ac_hi; then
16588                          ac_lo= ac_hi=
16589                          break
16590                        fi
16591                        ac_mid=`expr 2 '*' $ac_mid`
16592 fi
16593 rm -f conftest.$ac_objext conftest.$ac_ext
16594   done
16595 else
16596   echo "$as_me: failed program was:" >&5
16597 cat conftest.$ac_ext >&5
16598 ac_lo= ac_hi=
16599 fi
16600 rm -f conftest.$ac_objext conftest.$ac_ext
16601 fi
16602 rm -f conftest.$ac_objext conftest.$ac_ext
16603 # Binary search between lo and hi bounds.
16604 while test "x$ac_lo" != "x$ac_hi"; do
16605   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16606   cat >conftest.$ac_ext <<_ACEOF
16607 #line $LINENO "configure"
16608 #include "confdefs.h"
16609 $ac_includes_default
16610 #ifdef F77_DUMMY_MAIN
16611 #  ifdef __cplusplus
16612      extern "C"
16613 #  endif
16614    int F77_DUMMY_MAIN() { return 1; }
16615 #endif
16616 int
16617 main ()
16618 {
16619 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16620 test_array [0] = 0
16621
16622   ;
16623   return 0;
16624 }
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628   (eval $ac_compile) 2>&5
16629   ac_status=$?
16630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631   (exit $ac_status); } &&
16632          { ac_try='test -s conftest.$ac_objext'
16633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634   (eval $ac_try) 2>&5
16635   ac_status=$?
16636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637   (exit $ac_status); }; }; then
16638   ac_hi=$ac_mid
16639 else
16640   echo "$as_me: failed program was:" >&5
16641 cat conftest.$ac_ext >&5
16642 ac_lo=`expr '(' $ac_mid ')' + 1`
16643 fi
16644 rm -f conftest.$ac_objext conftest.$ac_ext
16645 done
16646 case $ac_lo in
16647 ?*) ac_cv_sizeof_long=$ac_lo;;
16648 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
16649 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
16650    { (exit 1); exit 1; }; } ;;
16651 esac
16652 else
16653   if test "$cross_compiling" = yes; then
16654   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16655 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16656    { (exit 1); exit 1; }; }
16657 else
16658   cat >conftest.$ac_ext <<_ACEOF
16659 #line $LINENO "configure"
16660 #include "confdefs.h"
16661 $ac_includes_default
16662 long longval () { return (long) (sizeof (long)); }
16663 unsigned long ulongval () { return (long) (sizeof (long)); }
16664 #include <stdio.h>
16665 #include <stdlib.h>
16666 #ifdef F77_DUMMY_MAIN
16667 #  ifdef __cplusplus
16668      extern "C"
16669 #  endif
16670    int F77_DUMMY_MAIN() { return 1; }
16671 #endif
16672 int
16673 main ()
16674 {
16675
16676   FILE *f = fopen ("conftest.val", "w");
16677   if (! f)
16678     exit (1);
16679   if (((long) (sizeof (long))) < 0)
16680     {
16681       long i = longval ();
16682       if (i != ((long) (sizeof (long))))
16683         exit (1);
16684       fprintf (f, "%ld\n", i);
16685     }
16686   else
16687     {
16688       unsigned long i = ulongval ();
16689       if (i != ((long) (sizeof (long))))
16690         exit (1);
16691       fprintf (f, "%lu\n", i);
16692     }
16693   exit (ferror (f) || fclose (f) != 0);
16694
16695   ;
16696   return 0;
16697 }
16698 _ACEOF
16699 rm -f conftest$ac_exeext
16700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16701   (eval $ac_link) 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706   (eval $ac_try) 2>&5
16707   ac_status=$?
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); }; }; then
16710   ac_cv_sizeof_long=`cat conftest.val`
16711 else
16712   echo "$as_me: program exited with status $ac_status" >&5
16713 echo "$as_me: failed program was:" >&5
16714 cat conftest.$ac_ext >&5
16715 ( exit $ac_status )
16716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
16717 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
16718    { (exit 1); exit 1; }; }
16719 fi
16720 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16721 fi
16722 fi
16723 rm -f conftest.val
16724 else
16725   ac_cv_sizeof_long=0
16726 fi
16727 fi
16728 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16729 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16730 cat >>confdefs.h <<_ACEOF
16731 #define SIZEOF_LONG $ac_cv_sizeof_long
16732 _ACEOF
16733
16734
16735 echo "$as_me:$LINENO: checking for char *" >&5
16736 echo $ECHO_N "checking for char *... $ECHO_C" >&6
16737 if test "${ac_cv_type_char_p+set}" = set; then
16738   echo $ECHO_N "(cached) $ECHO_C" >&6
16739 else
16740   cat >conftest.$ac_ext <<_ACEOF
16741 #line $LINENO "configure"
16742 #include "confdefs.h"
16743 $ac_includes_default
16744 #ifdef F77_DUMMY_MAIN
16745 #  ifdef __cplusplus
16746      extern "C"
16747 #  endif
16748    int F77_DUMMY_MAIN() { return 1; }
16749 #endif
16750 int
16751 main ()
16752 {
16753 if ((char * *) 0)
16754   return 0;
16755 if (sizeof (char *))
16756   return 0;
16757   ;
16758   return 0;
16759 }
16760 _ACEOF
16761 rm -f conftest.$ac_objext
16762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16763   (eval $ac_compile) 2>&5
16764   ac_status=$?
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); } &&
16767          { ac_try='test -s conftest.$ac_objext'
16768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769   (eval $ac_try) 2>&5
16770   ac_status=$?
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); }; }; then
16773   ac_cv_type_char_p=yes
16774 else
16775   echo "$as_me: failed program was:" >&5
16776 cat conftest.$ac_ext >&5
16777 ac_cv_type_char_p=no
16778 fi
16779 rm -f conftest.$ac_objext conftest.$ac_ext
16780 fi
16781 echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
16782 echo "${ECHO_T}$ac_cv_type_char_p" >&6
16783
16784 echo "$as_me:$LINENO: checking size of char *" >&5
16785 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
16786 if test "${ac_cv_sizeof_char_p+set}" = set; then
16787   echo $ECHO_N "(cached) $ECHO_C" >&6
16788 else
16789   if test "$ac_cv_type_char_p" = yes; then
16790   # The cast to unsigned long works around a bug in the HP C Compiler
16791   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16792   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16793   # This bug is HP SR number 8606223364.
16794   if test "$cross_compiling" = yes; then
16795   # Depending upon the size, compute the lo and hi bounds.
16796 cat >conftest.$ac_ext <<_ACEOF
16797 #line $LINENO "configure"
16798 #include "confdefs.h"
16799 $ac_includes_default
16800 #ifdef F77_DUMMY_MAIN
16801 #  ifdef __cplusplus
16802      extern "C"
16803 #  endif
16804    int F77_DUMMY_MAIN() { return 1; }
16805 #endif
16806 int
16807 main ()
16808 {
16809 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
16810 test_array [0] = 0
16811
16812   ;
16813   return 0;
16814 }
16815 _ACEOF
16816 rm -f conftest.$ac_objext
16817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16818   (eval $ac_compile) 2>&5
16819   ac_status=$?
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); } &&
16822          { ac_try='test -s conftest.$ac_objext'
16823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824   (eval $ac_try) 2>&5
16825   ac_status=$?
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); }; }; then
16828   ac_lo=0 ac_mid=0
16829   while :; do
16830     cat >conftest.$ac_ext <<_ACEOF
16831 #line $LINENO "configure"
16832 #include "confdefs.h"
16833 $ac_includes_default
16834 #ifdef F77_DUMMY_MAIN
16835 #  ifdef __cplusplus
16836      extern "C"
16837 #  endif
16838    int F77_DUMMY_MAIN() { return 1; }
16839 #endif
16840 int
16841 main ()
16842 {
16843 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
16844 test_array [0] = 0
16845
16846   ;
16847   return 0;
16848 }
16849 _ACEOF
16850 rm -f conftest.$ac_objext
16851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16852   (eval $ac_compile) 2>&5
16853   ac_status=$?
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); } &&
16856          { ac_try='test -s conftest.$ac_objext'
16857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858   (eval $ac_try) 2>&5
16859   ac_status=$?
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); }; }; then
16862   ac_hi=$ac_mid; break
16863 else
16864   echo "$as_me: failed program was:" >&5
16865 cat conftest.$ac_ext >&5
16866 ac_lo=`expr $ac_mid + 1`
16867                     if test $ac_lo -le $ac_mid; then
16868                       ac_lo= ac_hi=
16869                       break
16870                     fi
16871                     ac_mid=`expr 2 '*' $ac_mid + 1`
16872 fi
16873 rm -f conftest.$ac_objext conftest.$ac_ext
16874   done
16875 else
16876   echo "$as_me: failed program was:" >&5
16877 cat conftest.$ac_ext >&5
16878 cat >conftest.$ac_ext <<_ACEOF
16879 #line $LINENO "configure"
16880 #include "confdefs.h"
16881 $ac_includes_default
16882 #ifdef F77_DUMMY_MAIN
16883 #  ifdef __cplusplus
16884      extern "C"
16885 #  endif
16886    int F77_DUMMY_MAIN() { return 1; }
16887 #endif
16888 int
16889 main ()
16890 {
16891 static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
16892 test_array [0] = 0
16893
16894   ;
16895   return 0;
16896 }
16897 _ACEOF
16898 rm -f conftest.$ac_objext
16899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16900   (eval $ac_compile) 2>&5
16901   ac_status=$?
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); } &&
16904          { ac_try='test -s conftest.$ac_objext'
16905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906   (eval $ac_try) 2>&5
16907   ac_status=$?
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); }; }; then
16910   ac_hi=-1 ac_mid=-1
16911   while :; do
16912     cat >conftest.$ac_ext <<_ACEOF
16913 #line $LINENO "configure"
16914 #include "confdefs.h"
16915 $ac_includes_default
16916 #ifdef F77_DUMMY_MAIN
16917 #  ifdef __cplusplus
16918      extern "C"
16919 #  endif
16920    int F77_DUMMY_MAIN() { return 1; }
16921 #endif
16922 int
16923 main ()
16924 {
16925 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
16926 test_array [0] = 0
16927
16928   ;
16929   return 0;
16930 }
16931 _ACEOF
16932 rm -f conftest.$ac_objext
16933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16934   (eval $ac_compile) 2>&5
16935   ac_status=$?
16936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); } &&
16938          { ac_try='test -s conftest.$ac_objext'
16939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940   (eval $ac_try) 2>&5
16941   ac_status=$?
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   (exit $ac_status); }; }; then
16944   ac_lo=$ac_mid; break
16945 else
16946   echo "$as_me: failed program was:" >&5
16947 cat conftest.$ac_ext >&5
16948 ac_hi=`expr '(' $ac_mid ')' - 1`
16949                        if test $ac_mid -le $ac_hi; then
16950                          ac_lo= ac_hi=
16951                          break
16952                        fi
16953                        ac_mid=`expr 2 '*' $ac_mid`
16954 fi
16955 rm -f conftest.$ac_objext conftest.$ac_ext
16956   done
16957 else
16958   echo "$as_me: failed program was:" >&5
16959 cat conftest.$ac_ext >&5
16960 ac_lo= ac_hi=
16961 fi
16962 rm -f conftest.$ac_objext conftest.$ac_ext
16963 fi
16964 rm -f conftest.$ac_objext conftest.$ac_ext
16965 # Binary search between lo and hi bounds.
16966 while test "x$ac_lo" != "x$ac_hi"; do
16967   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16968   cat >conftest.$ac_ext <<_ACEOF
16969 #line $LINENO "configure"
16970 #include "confdefs.h"
16971 $ac_includes_default
16972 #ifdef F77_DUMMY_MAIN
16973 #  ifdef __cplusplus
16974      extern "C"
16975 #  endif
16976    int F77_DUMMY_MAIN() { return 1; }
16977 #endif
16978 int
16979 main ()
16980 {
16981 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
16982 test_array [0] = 0
16983
16984   ;
16985   return 0;
16986 }
16987 _ACEOF
16988 rm -f conftest.$ac_objext
16989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16990   (eval $ac_compile) 2>&5
16991   ac_status=$?
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); } &&
16994          { ac_try='test -s conftest.$ac_objext'
16995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996   (eval $ac_try) 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); }; }; then
17000   ac_hi=$ac_mid
17001 else
17002   echo "$as_me: failed program was:" >&5
17003 cat conftest.$ac_ext >&5
17004 ac_lo=`expr '(' $ac_mid ')' + 1`
17005 fi
17006 rm -f conftest.$ac_objext conftest.$ac_ext
17007 done
17008 case $ac_lo in
17009 ?*) ac_cv_sizeof_char_p=$ac_lo;;
17010 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77" >&5
17011 echo "$as_me: error: cannot compute sizeof (char *), 77" >&2;}
17012    { (exit 1); exit 1; }; } ;;
17013 esac
17014 else
17015   if test "$cross_compiling" = yes; then
17016   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
17017 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17018    { (exit 1); exit 1; }; }
17019 else
17020   cat >conftest.$ac_ext <<_ACEOF
17021 #line $LINENO "configure"
17022 #include "confdefs.h"
17023 $ac_includes_default
17024 long longval () { return (long) (sizeof (char *)); }
17025 unsigned long ulongval () { return (long) (sizeof (char *)); }
17026 #include <stdio.h>
17027 #include <stdlib.h>
17028 #ifdef F77_DUMMY_MAIN
17029 #  ifdef __cplusplus
17030      extern "C"
17031 #  endif
17032    int F77_DUMMY_MAIN() { return 1; }
17033 #endif
17034 int
17035 main ()
17036 {
17037
17038   FILE *f = fopen ("conftest.val", "w");
17039   if (! f)
17040     exit (1);
17041   if (((long) (sizeof (char *))) < 0)
17042     {
17043       long i = longval ();
17044       if (i != ((long) (sizeof (char *))))
17045         exit (1);
17046       fprintf (f, "%ld\n", i);
17047     }
17048   else
17049     {
17050       unsigned long i = ulongval ();
17051       if (i != ((long) (sizeof (char *))))
17052         exit (1);
17053       fprintf (f, "%lu\n", i);
17054     }
17055   exit (ferror (f) || fclose (f) != 0);
17056
17057   ;
17058   return 0;
17059 }
17060 _ACEOF
17061 rm -f conftest$ac_exeext
17062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17063   (eval $ac_link) 2>&5
17064   ac_status=$?
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068   (eval $ac_try) 2>&5
17069   ac_status=$?
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); }; }; then
17072   ac_cv_sizeof_char_p=`cat conftest.val`
17073 else
17074   echo "$as_me: program exited with status $ac_status" >&5
17075 echo "$as_me: failed program was:" >&5
17076 cat conftest.$ac_ext >&5
17077 ( exit $ac_status )
17078 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77" >&5
17079 echo "$as_me: error: cannot compute sizeof (char *), 77" >&2;}
17080    { (exit 1); exit 1; }; }
17081 fi
17082 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17083 fi
17084 fi
17085 rm -f conftest.val
17086 else
17087   ac_cv_sizeof_char_p=0
17088 fi
17089 fi
17090 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
17091 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
17092 cat >>confdefs.h <<_ACEOF
17093 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
17094 _ACEOF
17095
17096
17097 echo "$as_me:$LINENO: checking for double" >&5
17098 echo $ECHO_N "checking for double... $ECHO_C" >&6
17099 if test "${ac_cv_type_double+set}" = set; then
17100   echo $ECHO_N "(cached) $ECHO_C" >&6
17101 else
17102   cat >conftest.$ac_ext <<_ACEOF
17103 #line $LINENO "configure"
17104 #include "confdefs.h"
17105 $ac_includes_default
17106 #ifdef F77_DUMMY_MAIN
17107 #  ifdef __cplusplus
17108      extern "C"
17109 #  endif
17110    int F77_DUMMY_MAIN() { return 1; }
17111 #endif
17112 int
17113 main ()
17114 {
17115 if ((double *) 0)
17116   return 0;
17117 if (sizeof (double))
17118   return 0;
17119   ;
17120   return 0;
17121 }
17122 _ACEOF
17123 rm -f conftest.$ac_objext
17124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17125   (eval $ac_compile) 2>&5
17126   ac_status=$?
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); } &&
17129          { ac_try='test -s conftest.$ac_objext'
17130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131   (eval $ac_try) 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); }; }; then
17135   ac_cv_type_double=yes
17136 else
17137   echo "$as_me: failed program was:" >&5
17138 cat conftest.$ac_ext >&5
17139 ac_cv_type_double=no
17140 fi
17141 rm -f conftest.$ac_objext conftest.$ac_ext
17142 fi
17143 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
17144 echo "${ECHO_T}$ac_cv_type_double" >&6
17145
17146 echo "$as_me:$LINENO: checking size of double" >&5
17147 echo $ECHO_N "checking size of double... $ECHO_C" >&6
17148 if test "${ac_cv_sizeof_double+set}" = set; then
17149   echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151   if test "$ac_cv_type_double" = yes; then
17152   # The cast to unsigned long works around a bug in the HP C Compiler
17153   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17154   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17155   # This bug is HP SR number 8606223364.
17156   if test "$cross_compiling" = yes; then
17157   # Depending upon the size, compute the lo and hi bounds.
17158 cat >conftest.$ac_ext <<_ACEOF
17159 #line $LINENO "configure"
17160 #include "confdefs.h"
17161 $ac_includes_default
17162 #ifdef F77_DUMMY_MAIN
17163 #  ifdef __cplusplus
17164      extern "C"
17165 #  endif
17166    int F77_DUMMY_MAIN() { return 1; }
17167 #endif
17168 int
17169 main ()
17170 {
17171 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
17172 test_array [0] = 0
17173
17174   ;
17175   return 0;
17176 }
17177 _ACEOF
17178 rm -f conftest.$ac_objext
17179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17180   (eval $ac_compile) 2>&5
17181   ac_status=$?
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); } &&
17184          { ac_try='test -s conftest.$ac_objext'
17185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186   (eval $ac_try) 2>&5
17187   ac_status=$?
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); }; }; then
17190   ac_lo=0 ac_mid=0
17191   while :; do
17192     cat >conftest.$ac_ext <<_ACEOF
17193 #line $LINENO "configure"
17194 #include "confdefs.h"
17195 $ac_includes_default
17196 #ifdef F77_DUMMY_MAIN
17197 #  ifdef __cplusplus
17198      extern "C"
17199 #  endif
17200    int F77_DUMMY_MAIN() { return 1; }
17201 #endif
17202 int
17203 main ()
17204 {
17205 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
17206 test_array [0] = 0
17207
17208   ;
17209   return 0;
17210 }
17211 _ACEOF
17212 rm -f conftest.$ac_objext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17214   (eval $ac_compile) 2>&5
17215   ac_status=$?
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); } &&
17218          { ac_try='test -s conftest.$ac_objext'
17219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220   (eval $ac_try) 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); }; }; then
17224   ac_hi=$ac_mid; break
17225 else
17226   echo "$as_me: failed program was:" >&5
17227 cat conftest.$ac_ext >&5
17228 ac_lo=`expr $ac_mid + 1`
17229                     if test $ac_lo -le $ac_mid; then
17230                       ac_lo= ac_hi=
17231                       break
17232                     fi
17233                     ac_mid=`expr 2 '*' $ac_mid + 1`
17234 fi
17235 rm -f conftest.$ac_objext conftest.$ac_ext
17236   done
17237 else
17238   echo "$as_me: failed program was:" >&5
17239 cat conftest.$ac_ext >&5
17240 cat >conftest.$ac_ext <<_ACEOF
17241 #line $LINENO "configure"
17242 #include "confdefs.h"
17243 $ac_includes_default
17244 #ifdef F77_DUMMY_MAIN
17245 #  ifdef __cplusplus
17246      extern "C"
17247 #  endif
17248    int F77_DUMMY_MAIN() { return 1; }
17249 #endif
17250 int
17251 main ()
17252 {
17253 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
17254 test_array [0] = 0
17255
17256   ;
17257   return 0;
17258 }
17259 _ACEOF
17260 rm -f conftest.$ac_objext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17262   (eval $ac_compile) 2>&5
17263   ac_status=$?
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); } &&
17266          { ac_try='test -s conftest.$ac_objext'
17267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268   (eval $ac_try) 2>&5
17269   ac_status=$?
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); }; }; then
17272   ac_hi=-1 ac_mid=-1
17273   while :; do
17274     cat >conftest.$ac_ext <<_ACEOF
17275 #line $LINENO "configure"
17276 #include "confdefs.h"
17277 $ac_includes_default
17278 #ifdef F77_DUMMY_MAIN
17279 #  ifdef __cplusplus
17280      extern "C"
17281 #  endif
17282    int F77_DUMMY_MAIN() { return 1; }
17283 #endif
17284 int
17285 main ()
17286 {
17287 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
17288 test_array [0] = 0
17289
17290   ;
17291   return 0;
17292 }
17293 _ACEOF
17294 rm -f conftest.$ac_objext
17295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17296   (eval $ac_compile) 2>&5
17297   ac_status=$?
17298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299   (exit $ac_status); } &&
17300          { ac_try='test -s conftest.$ac_objext'
17301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302   (eval $ac_try) 2>&5
17303   ac_status=$?
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); }; }; then
17306   ac_lo=$ac_mid; break
17307 else
17308   echo "$as_me: failed program was:" >&5
17309 cat conftest.$ac_ext >&5
17310 ac_hi=`expr '(' $ac_mid ')' - 1`
17311                        if test $ac_mid -le $ac_hi; then
17312                          ac_lo= ac_hi=
17313                          break
17314                        fi
17315                        ac_mid=`expr 2 '*' $ac_mid`
17316 fi
17317 rm -f conftest.$ac_objext conftest.$ac_ext
17318   done
17319 else
17320   echo "$as_me: failed program was:" >&5
17321 cat conftest.$ac_ext >&5
17322 ac_lo= ac_hi=
17323 fi
17324 rm -f conftest.$ac_objext conftest.$ac_ext
17325 fi
17326 rm -f conftest.$ac_objext conftest.$ac_ext
17327 # Binary search between lo and hi bounds.
17328 while test "x$ac_lo" != "x$ac_hi"; do
17329   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17330   cat >conftest.$ac_ext <<_ACEOF
17331 #line $LINENO "configure"
17332 #include "confdefs.h"
17333 $ac_includes_default
17334 #ifdef F77_DUMMY_MAIN
17335 #  ifdef __cplusplus
17336      extern "C"
17337 #  endif
17338    int F77_DUMMY_MAIN() { return 1; }
17339 #endif
17340 int
17341 main ()
17342 {
17343 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
17344 test_array [0] = 0
17345
17346   ;
17347   return 0;
17348 }
17349 _ACEOF
17350 rm -f conftest.$ac_objext
17351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17352   (eval $ac_compile) 2>&5
17353   ac_status=$?
17354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355   (exit $ac_status); } &&
17356          { ac_try='test -s conftest.$ac_objext'
17357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358   (eval $ac_try) 2>&5
17359   ac_status=$?
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); }; }; then
17362   ac_hi=$ac_mid
17363 else
17364   echo "$as_me: failed program was:" >&5
17365 cat conftest.$ac_ext >&5
17366 ac_lo=`expr '(' $ac_mid ')' + 1`
17367 fi
17368 rm -f conftest.$ac_objext conftest.$ac_ext
17369 done
17370 case $ac_lo in
17371 ?*) ac_cv_sizeof_double=$ac_lo;;
17372 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
17373 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
17374    { (exit 1); exit 1; }; } ;;
17375 esac
17376 else
17377   if test "$cross_compiling" = yes; then
17378   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
17379 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17380    { (exit 1); exit 1; }; }
17381 else
17382   cat >conftest.$ac_ext <<_ACEOF
17383 #line $LINENO "configure"
17384 #include "confdefs.h"
17385 $ac_includes_default
17386 long longval () { return (long) (sizeof (double)); }
17387 unsigned long ulongval () { return (long) (sizeof (double)); }
17388 #include <stdio.h>
17389 #include <stdlib.h>
17390 #ifdef F77_DUMMY_MAIN
17391 #  ifdef __cplusplus
17392      extern "C"
17393 #  endif
17394    int F77_DUMMY_MAIN() { return 1; }
17395 #endif
17396 int
17397 main ()
17398 {
17399
17400   FILE *f = fopen ("conftest.val", "w");
17401   if (! f)
17402     exit (1);
17403   if (((long) (sizeof (double))) < 0)
17404     {
17405       long i = longval ();
17406       if (i != ((long) (sizeof (double))))
17407         exit (1);
17408       fprintf (f, "%ld\n", i);
17409     }
17410   else
17411     {
17412       unsigned long i = ulongval ();
17413       if (i != ((long) (sizeof (double))))
17414         exit (1);
17415       fprintf (f, "%lu\n", i);
17416     }
17417   exit (ferror (f) || fclose (f) != 0);
17418
17419   ;
17420   return 0;
17421 }
17422 _ACEOF
17423 rm -f conftest$ac_exeext
17424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425   (eval $ac_link) 2>&5
17426   ac_status=$?
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430   (eval $ac_try) 2>&5
17431   ac_status=$?
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); }; }; then
17434   ac_cv_sizeof_double=`cat conftest.val`
17435 else
17436   echo "$as_me: program exited with status $ac_status" >&5
17437 echo "$as_me: failed program was:" >&5
17438 cat conftest.$ac_ext >&5
17439 ( exit $ac_status )
17440 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
17441 echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
17442    { (exit 1); exit 1; }; }
17443 fi
17444 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17445 fi
17446 fi
17447 rm -f conftest.val
17448 else
17449   ac_cv_sizeof_double=0
17450 fi
17451 fi
17452 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
17453 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
17454 cat >>confdefs.h <<_ACEOF
17455 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
17456 _ACEOF
17457
17458
17459 echo "$as_me:$LINENO: checking for long long" >&5
17460 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17461 if test "${ac_cv_type_long_long+set}" = set; then
17462   echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464   cat >conftest.$ac_ext <<_ACEOF
17465 #line $LINENO "configure"
17466 #include "confdefs.h"
17467 $ac_includes_default
17468 #ifdef F77_DUMMY_MAIN
17469 #  ifdef __cplusplus
17470      extern "C"
17471 #  endif
17472    int F77_DUMMY_MAIN() { return 1; }
17473 #endif
17474 int
17475 main ()
17476 {
17477 if ((long long *) 0)
17478   return 0;
17479 if (sizeof (long long))
17480   return 0;
17481   ;
17482   return 0;
17483 }
17484 _ACEOF
17485 rm -f conftest.$ac_objext
17486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17487   (eval $ac_compile) 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); } &&
17491          { ac_try='test -s conftest.$ac_objext'
17492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493   (eval $ac_try) 2>&5
17494   ac_status=$?
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); }; }; then
17497   ac_cv_type_long_long=yes
17498 else
17499   echo "$as_me: failed program was:" >&5
17500 cat conftest.$ac_ext >&5
17501 ac_cv_type_long_long=no
17502 fi
17503 rm -f conftest.$ac_objext conftest.$ac_ext
17504 fi
17505 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17506 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17507
17508 echo "$as_me:$LINENO: checking size of long long" >&5
17509 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17510 if test "${ac_cv_sizeof_long_long+set}" = set; then
17511   echo $ECHO_N "(cached) $ECHO_C" >&6
17512 else
17513   if test "$ac_cv_type_long_long" = yes; then
17514   # The cast to unsigned long works around a bug in the HP C Compiler
17515   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17516   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17517   # This bug is HP SR number 8606223364.
17518   if test "$cross_compiling" = yes; then
17519   # Depending upon the size, compute the lo and hi bounds.
17520 cat >conftest.$ac_ext <<_ACEOF
17521 #line $LINENO "configure"
17522 #include "confdefs.h"
17523 $ac_includes_default
17524 #ifdef F77_DUMMY_MAIN
17525 #  ifdef __cplusplus
17526      extern "C"
17527 #  endif
17528    int F77_DUMMY_MAIN() { return 1; }
17529 #endif
17530 int
17531 main ()
17532 {
17533 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17534 test_array [0] = 0
17535
17536   ;
17537   return 0;
17538 }
17539 _ACEOF
17540 rm -f conftest.$ac_objext
17541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17542   (eval $ac_compile) 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } &&
17546          { ac_try='test -s conftest.$ac_objext'
17547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548   (eval $ac_try) 2>&5
17549   ac_status=$?
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); }; }; then
17552   ac_lo=0 ac_mid=0
17553   while :; do
17554     cat >conftest.$ac_ext <<_ACEOF
17555 #line $LINENO "configure"
17556 #include "confdefs.h"
17557 $ac_includes_default
17558 #ifdef F77_DUMMY_MAIN
17559 #  ifdef __cplusplus
17560      extern "C"
17561 #  endif
17562    int F77_DUMMY_MAIN() { return 1; }
17563 #endif
17564 int
17565 main ()
17566 {
17567 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17568 test_array [0] = 0
17569
17570   ;
17571   return 0;
17572 }
17573 _ACEOF
17574 rm -f conftest.$ac_objext
17575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17576   (eval $ac_compile) 2>&5
17577   ac_status=$?
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); } &&
17580          { ac_try='test -s conftest.$ac_objext'
17581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582   (eval $ac_try) 2>&5
17583   ac_status=$?
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); }; }; then
17586   ac_hi=$ac_mid; break
17587 else
17588   echo "$as_me: failed program was:" >&5
17589 cat conftest.$ac_ext >&5
17590 ac_lo=`expr $ac_mid + 1`
17591                     if test $ac_lo -le $ac_mid; then
17592                       ac_lo= ac_hi=
17593                       break
17594                     fi
17595                     ac_mid=`expr 2 '*' $ac_mid + 1`
17596 fi
17597 rm -f conftest.$ac_objext conftest.$ac_ext
17598   done
17599 else
17600   echo "$as_me: failed program was:" >&5
17601 cat conftest.$ac_ext >&5
17602 cat >conftest.$ac_ext <<_ACEOF
17603 #line $LINENO "configure"
17604 #include "confdefs.h"
17605 $ac_includes_default
17606 #ifdef F77_DUMMY_MAIN
17607 #  ifdef __cplusplus
17608      extern "C"
17609 #  endif
17610    int F77_DUMMY_MAIN() { return 1; }
17611 #endif
17612 int
17613 main ()
17614 {
17615 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17616 test_array [0] = 0
17617
17618   ;
17619   return 0;
17620 }
17621 _ACEOF
17622 rm -f conftest.$ac_objext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17624   (eval $ac_compile) 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); } &&
17628          { ac_try='test -s conftest.$ac_objext'
17629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630   (eval $ac_try) 2>&5
17631   ac_status=$?
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); }; }; then
17634   ac_hi=-1 ac_mid=-1
17635   while :; do
17636     cat >conftest.$ac_ext <<_ACEOF
17637 #line $LINENO "configure"
17638 #include "confdefs.h"
17639 $ac_includes_default
17640 #ifdef F77_DUMMY_MAIN
17641 #  ifdef __cplusplus
17642      extern "C"
17643 #  endif
17644    int F77_DUMMY_MAIN() { return 1; }
17645 #endif
17646 int
17647 main ()
17648 {
17649 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17650 test_array [0] = 0
17651
17652   ;
17653   return 0;
17654 }
17655 _ACEOF
17656 rm -f conftest.$ac_objext
17657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17658   (eval $ac_compile) 2>&5
17659   ac_status=$?
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); } &&
17662          { ac_try='test -s conftest.$ac_objext'
17663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664   (eval $ac_try) 2>&5
17665   ac_status=$?
17666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); }; }; then
17668   ac_lo=$ac_mid; break
17669 else
17670   echo "$as_me: failed program was:" >&5
17671 cat conftest.$ac_ext >&5
17672 ac_hi=`expr '(' $ac_mid ')' - 1`
17673                        if test $ac_mid -le $ac_hi; then
17674                          ac_lo= ac_hi=
17675                          break
17676                        fi
17677                        ac_mid=`expr 2 '*' $ac_mid`
17678 fi
17679 rm -f conftest.$ac_objext conftest.$ac_ext
17680   done
17681 else
17682   echo "$as_me: failed program was:" >&5
17683 cat conftest.$ac_ext >&5
17684 ac_lo= ac_hi=
17685 fi
17686 rm -f conftest.$ac_objext conftest.$ac_ext
17687 fi
17688 rm -f conftest.$ac_objext conftest.$ac_ext
17689 # Binary search between lo and hi bounds.
17690 while test "x$ac_lo" != "x$ac_hi"; do
17691   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17692   cat >conftest.$ac_ext <<_ACEOF
17693 #line $LINENO "configure"
17694 #include "confdefs.h"
17695 $ac_includes_default
17696 #ifdef F77_DUMMY_MAIN
17697 #  ifdef __cplusplus
17698      extern "C"
17699 #  endif
17700    int F77_DUMMY_MAIN() { return 1; }
17701 #endif
17702 int
17703 main ()
17704 {
17705 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17706 test_array [0] = 0
17707
17708   ;
17709   return 0;
17710 }
17711 _ACEOF
17712 rm -f conftest.$ac_objext
17713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17714   (eval $ac_compile) 2>&5
17715   ac_status=$?
17716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); } &&
17718          { ac_try='test -s conftest.$ac_objext'
17719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720   (eval $ac_try) 2>&5
17721   ac_status=$?
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); }; }; then
17724   ac_hi=$ac_mid
17725 else
17726   echo "$as_me: failed program was:" >&5
17727 cat conftest.$ac_ext >&5
17728 ac_lo=`expr '(' $ac_mid ')' + 1`
17729 fi
17730 rm -f conftest.$ac_objext conftest.$ac_ext
17731 done
17732 case $ac_lo in
17733 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17734 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
17735 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
17736    { (exit 1); exit 1; }; } ;;
17737 esac
17738 else
17739   if test "$cross_compiling" = yes; then
17740   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
17741 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17742    { (exit 1); exit 1; }; }
17743 else
17744   cat >conftest.$ac_ext <<_ACEOF
17745 #line $LINENO "configure"
17746 #include "confdefs.h"
17747 $ac_includes_default
17748 long longval () { return (long) (sizeof (long long)); }
17749 unsigned long ulongval () { return (long) (sizeof (long long)); }
17750 #include <stdio.h>
17751 #include <stdlib.h>
17752 #ifdef F77_DUMMY_MAIN
17753 #  ifdef __cplusplus
17754      extern "C"
17755 #  endif
17756    int F77_DUMMY_MAIN() { return 1; }
17757 #endif
17758 int
17759 main ()
17760 {
17761
17762   FILE *f = fopen ("conftest.val", "w");
17763   if (! f)
17764     exit (1);
17765   if (((long) (sizeof (long long))) < 0)
17766     {
17767       long i = longval ();
17768       if (i != ((long) (sizeof (long long))))
17769         exit (1);
17770       fprintf (f, "%ld\n", i);
17771     }
17772   else
17773     {
17774       unsigned long i = ulongval ();
17775       if (i != ((long) (sizeof (long long))))
17776         exit (1);
17777       fprintf (f, "%lu\n", i);
17778     }
17779   exit (ferror (f) || fclose (f) != 0);
17780
17781   ;
17782   return 0;
17783 }
17784 _ACEOF
17785 rm -f conftest$ac_exeext
17786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17787   (eval $ac_link) 2>&5
17788   ac_status=$?
17789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792   (eval $ac_try) 2>&5
17793   ac_status=$?
17794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795   (exit $ac_status); }; }; then
17796   ac_cv_sizeof_long_long=`cat conftest.val`
17797 else
17798   echo "$as_me: program exited with status $ac_status" >&5
17799 echo "$as_me: failed program was:" >&5
17800 cat conftest.$ac_ext >&5
17801 ( exit $ac_status )
17802 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
17803 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
17804    { (exit 1); exit 1; }; }
17805 fi
17806 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17807 fi
17808 fi
17809 rm -f conftest.val
17810 else
17811   ac_cv_sizeof_long_long=0
17812 fi
17813 fi
17814 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17815 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17816 cat >>confdefs.h <<_ACEOF
17817 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17818 _ACEOF
17819
17820
17821
17822 echo "$as_me:$LINENO: checking for u_int" >&5
17823 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
17824 if test "${ac_cv_type_u_int+set}" = set; then
17825   echo $ECHO_N "(cached) $ECHO_C" >&6
17826 else
17827   cat >conftest.$ac_ext <<_ACEOF
17828 #line $LINENO "configure"
17829 #include "confdefs.h"
17830 $ac_includes_default
17831 #ifdef F77_DUMMY_MAIN
17832 #  ifdef __cplusplus
17833      extern "C"
17834 #  endif
17835    int F77_DUMMY_MAIN() { return 1; }
17836 #endif
17837 int
17838 main ()
17839 {
17840 if ((u_int *) 0)
17841   return 0;
17842 if (sizeof (u_int))
17843   return 0;
17844   ;
17845   return 0;
17846 }
17847 _ACEOF
17848 rm -f conftest.$ac_objext
17849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17850   (eval $ac_compile) 2>&5
17851   ac_status=$?
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); } &&
17854          { ac_try='test -s conftest.$ac_objext'
17855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856   (eval $ac_try) 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); }; }; then
17860   ac_cv_type_u_int=yes
17861 else
17862   echo "$as_me: failed program was:" >&5
17863 cat conftest.$ac_ext >&5
17864 ac_cv_type_u_int=no
17865 fi
17866 rm -f conftest.$ac_objext conftest.$ac_ext
17867 fi
17868 echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
17869 echo "${ECHO_T}$ac_cv_type_u_int" >&6
17870 if test $ac_cv_type_u_int = yes; then
17871   :
17872 else
17873
17874 cat >>confdefs.h <<_ACEOF
17875 #define u_int unsigned int
17876 _ACEOF
17877
17878 fi
17879
17880 echo "$as_me:$LINENO: checking for u_long" >&5
17881 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
17882 if test "${ac_cv_type_u_long+set}" = set; then
17883   echo $ECHO_N "(cached) $ECHO_C" >&6
17884 else
17885   cat >conftest.$ac_ext <<_ACEOF
17886 #line $LINENO "configure"
17887 #include "confdefs.h"
17888 $ac_includes_default
17889 #ifdef F77_DUMMY_MAIN
17890 #  ifdef __cplusplus
17891      extern "C"
17892 #  endif
17893    int F77_DUMMY_MAIN() { return 1; }
17894 #endif
17895 int
17896 main ()
17897 {
17898 if ((u_long *) 0)
17899   return 0;
17900 if (sizeof (u_long))
17901   return 0;
17902   ;
17903   return 0;
17904 }
17905 _ACEOF
17906 rm -f conftest.$ac_objext
17907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17908   (eval $ac_compile) 2>&5
17909   ac_status=$?
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); } &&
17912          { ac_try='test -s conftest.$ac_objext'
17913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914   (eval $ac_try) 2>&5
17915   ac_status=$?
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); }; }; then
17918   ac_cv_type_u_long=yes
17919 else
17920   echo "$as_me: failed program was:" >&5
17921 cat conftest.$ac_ext >&5
17922 ac_cv_type_u_long=no
17923 fi
17924 rm -f conftest.$ac_objext conftest.$ac_ext
17925 fi
17926 echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
17927 echo "${ECHO_T}$ac_cv_type_u_long" >&6
17928 if test $ac_cv_type_u_long = yes; then
17929   :
17930 else
17931
17932 cat >>confdefs.h <<_ACEOF
17933 #define u_long unsigned long
17934 _ACEOF
17935
17936 fi
17937
17938
17939
17940 if test "$ac_cv_sizeof_short" = 2; then
17941   echo "$as_me:$LINENO: checking for bits16_t" >&5
17942 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
17943 if test "${ac_cv_type_bits16_t+set}" = set; then
17944   echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946   cat >conftest.$ac_ext <<_ACEOF
17947 #line $LINENO "configure"
17948 #include "confdefs.h"
17949 $ac_includes_default
17950 #ifdef F77_DUMMY_MAIN
17951 #  ifdef __cplusplus
17952      extern "C"
17953 #  endif
17954    int F77_DUMMY_MAIN() { return 1; }
17955 #endif
17956 int
17957 main ()
17958 {
17959 if ((bits16_t *) 0)
17960   return 0;
17961 if (sizeof (bits16_t))
17962   return 0;
17963   ;
17964   return 0;
17965 }
17966 _ACEOF
17967 rm -f conftest.$ac_objext
17968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17969   (eval $ac_compile) 2>&5
17970   ac_status=$?
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); } &&
17973          { ac_try='test -s conftest.$ac_objext'
17974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975   (eval $ac_try) 2>&5
17976   ac_status=$?
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); }; }; then
17979   ac_cv_type_bits16_t=yes
17980 else
17981   echo "$as_me: failed program was:" >&5
17982 cat conftest.$ac_ext >&5
17983 ac_cv_type_bits16_t=no
17984 fi
17985 rm -f conftest.$ac_objext conftest.$ac_ext
17986 fi
17987 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
17988 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
17989 if test $ac_cv_type_bits16_t = yes; then
17990   :
17991 else
17992
17993 cat >>confdefs.h <<_ACEOF
17994 #define bits16_t short
17995 _ACEOF
17996
17997 fi
17998
17999 elif test "$ac_cv_sizeof_char" = 2; then
18000   echo "$as_me:$LINENO: checking for bits16_t" >&5
18001 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
18002 if test "${ac_cv_type_bits16_t+set}" = set; then
18003   echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005   cat >conftest.$ac_ext <<_ACEOF
18006 #line $LINENO "configure"
18007 #include "confdefs.h"
18008 $ac_includes_default
18009 #ifdef F77_DUMMY_MAIN
18010 #  ifdef __cplusplus
18011      extern "C"
18012 #  endif
18013    int F77_DUMMY_MAIN() { return 1; }
18014 #endif
18015 int
18016 main ()
18017 {
18018 if ((bits16_t *) 0)
18019   return 0;
18020 if (sizeof (bits16_t))
18021   return 0;
18022   ;
18023   return 0;
18024 }
18025 _ACEOF
18026 rm -f conftest.$ac_objext
18027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18028   (eval $ac_compile) 2>&5
18029   ac_status=$?
18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031   (exit $ac_status); } &&
18032          { ac_try='test -s conftest.$ac_objext'
18033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034   (eval $ac_try) 2>&5
18035   ac_status=$?
18036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037   (exit $ac_status); }; }; then
18038   ac_cv_type_bits16_t=yes
18039 else
18040   echo "$as_me: failed program was:" >&5
18041 cat conftest.$ac_ext >&5
18042 ac_cv_type_bits16_t=no
18043 fi
18044 rm -f conftest.$ac_objext conftest.$ac_ext
18045 fi
18046 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
18047 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
18048 if test $ac_cv_type_bits16_t = yes; then
18049   :
18050 else
18051
18052 cat >>confdefs.h <<_ACEOF
18053 #define bits16_t char
18054 _ACEOF
18055
18056 fi
18057
18058 else
18059   echo "$as_me:$LINENO: checking for bits16_t" >&5
18060 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
18061 if test "${ac_cv_type_bits16_t+set}" = set; then
18062   echo $ECHO_N "(cached) $ECHO_C" >&6
18063 else
18064   cat >conftest.$ac_ext <<_ACEOF
18065 #line $LINENO "configure"
18066 #include "confdefs.h"
18067 $ac_includes_default
18068 #ifdef F77_DUMMY_MAIN
18069 #  ifdef __cplusplus
18070      extern "C"
18071 #  endif
18072    int F77_DUMMY_MAIN() { return 1; }
18073 #endif
18074 int
18075 main ()
18076 {
18077 if ((bits16_t *) 0)
18078   return 0;
18079 if (sizeof (bits16_t))
18080   return 0;
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 rm -f conftest.$ac_objext
18086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18087   (eval $ac_compile) 2>&5
18088   ac_status=$?
18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090   (exit $ac_status); } &&
18091          { ac_try='test -s conftest.$ac_objext'
18092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093   (eval $ac_try) 2>&5
18094   ac_status=$?
18095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096   (exit $ac_status); }; }; then
18097   ac_cv_type_bits16_t=yes
18098 else
18099   echo "$as_me: failed program was:" >&5
18100 cat conftest.$ac_ext >&5
18101 ac_cv_type_bits16_t=no
18102 fi
18103 rm -f conftest.$ac_objext conftest.$ac_ext
18104 fi
18105 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
18106 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
18107 if test $ac_cv_type_bits16_t = yes; then
18108   :
18109 else
18110
18111 cat >>confdefs.h <<_ACEOF
18112 #define bits16_t short
18113 _ACEOF
18114
18115 fi
18116
18117 fi
18118
18119
18120 if test "$ac_cv_sizeof_short" = 2; then
18121   echo "$as_me:$LINENO: checking for u_bits16_t" >&5
18122 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
18123 if test "${ac_cv_type_u_bits16_t+set}" = set; then
18124   echo $ECHO_N "(cached) $ECHO_C" >&6
18125 else
18126   cat >conftest.$ac_ext <<_ACEOF
18127 #line $LINENO "configure"
18128 #include "confdefs.h"
18129 $ac_includes_default
18130 #ifdef F77_DUMMY_MAIN
18131 #  ifdef __cplusplus
18132      extern "C"
18133 #  endif
18134    int F77_DUMMY_MAIN() { return 1; }
18135 #endif
18136 int
18137 main ()
18138 {
18139 if ((u_bits16_t *) 0)
18140   return 0;
18141 if (sizeof (u_bits16_t))
18142   return 0;
18143   ;
18144   return 0;
18145 }
18146 _ACEOF
18147 rm -f conftest.$ac_objext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18149   (eval $ac_compile) 2>&5
18150   ac_status=$?
18151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152   (exit $ac_status); } &&
18153          { ac_try='test -s conftest.$ac_objext'
18154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155   (eval $ac_try) 2>&5
18156   ac_status=$?
18157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158   (exit $ac_status); }; }; then
18159   ac_cv_type_u_bits16_t=yes
18160 else
18161   echo "$as_me: failed program was:" >&5
18162 cat conftest.$ac_ext >&5
18163 ac_cv_type_u_bits16_t=no
18164 fi
18165 rm -f conftest.$ac_objext conftest.$ac_ext
18166 fi
18167 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
18168 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
18169 if test $ac_cv_type_u_bits16_t = yes; then
18170   :
18171 else
18172
18173 cat >>confdefs.h <<_ACEOF
18174 #define u_bits16_t unsigned short
18175 _ACEOF
18176
18177 fi
18178
18179 elif test "$ac_cv_sizeof_char" = 2; then
18180   echo "$as_me:$LINENO: checking for u_bits16_t" >&5
18181 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
18182 if test "${ac_cv_type_u_bits16_t+set}" = set; then
18183   echo $ECHO_N "(cached) $ECHO_C" >&6
18184 else
18185   cat >conftest.$ac_ext <<_ACEOF
18186 #line $LINENO "configure"
18187 #include "confdefs.h"
18188 $ac_includes_default
18189 #ifdef F77_DUMMY_MAIN
18190 #  ifdef __cplusplus
18191      extern "C"
18192 #  endif
18193    int F77_DUMMY_MAIN() { return 1; }
18194 #endif
18195 int
18196 main ()
18197 {
18198 if ((u_bits16_t *) 0)
18199   return 0;
18200 if (sizeof (u_bits16_t))
18201   return 0;
18202   ;
18203   return 0;
18204 }
18205 _ACEOF
18206 rm -f conftest.$ac_objext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18208   (eval $ac_compile) 2>&5
18209   ac_status=$?
18210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211   (exit $ac_status); } &&
18212          { ac_try='test -s conftest.$ac_objext'
18213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214   (eval $ac_try) 2>&5
18215   ac_status=$?
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); }; }; then
18218   ac_cv_type_u_bits16_t=yes
18219 else
18220   echo "$as_me: failed program was:" >&5
18221 cat conftest.$ac_ext >&5
18222 ac_cv_type_u_bits16_t=no
18223 fi
18224 rm -f conftest.$ac_objext conftest.$ac_ext
18225 fi
18226 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
18227 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
18228 if test $ac_cv_type_u_bits16_t = yes; then
18229   :
18230 else
18231
18232 cat >>confdefs.h <<_ACEOF
18233 #define u_bits16_t unsigned char
18234 _ACEOF
18235
18236 fi
18237
18238 else
18239   echo "$as_me:$LINENO: checking for u_bits16_t" >&5
18240 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
18241 if test "${ac_cv_type_u_bits16_t+set}" = set; then
18242   echo $ECHO_N "(cached) $ECHO_C" >&6
18243 else
18244   cat >conftest.$ac_ext <<_ACEOF
18245 #line $LINENO "configure"
18246 #include "confdefs.h"
18247 $ac_includes_default
18248 #ifdef F77_DUMMY_MAIN
18249 #  ifdef __cplusplus
18250      extern "C"
18251 #  endif
18252    int F77_DUMMY_MAIN() { return 1; }
18253 #endif
18254 int
18255 main ()
18256 {
18257 if ((u_bits16_t *) 0)
18258   return 0;
18259 if (sizeof (u_bits16_t))
18260   return 0;
18261   ;
18262   return 0;
18263 }
18264 _ACEOF
18265 rm -f conftest.$ac_objext
18266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18267   (eval $ac_compile) 2>&5
18268   ac_status=$?
18269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270   (exit $ac_status); } &&
18271          { ac_try='test -s conftest.$ac_objext'
18272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273   (eval $ac_try) 2>&5
18274   ac_status=$?
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); }; }; then
18277   ac_cv_type_u_bits16_t=yes
18278 else
18279   echo "$as_me: failed program was:" >&5
18280 cat conftest.$ac_ext >&5
18281 ac_cv_type_u_bits16_t=no
18282 fi
18283 rm -f conftest.$ac_objext conftest.$ac_ext
18284 fi
18285 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
18286 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
18287 if test $ac_cv_type_u_bits16_t = yes; then
18288   :
18289 else
18290
18291 cat >>confdefs.h <<_ACEOF
18292 #define u_bits16_t unsigned short
18293 _ACEOF
18294
18295 fi
18296
18297 fi
18298
18299
18300 if test "$ac_cv_sizeof_int" = 4; then
18301   echo "$as_me:$LINENO: checking for bits32_t" >&5
18302 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
18303 if test "${ac_cv_type_bits32_t+set}" = set; then
18304   echo $ECHO_N "(cached) $ECHO_C" >&6
18305 else
18306   cat >conftest.$ac_ext <<_ACEOF
18307 #line $LINENO "configure"
18308 #include "confdefs.h"
18309 $ac_includes_default
18310 #ifdef F77_DUMMY_MAIN
18311 #  ifdef __cplusplus
18312      extern "C"
18313 #  endif
18314    int F77_DUMMY_MAIN() { return 1; }
18315 #endif
18316 int
18317 main ()
18318 {
18319 if ((bits32_t *) 0)
18320   return 0;
18321 if (sizeof (bits32_t))
18322   return 0;
18323   ;
18324   return 0;
18325 }
18326 _ACEOF
18327 rm -f conftest.$ac_objext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18329   (eval $ac_compile) 2>&5
18330   ac_status=$?
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); } &&
18333          { ac_try='test -s conftest.$ac_objext'
18334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335   (eval $ac_try) 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); }; }; then
18339   ac_cv_type_bits32_t=yes
18340 else
18341   echo "$as_me: failed program was:" >&5
18342 cat conftest.$ac_ext >&5
18343 ac_cv_type_bits32_t=no
18344 fi
18345 rm -f conftest.$ac_objext conftest.$ac_ext
18346 fi
18347 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
18348 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
18349 if test $ac_cv_type_bits32_t = yes; then
18350   :
18351 else
18352
18353 cat >>confdefs.h <<_ACEOF
18354 #define bits32_t int
18355 _ACEOF
18356
18357 fi
18358
18359 elif test "$ac_cv_sizeof_long" = 4; then
18360   echo "$as_me:$LINENO: checking for bits32_t" >&5
18361 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
18362 if test "${ac_cv_type_bits32_t+set}" = set; then
18363   echo $ECHO_N "(cached) $ECHO_C" >&6
18364 else
18365   cat >conftest.$ac_ext <<_ACEOF
18366 #line $LINENO "configure"
18367 #include "confdefs.h"
18368 $ac_includes_default
18369 #ifdef F77_DUMMY_MAIN
18370 #  ifdef __cplusplus
18371      extern "C"
18372 #  endif
18373    int F77_DUMMY_MAIN() { return 1; }
18374 #endif
18375 int
18376 main ()
18377 {
18378 if ((bits32_t *) 0)
18379   return 0;
18380 if (sizeof (bits32_t))
18381   return 0;
18382   ;
18383   return 0;
18384 }
18385 _ACEOF
18386 rm -f conftest.$ac_objext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18388   (eval $ac_compile) 2>&5
18389   ac_status=$?
18390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391   (exit $ac_status); } &&
18392          { ac_try='test -s conftest.$ac_objext'
18393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394   (eval $ac_try) 2>&5
18395   ac_status=$?
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); }; }; then
18398   ac_cv_type_bits32_t=yes
18399 else
18400   echo "$as_me: failed program was:" >&5
18401 cat conftest.$ac_ext >&5
18402 ac_cv_type_bits32_t=no
18403 fi
18404 rm -f conftest.$ac_objext conftest.$ac_ext
18405 fi
18406 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
18407 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
18408 if test $ac_cv_type_bits32_t = yes; then
18409   :
18410 else
18411
18412 cat >>confdefs.h <<_ACEOF
18413 #define bits32_t long
18414 _ACEOF
18415
18416 fi
18417
18418 else
18419   echo "$as_me:$LINENO: checking for bits32_t" >&5
18420 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
18421 if test "${ac_cv_type_bits32_t+set}" = set; then
18422   echo $ECHO_N "(cached) $ECHO_C" >&6
18423 else
18424   cat >conftest.$ac_ext <<_ACEOF
18425 #line $LINENO "configure"
18426 #include "confdefs.h"
18427 $ac_includes_default
18428 #ifdef F77_DUMMY_MAIN
18429 #  ifdef __cplusplus
18430      extern "C"
18431 #  endif
18432    int F77_DUMMY_MAIN() { return 1; }
18433 #endif
18434 int
18435 main ()
18436 {
18437 if ((bits32_t *) 0)
18438   return 0;
18439 if (sizeof (bits32_t))
18440   return 0;
18441   ;
18442   return 0;
18443 }
18444 _ACEOF
18445 rm -f conftest.$ac_objext
18446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18447   (eval $ac_compile) 2>&5
18448   ac_status=$?
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); } &&
18451          { ac_try='test -s conftest.$ac_objext'
18452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453   (eval $ac_try) 2>&5
18454   ac_status=$?
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); }; }; then
18457   ac_cv_type_bits32_t=yes
18458 else
18459   echo "$as_me: failed program was:" >&5
18460 cat conftest.$ac_ext >&5
18461 ac_cv_type_bits32_t=no
18462 fi
18463 rm -f conftest.$ac_objext conftest.$ac_ext
18464 fi
18465 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
18466 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
18467 if test $ac_cv_type_bits32_t = yes; then
18468   :
18469 else
18470
18471 cat >>confdefs.h <<_ACEOF
18472 #define bits32_t int
18473 _ACEOF
18474
18475 fi
18476
18477 fi
18478
18479
18480 if test "$ac_cv_sizeof_int" = 4; then
18481   echo "$as_me:$LINENO: checking for u_bits32_t" >&5
18482 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
18483 if test "${ac_cv_type_u_bits32_t+set}" = set; then
18484   echo $ECHO_N "(cached) $ECHO_C" >&6
18485 else
18486   cat >conftest.$ac_ext <<_ACEOF
18487 #line $LINENO "configure"
18488 #include "confdefs.h"
18489 $ac_includes_default
18490 #ifdef F77_DUMMY_MAIN
18491 #  ifdef __cplusplus
18492      extern "C"
18493 #  endif
18494    int F77_DUMMY_MAIN() { return 1; }
18495 #endif
18496 int
18497 main ()
18498 {
18499 if ((u_bits32_t *) 0)
18500   return 0;
18501 if (sizeof (u_bits32_t))
18502   return 0;
18503   ;
18504   return 0;
18505 }
18506 _ACEOF
18507 rm -f conftest.$ac_objext
18508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18509   (eval $ac_compile) 2>&5
18510   ac_status=$?
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); } &&
18513          { ac_try='test -s conftest.$ac_objext'
18514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515   (eval $ac_try) 2>&5
18516   ac_status=$?
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); }; }; then
18519   ac_cv_type_u_bits32_t=yes
18520 else
18521   echo "$as_me: failed program was:" >&5
18522 cat conftest.$ac_ext >&5
18523 ac_cv_type_u_bits32_t=no
18524 fi
18525 rm -f conftest.$ac_objext conftest.$ac_ext
18526 fi
18527 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
18528 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
18529 if test $ac_cv_type_u_bits32_t = yes; then
18530   :
18531 else
18532
18533 cat >>confdefs.h <<_ACEOF
18534 #define u_bits32_t unsigned int
18535 _ACEOF
18536
18537 fi
18538
18539 elif test "$ac_cv_sizeof_long" = 4; then
18540   echo "$as_me:$LINENO: checking for u_bits32_t" >&5
18541 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
18542 if test "${ac_cv_type_u_bits32_t+set}" = set; then
18543   echo $ECHO_N "(cached) $ECHO_C" >&6
18544 else
18545   cat >conftest.$ac_ext <<_ACEOF
18546 #line $LINENO "configure"
18547 #include "confdefs.h"
18548 $ac_includes_default
18549 #ifdef F77_DUMMY_MAIN
18550 #  ifdef __cplusplus
18551      extern "C"
18552 #  endif
18553    int F77_DUMMY_MAIN() { return 1; }
18554 #endif
18555 int
18556 main ()
18557 {
18558 if ((u_bits32_t *) 0)
18559   return 0;
18560 if (sizeof (u_bits32_t))
18561   return 0;
18562   ;
18563   return 0;
18564 }
18565 _ACEOF
18566 rm -f conftest.$ac_objext
18567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18568   (eval $ac_compile) 2>&5
18569   ac_status=$?
18570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571   (exit $ac_status); } &&
18572          { ac_try='test -s conftest.$ac_objext'
18573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574   (eval $ac_try) 2>&5
18575   ac_status=$?
18576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577   (exit $ac_status); }; }; then
18578   ac_cv_type_u_bits32_t=yes
18579 else
18580   echo "$as_me: failed program was:" >&5
18581 cat conftest.$ac_ext >&5
18582 ac_cv_type_u_bits32_t=no
18583 fi
18584 rm -f conftest.$ac_objext conftest.$ac_ext
18585 fi
18586 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
18587 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
18588 if test $ac_cv_type_u_bits32_t = yes; then
18589   :
18590 else
18591
18592 cat >>confdefs.h <<_ACEOF
18593 #define u_bits32_t unsigned long
18594 _ACEOF
18595
18596 fi
18597
18598 else
18599   echo "$as_me:$LINENO: checking for u_bits32_t" >&5
18600 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
18601 if test "${ac_cv_type_u_bits32_t+set}" = set; then
18602   echo $ECHO_N "(cached) $ECHO_C" >&6
18603 else
18604   cat >conftest.$ac_ext <<_ACEOF
18605 #line $LINENO "configure"
18606 #include "confdefs.h"
18607 $ac_includes_default
18608 #ifdef F77_DUMMY_MAIN
18609 #  ifdef __cplusplus
18610      extern "C"
18611 #  endif
18612    int F77_DUMMY_MAIN() { return 1; }
18613 #endif
18614 int
18615 main ()
18616 {
18617 if ((u_bits32_t *) 0)
18618   return 0;
18619 if (sizeof (u_bits32_t))
18620   return 0;
18621   ;
18622   return 0;
18623 }
18624 _ACEOF
18625 rm -f conftest.$ac_objext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18627   (eval $ac_compile) 2>&5
18628   ac_status=$?
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); } &&
18631          { ac_try='test -s conftest.$ac_objext'
18632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633   (eval $ac_try) 2>&5
18634   ac_status=$?
18635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636   (exit $ac_status); }; }; then
18637   ac_cv_type_u_bits32_t=yes
18638 else
18639   echo "$as_me: failed program was:" >&5
18640 cat conftest.$ac_ext >&5
18641 ac_cv_type_u_bits32_t=no
18642 fi
18643 rm -f conftest.$ac_objext conftest.$ac_ext
18644 fi
18645 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
18646 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
18647 if test $ac_cv_type_u_bits32_t = yes; then
18648   :
18649 else
18650
18651 cat >>confdefs.h <<_ACEOF
18652 #define u_bits32_t unsigned int
18653 _ACEOF
18654
18655 fi
18656
18657 fi
18658
18659
18660 if test "$ac_cv_sizeof_char_p" = 8; then
18661   echo "$as_me:$LINENO: checking for bits64_t" >&5
18662 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
18663 if test "${ac_cv_type_bits64_t+set}" = set; then
18664   echo $ECHO_N "(cached) $ECHO_C" >&6
18665 else
18666   cat >conftest.$ac_ext <<_ACEOF
18667 #line $LINENO "configure"
18668 #include "confdefs.h"
18669 $ac_includes_default
18670 #ifdef F77_DUMMY_MAIN
18671 #  ifdef __cplusplus
18672      extern "C"
18673 #  endif
18674    int F77_DUMMY_MAIN() { return 1; }
18675 #endif
18676 int
18677 main ()
18678 {
18679 if ((bits64_t *) 0)
18680   return 0;
18681 if (sizeof (bits64_t))
18682   return 0;
18683   ;
18684   return 0;
18685 }
18686 _ACEOF
18687 rm -f conftest.$ac_objext
18688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18689   (eval $ac_compile) 2>&5
18690   ac_status=$?
18691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692   (exit $ac_status); } &&
18693          { ac_try='test -s conftest.$ac_objext'
18694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695   (eval $ac_try) 2>&5
18696   ac_status=$?
18697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698   (exit $ac_status); }; }; then
18699   ac_cv_type_bits64_t=yes
18700 else
18701   echo "$as_me: failed program was:" >&5
18702 cat conftest.$ac_ext >&5
18703 ac_cv_type_bits64_t=no
18704 fi
18705 rm -f conftest.$ac_objext conftest.$ac_ext
18706 fi
18707 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
18708 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
18709 if test $ac_cv_type_bits64_t = yes; then
18710   :
18711 else
18712
18713 cat >>confdefs.h <<_ACEOF
18714 #define bits64_t char *
18715 _ACEOF
18716
18717 fi
18718
18719 elif test "$ac_cv_sizeof_double" = 8; then
18720   echo "$as_me:$LINENO: checking for bits64_t" >&5
18721 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
18722 if test "${ac_cv_type_bits64_t+set}" = set; then
18723   echo $ECHO_N "(cached) $ECHO_C" >&6
18724 else
18725   cat >conftest.$ac_ext <<_ACEOF
18726 #line $LINENO "configure"
18727 #include "confdefs.h"
18728 $ac_includes_default
18729 #ifdef F77_DUMMY_MAIN
18730 #  ifdef __cplusplus
18731      extern "C"
18732 #  endif
18733    int F77_DUMMY_MAIN() { return 1; }
18734 #endif
18735 int
18736 main ()
18737 {
18738 if ((bits64_t *) 0)
18739   return 0;
18740 if (sizeof (bits64_t))
18741   return 0;
18742   ;
18743   return 0;
18744 }
18745 _ACEOF
18746 rm -f conftest.$ac_objext
18747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18748   (eval $ac_compile) 2>&5
18749   ac_status=$?
18750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751   (exit $ac_status); } &&
18752          { ac_try='test -s conftest.$ac_objext'
18753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754   (eval $ac_try) 2>&5
18755   ac_status=$?
18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); }; }; then
18758   ac_cv_type_bits64_t=yes
18759 else
18760   echo "$as_me: failed program was:" >&5
18761 cat conftest.$ac_ext >&5
18762 ac_cv_type_bits64_t=no
18763 fi
18764 rm -f conftest.$ac_objext conftest.$ac_ext
18765 fi
18766 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
18767 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
18768 if test $ac_cv_type_bits64_t = yes; then
18769   :
18770 else
18771
18772 cat >>confdefs.h <<_ACEOF
18773 #define bits64_t double
18774 _ACEOF
18775
18776 fi
18777
18778 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
18779   echo "$as_me:$LINENO: checking for bits64_t" >&5
18780 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
18781 if test "${ac_cv_type_bits64_t+set}" = set; then
18782   echo $ECHO_N "(cached) $ECHO_C" >&6
18783 else
18784   cat >conftest.$ac_ext <<_ACEOF
18785 #line $LINENO "configure"
18786 #include "confdefs.h"
18787 $ac_includes_default
18788 #ifdef F77_DUMMY_MAIN
18789 #  ifdef __cplusplus
18790      extern "C"
18791 #  endif
18792    int F77_DUMMY_MAIN() { return 1; }
18793 #endif
18794 int
18795 main ()
18796 {
18797 if ((bits64_t *) 0)
18798   return 0;
18799 if (sizeof (bits64_t))
18800   return 0;
18801   ;
18802   return 0;
18803 }
18804 _ACEOF
18805 rm -f conftest.$ac_objext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18807   (eval $ac_compile) 2>&5
18808   ac_status=$?
18809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810   (exit $ac_status); } &&
18811          { ac_try='test -s conftest.$ac_objext'
18812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813   (eval $ac_try) 2>&5
18814   ac_status=$?
18815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816   (exit $ac_status); }; }; then
18817   ac_cv_type_bits64_t=yes
18818 else
18819   echo "$as_me: failed program was:" >&5
18820 cat conftest.$ac_ext >&5
18821 ac_cv_type_bits64_t=no
18822 fi
18823 rm -f conftest.$ac_objext conftest.$ac_ext
18824 fi
18825 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
18826 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
18827 if test $ac_cv_type_bits64_t = yes; then
18828   :
18829 else
18830
18831 cat >>confdefs.h <<_ACEOF
18832 #define bits64_t long long
18833 _ACEOF
18834
18835 fi
18836
18837 elif test "$ac_cv_sizeof_long" = 8; then
18838   echo "$as_me:$LINENO: checking for bits64_t" >&5
18839 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
18840 if test "${ac_cv_type_bits64_t+set}" = set; then
18841   echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18843   cat >conftest.$ac_ext <<_ACEOF
18844 #line $LINENO "configure"
18845 #include "confdefs.h"
18846 $ac_includes_default
18847 #ifdef F77_DUMMY_MAIN
18848 #  ifdef __cplusplus
18849      extern "C"
18850 #  endif
18851    int F77_DUMMY_MAIN() { return 1; }
18852 #endif
18853 int
18854 main ()
18855 {
18856 if ((bits64_t *) 0)
18857   return 0;
18858 if (sizeof (bits64_t))
18859   return 0;
18860   ;
18861   return 0;
18862 }
18863 _ACEOF
18864 rm -f conftest.$ac_objext
18865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18866   (eval $ac_compile) 2>&5
18867   ac_status=$?
18868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869   (exit $ac_status); } &&
18870          { ac_try='test -s conftest.$ac_objext'
18871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872   (eval $ac_try) 2>&5
18873   ac_status=$?
18874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875   (exit $ac_status); }; }; then
18876   ac_cv_type_bits64_t=yes
18877 else
18878   echo "$as_me: failed program was:" >&5
18879 cat conftest.$ac_ext >&5
18880 ac_cv_type_bits64_t=no
18881 fi
18882 rm -f conftest.$ac_objext conftest.$ac_ext
18883 fi
18884 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
18885 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
18886 if test $ac_cv_type_bits64_t = yes; then
18887   :
18888 else
18889
18890 cat >>confdefs.h <<_ACEOF
18891 #define bits64_t long
18892 _ACEOF
18893
18894 fi
18895
18896 else
18897   echo "$as_me:$LINENO: checking for bits64_t" >&5
18898 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
18899 if test "${ac_cv_type_bits64_t+set}" = set; then
18900   echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902   cat >conftest.$ac_ext <<_ACEOF
18903 #line $LINENO "configure"
18904 #include "confdefs.h"
18905 $ac_includes_default
18906 #ifdef F77_DUMMY_MAIN
18907 #  ifdef __cplusplus
18908      extern "C"
18909 #  endif
18910    int F77_DUMMY_MAIN() { return 1; }
18911 #endif
18912 int
18913 main ()
18914 {
18915 if ((bits64_t *) 0)
18916   return 0;
18917 if (sizeof (bits64_t))
18918   return 0;
18919   ;
18920   return 0;
18921 }
18922 _ACEOF
18923 rm -f conftest.$ac_objext
18924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18925   (eval $ac_compile) 2>&5
18926   ac_status=$?
18927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); } &&
18929          { ac_try='test -s conftest.$ac_objext'
18930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931   (eval $ac_try) 2>&5
18932   ac_status=$?
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); }; }; then
18935   ac_cv_type_bits64_t=yes
18936 else
18937   echo "$as_me: failed program was:" >&5
18938 cat conftest.$ac_ext >&5
18939 ac_cv_type_bits64_t=no
18940 fi
18941 rm -f conftest.$ac_objext conftest.$ac_ext
18942 fi
18943 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
18944 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
18945 if test $ac_cv_type_bits64_t = yes; then
18946   :
18947 else
18948
18949 cat >>confdefs.h <<_ACEOF
18950 #define bits64_t double
18951 _ACEOF
18952
18953 fi
18954
18955 fi
18956
18957
18958
18959 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
18960   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
18961 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
18962 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
18963   echo $ECHO_N "(cached) $ECHO_C" >&6
18964 else
18965   cat >conftest.$ac_ext <<_ACEOF
18966 #line $LINENO "configure"
18967 #include "confdefs.h"
18968 $ac_includes_default
18969 #ifdef F77_DUMMY_MAIN
18970 #  ifdef __cplusplus
18971      extern "C"
18972 #  endif
18973    int F77_DUMMY_MAIN() { return 1; }
18974 #endif
18975 int
18976 main ()
18977 {
18978 if ((ptrdiff_t *) 0)
18979   return 0;
18980 if (sizeof (ptrdiff_t))
18981   return 0;
18982   ;
18983   return 0;
18984 }
18985 _ACEOF
18986 rm -f conftest.$ac_objext
18987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18988   (eval $ac_compile) 2>&5
18989   ac_status=$?
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); } &&
18992          { ac_try='test -s conftest.$ac_objext'
18993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994   (eval $ac_try) 2>&5
18995   ac_status=$?
18996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997   (exit $ac_status); }; }; then
18998   ac_cv_type_ptrdiff_t=yes
18999 else
19000   echo "$as_me: failed program was:" >&5
19001 cat conftest.$ac_ext >&5
19002 ac_cv_type_ptrdiff_t=no
19003 fi
19004 rm -f conftest.$ac_objext conftest.$ac_ext
19005 fi
19006 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19007 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19008 if test $ac_cv_type_ptrdiff_t = yes; then
19009   :
19010 else
19011
19012 cat >>confdefs.h <<_ACEOF
19013 #define ptrdiff_t int
19014 _ACEOF
19015
19016 fi
19017
19018 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
19019   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
19020 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
19021 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
19022   echo $ECHO_N "(cached) $ECHO_C" >&6
19023 else
19024   cat >conftest.$ac_ext <<_ACEOF
19025 #line $LINENO "configure"
19026 #include "confdefs.h"
19027 $ac_includes_default
19028 #ifdef F77_DUMMY_MAIN
19029 #  ifdef __cplusplus
19030      extern "C"
19031 #  endif
19032    int F77_DUMMY_MAIN() { return 1; }
19033 #endif
19034 int
19035 main ()
19036 {
19037 if ((ptrdiff_t *) 0)
19038   return 0;
19039 if (sizeof (ptrdiff_t))
19040   return 0;
19041   ;
19042   return 0;
19043 }
19044 _ACEOF
19045 rm -f conftest.$ac_objext
19046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19047   (eval $ac_compile) 2>&5
19048   ac_status=$?
19049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); } &&
19051          { ac_try='test -s conftest.$ac_objext'
19052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053   (eval $ac_try) 2>&5
19054   ac_status=$?
19055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056   (exit $ac_status); }; }; then
19057   ac_cv_type_ptrdiff_t=yes
19058 else
19059   echo "$as_me: failed program was:" >&5
19060 cat conftest.$ac_ext >&5
19061 ac_cv_type_ptrdiff_t=no
19062 fi
19063 rm -f conftest.$ac_objext conftest.$ac_ext
19064 fi
19065 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19066 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19067 if test $ac_cv_type_ptrdiff_t = yes; then
19068   :
19069 else
19070
19071 cat >>confdefs.h <<_ACEOF
19072 #define ptrdiff_t long
19073 _ACEOF
19074
19075 fi
19076
19077 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
19078   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
19079 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
19080 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
19081   echo $ECHO_N "(cached) $ECHO_C" >&6
19082 else
19083   cat >conftest.$ac_ext <<_ACEOF
19084 #line $LINENO "configure"
19085 #include "confdefs.h"
19086 $ac_includes_default
19087 #ifdef F77_DUMMY_MAIN
19088 #  ifdef __cplusplus
19089      extern "C"
19090 #  endif
19091    int F77_DUMMY_MAIN() { return 1; }
19092 #endif
19093 int
19094 main ()
19095 {
19096 if ((ptrdiff_t *) 0)
19097   return 0;
19098 if (sizeof (ptrdiff_t))
19099   return 0;
19100   ;
19101   return 0;
19102 }
19103 _ACEOF
19104 rm -f conftest.$ac_objext
19105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19106   (eval $ac_compile) 2>&5
19107   ac_status=$?
19108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109   (exit $ac_status); } &&
19110          { ac_try='test -s conftest.$ac_objext'
19111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112   (eval $ac_try) 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; }; then
19116   ac_cv_type_ptrdiff_t=yes
19117 else
19118   echo "$as_me: failed program was:" >&5
19119 cat conftest.$ac_ext >&5
19120 ac_cv_type_ptrdiff_t=no
19121 fi
19122 rm -f conftest.$ac_objext conftest.$ac_ext
19123 fi
19124 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19125 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19126 if test $ac_cv_type_ptrdiff_t = yes; then
19127   :
19128 else
19129
19130 cat >>confdefs.h <<_ACEOF
19131 #define ptrdiff_t long long
19132 _ACEOF
19133
19134 fi
19135
19136 else
19137   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
19138 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
19139 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
19140   echo $ECHO_N "(cached) $ECHO_C" >&6
19141 else
19142   cat >conftest.$ac_ext <<_ACEOF
19143 #line $LINENO "configure"
19144 #include "confdefs.h"
19145 $ac_includes_default
19146 #ifdef F77_DUMMY_MAIN
19147 #  ifdef __cplusplus
19148      extern "C"
19149 #  endif
19150    int F77_DUMMY_MAIN() { return 1; }
19151 #endif
19152 int
19153 main ()
19154 {
19155 if ((ptrdiff_t *) 0)
19156   return 0;
19157 if (sizeof (ptrdiff_t))
19158   return 0;
19159   ;
19160   return 0;
19161 }
19162 _ACEOF
19163 rm -f conftest.$ac_objext
19164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19165   (eval $ac_compile) 2>&5
19166   ac_status=$?
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); } &&
19169          { ac_try='test -s conftest.$ac_objext'
19170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171   (eval $ac_try) 2>&5
19172   ac_status=$?
19173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174   (exit $ac_status); }; }; then
19175   ac_cv_type_ptrdiff_t=yes
19176 else
19177   echo "$as_me: failed program was:" >&5
19178 cat conftest.$ac_ext >&5
19179 ac_cv_type_ptrdiff_t=no
19180 fi
19181 rm -f conftest.$ac_objext conftest.$ac_ext
19182 fi
19183 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19184 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19185 if test $ac_cv_type_ptrdiff_t = yes; then
19186   :
19187 else
19188
19189 cat >>confdefs.h <<_ACEOF
19190 #define ptrdiff_t int
19191 _ACEOF
19192
19193 fi
19194
19195 fi
19196
19197
19198 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19199 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
19200 if test "${ac_cv_header_stat_broken+set}" = set; then
19201   echo $ECHO_N "(cached) $ECHO_C" >&6
19202 else
19203   cat >conftest.$ac_ext <<_ACEOF
19204 #line $LINENO "configure"
19205 #include "confdefs.h"
19206 #include <sys/types.h>
19207 #include <sys/stat.h>
19208
19209 #if defined(S_ISBLK) && defined(S_IFDIR)
19210 # if S_ISBLK (S_IFDIR)
19211 You lose.
19212 # endif
19213 #endif
19214
19215 #if defined(S_ISBLK) && defined(S_IFCHR)
19216 # if S_ISBLK (S_IFCHR)
19217 You lose.
19218 # endif
19219 #endif
19220
19221 #if defined(S_ISLNK) && defined(S_IFREG)
19222 # if S_ISLNK (S_IFREG)
19223 You lose.
19224 # endif
19225 #endif
19226
19227 #if defined(S_ISSOCK) && defined(S_IFREG)
19228 # if S_ISSOCK (S_IFREG)
19229 You lose.
19230 # endif
19231 #endif
19232
19233 _ACEOF
19234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19235   egrep "You lose" >/dev/null 2>&1; then
19236   ac_cv_header_stat_broken=yes
19237 else
19238   ac_cv_header_stat_broken=no
19239 fi
19240 rm -f conftest*
19241
19242 fi
19243 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19244 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
19245 if test $ac_cv_header_stat_broken = yes; then
19246
19247 cat >>confdefs.h <<\_ACEOF
19248 #define STAT_MACROS_BROKEN 1
19249 _ACEOF
19250
19251 fi
19252
19253
19254 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
19255 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
19256 if test "${ac_cv_sys_interpreter+set}" = set; then
19257   echo $ECHO_N "(cached) $ECHO_C" >&6
19258 else
19259   echo '#! /bin/cat
19260 exit 69
19261 ' >conftest
19262 chmod u+x conftest
19263 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
19264 if test $? -ne 69; then
19265    ac_cv_sys_interpreter=yes
19266 else
19267    ac_cv_sys_interpreter=no
19268 fi
19269 rm -f conftest
19270 fi
19271 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
19272 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
19273 interpval=$ac_cv_sys_interpreter
19274
19275 if test $ac_cv_sys_interpreter = yes; then
19276 cat >>confdefs.h <<\_ACEOF
19277 #define HAVE_HASH_BANG_EXEC 1
19278 _ACEOF
19279
19280 fi
19281
19282 if test "$ac_cv_func_lstat" = "no"; then
19283 echo "$as_me:$LINENO: checking for lstat" >&5
19284 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
19285 if test "${bash_cv_func_lstat+set}" = set; then
19286   echo $ECHO_N "(cached) $ECHO_C" >&6
19287 else
19288   cat >conftest.$ac_ext <<_ACEOF
19289 #line $LINENO "configure"
19290 #include "confdefs.h"
19291
19292 #include <sys/types.h>
19293 #include <sys/stat.h>
19294
19295 #ifdef F77_DUMMY_MAIN
19296 #  ifdef __cplusplus
19297      extern "C"
19298 #  endif
19299    int F77_DUMMY_MAIN() { return 1; }
19300 #endif
19301 int
19302 main ()
19303 {
19304  lstat(".",(struct stat *)0);
19305   ;
19306   return 0;
19307 }
19308 _ACEOF
19309 rm -f conftest.$ac_objext conftest$ac_exeext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19311   (eval $ac_link) 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); } &&
19315          { ac_try='test -s conftest$ac_exeext'
19316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317   (eval $ac_try) 2>&5
19318   ac_status=$?
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); }; }; then
19321   bash_cv_func_lstat=yes
19322 else
19323   echo "$as_me: failed program was:" >&5
19324 cat conftest.$ac_ext >&5
19325 bash_cv_func_lstat=no
19326 fi
19327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19328 fi
19329 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
19330 echo "${ECHO_T}$bash_cv_func_lstat" >&6
19331 if test $bash_cv_func_lstat = yes; then
19332   cat >>confdefs.h <<\_ACEOF
19333 #define HAVE_LSTAT 1
19334 _ACEOF
19335
19336 fi
19337
19338 fi
19339
19340
19341 echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
19342 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
19343 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
19344   echo $ECHO_N "(cached) $ECHO_C" >&6
19345 else
19346   if test "$cross_compiling" = yes; then
19347   { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
19348 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
19349     bash_cv_func_ctype_nonascii=no
19350
19351 else
19352   cat >conftest.$ac_ext <<_ACEOF
19353 #line $LINENO "configure"
19354 #include "confdefs.h"
19355
19356 #ifdef HAVE_LOCALE_H
19357 #include <locale.h>
19358 #endif
19359 #include <stdio.h>
19360 #include <ctype.h>
19361
19362 main(c, v)
19363 int     c;
19364 char    *v[];
19365 {
19366         char    *deflocale;
19367         unsigned char x;
19368         int     r1, r2;
19369
19370 #ifdef HAVE_SETLOCALE
19371         /* We take a shot here.  If that locale is not known, try the
19372            system default.  We try this one because '\342' (226) is
19373            known to be a printable character in that locale. */
19374         deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
19375         if (deflocale == 0)
19376                 deflocale = setlocale(LC_ALL, "");
19377 #endif
19378
19379         x = '\342';
19380         r1 = isprint(x);
19381         x -= 128;
19382         r2 = isprint(x);
19383         exit (r1 == 0 || r2 == 0);
19384 }
19385
19386 _ACEOF
19387 rm -f conftest$ac_exeext
19388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19389   (eval $ac_link) 2>&5
19390   ac_status=$?
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394   (eval $ac_try) 2>&5
19395   ac_status=$?
19396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397   (exit $ac_status); }; }; then
19398   bash_cv_func_ctype_nonascii=yes
19399 else
19400   echo "$as_me: program exited with status $ac_status" >&5
19401 echo "$as_me: failed program was:" >&5
19402 cat conftest.$ac_ext >&5
19403 ( exit $ac_status )
19404 bash_cv_func_ctype_nonascii=no
19405 fi
19406 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19407 fi
19408 fi
19409
19410 echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
19411 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
19412 if test $bash_cv_func_ctype_nonascii = yes; then
19413 cat >>confdefs.h <<\_ACEOF
19414 #define CTYPE_NON_ASCII 1
19415 _ACEOF
19416
19417 fi
19418
19419 echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
19420 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
19421 if test "${bash_cv_dup2_broken+set}" = set; then
19422   echo $ECHO_N "(cached) $ECHO_C" >&6
19423 else
19424   if test "$cross_compiling" = yes; then
19425   { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
19426 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
19427      bash_cv_dup2_broken=no
19428 else
19429   cat >conftest.$ac_ext <<_ACEOF
19430 #line $LINENO "configure"
19431 #include "confdefs.h"
19432
19433 #include <sys/types.h>
19434 #include <fcntl.h>
19435 main()
19436 {
19437   int fd1, fd2, fl;
19438   fd1 = open("/dev/null", 2);
19439   if (fcntl(fd1, 2, 1) < 0)
19440     exit(1);
19441   fd2 = dup2(fd1, 1);
19442   if (fd2 < 0)
19443     exit(2);
19444   fl = fcntl(fd2, 1, 0);
19445   /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
19446   exit(fl != 1);
19447 }
19448
19449 _ACEOF
19450 rm -f conftest$ac_exeext
19451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19452   (eval $ac_link) 2>&5
19453   ac_status=$?
19454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457   (eval $ac_try) 2>&5
19458   ac_status=$?
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); }; }; then
19461   bash_cv_dup2_broken=yes
19462 else
19463   echo "$as_me: program exited with status $ac_status" >&5
19464 echo "$as_me: failed program was:" >&5
19465 cat conftest.$ac_ext >&5
19466 ( exit $ac_status )
19467 bash_cv_dup2_broken=no
19468 fi
19469 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19470 fi
19471
19472 fi
19473
19474 echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
19475 echo "${ECHO_T}$bash_cv_dup2_broken" >&6
19476 if test $bash_cv_dup2_broken = yes; then
19477 cat >>confdefs.h <<\_ACEOF
19478 #define DUP2_BROKEN 1
19479 _ACEOF
19480
19481 fi
19482
19483
19484 echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
19485 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
19486 if test "${bash_cv_pgrp_pipe+set}" = set; then
19487   echo $ECHO_N "(cached) $ECHO_C" >&6
19488 else
19489   if test "$cross_compiling" = yes; then
19490   { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
19491 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
19492     bash_cv_pgrp_pipe=no
19493 else
19494   cat >conftest.$ac_ext <<_ACEOF
19495 #line $LINENO "configure"
19496 #include "confdefs.h"
19497
19498 #ifdef HAVE_UNISTD_H
19499 #  include <unistd.h>
19500 #endif
19501 main()
19502 {
19503 # ifdef GETPGRP_VOID
19504 #  define getpgID()     getpgrp()
19505 # else
19506 #  define getpgID()     getpgrp(0)
19507 #  define setpgid(x,y)  setpgrp(x,y)
19508 # endif
19509         int pid1, pid2, fds[2];
19510         int status;
19511         char ok;
19512
19513         switch (pid1 = fork()) {
19514           case -1:
19515             exit(1);
19516           case 0:
19517             setpgid(0, getpid());
19518             exit(0);
19519         }
19520         setpgid(pid1, pid1);
19521
19522         sleep(2);       /* let first child die */
19523
19524         if (pipe(fds) < 0)
19525           exit(2);
19526
19527         switch (pid2 = fork()) {
19528           case -1:
19529             exit(3);
19530           case 0:
19531             setpgid(0, pid1);
19532             ok = getpgID() == pid1;
19533             write(fds[1], &ok, 1);
19534             exit(0);
19535         }
19536         setpgid(pid2, pid1);
19537
19538         close(fds[1]);
19539         if (read(fds[0], &ok, 1) != 1)
19540           exit(4);
19541         wait(&status);
19542         wait(&status);
19543         exit(ok ? 0 : 5);
19544 }
19545
19546 _ACEOF
19547 rm -f conftest$ac_exeext
19548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19549   (eval $ac_link) 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554   (eval $ac_try) 2>&5
19555   ac_status=$?
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); }; }; then
19558   bash_cv_pgrp_pipe=no
19559 else
19560   echo "$as_me: program exited with status $ac_status" >&5
19561 echo "$as_me: failed program was:" >&5
19562 cat conftest.$ac_ext >&5
19563 ( exit $ac_status )
19564 bash_cv_pgrp_pipe=yes
19565 fi
19566 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19567 fi
19568
19569 fi
19570
19571 echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
19572 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
19573 if test $bash_cv_pgrp_pipe = yes; then
19574 cat >>confdefs.h <<\_ACEOF
19575 #define PGRP_PIPE 1
19576 _ACEOF
19577
19578 fi
19579
19580
19581 echo "$as_me:$LINENO: checking for type of signal functions" >&5
19582 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
19583 if test "${bash_cv_signal_vintage+set}" = set; then
19584   echo $ECHO_N "(cached) $ECHO_C" >&6
19585 else
19586
19587   cat >conftest.$ac_ext <<_ACEOF
19588 #line $LINENO "configure"
19589 #include "confdefs.h"
19590 #include <signal.h>
19591 #ifdef F77_DUMMY_MAIN
19592 #  ifdef __cplusplus
19593      extern "C"
19594 #  endif
19595    int F77_DUMMY_MAIN() { return 1; }
19596 #endif
19597 int
19598 main ()
19599 {
19600
19601     sigset_t ss;
19602     struct sigaction sa;
19603     sigemptyset(&ss); sigsuspend(&ss);
19604     sigaction(SIGINT, &sa, (struct sigaction *) 0);
19605     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
19606
19607   ;
19608   return 0;
19609 }
19610 _ACEOF
19611 rm -f conftest.$ac_objext conftest$ac_exeext
19612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19613   (eval $ac_link) 2>&5
19614   ac_status=$?
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); } &&
19617          { ac_try='test -s conftest$ac_exeext'
19618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619   (eval $ac_try) 2>&5
19620   ac_status=$?
19621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622   (exit $ac_status); }; }; then
19623   bash_cv_signal_vintage=posix
19624 else
19625   echo "$as_me: failed program was:" >&5
19626 cat conftest.$ac_ext >&5
19627
19628     cat >conftest.$ac_ext <<_ACEOF
19629 #line $LINENO "configure"
19630 #include "confdefs.h"
19631 #include <signal.h>
19632 #ifdef F77_DUMMY_MAIN
19633 #  ifdef __cplusplus
19634      extern "C"
19635 #  endif
19636    int F77_DUMMY_MAIN() { return 1; }
19637 #endif
19638 int
19639 main ()
19640 {
19641
19642         int mask = sigmask(SIGINT);
19643         sigsetmask(mask); sigblock(mask); sigpause(mask);
19644
19645   ;
19646   return 0;
19647 }
19648 _ACEOF
19649 rm -f conftest.$ac_objext conftest$ac_exeext
19650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19651   (eval $ac_link) 2>&5
19652   ac_status=$?
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); } &&
19655          { ac_try='test -s conftest$ac_exeext'
19656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657   (eval $ac_try) 2>&5
19658   ac_status=$?
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); }; }; then
19661   bash_cv_signal_vintage=4.2bsd
19662 else
19663   echo "$as_me: failed program was:" >&5
19664 cat conftest.$ac_ext >&5
19665
19666       cat >conftest.$ac_ext <<_ACEOF
19667 #line $LINENO "configure"
19668 #include "confdefs.h"
19669
19670         #include <signal.h>
19671         RETSIGTYPE foo() { }
19672 #ifdef F77_DUMMY_MAIN
19673 #  ifdef __cplusplus
19674      extern "C"
19675 #  endif
19676    int F77_DUMMY_MAIN() { return 1; }
19677 #endif
19678 int
19679 main ()
19680 {
19681
19682                 int mask = sigmask(SIGINT);
19683                 sigset(SIGINT, foo); sigrelse(SIGINT);
19684                 sighold(SIGINT); sigpause(SIGINT);
19685
19686   ;
19687   return 0;
19688 }
19689 _ACEOF
19690 rm -f conftest.$ac_objext conftest$ac_exeext
19691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19692   (eval $ac_link) 2>&5
19693   ac_status=$?
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); } &&
19696          { ac_try='test -s conftest$ac_exeext'
19697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698   (eval $ac_try) 2>&5
19699   ac_status=$?
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); }; }; then
19702   bash_cv_signal_vintage=svr3
19703 else
19704   echo "$as_me: failed program was:" >&5
19705 cat conftest.$ac_ext >&5
19706 bash_cv_signal_vintage=v7
19707
19708 fi
19709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19710
19711 fi
19712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19713
19714 fi
19715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19716
19717 fi
19718
19719 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
19720 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
19721 if test "$bash_cv_signal_vintage" = posix; then
19722 cat >>confdefs.h <<\_ACEOF
19723 #define HAVE_POSIX_SIGNALS 1
19724 _ACEOF
19725
19726 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
19727 cat >>confdefs.h <<\_ACEOF
19728 #define HAVE_BSD_SIGNALS 1
19729 _ACEOF
19730
19731 elif test "$bash_cv_signal_vintage" = svr3; then
19732 cat >>confdefs.h <<\_ACEOF
19733 #define HAVE_USG_SIGHOLD 1
19734 _ACEOF
19735
19736 fi
19737
19738
19739 echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
19740 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
19741 if test "${bash_cv_sys_errlist+set}" = set; then
19742   echo $ECHO_N "(cached) $ECHO_C" >&6
19743 else
19744   cat >conftest.$ac_ext <<_ACEOF
19745 #line $LINENO "configure"
19746 #include "confdefs.h"
19747 #include <errno.h>
19748 #ifdef F77_DUMMY_MAIN
19749 #  ifdef __cplusplus
19750      extern "C"
19751 #  endif
19752    int F77_DUMMY_MAIN() { return 1; }
19753 #endif
19754 int
19755 main ()
19756 {
19757 extern char *sys_errlist[];
19758  extern int sys_nerr;
19759  char *msg = sys_errlist[sys_nerr - 1];
19760   ;
19761   return 0;
19762 }
19763 _ACEOF
19764 rm -f conftest.$ac_objext conftest$ac_exeext
19765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19766   (eval $ac_link) 2>&5
19767   ac_status=$?
19768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769   (exit $ac_status); } &&
19770          { ac_try='test -s conftest$ac_exeext'
19771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772   (eval $ac_try) 2>&5
19773   ac_status=$?
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); }; }; then
19776   bash_cv_sys_errlist=yes
19777 else
19778   echo "$as_me: failed program was:" >&5
19779 cat conftest.$ac_ext >&5
19780 bash_cv_sys_errlist=no
19781 fi
19782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19783 fi
19784 echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
19785 echo "${ECHO_T}$bash_cv_sys_errlist" >&6
19786 if test $bash_cv_sys_errlist = yes; then
19787 cat >>confdefs.h <<\_ACEOF
19788 #define HAVE_SYS_ERRLIST 1
19789 _ACEOF
19790
19791 fi
19792
19793
19794 echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
19795 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
19796 if test "${bash_cv_sys_siglist+set}" = set; then
19797   echo $ECHO_N "(cached) $ECHO_C" >&6
19798 else
19799   if test "$cross_compiling" = yes; then
19800   { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
19801 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
19802          bash_cv_sys_siglist=no
19803 else
19804   cat >conftest.$ac_ext <<_ACEOF
19805 #line $LINENO "configure"
19806 #include "confdefs.h"
19807
19808 #include <sys/types.h>
19809 #include <signal.h>
19810 #ifdef HAVE_UNISTD_H
19811 #include <unistd.h>
19812 #endif
19813 #ifndef SYS_SIGLIST_DECLARED
19814 extern char *sys_siglist[];
19815 #endif
19816 main()
19817 {
19818 char *msg = sys_siglist[2];
19819 exit(msg == 0);
19820 }
19821 _ACEOF
19822 rm -f conftest$ac_exeext
19823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19824   (eval $ac_link) 2>&5
19825   ac_status=$?
19826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829   (eval $ac_try) 2>&5
19830   ac_status=$?
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); }; }; then
19833   bash_cv_sys_siglist=yes
19834 else
19835   echo "$as_me: program exited with status $ac_status" >&5
19836 echo "$as_me: failed program was:" >&5
19837 cat conftest.$ac_ext >&5
19838 ( exit $ac_status )
19839 bash_cv_sys_siglist=no
19840 fi
19841 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19842 fi
19843 fi
19844
19845 echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
19846 echo "${ECHO_T}$bash_cv_sys_siglist" >&6
19847 if test $bash_cv_sys_siglist = yes; then
19848 cat >>confdefs.h <<\_ACEOF
19849 #define HAVE_SYS_SIGLIST 1
19850 _ACEOF
19851
19852 fi
19853
19854 echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
19855 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
19856 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
19857   echo $ECHO_N "(cached) $ECHO_C" >&6
19858 else
19859   cat >conftest.$ac_ext <<_ACEOF
19860 #line $LINENO "configure"
19861 #include "confdefs.h"
19862
19863 #include <sys/types.h>
19864 #include <signal.h>
19865 #ifdef HAVE_UNISTD_H
19866 #include <unistd.h>
19867 #endif
19868 #ifdef F77_DUMMY_MAIN
19869 #  ifdef __cplusplus
19870      extern "C"
19871 #  endif
19872    int F77_DUMMY_MAIN() { return 1; }
19873 #endif
19874 int
19875 main ()
19876 {
19877  char *msg = _sys_siglist[2];
19878   ;
19879   return 0;
19880 }
19881 _ACEOF
19882 rm -f conftest.$ac_objext
19883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19884   (eval $ac_compile) 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); } &&
19888          { ac_try='test -s conftest.$ac_objext'
19889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890   (eval $ac_try) 2>&5
19891   ac_status=$?
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); }; }; then
19894   bash_cv_decl_under_sys_siglist=yes
19895 else
19896   echo "$as_me: failed program was:" >&5
19897 cat conftest.$ac_ext >&5
19898 bash_cv_decl_under_sys_siglist=no
19899 fi
19900 rm -f conftest.$ac_objext conftest.$ac_ext
19901 fi
19902 echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
19903 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
19904 if test $bash_cv_decl_under_sys_siglist = yes; then
19905 cat >>confdefs.h <<\_ACEOF
19906 #define UNDER_SYS_SIGLIST_DECLARED 1
19907 _ACEOF
19908
19909 fi
19910
19911
19912 echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
19913 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
19914 if test "${bash_cv_under_sys_siglist+set}" = set; then
19915   echo $ECHO_N "(cached) $ECHO_C" >&6
19916 else
19917   if test "$cross_compiling" = yes; then
19918   { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
19919 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
19920          bash_cv_under_sys_siglist=no
19921 else
19922   cat >conftest.$ac_ext <<_ACEOF
19923 #line $LINENO "configure"
19924 #include "confdefs.h"
19925
19926 #include <sys/types.h>
19927 #include <signal.h>
19928 #ifdef HAVE_UNISTD_H
19929 #include <unistd.h>
19930 #endif
19931 #ifndef UNDER_SYS_SIGLIST_DECLARED
19932 extern char *_sys_siglist[];
19933 #endif
19934 main()
19935 {
19936 char *msg = (char *)_sys_siglist[2];
19937 exit(msg == 0);
19938 }
19939 _ACEOF
19940 rm -f conftest$ac_exeext
19941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19942   (eval $ac_link) 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947   (eval $ac_try) 2>&5
19948   ac_status=$?
19949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950   (exit $ac_status); }; }; then
19951   bash_cv_under_sys_siglist=yes
19952 else
19953   echo "$as_me: program exited with status $ac_status" >&5
19954 echo "$as_me: failed program was:" >&5
19955 cat conftest.$ac_ext >&5
19956 ( exit $ac_status )
19957 bash_cv_under_sys_siglist=no
19958 fi
19959 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19960 fi
19961 fi
19962
19963 echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
19964 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
19965 if test $bash_cv_under_sys_siglist = yes; then
19966 cat >>confdefs.h <<\_ACEOF
19967 #define HAVE_UNDER_SYS_SIGLIST 1
19968 _ACEOF
19969
19970 fi
19971
19972
19973 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
19974 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
19975 if test "${bash_cv_void_sighandler+set}" = set; then
19976   echo $ECHO_N "(cached) $ECHO_C" >&6
19977 else
19978   cat >conftest.$ac_ext <<_ACEOF
19979 #line $LINENO "configure"
19980 #include "confdefs.h"
19981 #include <sys/types.h>
19982 #include <signal.h>
19983 #ifdef signal
19984 #undef signal
19985 #endif
19986 #ifdef __cplusplus
19987 extern "C"
19988 #endif
19989 void (*signal ()) ();
19990 #ifdef F77_DUMMY_MAIN
19991 #  ifdef __cplusplus
19992      extern "C"
19993 #  endif
19994    int F77_DUMMY_MAIN() { return 1; }
19995 #endif
19996 int
19997 main ()
19998 {
19999 int i;
20000   ;
20001   return 0;
20002 }
20003 _ACEOF
20004 rm -f conftest.$ac_objext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20006   (eval $ac_compile) 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); } &&
20010          { ac_try='test -s conftest.$ac_objext'
20011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012   (eval $ac_try) 2>&5
20013   ac_status=$?
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); }; }; then
20016   bash_cv_void_sighandler=yes
20017 else
20018   echo "$as_me: failed program was:" >&5
20019 cat conftest.$ac_ext >&5
20020 bash_cv_void_sighandler=no
20021 fi
20022 rm -f conftest.$ac_objext conftest.$ac_ext
20023 fi
20024 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
20025 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
20026 if test $bash_cv_void_sighandler = yes; then
20027 cat >>confdefs.h <<\_ACEOF
20028 #define VOID_SIGHANDLER 1
20029 _ACEOF
20030
20031 fi
20032
20033
20034
20035 echo "$as_me:$LINENO: checking for clock_t" >&5
20036 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
20037 if test "${bash_cv_type_clock_t+set}" = set; then
20038   echo $ECHO_N "(cached) $ECHO_C" >&6
20039 else
20040   cat >conftest.$ac_ext <<_ACEOF
20041 #line $LINENO "configure"
20042 #include "confdefs.h"
20043 #include <sys/types.h>
20044 #if STDC_HEADERS
20045 #include <stdlib.h>
20046 #include <stddef.h>
20047 #endif
20048 #if HAVE_INTTYPES_H
20049 #include <inttypes.h>
20050 #endif
20051 #include <sys/times.h>
20052
20053 _ACEOF
20054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20055   egrep "clock_t" >/dev/null 2>&1; then
20056   bash_cv_type_clock_t=yes
20057 else
20058   bash_cv_type_clock_t=no
20059 fi
20060 rm -f conftest*
20061
20062 fi
20063
20064 echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
20065 echo "${ECHO_T}$bash_cv_type_clock_t" >&6
20066
20067 if test $bash_cv_type_clock_t = no; then
20068   cat >>confdefs.h <<_ACEOF
20069 #define clock_t long
20070 _ACEOF
20071
20072 fi
20073
20074
20075
20076 echo "$as_me:$LINENO: checking for sigset_t" >&5
20077 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
20078 if test "${bash_cv_type_sigset_t+set}" = set; then
20079   echo $ECHO_N "(cached) $ECHO_C" >&6
20080 else
20081   cat >conftest.$ac_ext <<_ACEOF
20082 #line $LINENO "configure"
20083 #include "confdefs.h"
20084 #include <sys/types.h>
20085 #if STDC_HEADERS
20086 #include <stdlib.h>
20087 #include <stddef.h>
20088 #endif
20089 #if HAVE_INTTYPES_H
20090 #include <inttypes.h>
20091 #endif
20092 #include <signal.h>
20093
20094 _ACEOF
20095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20096   egrep "sigset_t" >/dev/null 2>&1; then
20097   bash_cv_type_sigset_t=yes
20098 else
20099   bash_cv_type_sigset_t=no
20100 fi
20101 rm -f conftest*
20102
20103 fi
20104
20105 echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
20106 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
20107
20108 if test $bash_cv_type_sigset_t = no; then
20109   cat >>confdefs.h <<_ACEOF
20110 #define sigset_t int
20111 _ACEOF
20112
20113 fi
20114
20115
20116
20117 echo "$as_me:$LINENO: checking for quad_t" >&5
20118 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
20119 if test "${bash_cv_type_quad_t+set}" = set; then
20120   echo $ECHO_N "(cached) $ECHO_C" >&6
20121 else
20122   cat >conftest.$ac_ext <<_ACEOF
20123 #line $LINENO "configure"
20124 #include "confdefs.h"
20125 #include <sys/types.h>
20126 #if STDC_HEADERS
20127 #include <stdlib.h>
20128 #include <stddef.h>
20129 #endif
20130 #if HAVE_INTTYPES_H
20131 #include <inttypes.h>
20132 #endif
20133
20134
20135 _ACEOF
20136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20137   egrep "quad_t" >/dev/null 2>&1; then
20138   bash_cv_type_quad_t=yes
20139 else
20140   bash_cv_type_quad_t=no
20141 fi
20142 rm -f conftest*
20143
20144 fi
20145
20146 echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
20147 echo "${ECHO_T}$bash_cv_type_quad_t" >&6
20148 if test $bash_cv_type_quad_t = yes; then
20149         cat >>confdefs.h <<\_ACEOF
20150 #define HAVE_QUAD_T 1
20151 _ACEOF
20152
20153         fi
20154 if test $bash_cv_type_quad_t = no; then
20155   cat >>confdefs.h <<_ACEOF
20156 #define quad_t long
20157 _ACEOF
20158
20159 fi
20160
20161
20162
20163 echo "$as_me:$LINENO: checking for intmax_t" >&5
20164 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
20165 if test "${bash_cv_type_intmax_t+set}" = set; then
20166   echo $ECHO_N "(cached) $ECHO_C" >&6
20167 else
20168   cat >conftest.$ac_ext <<_ACEOF
20169 #line $LINENO "configure"
20170 #include "confdefs.h"
20171 #include <sys/types.h>
20172 #if STDC_HEADERS
20173 #include <stdlib.h>
20174 #include <stddef.h>
20175 #endif
20176 #if HAVE_INTTYPES_H
20177 #include <inttypes.h>
20178 #endif
20179
20180
20181 _ACEOF
20182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20183   egrep "intmax_t" >/dev/null 2>&1; then
20184   bash_cv_type_intmax_t=yes
20185 else
20186   bash_cv_type_intmax_t=no
20187 fi
20188 rm -f conftest*
20189
20190 fi
20191
20192 echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
20193 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
20194
20195 if test $bash_cv_type_intmax_t = no; then
20196   cat >>confdefs.h <<_ACEOF
20197 #define intmax_t $bash_cv_type_long_long
20198 _ACEOF
20199
20200 fi
20201
20202
20203
20204 echo "$as_me:$LINENO: checking for uintmax_t" >&5
20205 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
20206 if test "${bash_cv_type_uintmax_t+set}" = set; then
20207   echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209   cat >conftest.$ac_ext <<_ACEOF
20210 #line $LINENO "configure"
20211 #include "confdefs.h"
20212 #include <sys/types.h>
20213 #if STDC_HEADERS
20214 #include <stdlib.h>
20215 #include <stddef.h>
20216 #endif
20217 #if HAVE_INTTYPES_H
20218 #include <inttypes.h>
20219 #endif
20220
20221
20222 _ACEOF
20223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20224   egrep "uintmax_t" >/dev/null 2>&1; then
20225   bash_cv_type_uintmax_t=yes
20226 else
20227   bash_cv_type_uintmax_t=no
20228 fi
20229 rm -f conftest*
20230
20231 fi
20232
20233 echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
20234 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
20235
20236 if test $bash_cv_type_uintmax_t = no; then
20237   cat >>confdefs.h <<_ACEOF
20238 #define uintmax_t $bash_cv_type_unsigned_long_long
20239 _ACEOF
20240
20241 fi
20242
20243 if test "$ac_cv_header_sys_socket_h" = "yes"; then
20244
20245
20246 echo "$as_me:$LINENO: checking for socklen_t" >&5
20247 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20248 if test "${bash_cv_type_socklen_t+set}" = set; then
20249   echo $ECHO_N "(cached) $ECHO_C" >&6
20250 else
20251   cat >conftest.$ac_ext <<_ACEOF
20252 #line $LINENO "configure"
20253 #include "confdefs.h"
20254 #include <sys/types.h>
20255 #if STDC_HEADERS
20256 #include <stdlib.h>
20257 #include <stddef.h>
20258 #endif
20259 #if HAVE_INTTYPES_H
20260 #include <inttypes.h>
20261 #endif
20262 #include <sys/socket.h>
20263
20264 _ACEOF
20265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20266   egrep "socklen_t" >/dev/null 2>&1; then
20267   bash_cv_type_socklen_t=yes
20268 else
20269   bash_cv_type_socklen_t=no
20270 fi
20271 rm -f conftest*
20272
20273 fi
20274
20275 echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
20276 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
20277 if test $bash_cv_type_socklen_t = yes; then
20278         cat >>confdefs.h <<\_ACEOF
20279 #define HAVE_SOCKLEN_T 1
20280 _ACEOF
20281
20282         fi
20283 if test $bash_cv_type_socklen_t = no; then
20284   cat >>confdefs.h <<_ACEOF
20285 #define socklen_t int
20286 _ACEOF
20287
20288 fi
20289
20290 fi
20291 echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
20292 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
20293 if test "${bash_cv_type_rlimit+set}" = set; then
20294   echo $ECHO_N "(cached) $ECHO_C" >&6
20295 else
20296   cat >conftest.$ac_ext <<_ACEOF
20297 #line $LINENO "configure"
20298 #include "confdefs.h"
20299 #include <sys/types.h>
20300 #include <sys/resource.h>
20301 #ifdef F77_DUMMY_MAIN
20302 #  ifdef __cplusplus
20303      extern "C"
20304 #  endif
20305    int F77_DUMMY_MAIN() { return 1; }
20306 #endif
20307 int
20308 main ()
20309 {
20310 rlim_t xxx;
20311   ;
20312   return 0;
20313 }
20314 _ACEOF
20315 rm -f conftest.$ac_objext
20316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20317   (eval $ac_compile) 2>&5
20318   ac_status=$?
20319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); } &&
20321          { ac_try='test -s conftest.$ac_objext'
20322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323   (eval $ac_try) 2>&5
20324   ac_status=$?
20325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326   (exit $ac_status); }; }; then
20327   bash_cv_type_rlimit=rlim_t
20328 else
20329   echo "$as_me: failed program was:" >&5
20330 cat conftest.$ac_ext >&5
20331
20332 if test "$cross_compiling" = yes; then
20333   { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
20334 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
20335          bash_cv_type_rlimit=long
20336 else
20337   cat >conftest.$ac_ext <<_ACEOF
20338 #line $LINENO "configure"
20339 #include "confdefs.h"
20340
20341 #include <sys/types.h>
20342 #include <sys/time.h>
20343 #include <sys/resource.h>
20344 main()
20345 {
20346 #ifdef HAVE_QUAD_T
20347   struct rlimit rl;
20348   if (sizeof(rl.rlim_cur) == sizeof(quad_t))
20349     exit(0);
20350 #endif
20351   exit(1);
20352 }
20353 _ACEOF
20354 rm -f conftest$ac_exeext
20355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20356   (eval $ac_link) 2>&5
20357   ac_status=$?
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361   (eval $ac_try) 2>&5
20362   ac_status=$?
20363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364   (exit $ac_status); }; }; then
20365   bash_cv_type_rlimit=quad_t
20366 else
20367   echo "$as_me: program exited with status $ac_status" >&5
20368 echo "$as_me: failed program was:" >&5
20369 cat conftest.$ac_ext >&5
20370 ( exit $ac_status )
20371 bash_cv_type_rlimit=long
20372 fi
20373 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20374 fi
20375 fi
20376 rm -f conftest.$ac_objext conftest.$ac_ext
20377
20378 fi
20379
20380 echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
20381 echo "${ECHO_T}$bash_cv_type_rlimit" >&6
20382 if test $bash_cv_type_rlimit = quad_t; then
20383 cat >>confdefs.h <<\_ACEOF
20384 #define RLIMTYPE quad_t
20385 _ACEOF
20386
20387 elif test $bash_cv_type_rlimit = rlim_t; then
20388 cat >>confdefs.h <<\_ACEOF
20389 #define RLIMTYPE rlim_t
20390 _ACEOF
20391
20392 fi
20393
20394
20395
20396 echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
20397 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
20398 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
20399   echo $ECHO_N "(cached) $ECHO_C" >&6
20400 else
20401   cat >conftest.$ac_ext <<_ACEOF
20402 #line $LINENO "configure"
20403 #include "confdefs.h"
20404
20405 #include <sys/types.h>
20406 #include <termios.h>
20407
20408
20409 #ifdef F77_DUMMY_MAIN
20410 #  ifdef __cplusplus
20411      extern "C"
20412 #  endif
20413    int F77_DUMMY_MAIN() { return 1; }
20414 #endif
20415 int
20416 main ()
20417 {
20418 static struct termios ac_aggr;
20419 if (ac_aggr.c_line)
20420 return 0;
20421   ;
20422   return 0;
20423 }
20424 _ACEOF
20425 rm -f conftest.$ac_objext
20426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20427   (eval $ac_compile) 2>&5
20428   ac_status=$?
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); } &&
20431          { ac_try='test -s conftest.$ac_objext'
20432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433   (eval $ac_try) 2>&5
20434   ac_status=$?
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); }; }; then
20437   ac_cv_member_struct_termios_c_line=yes
20438 else
20439   echo "$as_me: failed program was:" >&5
20440 cat conftest.$ac_ext >&5
20441 ac_cv_member_struct_termios_c_line=no
20442 fi
20443 rm -f conftest.$ac_objext conftest.$ac_ext
20444 fi
20445 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
20446 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
20447 if test $ac_cv_member_struct_termios_c_line = yes; then
20448   cat >>confdefs.h <<\_ACEOF
20449 #define TERMIOS_LDISC 1
20450 _ACEOF
20451
20452 fi
20453
20454
20455
20456 echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
20457 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
20458 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
20459   echo $ECHO_N "(cached) $ECHO_C" >&6
20460 else
20461   cat >conftest.$ac_ext <<_ACEOF
20462 #line $LINENO "configure"
20463 #include "confdefs.h"
20464
20465 #include <sys/types.h>
20466 #include <termio.h>
20467
20468
20469 #ifdef F77_DUMMY_MAIN
20470 #  ifdef __cplusplus
20471      extern "C"
20472 #  endif
20473    int F77_DUMMY_MAIN() { return 1; }
20474 #endif
20475 int
20476 main ()
20477 {
20478 static struct termio ac_aggr;
20479 if (ac_aggr.c_line)
20480 return 0;
20481   ;
20482   return 0;
20483 }
20484 _ACEOF
20485 rm -f conftest.$ac_objext
20486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20487   (eval $ac_compile) 2>&5
20488   ac_status=$?
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); } &&
20491          { ac_try='test -s conftest.$ac_objext'
20492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493   (eval $ac_try) 2>&5
20494   ac_status=$?
20495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496   (exit $ac_status); }; }; then
20497   ac_cv_member_struct_termio_c_line=yes
20498 else
20499   echo "$as_me: failed program was:" >&5
20500 cat conftest.$ac_ext >&5
20501 ac_cv_member_struct_termio_c_line=no
20502 fi
20503 rm -f conftest.$ac_objext conftest.$ac_ext
20504 fi
20505 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
20506 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
20507 if test $ac_cv_member_struct_termio_c_line = yes; then
20508   cat >>confdefs.h <<\_ACEOF
20509 #define TERMIO_LDISC 1
20510 _ACEOF
20511
20512 fi
20513
20514
20515
20516 echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
20517 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
20518 if test "${bash_cv_dirent_has_dino+set}" = set; then
20519   echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521   cat >conftest.$ac_ext <<_ACEOF
20522 #line $LINENO "configure"
20523 #include "confdefs.h"
20524
20525 #include <stdio.h>
20526 #include <sys/types.h>
20527 #ifdef HAVE_UNISTD_H
20528 # include <unistd.h>
20529 #endif /* HAVE_UNISTD_H */
20530 #if defined(HAVE_DIRENT_H)
20531 # include <dirent.h>
20532 #else
20533 # define dirent direct
20534 # ifdef HAVE_SYS_NDIR_H
20535 #  include <sys/ndir.h>
20536 # endif /* SYSNDIR */
20537 # ifdef HAVE_SYS_DIR_H
20538 #  include <sys/dir.h>
20539 # endif /* SYSDIR */
20540 # ifdef HAVE_NDIR_H
20541 #  include <ndir.h>
20542 # endif
20543 #endif /* HAVE_DIRENT_H */
20544
20545 #ifdef F77_DUMMY_MAIN
20546 #  ifdef __cplusplus
20547      extern "C"
20548 #  endif
20549    int F77_DUMMY_MAIN() { return 1; }
20550 #endif
20551 int
20552 main ()
20553 {
20554
20555 struct dirent d; int z; z = d.d_ino;
20556
20557   ;
20558   return 0;
20559 }
20560 _ACEOF
20561 rm -f conftest.$ac_objext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20563   (eval $ac_compile) 2>&5
20564   ac_status=$?
20565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); } &&
20567          { ac_try='test -s conftest.$ac_objext'
20568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569   (eval $ac_try) 2>&5
20570   ac_status=$?
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); }; }; then
20573   bash_cv_dirent_has_dino=yes
20574 else
20575   echo "$as_me: failed program was:" >&5
20576 cat conftest.$ac_ext >&5
20577 bash_cv_dirent_has_dino=no
20578 fi
20579 rm -f conftest.$ac_objext conftest.$ac_ext
20580 fi
20581
20582 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
20583 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
20584 if test $bash_cv_dirent_has_dino = yes; then
20585 cat >>confdefs.h <<\_ACEOF
20586 #define HAVE_STRUCT_DIRENT_D_INO 1
20587 _ACEOF
20588
20589 fi
20590
20591
20592 echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
20593 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
20594 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
20595   echo $ECHO_N "(cached) $ECHO_C" >&6
20596 else
20597   cat >conftest.$ac_ext <<_ACEOF
20598 #line $LINENO "configure"
20599 #include "confdefs.h"
20600
20601 #include <stdio.h>
20602 #include <sys/types.h>
20603 #ifdef HAVE_UNISTD_H
20604 # include <unistd.h>
20605 #endif /* HAVE_UNISTD_H */
20606 #if defined(HAVE_DIRENT_H)
20607 # include <dirent.h>
20608 #else
20609 # define dirent direct
20610 # ifdef HAVE_SYS_NDIR_H
20611 #  include <sys/ndir.h>
20612 # endif /* SYSNDIR */
20613 # ifdef HAVE_SYS_DIR_H
20614 #  include <sys/dir.h>
20615 # endif /* SYSDIR */
20616 # ifdef HAVE_NDIR_H
20617 #  include <ndir.h>
20618 # endif
20619 #endif /* HAVE_DIRENT_H */
20620
20621 #ifdef F77_DUMMY_MAIN
20622 #  ifdef __cplusplus
20623      extern "C"
20624 #  endif
20625    int F77_DUMMY_MAIN() { return 1; }
20626 #endif
20627 int
20628 main ()
20629 {
20630
20631 struct dirent d; int z; z = d.d_fileno;
20632
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 rm -f conftest.$ac_objext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20639   (eval $ac_compile) 2>&5
20640   ac_status=$?
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); } &&
20643          { ac_try='test -s conftest.$ac_objext'
20644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645   (eval $ac_try) 2>&5
20646   ac_status=$?
20647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648   (exit $ac_status); }; }; then
20649   bash_cv_dirent_has_d_fileno=yes
20650 else
20651   echo "$as_me: failed program was:" >&5
20652 cat conftest.$ac_ext >&5
20653 bash_cv_dirent_has_d_fileno=no
20654 fi
20655 rm -f conftest.$ac_objext conftest.$ac_ext
20656 fi
20657
20658 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
20659 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
20660 if test $bash_cv_dirent_has_d_fileno = yes; then
20661 cat >>confdefs.h <<\_ACEOF
20662 #define HAVE_STRUCT_DIRENT_D_FILENO 1
20663 _ACEOF
20664
20665 fi
20666
20667
20668 echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
20669 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
20670 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
20671   echo $ECHO_N "(cached) $ECHO_C" >&6
20672 else
20673   cat >conftest.$ac_ext <<_ACEOF
20674 #line $LINENO "configure"
20675 #include "confdefs.h"
20676
20677 #include <stdio.h>
20678 #include <sys/types.h>
20679 #ifdef HAVE_UNISTD_H
20680 # include <unistd.h>
20681 #endif /* HAVE_UNISTD_H */
20682 #if defined(HAVE_DIRENT_H)
20683 # include <dirent.h>
20684 #else
20685 # define dirent direct
20686 # ifdef HAVE_SYS_NDIR_H
20687 #  include <sys/ndir.h>
20688 # endif /* SYSNDIR */
20689 # ifdef HAVE_SYS_DIR_H
20690 #  include <sys/dir.h>
20691 # endif /* SYSDIR */
20692 # ifdef HAVE_NDIR_H
20693 #  include <ndir.h>
20694 # endif
20695 #endif /* HAVE_DIRENT_H */
20696
20697 #ifdef F77_DUMMY_MAIN
20698 #  ifdef __cplusplus
20699      extern "C"
20700 #  endif
20701    int F77_DUMMY_MAIN() { return 1; }
20702 #endif
20703 int
20704 main ()
20705 {
20706
20707 struct dirent d; int z; z = d.d_namlen;
20708
20709   ;
20710   return 0;
20711 }
20712 _ACEOF
20713 rm -f conftest.$ac_objext
20714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20715   (eval $ac_compile) 2>&5
20716   ac_status=$?
20717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718   (exit $ac_status); } &&
20719          { ac_try='test -s conftest.$ac_objext'
20720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721   (eval $ac_try) 2>&5
20722   ac_status=$?
20723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724   (exit $ac_status); }; }; then
20725   bash_cv_dirent_has_d_namlen=yes
20726 else
20727   echo "$as_me: failed program was:" >&5
20728 cat conftest.$ac_ext >&5
20729 bash_cv_dirent_has_d_namlen=no
20730 fi
20731 rm -f conftest.$ac_objext conftest.$ac_ext
20732 fi
20733
20734 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
20735 echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6
20736 if test $bash_cv_dirent_has_d_namlen = yes; then
20737 cat >>confdefs.h <<\_ACEOF
20738 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
20739 _ACEOF
20740
20741 fi
20742
20743 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
20744 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
20745 if test "${bash_cv_struct_winsize_header+set}" = set; then
20746   echo $ECHO_N "(cached) $ECHO_C" >&6
20747 else
20748   cat >conftest.$ac_ext <<_ACEOF
20749 #line $LINENO "configure"
20750 #include "confdefs.h"
20751 #include <sys/types.h>
20752 #include <sys/ioctl.h>
20753 #ifdef F77_DUMMY_MAIN
20754 #  ifdef __cplusplus
20755      extern "C"
20756 #  endif
20757    int F77_DUMMY_MAIN() { return 1; }
20758 #endif
20759 int
20760 main ()
20761 {
20762 struct winsize x;
20763   ;
20764   return 0;
20765 }
20766 _ACEOF
20767 rm -f conftest.$ac_objext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20769   (eval $ac_compile) 2>&5
20770   ac_status=$?
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } &&
20773          { ac_try='test -s conftest.$ac_objext'
20774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775   (eval $ac_try) 2>&5
20776   ac_status=$?
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); }; }; then
20779   bash_cv_struct_winsize_header=ioctl_h
20780 else
20781   echo "$as_me: failed program was:" >&5
20782 cat conftest.$ac_ext >&5
20783 cat >conftest.$ac_ext <<_ACEOF
20784 #line $LINENO "configure"
20785 #include "confdefs.h"
20786 #include <sys/types.h>
20787 #include <termios.h>
20788 #ifdef F77_DUMMY_MAIN
20789 #  ifdef __cplusplus
20790      extern "C"
20791 #  endif
20792    int F77_DUMMY_MAIN() { return 1; }
20793 #endif
20794 int
20795 main ()
20796 {
20797 struct winsize x;
20798   ;
20799   return 0;
20800 }
20801 _ACEOF
20802 rm -f conftest.$ac_objext
20803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20804   (eval $ac_compile) 2>&5
20805   ac_status=$?
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); } &&
20808          { ac_try='test -s conftest.$ac_objext'
20809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810   (eval $ac_try) 2>&5
20811   ac_status=$?
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); }; }; then
20814   bash_cv_struct_winsize_header=termios_h
20815 else
20816   echo "$as_me: failed program was:" >&5
20817 cat conftest.$ac_ext >&5
20818 bash_cv_struct_winsize_header=other
20819 fi
20820 rm -f conftest.$ac_objext conftest.$ac_ext
20821
20822 fi
20823 rm -f conftest.$ac_objext conftest.$ac_ext
20824 fi
20825
20826 if test $bash_cv_struct_winsize_header = ioctl_h; then
20827   echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
20828 echo "${ECHO_T}sys/ioctl.h" >&6
20829   cat >>confdefs.h <<\_ACEOF
20830 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
20831 _ACEOF
20832
20833 elif test $bash_cv_struct_winsize_header = termios_h; then
20834   echo "$as_me:$LINENO: result: termios.h" >&5
20835 echo "${ECHO_T}termios.h" >&6
20836   cat >>confdefs.h <<\_ACEOF
20837 #define STRUCT_WINSIZE_IN_TERMIOS 1
20838 _ACEOF
20839
20840 else
20841   echo "$as_me:$LINENO: result: not found" >&5
20842 echo "${ECHO_T}not found" >&6
20843 fi
20844
20845 echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
20846 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
20847 if test "${bash_cv_struct_timeval+set}" = set; then
20848   echo $ECHO_N "(cached) $ECHO_C" >&6
20849 else
20850
20851 cat >conftest.$ac_ext <<_ACEOF
20852 #line $LINENO "configure"
20853 #include "confdefs.h"
20854 #include <sys/time.h>
20855
20856 _ACEOF
20857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20858   egrep "struct timeval" >/dev/null 2>&1; then
20859   bash_cv_struct_timeval=yes
20860 else
20861   cat >conftest.$ac_ext <<_ACEOF
20862 #line $LINENO "configure"
20863 #include "confdefs.h"
20864 #include <time.h>
20865
20866 _ACEOF
20867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20868   egrep "struct timeval" >/dev/null 2>&1; then
20869   bash_cv_struct_timeval=yes
20870 else
20871   bash_cv_struct_timeval=no
20872 fi
20873 rm -f conftest*
20874
20875 fi
20876 rm -f conftest*
20877
20878
20879 fi
20880
20881 echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
20882 echo "${ECHO_T}$bash_cv_struct_timeval" >&6
20883 if test $bash_cv_struct_timeval = yes; then
20884   cat >>confdefs.h <<\_ACEOF
20885 #define HAVE_TIMEVAL 1
20886 _ACEOF
20887
20888 fi
20889
20890 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20891 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20892 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20893   echo $ECHO_N "(cached) $ECHO_C" >&6
20894 else
20895   cat >conftest.$ac_ext <<_ACEOF
20896 #line $LINENO "configure"
20897 #include "confdefs.h"
20898 $ac_includes_default
20899 #ifdef F77_DUMMY_MAIN
20900 #  ifdef __cplusplus
20901      extern "C"
20902 #  endif
20903    int F77_DUMMY_MAIN() { return 1; }
20904 #endif
20905 int
20906 main ()
20907 {
20908 static struct stat ac_aggr;
20909 if (ac_aggr.st_blocks)
20910 return 0;
20911   ;
20912   return 0;
20913 }
20914 _ACEOF
20915 rm -f conftest.$ac_objext
20916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20917   (eval $ac_compile) 2>&5
20918   ac_status=$?
20919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920   (exit $ac_status); } &&
20921          { ac_try='test -s conftest.$ac_objext'
20922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923   (eval $ac_try) 2>&5
20924   ac_status=$?
20925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926   (exit $ac_status); }; }; then
20927   ac_cv_member_struct_stat_st_blocks=yes
20928 else
20929   echo "$as_me: failed program was:" >&5
20930 cat conftest.$ac_ext >&5
20931 ac_cv_member_struct_stat_st_blocks=no
20932 fi
20933 rm -f conftest.$ac_objext conftest.$ac_ext
20934 fi
20935 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20936 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20937 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20938
20939 cat >>confdefs.h <<_ACEOF
20940 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20941 _ACEOF
20942
20943
20944 fi
20945
20946 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20947 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20948 if test "${ac_cv_struct_tm+set}" = set; then
20949   echo $ECHO_N "(cached) $ECHO_C" >&6
20950 else
20951   cat >conftest.$ac_ext <<_ACEOF
20952 #line $LINENO "configure"
20953 #include "confdefs.h"
20954 #include <sys/types.h>
20955 #include <time.h>
20956
20957 #ifdef F77_DUMMY_MAIN
20958 #  ifdef __cplusplus
20959      extern "C"
20960 #  endif
20961    int F77_DUMMY_MAIN() { return 1; }
20962 #endif
20963 int
20964 main ()
20965 {
20966 struct tm *tp; tp->tm_sec;
20967   ;
20968   return 0;
20969 }
20970 _ACEOF
20971 rm -f conftest.$ac_objext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20973   (eval $ac_compile) 2>&5
20974   ac_status=$?
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } &&
20977          { ac_try='test -s conftest.$ac_objext'
20978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979   (eval $ac_try) 2>&5
20980   ac_status=$?
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); }; }; then
20983   ac_cv_struct_tm=time.h
20984 else
20985   echo "$as_me: failed program was:" >&5
20986 cat conftest.$ac_ext >&5
20987 ac_cv_struct_tm=sys/time.h
20988 fi
20989 rm -f conftest.$ac_objext conftest.$ac_ext
20990 fi
20991 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20992 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20993 if test $ac_cv_struct_tm = sys/time.h; then
20994
20995 cat >>confdefs.h <<\_ACEOF
20996 #define TM_IN_SYS_TIME 1
20997 _ACEOF
20998
20999 fi
21000
21001 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21002 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21003 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21004   echo $ECHO_N "(cached) $ECHO_C" >&6
21005 else
21006   cat >conftest.$ac_ext <<_ACEOF
21007 #line $LINENO "configure"
21008 #include "confdefs.h"
21009 #include <sys/types.h>
21010 #include <$ac_cv_struct_tm>
21011
21012
21013 #ifdef F77_DUMMY_MAIN
21014 #  ifdef __cplusplus
21015      extern "C"
21016 #  endif
21017    int F77_DUMMY_MAIN() { return 1; }
21018 #endif
21019 int
21020 main ()
21021 {
21022 static struct tm ac_aggr;
21023 if (ac_aggr.tm_zone)
21024 return 0;
21025   ;
21026   return 0;
21027 }
21028 _ACEOF
21029 rm -f conftest.$ac_objext
21030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21031   (eval $ac_compile) 2>&5
21032   ac_status=$?
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); } &&
21035          { ac_try='test -s conftest.$ac_objext'
21036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037   (eval $ac_try) 2>&5
21038   ac_status=$?
21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); }; }; then
21041   ac_cv_member_struct_tm_tm_zone=yes
21042 else
21043   echo "$as_me: failed program was:" >&5
21044 cat conftest.$ac_ext >&5
21045 ac_cv_member_struct_tm_tm_zone=no
21046 fi
21047 rm -f conftest.$ac_objext conftest.$ac_ext
21048 fi
21049 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21050 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21051 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21052
21053 cat >>confdefs.h <<_ACEOF
21054 #define HAVE_STRUCT_TM_TM_ZONE 1
21055 _ACEOF
21056
21057
21058 fi
21059
21060 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21061
21062 cat >>confdefs.h <<\_ACEOF
21063 #define HAVE_TM_ZONE 1
21064 _ACEOF
21065
21066 else
21067   echo "$as_me:$LINENO: checking for tzname" >&5
21068 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21069 if test "${ac_cv_var_tzname+set}" = set; then
21070   echo $ECHO_N "(cached) $ECHO_C" >&6
21071 else
21072   cat >conftest.$ac_ext <<_ACEOF
21073 #line $LINENO "configure"
21074 #include "confdefs.h"
21075 #include <time.h>
21076 #ifndef tzname /* For SGI.  */
21077 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
21078 #endif
21079
21080 #ifdef F77_DUMMY_MAIN
21081 #  ifdef __cplusplus
21082      extern "C"
21083 #  endif
21084    int F77_DUMMY_MAIN() { return 1; }
21085 #endif
21086 int
21087 main ()
21088 {
21089 atoi(*tzname);
21090   ;
21091   return 0;
21092 }
21093 _ACEOF
21094 rm -f conftest.$ac_objext conftest$ac_exeext
21095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21096   (eval $ac_link) 2>&5
21097   ac_status=$?
21098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); } &&
21100          { ac_try='test -s conftest$ac_exeext'
21101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102   (eval $ac_try) 2>&5
21103   ac_status=$?
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); }; }; then
21106   ac_cv_var_tzname=yes
21107 else
21108   echo "$as_me: failed program was:" >&5
21109 cat conftest.$ac_ext >&5
21110 ac_cv_var_tzname=no
21111 fi
21112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21113 fi
21114 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21115 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21116   if test $ac_cv_var_tzname = yes; then
21117
21118 cat >>confdefs.h <<\_ACEOF
21119 #define HAVE_TZNAME 1
21120 _ACEOF
21121
21122   fi
21123 fi
21124
21125 echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
21126 echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6
21127 if test "${bash_cv_struct_timezone+set}" = set; then
21128   echo $ECHO_N "(cached) $ECHO_C" >&6
21129 else
21130
21131 cat >conftest.$ac_ext <<_ACEOF
21132 #line $LINENO "configure"
21133 #include "confdefs.h"
21134 #include <sys/time.h>
21135
21136 _ACEOF
21137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21138   egrep "struct timezone" >/dev/null 2>&1; then
21139   bash_cv_struct_timezone=yes
21140 else
21141   cat >conftest.$ac_ext <<_ACEOF
21142 #line $LINENO "configure"
21143 #include "confdefs.h"
21144 #include <time.h>
21145
21146 _ACEOF
21147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21148   egrep "struct timezone" >/dev/null 2>&1; then
21149   bash_cv_struct_timezone=yes
21150 else
21151   bash_cv_struct_timezone=no
21152 fi
21153 rm -f conftest*
21154
21155 fi
21156 rm -f conftest*
21157
21158
21159 fi
21160
21161 echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
21162 echo "${ECHO_T}$bash_cv_struct_timezone" >&6
21163 if test $bash_cv_struct_timezone = yes; then
21164   cat >>confdefs.h <<\_ACEOF
21165 #define HAVE_STRUCT_TIMEZONE 1
21166 _ACEOF
21167
21168 fi
21169
21170
21171 echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
21172 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
21173 if test "${bash_cv_have_strsignal+set}" = set; then
21174   echo $ECHO_N "(cached) $ECHO_C" >&6
21175 else
21176   cat >conftest.$ac_ext <<_ACEOF
21177 #line $LINENO "configure"
21178 #include "confdefs.h"
21179 #include <sys/types.h>
21180 #include <signal.h>
21181 #ifdef F77_DUMMY_MAIN
21182 #  ifdef __cplusplus
21183      extern "C"
21184 #  endif
21185    int F77_DUMMY_MAIN() { return 1; }
21186 #endif
21187 int
21188 main ()
21189 {
21190 char *s = (char *)strsignal(2);
21191   ;
21192   return 0;
21193 }
21194 _ACEOF
21195 rm -f conftest.$ac_objext conftest$ac_exeext
21196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21197   (eval $ac_link) 2>&5
21198   ac_status=$?
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); } &&
21201          { ac_try='test -s conftest$ac_exeext'
21202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203   (eval $ac_try) 2>&5
21204   ac_status=$?
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); }; }; then
21207   bash_cv_have_strsignal=yes
21208 else
21209   echo "$as_me: failed program was:" >&5
21210 cat conftest.$ac_ext >&5
21211 bash_cv_have_strsignal=no
21212 fi
21213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21214 fi
21215
21216 echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
21217 echo "${ECHO_T}$bash_cv_have_strsignal" >&6
21218 if test $bash_cv_have_strsignal = yes; then
21219 cat >>confdefs.h <<\_ACEOF
21220 #define HAVE_STRSIGNAL 1
21221 _ACEOF
21222
21223 fi
21224
21225 echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
21226 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
21227 if test "${bash_cv_opendir_not_robust+set}" = set; then
21228   echo $ECHO_N "(cached) $ECHO_C" >&6
21229 else
21230   if test "$cross_compiling" = yes; then
21231   { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
21232 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
21233      bash_cv_opendir_not_robust=no
21234
21235 else
21236   cat >conftest.$ac_ext <<_ACEOF
21237 #line $LINENO "configure"
21238 #include "confdefs.h"
21239
21240 #include <stdio.h>
21241 #include <sys/types.h>
21242 #include <fcntl.h>
21243 #ifdef HAVE_UNISTD_H
21244 # include <unistd.h>
21245 #endif /* HAVE_UNISTD_H */
21246 #if defined(HAVE_DIRENT_H)
21247 # include <dirent.h>
21248 #else
21249 # define dirent direct
21250 # ifdef HAVE_SYS_NDIR_H
21251 #  include <sys/ndir.h>
21252 # endif /* SYSNDIR */
21253 # ifdef HAVE_SYS_DIR_H
21254 #  include <sys/dir.h>
21255 # endif /* SYSDIR */
21256 # ifdef HAVE_NDIR_H
21257 #  include <ndir.h>
21258 # endif
21259 #endif /* HAVE_DIRENT_H */
21260 main()
21261 {
21262 DIR *dir;
21263 int fd, err;
21264 err = mkdir("/tmp/bash-aclocal", 0700);
21265 if (err < 0) {
21266   perror("mkdir");
21267   exit(1);
21268 }
21269 unlink("/tmp/bash-aclocal/not_a_directory");
21270 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
21271 write(fd, "\n", 1);
21272 close(fd);
21273 dir = opendir("/tmp/bash-aclocal/not_a_directory");
21274 unlink("/tmp/bash-aclocal/not_a_directory");
21275 rmdir("/tmp/bash-aclocal");
21276 exit (dir == 0);
21277 }
21278 _ACEOF
21279 rm -f conftest$ac_exeext
21280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21281   (eval $ac_link) 2>&5
21282   ac_status=$?
21283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286   (eval $ac_try) 2>&5
21287   ac_status=$?
21288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289   (exit $ac_status); }; }; then
21290   bash_cv_opendir_not_robust=yes
21291 else
21292   echo "$as_me: program exited with status $ac_status" >&5
21293 echo "$as_me: failed program was:" >&5
21294 cat conftest.$ac_ext >&5
21295 ( exit $ac_status )
21296 bash_cv_opendir_not_robust=no
21297 fi
21298 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21299 fi
21300 fi
21301
21302 echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
21303 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
21304 if test $bash_cv_opendir_not_robust = yes; then
21305 cat >>confdefs.h <<\_ACEOF
21306 #define OPENDIR_NOT_ROBUST 1
21307 _ACEOF
21308
21309 fi
21310
21311 echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
21312 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
21313 if test "${bash_cv_ulimit_maxfds+set}" = set; then
21314   echo $ECHO_N "(cached) $ECHO_C" >&6
21315 else
21316   if test "$cross_compiling" = yes; then
21317   { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
21318 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
21319     bash_cv_ulimit_maxfds=no
21320
21321 else
21322   cat >conftest.$ac_ext <<_ACEOF
21323 #line $LINENO "configure"
21324 #include "confdefs.h"
21325
21326 main()
21327 {
21328 long maxfds = ulimit(4, 0L);
21329 exit (maxfds == -1L);
21330 }
21331
21332 _ACEOF
21333 rm -f conftest$ac_exeext
21334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21335   (eval $ac_link) 2>&5
21336   ac_status=$?
21337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340   (eval $ac_try) 2>&5
21341   ac_status=$?
21342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343   (exit $ac_status); }; }; then
21344   bash_cv_ulimit_maxfds=yes
21345 else
21346   echo "$as_me: program exited with status $ac_status" >&5
21347 echo "$as_me: failed program was:" >&5
21348 cat conftest.$ac_ext >&5
21349 ( exit $ac_status )
21350 bash_cv_ulimit_maxfds=no
21351 fi
21352 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21353 fi
21354 fi
21355
21356 echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
21357 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
21358 if test $bash_cv_ulimit_maxfds = yes; then
21359 cat >>confdefs.h <<\_ACEOF
21360 #define ULIMIT_MAXFDS 1
21361 _ACEOF
21362
21363 fi
21364
21365 echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
21366 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
21367 if test "${bash_cv_getenv_redef+set}" = set; then
21368   echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370   if test "$cross_compiling" = yes; then
21371   { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
21372 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
21373     bash_cv_getenv_redef=yes
21374
21375 else
21376   cat >conftest.$ac_ext <<_ACEOF
21377 #line $LINENO "configure"
21378 #include "confdefs.h"
21379
21380 #ifdef HAVE_UNISTD_H
21381 #  include <unistd.h>
21382 #endif
21383 #ifndef __STDC__
21384 #  ifndef const
21385 #    define const
21386 #  endif
21387 #endif
21388 char *
21389 getenv (name)
21390 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
21391      const char *name;
21392 #else
21393      char const *name;
21394 #endif /* !__linux__ && !__bsdi__ && !convex */
21395 {
21396 return "42";
21397 }
21398 main()
21399 {
21400 char *s;
21401 /* The next allows this program to run, but does not allow bash to link
21402    when it redefines getenv.  I'm not really interested in figuring out
21403    why not. */
21404 #if defined (NeXT)
21405 exit(1);
21406 #endif
21407 s = getenv("ABCDE");
21408 exit(s == 0);   /* force optimizer to leave getenv in */
21409 }
21410
21411 _ACEOF
21412 rm -f conftest$ac_exeext
21413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21414   (eval $ac_link) 2>&5
21415   ac_status=$?
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419   (eval $ac_try) 2>&5
21420   ac_status=$?
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); }; }; then
21423   bash_cv_getenv_redef=yes
21424 else
21425   echo "$as_me: program exited with status $ac_status" >&5
21426 echo "$as_me: failed program was:" >&5
21427 cat conftest.$ac_ext >&5
21428 ( exit $ac_status )
21429 bash_cv_getenv_redef=no
21430 fi
21431 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21432 fi
21433 fi
21434
21435 echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
21436 echo "${ECHO_T}$bash_cv_getenv_redef" >&6
21437 if test $bash_cv_getenv_redef = yes; then
21438 cat >>confdefs.h <<\_ACEOF
21439 #define CAN_REDEFINE_GETENV 1
21440 _ACEOF
21441
21442 fi
21443
21444 if test "$ac_cv_func_getcwd" = "yes"; then
21445 echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory" >&5
21446 echo $ECHO_N "checking if getcwd() will dynamically allocate memory... $ECHO_C" >&6
21447 if test "${bash_cv_getcwd_malloc+set}" = set; then
21448   echo $ECHO_N "(cached) $ECHO_C" >&6
21449 else
21450   if test "$cross_compiling" = yes; then
21451   { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
21452 echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
21453     bash_cv_getcwd_malloc=no
21454
21455 else
21456   cat >conftest.$ac_ext <<_ACEOF
21457 #line $LINENO "configure"
21458 #include "confdefs.h"
21459
21460 #include <stdio.h>
21461 #ifdef HAVE_UNISTD_H
21462 #include <unistd.h>
21463 #endif
21464
21465 main()
21466 {
21467         char    *xpwd;
21468         xpwd = getcwd(0, 0);
21469         exit (xpwd == 0);
21470 }
21471
21472 _ACEOF
21473 rm -f conftest$ac_exeext
21474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21475   (eval $ac_link) 2>&5
21476   ac_status=$?
21477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480   (eval $ac_try) 2>&5
21481   ac_status=$?
21482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483   (exit $ac_status); }; }; then
21484   bash_cv_getcwd_malloc=yes
21485 else
21486   echo "$as_me: program exited with status $ac_status" >&5
21487 echo "$as_me: failed program was:" >&5
21488 cat conftest.$ac_ext >&5
21489 ( exit $ac_status )
21490 bash_cv_getcwd_malloc=no
21491 fi
21492 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21493 fi
21494 fi
21495
21496 echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
21497 echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6
21498 if test $bash_cv_getcwd_malloc = no; then
21499 cat >>confdefs.h <<\_ACEOF
21500 #define GETCWD_BROKEN 1
21501 _ACEOF
21502
21503 LIBOBJS="$LIBOBJS getcwd.$ac_objext"
21504 fi
21505
21506 fi
21507
21508 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
21509 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
21510 if test "${bash_cv_func_sigsetjmp+set}" = set; then
21511   echo $ECHO_N "(cached) $ECHO_C" >&6
21512 else
21513   if test "$cross_compiling" = yes; then
21514   { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
21515 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
21516      bash_cv_func_sigsetjmp=missing
21517
21518 else
21519   cat >conftest.$ac_ext <<_ACEOF
21520 #line $LINENO "configure"
21521 #include "confdefs.h"
21522
21523 #ifdef HAVE_UNISTD_H
21524 #include <unistd.h>
21525 #endif
21526 #include <sys/types.h>
21527 #include <signal.h>
21528 #include <setjmp.h>
21529
21530 main()
21531 {
21532 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
21533 exit (1);
21534 #else
21535
21536 int code;
21537 sigset_t set, oset;
21538 sigjmp_buf xx;
21539
21540 /* get the mask */
21541 sigemptyset(&set);
21542 sigemptyset(&oset);
21543 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
21544 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
21545
21546 /* save it */
21547 code = sigsetjmp(xx, 1);
21548 if (code)
21549   exit(0);      /* could get sigmask and compare to oset here. */
21550
21551 /* change it */
21552 sigaddset(&set, SIGINT);
21553 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
21554
21555 /* and siglongjmp */
21556 siglongjmp(xx, 10);
21557 exit(1);
21558 #endif
21559 }
21560 _ACEOF
21561 rm -f conftest$ac_exeext
21562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21563   (eval $ac_link) 2>&5
21564   ac_status=$?
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568   (eval $ac_try) 2>&5
21569   ac_status=$?
21570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571   (exit $ac_status); }; }; then
21572   bash_cv_func_sigsetjmp=present
21573 else
21574   echo "$as_me: program exited with status $ac_status" >&5
21575 echo "$as_me: failed program was:" >&5
21576 cat conftest.$ac_ext >&5
21577 ( exit $ac_status )
21578 bash_cv_func_sigsetjmp=missing
21579 fi
21580 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21581 fi
21582 fi
21583
21584 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
21585 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
21586 if test $bash_cv_func_sigsetjmp = present; then
21587 cat >>confdefs.h <<\_ACEOF
21588 #define HAVE_POSIX_SIGSETJMP 1
21589 _ACEOF
21590
21591 fi
21592
21593
21594 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
21595 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
21596 if test "${bash_cv_func_strcoll_broken+set}" = set; then
21597   echo $ECHO_N "(cached) $ECHO_C" >&6
21598 else
21599   if test "$cross_compiling" = yes; then
21600   { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
21601 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
21602     bash_cv_func_strcoll_broken=no
21603
21604 else
21605   cat >conftest.$ac_ext <<_ACEOF
21606 #line $LINENO "configure"
21607 #include "confdefs.h"
21608
21609 #include <stdio.h>
21610 #if defined (HAVE_LOCALE_H)
21611 #include <locale.h>
21612 #endif
21613
21614 main(c, v)
21615 int     c;
21616 char    *v[];
21617 {
21618         int     r1, r2;
21619         char    *deflocale, *defcoll;
21620
21621 #ifdef HAVE_SETLOCALE
21622         deflocale = setlocale(LC_ALL, "");
21623         defcoll = setlocale(LC_COLLATE, "");
21624 #endif
21625
21626 #ifdef HAVE_STRCOLL
21627         /* These two values are taken from tests/glob-test. */
21628         r1 = strcoll("abd", "aXd");
21629 #else
21630         r1 = 0;
21631 #endif
21632         r2 = strcmp("abd", "aXd");
21633
21634         /* These two should both be greater than 0.  It is permissible for
21635            a system to return different values, as long as the sign is the
21636            same. */
21637
21638         /* Exit with 1 (failure) if these two values are both > 0, since
21639            this tests whether strcoll(3) is broken with respect to strcmp(3)
21640            in the default locale. */
21641         exit (r1 > 0 && r2 > 0);
21642 }
21643
21644 _ACEOF
21645 rm -f conftest$ac_exeext
21646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21647   (eval $ac_link) 2>&5
21648   ac_status=$?
21649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652   (eval $ac_try) 2>&5
21653   ac_status=$?
21654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655   (exit $ac_status); }; }; then
21656   bash_cv_func_strcoll_broken=yes
21657 else
21658   echo "$as_me: program exited with status $ac_status" >&5
21659 echo "$as_me: failed program was:" >&5
21660 cat conftest.$ac_ext >&5
21661 ( exit $ac_status )
21662 bash_cv_func_strcoll_broken=no
21663 fi
21664 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21665 fi
21666 fi
21667
21668 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
21669 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
21670 if test $bash_cv_func_strcoll_broken = yes; then
21671 cat >>confdefs.h <<\_ACEOF
21672 #define STRCOLL_BROKEN 1
21673 _ACEOF
21674
21675 fi
21676
21677
21678
21679 if test "$ac_cv_func_putenv" = "yes"; then
21680
21681
21682
21683 echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
21684 echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6
21685 if test "${bash_cv_std_putenv+set}" = set; then
21686   echo $ECHO_N "(cached) $ECHO_C" >&6
21687 else
21688   cat >conftest.$ac_ext <<_ACEOF
21689 #line $LINENO "configure"
21690 #include "confdefs.h"
21691
21692 #if STDC_HEADERS
21693 #include <stdlib.h>
21694 #include <stddef.h>
21695 #endif
21696 #ifndef __STDC__
21697 #  ifndef const
21698 #    define const
21699 #  endif
21700 #endif
21701 #ifdef PROTOTYPES
21702 extern int putenv (char *);
21703 #else
21704 extern int putenv ();
21705 #endif
21706
21707 #ifdef F77_DUMMY_MAIN
21708 #  ifdef __cplusplus
21709      extern "C"
21710 #  endif
21711    int F77_DUMMY_MAIN() { return 1; }
21712 #endif
21713 int
21714 main ()
21715 {
21716 return (putenv == 0);
21717   ;
21718   return 0;
21719 }
21720 _ACEOF
21721 rm -f conftest.$ac_objext conftest$ac_exeext
21722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21723   (eval $ac_link) 2>&5
21724   ac_status=$?
21725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726   (exit $ac_status); } &&
21727          { ac_try='test -s conftest$ac_exeext'
21728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21729   (eval $ac_try) 2>&5
21730   ac_status=$?
21731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732   (exit $ac_status); }; }; then
21733   bash_cv_std_putenv=yes
21734 else
21735   echo "$as_me: failed program was:" >&5
21736 cat conftest.$ac_ext >&5
21737 bash_cv_std_putenv=no
21738
21739 fi
21740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21741 fi
21742 echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
21743 echo "${ECHO_T}$bash_cv_std_putenv" >&6
21744 if test $bash_cv_std_putenv = yes; then
21745 cat >>confdefs.h <<\_ACEOF
21746 #define HAVE_STD_PUTENV 1
21747 _ACEOF
21748
21749 fi
21750
21751 else
21752 cat >>confdefs.h <<\_ACEOF
21753 #define HAVE_STD_PUTENV 1
21754 _ACEOF
21755
21756 fi
21757 if test "$ac_cv_func_unsetenv" = "yes"; then
21758
21759
21760
21761 echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
21762 echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6
21763 if test "${bash_cv_std_unsetenv+set}" = set; then
21764   echo $ECHO_N "(cached) $ECHO_C" >&6
21765 else
21766   cat >conftest.$ac_ext <<_ACEOF
21767 #line $LINENO "configure"
21768 #include "confdefs.h"
21769
21770 #if STDC_HEADERS
21771 #include <stdlib.h>
21772 #include <stddef.h>
21773 #endif
21774 #ifndef __STDC__
21775 #  ifndef const
21776 #    define const
21777 #  endif
21778 #endif
21779 #ifdef PROTOTYPES
21780 extern int unsetenv (const char *);
21781 #else
21782 extern int unsetenv ();
21783 #endif
21784
21785 #ifdef F77_DUMMY_MAIN
21786 #  ifdef __cplusplus
21787      extern "C"
21788 #  endif
21789    int F77_DUMMY_MAIN() { return 1; }
21790 #endif
21791 int
21792 main ()
21793 {
21794 return (unsetenv == 0);
21795   ;
21796   return 0;
21797 }
21798 _ACEOF
21799 rm -f conftest.$ac_objext conftest$ac_exeext
21800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21801   (eval $ac_link) 2>&5
21802   ac_status=$?
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); } &&
21805          { ac_try='test -s conftest$ac_exeext'
21806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807   (eval $ac_try) 2>&5
21808   ac_status=$?
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); }; }; then
21811   bash_cv_std_unsetenv=yes
21812 else
21813   echo "$as_me: failed program was:" >&5
21814 cat conftest.$ac_ext >&5
21815 bash_cv_std_unsetenv=no
21816
21817 fi
21818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21819 fi
21820 echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
21821 echo "${ECHO_T}$bash_cv_std_unsetenv" >&6
21822 if test $bash_cv_std_unsetenv = yes; then
21823 cat >>confdefs.h <<\_ACEOF
21824 #define HAVE_STD_UNSETENV 1
21825 _ACEOF
21826
21827 fi
21828
21829 else
21830 cat >>confdefs.h <<\_ACEOF
21831 #define HAVE_STD_UNSETENV 1
21832 _ACEOF
21833
21834 fi
21835
21836 echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
21837 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
21838 if test "${bash_cv_printf_a_format+set}" = set; then
21839   echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841   if test "$cross_compiling" = yes; then
21842   { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
21843 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
21844     bash_cv_printf_a_format=no
21845
21846 else
21847   cat >conftest.$ac_ext <<_ACEOF
21848 #line $LINENO "configure"
21849 #include "confdefs.h"
21850
21851 #include <stdio.h>
21852 #include <string.h>
21853
21854 int
21855 main()
21856 {
21857         double y = 0.0;
21858         char abuf[1024];
21859
21860         sprintf(abuf, "%A", y);
21861         exit(strchr(abuf, 'P') == (char *)0);
21862 }
21863
21864 _ACEOF
21865 rm -f conftest$ac_exeext
21866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21867   (eval $ac_link) 2>&5
21868   ac_status=$?
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872   (eval $ac_try) 2>&5
21873   ac_status=$?
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); }; }; then
21876   bash_cv_printf_a_format=yes
21877 else
21878   echo "$as_me: program exited with status $ac_status" >&5
21879 echo "$as_me: failed program was:" >&5
21880 cat conftest.$ac_ext >&5
21881 ( exit $ac_status )
21882 bash_cv_printf_a_format=no
21883 fi
21884 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21885 fi
21886 fi
21887
21888 echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
21889 echo "${ECHO_T}$bash_cv_printf_a_format" >&6
21890 if test $bash_cv_printf_a_format = yes; then
21891 cat >>confdefs.h <<\_ACEOF
21892 #define HAVE_PRINTF_A_FORMAT 1
21893 _ACEOF
21894
21895 fi
21896
21897
21898
21899
21900 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
21901 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
21902 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
21903   echo $ECHO_N "(cached) $ECHO_C" >&6
21904 else
21905   if test "$cross_compiling" = yes; then
21906   { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
21907 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
21908     bash_cv_must_reinstall_sighandlers=no
21909
21910 else
21911   cat >conftest.$ac_ext <<_ACEOF
21912 #line $LINENO "configure"
21913 #include "confdefs.h"
21914
21915 #include <signal.h>
21916 #ifdef HAVE_UNISTD_H
21917 #include <unistd.h>
21918 #endif
21919
21920 typedef RETSIGTYPE sigfunc();
21921
21922 int nsigint;
21923
21924 #ifdef HAVE_POSIX_SIGNALS
21925 sigfunc *
21926 set_signal_handler(sig, handler)
21927      int sig;
21928      sigfunc *handler;
21929 {
21930   struct sigaction act, oact;
21931   act.sa_handler = handler;
21932   act.sa_flags = 0;
21933   sigemptyset (&act.sa_mask);
21934   sigemptyset (&oact.sa_mask);
21935   sigaction (sig, &act, &oact);
21936   return (oact.sa_handler);
21937 }
21938 #else
21939 #define set_signal_handler(s, h) signal(s, h)
21940 #endif
21941
21942 RETSIGTYPE
21943 sigint(s)
21944 int s;
21945 {
21946   nsigint++;
21947 }
21948
21949 main()
21950 {
21951         nsigint = 0;
21952         set_signal_handler(SIGINT, sigint);
21953         kill((int)getpid(), SIGINT);
21954         kill((int)getpid(), SIGINT);
21955         exit(nsigint != 2);
21956 }
21957
21958 _ACEOF
21959 rm -f conftest$ac_exeext
21960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21961   (eval $ac_link) 2>&5
21962   ac_status=$?
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966   (eval $ac_try) 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); }; }; then
21970   bash_cv_must_reinstall_sighandlers=no
21971 else
21972   echo "$as_me: program exited with status $ac_status" >&5
21973 echo "$as_me: failed program was:" >&5
21974 cat conftest.$ac_ext >&5
21975 ( exit $ac_status )
21976 bash_cv_must_reinstall_sighandlers=yes
21977 fi
21978 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21979 fi
21980 fi
21981
21982 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
21983 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
21984 if test $bash_cv_must_reinstall_sighandlers = yes; then
21985 cat >>confdefs.h <<\_ACEOF
21986 #define MUST_REINSTALL_SIGHANDLERS 1
21987 _ACEOF
21988
21989 fi
21990
21991
21992 echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
21993 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
21994 if test "${bash_cv_job_control_missing+set}" = set; then
21995   echo $ECHO_N "(cached) $ECHO_C" >&6
21996 else
21997   if test "$cross_compiling" = yes; then
21998   { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
21999 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
22000      bash_cv_job_control_missing=missing
22001
22002 else
22003   cat >conftest.$ac_ext <<_ACEOF
22004 #line $LINENO "configure"
22005 #include "confdefs.h"
22006
22007 #include <sys/types.h>
22008 #ifdef HAVE_SYS_WAIT_H
22009 #include <sys/wait.h>
22010 #endif
22011 #ifdef HAVE_UNISTD_H
22012 #include <unistd.h>
22013 #endif
22014 #include <signal.h>
22015
22016 /* Add more tests in here as appropriate. */
22017 main()
22018 {
22019 /* signal type */
22020 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
22021 exit(1);
22022 #endif
22023
22024 /* signals and tty control. */
22025 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
22026 exit (1);
22027 #endif
22028
22029 /* process control */
22030 #if !defined (WNOHANG) || !defined (WUNTRACED)
22031 exit(1);
22032 #endif
22033
22034 /* Posix systems have tcgetpgrp and waitpid. */
22035 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
22036 exit(1);
22037 #endif
22038
22039 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
22040 exit(1);
22041 #endif
22042
22043 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
22044 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
22045 exit(1);
22046 #endif
22047
22048 exit(0);
22049 }
22050 _ACEOF
22051 rm -f conftest$ac_exeext
22052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22053   (eval $ac_link) 2>&5
22054   ac_status=$?
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058   (eval $ac_try) 2>&5
22059   ac_status=$?
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); }; }; then
22062   bash_cv_job_control_missing=present
22063 else
22064   echo "$as_me: program exited with status $ac_status" >&5
22065 echo "$as_me: failed program was:" >&5
22066 cat conftest.$ac_ext >&5
22067 ( exit $ac_status )
22068 bash_cv_job_control_missing=missing
22069 fi
22070 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22071 fi
22072 fi
22073
22074 echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
22075 echo "${ECHO_T}$bash_cv_job_control_missing" >&6
22076 if test $bash_cv_job_control_missing = missing; then
22077 cat >>confdefs.h <<\_ACEOF
22078 #define JOB_CONTROL_MISSING 1
22079 _ACEOF
22080
22081 fi
22082
22083 echo "$as_me:$LINENO: checking for presence of named pipes" >&5
22084 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
22085 if test "${bash_cv_sys_named_pipes+set}" = set; then
22086   echo $ECHO_N "(cached) $ECHO_C" >&6
22087 else
22088   if test "$cross_compiling" = yes; then
22089   { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
22090 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
22091      bash_cv_sys_named_pipes=missing
22092
22093 else
22094   cat >conftest.$ac_ext <<_ACEOF
22095 #line $LINENO "configure"
22096 #include "confdefs.h"
22097
22098 #include <sys/types.h>
22099 #include <sys/stat.h>
22100 #ifdef HAVE_UNISTD_H
22101 #include <unistd.h>
22102 #endif
22103
22104 /* Add more tests in here as appropriate. */
22105 main()
22106 {
22107 int fd, err;
22108
22109 #if defined (HAVE_MKFIFO)
22110 exit (0);
22111 #endif
22112
22113 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
22114 exit (1);
22115 #endif
22116
22117 #if defined (NeXT)
22118 exit (1);
22119 #endif
22120 err = mkdir("/tmp/bash-aclocal", 0700);
22121 if (err < 0) {
22122   perror ("mkdir");
22123   exit(1);
22124 }
22125 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
22126 if (fd == -1) {
22127   rmdir ("/tmp/bash-aclocal");
22128   exit (1);
22129 }
22130 close(fd);
22131 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
22132 rmdir ("/tmp/bash-aclocal");
22133 exit(0);
22134 }
22135 _ACEOF
22136 rm -f conftest$ac_exeext
22137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22138   (eval $ac_link) 2>&5
22139   ac_status=$?
22140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143   (eval $ac_try) 2>&5
22144   ac_status=$?
22145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146   (exit $ac_status); }; }; then
22147   bash_cv_sys_named_pipes=present
22148 else
22149   echo "$as_me: program exited with status $ac_status" >&5
22150 echo "$as_me: failed program was:" >&5
22151 cat conftest.$ac_ext >&5
22152 ( exit $ac_status )
22153 bash_cv_sys_named_pipes=missing
22154 fi
22155 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22156 fi
22157 fi
22158
22159 echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
22160 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
22161 if test $bash_cv_sys_named_pipes = missing; then
22162 cat >>confdefs.h <<\_ACEOF
22163 #define NAMED_PIPES_MISSING 1
22164 _ACEOF
22165
22166 fi
22167
22168
22169 echo "$as_me:$LINENO: checking POSIX termios" >&5
22170 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
22171 if test "${ac_cv_sys_posix_termios+set}" = set; then
22172   echo $ECHO_N "(cached) $ECHO_C" >&6
22173 else
22174   cat >conftest.$ac_ext <<_ACEOF
22175 #line $LINENO "configure"
22176 #include "confdefs.h"
22177 #include <sys/types.h>
22178 #include <unistd.h>
22179 #include <termios.h>
22180 #ifdef F77_DUMMY_MAIN
22181 #  ifdef __cplusplus
22182      extern "C"
22183 #  endif
22184    int F77_DUMMY_MAIN() { return 1; }
22185 #endif
22186 int
22187 main ()
22188 {
22189 /* SunOS 4.0.3 has termios.h but not the library calls.  */
22190    tcgetattr(0, 0);
22191   ;
22192   return 0;
22193 }
22194 _ACEOF
22195 rm -f conftest.$ac_objext conftest$ac_exeext
22196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22197   (eval $ac_link) 2>&5
22198   ac_status=$?
22199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200   (exit $ac_status); } &&
22201          { ac_try='test -s conftest$ac_exeext'
22202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203   (eval $ac_try) 2>&5
22204   ac_status=$?
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); }; }; then
22207   ac_cv_sys_posix_termios=yes
22208 else
22209   echo "$as_me: failed program was:" >&5
22210 cat conftest.$ac_ext >&5
22211 ac_cv_sys_posix_termios=no
22212 fi
22213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22214 fi
22215 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
22216 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
22217
22218 if test $ac_cv_sys_posix_termios = yes; then
22219   echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
22220 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
22221 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
22222   echo $ECHO_N "(cached) $ECHO_C" >&6
22223 else
22224   cat >conftest.$ac_ext <<_ACEOF
22225 #line $LINENO "configure"
22226 #include "confdefs.h"
22227 #include <sys/types.h>
22228 #include <termios.h>
22229 #ifdef TIOCGWINSZ
22230   yes
22231 #endif
22232
22233 _ACEOF
22234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22235   egrep "yes" >/dev/null 2>&1; then
22236   ac_cv_sys_tiocgwinsz_in_termios_h=yes
22237 else
22238   ac_cv_sys_tiocgwinsz_in_termios_h=no
22239 fi
22240 rm -f conftest*
22241
22242 fi
22243 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
22244 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
22245
22246 fi
22247 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
22248   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
22249 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
22250 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
22251   echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253   cat >conftest.$ac_ext <<_ACEOF
22254 #line $LINENO "configure"
22255 #include "confdefs.h"
22256 #include <sys/types.h>
22257 #include <sys/ioctl.h>
22258 #ifdef TIOCGWINSZ
22259   yes
22260 #endif
22261
22262 _ACEOF
22263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22264   egrep "yes" >/dev/null 2>&1; then
22265   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
22266 else
22267   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
22268 fi
22269 rm -f conftest*
22270
22271 fi
22272 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
22273 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
22274
22275   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
22276
22277 cat >>confdefs.h <<\_ACEOF
22278 #define GWINSZ_IN_SYS_IOCTL 1
22279 _ACEOF
22280
22281   fi
22282 fi
22283
22284 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
22285 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
22286 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
22287   echo $ECHO_N "(cached) $ECHO_C" >&6
22288 else
22289   cat >conftest.$ac_ext <<_ACEOF
22290 #line $LINENO "configure"
22291 #include "confdefs.h"
22292 #include <sys/types.h>
22293 #include <sys/ioctl.h>
22294 #ifdef F77_DUMMY_MAIN
22295 #  ifdef __cplusplus
22296      extern "C"
22297 #  endif
22298    int F77_DUMMY_MAIN() { return 1; }
22299 #endif
22300 int
22301 main ()
22302 {
22303 int x = TIOCSTAT;
22304   ;
22305   return 0;
22306 }
22307 _ACEOF
22308 rm -f conftest.$ac_objext
22309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22310   (eval $ac_compile) 2>&5
22311   ac_status=$?
22312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313   (exit $ac_status); } &&
22314          { ac_try='test -s conftest.$ac_objext'
22315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316   (eval $ac_try) 2>&5
22317   ac_status=$?
22318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319   (exit $ac_status); }; }; then
22320   bash_cv_tiocstat_in_ioctl=yes
22321 else
22322   echo "$as_me: failed program was:" >&5
22323 cat conftest.$ac_ext >&5
22324 bash_cv_tiocstat_in_ioctl=no
22325 fi
22326 rm -f conftest.$ac_objext conftest.$ac_ext
22327 fi
22328
22329 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
22330 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
22331 if test $bash_cv_tiocstat_in_ioctl = yes; then
22332 cat >>confdefs.h <<\_ACEOF
22333 #define TIOCSTAT_IN_SYS_IOCTL 1
22334 _ACEOF
22335
22336 fi
22337
22338 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
22339 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
22340 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
22341   echo $ECHO_N "(cached) $ECHO_C" >&6
22342 else
22343   cat >conftest.$ac_ext <<_ACEOF
22344 #line $LINENO "configure"
22345 #include "confdefs.h"
22346 #include <sys/types.h>
22347 #include <sys/ioctl.h>
22348 #ifdef F77_DUMMY_MAIN
22349 #  ifdef __cplusplus
22350      extern "C"
22351 #  endif
22352    int F77_DUMMY_MAIN() { return 1; }
22353 #endif
22354 int
22355 main ()
22356 {
22357 int x = FIONREAD;
22358   ;
22359   return 0;
22360 }
22361 _ACEOF
22362 rm -f conftest.$ac_objext
22363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22364   (eval $ac_compile) 2>&5
22365   ac_status=$?
22366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367   (exit $ac_status); } &&
22368          { ac_try='test -s conftest.$ac_objext'
22369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370   (eval $ac_try) 2>&5
22371   ac_status=$?
22372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373   (exit $ac_status); }; }; then
22374   bash_cv_fionread_in_ioctl=yes
22375 else
22376   echo "$as_me: failed program was:" >&5
22377 cat conftest.$ac_ext >&5
22378 bash_cv_fionread_in_ioctl=no
22379 fi
22380 rm -f conftest.$ac_objext conftest.$ac_ext
22381 fi
22382
22383 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
22384 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
22385 if test $bash_cv_fionread_in_ioctl = yes; then
22386 cat >>confdefs.h <<\_ACEOF
22387 #define FIONREAD_IN_SYS_IOCTL 1
22388 _ACEOF
22389
22390 fi
22391
22392
22393
22394 echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
22395 echo $ECHO_N "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... $ECHO_C" >&6
22396 if test "${bash_cv_wcontinued_broken+set}" = set; then
22397   echo $ECHO_N "(cached) $ECHO_C" >&6
22398 else
22399   if test "$cross_compiling" = yes; then
22400   { echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
22401 echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
22402     bash_cv_wcontinued_broken=no
22403
22404 else
22405   cat >conftest.$ac_ext <<_ACEOF
22406 #line $LINENO "configure"
22407 #include "confdefs.h"
22408
22409 #include <sys/types.h>
22410 #include <sys/wait.h>
22411 #include <unistd.h>
22412 #include <errno.h>
22413
22414 #ifndef errno
22415 extern int errno;
22416 #endif
22417 main()
22418 {
22419         int     x;
22420
22421         x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
22422         if (x == -1 && errno == EINVAL)
22423                 exit (1);
22424         else
22425                 exit (0);
22426 }
22427
22428 _ACEOF
22429 rm -f conftest$ac_exeext
22430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22431   (eval $ac_link) 2>&5
22432   ac_status=$?
22433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436   (eval $ac_try) 2>&5
22437   ac_status=$?
22438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439   (exit $ac_status); }; }; then
22440   bash_cv_wcontinued_broken=no
22441 else
22442   echo "$as_me: program exited with status $ac_status" >&5
22443 echo "$as_me: failed program was:" >&5
22444 cat conftest.$ac_ext >&5
22445 ( exit $ac_status )
22446 bash_cv_wcontinued_broken=yes
22447 fi
22448 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22449 fi
22450 fi
22451
22452 echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
22453 echo "${ECHO_T}$bash_cv_wcontinued_broken" >&6
22454 if test $bash_cv_wcontinued_broken = yes; then
22455 cat >>confdefs.h <<\_ACEOF
22456 #define WCONTINUED_BROKEN 1
22457 _ACEOF
22458
22459 fi
22460
22461
22462 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
22463 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
22464 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
22465   echo $ECHO_N "(cached) $ECHO_C" >&6
22466 else
22467   cat >conftest.$ac_ext <<_ACEOF
22468 #line $LINENO "configure"
22469 #include "confdefs.h"
22470 #include <sys/types.h>
22471 #ifdef F77_DUMMY_MAIN
22472 #  ifdef __cplusplus
22473      extern "C"
22474 #  endif
22475    int F77_DUMMY_MAIN() { return 1; }
22476 #endif
22477 int
22478 main ()
22479 {
22480 speed_t x;
22481   ;
22482   return 0;
22483 }
22484 _ACEOF
22485 rm -f conftest.$ac_objext
22486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22487   (eval $ac_compile) 2>&5
22488   ac_status=$?
22489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490   (exit $ac_status); } &&
22491          { ac_try='test -s conftest.$ac_objext'
22492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493   (eval $ac_try) 2>&5
22494   ac_status=$?
22495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); }; }; then
22497   bash_cv_speed_t_in_sys_types=yes
22498 else
22499   echo "$as_me: failed program was:" >&5
22500 cat conftest.$ac_ext >&5
22501 bash_cv_speed_t_in_sys_types=no
22502 fi
22503 rm -f conftest.$ac_objext conftest.$ac_ext
22504 fi
22505
22506 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
22507 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
22508 if test $bash_cv_speed_t_in_sys_types = yes; then
22509 cat >>confdefs.h <<\_ACEOF
22510 #define SPEED_T_IN_SYS_TYPES 1
22511 _ACEOF
22512
22513 fi
22514
22515 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
22516 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
22517 if test "${bash_cv_getpw_declared+set}" = set; then
22518   echo $ECHO_N "(cached) $ECHO_C" >&6
22519 else
22520   cat >conftest.$ac_ext <<_ACEOF
22521 #line $LINENO "configure"
22522 #include "confdefs.h"
22523
22524 #include <sys/types.h>
22525 #ifdef HAVE_UNISTD_H
22526 #  include <unistd.h>
22527 #endif
22528 #include <pwd.h>
22529
22530 _ACEOF
22531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22532   egrep "getpwuid" >/dev/null 2>&1; then
22533   bash_cv_getpw_declared=yes
22534 else
22535   bash_cv_getpw_declared=no
22536 fi
22537 rm -f conftest*
22538
22539 fi
22540
22541 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
22542 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
22543 if test $bash_cv_getpw_declared = yes; then
22544 cat >>confdefs.h <<\_ACEOF
22545 #define HAVE_GETPW_DECLS 1
22546 _ACEOF
22547
22548 fi
22549
22550 echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
22551 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
22552 if test "${bash_cv_unusable_rtsigs+set}" = set; then
22553   echo $ECHO_N "(cached) $ECHO_C" >&6
22554 else
22555   if test "$cross_compiling" = yes; then
22556   { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
22557 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
22558      bash_cv_unusable_rtsigs=yes
22559
22560 else
22561   cat >conftest.$ac_ext <<_ACEOF
22562 #line $LINENO "configure"
22563 #include "confdefs.h"
22564
22565 #include <sys/types.h>
22566 #include <signal.h>
22567
22568 #ifndef NSIG
22569 #  define NSIG 64
22570 #endif
22571
22572 main ()
22573 {
22574   int n_sigs = 2 * NSIG;
22575 #ifdef SIGRTMIN
22576   int rtmin = SIGRTMIN;
22577 #else
22578   int rtmin = 0;
22579 #endif
22580
22581   exit(rtmin < n_sigs);
22582 }
22583 _ACEOF
22584 rm -f conftest$ac_exeext
22585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22586   (eval $ac_link) 2>&5
22587   ac_status=$?
22588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22591   (eval $ac_try) 2>&5
22592   ac_status=$?
22593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594   (exit $ac_status); }; }; then
22595   bash_cv_unusable_rtsigs=yes
22596 else
22597   echo "$as_me: program exited with status $ac_status" >&5
22598 echo "$as_me: failed program was:" >&5
22599 cat conftest.$ac_ext >&5
22600 ( exit $ac_status )
22601 bash_cv_unusable_rtsigs=no
22602 fi
22603 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22604 fi
22605 fi
22606
22607 echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
22608 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
22609 if test $bash_cv_unusable_rtsigs = yes; then
22610 cat >>confdefs.h <<\_ACEOF
22611 #define UNUSABLE_RT_SIGNALS 1
22612 _ACEOF
22613
22614 fi
22615
22616
22617
22618
22619
22620 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
22621   SIGLIST_O=siglist.o
22622 else
22623   SIGLIST_O=
22624 fi
22625
22626
22627
22628 case "$host_os" in
22629 hpux*)  echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
22630 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
22631 if test "${bash_cv_kernel_rlimit+set}" = set; then
22632   echo $ECHO_N "(cached) $ECHO_C" >&6
22633 else
22634   cat >conftest.$ac_ext <<_ACEOF
22635 #line $LINENO "configure"
22636 #include "confdefs.h"
22637
22638 #include <sys/types.h>
22639 #include <sys/resource.h>
22640
22641 #ifdef F77_DUMMY_MAIN
22642 #  ifdef __cplusplus
22643      extern "C"
22644 #  endif
22645    int F77_DUMMY_MAIN() { return 1; }
22646 #endif
22647 int
22648 main ()
22649 {
22650
22651   int f;
22652   f = RLIMIT_DATA;
22653
22654   ;
22655   return 0;
22656 }
22657 _ACEOF
22658 rm -f conftest.$ac_objext
22659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22660   (eval $ac_compile) 2>&5
22661   ac_status=$?
22662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663   (exit $ac_status); } &&
22664          { ac_try='test -s conftest.$ac_objext'
22665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666   (eval $ac_try) 2>&5
22667   ac_status=$?
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); }; }; then
22670   bash_cv_kernel_rlimit=no
22671 else
22672   echo "$as_me: failed program was:" >&5
22673 cat conftest.$ac_ext >&5
22674 cat >conftest.$ac_ext <<_ACEOF
22675 #line $LINENO "configure"
22676 #include "confdefs.h"
22677
22678 #include <sys/types.h>
22679 #define _KERNEL
22680 #include <sys/resource.h>
22681 #undef _KERNEL
22682
22683 #ifdef F77_DUMMY_MAIN
22684 #  ifdef __cplusplus
22685      extern "C"
22686 #  endif
22687    int F77_DUMMY_MAIN() { return 1; }
22688 #endif
22689 int
22690 main ()
22691 {
22692
22693         int f;
22694         f = RLIMIT_DATA;
22695
22696   ;
22697   return 0;
22698 }
22699 _ACEOF
22700 rm -f conftest.$ac_objext
22701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22702   (eval $ac_compile) 2>&5
22703   ac_status=$?
22704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705   (exit $ac_status); } &&
22706          { ac_try='test -s conftest.$ac_objext'
22707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708   (eval $ac_try) 2>&5
22709   ac_status=$?
22710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711   (exit $ac_status); }; }; then
22712   bash_cv_kernel_rlimit=yes
22713 else
22714   echo "$as_me: failed program was:" >&5
22715 cat conftest.$ac_ext >&5
22716 bash_cv_kernel_rlimit=no
22717 fi
22718 rm -f conftest.$ac_objext conftest.$ac_ext
22719
22720 fi
22721 rm -f conftest.$ac_objext conftest.$ac_ext
22722 fi
22723
22724 echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
22725 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
22726 if test $bash_cv_kernel_rlimit = yes; then
22727 cat >>confdefs.h <<\_ACEOF
22728 #define RLIMIT_NEEDS_KERNEL 1
22729 _ACEOF
22730
22731 fi
22732  ;;
22733 esac
22734
22735 if test "$opt_readline" = yes; then
22736 case "$host_os" in
22737 aix*)   prefer_curses=yes ;;
22738 esac
22739
22740 if test "X$bash_cv_termcap_lib" = "X"; then
22741 _bash_needmsg=yes
22742 else
22743 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
22744 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
22745 _bash_needmsg=
22746 fi
22747 if test "${bash_cv_termcap_lib+set}" = set; then
22748   echo $ECHO_N "(cached) $ECHO_C" >&6
22749 else
22750   echo "$as_me:$LINENO: checking for tgetent" >&5
22751 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
22752 if test "${ac_cv_func_tgetent+set}" = set; then
22753   echo $ECHO_N "(cached) $ECHO_C" >&6
22754 else
22755   cat >conftest.$ac_ext <<_ACEOF
22756 #line $LINENO "configure"
22757 #include "confdefs.h"
22758 /* System header to define __stub macros and hopefully few prototypes,
22759     which can conflict with char tgetent (); below.  */
22760 #include <assert.h>
22761 /* Override any gcc2 internal prototype to avoid an error.  */
22762 #ifdef __cplusplus
22763 extern "C"
22764 #endif
22765 /* We use char because int might match the return type of a gcc2
22766    builtin and then its argument prototype would still apply.  */
22767 char tgetent ();
22768 char (*f) ();
22769
22770 #ifdef F77_DUMMY_MAIN
22771 #  ifdef __cplusplus
22772      extern "C"
22773 #  endif
22774    int F77_DUMMY_MAIN() { return 1; }
22775 #endif
22776 int
22777 main ()
22778 {
22779 /* The GNU C library defines this for functions which it implements
22780     to always fail with ENOSYS.  Some functions are actually named
22781     something starting with __ and the normal name is an alias.  */
22782 #if defined (__stub_tgetent) || defined (__stub___tgetent)
22783 choke me
22784 #else
22785 f = tgetent;
22786 #endif
22787
22788   ;
22789   return 0;
22790 }
22791 _ACEOF
22792 rm -f conftest.$ac_objext conftest$ac_exeext
22793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22794   (eval $ac_link) 2>&5
22795   ac_status=$?
22796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797   (exit $ac_status); } &&
22798          { ac_try='test -s conftest$ac_exeext'
22799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22800   (eval $ac_try) 2>&5
22801   ac_status=$?
22802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803   (exit $ac_status); }; }; then
22804   ac_cv_func_tgetent=yes
22805 else
22806   echo "$as_me: failed program was:" >&5
22807 cat conftest.$ac_ext >&5
22808 ac_cv_func_tgetent=no
22809 fi
22810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22811 fi
22812 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
22813 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
22814 if test $ac_cv_func_tgetent = yes; then
22815   bash_cv_termcap_lib=libc
22816 else
22817   echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
22818 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
22819 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
22820   echo $ECHO_N "(cached) $ECHO_C" >&6
22821 else
22822   ac_check_lib_save_LIBS=$LIBS
22823 LIBS="-ltermcap  $LIBS"
22824 cat >conftest.$ac_ext <<_ACEOF
22825 #line $LINENO "configure"
22826 #include "confdefs.h"
22827
22828 /* Override any gcc2 internal prototype to avoid an error.  */
22829 #ifdef __cplusplus
22830 extern "C"
22831 #endif
22832 /* We use char because int might match the return type of a gcc2
22833    builtin and then its argument prototype would still apply.  */
22834 char tgetent ();
22835 #ifdef F77_DUMMY_MAIN
22836 #  ifdef __cplusplus
22837      extern "C"
22838 #  endif
22839    int F77_DUMMY_MAIN() { return 1; }
22840 #endif
22841 int
22842 main ()
22843 {
22844 tgetent ();
22845   ;
22846   return 0;
22847 }
22848 _ACEOF
22849 rm -f conftest.$ac_objext conftest$ac_exeext
22850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22851   (eval $ac_link) 2>&5
22852   ac_status=$?
22853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854   (exit $ac_status); } &&
22855          { ac_try='test -s conftest$ac_exeext'
22856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22857   (eval $ac_try) 2>&5
22858   ac_status=$?
22859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860   (exit $ac_status); }; }; then
22861   ac_cv_lib_termcap_tgetent=yes
22862 else
22863   echo "$as_me: failed program was:" >&5
22864 cat conftest.$ac_ext >&5
22865 ac_cv_lib_termcap_tgetent=no
22866 fi
22867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22868 LIBS=$ac_check_lib_save_LIBS
22869 fi
22870 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
22871 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
22872 if test $ac_cv_lib_termcap_tgetent = yes; then
22873   bash_cv_termcap_lib=libtermcap
22874 else
22875   echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
22876 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
22877 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
22878   echo $ECHO_N "(cached) $ECHO_C" >&6
22879 else
22880   ac_check_lib_save_LIBS=$LIBS
22881 LIBS="-ltinfo  $LIBS"
22882 cat >conftest.$ac_ext <<_ACEOF
22883 #line $LINENO "configure"
22884 #include "confdefs.h"
22885
22886 /* Override any gcc2 internal prototype to avoid an error.  */
22887 #ifdef __cplusplus
22888 extern "C"
22889 #endif
22890 /* We use char because int might match the return type of a gcc2
22891    builtin and then its argument prototype would still apply.  */
22892 char tgetent ();
22893 #ifdef F77_DUMMY_MAIN
22894 #  ifdef __cplusplus
22895      extern "C"
22896 #  endif
22897    int F77_DUMMY_MAIN() { return 1; }
22898 #endif
22899 int
22900 main ()
22901 {
22902 tgetent ();
22903   ;
22904   return 0;
22905 }
22906 _ACEOF
22907 rm -f conftest.$ac_objext conftest$ac_exeext
22908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22909   (eval $ac_link) 2>&5
22910   ac_status=$?
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); } &&
22913          { ac_try='test -s conftest$ac_exeext'
22914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915   (eval $ac_try) 2>&5
22916   ac_status=$?
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); }; }; then
22919   ac_cv_lib_tinfo_tgetent=yes
22920 else
22921   echo "$as_me: failed program was:" >&5
22922 cat conftest.$ac_ext >&5
22923 ac_cv_lib_tinfo_tgetent=no
22924 fi
22925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22926 LIBS=$ac_check_lib_save_LIBS
22927 fi
22928 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
22929 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
22930 if test $ac_cv_lib_tinfo_tgetent = yes; then
22931   bash_cv_termcap_lib=libtinfo
22932 else
22933   echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
22934 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
22935 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
22936   echo $ECHO_N "(cached) $ECHO_C" >&6
22937 else
22938   ac_check_lib_save_LIBS=$LIBS
22939 LIBS="-lcurses  $LIBS"
22940 cat >conftest.$ac_ext <<_ACEOF
22941 #line $LINENO "configure"
22942 #include "confdefs.h"
22943
22944 /* Override any gcc2 internal prototype to avoid an error.  */
22945 #ifdef __cplusplus
22946 extern "C"
22947 #endif
22948 /* We use char because int might match the return type of a gcc2
22949    builtin and then its argument prototype would still apply.  */
22950 char tgetent ();
22951 #ifdef F77_DUMMY_MAIN
22952 #  ifdef __cplusplus
22953      extern "C"
22954 #  endif
22955    int F77_DUMMY_MAIN() { return 1; }
22956 #endif
22957 int
22958 main ()
22959 {
22960 tgetent ();
22961   ;
22962   return 0;
22963 }
22964 _ACEOF
22965 rm -f conftest.$ac_objext conftest$ac_exeext
22966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22967   (eval $ac_link) 2>&5
22968   ac_status=$?
22969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970   (exit $ac_status); } &&
22971          { ac_try='test -s conftest$ac_exeext'
22972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973   (eval $ac_try) 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); }; }; then
22977   ac_cv_lib_curses_tgetent=yes
22978 else
22979   echo "$as_me: failed program was:" >&5
22980 cat conftest.$ac_ext >&5
22981 ac_cv_lib_curses_tgetent=no
22982 fi
22983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22984 LIBS=$ac_check_lib_save_LIBS
22985 fi
22986 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
22987 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
22988 if test $ac_cv_lib_curses_tgetent = yes; then
22989   bash_cv_termcap_lib=libcurses
22990 else
22991   echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
22992 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
22993 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
22994   echo $ECHO_N "(cached) $ECHO_C" >&6
22995 else
22996   ac_check_lib_save_LIBS=$LIBS
22997 LIBS="-lncurses  $LIBS"
22998 cat >conftest.$ac_ext <<_ACEOF
22999 #line $LINENO "configure"
23000 #include "confdefs.h"
23001
23002 /* Override any gcc2 internal prototype to avoid an error.  */
23003 #ifdef __cplusplus
23004 extern "C"
23005 #endif
23006 /* We use char because int might match the return type of a gcc2
23007    builtin and then its argument prototype would still apply.  */
23008 char tgetent ();
23009 #ifdef F77_DUMMY_MAIN
23010 #  ifdef __cplusplus
23011      extern "C"
23012 #  endif
23013    int F77_DUMMY_MAIN() { return 1; }
23014 #endif
23015 int
23016 main ()
23017 {
23018 tgetent ();
23019   ;
23020   return 0;
23021 }
23022 _ACEOF
23023 rm -f conftest.$ac_objext conftest$ac_exeext
23024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23025   (eval $ac_link) 2>&5
23026   ac_status=$?
23027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028   (exit $ac_status); } &&
23029          { ac_try='test -s conftest$ac_exeext'
23030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031   (eval $ac_try) 2>&5
23032   ac_status=$?
23033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034   (exit $ac_status); }; }; then
23035   ac_cv_lib_ncurses_tgetent=yes
23036 else
23037   echo "$as_me: failed program was:" >&5
23038 cat conftest.$ac_ext >&5
23039 ac_cv_lib_ncurses_tgetent=no
23040 fi
23041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23042 LIBS=$ac_check_lib_save_LIBS
23043 fi
23044 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
23045 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
23046 if test $ac_cv_lib_ncurses_tgetent = yes; then
23047   bash_cv_termcap_lib=libncurses
23048 else
23049   bash_cv_termcap_lib=gnutermcap
23050 fi
23051
23052 fi
23053
23054 fi
23055
23056 fi
23057
23058 fi
23059
23060 fi
23061
23062 if test "X$_bash_needmsg" = "Xyes"; then
23063 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
23064 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
23065 fi
23066 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
23067 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
23068 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
23069 LDFLAGS="$LDFLAGS -L./lib/termcap"
23070 TERMCAP_LIB="./lib/termcap/libtermcap.a"
23071 TERMCAP_DEP="./lib/termcap/libtermcap.a"
23072 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
23073 TERMCAP_LIB=-ltermcap
23074 TERMCAP_DEP=
23075 elif test $bash_cv_termcap_lib = libtinfo; then
23076 TERMCAP_LIB=-ltinfo
23077 TERMCAP_DEP=
23078 elif test $bash_cv_termcap_lib = libncurses; then
23079 TERMCAP_LIB=-lncurses
23080 TERMCAP_DEP=
23081 elif test $bash_cv_termcap_lib = libc; then
23082 TERMCAP_LIB=
23083 TERMCAP_DEP=
23084 else
23085 TERMCAP_LIB=-lcurses
23086 TERMCAP_DEP=
23087 fi
23088
23089 fi
23090
23091
23092
23093 echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
23094 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
23095 if test "${bash_cv_dev_fd+set}" = set; then
23096   echo $ECHO_N "(cached) $ECHO_C" >&6
23097 else
23098   if test -d /dev/fd  && test -r /dev/fd/0 < /dev/null; then
23099 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
23100    exec 3<&0
23101    if test -r /dev/fd/3; then
23102      bash_cv_dev_fd=standard
23103    else
23104      bash_cv_dev_fd=absent
23105    fi
23106    exec 3<&-
23107  elif test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
23108    bash_cv_dev_fd=whacky
23109  else
23110    bash_cv_dev_fd=absent
23111  fi
23112
23113 fi
23114
23115 echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
23116 echo "${ECHO_T}$bash_cv_dev_fd" >&6
23117 if test $bash_cv_dev_fd = "standard"; then
23118   cat >>confdefs.h <<\_ACEOF
23119 #define HAVE_DEV_FD 1
23120 _ACEOF
23121
23122   cat >>confdefs.h <<\_ACEOF
23123 #define DEV_FD_PREFIX "/dev/fd/"
23124 _ACEOF
23125
23126 elif test $bash_cv_dev_fd = "whacky"; then
23127   cat >>confdefs.h <<\_ACEOF
23128 #define HAVE_DEV_FD 1
23129 _ACEOF
23130
23131   cat >>confdefs.h <<\_ACEOF
23132 #define DEV_FD_PREFIX "/proc/self/fd/"
23133 _ACEOF
23134
23135 fi
23136
23137 echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
23138 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
23139 if test "${bash_cv_dev_stdin+set}" = set; then
23140   echo $ECHO_N "(cached) $ECHO_C" >&6
23141 else
23142   if test -d /dev/fd && test -r /dev/stdin < /dev/null; then
23143    bash_cv_dev_stdin=present
23144  elif test -d /proc/self/fd && test -r /dev/stdin < /dev/null; then
23145    bash_cv_dev_stdin=present
23146  else
23147    bash_cv_dev_stdin=absent
23148  fi
23149
23150 fi
23151
23152 echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
23153 echo "${ECHO_T}$bash_cv_dev_stdin" >&6
23154 if test $bash_cv_dev_stdin = "present"; then
23155   cat >>confdefs.h <<\_ACEOF
23156 #define HAVE_DEV_STDIN 1
23157 _ACEOF
23158
23159 fi
23160
23161 echo "$as_me:$LINENO: checking for default mail directory" >&5
23162 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
23163 if test "${bash_cv_mail_dir+set}" = set; then
23164   echo $ECHO_N "(cached) $ECHO_C" >&6
23165 else
23166   if test -d /var/mail; then
23167    bash_cv_mail_dir=/var/mail
23168  elif test -d /var/spool/mail; then
23169    bash_cv_mail_dir=/var/spool/mail
23170  elif test -d /usr/mail; then
23171    bash_cv_mail_dir=/usr/mail
23172  elif test -d /usr/spool/mail; then
23173    bash_cv_mail_dir=/usr/spool/mail
23174  else
23175    bash_cv_mail_dir=unknown
23176  fi
23177
23178 fi
23179
23180 echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
23181 echo "${ECHO_T}$bash_cv_mail_dir" >&6
23182 cat >>confdefs.h <<_ACEOF
23183 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
23184 _ACEOF
23185
23186
23187
23188 if test "$bash_cv_job_control_missing" = missing; then
23189         opt_job_control=no
23190 fi
23191
23192 if test "$opt_job_control" = yes; then
23193 cat >>confdefs.h <<\_ACEOF
23194 #define JOB_CONTROL 1
23195 _ACEOF
23196
23197 JOBS_O=jobs.o
23198 else
23199 JOBS_O=nojobs.o
23200 fi
23201
23202
23203
23204
23205 LOCAL_DEFS=-DSHELL
23206
23207
23208 case "${host_os}" in
23209 sysv4.2*)       cat >>confdefs.h <<\_ACEOF
23210 #define SVR4_2 1
23211 _ACEOF
23212
23213                 cat >>confdefs.h <<\_ACEOF
23214 #define SVR4 1
23215 _ACEOF
23216  ;;
23217 sysv4*)         cat >>confdefs.h <<\_ACEOF
23218 #define SVR4 1
23219 _ACEOF
23220  ;;
23221 sysv5*)         cat >>confdefs.h <<\_ACEOF
23222 #define SVR5 1
23223 _ACEOF
23224  ;;
23225 hpux9*)         LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
23226 hpux*)          LOCAL_CFLAGS=-DHPUX ;;
23227 dgux*)          LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
23228 isc*)           LOCAL_CFLAGS=-Disc386 ;;
23229 rhapsody*)      LOCAL_CFLAGS=-DRHAPSODY ;;
23230 darwin*)        LOCAL_CFLAGS=-DMACOSX ;;
23231 sco3.2v5*)      LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
23232 sco3.2v4*)      LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
23233 sco3.2*)        LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
23234 sunos4*)        LOCAL_CFLAGS=-DSunOS4 ;;
23235 solaris2.5*)    LOCAL_CFLAGS=-DSunOS5 ;;
23236 lynxos*)        LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
23237 linux*)         LOCAL_LDFLAGS=-rdynamic          # allow dynamic loading
23238                 case "`uname -r`" in
23239                 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
23240 #define PGRP_PIPE 1
23241 _ACEOF
23242  ;;
23243                 esac ;;
23244 *qnx6*)         LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
23245 *qnx*)          LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
23246 powerux*)       LOCAL_LIBS="-lgen" ;;
23247 cygwin*)        LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
23248 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
23249 esac
23250
23251 case "${host_os}-${CC}" in
23252 aix4.2*-*gcc*)  LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
23253 aix4.2*)        LOCAL_LDFLAGS="-bexpall -brtl" ;;
23254 bsdi4*-*gcc*)   LOCAL_LDFLAGS="-rdynamic" ;;    # allow dynamic loading, like Linux
23255 esac
23256
23257 case "${host_os}" in
23258 freebsd[3-9]*)
23259                 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
23260                         LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
23261                 fi ;;
23262 freebsdelf*)    LOCAL_LDFLAGS=-rdynamic ;;      # allow dynamic loading
23263 dragonfly*)     LOCAL_LDFLAGS=-rdynamic ;;      # allow dynamic loading
23264 esac
23265
23266 case "$host_cpu" in
23267 *cray*)         LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
23268 esac
23269
23270 case "$host_cpu-$host_os" in
23271 ibmrt-*bsd4*)   LOCAL_CFLAGS="-ma -U__STDC__" ;;
23272 esac
23273
23274 case "$host_cpu-$host_vendor-$host_os" in
23275 m88k-motorola-sysv3)    LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
23276 mips-pyramid-sysv4)     LOCAL_CFLAGS=-Xa ;;
23277 esac
23278
23279 #
23280 # Shared object configuration section.  These values are generated by
23281 # ${srcdir}/support/shobj-conf
23282 #
23283 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
23284 then
23285         echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
23286 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
23287         eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
23288
23289
23290
23291
23292
23293
23294
23295         echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
23296 echo "${ECHO_T}$SHOBJ_STATUS" >&6
23297 fi
23298
23299 # try to create a directory tree if the source is elsewhere
23300 # this should be packaged into a script accessible via ${srcdir}/support
23301 case "$srcdir" in
23302 .)      ;;
23303 *)      for d in doc tests support lib examples; do     # dirs
23304                 test -d $d || mkdir $d
23305         done
23306         for ld in readline glob tilde malloc sh termcap; do     # libdirs
23307                 test -d lib/$ld || mkdir lib/$ld
23308         done
23309         test -d examples/loadables || mkdir examples/loadables  # loadable builtins
23310         test -d examples/loadables/perl || mkdir examples/loadables/perl
23311         ;;
23312 esac
23313
23314 BUILD_DIR=`pwd`
23315 case "$BUILD_DIR" in
23316 *\ *)   BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
23317 *)      ;;
23318 esac
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343 #AC_SUBST(ALLOCA_SOURCE)
23344 #AC_SUBST(ALLOCA_OBJECT)
23345
23346 ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile pathnames.h"
23347 ac_config_commands="$ac_config_commands default"
23348 cat >confcache <<\_ACEOF
23349 # This file is a shell script that caches the results of configure
23350 # tests run on this system so they can be shared between configure
23351 # scripts and configure runs, see configure's option --config-cache.
23352 # It is not useful on other systems.  If it contains results you don't
23353 # want to keep, you may remove or edit it.
23354 #
23355 # config.status only pays attention to the cache file if you give it
23356 # the --recheck option to rerun configure.
23357 #
23358 # `ac_cv_env_foo' variables (set or unset) will be overriden when
23359 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23360 # following values.
23361
23362 _ACEOF
23363
23364 # The following way of writing the cache mishandles newlines in values,
23365 # but we know of no workaround that is simple, portable, and efficient.
23366 # So, don't put newlines in cache variables' values.
23367 # Ultrix sh set writes to stderr and can't be redirected directly,
23368 # and sets the high bit in the cache file unless we assign to the vars.
23369 {
23370   (set) 2>&1 |
23371     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23372     *ac_space=\ *)
23373       # `set' does not quote correctly, so add quotes (double-quote
23374       # substitution turns \\\\ into \\, and sed turns \\ into \).
23375       sed -n \
23376         "s/'/'\\\\''/g;
23377           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23378       ;;
23379     *)
23380       # `set' quotes correctly as required by POSIX, so do not add quotes.
23381       sed -n \
23382         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23383       ;;
23384     esac;
23385 } |
23386   sed '
23387      t clear
23388      : clear
23389      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23390      t end
23391      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23392      : end' >>confcache
23393 if cmp -s $cache_file confcache; then :; else
23394   if test -w $cache_file; then
23395     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23396     cat confcache >$cache_file
23397   else
23398     echo "not updating unwritable cache $cache_file"
23399   fi
23400 fi
23401 rm -f confcache
23402
23403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23404 # Let make expand exec_prefix.
23405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23406
23407 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23408 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23409 # trailing colons and then remove the whole line if VPATH becomes empty
23410 # (actually we leave an empty line to preserve line numbers).
23411 if test "x$srcdir" = x.; then
23412   ac_vpsub='/^[         ]*VPATH[        ]*=/{
23413 s/:*\$(srcdir):*/:/;
23414 s/:*\${srcdir}:*/:/;
23415 s/:*@srcdir@:*/:/;
23416 s/^\([^=]*=[    ]*\):*/\1/;
23417 s/:*$//;
23418 s/^[^=]*=[      ]*$//;
23419 }'
23420 fi
23421
23422 DEFS=-DHAVE_CONFIG_H
23423
23424
23425 : ${CONFIG_STATUS=./config.status}
23426 ac_clean_files_save=$ac_clean_files
23427 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23428 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23429 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23430 cat >$CONFIG_STATUS <<_ACEOF
23431 #! $SHELL
23432 # Generated by $as_me.
23433 # Run this file to recreate the current configuration.
23434 # Compiler output produced by configure, useful for debugging
23435 # configure, is in config.log if it exists.
23436
23437 debug=false
23438 SHELL=\${CONFIG_SHELL-$SHELL}
23439 _ACEOF
23440
23441 cat >>$CONFIG_STATUS <<\_ACEOF
23442
23443 ## --------------------- ##
23444 ## M4sh Initialization.  ##
23445 ## --------------------- ##
23446
23447 # Be Bourne compatible
23448 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23449   emulate sh
23450   NULLCMD=:
23451 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23452   set -o posix
23453 fi
23454
23455 # NLS nuisances.
23456 # Support unset when possible.
23457 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23458   as_unset=unset
23459 else
23460   as_unset=false
23461 fi
23462
23463 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
23464     { $as_unset LANG || test "${LANG+set}" != set; } ||
23465       { LANG=C; export LANG; }
23466 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
23467     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
23468       { LC_ALL=C; export LC_ALL; }
23469 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
23470     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
23471       { LC_TIME=C; export LC_TIME; }
23472 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
23473     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
23474       { LC_CTYPE=C; export LC_CTYPE; }
23475 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
23476     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
23477       { LANGUAGE=C; export LANGUAGE; }
23478 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
23479     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
23480       { LC_COLLATE=C; export LC_COLLATE; }
23481 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
23482     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
23483       { LC_NUMERIC=C; export LC_NUMERIC; }
23484 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
23485     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
23486       { LC_MESSAGES=C; export LC_MESSAGES; }
23487
23488
23489 # Name of the executable.
23490 as_me=`(basename "$0") 2>/dev/null ||
23491 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23492          X"$0" : 'X\(//\)$' \| \
23493          X"$0" : 'X\(/\)$' \| \
23494          .     : '\(.\)' 2>/dev/null ||
23495 echo X/"$0" |
23496     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23497           /^X\/\(\/\/\)$/{ s//\1/; q; }
23498           /^X\/\(\/\).*/{ s//\1/; q; }
23499           s/.*/./; q'`
23500
23501 # PATH needs CR, and LINENO needs CR and PATH.
23502 # Avoid depending upon Character Ranges.
23503 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23504 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23505 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23506 as_cr_digits='0123456789'
23507 as_cr_alnum=$as_cr_Letters$as_cr_digits
23508
23509 # The user is always right.
23510 if test "${PATH_SEPARATOR+set}" != set; then
23511   echo "#! /bin/sh" >conftest.sh
23512   echo  "exit 0"   >>conftest.sh
23513   chmod +x conftest.sh
23514   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
23515     PATH_SEPARATOR=';'
23516   else
23517     PATH_SEPARATOR=:
23518   fi
23519   rm -f conftest.sh
23520 fi
23521
23522
23523   as_lineno_1=$LINENO
23524   as_lineno_2=$LINENO
23525   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23526   test "x$as_lineno_1" != "x$as_lineno_2" &&
23527   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23528   # Find who we are.  Look in the path if we contain no path at all
23529   # relative or not.
23530   case $0 in
23531     *[\\/]* ) as_myself=$0 ;;
23532     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23533 for as_dir in $PATH
23534 do
23535   IFS=$as_save_IFS
23536   test -z "$as_dir" && as_dir=.
23537   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23538 done
23539
23540        ;;
23541   esac
23542   # We did not find ourselves, most probably we were run as `sh COMMAND'
23543   # in which case we are not to be found in the path.
23544   if test "x$as_myself" = x; then
23545     as_myself=$0
23546   fi
23547   if test ! -f "$as_myself"; then
23548     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23549 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23550    { (exit 1); exit 1; }; }
23551   fi
23552   case $CONFIG_SHELL in
23553   '')
23554     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23555 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23556 do
23557   IFS=$as_save_IFS
23558   test -z "$as_dir" && as_dir=.
23559   for as_base in sh bash ksh sh5; do
23560          case $as_dir in
23561          /*)
23562            if ("$as_dir/$as_base" -c '
23563   as_lineno_1=$LINENO
23564   as_lineno_2=$LINENO
23565   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23566   test "x$as_lineno_1" != "x$as_lineno_2" &&
23567   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23568              CONFIG_SHELL=$as_dir/$as_base
23569              export CONFIG_SHELL
23570              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23571            fi;;
23572          esac
23573        done
23574 done
23575 ;;
23576   esac
23577
23578   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23579   # uniformly replaced by the line number.  The first 'sed' inserts a
23580   # line-number line before each line; the second 'sed' does the real
23581   # work.  The second script uses 'N' to pair each line-number line
23582   # with the numbered line, and appends trailing '-' during
23583   # substitution so that $LINENO is not a special case at line end.
23584   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23585   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23586   sed '=' <$as_myself |
23587     sed '
23588       N
23589       s,$,-,
23590       : loop
23591       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23592       t loop
23593       s,-$,,
23594       s,^['$as_cr_digits']*\n,,
23595     ' >$as_me.lineno &&
23596   chmod +x $as_me.lineno ||
23597     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23598 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23599    { (exit 1); exit 1; }; }
23600
23601   # Don't try to exec as it changes $[0], causing all sort of problems
23602   # (the dirname of $[0] is not the place where we might find the
23603   # original and so on.  Autoconf is especially sensible to this).
23604   . ./$as_me.lineno
23605   # Exit status is that of the last command.
23606   exit
23607 }
23608
23609
23610 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23611   *c*,-n*) ECHO_N= ECHO_C='
23612 ' ECHO_T='      ' ;;
23613   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23614   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23615 esac
23616
23617 if expr a : '\(a\)' >/dev/null 2>&1; then
23618   as_expr=expr
23619 else
23620   as_expr=false
23621 fi
23622
23623 rm -f conf$$ conf$$.exe conf$$.file
23624 echo >conf$$.file
23625 if ln -s conf$$.file conf$$ 2>/dev/null; then
23626   # We could just check for DJGPP; but this test a) works b) is more generic
23627   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23628   if test -f conf$$.exe; then
23629     # Don't use ln at all; we don't have any links
23630     as_ln_s='cp -p'
23631   else
23632     as_ln_s='ln -s'
23633   fi
23634 elif ln conf$$.file conf$$ 2>/dev/null; then
23635   as_ln_s=ln
23636 else
23637   as_ln_s='cp -p'
23638 fi
23639 rm -f conf$$ conf$$.exe conf$$.file
23640
23641 as_executable_p="test -f"
23642
23643 # Sed expression to map a string onto a valid CPP name.
23644 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23645
23646 # Sed expression to map a string onto a valid variable name.
23647 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23648
23649
23650 # IFS
23651 # We need space, tab and new line, in precisely that order.
23652 as_nl='
23653 '
23654 IFS="   $as_nl"
23655
23656 # CDPATH.
23657 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
23658
23659 exec 6>&1
23660
23661 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23662 # report actual input values of CONFIG_FILES etc. instead of their
23663 # values after options handling.  Logging --version etc. is OK.
23664 exec 5>>config.log
23665 {
23666   echo
23667   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23668 ## Running $as_me. ##
23669 _ASBOX
23670 } >&5
23671 cat >&5 <<_CSEOF
23672
23673 This file was extended by bash $as_me 3.1-release, which was
23674 generated by GNU Autoconf 2.53.  Invocation command line was
23675
23676   CONFIG_FILES    = $CONFIG_FILES
23677   CONFIG_HEADERS  = $CONFIG_HEADERS
23678   CONFIG_LINKS    = $CONFIG_LINKS
23679   CONFIG_COMMANDS = $CONFIG_COMMANDS
23680   $ $0 $@
23681
23682 _CSEOF
23683 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23684 echo >&5
23685 _ACEOF
23686
23687 # Files that config.status was made for.
23688 if test -n "$ac_config_files"; then
23689   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23690 fi
23691
23692 if test -n "$ac_config_headers"; then
23693   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23694 fi
23695
23696 if test -n "$ac_config_links"; then
23697   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23698 fi
23699
23700 if test -n "$ac_config_commands"; then
23701   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23702 fi
23703
23704 cat >>$CONFIG_STATUS <<\_ACEOF
23705
23706 ac_cs_usage="\
23707 \`$as_me' instantiates files from templates according to the
23708 current configuration.
23709
23710 Usage: $0 [OPTIONS] [FILE]...
23711
23712   -h, --help       print this help, then exit
23713   -V, --version    print version number, then exit
23714   -d, --debug      don't remove temporary files
23715       --recheck    update $as_me by reconfiguring in the same conditions
23716   --file=FILE[:TEMPLATE]
23717                    instantiate the configuration file FILE
23718   --header=FILE[:TEMPLATE]
23719                    instantiate the configuration header FILE
23720
23721 Configuration files:
23722 $config_files
23723
23724 Configuration headers:
23725 $config_headers
23726
23727 Configuration commands:
23728 $config_commands
23729
23730 Report bugs to <bug-autoconf@gnu.org>."
23731 _ACEOF
23732
23733 cat >>$CONFIG_STATUS <<_ACEOF
23734 ac_cs_version="\\
23735 bash config.status 3.1-release
23736 configured by $0, generated by GNU Autoconf 2.53,
23737   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23738
23739 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23740 Free Software Foundation, Inc.
23741 This config.status script is free software; the Free Software Foundation
23742 gives unlimited permission to copy, distribute and modify it."
23743 srcdir=$srcdir
23744 INSTALL="$INSTALL"
23745 _ACEOF
23746
23747 cat >>$CONFIG_STATUS <<\_ACEOF
23748 # If no file are specified by the user, then we need to provide default
23749 # value.  By we need to know if files were specified by the user.
23750 ac_need_defaults=:
23751 while test $# != 0
23752 do
23753   case $1 in
23754   --*=*)
23755     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23756     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23757     shift
23758     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
23759     shift
23760     ;;
23761   -*);;
23762   *) # This is not an option, so the user has probably given explicit
23763      # arguments.
23764      ac_need_defaults=false;;
23765   esac
23766
23767   case $1 in
23768   # Handling of the options.
23769 _ACEOF
23770 cat >>$CONFIG_STATUS <<_ACEOF
23771   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23772     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
23773     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
23774 _ACEOF
23775 cat >>$CONFIG_STATUS <<\_ACEOF
23776   --version | --vers* | -V )
23777     echo "$ac_cs_version"; exit 0 ;;
23778   --he | --h)
23779     # Conflict between --help and --header
23780     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23781 Try \`$0 --help' for more information." >&5
23782 echo "$as_me: error: ambiguous option: $1
23783 Try \`$0 --help' for more information." >&2;}
23784    { (exit 1); exit 1; }; };;
23785   --help | --hel | -h )
23786     echo "$ac_cs_usage"; exit 0 ;;
23787   --debug | --d* | -d )
23788     debug=: ;;
23789   --file | --fil | --fi | --f )
23790     shift
23791     CONFIG_FILES="$CONFIG_FILES $1"
23792     ac_need_defaults=false;;
23793   --header | --heade | --head | --hea )
23794     shift
23795     CONFIG_HEADERS="$CONFIG_HEADERS $1"
23796     ac_need_defaults=false;;
23797
23798   # This is an error.
23799   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23800 Try \`$0 --help' for more information." >&5
23801 echo "$as_me: error: unrecognized option: $1
23802 Try \`$0 --help' for more information." >&2;}
23803    { (exit 1); exit 1; }; } ;;
23804
23805   *) ac_config_targets="$ac_config_targets $1" ;;
23806
23807   esac
23808   shift
23809 done
23810
23811 _ACEOF
23812
23813 cat >>$CONFIG_STATUS <<_ACEOF
23814 #
23815 # INIT-COMMANDS section.
23816 #
23817
23818 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23819     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
23820     # from automake.
23821     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23822     # Capture the value of LINGUAS because we need it to compute CATALOGS.
23823     LINGUAS="${LINGUAS-%UNSET%}"
23824
23825
23826 _ACEOF
23827
23828
23829
23830 cat >>$CONFIG_STATUS <<\_ACEOF
23831 for ac_config_target in $ac_config_targets
23832 do
23833   case "$ac_config_target" in
23834   # Handling of arguments.
23835   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23836   "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
23837   "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
23838   "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
23839   "lib/intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
23840   "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
23841   "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
23842   "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
23843   "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
23844   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23845   "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
23846   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23847   "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
23848   "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
23849   "pathnames.h" ) CONFIG_FILES="$CONFIG_FILES pathnames.h" ;;
23850   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23851   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23852   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23853   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23854 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23855    { (exit 1); exit 1; }; };;
23856   esac
23857 done
23858
23859 # If the user did not use the arguments to specify the items to instantiate,
23860 # then the envvar interface is used.  Set only those that are not.
23861 # We use the long form for the default assignment because of an extremely
23862 # bizarre bug on SunOS 4.1.3.
23863 if $ac_need_defaults; then
23864   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23865   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23866   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23867 fi
23868
23869 # Create a temporary directory, and hook for its removal unless debugging.
23870 $debug ||
23871 {
23872   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23873   trap '{ (exit 1); exit 1; }' 1 2 13 15
23874 }
23875
23876 # Create a (secure) tmp directory for tmp files.
23877 : ${TMPDIR=/tmp}
23878 {
23879   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23880   test -n "$tmp" && test -d "$tmp"
23881 }  ||
23882 {
23883   tmp=$TMPDIR/cs$$-$RANDOM
23884   (umask 077 && mkdir $tmp)
23885 } ||
23886 {
23887    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23888    { (exit 1); exit 1; }
23889 }
23890
23891 _ACEOF
23892
23893 cat >>$CONFIG_STATUS <<_ACEOF
23894
23895 #
23896 # CONFIG_FILES section.
23897 #
23898
23899 # No need to generate the scripts if there are no CONFIG_FILES.
23900 # This happens for instance when ./config.status config.h
23901 if test -n "\$CONFIG_FILES"; then
23902   # Protect against being on the right side of a sed subst in config.status.
23903   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23904    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23905 s,@SHELL@,$SHELL,;t t
23906 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23907 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23908 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23909 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23910 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23911 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23912 s,@exec_prefix@,$exec_prefix,;t t
23913 s,@prefix@,$prefix,;t t
23914 s,@program_transform_name@,$program_transform_name,;t t
23915 s,@bindir@,$bindir,;t t
23916 s,@sbindir@,$sbindir,;t t
23917 s,@libexecdir@,$libexecdir,;t t
23918 s,@datadir@,$datadir,;t t
23919 s,@sysconfdir@,$sysconfdir,;t t
23920 s,@sharedstatedir@,$sharedstatedir,;t t
23921 s,@localstatedir@,$localstatedir,;t t
23922 s,@libdir@,$libdir,;t t
23923 s,@includedir@,$includedir,;t t
23924 s,@oldincludedir@,$oldincludedir,;t t
23925 s,@infodir@,$infodir,;t t
23926 s,@mandir@,$mandir,;t t
23927 s,@build_alias@,$build_alias,;t t
23928 s,@host_alias@,$host_alias,;t t
23929 s,@target_alias@,$target_alias,;t t
23930 s,@DEFS@,$DEFS,;t t
23931 s,@ECHO_C@,$ECHO_C,;t t
23932 s,@ECHO_N@,$ECHO_N,;t t
23933 s,@ECHO_T@,$ECHO_T,;t t
23934 s,@LIBS@,$LIBS,;t t
23935 s,@build@,$build,;t t
23936 s,@build_cpu@,$build_cpu,;t t
23937 s,@build_vendor@,$build_vendor,;t t
23938 s,@build_os@,$build_os,;t t
23939 s,@host@,$host,;t t
23940 s,@host_cpu@,$host_cpu,;t t
23941 s,@host_vendor@,$host_vendor,;t t
23942 s,@host_os@,$host_os,;t t
23943 s,@EMACS@,$EMACS,;t t
23944 s,@lispdir@,$lispdir,;t t
23945 s,@DEBUGGER_START_FILE@,$DEBUGGER_START_FILE,;t t
23946 s,@TESTSCRIPT@,$TESTSCRIPT,;t t
23947 s,@PURIFY@,$PURIFY,;t t
23948 s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
23949 s,@MALLOC_SRC@,$MALLOC_SRC,;t t
23950 s,@MALLOC_LIB@,$MALLOC_LIB,;t t
23951 s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
23952 s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
23953 s,@MALLOC_DEP@,$MALLOC_DEP,;t t
23954 s,@htmldir@,$htmldir,;t t
23955 s,@HELPDIR@,$HELPDIR,;t t
23956 s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t
23957 s,@HELPINSTALL@,$HELPINSTALL,;t t
23958 s,@HELPSTRINGS@,$HELPSTRINGS,;t t
23959 s,@CC@,$CC,;t t
23960 s,@CFLAGS@,$CFLAGS,;t t
23961 s,@LDFLAGS@,$LDFLAGS,;t t
23962 s,@CPPFLAGS@,$CPPFLAGS,;t t
23963 s,@ac_ct_CC@,$ac_ct_CC,;t t
23964 s,@EXEEXT@,$EXEEXT,;t t
23965 s,@OBJEXT@,$OBJEXT,;t t
23966 s,@CPP@,$CPP,;t t
23967 s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t
23968 s,@SIGNAMES_H@,$SIGNAMES_H,;t t
23969 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23970 s,@STATIC_LD@,$STATIC_LD,;t t
23971 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
23972 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
23973 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
23974 s,@RL_VERSION@,$RL_VERSION,;t t
23975 s,@RL_MAJOR@,$RL_MAJOR,;t t
23976 s,@RL_MINOR@,$RL_MINOR,;t t
23977 s,@READLINE_LIB@,$READLINE_LIB,;t t
23978 s,@READLINE_DEP@,$READLINE_DEP,;t t
23979 s,@RL_LIBDIR@,$RL_LIBDIR,;t t
23980 s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
23981 s,@RL_INCLUDE@,$RL_INCLUDE,;t t
23982 s,@HISTORY_LIB@,$HISTORY_LIB,;t t
23983 s,@HISTORY_DEP@,$HISTORY_DEP,;t t
23984 s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
23985 s,@TILDE_LIB@,$TILDE_LIB,;t t
23986 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23987 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23988 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23989 s,@AR@,$AR,;t t
23990 s,@RANLIB@,$RANLIB,;t t
23991 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23992 s,@YACC@,$YACC,;t t
23993 s,@SET_MAKE@,$SET_MAKE,;t t
23994 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
23995 s,@SIZE@,$SIZE,;t t
23996 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
23997 s,@USE_NLS@,$USE_NLS,;t t
23998 s,@MSGFMT@,$MSGFMT,;t t
23999 s,@GMSGFMT@,$GMSGFMT,;t t
24000 s,@XGETTEXT@,$XGETTEXT,;t t
24001 s,@MSGMERGE@,$MSGMERGE,;t t
24002 s,@ALLOCA@,$ALLOCA,;t t
24003 s,@GLIBC21@,$GLIBC21,;t t
24004 s,@LIBICONV@,$LIBICONV,;t t
24005 s,@LTLIBICONV@,$LTLIBICONV,;t t
24006 s,@INTLBISON@,$INTLBISON,;t t
24007 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
24008 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
24009 s,@CATOBJEXT@,$CATOBJEXT,;t t
24010 s,@DATADIRNAME@,$DATADIRNAME,;t t
24011 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24012 s,@GENCAT@,$GENCAT,;t t
24013 s,@INTLOBJS@,$INTLOBJS,;t t
24014 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
24015 s,@INTLLIBS@,$INTLLIBS,;t t
24016 s,@LIBINTL@,$LIBINTL,;t t
24017 s,@LTLIBINTL@,$LTLIBINTL,;t t
24018 s,@POSUB@,$POSUB,;t t
24019 s,@LIBOBJS@,$LIBOBJS,;t t
24020 s,@INTL_DEP@,$INTL_DEP,;t t
24021 s,@INTL_INC@,$INTL_INC,;t t
24022 s,@LIBINTL_H@,$LIBINTL_H,;t t
24023 s,@SIGLIST_O@,$SIGLIST_O,;t t
24024 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
24025 s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
24026 s,@JOBS_O@,$JOBS_O,;t t
24027 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
24028 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
24029 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
24030 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
24031 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
24032 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
24033 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
24034 s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
24035 s,@incdir@,$incdir,;t t
24036 s,@BUILD_DIR@,$BUILD_DIR,;t t
24037 s,@ARFLAGS@,$ARFLAGS,;t t
24038 s,@BASHVERS@,$BASHVERS,;t t
24039 s,@RELSTATUS@,$RELSTATUS,;t t
24040 s,@DEBUG@,$DEBUG,;t t
24041 s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t
24042 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
24043 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
24044 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24045 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
24046 CEOF
24047
24048 _ACEOF
24049
24050   cat >>$CONFIG_STATUS <<\_ACEOF
24051   # Split the substitutions into bite-sized pieces for seds with
24052   # small command number limits, like on Digital OSF/1 and HP-UX.
24053   ac_max_sed_lines=48
24054   ac_sed_frag=1 # Number of current file.
24055   ac_beg=1 # First line for current file.
24056   ac_end=$ac_max_sed_lines # Line after last line for current file.
24057   ac_more_lines=:
24058   ac_sed_cmds=
24059   while $ac_more_lines; do
24060     if test $ac_beg -gt 1; then
24061       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24062     else
24063       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24064     fi
24065     if test ! -s $tmp/subs.frag; then
24066       ac_more_lines=false
24067     else
24068       # The purpose of the label and of the branching condition is to
24069       # speed up the sed processing (if there are no `@' at all, there
24070       # is no need to browse any of the substitutions).
24071       # These are the two extra sed commands mentioned above.
24072       (echo ':t
24073   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24074       if test -z "$ac_sed_cmds"; then
24075         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24076       else
24077         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24078       fi
24079       ac_sed_frag=`expr $ac_sed_frag + 1`
24080       ac_beg=$ac_end
24081       ac_end=`expr $ac_end + $ac_max_sed_lines`
24082     fi
24083   done
24084   if test -z "$ac_sed_cmds"; then
24085     ac_sed_cmds=cat
24086   fi
24087 fi # test -n "$CONFIG_FILES"
24088
24089 _ACEOF
24090 cat >>$CONFIG_STATUS <<\_ACEOF
24091 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24092   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24093   case $ac_file in
24094   - | *:- | *:-:* ) # input from stdin
24095         cat >$tmp/stdin
24096         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24097         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24098   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24099         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24100   * )   ac_file_in=$ac_file.in ;;
24101   esac
24102
24103   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24104   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24105 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24106          X"$ac_file" : 'X\(//\)[^/]' \| \
24107          X"$ac_file" : 'X\(//\)$' \| \
24108          X"$ac_file" : 'X\(/\)' \| \
24109          .     : '\(.\)' 2>/dev/null ||
24110 echo X"$ac_file" |
24111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24112           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24113           /^X\(\/\/\)$/{ s//\1/; q; }
24114           /^X\(\/\).*/{ s//\1/; q; }
24115           s/.*/./; q'`
24116   { case "$ac_dir" in
24117   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24118   *)                      as_incr_dir=.;;
24119 esac
24120 as_dummy="$ac_dir"
24121 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24122   case $as_mkdir_dir in
24123     # Skip DOS drivespec
24124     ?:) as_incr_dir=$as_mkdir_dir ;;
24125     *)
24126       as_incr_dir=$as_incr_dir/$as_mkdir_dir
24127       test -d "$as_incr_dir" ||
24128         mkdir "$as_incr_dir" ||
24129         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
24130 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
24131    { (exit 1); exit 1; }; }
24132     ;;
24133   esac
24134 done; }
24135
24136   ac_builddir=.
24137
24138 if test "$ac_dir" != .; then
24139   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24140   # A "../" for each directory in $ac_dir_suffix.
24141   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24142 else
24143   ac_dir_suffix= ac_top_builddir=
24144 fi
24145
24146 case $srcdir in
24147   .)  # No --srcdir option.  We are building in place.
24148     ac_srcdir=.
24149     if test -z "$ac_top_builddir"; then
24150        ac_top_srcdir=.
24151     else
24152        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24153     fi ;;
24154   [\\/]* | ?:[\\/]* )  # Absolute path.
24155     ac_srcdir=$srcdir$ac_dir_suffix;
24156     ac_top_srcdir=$srcdir ;;
24157   *) # Relative path.
24158     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24159     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24160 esac
24161 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24162 # absolute.
24163 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24164 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
24165 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24166 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24167
24168
24169   case $INSTALL in
24170   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24171   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24172   esac
24173
24174   if test x"$ac_file" != x-; then
24175     { echo "$as_me:$LINENO: creating $ac_file" >&5
24176 echo "$as_me: creating $ac_file" >&6;}
24177     rm -f "$ac_file"
24178   fi
24179   # Let's still pretend it is `configure' which instantiates (i.e., don't
24180   # use $as_me), people would be surprised to read:
24181   #    /* config.h.  Generated by config.status.  */
24182   if test x"$ac_file" = x-; then
24183     configure_input=
24184   else
24185     configure_input="$ac_file.  "
24186   fi
24187   configure_input=$configure_input"Generated from `echo $ac_file_in |
24188                                      sed 's,.*/,,'` by configure."
24189
24190   # First look for the input files in the build tree, otherwise in the
24191   # src tree.
24192   ac_file_inputs=`IFS=:
24193     for f in $ac_file_in; do
24194       case $f in
24195       -) echo $tmp/stdin ;;
24196       [\\/$]*)
24197          # Absolute (can't be DOS-style, as IFS=:)
24198          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24199 echo "$as_me: error: cannot find input file: $f" >&2;}
24200    { (exit 1); exit 1; }; }
24201          echo $f;;
24202       *) # Relative
24203          if test -f "$f"; then
24204            # Build tree
24205            echo $f
24206          elif test -f "$srcdir/$f"; then
24207            # Source tree
24208            echo $srcdir/$f
24209          else
24210            # /dev/null tree
24211            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24212 echo "$as_me: error: cannot find input file: $f" >&2;}
24213    { (exit 1); exit 1; }; }
24214          fi;;
24215       esac
24216     done` || { (exit 1); exit 1; }
24217 _ACEOF
24218 cat >>$CONFIG_STATUS <<_ACEOF
24219   sed "$ac_vpsub
24220 $extrasub
24221 _ACEOF
24222 cat >>$CONFIG_STATUS <<\_ACEOF
24223 :t
24224 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24225 s,@configure_input@,$configure_input,;t t
24226 s,@srcdir@,$ac_srcdir,;t t
24227 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24228 s,@top_srcdir@,$ac_top_srcdir,;t t
24229 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24230 s,@builddir@,$ac_builddir,;t t
24231 s,@abs_builddir@,$ac_abs_builddir,;t t
24232 s,@top_builddir@,$ac_top_builddir,;t t
24233 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24234 s,@INSTALL@,$ac_INSTALL,;t t
24235 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24236   rm -f $tmp/stdin
24237   if test x"$ac_file" != x-; then
24238     mv $tmp/out $ac_file
24239   else
24240     cat $tmp/out
24241     rm -f $tmp/out
24242   fi
24243
24244 done
24245 _ACEOF
24246 cat >>$CONFIG_STATUS <<\_ACEOF
24247
24248 #
24249 # CONFIG_HEADER section.
24250 #
24251
24252 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24253 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24254 #
24255 # ac_d sets the value in "#define NAME VALUE" lines.
24256 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24257 ac_dB='[        ].*$,\1#\2'
24258 ac_dC=' '
24259 ac_dD=',;t'
24260 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24261 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24262 ac_uB='$,\1#\2define\3'
24263 ac_uC=' '
24264 ac_uD=',;t'
24265
24266 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24267   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24268   case $ac_file in
24269   - | *:- | *:-:* ) # input from stdin
24270         cat >$tmp/stdin
24271         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24272         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24273   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24274         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24275   * )   ac_file_in=$ac_file.in ;;
24276   esac
24277
24278   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24279 echo "$as_me: creating $ac_file" >&6;}
24280
24281   # First look for the input files in the build tree, otherwise in the
24282   # src tree.
24283   ac_file_inputs=`IFS=:
24284     for f in $ac_file_in; do
24285       case $f in
24286       -) echo $tmp/stdin ;;
24287       [\\/$]*)
24288          # Absolute (can't be DOS-style, as IFS=:)
24289          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24290 echo "$as_me: error: cannot find input file: $f" >&2;}
24291    { (exit 1); exit 1; }; }
24292          echo $f;;
24293       *) # Relative
24294          if test -f "$f"; then
24295            # Build tree
24296            echo $f
24297          elif test -f "$srcdir/$f"; then
24298            # Source tree
24299            echo $srcdir/$f
24300          else
24301            # /dev/null tree
24302            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24303 echo "$as_me: error: cannot find input file: $f" >&2;}
24304    { (exit 1); exit 1; }; }
24305          fi;;
24306       esac
24307     done` || { (exit 1); exit 1; }
24308   # Remove the trailing spaces.
24309   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24310
24311 _ACEOF
24312
24313 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24314 # `conftest.undefs', that substitutes the proper values into
24315 # config.h.in to produce config.h.  The first handles `#define'
24316 # templates, and the second `#undef' templates.
24317 # And first: Protect against being on the right side of a sed subst in
24318 # config.status.  Protect against being in an unquoted here document
24319 # in config.status.
24320 rm -f conftest.defines conftest.undefs
24321 # Using a here document instead of a string reduces the quoting nightmare.
24322 # Putting comments in sed scripts is not portable.
24323 #
24324 # `end' is used to avoid that the second main sed command (meant for
24325 # 0-ary CPP macros) applies to n-ary macro definitions.
24326 # See the Autoconf documentation for `clear'.
24327 cat >confdef2sed.sed <<\_ACEOF
24328 s/[\\&,]/\\&/g
24329 s,[\\$`],\\&,g
24330 t clear
24331 : clear
24332 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24333 t end
24334 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24335 : end
24336 _ACEOF
24337 # If some macros were called several times there might be several times
24338 # the same #defines, which is useless.  Nevertheless, we may not want to
24339 # sort them, since we want the *last* AC-DEFINE to be honored.
24340 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24341 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24342 rm -f confdef2sed.sed
24343
24344 # This sed command replaces #undef with comments.  This is necessary, for
24345 # example, in the case of _POSIX_SOURCE, which is predefined and required
24346 # on some systems where configure will not decide to define it.
24347 cat >>conftest.undefs <<\_ACEOF
24348 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24349 _ACEOF
24350
24351 # Break up conftest.defines because some shells have a limit on the size
24352 # of here documents, and old seds have small limits too (100 cmds).
24353 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24354 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24355 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24356 echo '  :' >>$CONFIG_STATUS
24357 rm -f conftest.tail
24358 while grep . conftest.defines >/dev/null
24359 do
24360   # Write a limited-size here document to $tmp/defines.sed.
24361   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24362   # Speed up: don't consider the non `#define' lines.
24363   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24364   # Work around the forget-to-reset-the-flag bug.
24365   echo 't clr' >>$CONFIG_STATUS
24366   echo ': clr' >>$CONFIG_STATUS
24367   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24368   echo 'CEOF
24369   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24370   rm -f $tmp/in
24371   mv $tmp/out $tmp/in
24372 ' >>$CONFIG_STATUS
24373   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24374   rm -f conftest.defines
24375   mv conftest.tail conftest.defines
24376 done
24377 rm -f conftest.defines
24378 echo '  fi # egrep' >>$CONFIG_STATUS
24379 echo >>$CONFIG_STATUS
24380
24381 # Break up conftest.undefs because some shells have a limit on the size
24382 # of here documents, and old seds have small limits too (100 cmds).
24383 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24384 rm -f conftest.tail
24385 while grep . conftest.undefs >/dev/null
24386 do
24387   # Write a limited-size here document to $tmp/undefs.sed.
24388   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24389   # Speed up: don't consider the non `#undef'
24390   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24391   # Work around the forget-to-reset-the-flag bug.
24392   echo 't clr' >>$CONFIG_STATUS
24393   echo ': clr' >>$CONFIG_STATUS
24394   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24395   echo 'CEOF
24396   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24397   rm -f $tmp/in
24398   mv $tmp/out $tmp/in
24399 ' >>$CONFIG_STATUS
24400   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24401   rm -f conftest.undefs
24402   mv conftest.tail conftest.undefs
24403 done
24404 rm -f conftest.undefs
24405
24406 cat >>$CONFIG_STATUS <<\_ACEOF
24407   # Let's still pretend it is `configure' which instantiates (i.e., don't
24408   # use $as_me), people would be surprised to read:
24409   #    /* config.h.  Generated by config.status.  */
24410   if test x"$ac_file" = x-; then
24411     echo "/* Generated by configure.  */" >$tmp/config.h
24412   else
24413     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24414   fi
24415   cat $tmp/in >>$tmp/config.h
24416   rm -f $tmp/in
24417   if test x"$ac_file" != x-; then
24418     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
24419       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24420 echo "$as_me: $ac_file is unchanged" >&6;}
24421     else
24422       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24424          X"$ac_file" : 'X\(//\)[^/]' \| \
24425          X"$ac_file" : 'X\(//\)$' \| \
24426          X"$ac_file" : 'X\(/\)' \| \
24427          .     : '\(.\)' 2>/dev/null ||
24428 echo X"$ac_file" |
24429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24430           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24431           /^X\(\/\/\)$/{ s//\1/; q; }
24432           /^X\(\/\).*/{ s//\1/; q; }
24433           s/.*/./; q'`
24434       { case "$ac_dir" in
24435   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24436   *)                      as_incr_dir=.;;
24437 esac
24438 as_dummy="$ac_dir"
24439 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24440   case $as_mkdir_dir in
24441     # Skip DOS drivespec
24442     ?:) as_incr_dir=$as_mkdir_dir ;;
24443     *)
24444       as_incr_dir=$as_incr_dir/$as_mkdir_dir
24445       test -d "$as_incr_dir" ||
24446         mkdir "$as_incr_dir" ||
24447         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
24448 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
24449    { (exit 1); exit 1; }; }
24450     ;;
24451   esac
24452 done; }
24453
24454       rm -f $ac_file
24455       mv $tmp/config.h $ac_file
24456     fi
24457   else
24458     cat $tmp/config.h
24459     rm -f $tmp/config.h
24460   fi
24461 done
24462 _ACEOF
24463 cat >>$CONFIG_STATUS <<\_ACEOF
24464
24465 #
24466 # CONFIG_COMMANDS section.
24467 #
24468 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24469   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24470   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24471   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24472 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24473          X"$ac_dest" : 'X\(//\)[^/]' \| \
24474          X"$ac_dest" : 'X\(//\)$' \| \
24475          X"$ac_dest" : 'X\(/\)' \| \
24476          .     : '\(.\)' 2>/dev/null ||
24477 echo X"$ac_dest" |
24478     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24479           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24480           /^X\(\/\/\)$/{ s//\1/; q; }
24481           /^X\(\/\).*/{ s//\1/; q; }
24482           s/.*/./; q'`
24483   ac_builddir=.
24484
24485 if test "$ac_dir" != .; then
24486   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24487   # A "../" for each directory in $ac_dir_suffix.
24488   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24489 else
24490   ac_dir_suffix= ac_top_builddir=
24491 fi
24492
24493 case $srcdir in
24494   .)  # No --srcdir option.  We are building in place.
24495     ac_srcdir=.
24496     if test -z "$ac_top_builddir"; then
24497        ac_top_srcdir=.
24498     else
24499        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24500     fi ;;
24501   [\\/]* | ?:[\\/]* )  # Absolute path.
24502     ac_srcdir=$srcdir$ac_dir_suffix;
24503     ac_top_srcdir=$srcdir ;;
24504   *) # Relative path.
24505     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24506     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24507 esac
24508 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24509 # absolute.
24510 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24511 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
24512 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24513 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24514
24515
24516   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24517 echo "$as_me: executing $ac_dest commands" >&6;}
24518   case $ac_dest in
24519     default-1 )
24520     for ac_file in $CONFIG_FILES; do
24521       # Support "outfile[:infile[:infile...]]"
24522       case "$ac_file" in
24523         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24524       esac
24525       # PO directories have a Makefile.in generated from Makefile.in.in.
24526       case "$ac_file" in */Makefile.in)
24527         # Adjust a relative srcdir.
24528         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24529         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24530         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24531         # In autoconf-2.13 it is called $ac_given_srcdir.
24532         # In autoconf-2.50 it is called $srcdir.
24533         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24534         case "$ac_given_srcdir" in
24535           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24536           /*) top_srcdir="$ac_given_srcdir" ;;
24537           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
24538         esac
24539         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24540           rm -f "$ac_dir/POTFILES"
24541           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24542           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24543           POMAKEFILEDEPS="POTFILES.in"
24544           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
24545           # on $ac_dir but don't depend on user-specified configuration
24546           # parameters.
24547           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24548             # The LINGUAS file contains the set of available languages.
24549             if test -n "$OBSOLETE_ALL_LINGUAS"; then
24550               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24551             fi
24552             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24553             # Hide the ALL_LINGUAS assigment from automake.
24554             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24555             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24556           else
24557             # The set of available languages was given in configure.in.
24558             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24559           fi
24560           case "$ac_given_srcdir" in
24561             .) srcdirpre= ;;
24562             *) srcdirpre='$(srcdir)/' ;;
24563           esac
24564           POFILES=
24565           GMOFILES=
24566           UPDATEPOFILES=
24567           DUMMYPOFILES=
24568           for lang in $ALL_LINGUAS; do
24569             POFILES="$POFILES $srcdirpre$lang.po"
24570             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24571             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24572             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24573           done
24574           # CATALOGS depends on both $ac_dir and the user's LINGUAS
24575           # environment variable.
24576           INST_LINGUAS=
24577           if test -n "$ALL_LINGUAS"; then
24578             for presentlang in $ALL_LINGUAS; do
24579               useit=no
24580               if test "%UNSET%" != "$LINGUAS"; then
24581                 desiredlanguages="$LINGUAS"
24582               else
24583                 desiredlanguages="$ALL_LINGUAS"
24584               fi
24585               for desiredlang in $desiredlanguages; do
24586                 # Use the presentlang catalog if desiredlang is
24587                 #   a. equal to presentlang, or
24588                 #   b. a variant of presentlang (because in this case,
24589                 #      presentlang can be used as a fallback for messages
24590                 #      which are not translated in the desiredlang catalog).
24591                 case "$desiredlang" in
24592                   "$presentlang"*) useit=yes;;
24593                 esac
24594               done
24595               if test $useit = yes; then
24596                 INST_LINGUAS="$INST_LINGUAS $presentlang"
24597               fi
24598             done
24599           fi
24600           CATALOGS=
24601           if test -n "$INST_LINGUAS"; then
24602             for lang in $INST_LINGUAS; do
24603               CATALOGS="$CATALOGS $lang.gmo"
24604             done
24605           fi
24606           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24607           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24608           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24609             if test -f "$f"; then
24610               case "$f" in
24611                 *.orig | *.bak | *~) ;;
24612                 *) cat "$f" >> "$ac_dir/Makefile" ;;
24613               esac
24614             fi
24615           done
24616         fi
24617         ;;
24618       esac
24619     done ;;
24620     default )
24621 # Makefile uses this timestamp file to record whether config.h is up to date.
24622 echo timestamp > stamp-h
24623  ;;
24624   esac
24625 done
24626 _ACEOF
24627
24628 cat >>$CONFIG_STATUS <<\_ACEOF
24629
24630 { (exit 0); exit 0; }
24631 _ACEOF
24632 chmod +x $CONFIG_STATUS
24633 ac_clean_files=$ac_clean_files_save
24634
24635
24636 # configure is writing to config.log, and then calls config.status.
24637 # config.status does its own redirection, appending to config.log.
24638 # Unfortunately, on DOS this fails, as config.log is still kept open
24639 # by configure, so config.status won't be able to write to it; its
24640 # output is simply discarded.  So we exec the FD to /dev/null,
24641 # effectively closing config.log, so it can be properly (re)opened and
24642 # appended to by config.status.  When coming back to configure, we
24643 # need to make the FD available again.
24644 if test "$no_create" != yes; then
24645   ac_cs_success=:
24646   exec 5>/dev/null
24647   $SHELL $CONFIG_STATUS || ac_cs_success=false
24648   exec 5>>config.log
24649   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24650   # would make configure fail if this is the last instruction.
24651   $ac_cs_success || { (exit 1); exit 1; }
24652 fi
24653