commit bash-20051123 snapshot
[platform/upstream/bash.git] / configure~
1 #! /bin/sh
2 # From configure.in for Bash 3.1, version 3.175, from autoconf version AC_ACVERSION.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for bash 3.1-devel.
5 #
6 # Report bugs to <bug-bash@gnu.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete.  It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='bash'
272 PACKAGE_TARNAME='bash'
273 PACKAGE_VERSION='3.1-devel'
274 PACKAGE_STRING='bash 3.1-devel'
275 PACKAGE_BUGREPORT='bug-bash@gnu.org'
276
277 ac_unique_file="shell.h"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 #  include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 #  include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 #  include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os EMACS lispdir DEBUGGER_START_FILE TESTSCRIPT PURIFY MALLOC_TARGET MALLOC_SRC MALLOC_LIB MALLOC_LIBRARY MALLOC_LDFLAGS MALLOC_DEP htmldir HELPDIR HELPDIRDEFINE HELPINSTALL HELPSTRINGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP SIGNAMES_H CC_FOR_BUILD STATIC_LD CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD RL_VERSION RL_MAJOR RL_MINOR READLINE_LIB READLINE_DEP RL_LIBDIR RL_INCLUDEDIR RL_INCLUDE HISTORY_LIB HISTORY_DEP HIST_LIBDIR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB YACC SET_MAKE MAKE_SHELL SIZE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS INTL_DEP INTL_INC LIBINTL_H SIGLIST_O TERMCAP_LIB TERMCAP_DEP JOBS_O SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS PROFILE_FLAGS incdir BUILD_DIR ARFLAGS BASHVERS RELSTATUS DEBUG MALLOC_DEBUG LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359   # If the previous option needs an argument, assign it.
360   if test -n "$ac_prev"; then
361     eval "$ac_prev=\$ac_option"
362     ac_prev=
363     continue
364   fi
365
366   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368   # Accept the important Cygnus configure options, so we can diagnose typos.
369
370   case $ac_option in
371
372   -bindir | --bindir | --bindi | --bind | --bin | --bi)
373     ac_prev=bindir ;;
374   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375     bindir=$ac_optarg ;;
376
377   -build | --build | --buil | --bui | --bu)
378     ac_prev=build_alias ;;
379   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380     build_alias=$ac_optarg ;;
381
382   -cache-file | --cache-file | --cache-fil | --cache-fi \
383   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384     ac_prev=cache_file ;;
385   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387     cache_file=$ac_optarg ;;
388
389   --config-cache | -C)
390     cache_file=config.cache ;;
391
392   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393     ac_prev=datadir ;;
394   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395   | --da=*)
396     datadir=$ac_optarg ;;
397
398   -disable-* | --disable-*)
399     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400     # Reject names that are not valid shell variable names.
401     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403    { (exit 1); exit 1; }; }
404     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405     eval "enable_$ac_feature=no" ;;
406
407   -enable-* | --enable-*)
408     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409     # Reject names that are not valid shell variable names.
410     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412    { (exit 1); exit 1; }; }
413     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414     case $ac_option in
415       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416       *) ac_optarg=yes ;;
417     esac
418     eval "enable_$ac_feature='$ac_optarg'" ;;
419
420   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422   | --exec | --exe | --ex)
423     ac_prev=exec_prefix ;;
424   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426   | --exec=* | --exe=* | --ex=*)
427     exec_prefix=$ac_optarg ;;
428
429   -gas | --gas | --ga | --g)
430     # Obsolete; use --with-gas.
431     with_gas=yes ;;
432
433   -help | --help | --hel | --he | -h)
434     ac_init_help=long ;;
435   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436     ac_init_help=recursive ;;
437   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438     ac_init_help=short ;;
439
440   -host | --host | --hos | --ho)
441     ac_prev=host_alias ;;
442   -host=* | --host=* | --hos=* | --ho=*)
443     host_alias=$ac_optarg ;;
444
445   -includedir | --includedir | --includedi | --included | --include \
446   | --includ | --inclu | --incl | --inc)
447     ac_prev=includedir ;;
448   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449   | --includ=* | --inclu=* | --incl=* | --inc=*)
450     includedir=$ac_optarg ;;
451
452   -infodir | --infodir | --infodi | --infod | --info | --inf)
453     ac_prev=infodir ;;
454   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455     infodir=$ac_optarg ;;
456
457   -libdir | --libdir | --libdi | --libd)
458     ac_prev=libdir ;;
459   -libdir=* | --libdir=* | --libdi=* | --libd=*)
460     libdir=$ac_optarg ;;
461
462   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463   | --libexe | --libex | --libe)
464     ac_prev=libexecdir ;;
465   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466   | --libexe=* | --libex=* | --libe=*)
467     libexecdir=$ac_optarg ;;
468
469   -localstatedir | --localstatedir | --localstatedi | --localstated \
470   | --localstate | --localstat | --localsta | --localst \
471   | --locals | --local | --loca | --loc | --lo)
472     ac_prev=localstatedir ;;
473   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476     localstatedir=$ac_optarg ;;
477
478   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479     ac_prev=mandir ;;
480   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481     mandir=$ac_optarg ;;
482
483   -nfp | --nfp | --nf)
484     # Obsolete; use --without-fp.
485     with_fp=no ;;
486
487   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488   | --no-cr | --no-c | -n)
489     no_create=yes ;;
490
491   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493     no_recursion=yes ;;
494
495   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497   | --oldin | --oldi | --old | --ol | --o)
498     ac_prev=oldincludedir ;;
499   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502     oldincludedir=$ac_optarg ;;
503
504   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505     ac_prev=prefix ;;
506   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507     prefix=$ac_optarg ;;
508
509   -program-prefix | --program-prefix | --program-prefi | --program-pref \
510   | --program-pre | --program-pr | --program-p)
511     ac_prev=program_prefix ;;
512   -program-prefix=* | --program-prefix=* | --program-prefi=* \
513   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514     program_prefix=$ac_optarg ;;
515
516   -program-suffix | --program-suffix | --program-suffi | --program-suff \
517   | --program-suf | --program-su | --program-s)
518     ac_prev=program_suffix ;;
519   -program-suffix=* | --program-suffix=* | --program-suffi=* \
520   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521     program_suffix=$ac_optarg ;;
522
523   -program-transform-name | --program-transform-name \
524   | --program-transform-nam | --program-transform-na \
525   | --program-transform-n | --program-transform- \
526   | --program-transform | --program-transfor \
527   | --program-transfo | --program-transf \
528   | --program-trans | --program-tran \
529   | --progr-tra | --program-tr | --program-t)
530     ac_prev=program_transform_name ;;
531   -program-transform-name=* | --program-transform-name=* \
532   | --program-transform-nam=* | --program-transform-na=* \
533   | --program-transform-n=* | --program-transform-=* \
534   | --program-transform=* | --program-transfor=* \
535   | --program-transfo=* | --program-transf=* \
536   | --program-trans=* | --program-tran=* \
537   | --progr-tra=* | --program-tr=* | --program-t=*)
538     program_transform_name=$ac_optarg ;;
539
540   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541   | -silent | --silent | --silen | --sile | --sil)
542     silent=yes ;;
543
544   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545     ac_prev=sbindir ;;
546   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547   | --sbi=* | --sb=*)
548     sbindir=$ac_optarg ;;
549
550   -sharedstatedir | --sharedstatedir | --sharedstatedi \
551   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552   | --sharedst | --shareds | --shared | --share | --shar \
553   | --sha | --sh)
554     ac_prev=sharedstatedir ;;
555   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558   | --sha=* | --sh=*)
559     sharedstatedir=$ac_optarg ;;
560
561   -site | --site | --sit)
562     ac_prev=site ;;
563   -site=* | --site=* | --sit=*)
564     site=$ac_optarg ;;
565
566   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567     ac_prev=srcdir ;;
568   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569     srcdir=$ac_optarg ;;
570
571   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572   | --syscon | --sysco | --sysc | --sys | --sy)
573     ac_prev=sysconfdir ;;
574   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576     sysconfdir=$ac_optarg ;;
577
578   -target | --target | --targe | --targ | --tar | --ta | --t)
579     ac_prev=target_alias ;;
580   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581     target_alias=$ac_optarg ;;
582
583   -v | -verbose | --verbose | --verbos | --verbo | --verb)
584     verbose=yes ;;
585
586   -version | --version | --versio | --versi | --vers | -V)
587     ac_init_version=: ;;
588
589   -with-* | --with-*)
590     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package| sed 's/-/_/g'`
596     case $ac_option in
597       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598       *) ac_optarg=yes ;;
599     esac
600     eval "with_$ac_package='$ac_optarg'" ;;
601
602   -without-* | --without-*)
603     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604     # Reject names that are not valid shell variable names.
605     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606       { echo "$as_me: error: invalid package name: $ac_package" >&2
607    { (exit 1); exit 1; }; }
608     ac_package=`echo $ac_package | sed 's/-/_/g'`
609     eval "with_$ac_package=no" ;;
610
611   --x)
612     # Obsolete; use --with-x.
613     with_x=yes ;;
614
615   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616   | --x-incl | --x-inc | --x-in | --x-i)
617     ac_prev=x_includes ;;
618   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620     x_includes=$ac_optarg ;;
621
622   -x-libraries | --x-libraries | --x-librarie | --x-librari \
623   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624     ac_prev=x_libraries ;;
625   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627     x_libraries=$ac_optarg ;;
628
629   -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631    { (exit 1); exit 1; }; }
632     ;;
633
634   *=*)
635     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636     # Reject names that are not valid shell variable names.
637     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639    { (exit 1); exit 1; }; }
640     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641     eval "$ac_envvar='$ac_optarg'"
642     export $ac_envvar ;;
643
644   *)
645     # FIXME: should be removed in autoconf 3.0.
646     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650     ;;
651
652   esac
653 done
654
655 if test -n "$ac_prev"; then
656   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657   { echo "$as_me: error: missing argument to $ac_option" >&2
658    { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664   eval ac_val=$`echo $ac_var`
665   case $ac_val in
666     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668    { (exit 1); exit 1; }; };;
669   esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674               localstatedir libdir includedir oldincludedir infodir mandir
675 do
676   eval ac_val=$`echo $ac_var`
677   case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680    { (exit 1); exit 1; }; };;
681   esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693   if test "x$build_alias" = x; then
694     cross_compiling=maybe
695     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696     If a cross compiler is detected then cross compile mode will be used." >&2
697   elif test "x$build_alias" != "x$host_alias"; then
698     cross_compiling=yes
699   fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710   ac_srcdir_defaulted=yes
711   # Try the directory containing this script, then its parent.
712   ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714          X"$0" : 'X\(//\)[^/]' \| \
715          X"$0" : 'X\(//\)$' \| \
716          X"$0" : 'X\(/\)' \| \
717          .     : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721           /^X\(\/\/\)$/{ s//\1/; q; }
722           /^X\(\/\).*/{ s//\1/; q; }
723           s/.*/./; q'`
724   srcdir=$ac_confdir
725   if test ! -r $srcdir/$ac_unique_file; then
726     srcdir=..
727   fi
728 else
729   ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732   if test "$ac_srcdir_defaulted" = yes; then
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734    { (exit 1); exit 1; }; }
735   else
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737    { (exit 1); exit 1; }; }
738   fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742    { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
757 ac_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
758 ac_cv_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
759 ac_cv_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
760 ac_env_CC_set=${CC+set}
761 ac_env_CC_value=$CC
762 ac_cv_env_CC_set=${CC+set}
763 ac_cv_env_CC_value=$CC
764 ac_env_CFLAGS_set=${CFLAGS+set}
765 ac_env_CFLAGS_value=$CFLAGS
766 ac_cv_env_CFLAGS_set=${CFLAGS+set}
767 ac_cv_env_CFLAGS_value=$CFLAGS
768 ac_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_env_LDFLAGS_value=$LDFLAGS
770 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
771 ac_cv_env_LDFLAGS_value=$LDFLAGS
772 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_env_CPPFLAGS_value=$CPPFLAGS
774 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
775 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures bash 3.1-devel to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 System types:
842   --build=BUILD     configure for building on BUILD [guessed]
843   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
844 _ACEOF
845 fi
846
847 if test -n "$ac_init_help"; then
848   case $ac_init_help in
849      short | recursive ) echo "Configuration of bash 3.1-devel:";;
850    esac
851   cat <<\_ACEOF
852
853 Optional Features:
854   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
855   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
856   --enable-minimal-config a minimal sh-like configuration
857   --enable-alias          enable shell aliases
858   --enable-arith-for-command
859                           enable arithmetic for command
860   --enable-array-variables
861                           include shell array variables
862   --enable-bang-history   turn on csh-style history substitution
863   --enable-brace-expansion
864                           include brace expansion
865   --enable-command-timing enable the time reserved word and command timing
866   --enable-cond-command   enable the conditional command
867   --enable-cond-regexp    enable extgended regular expression matching in
868                           conditional commands
869   --enable-debugger       enable support for bash debugger
870   --enable-directory-stack
871                           enable builtins pushd/popd/dirs
872   --enable-disabled-builtins
873                           allow disabled builtins to still be invoked
874   --enable-dparen-arithmetic
875                           include ((...)) command
876   --enable-extended-glob  include ksh-style extended pattern matching
877   --enable-help-builtin   include the help builtin
878   --enable-history        turn on command history
879   --enable-job-control    enable job control features
880   --enable-multibyte      enable multibyte characters if OS supports them
881   --enable-net-redirections
882                           enable /dev/tcp/host/port redirection
883   --enable-process-substitution
884                           enable process substitution
885   --enable-progcomp       enable programmable completion and the complete
886                           builtin
887   --enable-prompt-string-decoding
888                           turn on escape character decoding in prompts
889   --enable-readline       turn on command line editing
890   --enable-restricted     enable a restricted shell
891   --enable-select         include select command
892   --enable-separate-helpfiles
893                           use external files for help builtin documentation
894   --enable-single-help-strings
895                           store help documentation as a single string to ease
896                           translation
897   --enable-usg-echo-default
898                           a synonym for --enable-xpg-echo-default
899   --enable-xpg-echo-default
900                           make the echo builtin expand escape sequences by
901                           default
902   --enable-mem-scramble   scramble memory on calls to malloc and free
903   --enable-profiling      allow profiling with gprof
904   --enable-static-link    link bash statically, for use as a root shell
905   --disable-largefile     omit support for large files
906   --disable-nls           do not use Native Language Support
907   --disable-rpath         do not hardcode runtime library paths
908
909 Optional Packages:
910   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
911   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
912   --with-lispdir          override the default lisp directory
913   --with-afs              if you are running AFS
914   --with-bash-malloc      use the Bash version of malloc
915   --with-curses           use the curses library instead of the termcap
916                           library
917   --with-gnu-malloc       synonym for --with-bash-malloc
918   --with-installed-readline
919                           use a version of the readline library that is
920                           already installed
921   --with-purecov          configure to postprocess with pure coverage
922   --with-purify           configure to postprocess with purify
923   --with-gnu-ld           assume the C compiler uses GNU ld default=no
924   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
925   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
926   --with-included-gettext use the GNU gettext library included here
927   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
928   --without-libintl-prefix     don't search for libintl in includedir and libdir
929
930 Some influential environment variables:
931   DEBUGGER_START_FILE
932               location of bash debugger initialization file
933   CC          C compiler command
934   CFLAGS      C compiler flags
935   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
936               nonstandard directory <lib dir>
937   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
938               headers in a nonstandard directory <include dir>
939   CPP         C preprocessor
940
941 Use these variables to override the choices made by `configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
943
944 Report bugs to <bug-bash@gnu.org>.
945 _ACEOF
946 fi
947
948 if test "$ac_init_help" = "recursive"; then
949   # If there are subdirs, report their specific --help.
950   ac_popdir=`pwd`
951   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
952     test -d $ac_dir || continue
953     ac_builddir=.
954
955 if test "$ac_dir" != .; then
956   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
957   # A "../" for each directory in $ac_dir_suffix.
958   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
959 else
960   ac_dir_suffix= ac_top_builddir=
961 fi
962
963 case $srcdir in
964   .)  # No --srcdir option.  We are building in place.
965     ac_srcdir=.
966     if test -z "$ac_top_builddir"; then
967        ac_top_srcdir=.
968     else
969        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
970     fi ;;
971   [\\/]* | ?:[\\/]* )  # Absolute path.
972     ac_srcdir=$srcdir$ac_dir_suffix;
973     ac_top_srcdir=$srcdir ;;
974   *) # Relative path.
975     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
976     ac_top_srcdir=$ac_top_builddir$srcdir ;;
977 esac
978
979 # Do not use `cd foo && pwd` to compute absolute paths, because
980 # the directories may not exist.
981 case `pwd` in
982 .) ac_abs_builddir="$ac_dir";;
983 *)
984   case "$ac_dir" in
985   .) ac_abs_builddir=`pwd`;;
986   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
987   *) ac_abs_builddir=`pwd`/"$ac_dir";;
988   esac;;
989 esac
990 case $ac_abs_builddir in
991 .) ac_abs_top_builddir=${ac_top_builddir}.;;
992 *)
993   case ${ac_top_builddir}. in
994   .) ac_abs_top_builddir=$ac_abs_builddir;;
995   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
996   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
997   esac;;
998 esac
999 case $ac_abs_builddir in
1000 .) ac_abs_srcdir=$ac_srcdir;;
1001 *)
1002   case $ac_srcdir in
1003   .) ac_abs_srcdir=$ac_abs_builddir;;
1004   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1005   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1006   esac;;
1007 esac
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1010 *)
1011   case $ac_top_srcdir in
1012   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1013   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1014   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1015   esac;;
1016 esac
1017
1018     cd $ac_dir
1019     # Check for guested configure; otherwise get Cygnus style configure.
1020     if test -f $ac_srcdir/configure.gnu; then
1021       echo
1022       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1023     elif test -f $ac_srcdir/configure; then
1024       echo
1025       $SHELL $ac_srcdir/configure  --help=recursive
1026     elif test -f $ac_srcdir/configure.ac ||
1027            test -f $ac_srcdir/configure.in; then
1028       echo
1029       $ac_configure --help
1030     else
1031       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1032     fi
1033     cd $ac_popdir
1034   done
1035 fi
1036
1037 test -n "$ac_init_help" && exit 0
1038 if $ac_init_version; then
1039   cat <<\_ACEOF
1040 bash configure 3.1-devel
1041 generated by GNU Autoconf 2.59
1042
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1046 _ACEOF
1047   exit 0
1048 fi
1049 exec 5>config.log
1050 cat >&5 <<_ACEOF
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1053
1054 It was created by bash $as_me 3.1-devel, which was
1055 generated by GNU Autoconf 2.59.  Invocation command line was
1056
1057   $ $0 $@
1058
1059 _ACEOF
1060 {
1061 cat <<_ASUNAME
1062 ## --------- ##
1063 ## Platform. ##
1064 ## --------- ##
1065
1066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1071
1072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1073 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1074
1075 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1076 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1078 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1079 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1080 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1081 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1082
1083 _ASUNAME
1084
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1086 for as_dir in $PATH
1087 do
1088   IFS=$as_save_IFS
1089   test -z "$as_dir" && as_dir=.
1090   echo "PATH: $as_dir"
1091 done
1092
1093 } >&5
1094
1095 cat >&5 <<_ACEOF
1096
1097
1098 ## ----------- ##
1099 ## Core tests. ##
1100 ## ----------- ##
1101
1102 _ACEOF
1103
1104
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1110 ac_configure_args=
1111 ac_configure_args0=
1112 ac_configure_args1=
1113 ac_sep=
1114 ac_must_keep_next=false
1115 for ac_pass in 1 2
1116 do
1117   for ac_arg
1118   do
1119     case $ac_arg in
1120     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122     | -silent | --silent | --silen | --sile | --sil)
1123       continue ;;
1124     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126     esac
1127     case $ac_pass in
1128     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1129     2)
1130       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131       if test $ac_must_keep_next = true; then
1132         ac_must_keep_next=false # Got value, back to normal.
1133       else
1134         case $ac_arg in
1135           *=* | --config-cache | -C | -disable-* | --disable-* \
1136           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138           | -with-* | --with-* | -without-* | --without-* | --x)
1139             case "$ac_configure_args0 " in
1140               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141             esac
1142             ;;
1143           -* ) ac_must_keep_next=true ;;
1144         esac
1145       fi
1146       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147       # Get rid of the leading space.
1148       ac_sep=" "
1149       ;;
1150     esac
1151   done
1152 done
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1155
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log.  We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close' the trap.
1161 trap 'exit_status=$?
1162   # Save into config.log some information that might help in debugging.
1163   {
1164     echo
1165
1166     cat <<\_ASBOX
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1170 _ASBOX
1171     echo
1172     # The following way of writing the cache mishandles newlines in values,
1173 {
1174   (set) 2>&1 |
1175     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176     *ac_space=\ *)
1177       sed -n \
1178         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1180       ;;
1181     *)
1182       sed -n \
1183         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1184       ;;
1185     esac;
1186 }
1187     echo
1188
1189     cat <<\_ASBOX
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1193 _ASBOX
1194     echo
1195     for ac_var in $ac_subst_vars
1196     do
1197       eval ac_val=$`echo $ac_var`
1198       echo "$ac_var='"'"'$ac_val'"'"'"
1199     done | sort
1200     echo
1201
1202     if test -n "$ac_subst_files"; then
1203       cat <<\_ASBOX
1204 ## ------------- ##
1205 ## Output files. ##
1206 ## ------------- ##
1207 _ASBOX
1208       echo
1209       for ac_var in $ac_subst_files
1210       do
1211         eval ac_val=$`echo $ac_var`
1212         echo "$ac_var='"'"'$ac_val'"'"'"
1213       done | sort
1214       echo
1215     fi
1216
1217     if test -s confdefs.h; then
1218       cat <<\_ASBOX
1219 ## ----------- ##
1220 ## confdefs.h. ##
1221 ## ----------- ##
1222 _ASBOX
1223       echo
1224       sed "/^$/d" confdefs.h | sort
1225       echo
1226     fi
1227     test "$ac_signal" != 0 &&
1228       echo "$as_me: caught signal $ac_signal"
1229     echo "$as_me: exit $exit_status"
1230   } >&5
1231   rm -f core *.core &&
1232   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233     exit $exit_status
1234      ' 0
1235 for ac_signal in 1 2 13 15; do
1236   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237 done
1238 ac_signal=0
1239
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 echo >confdefs.h
1244
1245 # Predefined preprocessor variables.
1246
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1249 _ACEOF
1250
1251
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254 _ACEOF
1255
1256
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1259 _ACEOF
1260
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269 _ACEOF
1270
1271
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275   if test "x$prefix" != xNONE; then
1276     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1277   else
1278     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279   fi
1280 fi
1281 for ac_site_file in $CONFIG_SITE; do
1282   if test -r "$ac_site_file"; then
1283     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285     sed 's/^/| /' "$ac_site_file" >&5
1286     . "$ac_site_file"
1287   fi
1288 done
1289
1290 if test -r "$cache_file"; then
1291   # Some versions of bash will fail to source /dev/null (special
1292   # files actually), so we avoid doing that.
1293   if test -f "$cache_file"; then
1294     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1296     case $cache_file in
1297       [\\/]* | ?:[\\/]* ) . $cache_file;;
1298       *)                      . ./$cache_file;;
1299     esac
1300   fi
1301 else
1302   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1304   >$cache_file
1305 fi
1306
1307 # Check that the precious variables saved in the cache have kept the same
1308 # value.
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1312   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313   eval ac_new_set=\$ac_env_${ac_var}_set
1314   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315   eval ac_new_val="\$ac_env_${ac_var}_value"
1316   case $ac_old_set,$ac_new_set in
1317     set,)
1318       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1320       ac_cache_corrupted=: ;;
1321     ,set)
1322       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324       ac_cache_corrupted=: ;;
1325     ,);;
1326     *)
1327       if test "x$ac_old_val" != "x$ac_new_val"; then
1328         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1329 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1330         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1331 echo "$as_me:   former value:  $ac_old_val" >&2;}
1332         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1333 echo "$as_me:   current value: $ac_new_val" >&2;}
1334         ac_cache_corrupted=:
1335       fi;;
1336   esac
1337   # Pass precious variables to config.status.
1338   if test "$ac_new_set" = set; then
1339     case $ac_new_val in
1340     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1342     *) ac_arg=$ac_var=$ac_new_val ;;
1343     esac
1344     case " $ac_configure_args " in
1345       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1346       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347     esac
1348   fi
1349 done
1350 if $ac_cache_corrupted; then
1351   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1354 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355    { (exit 1); exit 1; }; }
1356 fi
1357
1358 ac_ext=c
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394 ac_aux_dir=
1395 for ac_dir in ./support $srcdir/./support; do
1396   if test -f $ac_dir/install-sh; then
1397     ac_aux_dir=$ac_dir
1398     ac_install_sh="$ac_aux_dir/install-sh -c"
1399     break
1400   elif test -f $ac_dir/install.sh; then
1401     ac_aux_dir=$ac_dir
1402     ac_install_sh="$ac_aux_dir/install.sh -c"
1403     break
1404   elif test -f $ac_dir/shtool; then
1405     ac_aux_dir=$ac_dir
1406     ac_install_sh="$ac_aux_dir/shtool install -c"
1407     break
1408   fi
1409 done
1410 if test -z "$ac_aux_dir"; then
1411   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1412 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1413    { (exit 1); exit 1; }; }
1414 fi
1415 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1416 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1417 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1418
1419           ac_config_headers="$ac_config_headers config.h"
1420
1421
1422 BASHVERS=3.1
1423 RELSTATUS=devel
1424
1425 case "$RELSTATUS" in
1426 alp*|bet*|dev*|rc*)     DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1427 *)      DEBUG= MALLOC_DEBUG= ;;
1428 esac
1429
1430 # Make sure we can run config.sub.
1431 $ac_config_sub sun4 >/dev/null 2>&1 ||
1432   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1433 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1434    { (exit 1); exit 1; }; }
1435
1436 echo "$as_me:$LINENO: checking build system type" >&5
1437 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1438 if test "${ac_cv_build+set}" = set; then
1439   echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441   ac_cv_build_alias=$build_alias
1442 test -z "$ac_cv_build_alias" &&
1443   ac_cv_build_alias=`$ac_config_guess`
1444 test -z "$ac_cv_build_alias" &&
1445   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1446 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1447    { (exit 1); exit 1; }; }
1448 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1449   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1450 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1451    { (exit 1); exit 1; }; }
1452
1453 fi
1454 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1455 echo "${ECHO_T}$ac_cv_build" >&6
1456 build=$ac_cv_build
1457 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1458 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1459 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460
1461
1462 echo "$as_me:$LINENO: checking host system type" >&5
1463 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1464 if test "${ac_cv_host+set}" = set; then
1465   echo $ECHO_N "(cached) $ECHO_C" >&6
1466 else
1467   ac_cv_host_alias=$host_alias
1468 test -z "$ac_cv_host_alias" &&
1469   ac_cv_host_alias=$ac_cv_build_alias
1470 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1471   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1472 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1473    { (exit 1); exit 1; }; }
1474
1475 fi
1476 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1477 echo "${ECHO_T}$ac_cv_host" >&6
1478 host=$ac_cv_host
1479 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1480 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1481 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482
1483
1484
1485 opt_bash_malloc=yes
1486 opt_purify=no
1487 opt_purecov=no
1488 opt_afs=no
1489 opt_curses=no
1490 opt_with_installed_readline=no
1491
1492 #htmldir=
1493
1494 case "${host_cpu}-${host_os}" in
1495 alpha*-*)       opt_bash_malloc=no ;;   # alpha running osf/1 or linux
1496 *[Cc]ray*-*)    opt_bash_malloc=no ;;   # Crays
1497 *-osf1*)        opt_bash_malloc=no ;;   # other osf/1 machines
1498 sparc-svr4*)    opt_bash_malloc=no ;;   # sparc SVR4, SVR4.2
1499 sparc-netbsd*)  opt_bash_malloc=no ;;   # needs 8-byte alignment
1500 mips-irix6*)    opt_bash_malloc=no ;;   # needs 8-byte alignment
1501 m68k-sysv)      opt_bash_malloc=no ;;   # fixes file descriptor leak in closedir
1502 sparc-linux*)   opt_bash_malloc=no ;;   # sparc running linux; requires ELF
1503 #*-freebsd*-gnu)        opt_bash_malloc=no ;;   # there's some undetermined problem here
1504 #*-freebsd*)    opt_bash_malloc=no ;;   # they claim it's better; I disagree
1505 *-openbsd*)     opt_bash_malloc=no ;;   # they claim it needs eight-bit alignment
1506 *-aix*)         opt_bash_malloc=no ;;   # AIX machines
1507 *-nextstep*)    opt_bash_malloc=no ;;   # NeXT machines running NeXTstep
1508 *-macos*)       opt_bash_malloc=no ;;   # Apple MacOS X
1509 *-rhapsody*)    opt_bash_malloc=no ;;   # Apple Rhapsody (MacOS X)
1510 *-darwin*)      opt_bash_malloc=no ;;   # Apple Darwin (MacOS X)
1511 *-dgux*)        opt_bash_malloc=no ;;   # DG/UX machines
1512 *-qnx*)         opt_bash_malloc=no ;;   # QNX 4.2
1513 *-machten4)     opt_bash_malloc=no ;;   # MachTen 4.x
1514 *-bsdi2.1|*-bsdi3.?)    opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1515 *-beos*)        opt_bash_malloc=no ;;   # they say it's suitable
1516 *-cygwin*)      opt_bash_malloc=no ;;   # Cygnus's CYGWIN environment
1517 *-opennt*|*-interix*)   opt_bash_malloc=no ;;   # Interix, now owned by Microsoft
1518 esac
1519
1520 # memory scrambling on free()
1521 case "${host_os}" in
1522 sco3.2v5*|sco3.2v4*)    opt_memscramble=no ;;
1523 *)                      opt_memscramble=yes ;;
1524 esac
1525
1526
1527 # Check whether --with-lispdir or --without-lispdir was given.
1528 if test "${with_lispdir+set}" = set; then
1529   withval="$with_lispdir"
1530    lispdir="$withval"
1531     echo "$as_me:$LINENO: checking where .elc files should go" >&5
1532 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1533     echo "$as_me:$LINENO: result: $lispdir" >&5
1534 echo "${ECHO_T}$lispdir" >&6
1535 else
1536
1537   # If set to t, that means we are running in a shell under Emacs.
1538   # If you have an Emacs named "t", then use the full path.
1539   test x"$EMACS" = xt && EMACS=
1540   for ac_prog in emacs xemacs
1541 do
1542   # Extract the first word of "$ac_prog", so it can be a program name with args.
1543 set dummy $ac_prog; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_EMACS+set}" = set; then
1547   echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549   if test -n "$EMACS"; then
1550   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1551 else
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 for as_dir in $PATH
1554 do
1555   IFS=$as_save_IFS
1556   test -z "$as_dir" && as_dir=.
1557   for ac_exec_ext in '' $ac_executable_extensions; do
1558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559     ac_cv_prog_EMACS="$ac_prog"
1560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561     break 2
1562   fi
1563 done
1564 done
1565
1566 fi
1567 fi
1568 EMACS=$ac_cv_prog_EMACS
1569 if test -n "$EMACS"; then
1570   echo "$as_me:$LINENO: result: $EMACS" >&5
1571 echo "${ECHO_T}$EMACS" >&6
1572 else
1573   echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1575 fi
1576
1577   test -n "$EMACS" && break
1578 done
1579 test -n "$EMACS" || EMACS="no"
1580
1581   if test $EMACS != "no"; then
1582     if test x${lispdir+set} != xset; then
1583       echo "$as_me:$LINENO: checking where .elc files should go" >&5
1584 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1585 if test "${am_cv_lispdir+set}" = set; then
1586   echo $ECHO_N "(cached) $ECHO_C" >&6
1587 else
1588         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;}'`
1589         if test -z "$am_cv_lispdir"; then
1590           am_cv_lispdir='${datadir}/emacs/site-lisp'
1591         fi
1592
1593 fi
1594 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
1595 echo "${ECHO_T}$am_cv_lispdir" >&6
1596       lispdir="$am_cv_lispdir"
1597     fi
1598   fi
1599
1600 fi;
1601
1602
1603
1604
1605
1606 # Check whether --with-afs or --without-afs was given.
1607 if test "${with_afs+set}" = set; then
1608   withval="$with_afs"
1609   opt_afs=$withval
1610 fi;
1611
1612 # Check whether --with-bash-malloc or --without-bash-malloc was given.
1613 if test "${with_bash_malloc+set}" = set; then
1614   withval="$with_bash_malloc"
1615   opt_bash_malloc=$withval
1616 fi;
1617
1618 # Check whether --with-curses or --without-curses was given.
1619 if test "${with_curses+set}" = set; then
1620   withval="$with_curses"
1621   opt_curses=$withval
1622 fi;
1623
1624 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1625 if test "${with_gnu_malloc+set}" = set; then
1626   withval="$with_gnu_malloc"
1627   opt_bash_malloc=$withval
1628 fi;
1629
1630 # Check whether --with-installed-readline or --without-installed-readline was given.
1631 if test "${with_installed_readline+set}" = set; then
1632   withval="$with_installed_readline"
1633   opt_with_installed_readline=$withval
1634 fi;
1635
1636 # Check whether --with-purecov or --without-purecov was given.
1637 if test "${with_purecov+set}" = set; then
1638   withval="$with_purecov"
1639   opt_purecov=$withval
1640 fi;
1641
1642 # Check whether --with-purify or --without-purify was given.
1643 if test "${with_purify+set}" = set; then
1644   withval="$with_purify"
1645   opt_purify=$withval
1646 fi;
1647
1648 if test "$opt_bash_malloc" = yes; then
1649         MALLOC_TARGET=malloc
1650         MALLOC_SRC=malloc.c
1651
1652         MALLOC_LIB='-lmalloc'
1653         MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1654         MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1655         MALLOC_DEP='$(MALLOC_LIBRARY)'
1656
1657         cat >>confdefs.h <<\_ACEOF
1658 #define USING_BASH_MALLOC 1
1659 _ACEOF
1660
1661 else
1662         MALLOC_LIB=
1663         MALLOC_LIBRARY=
1664         MALLOC_LDFLAGS=
1665         MALLOC_DEP=
1666 fi
1667
1668 if test "$opt_purify" = yes; then
1669         PURIFY="purify "
1670         cat >>confdefs.h <<\_ACEOF
1671 #define DISABLE_MALLOC_WRAPPERS 1
1672 _ACEOF
1673
1674 else
1675         PURIFY=
1676 fi
1677
1678 if test "$opt_purecov" = yes; then
1679         PURIFY="${PURIFY}purecov"
1680 fi
1681
1682 if test "$opt_afs" = yes; then
1683         cat >>confdefs.h <<\_ACEOF
1684 #define AFS 1
1685 _ACEOF
1686
1687 fi
1688
1689 if test "$opt_curses" = yes; then
1690         prefer_curses=yes
1691 fi
1692
1693 if test -z "${DEBUGGER_START_FILE}"; then
1694         DEBUGGER_START_FILE=${ac_default_prefix}/lib/bashdb/bashdb-main.inc
1695 fi
1696
1697 opt_minimal_config=no
1698
1699 opt_job_control=yes
1700 opt_alias=yes
1701 opt_readline=yes
1702 opt_history=yes
1703 opt_bang_history=yes
1704 opt_dirstack=yes
1705 opt_restricted=yes
1706 opt_process_subst=yes
1707 opt_prompt_decoding=yes
1708 opt_select=yes
1709 opt_help=yes
1710 opt_array_variables=yes
1711 opt_dparen_arith=yes
1712 opt_extended_glob=yes
1713 opt_brace_expansion=yes
1714 opt_disabled_builtins=no
1715 opt_command_timing=yes
1716 opt_xpg_echo=no
1717 opt_cond_command=yes
1718 opt_cond_regexp=yes
1719 opt_arith_for_command=yes
1720 opt_net_redirs=yes
1721 opt_progcomp=yes
1722 opt_separate_help=no
1723 opt_multibyte=yes
1724 opt_debugger=yes
1725 opt_single_longdoc_strings=yes
1726
1727 opt_static_link=no
1728 opt_profiling=no
1729
1730 # Check whether --enable-minimal-config or --disable-minimal-config was given.
1731 if test "${enable_minimal_config+set}" = set; then
1732   enableval="$enable_minimal_config"
1733   opt_minimal_config=$enableval
1734 fi;
1735
1736 if test $opt_minimal_config = yes; then
1737         opt_job_control=no opt_alias=no opt_readline=no
1738         opt_history=no opt_bang_history=no opt_dirstack=no
1739         opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1740         opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1741         opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
1742         opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
1743         opt_net_redirs=no opt_progcomp=no opt_separate_help=no
1744         opt_multibyte=yes opt_cond_regexp=no
1745 fi
1746
1747 # Check whether --enable-alias or --disable-alias was given.
1748 if test "${enable_alias+set}" = set; then
1749   enableval="$enable_alias"
1750   opt_alias=$enableval
1751 fi;
1752 # Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1753 if test "${enable_arith_for_command+set}" = set; then
1754   enableval="$enable_arith_for_command"
1755   opt_arith_for_command=$enableval
1756 fi;
1757 # Check whether --enable-array-variables or --disable-array-variables was given.
1758 if test "${enable_array_variables+set}" = set; then
1759   enableval="$enable_array_variables"
1760   opt_array_variables=$enableval
1761 fi;
1762 # Check whether --enable-bang-history or --disable-bang-history was given.
1763 if test "${enable_bang_history+set}" = set; then
1764   enableval="$enable_bang_history"
1765   opt_bang_history=$enableval
1766 fi;
1767 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1768 if test "${enable_brace_expansion+set}" = set; then
1769   enableval="$enable_brace_expansion"
1770   opt_brace_expansion=$enableval
1771 fi;
1772 # Check whether --enable-command-timing or --disable-command-timing was given.
1773 if test "${enable_command_timing+set}" = set; then
1774   enableval="$enable_command_timing"
1775   opt_command_timing=$enableval
1776 fi;
1777 # Check whether --enable-cond-command or --disable-cond-command was given.
1778 if test "${enable_cond_command+set}" = set; then
1779   enableval="$enable_cond_command"
1780   opt_cond_command=$enableval
1781 fi;
1782 # Check whether --enable-cond-regexp or --disable-cond-regexp was given.
1783 if test "${enable_cond_regexp+set}" = set; then
1784   enableval="$enable_cond_regexp"
1785   opt_cond_regexp=$enableval
1786 fi;
1787 # Check whether --enable-debugger or --disable-debugger was given.
1788 if test "${enable_debugger+set}" = set; then
1789   enableval="$enable_debugger"
1790   opt_debugger=$enableval
1791 fi;
1792 # Check whether --enable-directory-stack or --disable-directory-stack was given.
1793 if test "${enable_directory_stack+set}" = set; then
1794   enableval="$enable_directory_stack"
1795   opt_dirstack=$enableval
1796 fi;
1797 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1798 if test "${enable_disabled_builtins+set}" = set; then
1799   enableval="$enable_disabled_builtins"
1800   opt_disabled_builtins=$enableval
1801 fi;
1802 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1803 if test "${enable_dparen_arithmetic+set}" = set; then
1804   enableval="$enable_dparen_arithmetic"
1805   opt_dparen_arith=$enableval
1806 fi;
1807 # Check whether --enable-extended-glob or --disable-extended-glob was given.
1808 if test "${enable_extended_glob+set}" = set; then
1809   enableval="$enable_extended_glob"
1810   opt_extended_glob=$enableval
1811 fi;
1812 # Check whether --enable-help-builtin or --disable-help-builtin was given.
1813 if test "${enable_help_builtin+set}" = set; then
1814   enableval="$enable_help_builtin"
1815   opt_help=$enableval
1816 fi;
1817 # Check whether --enable-history or --disable-history was given.
1818 if test "${enable_history+set}" = set; then
1819   enableval="$enable_history"
1820   opt_history=$enableval
1821 fi;
1822 # Check whether --enable-job-control or --disable-job-control was given.
1823 if test "${enable_job_control+set}" = set; then
1824   enableval="$enable_job_control"
1825   opt_job_control=$enableval
1826 fi;
1827 # Check whether --enable-multibyte or --disable-multibyte was given.
1828 if test "${enable_multibyte+set}" = set; then
1829   enableval="$enable_multibyte"
1830   opt_multibyte=$enableval
1831 fi;
1832 # Check whether --enable-net-redirections or --disable-net-redirections was given.
1833 if test "${enable_net_redirections+set}" = set; then
1834   enableval="$enable_net_redirections"
1835   opt_net_redirs=$enableval
1836 fi;
1837 # Check whether --enable-process-substitution or --disable-process-substitution was given.
1838 if test "${enable_process_substitution+set}" = set; then
1839   enableval="$enable_process_substitution"
1840   opt_process_subst=$enableval
1841 fi;
1842 # Check whether --enable-progcomp or --disable-progcomp was given.
1843 if test "${enable_progcomp+set}" = set; then
1844   enableval="$enable_progcomp"
1845   opt_progcomp=$enableval
1846 fi;
1847 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1848 if test "${enable_prompt_string_decoding+set}" = set; then
1849   enableval="$enable_prompt_string_decoding"
1850   opt_prompt_decoding=$enableval
1851 fi;
1852 # Check whether --enable-readline or --disable-readline was given.
1853 if test "${enable_readline+set}" = set; then
1854   enableval="$enable_readline"
1855   opt_readline=$enableval
1856 fi;
1857 # Check whether --enable-restricted or --disable-restricted was given.
1858 if test "${enable_restricted+set}" = set; then
1859   enableval="$enable_restricted"
1860   opt_restricted=$enableval
1861 fi;
1862 # Check whether --enable-select or --disable-select was given.
1863 if test "${enable_select+set}" = set; then
1864   enableval="$enable_select"
1865   opt_select=$enableval
1866 fi;
1867 # Check whether --enable-separate-helpfiles or --disable-separate-helpfiles was given.
1868 if test "${enable_separate_helpfiles+set}" = set; then
1869   enableval="$enable_separate_helpfiles"
1870   opt_separate_help=$enableval
1871 fi;
1872 # Check whether --enable-single-help-strings or --disable-single-help-strings was given.
1873 if test "${enable_single_help_strings+set}" = set; then
1874   enableval="$enable_single_help_strings"
1875   opt_single_longdoc_strings=$enableval
1876 fi;
1877 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1878 if test "${enable_usg_echo_default+set}" = set; then
1879   enableval="$enable_usg_echo_default"
1880   opt_xpg_echo=$enableval
1881 fi;
1882 # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1883 if test "${enable_xpg_echo_default+set}" = set; then
1884   enableval="$enable_xpg_echo_default"
1885   opt_xpg_echo=$enableval
1886 fi;
1887
1888 # Check whether --enable-mem-scramble or --disable-mem-scramble was given.
1889 if test "${enable_mem_scramble+set}" = set; then
1890   enableval="$enable_mem_scramble"
1891   opt_memscramble=$enableval
1892 fi;
1893 # Check whether --enable-profiling or --disable-profiling was given.
1894 if test "${enable_profiling+set}" = set; then
1895   enableval="$enable_profiling"
1896   opt_profiling=$enableval
1897 fi;
1898 # Check whether --enable-static-link or --disable-static-link was given.
1899 if test "${enable_static_link+set}" = set; then
1900   enableval="$enable_static_link"
1901   opt_static_link=$enableval
1902 fi;
1903
1904
1905
1906 if test $opt_alias = yes; then
1907 cat >>confdefs.h <<\_ACEOF
1908 #define ALIAS 1
1909 _ACEOF
1910
1911 fi
1912 if test $opt_dirstack = yes; then
1913 cat >>confdefs.h <<\_ACEOF
1914 #define PUSHD_AND_POPD 1
1915 _ACEOF
1916
1917 fi
1918 if test $opt_restricted = yes; then
1919 cat >>confdefs.h <<\_ACEOF
1920 #define RESTRICTED_SHELL 1
1921 _ACEOF
1922
1923 fi
1924 if test $opt_process_subst = yes; then
1925 cat >>confdefs.h <<\_ACEOF
1926 #define PROCESS_SUBSTITUTION 1
1927 _ACEOF
1928
1929 fi
1930 if test $opt_prompt_decoding = yes; then
1931 cat >>confdefs.h <<\_ACEOF
1932 #define PROMPT_STRING_DECODE 1
1933 _ACEOF
1934
1935 fi
1936 if test $opt_select = yes; then
1937 cat >>confdefs.h <<\_ACEOF
1938 #define SELECT_COMMAND 1
1939 _ACEOF
1940
1941 fi
1942 if test $opt_help = yes; then
1943 cat >>confdefs.h <<\_ACEOF
1944 #define HELP_BUILTIN 1
1945 _ACEOF
1946
1947 fi
1948 if test $opt_array_variables = yes; then
1949 cat >>confdefs.h <<\_ACEOF
1950 #define ARRAY_VARS 1
1951 _ACEOF
1952
1953 fi
1954 if test $opt_dparen_arith = yes; then
1955 cat >>confdefs.h <<\_ACEOF
1956 #define DPAREN_ARITHMETIC 1
1957 _ACEOF
1958
1959 fi
1960 if test $opt_brace_expansion = yes; then
1961 cat >>confdefs.h <<\_ACEOF
1962 #define BRACE_EXPANSION 1
1963 _ACEOF
1964
1965 fi
1966 if test $opt_disabled_builtins = yes; then
1967 cat >>confdefs.h <<\_ACEOF
1968 #define DISABLED_BUILTINS 1
1969 _ACEOF
1970
1971 fi
1972 if test $opt_command_timing = yes; then
1973 cat >>confdefs.h <<\_ACEOF
1974 #define COMMAND_TIMING 1
1975 _ACEOF
1976
1977 fi
1978 if test $opt_xpg_echo = yes ; then
1979 cat >>confdefs.h <<\_ACEOF
1980 #define DEFAULT_ECHO_TO_XPG 1
1981 _ACEOF
1982
1983 fi
1984 if test $opt_extended_glob = yes ; then
1985 cat >>confdefs.h <<\_ACEOF
1986 #define EXTENDED_GLOB 1
1987 _ACEOF
1988
1989 fi
1990 if test $opt_cond_command = yes ; then
1991 cat >>confdefs.h <<\_ACEOF
1992 #define COND_COMMAND 1
1993 _ACEOF
1994
1995 fi
1996 if test $opt_cond_regexp = yes ; then
1997 cat >>confdefs.h <<\_ACEOF
1998 #define COND_REGEXP 1
1999 _ACEOF
2000
2001 fi
2002 if test $opt_arith_for_command = yes; then
2003 cat >>confdefs.h <<\_ACEOF
2004 #define ARITH_FOR_COMMAND 1
2005 _ACEOF
2006
2007 fi
2008 if test $opt_net_redirs = yes; then
2009 cat >>confdefs.h <<\_ACEOF
2010 #define NETWORK_REDIRECTIONS 1
2011 _ACEOF
2012
2013 fi
2014 if test $opt_progcomp = yes; then
2015 cat >>confdefs.h <<\_ACEOF
2016 #define PROGRAMMABLE_COMPLETION 1
2017 _ACEOF
2018
2019 fi
2020 if test $opt_multibyte = no; then
2021 cat >>confdefs.h <<\_ACEOF
2022 #define NO_MULTIBYTE_SUPPORT 1
2023 _ACEOF
2024
2025 fi
2026 if test $opt_debugger = yes; then
2027 cat >>confdefs.h <<\_ACEOF
2028 #define DEBUGGER 1
2029 _ACEOF
2030
2031 fi
2032
2033 if test $opt_memscramble = yes; then
2034 cat >>confdefs.h <<\_ACEOF
2035 #define MEMSCRAMBLE 1
2036 _ACEOF
2037
2038 fi
2039
2040 if test "$opt_minimal_config" = yes; then
2041         TESTSCRIPT=run-minimal
2042 else
2043         TESTSCRIPT=run-all
2044 fi
2045
2046 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2047 if test "$opt_separate_help" != no; then
2048         if test "$opt_separate_help" = "yes" ; then
2049                 HELPDIR='${datadir}/bash'
2050         else
2051                 HELPDIR=$opt_separate_help
2052         fi
2053         HELPDIRDEFINE='-H ${HELPDIR}'
2054         HELPINSTALL='install-help'
2055 fi
2056 HELPSTRINGS=
2057 if test "$opt_single_longdoc_strings" != "yes"; then
2058         HELPSTRINGS='-S'
2059 fi
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078 echo ""
2079 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2080 echo ""
2081
2082 ac_ext=c
2083 ac_cpp='$CPP $CPPFLAGS'
2084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2087 if test -n "$ac_tool_prefix"; then
2088   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2089 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_CC+set}" = set; then
2093   echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095   if test -n "$CC"; then
2096   ac_cv_prog_CC="$CC" # Let the user override the test.
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101   IFS=$as_save_IFS
2102   test -z "$as_dir" && as_dir=.
2103   for ac_exec_ext in '' $ac_executable_extensions; do
2104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107     break 2
2108   fi
2109 done
2110 done
2111
2112 fi
2113 fi
2114 CC=$ac_cv_prog_CC
2115 if test -n "$CC"; then
2116   echo "$as_me:$LINENO: result: $CC" >&5
2117 echo "${ECHO_T}$CC" >&6
2118 else
2119   echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2121 fi
2122
2123 fi
2124 if test -z "$ac_cv_prog_CC"; then
2125   ac_ct_CC=$CC
2126   # Extract the first word of "gcc", so it can be a program name with args.
2127 set dummy gcc; ac_word=$2
2128 echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   if test -n "$ac_ct_CC"; then
2134   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143     ac_cv_prog_ac_ct_CC="gcc"
2144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145     break 2
2146   fi
2147 done
2148 done
2149
2150 fi
2151 fi
2152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2153 if test -n "$ac_ct_CC"; then
2154   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2155 echo "${ECHO_T}$ac_ct_CC" >&6
2156 else
2157   echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2159 fi
2160
2161   CC=$ac_ct_CC
2162 else
2163   CC="$ac_cv_prog_CC"
2164 fi
2165
2166 if test -z "$CC"; then
2167   if test -n "$ac_tool_prefix"; then
2168   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2169 set dummy ${ac_tool_prefix}cc; ac_word=$2
2170 echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_CC+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   if test -n "$CC"; then
2176   ac_cv_prog_CC="$CC" # Let the user override the test.
2177 else
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2180 do
2181   IFS=$as_save_IFS
2182   test -z "$as_dir" && as_dir=.
2183   for ac_exec_ext in '' $ac_executable_extensions; do
2184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185     ac_cv_prog_CC="${ac_tool_prefix}cc"
2186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187     break 2
2188   fi
2189 done
2190 done
2191
2192 fi
2193 fi
2194 CC=$ac_cv_prog_CC
2195 if test -n "$CC"; then
2196   echo "$as_me:$LINENO: result: $CC" >&5
2197 echo "${ECHO_T}$CC" >&6
2198 else
2199   echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2201 fi
2202
2203 fi
2204 if test -z "$ac_cv_prog_CC"; then
2205   ac_ct_CC=$CC
2206   # Extract the first word of "cc", so it can be a program name with args.
2207 set dummy cc; ac_word=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211   echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213   if test -n "$ac_ct_CC"; then
2214   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2218 do
2219   IFS=$as_save_IFS
2220   test -z "$as_dir" && as_dir=.
2221   for ac_exec_ext in '' $ac_executable_extensions; do
2222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223     ac_cv_prog_ac_ct_CC="cc"
2224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225     break 2
2226   fi
2227 done
2228 done
2229
2230 fi
2231 fi
2232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2233 if test -n "$ac_ct_CC"; then
2234   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2235 echo "${ECHO_T}$ac_ct_CC" >&6
2236 else
2237   echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2239 fi
2240
2241   CC=$ac_ct_CC
2242 else
2243   CC="$ac_cv_prog_CC"
2244 fi
2245
2246 fi
2247 if test -z "$CC"; then
2248   # Extract the first word of "cc", so it can be a program name with args.
2249 set dummy cc; ac_word=$2
2250 echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252 if test "${ac_cv_prog_CC+set}" = set; then
2253   echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255   if test -n "$CC"; then
2256   ac_cv_prog_CC="$CC" # Let the user override the test.
2257 else
2258   ac_prog_rejected=no
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262   IFS=$as_save_IFS
2263   test -z "$as_dir" && as_dir=.
2264   for ac_exec_ext in '' $ac_executable_extensions; do
2265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2267        ac_prog_rejected=yes
2268        continue
2269      fi
2270     ac_cv_prog_CC="cc"
2271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272     break 2
2273   fi
2274 done
2275 done
2276
2277 if test $ac_prog_rejected = yes; then
2278   # We found a bogon in the path, so make sure we never use it.
2279   set dummy $ac_cv_prog_CC
2280   shift
2281   if test $# != 0; then
2282     # We chose a different compiler from the bogus one.
2283     # However, it has the same basename, so the bogon will be chosen
2284     # first if we set CC to just the basename; use the full file name.
2285     shift
2286     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2287   fi
2288 fi
2289 fi
2290 fi
2291 CC=$ac_cv_prog_CC
2292 if test -n "$CC"; then
2293   echo "$as_me:$LINENO: result: $CC" >&5
2294 echo "${ECHO_T}$CC" >&6
2295 else
2296   echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2298 fi
2299
2300 fi
2301 if test -z "$CC"; then
2302   if test -n "$ac_tool_prefix"; then
2303   for ac_prog in cl
2304   do
2305     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2307 echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2309 if test "${ac_cv_prog_CC+set}" = set; then
2310   echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312   if test -n "$CC"; then
2313   ac_cv_prog_CC="$CC" # Let the user override the test.
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2317 do
2318   IFS=$as_save_IFS
2319   test -z "$as_dir" && as_dir=.
2320   for ac_exec_ext in '' $ac_executable_extensions; do
2321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2322     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324     break 2
2325   fi
2326 done
2327 done
2328
2329 fi
2330 fi
2331 CC=$ac_cv_prog_CC
2332 if test -n "$CC"; then
2333   echo "$as_me:$LINENO: result: $CC" >&5
2334 echo "${ECHO_T}$CC" >&6
2335 else
2336   echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6
2338 fi
2339
2340     test -n "$CC" && break
2341   done
2342 fi
2343 if test -z "$CC"; then
2344   ac_ct_CC=$CC
2345   for ac_prog in cl
2346 do
2347   # Extract the first word of "$ac_prog", so it can be a program name with args.
2348 set dummy $ac_prog; ac_word=$2
2349 echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2351 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   if test -n "$ac_ct_CC"; then
2355   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360   IFS=$as_save_IFS
2361   test -z "$as_dir" && as_dir=.
2362   for ac_exec_ext in '' $ac_executable_extensions; do
2363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2364     ac_cv_prog_ac_ct_CC="$ac_prog"
2365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366     break 2
2367   fi
2368 done
2369 done
2370
2371 fi
2372 fi
2373 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2374 if test -n "$ac_ct_CC"; then
2375   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2376 echo "${ECHO_T}$ac_ct_CC" >&6
2377 else
2378   echo "$as_me:$LINENO: result: no" >&5
2379 echo "${ECHO_T}no" >&6
2380 fi
2381
2382   test -n "$ac_ct_CC" && break
2383 done
2384
2385   CC=$ac_ct_CC
2386 fi
2387
2388 fi
2389
2390
2391 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2392 See \`config.log' for more details." >&5
2393 echo "$as_me: error: no acceptable C compiler found in \$PATH
2394 See \`config.log' for more details." >&2;}
2395    { (exit 1); exit 1; }; }
2396
2397 # Provide some information about the compiler.
2398 echo "$as_me:$LINENO:" \
2399      "checking for C compiler version" >&5
2400 ac_compiler=`set X $ac_compile; echo $2`
2401 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2402   (eval $ac_compiler --version </dev/null >&5) 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }
2406 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2407   (eval $ac_compiler -v </dev/null >&5) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }
2411 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2412   (eval $ac_compiler -V </dev/null >&5) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }
2416
2417 cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h.  */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h.  */
2423
2424 int
2425 main ()
2426 {
2427
2428   ;
2429   return 0;
2430 }
2431 _ACEOF
2432 ac_clean_files_save=$ac_clean_files
2433 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2434 # Try to create an executable without -o first, disregard a.out.
2435 # It will help us diagnose broken compilers, and finding out an intuition
2436 # of exeext.
2437 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2438 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2439 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2440 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2441   (eval $ac_link_default) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; then
2445   # Find the output, starting from the most likely.  This scheme is
2446 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2447 # resort.
2448
2449 # Be careful to initialize this variable, since it used to be cached.
2450 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2451 ac_cv_exeext=
2452 # b.out is created by i960 compilers.
2453 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2454 do
2455   test -f "$ac_file" || continue
2456   case $ac_file in
2457     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2458         ;;
2459     conftest.$ac_ext )
2460         # This is the source file.
2461         ;;
2462     [ab].out )
2463         # We found the default executable, but exeext='' is most
2464         # certainly right.
2465         break;;
2466     *.* )
2467         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2468         # FIXME: I believe we export ac_cv_exeext for Libtool,
2469         # but it would be cool to find out if it's true.  Does anybody
2470         # maintain Libtool? --akim.
2471         export ac_cv_exeext
2472         break;;
2473     * )
2474         break;;
2475   esac
2476 done
2477 else
2478   echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2482 See \`config.log' for more details." >&5
2483 echo "$as_me: error: C compiler cannot create executables
2484 See \`config.log' for more details." >&2;}
2485    { (exit 77); exit 77; }; }
2486 fi
2487
2488 ac_exeext=$ac_cv_exeext
2489 echo "$as_me:$LINENO: result: $ac_file" >&5
2490 echo "${ECHO_T}$ac_file" >&6
2491
2492 # Check the compiler produces executables we can run.  If not, either
2493 # the compiler is broken, or we cross compile.
2494 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2495 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2496 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2497 # If not cross compiling, check that we can run a simple program.
2498 if test "$cross_compiling" != yes; then
2499   if { ac_try='./$ac_file'
2500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501   (eval $ac_try) 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; }; then
2505     cross_compiling=no
2506   else
2507     if test "$cross_compiling" = maybe; then
2508         cross_compiling=yes
2509     else
2510         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2511 If you meant to cross compile, use \`--host'.
2512 See \`config.log' for more details." >&5
2513 echo "$as_me: error: cannot run C compiled programs.
2514 If you meant to cross compile, use \`--host'.
2515 See \`config.log' for more details." >&2;}
2516    { (exit 1); exit 1; }; }
2517     fi
2518   fi
2519 fi
2520 echo "$as_me:$LINENO: result: yes" >&5
2521 echo "${ECHO_T}yes" >&6
2522
2523 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2524 ac_clean_files=$ac_clean_files_save
2525 # Check the compiler produces executables we can run.  If not, either
2526 # the compiler is broken, or we cross compile.
2527 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2528 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2529 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2530 echo "${ECHO_T}$cross_compiling" >&6
2531
2532 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2533 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2535   (eval $ac_link) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; then
2539   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2540 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2541 # work properly (i.e., refer to `conftest.exe'), while it won't with
2542 # `rm'.
2543 for ac_file in conftest.exe conftest conftest.*; do
2544   test -f "$ac_file" || continue
2545   case $ac_file in
2546     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2547     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2548           export ac_cv_exeext
2549           break;;
2550     * ) break;;
2551   esac
2552 done
2553 else
2554   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2557 See \`config.log' for more details." >&2;}
2558    { (exit 1); exit 1; }; }
2559 fi
2560
2561 rm -f conftest$ac_cv_exeext
2562 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2563 echo "${ECHO_T}$ac_cv_exeext" >&6
2564
2565 rm -f conftest.$ac_ext
2566 EXEEXT=$ac_cv_exeext
2567 ac_exeext=$EXEEXT
2568 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2569 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2570 if test "${ac_cv_objext+set}" = set; then
2571   echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573   cat >conftest.$ac_ext <<_ACEOF
2574 /* confdefs.h.  */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h.  */
2579
2580 int
2581 main ()
2582 {
2583
2584   ;
2585   return 0;
2586 }
2587 _ACEOF
2588 rm -f conftest.o conftest.obj
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590   (eval $ac_compile) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; then
2594   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2595   case $ac_file in
2596     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2597     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2598        break;;
2599   esac
2600 done
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2608 See \`config.log' for more details." >&2;}
2609    { (exit 1); exit 1; }; }
2610 fi
2611
2612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2613 fi
2614 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2615 echo "${ECHO_T}$ac_cv_objext" >&6
2616 OBJEXT=$ac_cv_objext
2617 ac_objext=$OBJEXT
2618 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2621   echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623   cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629
2630 int
2631 main ()
2632 {
2633 #ifndef __GNUC__
2634        choke me
2635 #endif
2636
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643   (eval $ac_compile) 2>conftest.er1
2644   ac_status=$?
2645   grep -v '^ *+' conftest.er1 >conftest.err
2646   rm -f conftest.er1
2647   cat conftest.err >&5
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); } &&
2650          { ac_try='test -z "$ac_c_werror_flag"
2651                          || test ! -s conftest.err'
2652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653   (eval $ac_try) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; } &&
2657          { ac_try='test -s conftest.$ac_objext'
2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659   (eval $ac_try) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; }; then
2663   ac_compiler_gnu=yes
2664 else
2665   echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 ac_compiler_gnu=no
2669 fi
2670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2672
2673 fi
2674 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2675 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2676 GCC=`test $ac_compiler_gnu = yes && echo yes`
2677 ac_test_CFLAGS=${CFLAGS+set}
2678 ac_save_CFLAGS=$CFLAGS
2679 CFLAGS="-g"
2680 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2681 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2682 if test "${ac_cv_prog_cc_g+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691
2692 int
2693 main ()
2694 {
2695
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702   (eval $ac_compile) 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } &&
2709          { ac_try='test -z "$ac_c_werror_flag"
2710                          || test ! -s conftest.err'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; } &&
2716          { ac_try='test -s conftest.$ac_objext'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722   ac_cv_prog_cc_g=yes
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 ac_cv_prog_cc_g=no
2728 fi
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 fi
2731 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2732 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2733 if test "$ac_test_CFLAGS" = set; then
2734   CFLAGS=$ac_save_CFLAGS
2735 elif test $ac_cv_prog_cc_g = yes; then
2736   if test "$GCC" = yes; then
2737     CFLAGS="-g -O2"
2738   else
2739     CFLAGS="-g"
2740   fi
2741 else
2742   if test "$GCC" = yes; then
2743     CFLAGS="-O2"
2744   else
2745     CFLAGS=
2746   fi
2747 fi
2748 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2749 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2750 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2751   echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753   ac_cv_prog_cc_stdc=no
2754 ac_save_CC=$CC
2755 cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h.  */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h.  */
2761 #include <stdarg.h>
2762 #include <stdio.h>
2763 #include <sys/types.h>
2764 #include <sys/stat.h>
2765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2766 struct buf { int x; };
2767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2768 static char *e (p, i)
2769      char **p;
2770      int i;
2771 {
2772   return p[i];
2773 }
2774 static char *f (char * (*g) (char **, int), char **p, ...)
2775 {
2776   char *s;
2777   va_list v;
2778   va_start (v,p);
2779   s = g (p, va_arg (v,int));
2780   va_end (v);
2781   return s;
2782 }
2783
2784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2785    function prototypes and stuff, but not '\xHH' hex character constants.
2786    These don't provoke an error unfortunately, instead are silently treated
2787    as 'x'.  The following induces an error, until -std1 is added to get
2788    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2789    array size at least.  It's necessary to write '\x00'==0 to get something
2790    that's true only with -std1.  */
2791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2792
2793 int test (int i, double x);
2794 struct s1 {int (*f) (int a);};
2795 struct s2 {int (*f) (double a);};
2796 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2797 int argc;
2798 char **argv;
2799 int
2800 main ()
2801 {
2802 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2803   ;
2804   return 0;
2805 }
2806 _ACEOF
2807 # Don't try gcc -ansi; that turns off useful extensions and
2808 # breaks some systems' header files.
2809 # AIX                   -qlanglvl=ansi
2810 # Ultrix and OSF/1      -std1
2811 # HP-UX 10.20 and later -Ae
2812 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2813 # SVR4                  -Xc -D__EXTENSIONS__
2814 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2815 do
2816   CC="$ac_save_CC $ac_arg"
2817   rm -f conftest.$ac_objext
2818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2819   (eval $ac_compile) 2>conftest.er1
2820   ac_status=$?
2821   grep -v '^ *+' conftest.er1 >conftest.err
2822   rm -f conftest.er1
2823   cat conftest.err >&5
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); } &&
2826          { ac_try='test -z "$ac_c_werror_flag"
2827                          || test ! -s conftest.err'
2828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829   (eval $ac_try) 2>&5
2830   ac_status=$?
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); }; } &&
2833          { ac_try='test -s conftest.$ac_objext'
2834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835   (eval $ac_try) 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); }; }; then
2839   ac_cv_prog_cc_stdc=$ac_arg
2840 break
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 fi
2846 rm -f conftest.err conftest.$ac_objext
2847 done
2848 rm -f conftest.$ac_ext conftest.$ac_objext
2849 CC=$ac_save_CC
2850
2851 fi
2852
2853 case "x$ac_cv_prog_cc_stdc" in
2854   x|xno)
2855     echo "$as_me:$LINENO: result: none needed" >&5
2856 echo "${ECHO_T}none needed" >&6 ;;
2857   *)
2858     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2859 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2860     CC="$CC $ac_cv_prog_cc_stdc" ;;
2861 esac
2862
2863 # Some people use a C++ compiler to compile C.  Since we use `exit',
2864 # in C++ we need to declare it.  In case someone uses the same compiler
2865 # for both compiling C and C++ we need to have the C++ compiler decide
2866 # the declaration of exit, since it's the most demanding environment.
2867 cat >conftest.$ac_ext <<_ACEOF
2868 #ifndef __cplusplus
2869   choke me
2870 #endif
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874   (eval $ac_compile) 2>conftest.er1
2875   ac_status=$?
2876   grep -v '^ *+' conftest.er1 >conftest.err
2877   rm -f conftest.er1
2878   cat conftest.err >&5
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } &&
2881          { ac_try='test -z "$ac_c_werror_flag"
2882                          || test ! -s conftest.err'
2883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; } &&
2888          { ac_try='test -s conftest.$ac_objext'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; }; then
2894   for ac_declaration in \
2895    '' \
2896    'extern "C" void std::exit (int) throw (); using std::exit;' \
2897    'extern "C" void std::exit (int); using std::exit;' \
2898    'extern "C" void exit (int) throw ();' \
2899    'extern "C" void exit (int);' \
2900    'void exit (int);'
2901 do
2902   cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h.  */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h.  */
2908 $ac_declaration
2909 #include <stdlib.h>
2910 int
2911 main ()
2912 {
2913 exit (42);
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920   (eval $ac_compile) 2>conftest.er1
2921   ac_status=$?
2922   grep -v '^ *+' conftest.er1 >conftest.err
2923   rm -f conftest.er1
2924   cat conftest.err >&5
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } &&
2927          { ac_try='test -z "$ac_c_werror_flag"
2928                          || test ! -s conftest.err'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; } &&
2934          { ac_try='test -s conftest.$ac_objext'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; }; then
2940   :
2941 else
2942   echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945 continue
2946 fi
2947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2948   cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h.  */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h.  */
2954 $ac_declaration
2955 int
2956 main ()
2957 {
2958 exit (42);
2959   ;
2960   return 0;
2961 }
2962 _ACEOF
2963 rm -f conftest.$ac_objext
2964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2965   (eval $ac_compile) 2>conftest.er1
2966   ac_status=$?
2967   grep -v '^ *+' conftest.er1 >conftest.err
2968   rm -f conftest.er1
2969   cat conftest.err >&5
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); } &&
2972          { ac_try='test -z "$ac_c_werror_flag"
2973                          || test ! -s conftest.err'
2974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975   (eval $ac_try) 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; } &&
2979          { ac_try='test -s conftest.$ac_objext'
2980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981   (eval $ac_try) 2>&5
2982   ac_status=$?
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); }; }; then
2985   break
2986 else
2987   echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990 fi
2991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2992 done
2993 rm -f conftest*
2994 if test -n "$ac_declaration"; then
2995   echo '#ifdef __cplusplus' >>confdefs.h
2996   echo $ac_declaration      >>confdefs.h
2997   echo '#endif'             >>confdefs.h
2998 fi
2999
3000 else
3001   echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 fi
3005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006 ac_ext=c
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011
3012
3013
3014
3015         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3016 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3017 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3018   echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020   ac_check_lib_save_LIBS=$LIBS
3021 LIBS="-lcposix  $LIBS"
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028
3029 /* Override any gcc2 internal prototype to avoid an error.  */
3030 #ifdef __cplusplus
3031 extern "C"
3032 #endif
3033 /* We use char because int might match the return type of a gcc2
3034    builtin and then its argument prototype would still apply.  */
3035 char strerror ();
3036 int
3037 main ()
3038 {
3039 strerror ();
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext conftest$ac_exeext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3046   (eval $ac_link) 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } &&
3053          { ac_try='test -z "$ac_c_werror_flag"
3054                          || test ! -s conftest.err'
3055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056   (eval $ac_try) 2>&5
3057   ac_status=$?
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); }; } &&
3060          { ac_try='test -s conftest$ac_exeext'
3061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062   (eval $ac_try) 2>&5
3063   ac_status=$?
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); }; }; then
3066   ac_cv_lib_cposix_strerror=yes
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 ac_cv_lib_cposix_strerror=no
3072 fi
3073 rm -f conftest.err conftest.$ac_objext \
3074       conftest$ac_exeext conftest.$ac_ext
3075 LIBS=$ac_check_lib_save_LIBS
3076 fi
3077 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3078 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3079 if test $ac_cv_lib_cposix_strerror = yes; then
3080   LIBS="$LIBS -lcposix"
3081 fi
3082
3083
3084
3085 ac_ext=c
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3091 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3092 # On Suns, sometimes $CPP names a directory.
3093 if test -n "$CPP" && test -d "$CPP"; then
3094   CPP=
3095 fi
3096 if test -z "$CPP"; then
3097   if test "${ac_cv_prog_CPP+set}" = set; then
3098   echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100       # Double quotes because CPP needs to be expanded
3101     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3102     do
3103       ac_preproc_ok=false
3104 for ac_c_preproc_warn_flag in '' yes
3105 do
3106   # Use a header file that comes with gcc, so configuring glibc
3107   # with a fresh cross-compiler works.
3108   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3109   # <limits.h> exists even on freestanding compilers.
3110   # On the NeXT, cc -E runs the code through the compiler's parser,
3111   # not just through cpp. "Syntax error" is here to catch this case.
3112   cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h.  */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h.  */
3118 #ifdef __STDC__
3119 # include <limits.h>
3120 #else
3121 # include <assert.h>
3122 #endif
3123                      Syntax error
3124 _ACEOF
3125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3126   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3127   ac_status=$?
3128   grep -v '^ *+' conftest.er1 >conftest.err
3129   rm -f conftest.er1
3130   cat conftest.err >&5
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); } >/dev/null; then
3133   if test -s conftest.err; then
3134     ac_cpp_err=$ac_c_preproc_warn_flag
3135     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3136   else
3137     ac_cpp_err=
3138   fi
3139 else
3140   ac_cpp_err=yes
3141 fi
3142 if test -z "$ac_cpp_err"; then
3143   :
3144 else
3145   echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148   # Broken: fails on valid input.
3149 continue
3150 fi
3151 rm -f conftest.err conftest.$ac_ext
3152
3153   # OK, works on sane cases.  Now check whether non-existent headers
3154   # can be detected and how.
3155   cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161 #include <ac_nonexistent.h>
3162 _ACEOF
3163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3164   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } >/dev/null; then
3171   if test -s conftest.err; then
3172     ac_cpp_err=$ac_c_preproc_warn_flag
3173     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3174   else
3175     ac_cpp_err=
3176   fi
3177 else
3178   ac_cpp_err=yes
3179 fi
3180 if test -z "$ac_cpp_err"; then
3181   # Broken: success on invalid input.
3182 continue
3183 else
3184   echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187   # Passes both tests.
3188 ac_preproc_ok=:
3189 break
3190 fi
3191 rm -f conftest.err conftest.$ac_ext
3192
3193 done
3194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3195 rm -f conftest.err conftest.$ac_ext
3196 if $ac_preproc_ok; then
3197   break
3198 fi
3199
3200     done
3201     ac_cv_prog_CPP=$CPP
3202
3203 fi
3204   CPP=$ac_cv_prog_CPP
3205 else
3206   ac_cv_prog_CPP=$CPP
3207 fi
3208 echo "$as_me:$LINENO: result: $CPP" >&5
3209 echo "${ECHO_T}$CPP" >&6
3210 ac_preproc_ok=false
3211 for ac_c_preproc_warn_flag in '' yes
3212 do
3213   # Use a header file that comes with gcc, so configuring glibc
3214   # with a fresh cross-compiler works.
3215   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3216   # <limits.h> exists even on freestanding compilers.
3217   # On the NeXT, cc -E runs the code through the compiler's parser,
3218   # not just through cpp. "Syntax error" is here to catch this case.
3219   cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h.  */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h.  */
3225 #ifdef __STDC__
3226 # include <limits.h>
3227 #else
3228 # include <assert.h>
3229 #endif
3230                      Syntax error
3231 _ACEOF
3232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3233   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3234   ac_status=$?
3235   grep -v '^ *+' conftest.er1 >conftest.err
3236   rm -f conftest.er1
3237   cat conftest.err >&5
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } >/dev/null; then
3240   if test -s conftest.err; then
3241     ac_cpp_err=$ac_c_preproc_warn_flag
3242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243   else
3244     ac_cpp_err=
3245   fi
3246 else
3247   ac_cpp_err=yes
3248 fi
3249 if test -z "$ac_cpp_err"; then
3250   :
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255   # Broken: fails on valid input.
3256 continue
3257 fi
3258 rm -f conftest.err conftest.$ac_ext
3259
3260   # OK, works on sane cases.  Now check whether non-existent headers
3261   # can be detected and how.
3262   cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h.  */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h.  */
3268 #include <ac_nonexistent.h>
3269 _ACEOF
3270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3271   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3272   ac_status=$?
3273   grep -v '^ *+' conftest.er1 >conftest.err
3274   rm -f conftest.er1
3275   cat conftest.err >&5
3276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); } >/dev/null; then
3278   if test -s conftest.err; then
3279     ac_cpp_err=$ac_c_preproc_warn_flag
3280     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3281   else
3282     ac_cpp_err=
3283   fi
3284 else
3285   ac_cpp_err=yes
3286 fi
3287 if test -z "$ac_cpp_err"; then
3288   # Broken: success on invalid input.
3289 continue
3290 else
3291   echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294   # Passes both tests.
3295 ac_preproc_ok=:
3296 break
3297 fi
3298 rm -f conftest.err conftest.$ac_ext
3299
3300 done
3301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3302 rm -f conftest.err conftest.$ac_ext
3303 if $ac_preproc_ok; then
3304   :
3305 else
3306   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3307 See \`config.log' for more details." >&5
3308 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3309 See \`config.log' for more details." >&2;}
3310    { (exit 1); exit 1; }; }
3311 fi
3312
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318
3319
3320 echo "$as_me:$LINENO: checking for egrep" >&5
3321 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3322 if test "${ac_cv_prog_egrep+set}" = set; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3326     then ac_cv_prog_egrep='grep -E'
3327     else ac_cv_prog_egrep='egrep'
3328     fi
3329 fi
3330 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3331 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3332  EGREP=$ac_cv_prog_egrep
3333
3334
3335 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3336 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3337 if test "${ac_cv_header_stdc+set}" = set; then
3338   echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340   cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346 #include <stdlib.h>
3347 #include <stdarg.h>
3348 #include <string.h>
3349 #include <float.h>
3350
3351 int
3352 main ()
3353 {
3354
3355   ;
3356   return 0;
3357 }
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361   (eval $ac_compile) 2>conftest.er1
3362   ac_status=$?
3363   grep -v '^ *+' conftest.er1 >conftest.err
3364   rm -f conftest.er1
3365   cat conftest.err >&5
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); } &&
3368          { ac_try='test -z "$ac_c_werror_flag"
3369                          || test ! -s conftest.err'
3370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371   (eval $ac_try) 2>&5
3372   ac_status=$?
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); }; } &&
3375          { ac_try='test -s conftest.$ac_objext'
3376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377   (eval $ac_try) 2>&5
3378   ac_status=$?
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); }; }; then
3381   ac_cv_header_stdc=yes
3382 else
3383   echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3385
3386 ac_cv_header_stdc=no
3387 fi
3388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3389
3390 if test $ac_cv_header_stdc = yes; then
3391   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3392   cat >conftest.$ac_ext <<_ACEOF
3393 /* confdefs.h.  */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h.  */
3398 #include <string.h>
3399
3400 _ACEOF
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402   $EGREP "memchr" >/dev/null 2>&1; then
3403   :
3404 else
3405   ac_cv_header_stdc=no
3406 fi
3407 rm -f conftest*
3408
3409 fi
3410
3411 if test $ac_cv_header_stdc = yes; then
3412   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3413   cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h.  */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h.  */
3419 #include <stdlib.h>
3420
3421 _ACEOF
3422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3423   $EGREP "free" >/dev/null 2>&1; then
3424   :
3425 else
3426   ac_cv_header_stdc=no
3427 fi
3428 rm -f conftest*
3429
3430 fi
3431
3432 if test $ac_cv_header_stdc = yes; then
3433   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3434   if test "$cross_compiling" = yes; then
3435   :
3436 else
3437   cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h.  */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h.  */
3443 #include <ctype.h>
3444 #if ((' ' & 0x0FF) == 0x020)
3445 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3446 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3447 #else
3448 # define ISLOWER(c) \
3449                    (('a' <= (c) && (c) <= 'i') \
3450                      || ('j' <= (c) && (c) <= 'r') \
3451                      || ('s' <= (c) && (c) <= 'z'))
3452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3453 #endif
3454
3455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3456 int
3457 main ()
3458 {
3459   int i;
3460   for (i = 0; i < 256; i++)
3461     if (XOR (islower (i), ISLOWER (i))
3462         || toupper (i) != TOUPPER (i))
3463       exit(2);
3464   exit (0);
3465 }
3466 _ACEOF
3467 rm -f conftest$ac_exeext
3468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3469   (eval $ac_link) 2>&5
3470   ac_status=$?
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474   (eval $ac_try) 2>&5
3475   ac_status=$?
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); }; }; then
3478   :
3479 else
3480   echo "$as_me: program exited with status $ac_status" >&5
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484 ( exit $ac_status )
3485 ac_cv_header_stdc=no
3486 fi
3487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3488 fi
3489 fi
3490 fi
3491 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3492 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3493 if test $ac_cv_header_stdc = yes; then
3494
3495 cat >>confdefs.h <<\_ACEOF
3496 #define STDC_HEADERS 1
3497 _ACEOF
3498
3499 fi
3500
3501 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3512                   inttypes.h stdint.h unistd.h
3513 do
3514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3515 echo "$as_me:$LINENO: checking for $ac_header" >&5
3516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526 $ac_includes_default
3527
3528 #include <$ac_header>
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532   (eval $ac_compile) 2>conftest.er1
3533   ac_status=$?
3534   grep -v '^ *+' conftest.er1 >conftest.err
3535   rm -f conftest.er1
3536   cat conftest.err >&5
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); } &&
3539          { ac_try='test -z "$ac_c_werror_flag"
3540                          || test ! -s conftest.err'
3541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542   (eval $ac_try) 2>&5
3543   ac_status=$?
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); }; } &&
3546          { ac_try='test -s conftest.$ac_objext'
3547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548   (eval $ac_try) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; }; then
3552   eval "$as_ac_Header=yes"
3553 else
3554   echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 eval "$as_ac_Header=no"
3558 fi
3559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560 fi
3561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3564   cat >>confdefs.h <<_ACEOF
3565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3566 _ACEOF
3567
3568 fi
3569
3570 done
3571
3572
3573 if test "${ac_cv_header_minix_config_h+set}" = set; then
3574   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3575 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3576 if test "${ac_cv_header_minix_config_h+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 fi
3579 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3580 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3581 else
3582   # Is the header compilable?
3583 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3584 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3585 cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h.  */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h.  */
3591 $ac_includes_default
3592 #include <minix/config.h>
3593 _ACEOF
3594 rm -f conftest.$ac_objext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596   (eval $ac_compile) 2>conftest.er1
3597   ac_status=$?
3598   grep -v '^ *+' conftest.er1 >conftest.err
3599   rm -f conftest.er1
3600   cat conftest.err >&5
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } &&
3603          { ac_try='test -z "$ac_c_werror_flag"
3604                          || test ! -s conftest.err'
3605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606   (eval $ac_try) 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); }; } &&
3610          { ac_try='test -s conftest.$ac_objext'
3611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612   (eval $ac_try) 2>&5
3613   ac_status=$?
3614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615   (exit $ac_status); }; }; then
3616   ac_header_compiler=yes
3617 else
3618   echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621 ac_header_compiler=no
3622 fi
3623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3624 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3625 echo "${ECHO_T}$ac_header_compiler" >&6
3626
3627 # Is the header present?
3628 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3629 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636 #include <minix/config.h>
3637 _ACEOF
3638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3639   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3640   ac_status=$?
3641   grep -v '^ *+' conftest.er1 >conftest.err
3642   rm -f conftest.er1
3643   cat conftest.err >&5
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); } >/dev/null; then
3646   if test -s conftest.err; then
3647     ac_cpp_err=$ac_c_preproc_warn_flag
3648     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3649   else
3650     ac_cpp_err=
3651   fi
3652 else
3653   ac_cpp_err=yes
3654 fi
3655 if test -z "$ac_cpp_err"; then
3656   ac_header_preproc=yes
3657 else
3658   echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661   ac_header_preproc=no
3662 fi
3663 rm -f conftest.err conftest.$ac_ext
3664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3665 echo "${ECHO_T}$ac_header_preproc" >&6
3666
3667 # So?  What about this header?
3668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3669   yes:no: )
3670     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3671 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3672     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3673 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3674     ac_header_preproc=yes
3675     ;;
3676   no:yes:* )
3677     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3678 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3679     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3680 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3681     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3682 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3683     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3684 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3685     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3686 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3687     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3688 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3689     (
3690       cat <<\_ASBOX
3691 ## ------------------------------- ##
3692 ## Report this to bug-bash@gnu.org ##
3693 ## ------------------------------- ##
3694 _ASBOX
3695     ) |
3696       sed "s/^/$as_me: WARNING:     /" >&2
3697     ;;
3698 esac
3699 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3700 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3701 if test "${ac_cv_header_minix_config_h+set}" = set; then
3702   echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704   ac_cv_header_minix_config_h=$ac_header_preproc
3705 fi
3706 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3707 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3708
3709 fi
3710 if test $ac_cv_header_minix_config_h = yes; then
3711   MINIX=yes
3712 else
3713   MINIX=
3714 fi
3715
3716
3717 if test "$MINIX" = yes; then
3718
3719 cat >>confdefs.h <<\_ACEOF
3720 #define _POSIX_SOURCE 1
3721 _ACEOF
3722
3723
3724 cat >>confdefs.h <<\_ACEOF
3725 #define _POSIX_1_SOURCE 2
3726 _ACEOF
3727
3728
3729 cat >>confdefs.h <<\_ACEOF
3730 #define _MINIX 1
3731 _ACEOF
3732
3733 fi
3734
3735
3736
3737 case $host_os in
3738   *cygwin* ) CYGWIN=yes;;
3739          * ) CYGWIN=no;;
3740 esac
3741
3742
3743 case $host_os in
3744   *mingw32* ) MINGW32=yes;;
3745           * ) MINGW32=no;;
3746 esac
3747
3748
3749 # Check whether --enable-largefile or --disable-largefile was given.
3750 if test "${enable_largefile+set}" = set; then
3751   enableval="$enable_largefile"
3752
3753 fi;
3754 if test "$enable_largefile" != no; then
3755
3756   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3757 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3758 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   ac_cv_sys_largefile_CC=no
3762      if test "$GCC" != yes; then
3763        ac_save_CC=$CC
3764        while :; do
3765          # IRIX 6.2 and later do not support large files by default,
3766          # so use the C compiler's -n32 option if that helps.
3767          cat >conftest.$ac_ext <<_ACEOF
3768 /* confdefs.h.  */
3769 _ACEOF
3770 cat confdefs.h >>conftest.$ac_ext
3771 cat >>conftest.$ac_ext <<_ACEOF
3772 /* end confdefs.h.  */
3773 #include <sys/types.h>
3774  /* Check that off_t can represent 2**63 - 1 correctly.
3775     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3776     since some C++ compilers masquerading as C compilers
3777     incorrectly reject 9223372036854775807.  */
3778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3779   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3780                        && LARGE_OFF_T % 2147483647 == 1)
3781                       ? 1 : -1];
3782 int
3783 main ()
3784 {
3785
3786   ;
3787   return 0;
3788 }
3789 _ACEOF
3790          rm -f conftest.$ac_objext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792   (eval $ac_compile) 2>conftest.er1
3793   ac_status=$?
3794   grep -v '^ *+' conftest.er1 >conftest.err
3795   rm -f conftest.er1
3796   cat conftest.err >&5
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); } &&
3799          { ac_try='test -z "$ac_c_werror_flag"
3800                          || test ! -s conftest.err'
3801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802   (eval $ac_try) 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); }; } &&
3806          { ac_try='test -s conftest.$ac_objext'
3807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808   (eval $ac_try) 2>&5
3809   ac_status=$?
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); }; }; then
3812   break
3813 else
3814   echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817 fi
3818 rm -f conftest.err conftest.$ac_objext
3819          CC="$CC -n32"
3820          rm -f conftest.$ac_objext
3821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3822   (eval $ac_compile) 2>conftest.er1
3823   ac_status=$?
3824   grep -v '^ *+' conftest.er1 >conftest.err
3825   rm -f conftest.er1
3826   cat conftest.err >&5
3827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828   (exit $ac_status); } &&
3829          { ac_try='test -z "$ac_c_werror_flag"
3830                          || test ! -s conftest.err'
3831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832   (eval $ac_try) 2>&5
3833   ac_status=$?
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); }; } &&
3836          { ac_try='test -s conftest.$ac_objext'
3837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838   (eval $ac_try) 2>&5
3839   ac_status=$?
3840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841   (exit $ac_status); }; }; then
3842   ac_cv_sys_largefile_CC=' -n32'; break
3843 else
3844   echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847 fi
3848 rm -f conftest.err conftest.$ac_objext
3849          break
3850        done
3851        CC=$ac_save_CC
3852        rm -f conftest.$ac_ext
3853     fi
3854 fi
3855 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3856 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3857   if test "$ac_cv_sys_largefile_CC" != no; then
3858     CC=$CC$ac_cv_sys_largefile_CC
3859   fi
3860
3861   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3862 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3863 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3864   echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866   while :; do
3867   ac_cv_sys_file_offset_bits=no
3868   cat >conftest.$ac_ext <<_ACEOF
3869 /* confdefs.h.  */
3870 _ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h.  */
3874 #include <sys/types.h>
3875  /* Check that off_t can represent 2**63 - 1 correctly.
3876     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3877     since some C++ compilers masquerading as C compilers
3878     incorrectly reject 9223372036854775807.  */
3879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3880   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3881                        && LARGE_OFF_T % 2147483647 == 1)
3882                       ? 1 : -1];
3883 int
3884 main ()
3885 {
3886
3887   ;
3888   return 0;
3889 }
3890 _ACEOF
3891 rm -f conftest.$ac_objext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893   (eval $ac_compile) 2>conftest.er1
3894   ac_status=$?
3895   grep -v '^ *+' conftest.er1 >conftest.err
3896   rm -f conftest.er1
3897   cat conftest.err >&5
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); } &&
3900          { ac_try='test -z "$ac_c_werror_flag"
3901                          || test ! -s conftest.err'
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); }; } &&
3907          { ac_try='test -s conftest.$ac_objext'
3908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909   (eval $ac_try) 2>&5
3910   ac_status=$?
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); }; }; then
3913   break
3914 else
3915   echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918 fi
3919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3920   cat >conftest.$ac_ext <<_ACEOF
3921 /* confdefs.h.  */
3922 _ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h.  */
3926 #define _FILE_OFFSET_BITS 64
3927 #include <sys/types.h>
3928  /* Check that off_t can represent 2**63 - 1 correctly.
3929     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3930     since some C++ compilers masquerading as C compilers
3931     incorrectly reject 9223372036854775807.  */
3932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3933   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3934                        && LARGE_OFF_T % 2147483647 == 1)
3935                       ? 1 : -1];
3936 int
3937 main ()
3938 {
3939
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 rm -f conftest.$ac_objext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3946   (eval $ac_compile) 2>conftest.er1
3947   ac_status=$?
3948   grep -v '^ *+' conftest.er1 >conftest.err
3949   rm -f conftest.er1
3950   cat conftest.err >&5
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); } &&
3953          { ac_try='test -z "$ac_c_werror_flag"
3954                          || test ! -s conftest.err'
3955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956   (eval $ac_try) 2>&5
3957   ac_status=$?
3958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959   (exit $ac_status); }; } &&
3960          { ac_try='test -s conftest.$ac_objext'
3961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962   (eval $ac_try) 2>&5
3963   ac_status=$?
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); }; }; then
3966   ac_cv_sys_file_offset_bits=64; break
3967 else
3968   echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3970
3971 fi
3972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3973   break
3974 done
3975 fi
3976 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3977 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3978 if test "$ac_cv_sys_file_offset_bits" != no; then
3979
3980 cat >>confdefs.h <<_ACEOF
3981 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3982 _ACEOF
3983
3984 fi
3985 rm -f conftest*
3986   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3987 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3988 if test "${ac_cv_sys_large_files+set}" = set; then
3989   echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991   while :; do
3992   ac_cv_sys_large_files=no
3993   cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h.  */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h.  */
3999 #include <sys/types.h>
4000  /* Check that off_t can represent 2**63 - 1 correctly.
4001     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4002     since some C++ compilers masquerading as C compilers
4003     incorrectly reject 9223372036854775807.  */
4004 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4005   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4006                        && LARGE_OFF_T % 2147483647 == 1)
4007                       ? 1 : -1];
4008 int
4009 main ()
4010 {
4011
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018   (eval $ac_compile) 2>conftest.er1
4019   ac_status=$?
4020   grep -v '^ *+' conftest.er1 >conftest.err
4021   rm -f conftest.er1
4022   cat conftest.err >&5
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); } &&
4025          { ac_try='test -z "$ac_c_werror_flag"
4026                          || test ! -s conftest.err'
4027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028   (eval $ac_try) 2>&5
4029   ac_status=$?
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); }; } &&
4032          { ac_try='test -s conftest.$ac_objext'
4033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034   (eval $ac_try) 2>&5
4035   ac_status=$?
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); }; }; then
4038   break
4039 else
4040   echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4042
4043 fi
4044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4045   cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h.  */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h.  */
4051 #define _LARGE_FILES 1
4052 #include <sys/types.h>
4053  /* Check that off_t can represent 2**63 - 1 correctly.
4054     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4055     since some C++ compilers masquerading as C compilers
4056     incorrectly reject 9223372036854775807.  */
4057 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4058   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4059                        && LARGE_OFF_T % 2147483647 == 1)
4060                       ? 1 : -1];
4061 int
4062 main ()
4063 {
4064
4065   ;
4066   return 0;
4067 }
4068 _ACEOF
4069 rm -f conftest.$ac_objext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071   (eval $ac_compile) 2>conftest.er1
4072   ac_status=$?
4073   grep -v '^ *+' conftest.er1 >conftest.err
4074   rm -f conftest.er1
4075   cat conftest.err >&5
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); } &&
4078          { ac_try='test -z "$ac_c_werror_flag"
4079                          || test ! -s conftest.err'
4080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081   (eval $ac_try) 2>&5
4082   ac_status=$?
4083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084   (exit $ac_status); }; } &&
4085          { ac_try='test -s conftest.$ac_objext'
4086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087   (eval $ac_try) 2>&5
4088   ac_status=$?
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); }; }; then
4091   ac_cv_sys_large_files=1; break
4092 else
4093   echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4095
4096 fi
4097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4098   break
4099 done
4100 fi
4101 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4102 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4103 if test "$ac_cv_sys_large_files" != no; then
4104
4105 cat >>confdefs.h <<_ACEOF
4106 #define _LARGE_FILES $ac_cv_sys_large_files
4107 _ACEOF
4108
4109 fi
4110 rm -f conftest*
4111 fi
4112
4113
4114
4115 SIGNAMES_H=lsignames.h
4116
4117
4118
4119 if test "x$cross_compiling" = "xyes"; then
4120     case "${host}" in
4121     *-cygwin*)
4122         cross_cache=${srcdir}/cross-build/cygwin32.cache
4123         SIGNAMES_H='$(srcdir)/cross-build/win32sig.h'
4124         ;;
4125     i[3456]86-*-beos*)
4126         cross_cache=${srcdir}/cross-build/x86-beos.cache
4127         SIGNAMES_H='${srcdir}/cross-build/beos-sig.h'
4128         ;;
4129     *)  echo "configure: cross-compiling for $host is not supported" >&2
4130         ;;
4131     esac
4132     if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4133         echo "loading cross-build cache file ${cross_cache}"
4134         . ${cross_cache}
4135     fi
4136     unset cross_cache
4137 fi
4138
4139
4140 if test -z "$CC_FOR_BUILD"; then
4141     if test "x$cross_compiling" = "xno"; then
4142         CC_FOR_BUILD='$(CC)'
4143     else
4144         CC_FOR_BUILD=gcc
4145     fi
4146 fi
4147
4148
4149
4150 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
4151
4152 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
4153
4154 if test "$opt_profiling" = "yes"; then
4155         PROFILE_FLAGS=-pg
4156         case "$host_os" in
4157         solaris2*)      ;;
4158         *)              opt_static_link=yes ;;
4159         esac
4160         DEBUG= MALLOC_DEBUG=
4161 fi
4162
4163 if test "$opt_static_link" = yes; then
4164         # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
4165         if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
4166                 STATIC_LD="-static"
4167                 case "$host_os" in
4168                 solaris2*)      ;;
4169                 *)              LDFLAGS="$LDFLAGS -static" ;;   # XXX experimental
4170                 esac
4171         fi
4172 fi
4173
4174 if test "X$cross_compiling" = "Xno"; then
4175         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
4176         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
4177 else
4178         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
4179         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
4180 fi
4181
4182 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193 if test $ac_cv_c_compiler_gnu = yes; then
4194     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4195 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4196 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4197   echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199     ac_pattern="Autoconf.*'x'"
4200   cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h.  */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h.  */
4206 #include <sgtty.h>
4207 Autoconf TIOCGETP
4208 _ACEOF
4209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4210   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4211   ac_cv_prog_gcc_traditional=yes
4212 else
4213   ac_cv_prog_gcc_traditional=no
4214 fi
4215 rm -f conftest*
4216
4217
4218   if test $ac_cv_prog_gcc_traditional = no; then
4219     cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h.  */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h.  */
4225 #include <termio.h>
4226 Autoconf TCGETA
4227 _ACEOF
4228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4229   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4230   ac_cv_prog_gcc_traditional=yes
4231 fi
4232 rm -f conftest*
4233
4234   fi
4235 fi
4236 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4237 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4238   if test $ac_cv_prog_gcc_traditional = yes; then
4239     CC="$CC -traditional"
4240   fi
4241 fi
4242
4243
4244
4245 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
4246 then
4247         # If the user specified --with-installed-readline=PREFIX and PREFIX
4248         # is not `yes', set ac_cv_rl_prefix to PREFIX
4249         test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
4250
4251
4252 if test "X$bash_cv_termcap_lib" = "X"; then
4253 _bash_needmsg=yes
4254 else
4255 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4256 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4257 _bash_needmsg=
4258 fi
4259 if test "${bash_cv_termcap_lib+set}" = set; then
4260   echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262   echo "$as_me:$LINENO: checking for tgetent" >&5
4263 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
4264 if test "${ac_cv_func_tgetent+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
4274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4275 #define tgetent innocuous_tgetent
4276
4277 /* System header to define __stub macros and hopefully few prototypes,
4278     which can conflict with char tgetent (); below.
4279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4280     <limits.h> exists even on freestanding compilers.  */
4281
4282 #ifdef __STDC__
4283 # include <limits.h>
4284 #else
4285 # include <assert.h>
4286 #endif
4287
4288 #undef tgetent
4289
4290 /* Override any gcc2 internal prototype to avoid an error.  */
4291 #ifdef __cplusplus
4292 extern "C"
4293 {
4294 #endif
4295 /* We use char because int might match the return type of a gcc2
4296    builtin and then its argument prototype would still apply.  */
4297 char tgetent ();
4298 /* The GNU C library defines this for functions which it implements
4299     to always fail with ENOSYS.  Some functions are actually named
4300     something starting with __ and the normal name is an alias.  */
4301 #if defined (__stub_tgetent) || defined (__stub___tgetent)
4302 choke me
4303 #else
4304 char (*f) () = tgetent;
4305 #endif
4306 #ifdef __cplusplus
4307 }
4308 #endif
4309
4310 int
4311 main ()
4312 {
4313 return f != tgetent;
4314   ;
4315   return 0;
4316 }
4317 _ACEOF
4318 rm -f conftest.$ac_objext conftest$ac_exeext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4320   (eval $ac_link) 2>conftest.er1
4321   ac_status=$?
4322   grep -v '^ *+' conftest.er1 >conftest.err
4323   rm -f conftest.er1
4324   cat conftest.err >&5
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); } &&
4327          { ac_try='test -z "$ac_c_werror_flag"
4328                          || test ! -s conftest.err'
4329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330   (eval $ac_try) 2>&5
4331   ac_status=$?
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); }; } &&
4334          { ac_try='test -s conftest$ac_exeext'
4335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336   (eval $ac_try) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; }; then
4340   ac_cv_func_tgetent=yes
4341 else
4342   echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345 ac_cv_func_tgetent=no
4346 fi
4347 rm -f conftest.err conftest.$ac_objext \
4348       conftest$ac_exeext conftest.$ac_ext
4349 fi
4350 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
4351 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
4352 if test $ac_cv_func_tgetent = yes; then
4353   bash_cv_termcap_lib=libc
4354 else
4355   echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
4356 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
4357 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4358   echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360   ac_check_lib_save_LIBS=$LIBS
4361 LIBS="-ltermcap  $LIBS"
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h.  */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h.  */
4368
4369 /* Override any gcc2 internal prototype to avoid an error.  */
4370 #ifdef __cplusplus
4371 extern "C"
4372 #endif
4373 /* We use char because int might match the return type of a gcc2
4374    builtin and then its argument prototype would still apply.  */
4375 char tgetent ();
4376 int
4377 main ()
4378 {
4379 tgetent ();
4380   ;
4381   return 0;
4382 }
4383 _ACEOF
4384 rm -f conftest.$ac_objext conftest$ac_exeext
4385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4386   (eval $ac_link) 2>conftest.er1
4387   ac_status=$?
4388   grep -v '^ *+' conftest.er1 >conftest.err
4389   rm -f conftest.er1
4390   cat conftest.err >&5
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); } &&
4393          { ac_try='test -z "$ac_c_werror_flag"
4394                          || test ! -s conftest.err'
4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396   (eval $ac_try) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; } &&
4400          { ac_try='test -s conftest$ac_exeext'
4401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402   (eval $ac_try) 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; }; then
4406   ac_cv_lib_termcap_tgetent=yes
4407 else
4408   echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 ac_cv_lib_termcap_tgetent=no
4412 fi
4413 rm -f conftest.err conftest.$ac_objext \
4414       conftest$ac_exeext conftest.$ac_ext
4415 LIBS=$ac_check_lib_save_LIBS
4416 fi
4417 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
4418 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
4419 if test $ac_cv_lib_termcap_tgetent = yes; then
4420   bash_cv_termcap_lib=libtermcap
4421 else
4422   echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
4423 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
4424 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   ac_check_lib_save_LIBS=$LIBS
4428 LIBS="-ltinfo  $LIBS"
4429 cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h.  */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h.  */
4435
4436 /* Override any gcc2 internal prototype to avoid an error.  */
4437 #ifdef __cplusplus
4438 extern "C"
4439 #endif
4440 /* We use char because int might match the return type of a gcc2
4441    builtin and then its argument prototype would still apply.  */
4442 char tgetent ();
4443 int
4444 main ()
4445 {
4446 tgetent ();
4447   ;
4448   return 0;
4449 }
4450 _ACEOF
4451 rm -f conftest.$ac_objext conftest$ac_exeext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4453   (eval $ac_link) 2>conftest.er1
4454   ac_status=$?
4455   grep -v '^ *+' conftest.er1 >conftest.err
4456   rm -f conftest.er1
4457   cat conftest.err >&5
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } &&
4460          { ac_try='test -z "$ac_c_werror_flag"
4461                          || test ! -s conftest.err'
4462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463   (eval $ac_try) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); }; } &&
4467          { ac_try='test -s conftest$ac_exeext'
4468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469   (eval $ac_try) 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; }; then
4473   ac_cv_lib_tinfo_tgetent=yes
4474 else
4475   echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 ac_cv_lib_tinfo_tgetent=no
4479 fi
4480 rm -f conftest.err conftest.$ac_objext \
4481       conftest$ac_exeext conftest.$ac_ext
4482 LIBS=$ac_check_lib_save_LIBS
4483 fi
4484 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
4485 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
4486 if test $ac_cv_lib_tinfo_tgetent = yes; then
4487   bash_cv_termcap_lib=libtinfo
4488 else
4489   echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
4490 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
4491 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
4492   echo $ECHO_N "(cached) $ECHO_C" >&6
4493 else
4494   ac_check_lib_save_LIBS=$LIBS
4495 LIBS="-lcurses  $LIBS"
4496 cat >conftest.$ac_ext <<_ACEOF
4497 /* confdefs.h.  */
4498 _ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h.  */
4502
4503 /* Override any gcc2 internal prototype to avoid an error.  */
4504 #ifdef __cplusplus
4505 extern "C"
4506 #endif
4507 /* We use char because int might match the return type of a gcc2
4508    builtin and then its argument prototype would still apply.  */
4509 char tgetent ();
4510 int
4511 main ()
4512 {
4513 tgetent ();
4514   ;
4515   return 0;
4516 }
4517 _ACEOF
4518 rm -f conftest.$ac_objext conftest$ac_exeext
4519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4520   (eval $ac_link) 2>conftest.er1
4521   ac_status=$?
4522   grep -v '^ *+' conftest.er1 >conftest.err
4523   rm -f conftest.er1
4524   cat conftest.err >&5
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); } &&
4527          { ac_try='test -z "$ac_c_werror_flag"
4528                          || test ! -s conftest.err'
4529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530   (eval $ac_try) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); }; } &&
4534          { ac_try='test -s conftest$ac_exeext'
4535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536   (eval $ac_try) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; }; then
4540   ac_cv_lib_curses_tgetent=yes
4541 else
4542   echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 ac_cv_lib_curses_tgetent=no
4546 fi
4547 rm -f conftest.err conftest.$ac_objext \
4548       conftest$ac_exeext conftest.$ac_ext
4549 LIBS=$ac_check_lib_save_LIBS
4550 fi
4551 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
4552 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
4553 if test $ac_cv_lib_curses_tgetent = yes; then
4554   bash_cv_termcap_lib=libcurses
4555 else
4556   echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
4557 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
4558 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4559   echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561   ac_check_lib_save_LIBS=$LIBS
4562 LIBS="-lncurses  $LIBS"
4563 cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h.  */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h.  */
4569
4570 /* Override any gcc2 internal prototype to avoid an error.  */
4571 #ifdef __cplusplus
4572 extern "C"
4573 #endif
4574 /* We use char because int might match the return type of a gcc2
4575    builtin and then its argument prototype would still apply.  */
4576 char tgetent ();
4577 int
4578 main ()
4579 {
4580 tgetent ();
4581   ;
4582   return 0;
4583 }
4584 _ACEOF
4585 rm -f conftest.$ac_objext conftest$ac_exeext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4587   (eval $ac_link) 2>conftest.er1
4588   ac_status=$?
4589   grep -v '^ *+' conftest.er1 >conftest.err
4590   rm -f conftest.er1
4591   cat conftest.err >&5
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); } &&
4594          { ac_try='test -z "$ac_c_werror_flag"
4595                          || test ! -s conftest.err'
4596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597   (eval $ac_try) 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); }; } &&
4601          { ac_try='test -s conftest$ac_exeext'
4602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603   (eval $ac_try) 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); }; }; then
4607   ac_cv_lib_ncurses_tgetent=yes
4608 else
4609   echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612 ac_cv_lib_ncurses_tgetent=no
4613 fi
4614 rm -f conftest.err conftest.$ac_objext \
4615       conftest$ac_exeext conftest.$ac_ext
4616 LIBS=$ac_check_lib_save_LIBS
4617 fi
4618 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
4619 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
4620 if test $ac_cv_lib_ncurses_tgetent = yes; then
4621   bash_cv_termcap_lib=libncurses
4622 else
4623   bash_cv_termcap_lib=gnutermcap
4624 fi
4625
4626 fi
4627
4628 fi
4629
4630 fi
4631
4632 fi
4633
4634 fi
4635
4636 if test "X$_bash_needmsg" = "Xyes"; then
4637 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4638 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4639 fi
4640 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
4641 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
4642 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
4643 LDFLAGS="$LDFLAGS -L./lib/termcap"
4644 TERMCAP_LIB="./lib/termcap/libtermcap.a"
4645 TERMCAP_DEP="./lib/termcap/libtermcap.a"
4646 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
4647 TERMCAP_LIB=-ltermcap
4648 TERMCAP_DEP=
4649 elif test $bash_cv_termcap_lib = libtinfo; then
4650 TERMCAP_LIB=-ltinfo
4651 TERMCAP_DEP=
4652 elif test $bash_cv_termcap_lib = libncurses; then
4653 TERMCAP_LIB=-lncurses
4654 TERMCAP_DEP=
4655 elif test $bash_cv_termcap_lib = libc; then
4656 TERMCAP_LIB=
4657 TERMCAP_DEP=
4658 else
4659 TERMCAP_LIB=-lcurses
4660 TERMCAP_DEP=
4661 fi
4662
4663
4664
4665
4666 echo "$as_me:$LINENO: checking version of installed readline library" >&5
4667 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
4668
4669 # What a pain in the ass this is.
4670
4671 # save cpp and ld options
4672 _save_CFLAGS="$CFLAGS"
4673 _save_LDFLAGS="$LDFLAGS"
4674 _save_LIBS="$LIBS"
4675
4676 # Don't set ac_cv_rl_prefix if the caller has already assigned a value.  This
4677 # allows the caller to do something like $_rl_prefix=$withval if the user
4678 # specifies --with-installed-readline=PREFIX as an argument to configure
4679
4680 if test -z "$ac_cv_rl_prefix"; then
4681 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
4682 fi
4683
4684 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
4685 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
4686
4687 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
4688 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
4689 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
4690
4691 if test "${ac_cv_rl_version+set}" = set; then
4692   echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694   if test "$cross_compiling" = yes; then
4695   ac_cv_rl_version='4.2'
4696 else
4697   cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h.  */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h.  */
4703
4704 #include <stdio.h>
4705 #include <readline/readline.h>
4706
4707 main()
4708 {
4709         FILE *fp;
4710         fp = fopen("conftest.rlv", "w");
4711         if (fp == 0) exit(1);
4712         fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
4713         fclose(fp);
4714         exit(0);
4715 }
4716
4717 _ACEOF
4718 rm -f conftest$ac_exeext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4720   (eval $ac_link) 2>&5
4721   ac_status=$?
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725   (eval $ac_try) 2>&5
4726   ac_status=$?
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); }; }; then
4729   ac_cv_rl_version=`cat conftest.rlv`
4730 else
4731   echo "$as_me: program exited with status $ac_status" >&5
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4734
4735 ( exit $ac_status )
4736 ac_cv_rl_version='0.0'
4737 fi
4738 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4739 fi
4740 fi
4741
4742
4743 CFLAGS="$_save_CFLAGS"
4744 LDFLAGS="$_save_LDFLAGS"
4745 LIBS="$_save_LIBS"
4746
4747 RL_MAJOR=0
4748 RL_MINOR=0
4749
4750 # (
4751 case "$ac_cv_rl_version" in
4752 2*|3*|4*|5*|6*|7*|8*|9*)
4753         RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
4754         RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
4755         ;;
4756 esac
4757
4758 # (((
4759 case $RL_MAJOR in
4760 [0-9][0-9])     _RL_MAJOR=$RL_MAJOR ;;
4761 [0-9])  _RL_MAJOR=0$RL_MAJOR ;;
4762 *)              _RL_MAJOR=00 ;;
4763 esac
4764
4765 # (((
4766 case $RL_MINOR in
4767 [0-9][0-9])     _RL_MINOR=$RL_MINOR ;;
4768 [0-9])  _RL_MINOR=0$RL_MINOR ;;
4769 *)              _RL_MINOR=00 ;;
4770 esac
4771
4772 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
4773
4774 # Readline versions greater than 4.2 have these defines in readline.h
4775
4776 if test $ac_cv_rl_version = '0.0' ; then
4777         { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
4778 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
4779 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
4780         # set these for use by the caller
4781         RL_PREFIX=$ac_cv_rl_prefix
4782         RL_LIBDIR=$ac_cv_rl_libdir
4783         RL_INCLUDEDIR=$ac_cv_rl_includedir
4784         echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4785 echo "${ECHO_T}$ac_cv_rl_version" >&6
4786 else
4787
4788
4789 cat >>confdefs.h <<_ACEOF
4790 #define RL_READLINE_VERSION $RL_VERSION
4791 _ACEOF
4792
4793
4794 cat >>confdefs.h <<_ACEOF
4795 #define RL_VERSION_MAJOR $RL_MAJOR
4796 _ACEOF
4797
4798
4799 cat >>confdefs.h <<_ACEOF
4800 #define RL_VERSION_MINOR $RL_MINOR
4801 _ACEOF
4802
4803
4804
4805
4806
4807
4808 # set these for use by the caller
4809 RL_PREFIX=$ac_cv_rl_prefix
4810 RL_LIBDIR=$ac_cv_rl_libdir
4811 RL_INCLUDEDIR=$ac_cv_rl_includedir
4812
4813 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4814 echo "${ECHO_T}$ac_cv_rl_version" >&6
4815
4816 fi
4817
4818
4819         case "$ac_cv_rl_version" in
4820         5*|6*|7*|8*|9*) ;;
4821         *)      opt_with_installed_readline=no
4822                 { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
4823 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
4824                 { echo "$as_me:$LINENO: WARNING: using private bash version" >&5
4825 echo "$as_me: WARNING: using private bash version" >&2;}
4826                 ;;
4827         esac
4828 fi
4829
4830 if test $opt_readline = yes; then
4831         cat >>confdefs.h <<\_ACEOF
4832 #define READLINE 1
4833 _ACEOF
4834
4835         if test "$opt_with_installed_readline" != "no" ; then
4836                 case "$opt_with_installed_readline" in
4837                 yes)    RL_INCLUDE= ;;
4838                 *)      case "$RL_INCLUDEDIR" in
4839                         /usr/include)   ;;
4840                         *)              RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4841                         esac
4842                         ;;
4843                 esac
4844                 READLINE_DEP=
4845                 READLINE_LIB=-lreadline
4846         else
4847                 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4848                 READLINE_DEP='$(READLINE_LIBRARY)'
4849                 # section for OS versions that ship an older version of
4850                 # readline as a standard dynamic library and don't allow a
4851                 # static version specified as -llibname to override the
4852                 # dynamic version
4853                 case "${host_os}" in
4854                 darwin8*)       READLINE_LIB='${READLINE_LIBRARY}' ;;
4855                 *)              READLINE_LIB=-lreadline ;;
4856                 esac
4857         fi
4858 else
4859         RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4860         READLINE_LIB= READLINE_DEP=
4861 fi
4862 if test $opt_history = yes || test $opt_bang_history = yes; then
4863         if test $opt_history = yes; then
4864                 cat >>confdefs.h <<\_ACEOF
4865 #define HISTORY 1
4866 _ACEOF
4867
4868         fi
4869         if test $opt_bang_history = yes; then
4870                 cat >>confdefs.h <<\_ACEOF
4871 #define BANG_HISTORY 1
4872 _ACEOF
4873
4874         fi
4875         if test "$opt_with_installed_readline" != "no"; then
4876                 HIST_LIBDIR=$RL_LIBDIR
4877                 HISTORY_DEP=
4878                 HISTORY_LIB=-lhistory
4879                 case "$opt_with_installed_readline" in
4880                 yes)    RL_INCLUDE= ;;
4881                 *)      case "$RL_INCLUDEDIR" in
4882                         /usr/include)   ;;
4883                         *)              RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4884                         esac
4885                         ;;
4886                 esac
4887         else
4888                 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4889                 HISTORY_DEP='$(HISTORY_LIBRARY)'
4890                 # section for OS versions that ship an older version of
4891                 # readline as a standard dynamic library and don't allow a
4892                 # static version specified as -llibname to override the
4893                 # dynamic version
4894                 case "${host_os}" in
4895                 darwin8*)       HISTORY_LIB='${HISTORY_LIBRARY}' ;;
4896                 *)              HISTORY_LIB=-lhistory ;;
4897                 esac
4898         fi
4899 else
4900         HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4901         HISTORY_LIB= HISTORY_DEP=
4902 fi
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913 # Find a good install program.  We prefer a C program (faster),
4914 # so one script is as good as another.  But avoid the broken or
4915 # incompatible versions:
4916 # SysV /etc/install, /usr/sbin/install
4917 # SunOS /usr/etc/install
4918 # IRIX /sbin/install
4919 # AIX /bin/install
4920 # AmigaOS /C/install, which installs bootblocks on floppy discs
4921 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4922 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4923 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4924 # OS/2's system install, which has a completely different semantic
4925 # ./install, which can be erroneously created by make from ./install.sh.
4926 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4927 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4928 if test -z "$INSTALL"; then
4929 if test "${ac_cv_path_install+set}" = set; then
4930   echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937   # Account for people who put trailing slashes in PATH elements.
4938 case $as_dir/ in
4939   ./ | .// | /cC/* | \
4940   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4941   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4942   /usr/ucb/* ) ;;
4943   *)
4944     # OSF1 and SCO ODT 3.0 have their own names for install.
4945     # Don't use installbsd from OSF since it installs stuff as root
4946     # by default.
4947     for ac_prog in ginstall scoinst install; do
4948       for ac_exec_ext in '' $ac_executable_extensions; do
4949         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4950           if test $ac_prog = install &&
4951             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4952             # AIX install.  It has an incompatible calling convention.
4953             :
4954           elif test $ac_prog = install &&
4955             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4956             # program-specific install script used by HP pwplus--don't use.
4957             :
4958           else
4959             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4960             break 3
4961           fi
4962         fi
4963       done
4964     done
4965     ;;
4966 esac
4967 done
4968
4969
4970 fi
4971   if test "${ac_cv_path_install+set}" = set; then
4972     INSTALL=$ac_cv_path_install
4973   else
4974     # As a last resort, use the slow shell script.  We don't cache a
4975     # path for INSTALL within a source directory, because that will
4976     # break other packages using the cache if that directory is
4977     # removed, or if the path is relative.
4978     INSTALL=$ac_install_sh
4979   fi
4980 fi
4981 echo "$as_me:$LINENO: result: $INSTALL" >&5
4982 echo "${ECHO_T}$INSTALL" >&6
4983
4984 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4985 # It thinks the first close brace ends the variable substitution.
4986 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4987
4988 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4989
4990 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4991
4992 # Extract the first word of "ar", so it can be a program name with args.
4993 set dummy ar; ac_word=$2
4994 echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4996 if test "${ac_cv_prog_AR+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999   if test -n "$AR"; then
5000   ac_cv_prog_AR="$AR" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005   IFS=$as_save_IFS
5006   test -z "$as_dir" && as_dir=.
5007   for ac_exec_ext in '' $ac_executable_extensions; do
5008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009     ac_cv_prog_AR=""
5010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011     break 2
5012   fi
5013 done
5014 done
5015
5016   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5017 fi
5018 fi
5019 AR=$ac_cv_prog_AR
5020 if test -n "$AR"; then
5021   echo "$as_me:$LINENO: result: $AR" >&5
5022 echo "${ECHO_T}$AR" >&6
5023 else
5024   echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6
5026 fi
5027
5028 test -n "$ARFLAGS" || ARFLAGS="cr"
5029 if test -n "$ac_tool_prefix"; then
5030   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5031 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5032 echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5034 if test "${ac_cv_prog_RANLIB+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   if test -n "$RANLIB"; then
5038   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043   IFS=$as_save_IFS
5044   test -z "$as_dir" && as_dir=.
5045   for ac_exec_ext in '' $ac_executable_extensions; do
5046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5047     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049     break 2
5050   fi
5051 done
5052 done
5053
5054 fi
5055 fi
5056 RANLIB=$ac_cv_prog_RANLIB
5057 if test -n "$RANLIB"; then
5058   echo "$as_me:$LINENO: result: $RANLIB" >&5
5059 echo "${ECHO_T}$RANLIB" >&6
5060 else
5061   echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6
5063 fi
5064
5065 fi
5066 if test -z "$ac_cv_prog_RANLIB"; then
5067   ac_ct_RANLIB=$RANLIB
5068   # Extract the first word of "ranlib", so it can be a program name with args.
5069 set dummy ranlib; ac_word=$2
5070 echo "$as_me:$LINENO: checking for $ac_word" >&5
5071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5072 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075   if test -n "$ac_ct_RANLIB"; then
5076   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   test -z "$as_dir" && as_dir=.
5083   for ac_exec_ext in '' $ac_executable_extensions; do
5084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085     ac_cv_prog_ac_ct_RANLIB="ranlib"
5086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087     break 2
5088   fi
5089 done
5090 done
5091
5092   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5093 fi
5094 fi
5095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5096 if test -n "$ac_ct_RANLIB"; then
5097   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5098 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5099 else
5100   echo "$as_me:$LINENO: result: no" >&5
5101 echo "${ECHO_T}no" >&6
5102 fi
5103
5104   RANLIB=$ac_ct_RANLIB
5105 else
5106   RANLIB="$ac_cv_prog_RANLIB"
5107 fi
5108
5109 for ac_prog in 'bison -y' byacc
5110 do
5111   # Extract the first word of "$ac_prog", so it can be a program name with args.
5112 set dummy $ac_prog; ac_word=$2
5113 echo "$as_me:$LINENO: checking for $ac_word" >&5
5114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5115 if test "${ac_cv_prog_YACC+set}" = set; then
5116   echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118   if test -n "$YACC"; then
5119   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126   for ac_exec_ext in '' $ac_executable_extensions; do
5127   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128     ac_cv_prog_YACC="$ac_prog"
5129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130     break 2
5131   fi
5132 done
5133 done
5134
5135 fi
5136 fi
5137 YACC=$ac_cv_prog_YACC
5138 if test -n "$YACC"; then
5139   echo "$as_me:$LINENO: result: $YACC" >&5
5140 echo "${ECHO_T}$YACC" >&6
5141 else
5142   echo "$as_me:$LINENO: result: no" >&5
5143 echo "${ECHO_T}no" >&6
5144 fi
5145
5146   test -n "$YACC" && break
5147 done
5148 test -n "$YACC" || YACC="yacc"
5149
5150 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5151 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5152 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5153 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5154   echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156   cat >conftest.make <<\_ACEOF
5157 all:
5158         @echo 'ac_maketemp="$(MAKE)"'
5159 _ACEOF
5160 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5161 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5162 if test -n "$ac_maketemp"; then
5163   eval ac_cv_prog_make_${ac_make}_set=yes
5164 else
5165   eval ac_cv_prog_make_${ac_make}_set=no
5166 fi
5167 rm -f conftest.make
5168 fi
5169 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5170   echo "$as_me:$LINENO: result: yes" >&5
5171 echo "${ECHO_T}yes" >&6
5172   SET_MAKE=
5173 else
5174   echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5176   SET_MAKE="MAKE=${MAKE-make}"
5177 fi
5178
5179
5180 case "$host_os" in
5181 opennt*|interix*)       MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
5182 *)                      MAKE_SHELL=/bin/sh ;;
5183 esac
5184
5185
5186 if test x$SIZE = x; then
5187         if test x$ac_tool_prefix = x; then
5188                 SIZE=size
5189         else
5190                 SIZE=${ac_tool_prefix}size
5191                 save_IFS=$IFS ; IFS=:
5192                 size_found=0
5193                 for dir in $PATH; do
5194                         if test -x $dir/$SIZE ; then
5195                                 size_found=1
5196                                 break
5197                         fi
5198                 done
5199                 if test $size_found -eq 0; then
5200                         SIZE=:
5201                 fi
5202                 IFS=$save_IFS
5203         fi
5204 fi
5205
5206
5207 cat >>confdefs.h <<\_ACEOF
5208 #define _GNU_SOURCE 1
5209 _ACEOF
5210
5211
5212 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5213 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5214 if test "${ac_cv_c_const+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h.  */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h.  */
5223
5224 int
5225 main ()
5226 {
5227 /* FIXME: Include the comments suggested by Paul. */
5228 #ifndef __cplusplus
5229   /* Ultrix mips cc rejects this.  */
5230   typedef int charset[2];
5231   const charset x;
5232   /* SunOS 4.1.1 cc rejects this.  */
5233   char const *const *ccp;
5234   char **p;
5235   /* NEC SVR4.0.2 mips cc rejects this.  */
5236   struct point {int x, y;};
5237   static struct point const zero = {0,0};
5238   /* AIX XL C 1.02.0.0 rejects this.
5239      It does not let you subtract one const X* pointer from another in
5240      an arm of an if-expression whose if-part is not a constant
5241      expression */
5242   const char *g = "string";
5243   ccp = &g + (g ? g-g : 0);
5244   /* HPUX 7.0 cc rejects these. */
5245   ++ccp;
5246   p = (char**) ccp;
5247   ccp = (char const *const *) p;
5248   { /* SCO 3.2v4 cc rejects this.  */
5249     char *t;
5250     char const *s = 0 ? (char *) 0 : (char const *) 0;
5251
5252     *t++ = 0;
5253   }
5254   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5255     int x[] = {25, 17};
5256     const int *foo = &x[0];
5257     ++foo;
5258   }
5259   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5260     typedef const int *iptr;
5261     iptr p = 0;
5262     ++p;
5263   }
5264   { /* AIX XL C 1.02.0.0 rejects this saying
5265        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5266     struct s { int j; const int *ap[3]; };
5267     struct s *b; b->j = 5;
5268   }
5269   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5270     const int foo = 10;
5271   }
5272 #endif
5273
5274   ;
5275   return 0;
5276 }
5277 _ACEOF
5278 rm -f conftest.$ac_objext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280   (eval $ac_compile) 2>conftest.er1
5281   ac_status=$?
5282   grep -v '^ *+' conftest.er1 >conftest.err
5283   rm -f conftest.er1
5284   cat conftest.err >&5
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); } &&
5287          { ac_try='test -z "$ac_c_werror_flag"
5288                          || test ! -s conftest.err'
5289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290   (eval $ac_try) 2>&5
5291   ac_status=$?
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); }; } &&
5294          { ac_try='test -s conftest.$ac_objext'
5295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296   (eval $ac_try) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); }; }; then
5300   ac_cv_c_const=yes
5301 else
5302   echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5304
5305 ac_cv_c_const=no
5306 fi
5307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5308 fi
5309 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5310 echo "${ECHO_T}$ac_cv_c_const" >&6
5311 if test $ac_cv_c_const = no; then
5312
5313 cat >>confdefs.h <<\_ACEOF
5314 #define const
5315 _ACEOF
5316
5317 fi
5318
5319 echo "$as_me:$LINENO: checking for inline" >&5
5320 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5321 if test "${ac_cv_c_inline+set}" = set; then
5322   echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324   ac_cv_c_inline=no
5325 for ac_kw in inline __inline__ __inline; do
5326   cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h.  */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h.  */
5332 #ifndef __cplusplus
5333 typedef int foo_t;
5334 static $ac_kw foo_t static_foo () {return 0; }
5335 $ac_kw foo_t foo () {return 0; }
5336 #endif
5337
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341   (eval $ac_compile) 2>conftest.er1
5342   ac_status=$?
5343   grep -v '^ *+' conftest.er1 >conftest.err
5344   rm -f conftest.er1
5345   cat conftest.err >&5
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); } &&
5348          { ac_try='test -z "$ac_c_werror_flag"
5349                          || test ! -s conftest.err'
5350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351   (eval $ac_try) 2>&5
5352   ac_status=$?
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); }; } &&
5355          { ac_try='test -s conftest.$ac_objext'
5356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357   (eval $ac_try) 2>&5
5358   ac_status=$?
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); }; }; then
5361   ac_cv_c_inline=$ac_kw; break
5362 else
5363   echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 fi
5367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5368 done
5369
5370 fi
5371 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5372 echo "${ECHO_T}$ac_cv_c_inline" >&6
5373
5374
5375 case $ac_cv_c_inline in
5376   inline | yes) ;;
5377   *)
5378     case $ac_cv_c_inline in
5379       no) ac_val=;;
5380       *) ac_val=$ac_cv_c_inline;;
5381     esac
5382     cat >>confdefs.h <<_ACEOF
5383 #ifndef __cplusplus
5384 #define inline $ac_val
5385 #endif
5386 _ACEOF
5387     ;;
5388 esac
5389
5390 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5391 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5392 if test "${ac_cv_c_bigendian+set}" = set; then
5393   echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395   # See if sys/param.h defines the BYTE_ORDER macro.
5396 cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h.  */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h.  */
5402 #include <sys/types.h>
5403 #include <sys/param.h>
5404
5405 int
5406 main ()
5407 {
5408 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5409  bogus endian macros
5410 #endif
5411
5412   ;
5413   return 0;
5414 }
5415 _ACEOF
5416 rm -f conftest.$ac_objext
5417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5418   (eval $ac_compile) 2>conftest.er1
5419   ac_status=$?
5420   grep -v '^ *+' conftest.er1 >conftest.err
5421   rm -f conftest.er1
5422   cat conftest.err >&5
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); } &&
5425          { ac_try='test -z "$ac_c_werror_flag"
5426                          || test ! -s conftest.err'
5427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428   (eval $ac_try) 2>&5
5429   ac_status=$?
5430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431   (exit $ac_status); }; } &&
5432          { ac_try='test -s conftest.$ac_objext'
5433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434   (eval $ac_try) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }; }; then
5438   # It does; now see whether it defined to BIG_ENDIAN or not.
5439 cat >conftest.$ac_ext <<_ACEOF
5440 /* confdefs.h.  */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h.  */
5445 #include <sys/types.h>
5446 #include <sys/param.h>
5447
5448 int
5449 main ()
5450 {
5451 #if BYTE_ORDER != BIG_ENDIAN
5452  not big endian
5453 #endif
5454
5455   ;
5456   return 0;
5457 }
5458 _ACEOF
5459 rm -f conftest.$ac_objext
5460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5461   (eval $ac_compile) 2>conftest.er1
5462   ac_status=$?
5463   grep -v '^ *+' conftest.er1 >conftest.err
5464   rm -f conftest.er1
5465   cat conftest.err >&5
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); } &&
5468          { ac_try='test -z "$ac_c_werror_flag"
5469                          || test ! -s conftest.err'
5470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471   (eval $ac_try) 2>&5
5472   ac_status=$?
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); }; } &&
5475          { ac_try='test -s conftest.$ac_objext'
5476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477   (eval $ac_try) 2>&5
5478   ac_status=$?
5479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480   (exit $ac_status); }; }; then
5481   ac_cv_c_bigendian=yes
5482 else
5483   echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5485
5486 ac_cv_c_bigendian=no
5487 fi
5488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5489 else
5490   echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493 # It does not; compile a test program.
5494 if test "$cross_compiling" = yes; then
5495   # try to guess the endianness by grepping values into an object file
5496   ac_cv_c_bigendian=unknown
5497   cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h.  */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h.  */
5503 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5504 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5505 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5506 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5507 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5508 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5509 int
5510 main ()
5511 {
5512  _ascii (); _ebcdic ();
5513   ;
5514   return 0;
5515 }
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5519   (eval $ac_compile) 2>conftest.er1
5520   ac_status=$?
5521   grep -v '^ *+' conftest.er1 >conftest.err
5522   rm -f conftest.er1
5523   cat conftest.err >&5
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); } &&
5526          { ac_try='test -z "$ac_c_werror_flag"
5527                          || test ! -s conftest.err'
5528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529   (eval $ac_try) 2>&5
5530   ac_status=$?
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); }; } &&
5533          { ac_try='test -s conftest.$ac_objext'
5534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535   (eval $ac_try) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); }; }; then
5539   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5540   ac_cv_c_bigendian=yes
5541 fi
5542 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5543   if test "$ac_cv_c_bigendian" = unknown; then
5544     ac_cv_c_bigendian=no
5545   else
5546     # finding both strings is unlikely to happen, but who knows?
5547     ac_cv_c_bigendian=unknown
5548   fi
5549 fi
5550 else
5551   echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554 fi
5555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5556 else
5557   cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h.  */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h.  */
5563 int
5564 main ()
5565 {
5566   /* Are we little or big endian?  From Harbison&Steele.  */
5567   union
5568   {
5569     long l;
5570     char c[sizeof (long)];
5571   } u;
5572   u.l = 1;
5573   exit (u.c[sizeof (long) - 1] == 1);
5574 }
5575 _ACEOF
5576 rm -f conftest$ac_exeext
5577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5578   (eval $ac_link) 2>&5
5579   ac_status=$?
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583   (eval $ac_try) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); }; }; then
5587   ac_cv_c_bigendian=no
5588 else
5589   echo "$as_me: program exited with status $ac_status" >&5
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5592
5593 ( exit $ac_status )
5594 ac_cv_c_bigendian=yes
5595 fi
5596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5597 fi
5598 fi
5599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5600 fi
5601 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5602 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5603 case $ac_cv_c_bigendian in
5604   yes)
5605
5606 cat >>confdefs.h <<\_ACEOF
5607 #define WORDS_BIGENDIAN 1
5608 _ACEOF
5609  ;;
5610   no)
5611      ;;
5612   *)
5613     { { echo "$as_me:$LINENO: error: unknown endianness
5614 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5615 echo "$as_me: error: unknown endianness
5616 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5617    { (exit 1); exit 1; }; } ;;
5618 esac
5619
5620 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
5621 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
5622 if test "${ac_cv_c_stringize+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   cat >conftest.$ac_ext <<_ACEOF
5626 /* confdefs.h.  */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h.  */
5631 #define x(y) #y
5632
5633 char *s = x(teststring);
5634 _ACEOF
5635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636   $EGREP "#teststring" >/dev/null 2>&1; then
5637   ac_cv_c_stringize=no
5638 else
5639   ac_cv_c_stringize=yes
5640 fi
5641 rm -f conftest*
5642
5643 fi
5644 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
5645 echo "${ECHO_T}$ac_cv_c_stringize" >&6
5646 if test $ac_cv_c_stringize = yes; then
5647
5648 cat >>confdefs.h <<\_ACEOF
5649 #define HAVE_STRINGIZE 1
5650 _ACEOF
5651
5652 fi
5653
5654 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5655 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5656 if test "${ac_cv_c_long_double+set}" = set; then
5657   echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659   cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h.  */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h.  */
5665 #include <float.h>
5666           long double foo = 0.0;
5667 int
5668 main ()
5669 {
5670 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
5671           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5672           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5673 test_array [0] = 0
5674
5675   ;
5676   return 0;
5677 }
5678 _ACEOF
5679 rm -f conftest.$ac_objext
5680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5681   (eval $ac_compile) 2>conftest.er1
5682   ac_status=$?
5683   grep -v '^ *+' conftest.er1 >conftest.err
5684   rm -f conftest.er1
5685   cat conftest.err >&5
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); } &&
5688          { ac_try='test -z "$ac_c_werror_flag"
5689                          || test ! -s conftest.err'
5690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691   (eval $ac_try) 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); }; } &&
5695          { ac_try='test -s conftest.$ac_objext'
5696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697   (eval $ac_try) 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); }; }; then
5701   ac_cv_c_long_double=yes
5702 else
5703   echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5705
5706 ac_cv_c_long_double=no
5707 fi
5708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5709 fi
5710 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5711 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5712 if test $ac_cv_c_long_double = yes; then
5713
5714 cat >>confdefs.h <<\_ACEOF
5715 #define HAVE_LONG_DOUBLE 1
5716 _ACEOF
5717
5718 fi
5719
5720 echo "$as_me:$LINENO: checking for function prototypes" >&5
5721 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5722 if test "$ac_cv_prog_cc_stdc" != no; then
5723   echo "$as_me:$LINENO: result: yes" >&5
5724 echo "${ECHO_T}yes" >&6
5725
5726 cat >>confdefs.h <<\_ACEOF
5727 #define PROTOTYPES 1
5728 _ACEOF
5729
5730
5731 cat >>confdefs.h <<\_ACEOF
5732 #define __PROTOTYPES 1
5733 _ACEOF
5734
5735 else
5736   echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5738 fi
5739
5740
5741 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5742 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5743 if test "${ac_cv_c_char_unsigned+set}" = set; then
5744   echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746   cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h.  */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h.  */
5752 $ac_includes_default
5753 int
5754 main ()
5755 {
5756 static int test_array [1 - 2 * !(((char) -1) < 0)];
5757 test_array [0] = 0
5758
5759   ;
5760   return 0;
5761 }
5762 _ACEOF
5763 rm -f conftest.$ac_objext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5765   (eval $ac_compile) 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } &&
5772          { ac_try='test -z "$ac_c_werror_flag"
5773                          || test ! -s conftest.err'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; } &&
5779          { ac_try='test -s conftest.$ac_objext'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; }; then
5785   ac_cv_c_char_unsigned=no
5786 else
5787   echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5789
5790 ac_cv_c_char_unsigned=yes
5791 fi
5792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5793 fi
5794 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5795 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5796 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5797   cat >>confdefs.h <<\_ACEOF
5798 #define __CHAR_UNSIGNED__ 1
5799 _ACEOF
5800
5801 fi
5802
5803
5804
5805         MKINSTALLDIRS=
5806   if test -n "$ac_aux_dir"; then
5807     case "$ac_aux_dir" in
5808       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5809       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5810     esac
5811   fi
5812   if test -z "$MKINSTALLDIRS"; then
5813     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5814   fi
5815
5816
5817
5818   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5819 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5820     # Check whether --enable-nls or --disable-nls was given.
5821 if test "${enable_nls+set}" = set; then
5822   enableval="$enable_nls"
5823   USE_NLS=$enableval
5824 else
5825   USE_NLS=yes
5826 fi;
5827   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5828 echo "${ECHO_T}$USE_NLS" >&6
5829
5830
5831
5832
5833
5834
5835 # Prepare PATH_SEPARATOR.
5836 # The user is always right.
5837 if test "${PATH_SEPARATOR+set}" != set; then
5838   echo "#! /bin/sh" >conf$$.sh
5839   echo  "exit 0"   >>conf$$.sh
5840   chmod +x conf$$.sh
5841   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5842     PATH_SEPARATOR=';'
5843   else
5844     PATH_SEPARATOR=:
5845   fi
5846   rm -f conf$$.sh
5847 fi
5848
5849 # Find out how to test for executable files. Don't use a zero-byte file,
5850 # as systems may use methods other than mode bits to determine executability.
5851 cat >conf$$.file <<_ASEOF
5852 #! /bin/sh
5853 exit 0
5854 _ASEOF
5855 chmod +x conf$$.file
5856 if test -x conf$$.file >/dev/null 2>&1; then
5857   ac_executable_p="test -x"
5858 else
5859   ac_executable_p="test -f"
5860 fi
5861 rm -f conf$$.file
5862
5863 # Extract the first word of "msgfmt", so it can be a program name with args.
5864 set dummy msgfmt; ac_word=$2
5865 echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5867 if test "${ac_cv_path_MSGFMT+set}" = set; then
5868   echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870   case "$MSGFMT" in
5871   [\\/]* | ?:[\\/]*)
5872     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5873     ;;
5874   *)
5875     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5876     for ac_dir in $PATH; do
5877       IFS="$ac_save_IFS"
5878       test -z "$ac_dir" && ac_dir=.
5879       for ac_exec_ext in '' $ac_executable_extensions; do
5880         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5881           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5882      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5883             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5884             break 2
5885           fi
5886         fi
5887       done
5888     done
5889     IFS="$ac_save_IFS"
5890   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5891     ;;
5892 esac
5893 fi
5894 MSGFMT="$ac_cv_path_MSGFMT"
5895 if test "$MSGFMT" != ":"; then
5896   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5897 echo "${ECHO_T}$MSGFMT" >&6
5898 else
5899   echo "$as_me:$LINENO: result: no" >&5
5900 echo "${ECHO_T}no" >&6
5901 fi
5902
5903   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5904 set dummy gmsgfmt; ac_word=$2
5905 echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5907 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910   case $GMSGFMT in
5911   [\\/]* | ?:[\\/]*)
5912   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5913   ;;
5914   *)
5915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918   IFS=$as_save_IFS
5919   test -z "$as_dir" && as_dir=.
5920   for ac_exec_ext in '' $ac_executable_extensions; do
5921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924     break 2
5925   fi
5926 done
5927 done
5928
5929   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5930   ;;
5931 esac
5932 fi
5933 GMSGFMT=$ac_cv_path_GMSGFMT
5934
5935 if test -n "$GMSGFMT"; then
5936   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5937 echo "${ECHO_T}$GMSGFMT" >&6
5938 else
5939   echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6
5941 fi
5942
5943
5944
5945 # Prepare PATH_SEPARATOR.
5946 # The user is always right.
5947 if test "${PATH_SEPARATOR+set}" != set; then
5948   echo "#! /bin/sh" >conf$$.sh
5949   echo  "exit 0"   >>conf$$.sh
5950   chmod +x conf$$.sh
5951   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5952     PATH_SEPARATOR=';'
5953   else
5954     PATH_SEPARATOR=:
5955   fi
5956   rm -f conf$$.sh
5957 fi
5958
5959 # Find out how to test for executable files. Don't use a zero-byte file,
5960 # as systems may use methods other than mode bits to determine executability.
5961 cat >conf$$.file <<_ASEOF
5962 #! /bin/sh
5963 exit 0
5964 _ASEOF
5965 chmod +x conf$$.file
5966 if test -x conf$$.file >/dev/null 2>&1; then
5967   ac_executable_p="test -x"
5968 else
5969   ac_executable_p="test -f"
5970 fi
5971 rm -f conf$$.file
5972
5973 # Extract the first word of "xgettext", so it can be a program name with args.
5974 set dummy xgettext; ac_word=$2
5975 echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5977 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980   case "$XGETTEXT" in
5981   [\\/]* | ?:[\\/]*)
5982     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5983     ;;
5984   *)
5985     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5986     for ac_dir in $PATH; do
5987       IFS="$ac_save_IFS"
5988       test -z "$ac_dir" && ac_dir=.
5989       for ac_exec_ext in '' $ac_executable_extensions; do
5990         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5991           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5992      (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
5993             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5994             break 2
5995           fi
5996         fi
5997       done
5998     done
5999     IFS="$ac_save_IFS"
6000   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6001     ;;
6002 esac
6003 fi
6004 XGETTEXT="$ac_cv_path_XGETTEXT"
6005 if test "$XGETTEXT" != ":"; then
6006   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6007 echo "${ECHO_T}$XGETTEXT" >&6
6008 else
6009   echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6
6011 fi
6012
6013     rm -f messages.po
6014
6015
6016 # Prepare PATH_SEPARATOR.
6017 # The user is always right.
6018 if test "${PATH_SEPARATOR+set}" != set; then
6019   echo "#! /bin/sh" >conf$$.sh
6020   echo  "exit 0"   >>conf$$.sh
6021   chmod +x conf$$.sh
6022   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6023     PATH_SEPARATOR=';'
6024   else
6025     PATH_SEPARATOR=:
6026   fi
6027   rm -f conf$$.sh
6028 fi
6029
6030 # Find out how to test for executable files. Don't use a zero-byte file,
6031 # as systems may use methods other than mode bits to determine executability.
6032 cat >conf$$.file <<_ASEOF
6033 #! /bin/sh
6034 exit 0
6035 _ASEOF
6036 chmod +x conf$$.file
6037 if test -x conf$$.file >/dev/null 2>&1; then
6038   ac_executable_p="test -x"
6039 else
6040   ac_executable_p="test -f"
6041 fi
6042 rm -f conf$$.file
6043
6044 # Extract the first word of "msgmerge", so it can be a program name with args.
6045 set dummy msgmerge; ac_word=$2
6046 echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6048 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   case "$MSGMERGE" in
6052   [\\/]* | ?:[\\/]*)
6053     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6054     ;;
6055   *)
6056     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6057     for ac_dir in $PATH; do
6058       IFS="$ac_save_IFS"
6059       test -z "$ac_dir" && ac_dir=.
6060       for ac_exec_ext in '' $ac_executable_extensions; do
6061         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6062           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6063             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6064             break 2
6065           fi
6066         fi
6067       done
6068     done
6069     IFS="$ac_save_IFS"
6070   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6071     ;;
6072 esac
6073 fi
6074 MSGMERGE="$ac_cv_path_MSGMERGE"
6075 if test "$MSGMERGE" != ":"; then
6076   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6077 echo "${ECHO_T}$MSGMERGE" >&6
6078 else
6079   echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6
6081 fi
6082
6083
6084       if test "$GMSGFMT" != ":"; then
6085             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6086        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6087       : ;
6088     else
6089       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6090       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6091 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6092       GMSGFMT=":"
6093     fi
6094   fi
6095
6096       if test "$XGETTEXT" != ":"; then
6097             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6098        (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
6099       : ;
6100     else
6101       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6102 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6103       XGETTEXT=":"
6104     fi
6105         rm -f messages.po
6106   fi
6107
6108             ac_config_commands="$ac_config_commands default-1"
6109
6110
6111 echo "$as_me:$LINENO: checking for off_t" >&5
6112 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6113 if test "${ac_cv_type_off_t+set}" = set; then
6114   echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116   cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h.  */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h.  */
6122 $ac_includes_default
6123 int
6124 main ()
6125 {
6126 if ((off_t *) 0)
6127   return 0;
6128 if (sizeof (off_t))
6129   return 0;
6130   ;
6131   return 0;
6132 }
6133 _ACEOF
6134 rm -f conftest.$ac_objext
6135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6136   (eval $ac_compile) 2>conftest.er1
6137   ac_status=$?
6138   grep -v '^ *+' conftest.er1 >conftest.err
6139   rm -f conftest.er1
6140   cat conftest.err >&5
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); } &&
6143          { ac_try='test -z "$ac_c_werror_flag"
6144                          || test ! -s conftest.err'
6145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146   (eval $ac_try) 2>&5
6147   ac_status=$?
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); }; } &&
6150          { ac_try='test -s conftest.$ac_objext'
6151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152   (eval $ac_try) 2>&5
6153   ac_status=$?
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); }; }; then
6156   ac_cv_type_off_t=yes
6157 else
6158   echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6160
6161 ac_cv_type_off_t=no
6162 fi
6163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6164 fi
6165 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6166 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6167 if test $ac_cv_type_off_t = yes; then
6168   :
6169 else
6170
6171 cat >>confdefs.h <<_ACEOF
6172 #define off_t long
6173 _ACEOF
6174
6175 fi
6176
6177 echo "$as_me:$LINENO: checking for size_t" >&5
6178 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6179 if test "${ac_cv_type_size_t+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h.  */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h.  */
6188 $ac_includes_default
6189 int
6190 main ()
6191 {
6192 if ((size_t *) 0)
6193   return 0;
6194 if (sizeof (size_t))
6195   return 0;
6196   ;
6197   return 0;
6198 }
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202   (eval $ac_compile) 2>conftest.er1
6203   ac_status=$?
6204   grep -v '^ *+' conftest.er1 >conftest.err
6205   rm -f conftest.er1
6206   cat conftest.err >&5
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); } &&
6209          { ac_try='test -z "$ac_c_werror_flag"
6210                          || test ! -s conftest.err'
6211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212   (eval $ac_try) 2>&5
6213   ac_status=$?
6214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); }; } &&
6216          { ac_try='test -s conftest.$ac_objext'
6217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218   (eval $ac_try) 2>&5
6219   ac_status=$?
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); }; }; then
6222   ac_cv_type_size_t=yes
6223 else
6224   echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6226
6227 ac_cv_type_size_t=no
6228 fi
6229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6230 fi
6231 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6232 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6233 if test $ac_cv_type_size_t = yes; then
6234   :
6235 else
6236
6237 cat >>confdefs.h <<_ACEOF
6238 #define size_t unsigned
6239 _ACEOF
6240
6241 fi
6242
6243 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6244 # for constant arguments.  Useless!
6245 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6246 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6247 if test "${ac_cv_working_alloca_h+set}" = set; then
6248   echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250   cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h.  */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h.  */
6256 #include <alloca.h>
6257 int
6258 main ()
6259 {
6260 char *p = (char *) alloca (2 * sizeof (int));
6261   ;
6262   return 0;
6263 }
6264 _ACEOF
6265 rm -f conftest.$ac_objext conftest$ac_exeext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267   (eval $ac_link) 2>conftest.er1
6268   ac_status=$?
6269   grep -v '^ *+' conftest.er1 >conftest.err
6270   rm -f conftest.er1
6271   cat conftest.err >&5
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); } &&
6274          { ac_try='test -z "$ac_c_werror_flag"
6275                          || test ! -s conftest.err'
6276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277   (eval $ac_try) 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); }; } &&
6281          { ac_try='test -s conftest$ac_exeext'
6282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283   (eval $ac_try) 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); }; }; then
6287   ac_cv_working_alloca_h=yes
6288 else
6289   echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6291
6292 ac_cv_working_alloca_h=no
6293 fi
6294 rm -f conftest.err conftest.$ac_objext \
6295       conftest$ac_exeext conftest.$ac_ext
6296 fi
6297 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6298 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6299 if test $ac_cv_working_alloca_h = yes; then
6300
6301 cat >>confdefs.h <<\_ACEOF
6302 #define HAVE_ALLOCA_H 1
6303 _ACEOF
6304
6305 fi
6306
6307 echo "$as_me:$LINENO: checking for alloca" >&5
6308 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6309 if test "${ac_cv_func_alloca_works+set}" = set; then
6310   echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312   cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h.  */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h.  */
6318 #ifdef __GNUC__
6319 # define alloca __builtin_alloca
6320 #else
6321 # ifdef _MSC_VER
6322 #  include <malloc.h>
6323 #  define alloca _alloca
6324 # else
6325 #  if HAVE_ALLOCA_H
6326 #   include <alloca.h>
6327 #  else
6328 #   ifdef _AIX
6329  #pragma alloca
6330 #   else
6331 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6332 char *alloca ();
6333 #    endif
6334 #   endif
6335 #  endif
6336 # endif
6337 #endif
6338
6339 int
6340 main ()
6341 {
6342 char *p = (char *) alloca (1);
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext conftest$ac_exeext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6349   (eval $ac_link) 2>conftest.er1
6350   ac_status=$?
6351   grep -v '^ *+' conftest.er1 >conftest.err
6352   rm -f conftest.er1
6353   cat conftest.err >&5
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); } &&
6356          { ac_try='test -z "$ac_c_werror_flag"
6357                          || test ! -s conftest.err'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; } &&
6363          { ac_try='test -s conftest$ac_exeext'
6364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365   (eval $ac_try) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }; }; then
6369   ac_cv_func_alloca_works=yes
6370 else
6371   echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6373
6374 ac_cv_func_alloca_works=no
6375 fi
6376 rm -f conftest.err conftest.$ac_objext \
6377       conftest$ac_exeext conftest.$ac_ext
6378 fi
6379 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6380 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6381
6382 if test $ac_cv_func_alloca_works = yes; then
6383
6384 cat >>confdefs.h <<\_ACEOF
6385 #define HAVE_ALLOCA 1
6386 _ACEOF
6387
6388 else
6389   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6390 # that cause trouble.  Some versions do not even contain alloca or
6391 # contain a buggy version.  If you still want to use their alloca,
6392 # use ar to extract alloca.o from them instead of compiling alloca.c.
6393
6394 ALLOCA=alloca.$ac_objext
6395
6396 cat >>confdefs.h <<\_ACEOF
6397 #define C_ALLOCA 1
6398 _ACEOF
6399
6400
6401 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6402 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6403 if test "${ac_cv_os_cray+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h.  */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h.  */
6412 #if defined(CRAY) && ! defined(CRAY2)
6413 webecray
6414 #else
6415 wenotbecray
6416 #endif
6417
6418 _ACEOF
6419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6420   $EGREP "webecray" >/dev/null 2>&1; then
6421   ac_cv_os_cray=yes
6422 else
6423   ac_cv_os_cray=no
6424 fi
6425 rm -f conftest*
6426
6427 fi
6428 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6429 echo "${ECHO_T}$ac_cv_os_cray" >&6
6430 if test $ac_cv_os_cray = yes; then
6431   for ac_func in _getb67 GETB67 getb67; do
6432     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6433 echo "$as_me:$LINENO: checking for $ac_func" >&5
6434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6435 if eval "test \"\${$as_ac_var+set}\" = set"; then
6436   echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438   cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h.  */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h.  */
6444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6446 #define $ac_func innocuous_$ac_func
6447
6448 /* System header to define __stub macros and hopefully few prototypes,
6449     which can conflict with char $ac_func (); below.
6450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6451     <limits.h> exists even on freestanding compilers.  */
6452
6453 #ifdef __STDC__
6454 # include <limits.h>
6455 #else
6456 # include <assert.h>
6457 #endif
6458
6459 #undef $ac_func
6460
6461 /* Override any gcc2 internal prototype to avoid an error.  */
6462 #ifdef __cplusplus
6463 extern "C"
6464 {
6465 #endif
6466 /* We use char because int might match the return type of a gcc2
6467    builtin and then its argument prototype would still apply.  */
6468 char $ac_func ();
6469 /* The GNU C library defines this for functions which it implements
6470     to always fail with ENOSYS.  Some functions are actually named
6471     something starting with __ and the normal name is an alias.  */
6472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6473 choke me
6474 #else
6475 char (*f) () = $ac_func;
6476 #endif
6477 #ifdef __cplusplus
6478 }
6479 #endif
6480
6481 int
6482 main ()
6483 {
6484 return f != $ac_func;
6485   ;
6486   return 0;
6487 }
6488 _ACEOF
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491   (eval $ac_link) 2>conftest.er1
6492   ac_status=$?
6493   grep -v '^ *+' conftest.er1 >conftest.err
6494   rm -f conftest.er1
6495   cat conftest.err >&5
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); } &&
6498          { ac_try='test -z "$ac_c_werror_flag"
6499                          || test ! -s conftest.err'
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); }; } &&
6505          { ac_try='test -s conftest$ac_exeext'
6506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507   (eval $ac_try) 2>&5
6508   ac_status=$?
6509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510   (exit $ac_status); }; }; then
6511   eval "$as_ac_var=yes"
6512 else
6513   echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 eval "$as_ac_var=no"
6517 fi
6518 rm -f conftest.err conftest.$ac_objext \
6519       conftest$ac_exeext conftest.$ac_ext
6520 fi
6521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6523 if test `eval echo '${'$as_ac_var'}'` = yes; then
6524
6525 cat >>confdefs.h <<_ACEOF
6526 #define CRAY_STACKSEG_END $ac_func
6527 _ACEOF
6528
6529     break
6530 fi
6531
6532   done
6533 fi
6534
6535 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6536 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6537 if test "${ac_cv_c_stack_direction+set}" = set; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   if test "$cross_compiling" = yes; then
6541   ac_cv_c_stack_direction=0
6542 else
6543   cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h.  */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h.  */
6549 int
6550 find_stack_direction ()
6551 {
6552   static char *addr = 0;
6553   auto char dummy;
6554   if (addr == 0)
6555     {
6556       addr = &dummy;
6557       return find_stack_direction ();
6558     }
6559   else
6560     return (&dummy > addr) ? 1 : -1;
6561 }
6562
6563 int
6564 main ()
6565 {
6566   exit (find_stack_direction () < 0);
6567 }
6568 _ACEOF
6569 rm -f conftest$ac_exeext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6571   (eval $ac_link) 2>&5
6572   ac_status=$?
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576   (eval $ac_try) 2>&5
6577   ac_status=$?
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); }; }; then
6580   ac_cv_c_stack_direction=1
6581 else
6582   echo "$as_me: program exited with status $ac_status" >&5
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6585
6586 ( exit $ac_status )
6587 ac_cv_c_stack_direction=-1
6588 fi
6589 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6590 fi
6591 fi
6592 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6593 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6594
6595 cat >>confdefs.h <<_ACEOF
6596 #define STACK_DIRECTION $ac_cv_c_stack_direction
6597 _ACEOF
6598
6599
6600 fi
6601
6602
6603
6604 for ac_header in stdlib.h unistd.h
6605 do
6606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6608   echo "$as_me:$LINENO: checking for $ac_header" >&5
6609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6611   echo $ECHO_N "(cached) $ECHO_C" >&6
6612 fi
6613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6615 else
6616   # Is the header compilable?
6617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6619 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h.  */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h.  */
6625 $ac_includes_default
6626 #include <$ac_header>
6627 _ACEOF
6628 rm -f conftest.$ac_objext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630   (eval $ac_compile) 2>conftest.er1
6631   ac_status=$?
6632   grep -v '^ *+' conftest.er1 >conftest.err
6633   rm -f conftest.er1
6634   cat conftest.err >&5
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); } &&
6637          { ac_try='test -z "$ac_c_werror_flag"
6638                          || test ! -s conftest.err'
6639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640   (eval $ac_try) 2>&5
6641   ac_status=$?
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); }; } &&
6644          { ac_try='test -s conftest.$ac_objext'
6645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646   (eval $ac_try) 2>&5
6647   ac_status=$?
6648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); }; }; then
6650   ac_header_compiler=yes
6651 else
6652   echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6654
6655 ac_header_compiler=no
6656 fi
6657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6659 echo "${ECHO_T}$ac_header_compiler" >&6
6660
6661 # Is the header present?
6662 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h.  */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h.  */
6670 #include <$ac_header>
6671 _ACEOF
6672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6673   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6674   ac_status=$?
6675   grep -v '^ *+' conftest.er1 >conftest.err
6676   rm -f conftest.er1
6677   cat conftest.err >&5
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); } >/dev/null; then
6680   if test -s conftest.err; then
6681     ac_cpp_err=$ac_c_preproc_warn_flag
6682     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6683   else
6684     ac_cpp_err=
6685   fi
6686 else
6687   ac_cpp_err=yes
6688 fi
6689 if test -z "$ac_cpp_err"; then
6690   ac_header_preproc=yes
6691 else
6692   echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6694
6695   ac_header_preproc=no
6696 fi
6697 rm -f conftest.err conftest.$ac_ext
6698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6699 echo "${ECHO_T}$ac_header_preproc" >&6
6700
6701 # So?  What about this header?
6702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6703   yes:no: )
6704     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6708     ac_header_preproc=yes
6709     ;;
6710   no:yes:* )
6711     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6713     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6714 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6715     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6717     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6718 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6721     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6723     (
6724       cat <<\_ASBOX
6725 ## ------------------------------- ##
6726 ## Report this to bug-bash@gnu.org ##
6727 ## ------------------------------- ##
6728 _ASBOX
6729     ) |
6730       sed "s/^/$as_me: WARNING:     /" >&2
6731     ;;
6732 esac
6733 echo "$as_me:$LINENO: checking for $ac_header" >&5
6734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6736   echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738   eval "$as_ac_Header=\$ac_header_preproc"
6739 fi
6740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6742
6743 fi
6744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6745   cat >>confdefs.h <<_ACEOF
6746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6747 _ACEOF
6748
6749 fi
6750
6751 done
6752
6753
6754 for ac_func in getpagesize
6755 do
6756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6757 echo "$as_me:$LINENO: checking for $ac_func" >&5
6758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6759 if eval "test \"\${$as_ac_var+set}\" = set"; then
6760   echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762   cat >conftest.$ac_ext <<_ACEOF
6763 /* confdefs.h.  */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h.  */
6768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6770 #define $ac_func innocuous_$ac_func
6771
6772 /* System header to define __stub macros and hopefully few prototypes,
6773     which can conflict with char $ac_func (); below.
6774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6775     <limits.h> exists even on freestanding compilers.  */
6776
6777 #ifdef __STDC__
6778 # include <limits.h>
6779 #else
6780 # include <assert.h>
6781 #endif
6782
6783 #undef $ac_func
6784
6785 /* Override any gcc2 internal prototype to avoid an error.  */
6786 #ifdef __cplusplus
6787 extern "C"
6788 {
6789 #endif
6790 /* We use char because int might match the return type of a gcc2
6791    builtin and then its argument prototype would still apply.  */
6792 char $ac_func ();
6793 /* The GNU C library defines this for functions which it implements
6794     to always fail with ENOSYS.  Some functions are actually named
6795     something starting with __ and the normal name is an alias.  */
6796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6797 choke me
6798 #else
6799 char (*f) () = $ac_func;
6800 #endif
6801 #ifdef __cplusplus
6802 }
6803 #endif
6804
6805 int
6806 main ()
6807 {
6808 return f != $ac_func;
6809   ;
6810   return 0;
6811 }
6812 _ACEOF
6813 rm -f conftest.$ac_objext conftest$ac_exeext
6814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6815   (eval $ac_link) 2>conftest.er1
6816   ac_status=$?
6817   grep -v '^ *+' conftest.er1 >conftest.err
6818   rm -f conftest.er1
6819   cat conftest.err >&5
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); } &&
6822          { ac_try='test -z "$ac_c_werror_flag"
6823                          || test ! -s conftest.err'
6824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825   (eval $ac_try) 2>&5
6826   ac_status=$?
6827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828   (exit $ac_status); }; } &&
6829          { ac_try='test -s conftest$ac_exeext'
6830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831   (eval $ac_try) 2>&5
6832   ac_status=$?
6833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834   (exit $ac_status); }; }; then
6835   eval "$as_ac_var=yes"
6836 else
6837   echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6839
6840 eval "$as_ac_var=no"
6841 fi
6842 rm -f conftest.err conftest.$ac_objext \
6843       conftest$ac_exeext conftest.$ac_ext
6844 fi
6845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6847 if test `eval echo '${'$as_ac_var'}'` = yes; then
6848   cat >>confdefs.h <<_ACEOF
6849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6850 _ACEOF
6851
6852 fi
6853 done
6854
6855 echo "$as_me:$LINENO: checking for working mmap" >&5
6856 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6857 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860   if test "$cross_compiling" = yes; then
6861   ac_cv_func_mmap_fixed_mapped=no
6862 else
6863   cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h.  */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h.  */
6869 $ac_includes_default
6870 /* malloc might have been renamed as rpl_malloc. */
6871 #undef malloc
6872
6873 /* Thanks to Mike Haertel and Jim Avera for this test.
6874    Here is a matrix of mmap possibilities:
6875         mmap private not fixed
6876         mmap private fixed at somewhere currently unmapped
6877         mmap private fixed at somewhere already mapped
6878         mmap shared not fixed
6879         mmap shared fixed at somewhere currently unmapped
6880         mmap shared fixed at somewhere already mapped
6881    For private mappings, we should verify that changes cannot be read()
6882    back from the file, nor mmap's back from the file at a different
6883    address.  (There have been systems where private was not correctly
6884    implemented like the infamous i386 svr4.0, and systems where the
6885    VM page cache was not coherent with the file system buffer cache
6886    like early versions of FreeBSD and possibly contemporary NetBSD.)
6887    For shared mappings, we should conversely verify that changes get
6888    propagated back to all the places they're supposed to be.
6889
6890    Grep wants private fixed already mapped.
6891    The main things grep needs to know about mmap are:
6892    * does it exist and is it safe to write into the mmap'd area
6893    * how to use it (BSD variants)  */
6894
6895 #include <fcntl.h>
6896 #include <sys/mman.h>
6897
6898 #if !STDC_HEADERS && !HAVE_STDLIB_H
6899 char *malloc ();
6900 #endif
6901
6902 /* This mess was copied from the GNU getpagesize.h.  */
6903 #if !HAVE_GETPAGESIZE
6904 /* Assume that all systems that can run configure have sys/param.h.  */
6905 # if !HAVE_SYS_PARAM_H
6906 #  define HAVE_SYS_PARAM_H 1
6907 # endif
6908
6909 # ifdef _SC_PAGESIZE
6910 #  define getpagesize() sysconf(_SC_PAGESIZE)
6911 # else /* no _SC_PAGESIZE */
6912 #  if HAVE_SYS_PARAM_H
6913 #   include <sys/param.h>
6914 #   ifdef EXEC_PAGESIZE
6915 #    define getpagesize() EXEC_PAGESIZE
6916 #   else /* no EXEC_PAGESIZE */
6917 #    ifdef NBPG
6918 #     define getpagesize() NBPG * CLSIZE
6919 #     ifndef CLSIZE
6920 #      define CLSIZE 1
6921 #     endif /* no CLSIZE */
6922 #    else /* no NBPG */
6923 #     ifdef NBPC
6924 #      define getpagesize() NBPC
6925 #     else /* no NBPC */
6926 #      ifdef PAGESIZE
6927 #       define getpagesize() PAGESIZE
6928 #      endif /* PAGESIZE */
6929 #     endif /* no NBPC */
6930 #    endif /* no NBPG */
6931 #   endif /* no EXEC_PAGESIZE */
6932 #  else /* no HAVE_SYS_PARAM_H */
6933 #   define getpagesize() 8192   /* punt totally */
6934 #  endif /* no HAVE_SYS_PARAM_H */
6935 # endif /* no _SC_PAGESIZE */
6936
6937 #endif /* no HAVE_GETPAGESIZE */
6938
6939 int
6940 main ()
6941 {
6942   char *data, *data2, *data3;
6943   int i, pagesize;
6944   int fd;
6945
6946   pagesize = getpagesize ();
6947
6948   /* First, make a file with some known garbage in it. */
6949   data = (char *) malloc (pagesize);
6950   if (!data)
6951     exit (1);
6952   for (i = 0; i < pagesize; ++i)
6953     *(data + i) = rand ();
6954   umask (0);
6955   fd = creat ("conftest.mmap", 0600);
6956   if (fd < 0)
6957     exit (1);
6958   if (write (fd, data, pagesize) != pagesize)
6959     exit (1);
6960   close (fd);
6961
6962   /* Next, try to mmap the file at a fixed address which already has
6963      something else allocated at it.  If we can, also make sure that
6964      we see the same garbage.  */
6965   fd = open ("conftest.mmap", O_RDWR);
6966   if (fd < 0)
6967     exit (1);
6968   data2 = (char *) malloc (2 * pagesize);
6969   if (!data2)
6970     exit (1);
6971   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6972   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6973                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6974     exit (1);
6975   for (i = 0; i < pagesize; ++i)
6976     if (*(data + i) != *(data2 + i))
6977       exit (1);
6978
6979   /* Finally, make sure that changes to the mapped area do not
6980      percolate back to the file as seen by read().  (This is a bug on
6981      some variants of i386 svr4.0.)  */
6982   for (i = 0; i < pagesize; ++i)
6983     *(data2 + i) = *(data2 + i) + 1;
6984   data3 = (char *) malloc (pagesize);
6985   if (!data3)
6986     exit (1);
6987   if (read (fd, data3, pagesize) != pagesize)
6988     exit (1);
6989   for (i = 0; i < pagesize; ++i)
6990     if (*(data + i) != *(data3 + i))
6991       exit (1);
6992   close (fd);
6993   exit (0);
6994 }
6995 _ACEOF
6996 rm -f conftest$ac_exeext
6997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6998   (eval $ac_link) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003   (eval $ac_try) 2>&5
7004   ac_status=$?
7005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006   (exit $ac_status); }; }; then
7007   ac_cv_func_mmap_fixed_mapped=yes
7008 else
7009   echo "$as_me: program exited with status $ac_status" >&5
7010 echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013 ( exit $ac_status )
7014 ac_cv_func_mmap_fixed_mapped=no
7015 fi
7016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7017 fi
7018 fi
7019 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7020 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7021 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7022
7023 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE_MMAP 1
7025 _ACEOF
7026
7027 fi
7028 rm -f conftest.mmap
7029
7030
7031     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7032 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7033 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042
7043 #include <features.h>
7044 #ifdef __GNU_LIBRARY__
7045  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7046   Lucky GNU user
7047  #endif
7048 #endif
7049
7050 _ACEOF
7051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7052   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7053   ac_cv_gnu_library_2_1=yes
7054 else
7055   ac_cv_gnu_library_2_1=no
7056 fi
7057 rm -f conftest*
7058
7059
7060
7061 fi
7062 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7063 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7064
7065     GLIBC21="$ac_cv_gnu_library_2_1"
7066
7067
7068
7069
7070   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7071 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
7072 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7073   echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075
7076       if test "$cross_compiling" = yes; then
7077
7078           # Guess based on the CPU.
7079           case "$host_cpu" in
7080             alpha* | i3456786 | m68k | s390*)
7081               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7082             *)
7083               gt_cv_int_divbyzero_sigfpe="guessing no";;
7084           esac
7085
7086 else
7087   cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h.  */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h.  */
7093
7094 #include <stdlib.h>
7095 #include <signal.h>
7096
7097 static void
7098 #ifdef __cplusplus
7099 sigfpe_handler (int sig)
7100 #else
7101 sigfpe_handler (sig) int sig;
7102 #endif
7103 {
7104   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7105   exit (sig != SIGFPE);
7106 }
7107
7108 int x = 1;
7109 int y = 0;
7110 int z;
7111 int nan;
7112
7113 int main ()
7114 {
7115   signal (SIGFPE, sigfpe_handler);
7116 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7117 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7118   signal (SIGTRAP, sigfpe_handler);
7119 #endif
7120 /* Linux/SPARC yields signal SIGILL.  */
7121 #if defined (__sparc__) && defined (__linux__)
7122   signal (SIGILL, sigfpe_handler);
7123 #endif
7124
7125   z = x / y;
7126   nan = y / y;
7127   exit (1);
7128 }
7129
7130 _ACEOF
7131 rm -f conftest$ac_exeext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133   (eval $ac_link) 2>&5
7134   ac_status=$?
7135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138   (eval $ac_try) 2>&5
7139   ac_status=$?
7140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141   (exit $ac_status); }; }; then
7142   gt_cv_int_divbyzero_sigfpe=yes
7143 else
7144   echo "$as_me: program exited with status $ac_status" >&5
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148 ( exit $ac_status )
7149 gt_cv_int_divbyzero_sigfpe=no
7150 fi
7151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7152 fi
7153
7154 fi
7155 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7156 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
7157   case "$gt_cv_int_divbyzero_sigfpe" in
7158     *yes) value=1;;
7159     *) value=0;;
7160   esac
7161
7162 cat >>confdefs.h <<_ACEOF
7163 #define INTDIV0_RAISES_SIGFPE $value
7164 _ACEOF
7165
7166
7167
7168   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7169 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7170 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
7171   echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
7173   cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h.  */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h.  */
7179 #include <sys/types.h>
7180 #include <inttypes.h>
7181 int
7182 main ()
7183 {
7184 uintmax_t i = (uintmax_t) -1;
7185   ;
7186   return 0;
7187 }
7188 _ACEOF
7189 rm -f conftest.$ac_objext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7191   (eval $ac_compile) 2>conftest.er1
7192   ac_status=$?
7193   grep -v '^ *+' conftest.er1 >conftest.err
7194   rm -f conftest.er1
7195   cat conftest.err >&5
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); } &&
7198          { ac_try='test -z "$ac_c_werror_flag"
7199                          || test ! -s conftest.err'
7200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201   (eval $ac_try) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }; } &&
7205          { ac_try='test -s conftest.$ac_objext'
7206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207   (eval $ac_try) 2>&5
7208   ac_status=$?
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); }; }; then
7211   jm_ac_cv_header_inttypes_h=yes
7212 else
7213   echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7215
7216 jm_ac_cv_header_inttypes_h=no
7217 fi
7218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7219 fi
7220 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
7221 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
7222   if test $jm_ac_cv_header_inttypes_h = yes; then
7223
7224 cat >>confdefs.h <<_ACEOF
7225 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7226 _ACEOF
7227
7228   fi
7229
7230
7231   echo "$as_me:$LINENO: checking for stdint.h" >&5
7232 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7233 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h.  */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h.  */
7242 #include <sys/types.h>
7243 #include <stdint.h>
7244 int
7245 main ()
7246 {
7247 uintmax_t i = (uintmax_t) -1;
7248   ;
7249   return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254   (eval $ac_compile) 2>conftest.er1
7255   ac_status=$?
7256   grep -v '^ *+' conftest.er1 >conftest.err
7257   rm -f conftest.er1
7258   cat conftest.err >&5
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); } &&
7261          { ac_try='test -z "$ac_c_werror_flag"
7262                          || test ! -s conftest.err'
7263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264   (eval $ac_try) 2>&5
7265   ac_status=$?
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); }; } &&
7268          { ac_try='test -s conftest.$ac_objext'
7269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270   (eval $ac_try) 2>&5
7271   ac_status=$?
7272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273   (exit $ac_status); }; }; then
7274   jm_ac_cv_header_stdint_h=yes
7275 else
7276   echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7278
7279 jm_ac_cv_header_stdint_h=no
7280 fi
7281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7282 fi
7283 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
7284 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
7285   if test $jm_ac_cv_header_stdint_h = yes; then
7286
7287 cat >>confdefs.h <<_ACEOF
7288 #define HAVE_STDINT_H_WITH_UINTMAX 1
7289 _ACEOF
7290
7291   fi
7292
7293
7294   echo "$as_me:$LINENO: checking for unsigned long long" >&5
7295 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7296 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h.  */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h.  */
7305 unsigned long long ull = 1; int i = 63;
7306 int
7307 main ()
7308 {
7309 unsigned long long ullmax = (unsigned long long) -1;
7310      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7311   ;
7312   return 0;
7313 }
7314 _ACEOF
7315 rm -f conftest.$ac_objext conftest$ac_exeext
7316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7317   (eval $ac_link) 2>conftest.er1
7318   ac_status=$?
7319   grep -v '^ *+' conftest.er1 >conftest.err
7320   rm -f conftest.er1
7321   cat conftest.err >&5
7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); } &&
7324          { ac_try='test -z "$ac_c_werror_flag"
7325                          || test ! -s conftest.err'
7326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327   (eval $ac_try) 2>&5
7328   ac_status=$?
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); }; } &&
7331          { ac_try='test -s conftest$ac_exeext'
7332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333   (eval $ac_try) 2>&5
7334   ac_status=$?
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); }; }; then
7337   ac_cv_type_unsigned_long_long=yes
7338 else
7339   echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7341
7342 ac_cv_type_unsigned_long_long=no
7343 fi
7344 rm -f conftest.err conftest.$ac_objext \
7345       conftest$ac_exeext conftest.$ac_ext
7346 fi
7347 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7348 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7349   if test $ac_cv_type_unsigned_long_long = yes; then
7350
7351 cat >>confdefs.h <<\_ACEOF
7352 #define HAVE_UNSIGNED_LONG_LONG 1
7353 _ACEOF
7354
7355   fi
7356
7357
7358
7359
7360   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7361
7362     test $ac_cv_type_unsigned_long_long = yes \
7363       && ac_type='unsigned long long' \
7364       || ac_type='unsigned long'
7365
7366 cat >>confdefs.h <<_ACEOF
7367 #define uintmax_t $ac_type
7368 _ACEOF
7369
7370   else
7371
7372 cat >>confdefs.h <<\_ACEOF
7373 #define HAVE_UINTMAX_T 1
7374 _ACEOF
7375
7376   fi
7377
7378
7379   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7380 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7381 if test "${gt_cv_header_inttypes_h+set}" = set; then
7382   echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384
7385     cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h.  */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h.  */
7391 #include <sys/types.h>
7392 #include <inttypes.h>
7393 int
7394 main ()
7395 {
7396
7397   ;
7398   return 0;
7399 }
7400 _ACEOF
7401 rm -f conftest.$ac_objext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7403   (eval $ac_compile) 2>conftest.er1
7404   ac_status=$?
7405   grep -v '^ *+' conftest.er1 >conftest.err
7406   rm -f conftest.er1
7407   cat conftest.err >&5
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); } &&
7410          { ac_try='test -z "$ac_c_werror_flag"
7411                          || test ! -s conftest.err'
7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413   (eval $ac_try) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); }; } &&
7417          { ac_try='test -s conftest.$ac_objext'
7418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419   (eval $ac_try) 2>&5
7420   ac_status=$?
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); }; }; then
7423   gt_cv_header_inttypes_h=yes
7424 else
7425   echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7427
7428 gt_cv_header_inttypes_h=no
7429 fi
7430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7431
7432 fi
7433 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7434 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
7435   if test $gt_cv_header_inttypes_h = yes; then
7436
7437 cat >>confdefs.h <<_ACEOF
7438 #define HAVE_INTTYPES_H 1
7439 _ACEOF
7440
7441   fi
7442
7443
7444
7445   if test $gt_cv_header_inttypes_h = yes; then
7446     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7447 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
7448 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7449   echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451
7452         cat >conftest.$ac_ext <<_ACEOF
7453 /* confdefs.h.  */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h.  */
7458 #include <inttypes.h>
7459 #ifdef PRId32
7460 char *p = PRId32;
7461 #endif
7462
7463 int
7464 main ()
7465 {
7466
7467   ;
7468   return 0;
7469 }
7470 _ACEOF
7471 rm -f conftest.$ac_objext
7472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7473   (eval $ac_compile) 2>conftest.er1
7474   ac_status=$?
7475   grep -v '^ *+' conftest.er1 >conftest.err
7476   rm -f conftest.er1
7477   cat conftest.err >&5
7478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479   (exit $ac_status); } &&
7480          { ac_try='test -z "$ac_c_werror_flag"
7481                          || test ! -s conftest.err'
7482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483   (eval $ac_try) 2>&5
7484   ac_status=$?
7485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486   (exit $ac_status); }; } &&
7487          { ac_try='test -s conftest.$ac_objext'
7488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489   (eval $ac_try) 2>&5
7490   ac_status=$?
7491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492   (exit $ac_status); }; }; then
7493   gt_cv_inttypes_pri_broken=no
7494 else
7495   echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7497
7498 gt_cv_inttypes_pri_broken=yes
7499 fi
7500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7501
7502 fi
7503 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7504 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
7505   fi
7506   if test "$gt_cv_inttypes_pri_broken" = yes; then
7507
7508 cat >>confdefs.h <<_ACEOF
7509 #define PRI_MACROS_BROKEN 1
7510 _ACEOF
7511
7512   fi
7513
7514
7515       if test "X$prefix" = "XNONE"; then
7516     acl_final_prefix="$ac_default_prefix"
7517   else
7518     acl_final_prefix="$prefix"
7519   fi
7520   if test "X$exec_prefix" = "XNONE"; then
7521     acl_final_exec_prefix='${prefix}'
7522   else
7523     acl_final_exec_prefix="$exec_prefix"
7524   fi
7525   acl_save_prefix="$prefix"
7526   prefix="$acl_final_prefix"
7527   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7528   prefix="$acl_save_prefix"
7529
7530
7531 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7532 if test "${with_gnu_ld+set}" = set; then
7533   withval="$with_gnu_ld"
7534   test "$withval" = no || with_gnu_ld=yes
7535 else
7536   with_gnu_ld=no
7537 fi;
7538 # Prepare PATH_SEPARATOR.
7539 # The user is always right.
7540 if test "${PATH_SEPARATOR+set}" != set; then
7541   echo "#! /bin/sh" >conf$$.sh
7542   echo  "exit 0"   >>conf$$.sh
7543   chmod +x conf$$.sh
7544   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7545     PATH_SEPARATOR=';'
7546   else
7547     PATH_SEPARATOR=:
7548   fi
7549   rm -f conf$$.sh
7550 fi
7551 ac_prog=ld
7552 if test "$GCC" = yes; then
7553   # Check if gcc -print-prog-name=ld gives a path.
7554   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7555 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7556   case $host in
7557   *-*-mingw*)
7558     # gcc leaves a trailing carriage return which upsets mingw
7559     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7560   *)
7561     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7562   esac
7563   case $ac_prog in
7564     # Accept absolute paths.
7565     [\\/]* | [A-Za-z]:[\\/]*)
7566       re_direlt='/[^/][^/]*/\.\./'
7567       # Canonicalize the path of ld
7568       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7569       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7570         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7571       done
7572       test -z "$LD" && LD="$ac_prog"
7573       ;;
7574   "")
7575     # If it fails, then pretend we aren't using GCC.
7576     ac_prog=ld
7577     ;;
7578   *)
7579     # If it is relative, then search for the first ld in PATH.
7580     with_gnu_ld=unknown
7581     ;;
7582   esac
7583 elif test "$with_gnu_ld" = yes; then
7584   echo "$as_me:$LINENO: checking for GNU ld" >&5
7585 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7586 else
7587   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7588 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7589 fi
7590 if test "${acl_cv_path_LD+set}" = set; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593   if test -z "$LD"; then
7594   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7595   for ac_dir in $PATH; do
7596     test -z "$ac_dir" && ac_dir=.
7597     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7598       acl_cv_path_LD="$ac_dir/$ac_prog"
7599       # Check to see if the program is GNU ld.  I'd rather use --version,
7600       # but apparently some GNU ld's only accept -v.
7601       # Break only if it was the GNU/non-GNU ld that we prefer.
7602       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7603         test "$with_gnu_ld" != no && break
7604       else
7605         test "$with_gnu_ld" != yes && break
7606       fi
7607     fi
7608   done
7609   IFS="$ac_save_ifs"
7610 else
7611   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7612 fi
7613 fi
7614
7615 LD="$acl_cv_path_LD"
7616 if test -n "$LD"; then
7617   echo "$as_me:$LINENO: result: $LD" >&5
7618 echo "${ECHO_T}$LD" >&6
7619 else
7620   echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6
7622 fi
7623 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7624 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7625    { (exit 1); exit 1; }; }
7626 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7627 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7628 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7632 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7633   acl_cv_prog_gnu_ld=yes
7634 else
7635   acl_cv_prog_gnu_ld=no
7636 fi
7637 fi
7638 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7639 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7640 with_gnu_ld=$acl_cv_prog_gnu_ld
7641
7642
7643
7644                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7645 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7646 if test "${acl_cv_rpath+set}" = set; then
7647   echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649
7650     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7651     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7652     . ./conftest.sh
7653     rm -f ./conftest.sh
7654     acl_cv_rpath=done
7655
7656 fi
7657 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7658 echo "${ECHO_T}$acl_cv_rpath" >&6
7659   wl="$acl_cv_wl"
7660   libext="$acl_cv_libext"
7661   shlibext="$acl_cv_shlibext"
7662   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7663   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7664   hardcode_direct="$acl_cv_hardcode_direct"
7665   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7666     # Check whether --enable-rpath or --disable-rpath was given.
7667 if test "${enable_rpath+set}" = set; then
7668   enableval="$enable_rpath"
7669   :
7670 else
7671   enable_rpath=yes
7672 fi;
7673
7674
7675
7676
7677
7678
7679
7680     use_additional=yes
7681
7682   acl_save_prefix="$prefix"
7683   prefix="$acl_final_prefix"
7684   acl_save_exec_prefix="$exec_prefix"
7685   exec_prefix="$acl_final_exec_prefix"
7686
7687     eval additional_includedir=\"$includedir\"
7688     eval additional_libdir=\"$libdir\"
7689
7690   exec_prefix="$acl_save_exec_prefix"
7691   prefix="$acl_save_prefix"
7692
7693
7694 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7695 if test "${with_libiconv_prefix+set}" = set; then
7696   withval="$with_libiconv_prefix"
7697
7698     if test "X$withval" = "Xno"; then
7699       use_additional=no
7700     else
7701       if test "X$withval" = "X"; then
7702
7703   acl_save_prefix="$prefix"
7704   prefix="$acl_final_prefix"
7705   acl_save_exec_prefix="$exec_prefix"
7706   exec_prefix="$acl_final_exec_prefix"
7707
7708           eval additional_includedir=\"$includedir\"
7709           eval additional_libdir=\"$libdir\"
7710
7711   exec_prefix="$acl_save_exec_prefix"
7712   prefix="$acl_save_prefix"
7713
7714       else
7715         additional_includedir="$withval/include"
7716         additional_libdir="$withval/lib"
7717       fi
7718     fi
7719
7720 fi;
7721       LIBICONV=
7722   LTLIBICONV=
7723   INCICONV=
7724   rpathdirs=
7725   ltrpathdirs=
7726   names_already_handled=
7727   names_next_round='iconv '
7728   while test -n "$names_next_round"; do
7729     names_this_round="$names_next_round"
7730     names_next_round=
7731     for name in $names_this_round; do
7732       already_handled=
7733       for n in $names_already_handled; do
7734         if test "$n" = "$name"; then
7735           already_handled=yes
7736           break
7737         fi
7738       done
7739       if test -z "$already_handled"; then
7740         names_already_handled="$names_already_handled $name"
7741                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7742         eval value=\"\$HAVE_LIB$uppername\"
7743         if test -n "$value"; then
7744           if test "$value" = yes; then
7745             eval value=\"\$LIB$uppername\"
7746             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7747             eval value=\"\$LTLIB$uppername\"
7748             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7749           else
7750                                     :
7751           fi
7752         else
7753                               found_dir=
7754           found_la=
7755           found_so=
7756           found_a=
7757           if test $use_additional = yes; then
7758             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7759               found_dir="$additional_libdir"
7760               found_so="$additional_libdir/lib$name.$shlibext"
7761               if test -f "$additional_libdir/lib$name.la"; then
7762                 found_la="$additional_libdir/lib$name.la"
7763               fi
7764             else
7765               if test -f "$additional_libdir/lib$name.$libext"; then
7766                 found_dir="$additional_libdir"
7767                 found_a="$additional_libdir/lib$name.$libext"
7768                 if test -f "$additional_libdir/lib$name.la"; then
7769                   found_la="$additional_libdir/lib$name.la"
7770                 fi
7771               fi
7772             fi
7773           fi
7774           if test "X$found_dir" = "X"; then
7775             for x in $LDFLAGS $LTLIBICONV; do
7776
7777   acl_save_prefix="$prefix"
7778   prefix="$acl_final_prefix"
7779   acl_save_exec_prefix="$exec_prefix"
7780   exec_prefix="$acl_final_exec_prefix"
7781   eval x=\"$x\"
7782   exec_prefix="$acl_save_exec_prefix"
7783   prefix="$acl_save_prefix"
7784
7785               case "$x" in
7786                 -L*)
7787                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7788                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7789                     found_dir="$dir"
7790                     found_so="$dir/lib$name.$shlibext"
7791                     if test -f "$dir/lib$name.la"; then
7792                       found_la="$dir/lib$name.la"
7793                     fi
7794                   else
7795                     if test -f "$dir/lib$name.$libext"; then
7796                       found_dir="$dir"
7797                       found_a="$dir/lib$name.$libext"
7798                       if test -f "$dir/lib$name.la"; then
7799                         found_la="$dir/lib$name.la"
7800                       fi
7801                     fi
7802                   fi
7803                   ;;
7804               esac
7805               if test "X$found_dir" != "X"; then
7806                 break
7807               fi
7808             done
7809           fi
7810           if test "X$found_dir" != "X"; then
7811                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7812             if test "X$found_so" != "X"; then
7813                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7814                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7815               else
7816                                                                                 haveit=
7817                 for x in $ltrpathdirs; do
7818                   if test "X$x" = "X$found_dir"; then
7819                     haveit=yes
7820                     break
7821                   fi
7822                 done
7823                 if test -z "$haveit"; then
7824                   ltrpathdirs="$ltrpathdirs $found_dir"
7825                 fi
7826                                 if test "$hardcode_direct" = yes; then
7827                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7828                 else
7829                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7830                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7831                                                             haveit=
7832                     for x in $rpathdirs; do
7833                       if test "X$x" = "X$found_dir"; then
7834                         haveit=yes
7835                         break
7836                       fi
7837                     done
7838                     if test -z "$haveit"; then
7839                       rpathdirs="$rpathdirs $found_dir"
7840                     fi
7841                   else
7842                                                                                 haveit=
7843                     for x in $LDFLAGS $LIBICONV; do
7844
7845   acl_save_prefix="$prefix"
7846   prefix="$acl_final_prefix"
7847   acl_save_exec_prefix="$exec_prefix"
7848   exec_prefix="$acl_final_exec_prefix"
7849   eval x=\"$x\"
7850   exec_prefix="$acl_save_exec_prefix"
7851   prefix="$acl_save_prefix"
7852
7853                       if test "X$x" = "X-L$found_dir"; then
7854                         haveit=yes
7855                         break
7856                       fi
7857                     done
7858                     if test -z "$haveit"; then
7859                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7860                     fi
7861                     if test "$hardcode_minus_L" != no; then
7862                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7863                     else
7864                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7865                     fi
7866                   fi
7867                 fi
7868               fi
7869             else
7870               if test "X$found_a" != "X"; then
7871                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7872               else
7873                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7874               fi
7875             fi
7876                         additional_includedir=
7877             case "$found_dir" in
7878               */lib | */lib/)
7879                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7880                 additional_includedir="$basedir/include"
7881                 ;;
7882             esac
7883             if test "X$additional_includedir" != "X"; then
7884                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7885                 haveit=
7886                 if test "X$additional_includedir" = "X/usr/local/include"; then
7887                   if test -n "$GCC"; then
7888                     case $host_os in
7889                       linux*) haveit=yes;;
7890                     esac
7891                   fi
7892                 fi
7893                 if test -z "$haveit"; then
7894                   for x in $CPPFLAGS $INCICONV; do
7895
7896   acl_save_prefix="$prefix"
7897   prefix="$acl_final_prefix"
7898   acl_save_exec_prefix="$exec_prefix"
7899   exec_prefix="$acl_final_exec_prefix"
7900   eval x=\"$x\"
7901   exec_prefix="$acl_save_exec_prefix"
7902   prefix="$acl_save_prefix"
7903
7904                     if test "X$x" = "X-I$additional_includedir"; then
7905                       haveit=yes
7906                       break
7907                     fi
7908                   done
7909                   if test -z "$haveit"; then
7910                     if test -d "$additional_includedir"; then
7911                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7912                     fi
7913                   fi
7914                 fi
7915               fi
7916             fi
7917                         if test -n "$found_la"; then
7918                                                         save_libdir="$libdir"
7919               case "$found_la" in
7920                 */* | *\\*) . "$found_la" ;;
7921                 *) . "./$found_la" ;;
7922               esac
7923               libdir="$save_libdir"
7924                             for dep in $dependency_libs; do
7925                 case "$dep" in
7926                   -L*)
7927                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7928                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7929                       haveit=
7930                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7931                         if test -n "$GCC"; then
7932                           case $host_os in
7933                             linux*) haveit=yes;;
7934                           esac
7935                         fi
7936                       fi
7937                       if test -z "$haveit"; then
7938                         haveit=
7939                         for x in $LDFLAGS $LIBICONV; do
7940
7941   acl_save_prefix="$prefix"
7942   prefix="$acl_final_prefix"
7943   acl_save_exec_prefix="$exec_prefix"
7944   exec_prefix="$acl_final_exec_prefix"
7945   eval x=\"$x\"
7946   exec_prefix="$acl_save_exec_prefix"
7947   prefix="$acl_save_prefix"
7948
7949                           if test "X$x" = "X-L$additional_libdir"; then
7950                             haveit=yes
7951                             break
7952                           fi
7953                         done
7954                         if test -z "$haveit"; then
7955                           if test -d "$additional_libdir"; then
7956                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7957                           fi
7958                         fi
7959                         haveit=
7960                         for x in $LDFLAGS $LTLIBICONV; do
7961
7962   acl_save_prefix="$prefix"
7963   prefix="$acl_final_prefix"
7964   acl_save_exec_prefix="$exec_prefix"
7965   exec_prefix="$acl_final_exec_prefix"
7966   eval x=\"$x\"
7967   exec_prefix="$acl_save_exec_prefix"
7968   prefix="$acl_save_prefix"
7969
7970                           if test "X$x" = "X-L$additional_libdir"; then
7971                             haveit=yes
7972                             break
7973                           fi
7974                         done
7975                         if test -z "$haveit"; then
7976                           if test -d "$additional_libdir"; then
7977                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7978                           fi
7979                         fi
7980                       fi
7981                     fi
7982                     ;;
7983                   -R*)
7984                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7985                     if test "$enable_rpath" != no; then
7986                                                                   haveit=
7987                       for x in $rpathdirs; do
7988                         if test "X$x" = "X$dir"; then
7989                           haveit=yes
7990                           break
7991                         fi
7992                       done
7993                       if test -z "$haveit"; then
7994                         rpathdirs="$rpathdirs $dir"
7995                       fi
7996                                                                   haveit=
7997                       for x in $ltrpathdirs; do
7998                         if test "X$x" = "X$dir"; then
7999                           haveit=yes
8000                           break
8001                         fi
8002                       done
8003                       if test -z "$haveit"; then
8004                         ltrpathdirs="$ltrpathdirs $dir"
8005                       fi
8006                     fi
8007                     ;;
8008                   -l*)
8009                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8010                     ;;
8011                   *.la)
8012                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8013                     ;;
8014                   *)
8015                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8016                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8017                     ;;
8018                 esac
8019               done
8020             fi
8021           else
8022                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8023             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8024           fi
8025         fi
8026       fi
8027     done
8028   done
8029   if test "X$rpathdirs" != "X"; then
8030     if test -n "$hardcode_libdir_separator"; then
8031                         alldirs=
8032       for found_dir in $rpathdirs; do
8033         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8034       done
8035             acl_save_libdir="$libdir"
8036       libdir="$alldirs"
8037       eval flag=\"$hardcode_libdir_flag_spec\"
8038       libdir="$acl_save_libdir"
8039       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8040     else
8041             for found_dir in $rpathdirs; do
8042         acl_save_libdir="$libdir"
8043         libdir="$found_dir"
8044         eval flag=\"$hardcode_libdir_flag_spec\"
8045         libdir="$acl_save_libdir"
8046         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8047       done
8048     fi
8049   fi
8050   if test "X$ltrpathdirs" != "X"; then
8051             for found_dir in $ltrpathdirs; do
8052       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8053     done
8054   fi
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8070 stdlib.h string.h unistd.h sys/param.h
8071 do
8072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8074   echo "$as_me:$LINENO: checking for $ac_header" >&5
8075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8077   echo $ECHO_N "(cached) $ECHO_C" >&6
8078 fi
8079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8081 else
8082   # Is the header compilable?
8083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8085 cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h.  */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h.  */
8091 $ac_includes_default
8092 #include <$ac_header>
8093 _ACEOF
8094 rm -f conftest.$ac_objext
8095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8096   (eval $ac_compile) 2>conftest.er1
8097   ac_status=$?
8098   grep -v '^ *+' conftest.er1 >conftest.err
8099   rm -f conftest.er1
8100   cat conftest.err >&5
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); } &&
8103          { ac_try='test -z "$ac_c_werror_flag"
8104                          || test ! -s conftest.err'
8105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106   (eval $ac_try) 2>&5
8107   ac_status=$?
8108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109   (exit $ac_status); }; } &&
8110          { ac_try='test -s conftest.$ac_objext'
8111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112   (eval $ac_try) 2>&5
8113   ac_status=$?
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); }; }; then
8116   ac_header_compiler=yes
8117 else
8118   echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8120
8121 ac_header_compiler=no
8122 fi
8123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8125 echo "${ECHO_T}$ac_header_compiler" >&6
8126
8127 # Is the header present?
8128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136 #include <$ac_header>
8137 _ACEOF
8138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8140   ac_status=$?
8141   grep -v '^ *+' conftest.er1 >conftest.err
8142   rm -f conftest.er1
8143   cat conftest.err >&5
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); } >/dev/null; then
8146   if test -s conftest.err; then
8147     ac_cpp_err=$ac_c_preproc_warn_flag
8148     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8149   else
8150     ac_cpp_err=
8151   fi
8152 else
8153   ac_cpp_err=yes
8154 fi
8155 if test -z "$ac_cpp_err"; then
8156   ac_header_preproc=yes
8157 else
8158   echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8160
8161   ac_header_preproc=no
8162 fi
8163 rm -f conftest.err conftest.$ac_ext
8164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8165 echo "${ECHO_T}$ac_header_preproc" >&6
8166
8167 # So?  What about this header?
8168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8169   yes:no: )
8170     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8174     ac_header_preproc=yes
8175     ;;
8176   no:yes:* )
8177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8179     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8180 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8181     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8183     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8184 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8187     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8189     (
8190       cat <<\_ASBOX
8191 ## ------------------------------- ##
8192 ## Report this to bug-bash@gnu.org ##
8193 ## ------------------------------- ##
8194 _ASBOX
8195     ) |
8196       sed "s/^/$as_me: WARNING:     /" >&2
8197     ;;
8198 esac
8199 echo "$as_me:$LINENO: checking for $ac_header" >&5
8200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8202   echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204   eval "$as_ac_Header=\$ac_header_preproc"
8205 fi
8206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8208
8209 fi
8210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8211   cat >>confdefs.h <<_ACEOF
8212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8213 _ACEOF
8214
8215 fi
8216
8217 done
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8242 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
8243 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
8244 __fsetlocking
8245 do
8246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8247 echo "$as_me:$LINENO: checking for $ac_func" >&5
8248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8249 if eval "test \"\${$as_ac_var+set}\" = set"; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252   cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h.  */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h.  */
8258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8260 #define $ac_func innocuous_$ac_func
8261
8262 /* System header to define __stub macros and hopefully few prototypes,
8263     which can conflict with char $ac_func (); below.
8264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8265     <limits.h> exists even on freestanding compilers.  */
8266
8267 #ifdef __STDC__
8268 # include <limits.h>
8269 #else
8270 # include <assert.h>
8271 #endif
8272
8273 #undef $ac_func
8274
8275 /* Override any gcc2 internal prototype to avoid an error.  */
8276 #ifdef __cplusplus
8277 extern "C"
8278 {
8279 #endif
8280 /* We use char because int might match the return type of a gcc2
8281    builtin and then its argument prototype would still apply.  */
8282 char $ac_func ();
8283 /* The GNU C library defines this for functions which it implements
8284     to always fail with ENOSYS.  Some functions are actually named
8285     something starting with __ and the normal name is an alias.  */
8286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8287 choke me
8288 #else
8289 char (*f) () = $ac_func;
8290 #endif
8291 #ifdef __cplusplus
8292 }
8293 #endif
8294
8295 int
8296 main ()
8297 {
8298 return f != $ac_func;
8299   ;
8300   return 0;
8301 }
8302 _ACEOF
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305   (eval $ac_link) 2>conftest.er1
8306   ac_status=$?
8307   grep -v '^ *+' conftest.er1 >conftest.err
8308   rm -f conftest.er1
8309   cat conftest.err >&5
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); } &&
8312          { ac_try='test -z "$ac_c_werror_flag"
8313                          || test ! -s conftest.err'
8314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315   (eval $ac_try) 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; } &&
8319          { ac_try='test -s conftest$ac_exeext'
8320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321   (eval $ac_try) 2>&5
8322   ac_status=$?
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); }; }; then
8325   eval "$as_ac_var=yes"
8326 else
8327   echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330 eval "$as_ac_var=no"
8331 fi
8332 rm -f conftest.err conftest.$ac_objext \
8333       conftest$ac_exeext conftest.$ac_ext
8334 fi
8335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8337 if test `eval echo '${'$as_ac_var'}'` = yes; then
8338   cat >>confdefs.h <<_ACEOF
8339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8340 _ACEOF
8341
8342 fi
8343 done
8344
8345
8346
8347
8348
8349
8350
8351           am_save_CPPFLAGS="$CPPFLAGS"
8352
8353   for element in $INCICONV; do
8354     haveit=
8355     for x in $CPPFLAGS; do
8356
8357   acl_save_prefix="$prefix"
8358   prefix="$acl_final_prefix"
8359   acl_save_exec_prefix="$exec_prefix"
8360   exec_prefix="$acl_final_exec_prefix"
8361   eval x=\"$x\"
8362   exec_prefix="$acl_save_exec_prefix"
8363   prefix="$acl_save_prefix"
8364
8365       if test "X$x" = "X$element"; then
8366         haveit=yes
8367         break
8368       fi
8369     done
8370     if test -z "$haveit"; then
8371       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8372     fi
8373   done
8374
8375
8376   echo "$as_me:$LINENO: checking for iconv" >&5
8377 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8378 if test "${am_cv_func_iconv+set}" = set; then
8379   echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381
8382     am_cv_func_iconv="no, consider installing GNU libiconv"
8383     am_cv_lib_iconv=no
8384     cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h.  */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h.  */
8390 #include <stdlib.h>
8391 #include <iconv.h>
8392 int
8393 main ()
8394 {
8395 iconv_t cd = iconv_open("","");
8396        iconv(cd,NULL,NULL,NULL,NULL);
8397        iconv_close(cd);
8398   ;
8399   return 0;
8400 }
8401 _ACEOF
8402 rm -f conftest.$ac_objext conftest$ac_exeext
8403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8404   (eval $ac_link) 2>conftest.er1
8405   ac_status=$?
8406   grep -v '^ *+' conftest.er1 >conftest.err
8407   rm -f conftest.er1
8408   cat conftest.err >&5
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); } &&
8411          { ac_try='test -z "$ac_c_werror_flag"
8412                          || test ! -s conftest.err'
8413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414   (eval $ac_try) 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }; } &&
8418          { ac_try='test -s conftest$ac_exeext'
8419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420   (eval $ac_try) 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); }; }; then
8424   am_cv_func_iconv=yes
8425 else
8426   echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8428
8429 fi
8430 rm -f conftest.err conftest.$ac_objext \
8431       conftest$ac_exeext conftest.$ac_ext
8432     if test "$am_cv_func_iconv" != yes; then
8433       am_save_LIBS="$LIBS"
8434       LIBS="$LIBS $LIBICONV"
8435       cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h.  */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h.  */
8441 #include <stdlib.h>
8442 #include <iconv.h>
8443 int
8444 main ()
8445 {
8446 iconv_t cd = iconv_open("","");
8447          iconv(cd,NULL,NULL,NULL,NULL);
8448          iconv_close(cd);
8449   ;
8450   return 0;
8451 }
8452 _ACEOF
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455   (eval $ac_link) 2>conftest.er1
8456   ac_status=$?
8457   grep -v '^ *+' conftest.er1 >conftest.err
8458   rm -f conftest.er1
8459   cat conftest.err >&5
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); } &&
8462          { ac_try='test -z "$ac_c_werror_flag"
8463                          || test ! -s conftest.err'
8464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465   (eval $ac_try) 2>&5
8466   ac_status=$?
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); }; } &&
8469          { ac_try='test -s conftest$ac_exeext'
8470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471   (eval $ac_try) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; }; then
8475   am_cv_lib_iconv=yes
8476         am_cv_func_iconv=yes
8477 else
8478   echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481 fi
8482 rm -f conftest.err conftest.$ac_objext \
8483       conftest$ac_exeext conftest.$ac_ext
8484       LIBS="$am_save_LIBS"
8485     fi
8486
8487 fi
8488 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8489 echo "${ECHO_T}$am_cv_func_iconv" >&6
8490   if test "$am_cv_func_iconv" = yes; then
8491
8492 cat >>confdefs.h <<\_ACEOF
8493 #define HAVE_ICONV 1
8494 _ACEOF
8495
8496   fi
8497   if test "$am_cv_lib_iconv" = yes; then
8498     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8499 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8500     echo "$as_me:$LINENO: result: $LIBICONV" >&5
8501 echo "${ECHO_T}$LIBICONV" >&6
8502   else
8503             CPPFLAGS="$am_save_CPPFLAGS"
8504     LIBICONV=
8505     LTLIBICONV=
8506   fi
8507
8508
8509
8510   if test "$am_cv_func_iconv" = yes; then
8511     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8512 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8513     if test "${am_cv_proto_iconv+set}" = set; then
8514   echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516
8517       cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523
8524 #include <stdlib.h>
8525 #include <iconv.h>
8526 extern
8527 #ifdef __cplusplus
8528 "C"
8529 #endif
8530 #if defined(__STDC__) || defined(__cplusplus)
8531 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8532 #else
8533 size_t iconv();
8534 #endif
8535
8536 int
8537 main ()
8538 {
8539
8540   ;
8541   return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546   (eval $ac_compile) 2>conftest.er1
8547   ac_status=$?
8548   grep -v '^ *+' conftest.er1 >conftest.err
8549   rm -f conftest.er1
8550   cat conftest.err >&5
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); } &&
8553          { ac_try='test -z "$ac_c_werror_flag"
8554                          || test ! -s conftest.err'
8555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556   (eval $ac_try) 2>&5
8557   ac_status=$?
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); }; } &&
8560          { ac_try='test -s conftest.$ac_objext'
8561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562   (eval $ac_try) 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); }; }; then
8566   am_cv_proto_iconv_arg1=""
8567 else
8568   echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 am_cv_proto_iconv_arg1="const"
8572 fi
8573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8574       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);"
8575 fi
8576
8577     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8578     echo "$as_me:$LINENO: result: ${ac_t:-
8579          }$am_cv_proto_iconv" >&5
8580 echo "${ECHO_T}${ac_t:-
8581          }$am_cv_proto_iconv" >&6
8582
8583 cat >>confdefs.h <<_ACEOF
8584 #define ICONV_CONST $am_cv_proto_iconv_arg1
8585 _ACEOF
8586
8587   fi
8588
8589
8590   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8591 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8592 if test "${am_cv_langinfo_codeset+set}" = set; then
8593   echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595   cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h.  */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h.  */
8601 #include <langinfo.h>
8602 int
8603 main ()
8604 {
8605 char* cs = nl_langinfo(CODESET);
8606   ;
8607   return 0;
8608 }
8609 _ACEOF
8610 rm -f conftest.$ac_objext conftest$ac_exeext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8612   (eval $ac_link) 2>conftest.er1
8613   ac_status=$?
8614   grep -v '^ *+' conftest.er1 >conftest.err
8615   rm -f conftest.er1
8616   cat conftest.err >&5
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); } &&
8619          { ac_try='test -z "$ac_c_werror_flag"
8620                          || test ! -s conftest.err'
8621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622   (eval $ac_try) 2>&5
8623   ac_status=$?
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); }; } &&
8626          { ac_try='test -s conftest$ac_exeext'
8627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628   (eval $ac_try) 2>&5
8629   ac_status=$?
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); }; }; then
8632   am_cv_langinfo_codeset=yes
8633 else
8634   echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8636
8637 am_cv_langinfo_codeset=no
8638 fi
8639 rm -f conftest.err conftest.$ac_objext \
8640       conftest$ac_exeext conftest.$ac_ext
8641
8642 fi
8643 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8644 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8645   if test $am_cv_langinfo_codeset = yes; then
8646
8647 cat >>confdefs.h <<\_ACEOF
8648 #define HAVE_LANGINFO_CODESET 1
8649 _ACEOF
8650
8651   fi
8652
8653   if test $ac_cv_header_locale_h = yes; then
8654
8655   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8656 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8657 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666 #include <locale.h>
8667 int
8668 main ()
8669 {
8670 return LC_MESSAGES
8671   ;
8672   return 0;
8673 }
8674 _ACEOF
8675 rm -f conftest.$ac_objext conftest$ac_exeext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677   (eval $ac_link) 2>conftest.er1
8678   ac_status=$?
8679   grep -v '^ *+' conftest.er1 >conftest.err
8680   rm -f conftest.er1
8681   cat conftest.err >&5
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); } &&
8684          { ac_try='test -z "$ac_c_werror_flag"
8685                          || test ! -s conftest.err'
8686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687   (eval $ac_try) 2>&5
8688   ac_status=$?
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); }; } &&
8691          { ac_try='test -s conftest$ac_exeext'
8692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693   (eval $ac_try) 2>&5
8694   ac_status=$?
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); }; }; then
8697   am_cv_val_LC_MESSAGES=yes
8698 else
8699   echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 am_cv_val_LC_MESSAGES=no
8703 fi
8704 rm -f conftest.err conftest.$ac_objext \
8705       conftest$ac_exeext conftest.$ac_ext
8706 fi
8707 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8708 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8709   if test $am_cv_val_LC_MESSAGES = yes; then
8710
8711 cat >>confdefs.h <<\_ACEOF
8712 #define HAVE_LC_MESSAGES 1
8713 _ACEOF
8714
8715   fi
8716
8717   fi
8718
8719                       for ac_prog in bison
8720 do
8721   # Extract the first word of "$ac_prog", so it can be a program name with args.
8722 set dummy $ac_prog; ac_word=$2
8723 echo "$as_me:$LINENO: checking for $ac_word" >&5
8724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8725 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   if test -n "$INTLBISON"; then
8729   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8730 else
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8733 do
8734   IFS=$as_save_IFS
8735   test -z "$as_dir" && as_dir=.
8736   for ac_exec_ext in '' $ac_executable_extensions; do
8737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8738     ac_cv_prog_INTLBISON="$ac_prog"
8739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8740     break 2
8741   fi
8742 done
8743 done
8744
8745 fi
8746 fi
8747 INTLBISON=$ac_cv_prog_INTLBISON
8748 if test -n "$INTLBISON"; then
8749   echo "$as_me:$LINENO: result: $INTLBISON" >&5
8750 echo "${ECHO_T}$INTLBISON" >&6
8751 else
8752   echo "$as_me:$LINENO: result: no" >&5
8753 echo "${ECHO_T}no" >&6
8754 fi
8755
8756   test -n "$INTLBISON" && break
8757 done
8758
8759   if test -z "$INTLBISON"; then
8760     ac_verc_fail=yes
8761   else
8762         echo "$as_me:$LINENO: checking version of bison" >&5
8763 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8764     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8765     case $ac_prog_version in
8766       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8767       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8768          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8769       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8770     esac
8771     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8772 echo "${ECHO_T}$ac_prog_version" >&6
8773   fi
8774   if test $ac_verc_fail = yes; then
8775     INTLBISON=:
8776   fi
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8794 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8795     # Check whether --enable-nls or --disable-nls was given.
8796 if test "${enable_nls+set}" = set; then
8797   enableval="$enable_nls"
8798   USE_NLS=$enableval
8799 else
8800   USE_NLS=yes
8801 fi;
8802   echo "$as_me:$LINENO: result: $USE_NLS" >&5
8803 echo "${ECHO_T}$USE_NLS" >&6
8804
8805
8806
8807
8808     BUILD_INCLUDED_LIBINTL=no
8809     USE_INCLUDED_LIBINTL=no
8810
8811   LIBINTL=
8812   LTLIBINTL=
8813   POSUB=
8814
8815     if test "$USE_NLS" = "yes"; then
8816     gt_use_preinstalled_gnugettext=no
8817
8818       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8819 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8820
8821 # Check whether --with-included-gettext or --without-included-gettext was given.
8822 if test "${with_included_gettext+set}" = set; then
8823   withval="$with_included_gettext"
8824   nls_cv_force_use_gnu_gettext=$withval
8825 else
8826   nls_cv_force_use_gnu_gettext=no
8827 fi;
8828       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8829 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8830
8831       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8832       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8833
8834
8835
8836
8837
8838
8839         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8840 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8841 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8842   echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844   cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h.  */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h.  */
8850 #include <libintl.h>
8851 extern int _nl_msg_cat_cntr;
8852 extern int *_nl_domain_bindings;
8853 int
8854 main ()
8855 {
8856 bindtextdomain ("", "");
8857 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8858   ;
8859   return 0;
8860 }
8861 _ACEOF
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864   (eval $ac_link) 2>conftest.er1
8865   ac_status=$?
8866   grep -v '^ *+' conftest.er1 >conftest.err
8867   rm -f conftest.er1
8868   cat conftest.err >&5
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); } &&
8871          { ac_try='test -z "$ac_c_werror_flag"
8872                          || test ! -s conftest.err'
8873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874   (eval $ac_try) 2>&5
8875   ac_status=$?
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); }; } &&
8878          { ac_try='test -s conftest$ac_exeext'
8879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880   (eval $ac_try) 2>&5
8881   ac_status=$?
8882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); }; }; then
8884   gt_cv_func_gnugettext2_libc=yes
8885 else
8886   echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8888
8889 gt_cv_func_gnugettext2_libc=no
8890 fi
8891 rm -f conftest.err conftest.$ac_objext \
8892       conftest$ac_exeext conftest.$ac_ext
8893 fi
8894 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8895 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8896
8897         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8898
8899
8900
8901     use_additional=yes
8902
8903   acl_save_prefix="$prefix"
8904   prefix="$acl_final_prefix"
8905   acl_save_exec_prefix="$exec_prefix"
8906   exec_prefix="$acl_final_exec_prefix"
8907
8908     eval additional_includedir=\"$includedir\"
8909     eval additional_libdir=\"$libdir\"
8910
8911   exec_prefix="$acl_save_exec_prefix"
8912   prefix="$acl_save_prefix"
8913
8914
8915 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8916 if test "${with_libintl_prefix+set}" = set; then
8917   withval="$with_libintl_prefix"
8918
8919     if test "X$withval" = "Xno"; then
8920       use_additional=no
8921     else
8922       if test "X$withval" = "X"; then
8923
8924   acl_save_prefix="$prefix"
8925   prefix="$acl_final_prefix"
8926   acl_save_exec_prefix="$exec_prefix"
8927   exec_prefix="$acl_final_exec_prefix"
8928
8929           eval additional_includedir=\"$includedir\"
8930           eval additional_libdir=\"$libdir\"
8931
8932   exec_prefix="$acl_save_exec_prefix"
8933   prefix="$acl_save_prefix"
8934
8935       else
8936         additional_includedir="$withval/include"
8937         additional_libdir="$withval/lib"
8938       fi
8939     fi
8940
8941 fi;
8942       LIBINTL=
8943   LTLIBINTL=
8944   INCINTL=
8945   rpathdirs=
8946   ltrpathdirs=
8947   names_already_handled=
8948   names_next_round='intl '
8949   while test -n "$names_next_round"; do
8950     names_this_round="$names_next_round"
8951     names_next_round=
8952     for name in $names_this_round; do
8953       already_handled=
8954       for n in $names_already_handled; do
8955         if test "$n" = "$name"; then
8956           already_handled=yes
8957           break
8958         fi
8959       done
8960       if test -z "$already_handled"; then
8961         names_already_handled="$names_already_handled $name"
8962                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8963         eval value=\"\$HAVE_LIB$uppername\"
8964         if test -n "$value"; then
8965           if test "$value" = yes; then
8966             eval value=\"\$LIB$uppername\"
8967             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8968             eval value=\"\$LTLIB$uppername\"
8969             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8970           else
8971                                     :
8972           fi
8973         else
8974                               found_dir=
8975           found_la=
8976           found_so=
8977           found_a=
8978           if test $use_additional = yes; then
8979             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8980               found_dir="$additional_libdir"
8981               found_so="$additional_libdir/lib$name.$shlibext"
8982               if test -f "$additional_libdir/lib$name.la"; then
8983                 found_la="$additional_libdir/lib$name.la"
8984               fi
8985             else
8986               if test -f "$additional_libdir/lib$name.$libext"; then
8987                 found_dir="$additional_libdir"
8988                 found_a="$additional_libdir/lib$name.$libext"
8989                 if test -f "$additional_libdir/lib$name.la"; then
8990                   found_la="$additional_libdir/lib$name.la"
8991                 fi
8992               fi
8993             fi
8994           fi
8995           if test "X$found_dir" = "X"; then
8996             for x in $LDFLAGS $LTLIBINTL; do
8997
8998   acl_save_prefix="$prefix"
8999   prefix="$acl_final_prefix"
9000   acl_save_exec_prefix="$exec_prefix"
9001   exec_prefix="$acl_final_exec_prefix"
9002   eval x=\"$x\"
9003   exec_prefix="$acl_save_exec_prefix"
9004   prefix="$acl_save_prefix"
9005
9006               case "$x" in
9007                 -L*)
9008                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9009                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9010                     found_dir="$dir"
9011                     found_so="$dir/lib$name.$shlibext"
9012                     if test -f "$dir/lib$name.la"; then
9013                       found_la="$dir/lib$name.la"
9014                     fi
9015                   else
9016                     if test -f "$dir/lib$name.$libext"; then
9017                       found_dir="$dir"
9018                       found_a="$dir/lib$name.$libext"
9019                       if test -f "$dir/lib$name.la"; then
9020                         found_la="$dir/lib$name.la"
9021                       fi
9022                     fi
9023                   fi
9024                   ;;
9025               esac
9026               if test "X$found_dir" != "X"; then
9027                 break
9028               fi
9029             done
9030           fi
9031           if test "X$found_dir" != "X"; then
9032                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9033             if test "X$found_so" != "X"; then
9034                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9035                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9036               else
9037                                                                                 haveit=
9038                 for x in $ltrpathdirs; do
9039                   if test "X$x" = "X$found_dir"; then
9040                     haveit=yes
9041                     break
9042                   fi
9043                 done
9044                 if test -z "$haveit"; then
9045                   ltrpathdirs="$ltrpathdirs $found_dir"
9046                 fi
9047                                 if test "$hardcode_direct" = yes; then
9048                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9049                 else
9050                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9051                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9052                                                             haveit=
9053                     for x in $rpathdirs; do
9054                       if test "X$x" = "X$found_dir"; then
9055                         haveit=yes
9056                         break
9057                       fi
9058                     done
9059                     if test -z "$haveit"; then
9060                       rpathdirs="$rpathdirs $found_dir"
9061                     fi
9062                   else
9063                                                                                 haveit=
9064                     for x in $LDFLAGS $LIBINTL; do
9065
9066   acl_save_prefix="$prefix"
9067   prefix="$acl_final_prefix"
9068   acl_save_exec_prefix="$exec_prefix"
9069   exec_prefix="$acl_final_exec_prefix"
9070   eval x=\"$x\"
9071   exec_prefix="$acl_save_exec_prefix"
9072   prefix="$acl_save_prefix"
9073
9074                       if test "X$x" = "X-L$found_dir"; then
9075                         haveit=yes
9076                         break
9077                       fi
9078                     done
9079                     if test -z "$haveit"; then
9080                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9081                     fi
9082                     if test "$hardcode_minus_L" != no; then
9083                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9084                     else
9085                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9086                     fi
9087                   fi
9088                 fi
9089               fi
9090             else
9091               if test "X$found_a" != "X"; then
9092                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9093               else
9094                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9095               fi
9096             fi
9097                         additional_includedir=
9098             case "$found_dir" in
9099               */lib | */lib/)
9100                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9101                 additional_includedir="$basedir/include"
9102                 ;;
9103             esac
9104             if test "X$additional_includedir" != "X"; then
9105                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9106                 haveit=
9107                 if test "X$additional_includedir" = "X/usr/local/include"; then
9108                   if test -n "$GCC"; then
9109                     case $host_os in
9110                       linux*) haveit=yes;;
9111                     esac
9112                   fi
9113                 fi
9114                 if test -z "$haveit"; then
9115                   for x in $CPPFLAGS $INCINTL; do
9116
9117   acl_save_prefix="$prefix"
9118   prefix="$acl_final_prefix"
9119   acl_save_exec_prefix="$exec_prefix"
9120   exec_prefix="$acl_final_exec_prefix"
9121   eval x=\"$x\"
9122   exec_prefix="$acl_save_exec_prefix"
9123   prefix="$acl_save_prefix"
9124
9125                     if test "X$x" = "X-I$additional_includedir"; then
9126                       haveit=yes
9127                       break
9128                     fi
9129                   done
9130                   if test -z "$haveit"; then
9131                     if test -d "$additional_includedir"; then
9132                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9133                     fi
9134                   fi
9135                 fi
9136               fi
9137             fi
9138                         if test -n "$found_la"; then
9139                                                         save_libdir="$libdir"
9140               case "$found_la" in
9141                 */* | *\\*) . "$found_la" ;;
9142                 *) . "./$found_la" ;;
9143               esac
9144               libdir="$save_libdir"
9145                             for dep in $dependency_libs; do
9146                 case "$dep" in
9147                   -L*)
9148                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9149                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9150                       haveit=
9151                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9152                         if test -n "$GCC"; then
9153                           case $host_os in
9154                             linux*) haveit=yes;;
9155                           esac
9156                         fi
9157                       fi
9158                       if test -z "$haveit"; then
9159                         haveit=
9160                         for x in $LDFLAGS $LIBINTL; do
9161
9162   acl_save_prefix="$prefix"
9163   prefix="$acl_final_prefix"
9164   acl_save_exec_prefix="$exec_prefix"
9165   exec_prefix="$acl_final_exec_prefix"
9166   eval x=\"$x\"
9167   exec_prefix="$acl_save_exec_prefix"
9168   prefix="$acl_save_prefix"
9169
9170                           if test "X$x" = "X-L$additional_libdir"; then
9171                             haveit=yes
9172                             break
9173                           fi
9174                         done
9175                         if test -z "$haveit"; then
9176                           if test -d "$additional_libdir"; then
9177                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9178                           fi
9179                         fi
9180                         haveit=
9181                         for x in $LDFLAGS $LTLIBINTL; do
9182
9183   acl_save_prefix="$prefix"
9184   prefix="$acl_final_prefix"
9185   acl_save_exec_prefix="$exec_prefix"
9186   exec_prefix="$acl_final_exec_prefix"
9187   eval x=\"$x\"
9188   exec_prefix="$acl_save_exec_prefix"
9189   prefix="$acl_save_prefix"
9190
9191                           if test "X$x" = "X-L$additional_libdir"; then
9192                             haveit=yes
9193                             break
9194                           fi
9195                         done
9196                         if test -z "$haveit"; then
9197                           if test -d "$additional_libdir"; then
9198                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9199                           fi
9200                         fi
9201                       fi
9202                     fi
9203                     ;;
9204                   -R*)
9205                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9206                     if test "$enable_rpath" != no; then
9207                                                                   haveit=
9208                       for x in $rpathdirs; do
9209                         if test "X$x" = "X$dir"; then
9210                           haveit=yes
9211                           break
9212                         fi
9213                       done
9214                       if test -z "$haveit"; then
9215                         rpathdirs="$rpathdirs $dir"
9216                       fi
9217                                                                   haveit=
9218                       for x in $ltrpathdirs; do
9219                         if test "X$x" = "X$dir"; then
9220                           haveit=yes
9221                           break
9222                         fi
9223                       done
9224                       if test -z "$haveit"; then
9225                         ltrpathdirs="$ltrpathdirs $dir"
9226                       fi
9227                     fi
9228                     ;;
9229                   -l*)
9230                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9231                     ;;
9232                   *.la)
9233                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9234                     ;;
9235                   *)
9236                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9237                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9238                     ;;
9239                 esac
9240               done
9241             fi
9242           else
9243                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9244             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9245           fi
9246         fi
9247       fi
9248     done
9249   done
9250   if test "X$rpathdirs" != "X"; then
9251     if test -n "$hardcode_libdir_separator"; then
9252                         alldirs=
9253       for found_dir in $rpathdirs; do
9254         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9255       done
9256             acl_save_libdir="$libdir"
9257       libdir="$alldirs"
9258       eval flag=\"$hardcode_libdir_flag_spec\"
9259       libdir="$acl_save_libdir"
9260       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9261     else
9262             for found_dir in $rpathdirs; do
9263         acl_save_libdir="$libdir"
9264         libdir="$found_dir"
9265         eval flag=\"$hardcode_libdir_flag_spec\"
9266         libdir="$acl_save_libdir"
9267         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9268       done
9269     fi
9270   fi
9271   if test "X$ltrpathdirs" != "X"; then
9272             for found_dir in $ltrpathdirs; do
9273       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9274     done
9275   fi
9276
9277           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9278 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9279 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
9280   echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282   gt_save_CPPFLAGS="$CPPFLAGS"
9283             CPPFLAGS="$CPPFLAGS $INCINTL"
9284             gt_save_LIBS="$LIBS"
9285             LIBS="$LIBS $LIBINTL"
9286                         cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h.  */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h.  */
9292 #include <libintl.h>
9293 extern int _nl_msg_cat_cntr;
9294 extern
9295 #ifdef __cplusplus
9296 "C"
9297 #endif
9298 const char *_nl_expand_alias ();
9299 int
9300 main ()
9301 {
9302 bindtextdomain ("", "");
9303 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9304   ;
9305   return 0;
9306 }
9307 _ACEOF
9308 rm -f conftest.$ac_objext conftest$ac_exeext
9309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9310   (eval $ac_link) 2>conftest.er1
9311   ac_status=$?
9312   grep -v '^ *+' conftest.er1 >conftest.err
9313   rm -f conftest.er1
9314   cat conftest.err >&5
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); } &&
9317          { ac_try='test -z "$ac_c_werror_flag"
9318                          || test ! -s conftest.err'
9319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320   (eval $ac_try) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; } &&
9324          { ac_try='test -s conftest$ac_exeext'
9325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326   (eval $ac_try) 2>&5
9327   ac_status=$?
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); }; }; then
9330   gt_cv_func_gnugettext2_libintl=yes
9331 else
9332   echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9334
9335 gt_cv_func_gnugettext2_libintl=no
9336 fi
9337 rm -f conftest.err conftest.$ac_objext \
9338       conftest$ac_exeext conftest.$ac_ext
9339                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
9340               LIBS="$LIBS $LIBICONV"
9341               cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h.  */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h.  */
9347 #include <libintl.h>
9348 extern int _nl_msg_cat_cntr;
9349 extern
9350 #ifdef __cplusplus
9351 "C"
9352 #endif
9353 const char *_nl_expand_alias ();
9354 int
9355 main ()
9356 {
9357 bindtextdomain ("", "");
9358 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9359   ;
9360   return 0;
9361 }
9362 _ACEOF
9363 rm -f conftest.$ac_objext conftest$ac_exeext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365   (eval $ac_link) 2>conftest.er1
9366   ac_status=$?
9367   grep -v '^ *+' conftest.er1 >conftest.err
9368   rm -f conftest.er1
9369   cat conftest.err >&5
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); } &&
9372          { ac_try='test -z "$ac_c_werror_flag"
9373                          || test ! -s conftest.err'
9374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375   (eval $ac_try) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); }; } &&
9379          { ac_try='test -s conftest$ac_exeext'
9380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381   (eval $ac_try) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; }; then
9385   LIBINTL="$LIBINTL $LIBICONV"
9386                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9387                 gt_cv_func_gnugettext2_libintl=yes
9388
9389 else
9390   echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393 fi
9394 rm -f conftest.err conftest.$ac_objext \
9395       conftest$ac_exeext conftest.$ac_ext
9396             fi
9397             CPPFLAGS="$gt_save_CPPFLAGS"
9398             LIBS="$gt_save_LIBS"
9399 fi
9400 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
9401 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
9402         fi
9403
9404                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
9405            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
9406                 && test "$PACKAGE" != gettext-runtime \
9407                 && test "$PACKAGE" != gettext-tools; }; then
9408           gt_use_preinstalled_gnugettext=yes
9409         else
9410                     LIBINTL=
9411           LTLIBINTL=
9412           INCINTL=
9413         fi
9414
9415
9416         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9417                               nls_cv_use_gnu_gettext=yes
9418         fi
9419       fi
9420
9421       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9422                 BUILD_INCLUDED_LIBINTL=yes
9423         USE_INCLUDED_LIBINTL=yes
9424         LIBINTL="lib/intl/libintl.a $LIBICONV"
9425         LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
9426         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9427       fi
9428
9429       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9430          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9431                 CATOBJEXT=.gmo
9432       fi
9433
9434
9435     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9436        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9437
9438 cat >>confdefs.h <<\_ACEOF
9439 #define ENABLE_NLS 1
9440 _ACEOF
9441
9442     else
9443       USE_NLS=no
9444     fi
9445   fi
9446
9447   echo "$as_me:$LINENO: checking whether to use NLS" >&5
9448 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9449   echo "$as_me:$LINENO: result: $USE_NLS" >&5
9450 echo "${ECHO_T}$USE_NLS" >&6
9451   if test "$USE_NLS" = "yes"; then
9452     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9453 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9454     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9455       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9456         gt_source="external libintl"
9457       else
9458         gt_source="libc"
9459       fi
9460     else
9461       gt_source="included intl directory"
9462     fi
9463     echo "$as_me:$LINENO: result: $gt_source" >&5
9464 echo "${ECHO_T}$gt_source" >&6
9465   fi
9466
9467   if test "$USE_NLS" = "yes"; then
9468
9469     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9470       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9471         echo "$as_me:$LINENO: checking how to link with libintl" >&5
9472 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9473         echo "$as_me:$LINENO: result: $LIBINTL" >&5
9474 echo "${ECHO_T}$LIBINTL" >&6
9475
9476   for element in $INCINTL; do
9477     haveit=
9478     for x in $CPPFLAGS; do
9479
9480   acl_save_prefix="$prefix"
9481   prefix="$acl_final_prefix"
9482   acl_save_exec_prefix="$exec_prefix"
9483   exec_prefix="$acl_final_exec_prefix"
9484   eval x=\"$x\"
9485   exec_prefix="$acl_save_exec_prefix"
9486   prefix="$acl_save_prefix"
9487
9488       if test "X$x" = "X$element"; then
9489         haveit=yes
9490         break
9491       fi
9492     done
9493     if test -z "$haveit"; then
9494       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9495     fi
9496   done
9497
9498       fi
9499
9500
9501 cat >>confdefs.h <<\_ACEOF
9502 #define HAVE_GETTEXT 1
9503 _ACEOF
9504
9505
9506 cat >>confdefs.h <<\_ACEOF
9507 #define HAVE_DCGETTEXT 1
9508 _ACEOF
9509
9510     fi
9511
9512         POSUB=po
9513   fi
9514
9515
9516             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9517       BUILD_INCLUDED_LIBINTL=yes
9518     fi
9519
9520
9521
9522
9523
9524         nls_cv_header_intl=
9525     nls_cv_header_libgt=
9526
9527         DATADIRNAME=share
9528
9529
9530         INSTOBJEXT=.mo
9531
9532
9533         GENCAT=gencat
9534
9535
9536         if test "$USE_INCLUDED_LIBINTL" = yes; then
9537       INTLOBJS="\$(GETTOBJS)"
9538     fi
9539
9540
9541         INTL_LIBTOOL_SUFFIX_PREFIX=
9542
9543
9544
9545     INTLLIBS="$LIBINTL"
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558 ac_header_dirent=no
9559 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9560   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9561 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9562 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9564   echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566   cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h.  */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h.  */
9572 #include <sys/types.h>
9573 #include <$ac_hdr>
9574
9575 int
9576 main ()
9577 {
9578 if ((DIR *) 0)
9579 return 0;
9580   ;
9581   return 0;
9582 }
9583 _ACEOF
9584 rm -f conftest.$ac_objext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586   (eval $ac_compile) 2>conftest.er1
9587   ac_status=$?
9588   grep -v '^ *+' conftest.er1 >conftest.err
9589   rm -f conftest.er1
9590   cat conftest.err >&5
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); } &&
9593          { ac_try='test -z "$ac_c_werror_flag"
9594                          || test ! -s conftest.err'
9595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596   (eval $ac_try) 2>&5
9597   ac_status=$?
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); }; } &&
9600          { ac_try='test -s conftest.$ac_objext'
9601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602   (eval $ac_try) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); }; }; then
9606   eval "$as_ac_Header=yes"
9607 else
9608   echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9610
9611 eval "$as_ac_Header=no"
9612 fi
9613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9614 fi
9615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9618   cat >>confdefs.h <<_ACEOF
9619 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9620 _ACEOF
9621
9622 ac_header_dirent=$ac_hdr; break
9623 fi
9624
9625 done
9626 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9627 if test $ac_header_dirent = dirent.h; then
9628   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9629 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9630 if test "${ac_cv_search_opendir+set}" = set; then
9631   echo $ECHO_N "(cached) $ECHO_C" >&6
9632 else
9633   ac_func_search_save_LIBS=$LIBS
9634 ac_cv_search_opendir=no
9635 cat >conftest.$ac_ext <<_ACEOF
9636 /* confdefs.h.  */
9637 _ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h.  */
9641
9642 /* Override any gcc2 internal prototype to avoid an error.  */
9643 #ifdef __cplusplus
9644 extern "C"
9645 #endif
9646 /* We use char because int might match the return type of a gcc2
9647    builtin and then its argument prototype would still apply.  */
9648 char opendir ();
9649 int
9650 main ()
9651 {
9652 opendir ();
9653   ;
9654   return 0;
9655 }
9656 _ACEOF
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9659   (eval $ac_link) 2>conftest.er1
9660   ac_status=$?
9661   grep -v '^ *+' conftest.er1 >conftest.err
9662   rm -f conftest.er1
9663   cat conftest.err >&5
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); } &&
9666          { ac_try='test -z "$ac_c_werror_flag"
9667                          || test ! -s conftest.err'
9668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669   (eval $ac_try) 2>&5
9670   ac_status=$?
9671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672   (exit $ac_status); }; } &&
9673          { ac_try='test -s conftest$ac_exeext'
9674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675   (eval $ac_try) 2>&5
9676   ac_status=$?
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); }; }; then
9679   ac_cv_search_opendir="none required"
9680 else
9681   echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9683
9684 fi
9685 rm -f conftest.err conftest.$ac_objext \
9686       conftest$ac_exeext conftest.$ac_ext
9687 if test "$ac_cv_search_opendir" = no; then
9688   for ac_lib in dir; do
9689     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9690     cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696
9697 /* Override any gcc2 internal prototype to avoid an error.  */
9698 #ifdef __cplusplus
9699 extern "C"
9700 #endif
9701 /* We use char because int might match the return type of a gcc2
9702    builtin and then its argument prototype would still apply.  */
9703 char opendir ();
9704 int
9705 main ()
9706 {
9707 opendir ();
9708   ;
9709   return 0;
9710 }
9711 _ACEOF
9712 rm -f conftest.$ac_objext conftest$ac_exeext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9714   (eval $ac_link) 2>conftest.er1
9715   ac_status=$?
9716   grep -v '^ *+' conftest.er1 >conftest.err
9717   rm -f conftest.er1
9718   cat conftest.err >&5
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); } &&
9721          { ac_try='test -z "$ac_c_werror_flag"
9722                          || test ! -s conftest.err'
9723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724   (eval $ac_try) 2>&5
9725   ac_status=$?
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); }; } &&
9728          { ac_try='test -s conftest$ac_exeext'
9729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730   (eval $ac_try) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; }; then
9734   ac_cv_search_opendir="-l$ac_lib"
9735 break
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 fi
9741 rm -f conftest.err conftest.$ac_objext \
9742       conftest$ac_exeext conftest.$ac_ext
9743   done
9744 fi
9745 LIBS=$ac_func_search_save_LIBS
9746 fi
9747 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9748 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9749 if test "$ac_cv_search_opendir" != no; then
9750   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9751
9752 fi
9753
9754 else
9755   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9756 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9757 if test "${ac_cv_search_opendir+set}" = set; then
9758   echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760   ac_func_search_save_LIBS=$LIBS
9761 ac_cv_search_opendir=no
9762 cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h.  */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h.  */
9768
9769 /* Override any gcc2 internal prototype to avoid an error.  */
9770 #ifdef __cplusplus
9771 extern "C"
9772 #endif
9773 /* We use char because int might match the return type of a gcc2
9774    builtin and then its argument prototype would still apply.  */
9775 char opendir ();
9776 int
9777 main ()
9778 {
9779 opendir ();
9780   ;
9781   return 0;
9782 }
9783 _ACEOF
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9786   (eval $ac_link) 2>conftest.er1
9787   ac_status=$?
9788   grep -v '^ *+' conftest.er1 >conftest.err
9789   rm -f conftest.er1
9790   cat conftest.err >&5
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } &&
9793          { ac_try='test -z "$ac_c_werror_flag"
9794                          || test ! -s conftest.err'
9795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796   (eval $ac_try) 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); }; } &&
9800          { ac_try='test -s conftest$ac_exeext'
9801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802   (eval $ac_try) 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); }; }; then
9806   ac_cv_search_opendir="none required"
9807 else
9808   echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9810
9811 fi
9812 rm -f conftest.err conftest.$ac_objext \
9813       conftest$ac_exeext conftest.$ac_ext
9814 if test "$ac_cv_search_opendir" = no; then
9815   for ac_lib in x; do
9816     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9817     cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h.  */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h.  */
9823
9824 /* Override any gcc2 internal prototype to avoid an error.  */
9825 #ifdef __cplusplus
9826 extern "C"
9827 #endif
9828 /* We use char because int might match the return type of a gcc2
9829    builtin and then its argument prototype would still apply.  */
9830 char opendir ();
9831 int
9832 main ()
9833 {
9834 opendir ();
9835   ;
9836   return 0;
9837 }
9838 _ACEOF
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841   (eval $ac_link) 2>conftest.er1
9842   ac_status=$?
9843   grep -v '^ *+' conftest.er1 >conftest.err
9844   rm -f conftest.er1
9845   cat conftest.err >&5
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); } &&
9848          { ac_try='test -z "$ac_c_werror_flag"
9849                          || test ! -s conftest.err'
9850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851   (eval $ac_try) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }; } &&
9855          { ac_try='test -s conftest$ac_exeext'
9856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857   (eval $ac_try) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; }; then
9861   ac_cv_search_opendir="-l$ac_lib"
9862 break
9863 else
9864   echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9866
9867 fi
9868 rm -f conftest.err conftest.$ac_objext \
9869       conftest$ac_exeext conftest.$ac_ext
9870   done
9871 fi
9872 LIBS=$ac_func_search_save_LIBS
9873 fi
9874 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9875 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9876 if test "$ac_cv_search_opendir" != no; then
9877   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9878
9879 fi
9880
9881 fi
9882
9883 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9884 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9885 if test "${ac_cv_header_time+set}" = set; then
9886   echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888   cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h.  */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h.  */
9894 #include <sys/types.h>
9895 #include <sys/time.h>
9896 #include <time.h>
9897
9898 int
9899 main ()
9900 {
9901 if ((struct tm *) 0)
9902 return 0;
9903   ;
9904   return 0;
9905 }
9906 _ACEOF
9907 rm -f conftest.$ac_objext
9908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9909   (eval $ac_compile) 2>conftest.er1
9910   ac_status=$?
9911   grep -v '^ *+' conftest.er1 >conftest.err
9912   rm -f conftest.er1
9913   cat conftest.err >&5
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); } &&
9916          { ac_try='test -z "$ac_c_werror_flag"
9917                          || test ! -s conftest.err'
9918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919   (eval $ac_try) 2>&5
9920   ac_status=$?
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); }; } &&
9923          { ac_try='test -s conftest.$ac_objext'
9924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925   (eval $ac_try) 2>&5
9926   ac_status=$?
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); }; }; then
9929   ac_cv_header_time=yes
9930 else
9931   echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9933
9934 ac_cv_header_time=no
9935 fi
9936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9937 fi
9938 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9939 echo "${ECHO_T}$ac_cv_header_time" >&6
9940 if test $ac_cv_header_time = yes; then
9941
9942 cat >>confdefs.h <<\_ACEOF
9943 #define TIME_WITH_SYS_TIME 1
9944 _ACEOF
9945
9946 fi
9947
9948
9949
9950
9951 for ac_header in inttypes.h
9952 do
9953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9955   echo "$as_me:$LINENO: checking for $ac_header" >&5
9956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9958   echo $ECHO_N "(cached) $ECHO_C" >&6
9959 fi
9960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9962 else
9963   # Is the header compilable?
9964 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9966 cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h.  */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h.  */
9972 $ac_includes_default
9973 #include <$ac_header>
9974 _ACEOF
9975 rm -f conftest.$ac_objext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9977   (eval $ac_compile) 2>conftest.er1
9978   ac_status=$?
9979   grep -v '^ *+' conftest.er1 >conftest.err
9980   rm -f conftest.er1
9981   cat conftest.err >&5
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); } &&
9984          { ac_try='test -z "$ac_c_werror_flag"
9985                          || test ! -s conftest.err'
9986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987   (eval $ac_try) 2>&5
9988   ac_status=$?
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); }; } &&
9991          { ac_try='test -s conftest.$ac_objext'
9992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993   (eval $ac_try) 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); }; }; then
9997   ac_header_compiler=yes
9998 else
9999   echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10001
10002 ac_header_compiler=no
10003 fi
10004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10006 echo "${ECHO_T}$ac_header_compiler" >&6
10007
10008 # Is the header present?
10009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10011 cat >conftest.$ac_ext <<_ACEOF
10012 /* confdefs.h.  */
10013 _ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h.  */
10017 #include <$ac_header>
10018 _ACEOF
10019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10021   ac_status=$?
10022   grep -v '^ *+' conftest.er1 >conftest.err
10023   rm -f conftest.er1
10024   cat conftest.err >&5
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } >/dev/null; then
10027   if test -s conftest.err; then
10028     ac_cpp_err=$ac_c_preproc_warn_flag
10029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10030   else
10031     ac_cpp_err=
10032   fi
10033 else
10034   ac_cpp_err=yes
10035 fi
10036 if test -z "$ac_cpp_err"; then
10037   ac_header_preproc=yes
10038 else
10039   echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10041
10042   ac_header_preproc=no
10043 fi
10044 rm -f conftest.err conftest.$ac_ext
10045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10046 echo "${ECHO_T}$ac_header_preproc" >&6
10047
10048 # So?  What about this header?
10049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10050   yes:no: )
10051     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10055     ac_header_preproc=yes
10056     ;;
10057   no:yes:* )
10058     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10060     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10061 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10062     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10064     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10065 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10068     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10070     (
10071       cat <<\_ASBOX
10072 ## ------------------------------- ##
10073 ## Report this to bug-bash@gnu.org ##
10074 ## ------------------------------- ##
10075 _ASBOX
10076     ) |
10077       sed "s/^/$as_me: WARNING:     /" >&2
10078     ;;
10079 esac
10080 echo "$as_me:$LINENO: checking for $ac_header" >&5
10081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10083   echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085   eval "$as_ac_Header=\$ac_header_preproc"
10086 fi
10087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10089
10090 fi
10091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10092   cat >>confdefs.h <<_ACEOF
10093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10094 _ACEOF
10095
10096 fi
10097
10098 done
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
10121                  memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
10122                  stddef.h stdint.h netdb.h grp.h strings.h regex.h
10123 do
10124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10126   echo "$as_me:$LINENO: checking for $ac_header" >&5
10127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10129   echo $ECHO_N "(cached) $ECHO_C" >&6
10130 fi
10131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10133 else
10134   # Is the header compilable?
10135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10137 cat >conftest.$ac_ext <<_ACEOF
10138 /* confdefs.h.  */
10139 _ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h.  */
10143 $ac_includes_default
10144 #include <$ac_header>
10145 _ACEOF
10146 rm -f conftest.$ac_objext
10147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10148   (eval $ac_compile) 2>conftest.er1
10149   ac_status=$?
10150   grep -v '^ *+' conftest.er1 >conftest.err
10151   rm -f conftest.er1
10152   cat conftest.err >&5
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); } &&
10155          { ac_try='test -z "$ac_c_werror_flag"
10156                          || test ! -s conftest.err'
10157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158   (eval $ac_try) 2>&5
10159   ac_status=$?
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); }; } &&
10162          { ac_try='test -s conftest.$ac_objext'
10163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164   (eval $ac_try) 2>&5
10165   ac_status=$?
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); }; }; then
10168   ac_header_compiler=yes
10169 else
10170   echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173 ac_header_compiler=no
10174 fi
10175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10177 echo "${ECHO_T}$ac_header_compiler" >&6
10178
10179 # Is the header present?
10180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10182 cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h.  */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h.  */
10188 #include <$ac_header>
10189 _ACEOF
10190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10192   ac_status=$?
10193   grep -v '^ *+' conftest.er1 >conftest.err
10194   rm -f conftest.er1
10195   cat conftest.err >&5
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); } >/dev/null; then
10198   if test -s conftest.err; then
10199     ac_cpp_err=$ac_c_preproc_warn_flag
10200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10201   else
10202     ac_cpp_err=
10203   fi
10204 else
10205   ac_cpp_err=yes
10206 fi
10207 if test -z "$ac_cpp_err"; then
10208   ac_header_preproc=yes
10209 else
10210   echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10212
10213   ac_header_preproc=no
10214 fi
10215 rm -f conftest.err conftest.$ac_ext
10216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10217 echo "${ECHO_T}$ac_header_preproc" >&6
10218
10219 # So?  What about this header?
10220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10221   yes:no: )
10222     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10226     ac_header_preproc=yes
10227     ;;
10228   no:yes:* )
10229     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10231     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10232 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10233     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10235     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10236 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10239     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10241     (
10242       cat <<\_ASBOX
10243 ## ------------------------------- ##
10244 ## Report this to bug-bash@gnu.org ##
10245 ## ------------------------------- ##
10246 _ASBOX
10247     ) |
10248       sed "s/^/$as_me: WARNING:     /" >&2
10249     ;;
10250 esac
10251 echo "$as_me:$LINENO: checking for $ac_header" >&5
10252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10254   echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256   eval "$as_ac_Header=\$ac_header_preproc"
10257 fi
10258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10260
10261 fi
10262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10263   cat >>confdefs.h <<_ACEOF
10264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10265 _ACEOF
10266
10267 fi
10268
10269 done
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
10284                  sys/resource.h sys/param.h sys/socket.h sys/stat.h \
10285                  sys/time.h sys/times.h sys/types.h sys/wait.h
10286 do
10287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10289   echo "$as_me:$LINENO: checking for $ac_header" >&5
10290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10292   echo $ECHO_N "(cached) $ECHO_C" >&6
10293 fi
10294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10296 else
10297   # Is the header compilable?
10298 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10300 cat >conftest.$ac_ext <<_ACEOF
10301 /* confdefs.h.  */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h.  */
10306 $ac_includes_default
10307 #include <$ac_header>
10308 _ACEOF
10309 rm -f conftest.$ac_objext
10310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10311   (eval $ac_compile) 2>conftest.er1
10312   ac_status=$?
10313   grep -v '^ *+' conftest.er1 >conftest.err
10314   rm -f conftest.er1
10315   cat conftest.err >&5
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); } &&
10318          { ac_try='test -z "$ac_c_werror_flag"
10319                          || test ! -s conftest.err'
10320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321   (eval $ac_try) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); }; } &&
10325          { ac_try='test -s conftest.$ac_objext'
10326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327   (eval $ac_try) 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; }; then
10331   ac_header_compiler=yes
10332 else
10333   echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10335
10336 ac_header_compiler=no
10337 fi
10338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10340 echo "${ECHO_T}$ac_header_compiler" >&6
10341
10342 # Is the header present?
10343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10345 cat >conftest.$ac_ext <<_ACEOF
10346 /* confdefs.h.  */
10347 _ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h.  */
10351 #include <$ac_header>
10352 _ACEOF
10353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10355   ac_status=$?
10356   grep -v '^ *+' conftest.er1 >conftest.err
10357   rm -f conftest.er1
10358   cat conftest.err >&5
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } >/dev/null; then
10361   if test -s conftest.err; then
10362     ac_cpp_err=$ac_c_preproc_warn_flag
10363     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10364   else
10365     ac_cpp_err=
10366   fi
10367 else
10368   ac_cpp_err=yes
10369 fi
10370 if test -z "$ac_cpp_err"; then
10371   ac_header_preproc=yes
10372 else
10373   echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10375
10376   ac_header_preproc=no
10377 fi
10378 rm -f conftest.err conftest.$ac_ext
10379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10380 echo "${ECHO_T}$ac_header_preproc" >&6
10381
10382 # So?  What about this header?
10383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10384   yes:no: )
10385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10389     ac_header_preproc=yes
10390     ;;
10391   no:yes:* )
10392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10404     (
10405       cat <<\_ASBOX
10406 ## ------------------------------- ##
10407 ## Report this to bug-bash@gnu.org ##
10408 ## ------------------------------- ##
10409 _ASBOX
10410     ) |
10411       sed "s/^/$as_me: WARNING:     /" >&2
10412     ;;
10413 esac
10414 echo "$as_me:$LINENO: checking for $ac_header" >&5
10415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10417   echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10419   eval "$as_ac_Header=\$ac_header_preproc"
10420 fi
10421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10423
10424 fi
10425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10426   cat >>confdefs.h <<_ACEOF
10427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10428 _ACEOF
10429
10430 fi
10431
10432 done
10433
10434
10435
10436 for ac_header in netinet/in.h arpa/inet.h
10437 do
10438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10440   echo "$as_me:$LINENO: checking for $ac_header" >&5
10441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10443   echo $ECHO_N "(cached) $ECHO_C" >&6
10444 fi
10445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10447 else
10448   # Is the header compilable?
10449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10451 cat >conftest.$ac_ext <<_ACEOF
10452 /* confdefs.h.  */
10453 _ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h.  */
10457 $ac_includes_default
10458 #include <$ac_header>
10459 _ACEOF
10460 rm -f conftest.$ac_objext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10462   (eval $ac_compile) 2>conftest.er1
10463   ac_status=$?
10464   grep -v '^ *+' conftest.er1 >conftest.err
10465   rm -f conftest.er1
10466   cat conftest.err >&5
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); } &&
10469          { ac_try='test -z "$ac_c_werror_flag"
10470                          || test ! -s conftest.err'
10471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472   (eval $ac_try) 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); }; } &&
10476          { ac_try='test -s conftest.$ac_objext'
10477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478   (eval $ac_try) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); }; }; then
10482   ac_header_compiler=yes
10483 else
10484   echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 ac_header_compiler=no
10488 fi
10489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10491 echo "${ECHO_T}$ac_header_compiler" >&6
10492
10493 # Is the header present?
10494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h.  */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h.  */
10502 #include <$ac_header>
10503 _ACEOF
10504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10505   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10506   ac_status=$?
10507   grep -v '^ *+' conftest.er1 >conftest.err
10508   rm -f conftest.er1
10509   cat conftest.err >&5
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); } >/dev/null; then
10512   if test -s conftest.err; then
10513     ac_cpp_err=$ac_c_preproc_warn_flag
10514     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10515   else
10516     ac_cpp_err=
10517   fi
10518 else
10519   ac_cpp_err=yes
10520 fi
10521 if test -z "$ac_cpp_err"; then
10522   ac_header_preproc=yes
10523 else
10524   echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527   ac_header_preproc=no
10528 fi
10529 rm -f conftest.err conftest.$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10531 echo "${ECHO_T}$ac_header_preproc" >&6
10532
10533 # So?  What about this header?
10534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10535   yes:no: )
10536     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10540     ac_header_preproc=yes
10541     ;;
10542   no:yes:* )
10543     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10545     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10546 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10547     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10549     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10550 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10553     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10555     (
10556       cat <<\_ASBOX
10557 ## ------------------------------- ##
10558 ## Report this to bug-bash@gnu.org ##
10559 ## ------------------------------- ##
10560 _ASBOX
10561     ) |
10562       sed "s/^/$as_me: WARNING:     /" >&2
10563     ;;
10564 esac
10565 echo "$as_me:$LINENO: checking for $ac_header" >&5
10566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10568   echo $ECHO_N "(cached) $ECHO_C" >&6
10569 else
10570   eval "$as_ac_Header=\$ac_header_preproc"
10571 fi
10572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10574
10575 fi
10576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10577   cat >>confdefs.h <<_ACEOF
10578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10579 _ACEOF
10580
10581 fi
10582
10583 done
10584
10585
10586 echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
10587 echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
10588 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
10589   echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591   cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h.  */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h.  */
10597
10598 #if HAVE_SYS_STREAM_H
10599 #  include <sys/stream.h>
10600 #endif
10601
10602
10603 #include <sys/ptem.h>
10604 _ACEOF
10605 rm -f conftest.$ac_objext
10606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10607   (eval $ac_compile) 2>conftest.er1
10608   ac_status=$?
10609   grep -v '^ *+' conftest.er1 >conftest.err
10610   rm -f conftest.er1
10611   cat conftest.err >&5
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); } &&
10614          { ac_try='test -z "$ac_c_werror_flag"
10615                          || test ! -s conftest.err'
10616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617   (eval $ac_try) 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); }; } &&
10621          { ac_try='test -s conftest.$ac_objext'
10622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623   (eval $ac_try) 2>&5
10624   ac_status=$?
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); }; }; then
10627   ac_cv_header_sys_ptem_h=yes
10628 else
10629   echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10631
10632 ac_cv_header_sys_ptem_h=no
10633 fi
10634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10635 fi
10636 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
10637 echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
10638
10639
10640
10641 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10642 # for constant arguments.  Useless!
10643 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10644 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10645 if test "${ac_cv_working_alloca_h+set}" = set; then
10646   echo $ECHO_N "(cached) $ECHO_C" >&6
10647 else
10648   cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h.  */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h.  */
10654 #include <alloca.h>
10655 int
10656 main ()
10657 {
10658 char *p = (char *) alloca (2 * sizeof (int));
10659   ;
10660   return 0;
10661 }
10662 _ACEOF
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665   (eval $ac_link) 2>conftest.er1
10666   ac_status=$?
10667   grep -v '^ *+' conftest.er1 >conftest.err
10668   rm -f conftest.er1
10669   cat conftest.err >&5
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); } &&
10672          { ac_try='test -z "$ac_c_werror_flag"
10673                          || test ! -s conftest.err'
10674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675   (eval $ac_try) 2>&5
10676   ac_status=$?
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); }; } &&
10679          { ac_try='test -s conftest$ac_exeext'
10680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681   (eval $ac_try) 2>&5
10682   ac_status=$?
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); }; }; then
10685   ac_cv_working_alloca_h=yes
10686 else
10687   echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10689
10690 ac_cv_working_alloca_h=no
10691 fi
10692 rm -f conftest.err conftest.$ac_objext \
10693       conftest$ac_exeext conftest.$ac_ext
10694 fi
10695 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10696 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10697 if test $ac_cv_working_alloca_h = yes; then
10698
10699 cat >>confdefs.h <<\_ACEOF
10700 #define HAVE_ALLOCA_H 1
10701 _ACEOF
10702
10703 fi
10704
10705 echo "$as_me:$LINENO: checking for alloca" >&5
10706 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10707 if test "${ac_cv_func_alloca_works+set}" = set; then
10708   echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710   cat >conftest.$ac_ext <<_ACEOF
10711 /* confdefs.h.  */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h.  */
10716 #ifdef __GNUC__
10717 # define alloca __builtin_alloca
10718 #else
10719 # ifdef _MSC_VER
10720 #  include <malloc.h>
10721 #  define alloca _alloca
10722 # else
10723 #  if HAVE_ALLOCA_H
10724 #   include <alloca.h>
10725 #  else
10726 #   ifdef _AIX
10727  #pragma alloca
10728 #   else
10729 #    ifndef alloca /* predefined by HP cc +Olibcalls */
10730 char *alloca ();
10731 #    endif
10732 #   endif
10733 #  endif
10734 # endif
10735 #endif
10736
10737 int
10738 main ()
10739 {
10740 char *p = (char *) alloca (1);
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 rm -f conftest.$ac_objext conftest$ac_exeext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10747   (eval $ac_link) 2>conftest.er1
10748   ac_status=$?
10749   grep -v '^ *+' conftest.er1 >conftest.err
10750   rm -f conftest.er1
10751   cat conftest.err >&5
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); } &&
10754          { ac_try='test -z "$ac_c_werror_flag"
10755                          || test ! -s conftest.err'
10756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757   (eval $ac_try) 2>&5
10758   ac_status=$?
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); }; } &&
10761          { ac_try='test -s conftest$ac_exeext'
10762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763   (eval $ac_try) 2>&5
10764   ac_status=$?
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); }; }; then
10767   ac_cv_func_alloca_works=yes
10768 else
10769   echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772 ac_cv_func_alloca_works=no
10773 fi
10774 rm -f conftest.err conftest.$ac_objext \
10775       conftest$ac_exeext conftest.$ac_ext
10776 fi
10777 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10778 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10779
10780 if test $ac_cv_func_alloca_works = yes; then
10781
10782 cat >>confdefs.h <<\_ACEOF
10783 #define HAVE_ALLOCA 1
10784 _ACEOF
10785
10786 else
10787   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10788 # that cause trouble.  Some versions do not even contain alloca or
10789 # contain a buggy version.  If you still want to use their alloca,
10790 # use ar to extract alloca.o from them instead of compiling alloca.c.
10791
10792 ALLOCA=alloca.$ac_objext
10793
10794 cat >>confdefs.h <<\_ACEOF
10795 #define C_ALLOCA 1
10796 _ACEOF
10797
10798
10799 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10800 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10801 if test "${ac_cv_os_cray+set}" = set; then
10802   echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804   cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h.  */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h.  */
10810 #if defined(CRAY) && ! defined(CRAY2)
10811 webecray
10812 #else
10813 wenotbecray
10814 #endif
10815
10816 _ACEOF
10817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10818   $EGREP "webecray" >/dev/null 2>&1; then
10819   ac_cv_os_cray=yes
10820 else
10821   ac_cv_os_cray=no
10822 fi
10823 rm -f conftest*
10824
10825 fi
10826 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10827 echo "${ECHO_T}$ac_cv_os_cray" >&6
10828 if test $ac_cv_os_cray = yes; then
10829   for ac_func in _getb67 GETB67 getb67; do
10830     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10831 echo "$as_me:$LINENO: checking for $ac_func" >&5
10832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10833 if eval "test \"\${$as_ac_var+set}\" = set"; then
10834   echo $ECHO_N "(cached) $ECHO_C" >&6
10835 else
10836   cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h.  */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h.  */
10842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10844 #define $ac_func innocuous_$ac_func
10845
10846 /* System header to define __stub macros and hopefully few prototypes,
10847     which can conflict with char $ac_func (); below.
10848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10849     <limits.h> exists even on freestanding compilers.  */
10850
10851 #ifdef __STDC__
10852 # include <limits.h>
10853 #else
10854 # include <assert.h>
10855 #endif
10856
10857 #undef $ac_func
10858
10859 /* Override any gcc2 internal prototype to avoid an error.  */
10860 #ifdef __cplusplus
10861 extern "C"
10862 {
10863 #endif
10864 /* We use char because int might match the return type of a gcc2
10865    builtin and then its argument prototype would still apply.  */
10866 char $ac_func ();
10867 /* The GNU C library defines this for functions which it implements
10868     to always fail with ENOSYS.  Some functions are actually named
10869     something starting with __ and the normal name is an alias.  */
10870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10871 choke me
10872 #else
10873 char (*f) () = $ac_func;
10874 #endif
10875 #ifdef __cplusplus
10876 }
10877 #endif
10878
10879 int
10880 main ()
10881 {
10882 return f != $ac_func;
10883   ;
10884   return 0;
10885 }
10886 _ACEOF
10887 rm -f conftest.$ac_objext conftest$ac_exeext
10888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10889   (eval $ac_link) 2>conftest.er1
10890   ac_status=$?
10891   grep -v '^ *+' conftest.er1 >conftest.err
10892   rm -f conftest.er1
10893   cat conftest.err >&5
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); } &&
10896          { ac_try='test -z "$ac_c_werror_flag"
10897                          || test ! -s conftest.err'
10898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899   (eval $ac_try) 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; } &&
10903          { ac_try='test -s conftest$ac_exeext'
10904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905   (eval $ac_try) 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; }; then
10909   eval "$as_ac_var=yes"
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914 eval "$as_ac_var=no"
10915 fi
10916 rm -f conftest.err conftest.$ac_objext \
10917       conftest$ac_exeext conftest.$ac_ext
10918 fi
10919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10921 if test `eval echo '${'$as_ac_var'}'` = yes; then
10922
10923 cat >>confdefs.h <<_ACEOF
10924 #define CRAY_STACKSEG_END $ac_func
10925 _ACEOF
10926
10927     break
10928 fi
10929
10930   done
10931 fi
10932
10933 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10934 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10935 if test "${ac_cv_c_stack_direction+set}" = set; then
10936   echo $ECHO_N "(cached) $ECHO_C" >&6
10937 else
10938   if test "$cross_compiling" = yes; then
10939   ac_cv_c_stack_direction=0
10940 else
10941   cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h.  */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h.  */
10947 int
10948 find_stack_direction ()
10949 {
10950   static char *addr = 0;
10951   auto char dummy;
10952   if (addr == 0)
10953     {
10954       addr = &dummy;
10955       return find_stack_direction ();
10956     }
10957   else
10958     return (&dummy > addr) ? 1 : -1;
10959 }
10960
10961 int
10962 main ()
10963 {
10964   exit (find_stack_direction () < 0);
10965 }
10966 _ACEOF
10967 rm -f conftest$ac_exeext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969   (eval $ac_link) 2>&5
10970   ac_status=$?
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974   (eval $ac_try) 2>&5
10975   ac_status=$?
10976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977   (exit $ac_status); }; }; then
10978   ac_cv_c_stack_direction=1
10979 else
10980   echo "$as_me: program exited with status $ac_status" >&5
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10983
10984 ( exit $ac_status )
10985 ac_cv_c_stack_direction=-1
10986 fi
10987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10988 fi
10989 fi
10990 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10991 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10992
10993 cat >>confdefs.h <<_ACEOF
10994 #define STACK_DIRECTION $ac_cv_c_stack_direction
10995 _ACEOF
10996
10997
10998 fi
10999
11000 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11001 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
11002 if test "${ac_cv_func_getpgrp_void+set}" = set; then
11003   echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005   # Use it with a single arg.
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h.  */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h.  */
11012 $ac_includes_default
11013 int
11014 main ()
11015 {
11016 getpgrp (0);
11017   ;
11018   return 0;
11019 }
11020 _ACEOF
11021 rm -f conftest.$ac_objext
11022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11023   (eval $ac_compile) 2>conftest.er1
11024   ac_status=$?
11025   grep -v '^ *+' conftest.er1 >conftest.err
11026   rm -f conftest.er1
11027   cat conftest.err >&5
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); } &&
11030          { ac_try='test -z "$ac_c_werror_flag"
11031                          || test ! -s conftest.err'
11032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033   (eval $ac_try) 2>&5
11034   ac_status=$?
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); }; } &&
11037          { ac_try='test -s conftest.$ac_objext'
11038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039   (eval $ac_try) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); }; }; then
11043   ac_cv_func_getpgrp_void=no
11044 else
11045   echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11047
11048 ac_cv_func_getpgrp_void=yes
11049 fi
11050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11051
11052 fi
11053 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11054 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
11055 if test $ac_cv_func_getpgrp_void = yes; then
11056
11057 cat >>confdefs.h <<\_ACEOF
11058 #define GETPGRP_VOID 1
11059 _ACEOF
11060
11061 fi
11062
11063 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
11064 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
11065 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
11066   echo $ECHO_N "(cached) $ECHO_C" >&6
11067 else
11068   ac_cv_func_setvbuf_reversed=no
11069    cat >conftest.$ac_ext <<_ACEOF
11070 /* confdefs.h.  */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h.  */
11075 #include <stdio.h>
11076 #         if PROTOTYPES
11077            int (setvbuf) (FILE *, int, char *, size_t);
11078 #         endif
11079 int
11080 main ()
11081 {
11082 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
11083   ;
11084   return 0;
11085 }
11086 _ACEOF
11087 rm -f conftest.$ac_objext conftest$ac_exeext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11089   (eval $ac_link) 2>conftest.er1
11090   ac_status=$?
11091   grep -v '^ *+' conftest.er1 >conftest.err
11092   rm -f conftest.er1
11093   cat conftest.err >&5
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); } &&
11096          { ac_try='test -z "$ac_c_werror_flag"
11097                          || test ! -s conftest.err'
11098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099   (eval $ac_try) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); }; } &&
11103          { ac_try='test -s conftest$ac_exeext'
11104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105   (eval $ac_try) 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); }; }; then
11109   cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h.  */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h.  */
11115 #include <stdio.h>
11116 #            if PROTOTYPES
11117               int (setvbuf) (FILE *, int, char *, size_t);
11118 #            endif
11119 int
11120 main ()
11121 {
11122 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
11123   ;
11124   return 0;
11125 }
11126 _ACEOF
11127 rm -f conftest.$ac_objext conftest$ac_exeext
11128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11129   (eval $ac_link) 2>conftest.er1
11130   ac_status=$?
11131   grep -v '^ *+' conftest.er1 >conftest.err
11132   rm -f conftest.er1
11133   cat conftest.err >&5
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); } &&
11136          { ac_try='test -z "$ac_c_werror_flag"
11137                          || test ! -s conftest.err'
11138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139   (eval $ac_try) 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }; } &&
11143          { ac_try='test -s conftest$ac_exeext'
11144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145   (eval $ac_try) 2>&5
11146   ac_status=$?
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); }; }; then
11149   # It compiles and links either way, so it must not be declared
11150          # with a prototype and most likely this is a K&R C compiler.
11151          # Try running it.
11152          if test "$cross_compiling" = yes; then
11153   : # Assume setvbuf is not reversed when cross-compiling.
11154 else
11155   cat >conftest.$ac_ext <<_ACEOF
11156 /* confdefs.h.  */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h.  */
11161 #include <stdio.h>
11162 int
11163 main ()
11164 {
11165 /* This call has the arguments reversed.
11166                    A reversed system may check and see that the address of buf
11167                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
11168                 char buf;
11169                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
11170                   exit (1);
11171                 putchar ('\r');
11172                 exit (0); /* Non-reversed systems SEGV here.  */
11173   ;
11174   return 0;
11175 }
11176 _ACEOF
11177 rm -f conftest$ac_exeext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11179   (eval $ac_link) 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184   (eval $ac_try) 2>&5
11185   ac_status=$?
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); }; }; then
11188   ac_cv_func_setvbuf_reversed=yes
11189 else
11190   echo "$as_me: program exited with status $ac_status" >&5
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11193
11194 ( exit $ac_status )
11195 rm -f core *.core
11196 fi
11197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11198 fi
11199         ac_cv_func_setvbuf_reversed=yes
11200 else
11201   echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11203
11204 fi
11205 rm -f conftest.err conftest.$ac_objext \
11206       conftest$ac_exeext conftest.$ac_ext
11207 else
11208   echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11210
11211 fi
11212 rm -f conftest.err conftest.$ac_objext \
11213       conftest$ac_exeext conftest.$ac_ext
11214 fi
11215 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
11216 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
11217 if test $ac_cv_func_setvbuf_reversed = yes; then
11218
11219 cat >>confdefs.h <<\_ACEOF
11220 #define SETVBUF_REVERSED 1
11221 _ACEOF
11222
11223 fi
11224
11225
11226 for ac_func in vprintf
11227 do
11228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11229 echo "$as_me:$LINENO: checking for $ac_func" >&5
11230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11231 if eval "test \"\${$as_ac_var+set}\" = set"; then
11232   echo $ECHO_N "(cached) $ECHO_C" >&6
11233 else
11234   cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h.  */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h.  */
11240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11242 #define $ac_func innocuous_$ac_func
11243
11244 /* System header to define __stub macros and hopefully few prototypes,
11245     which can conflict with char $ac_func (); below.
11246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11247     <limits.h> exists even on freestanding compilers.  */
11248
11249 #ifdef __STDC__
11250 # include <limits.h>
11251 #else
11252 # include <assert.h>
11253 #endif
11254
11255 #undef $ac_func
11256
11257 /* Override any gcc2 internal prototype to avoid an error.  */
11258 #ifdef __cplusplus
11259 extern "C"
11260 {
11261 #endif
11262 /* We use char because int might match the return type of a gcc2
11263    builtin and then its argument prototype would still apply.  */
11264 char $ac_func ();
11265 /* The GNU C library defines this for functions which it implements
11266     to always fail with ENOSYS.  Some functions are actually named
11267     something starting with __ and the normal name is an alias.  */
11268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11269 choke me
11270 #else
11271 char (*f) () = $ac_func;
11272 #endif
11273 #ifdef __cplusplus
11274 }
11275 #endif
11276
11277 int
11278 main ()
11279 {
11280 return f != $ac_func;
11281   ;
11282   return 0;
11283 }
11284 _ACEOF
11285 rm -f conftest.$ac_objext conftest$ac_exeext
11286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287   (eval $ac_link) 2>conftest.er1
11288   ac_status=$?
11289   grep -v '^ *+' conftest.er1 >conftest.err
11290   rm -f conftest.er1
11291   cat conftest.err >&5
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); } &&
11294          { ac_try='test -z "$ac_c_werror_flag"
11295                          || test ! -s conftest.err'
11296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297   (eval $ac_try) 2>&5
11298   ac_status=$?
11299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300   (exit $ac_status); }; } &&
11301          { ac_try='test -s conftest$ac_exeext'
11302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303   (eval $ac_try) 2>&5
11304   ac_status=$?
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); }; }; then
11307   eval "$as_ac_var=yes"
11308 else
11309   echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11311
11312 eval "$as_ac_var=no"
11313 fi
11314 rm -f conftest.err conftest.$ac_objext \
11315       conftest$ac_exeext conftest.$ac_ext
11316 fi
11317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11319 if test `eval echo '${'$as_ac_var'}'` = yes; then
11320   cat >>confdefs.h <<_ACEOF
11321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11322 _ACEOF
11323
11324 echo "$as_me:$LINENO: checking for _doprnt" >&5
11325 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11326 if test "${ac_cv_func__doprnt+set}" = set; then
11327   echo $ECHO_N "(cached) $ECHO_C" >&6
11328 else
11329   cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h.  */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h.  */
11335 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11337 #define _doprnt innocuous__doprnt
11338
11339 /* System header to define __stub macros and hopefully few prototypes,
11340     which can conflict with char _doprnt (); below.
11341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11342     <limits.h> exists even on freestanding compilers.  */
11343
11344 #ifdef __STDC__
11345 # include <limits.h>
11346 #else
11347 # include <assert.h>
11348 #endif
11349
11350 #undef _doprnt
11351
11352 /* Override any gcc2 internal prototype to avoid an error.  */
11353 #ifdef __cplusplus
11354 extern "C"
11355 {
11356 #endif
11357 /* We use char because int might match the return type of a gcc2
11358    builtin and then its argument prototype would still apply.  */
11359 char _doprnt ();
11360 /* The GNU C library defines this for functions which it implements
11361     to always fail with ENOSYS.  Some functions are actually named
11362     something starting with __ and the normal name is an alias.  */
11363 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11364 choke me
11365 #else
11366 char (*f) () = _doprnt;
11367 #endif
11368 #ifdef __cplusplus
11369 }
11370 #endif
11371
11372 int
11373 main ()
11374 {
11375 return f != _doprnt;
11376   ;
11377   return 0;
11378 }
11379 _ACEOF
11380 rm -f conftest.$ac_objext conftest$ac_exeext
11381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11382   (eval $ac_link) 2>conftest.er1
11383   ac_status=$?
11384   grep -v '^ *+' conftest.er1 >conftest.err
11385   rm -f conftest.er1
11386   cat conftest.err >&5
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); } &&
11389          { ac_try='test -z "$ac_c_werror_flag"
11390                          || test ! -s conftest.err'
11391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392   (eval $ac_try) 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); }; } &&
11396          { ac_try='test -s conftest$ac_exeext'
11397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398   (eval $ac_try) 2>&5
11399   ac_status=$?
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); }; }; then
11402   ac_cv_func__doprnt=yes
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407 ac_cv_func__doprnt=no
11408 fi
11409 rm -f conftest.err conftest.$ac_objext \
11410       conftest$ac_exeext conftest.$ac_ext
11411 fi
11412 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11413 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11414 if test $ac_cv_func__doprnt = yes; then
11415
11416 cat >>confdefs.h <<\_ACEOF
11417 #define HAVE_DOPRNT 1
11418 _ACEOF
11419
11420 fi
11421
11422 fi
11423 done
11424
11425
11426 echo "$as_me:$LINENO: checking for working strcoll" >&5
11427 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
11428 if test "${ac_cv_func_strcoll_works+set}" = set; then
11429   echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431   if test "$cross_compiling" = yes; then
11432   ac_cv_func_strcoll_works=no
11433 else
11434   cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h.  */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h.  */
11440 $ac_includes_default
11441 int
11442 main ()
11443 {
11444 exit (strcoll ("abc", "def") >= 0 ||
11445          strcoll ("ABC", "DEF") >= 0 ||
11446          strcoll ("123", "456") >= 0)
11447   ;
11448   return 0;
11449 }
11450 _ACEOF
11451 rm -f conftest$ac_exeext
11452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11453   (eval $ac_link) 2>&5
11454   ac_status=$?
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458   (eval $ac_try) 2>&5
11459   ac_status=$?
11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461   (exit $ac_status); }; }; then
11462   ac_cv_func_strcoll_works=yes
11463 else
11464   echo "$as_me: program exited with status $ac_status" >&5
11465 echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11467
11468 ( exit $ac_status )
11469 ac_cv_func_strcoll_works=no
11470 fi
11471 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11472 fi
11473 fi
11474 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
11475 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
11476 if test $ac_cv_func_strcoll_works = yes; then
11477
11478 cat >>confdefs.h <<\_ACEOF
11479 #define HAVE_STRCOLL 1
11480 _ACEOF
11481
11482 fi
11483
11484
11485
11486 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
11487         MALLOC_TARGET=alloca
11488         MALLOC_SRC=alloca.c
11489
11490         MALLOC_LIB='-lmalloc'
11491         MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
11492         MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
11493         MALLOC_DEP='$(MALLOC_LIBRARY)'
11494 fi
11495
11496 if test "$ac_cv_func_vprintf" = no; then
11497     echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
11498 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
11499     cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h.  */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h.  */
11505 #include <stdio.h>
11506
11507 _ACEOF
11508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11509   $EGREP "[int[         ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
11510   ac_cv_func_vprintf=yes
11511 fi
11512 rm -f conftest*
11513
11514     echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
11515 echo "${ECHO_T}$ac_cv_func_vprintf" >&6
11516     if test $ac_cv_func_vprintf = yes; then
11517         cat >>confdefs.h <<\_ACEOF
11518 #define HAVE_VPRINTF 1
11519 _ACEOF
11520
11521     fi
11522 fi
11523
11524 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
11525   case $LIBOBJS in
11526     "vprint.$ac_objext"   | \
11527   *" vprint.$ac_objext"   | \
11528     "vprint.$ac_objext "* | \
11529   *" vprint.$ac_objext "* ) ;;
11530   *) LIBOBJS="$LIBOBJS vprint.$ac_objext" ;;
11531 esac
11532
11533 fi
11534
11535 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11536 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11537 if test "${ac_cv_type_signal+set}" = set; then
11538   echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540   cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h.  */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h.  */
11546 #include <sys/types.h>
11547 #include <signal.h>
11548 #ifdef signal
11549 # undef signal
11550 #endif
11551 #ifdef __cplusplus
11552 extern "C" void (*signal (int, void (*)(int)))(int);
11553 #else
11554 void (*signal ()) ();
11555 #endif
11556
11557 int
11558 main ()
11559 {
11560 int i;
11561   ;
11562   return 0;
11563 }
11564 _ACEOF
11565 rm -f conftest.$ac_objext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11567   (eval $ac_compile) 2>conftest.er1
11568   ac_status=$?
11569   grep -v '^ *+' conftest.er1 >conftest.err
11570   rm -f conftest.er1
11571   cat conftest.err >&5
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); } &&
11574          { ac_try='test -z "$ac_c_werror_flag"
11575                          || test ! -s conftest.err'
11576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577   (eval $ac_try) 2>&5
11578   ac_status=$?
11579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580   (exit $ac_status); }; } &&
11581          { ac_try='test -s conftest.$ac_objext'
11582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583   (eval $ac_try) 2>&5
11584   ac_status=$?
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); }; }; then
11587   ac_cv_type_signal=void
11588 else
11589   echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11591
11592 ac_cv_type_signal=int
11593 fi
11594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11595 fi
11596 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11597 echo "${ECHO_T}$ac_cv_type_signal" >&6
11598
11599 cat >>confdefs.h <<_ACEOF
11600 #define RETSIGTYPE $ac_cv_type_signal
11601 _ACEOF
11602
11603
11604
11605 echo "$as_me:$LINENO: checking for __setostype" >&5
11606 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
11607 if test "${ac_cv_func___setostype+set}" = set; then
11608   echo $ECHO_N "(cached) $ECHO_C" >&6
11609 else
11610   cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h.  */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h.  */
11616 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
11617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11618 #define __setostype innocuous___setostype
11619
11620 /* System header to define __stub macros and hopefully few prototypes,
11621     which can conflict with char __setostype (); below.
11622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11623     <limits.h> exists even on freestanding compilers.  */
11624
11625 #ifdef __STDC__
11626 # include <limits.h>
11627 #else
11628 # include <assert.h>
11629 #endif
11630
11631 #undef __setostype
11632
11633 /* Override any gcc2 internal prototype to avoid an error.  */
11634 #ifdef __cplusplus
11635 extern "C"
11636 {
11637 #endif
11638 /* We use char because int might match the return type of a gcc2
11639    builtin and then its argument prototype would still apply.  */
11640 char __setostype ();
11641 /* The GNU C library defines this for functions which it implements
11642     to always fail with ENOSYS.  Some functions are actually named
11643     something starting with __ and the normal name is an alias.  */
11644 #if defined (__stub___setostype) || defined (__stub_____setostype)
11645 choke me
11646 #else
11647 char (*f) () = __setostype;
11648 #endif
11649 #ifdef __cplusplus
11650 }
11651 #endif
11652
11653 int
11654 main ()
11655 {
11656 return f != __setostype;
11657   ;
11658   return 0;
11659 }
11660 _ACEOF
11661 rm -f conftest.$ac_objext conftest$ac_exeext
11662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11663   (eval $ac_link) 2>conftest.er1
11664   ac_status=$?
11665   grep -v '^ *+' conftest.er1 >conftest.err
11666   rm -f conftest.er1
11667   cat conftest.err >&5
11668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669   (exit $ac_status); } &&
11670          { ac_try='test -z "$ac_c_werror_flag"
11671                          || test ! -s conftest.err'
11672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673   (eval $ac_try) 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; } &&
11677          { ac_try='test -s conftest$ac_exeext'
11678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679   (eval $ac_try) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; }; then
11683   ac_cv_func___setostype=yes
11684 else
11685   echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11687
11688 ac_cv_func___setostype=no
11689 fi
11690 rm -f conftest.err conftest.$ac_objext \
11691       conftest$ac_exeext conftest.$ac_ext
11692 fi
11693 echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
11694 echo "${ECHO_T}$ac_cv_func___setostype" >&6
11695 if test $ac_cv_func___setostype = yes; then
11696   cat >>confdefs.h <<\_ACEOF
11697 #define HAVE_SETOSTYPE 1
11698 _ACEOF
11699
11700 fi
11701
11702 echo "$as_me:$LINENO: checking for wait3" >&5
11703 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
11704 if test "${ac_cv_func_wait3+set}" = set; then
11705   echo $ECHO_N "(cached) $ECHO_C" >&6
11706 else
11707   cat >conftest.$ac_ext <<_ACEOF
11708 /* confdefs.h.  */
11709 _ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h.  */
11713 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
11714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11715 #define wait3 innocuous_wait3
11716
11717 /* System header to define __stub macros and hopefully few prototypes,
11718     which can conflict with char wait3 (); below.
11719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11720     <limits.h> exists even on freestanding compilers.  */
11721
11722 #ifdef __STDC__
11723 # include <limits.h>
11724 #else
11725 # include <assert.h>
11726 #endif
11727
11728 #undef wait3
11729
11730 /* Override any gcc2 internal prototype to avoid an error.  */
11731 #ifdef __cplusplus
11732 extern "C"
11733 {
11734 #endif
11735 /* We use char because int might match the return type of a gcc2
11736    builtin and then its argument prototype would still apply.  */
11737 char wait3 ();
11738 /* The GNU C library defines this for functions which it implements
11739     to always fail with ENOSYS.  Some functions are actually named
11740     something starting with __ and the normal name is an alias.  */
11741 #if defined (__stub_wait3) || defined (__stub___wait3)
11742 choke me
11743 #else
11744 char (*f) () = wait3;
11745 #endif
11746 #ifdef __cplusplus
11747 }
11748 #endif
11749
11750 int
11751 main ()
11752 {
11753 return f != wait3;
11754   ;
11755   return 0;
11756 }
11757 _ACEOF
11758 rm -f conftest.$ac_objext conftest$ac_exeext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11760   (eval $ac_link) 2>conftest.er1
11761   ac_status=$?
11762   grep -v '^ *+' conftest.er1 >conftest.err
11763   rm -f conftest.er1
11764   cat conftest.err >&5
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); } &&
11767          { ac_try='test -z "$ac_c_werror_flag"
11768                          || test ! -s conftest.err'
11769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770   (eval $ac_try) 2>&5
11771   ac_status=$?
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); }; } &&
11774          { ac_try='test -s conftest$ac_exeext'
11775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776   (eval $ac_try) 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); }; }; then
11780   ac_cv_func_wait3=yes
11781 else
11782   echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11784
11785 ac_cv_func_wait3=no
11786 fi
11787 rm -f conftest.err conftest.$ac_objext \
11788       conftest$ac_exeext conftest.$ac_ext
11789 fi
11790 echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
11791 echo "${ECHO_T}$ac_cv_func_wait3" >&6
11792 if test $ac_cv_func_wait3 = yes; then
11793   cat >>confdefs.h <<\_ACEOF
11794 #define HAVE_WAIT3 1
11795 _ACEOF
11796
11797 fi
11798
11799 echo "$as_me:$LINENO: checking for isinf" >&5
11800 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11801 if test "${ac_cv_func_isinf+set}" = set; then
11802   echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804   cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
11811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11812 #define isinf innocuous_isinf
11813
11814 /* System header to define __stub macros and hopefully few prototypes,
11815     which can conflict with char isinf (); below.
11816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11817     <limits.h> exists even on freestanding compilers.  */
11818
11819 #ifdef __STDC__
11820 # include <limits.h>
11821 #else
11822 # include <assert.h>
11823 #endif
11824
11825 #undef isinf
11826
11827 /* Override any gcc2 internal prototype to avoid an error.  */
11828 #ifdef __cplusplus
11829 extern "C"
11830 {
11831 #endif
11832 /* We use char because int might match the return type of a gcc2
11833    builtin and then its argument prototype would still apply.  */
11834 char isinf ();
11835 /* The GNU C library defines this for functions which it implements
11836     to always fail with ENOSYS.  Some functions are actually named
11837     something starting with __ and the normal name is an alias.  */
11838 #if defined (__stub_isinf) || defined (__stub___isinf)
11839 choke me
11840 #else
11841 char (*f) () = isinf;
11842 #endif
11843 #ifdef __cplusplus
11844 }
11845 #endif
11846
11847 int
11848 main ()
11849 {
11850 return f != isinf;
11851   ;
11852   return 0;
11853 }
11854 _ACEOF
11855 rm -f conftest.$ac_objext conftest$ac_exeext
11856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11857   (eval $ac_link) 2>conftest.er1
11858   ac_status=$?
11859   grep -v '^ *+' conftest.er1 >conftest.err
11860   rm -f conftest.er1
11861   cat conftest.err >&5
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); } &&
11864          { ac_try='test -z "$ac_c_werror_flag"
11865                          || test ! -s conftest.err'
11866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867   (eval $ac_try) 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); }; } &&
11871          { ac_try='test -s conftest$ac_exeext'
11872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873   (eval $ac_try) 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); }; }; then
11877   ac_cv_func_isinf=yes
11878 else
11879   echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11881
11882 ac_cv_func_isinf=no
11883 fi
11884 rm -f conftest.err conftest.$ac_objext \
11885       conftest$ac_exeext conftest.$ac_ext
11886 fi
11887 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11888 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11889 if test $ac_cv_func_isinf = yes; then
11890   cat >>confdefs.h <<\_ACEOF
11891 #define HAVE_ISINF_IN_LIBC 1
11892 _ACEOF
11893
11894 fi
11895
11896
11897 echo "$as_me:$LINENO: checking for mkfifo" >&5
11898 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
11899 if test "${ac_cv_func_mkfifo+set}" = set; then
11900   echo $ECHO_N "(cached) $ECHO_C" >&6
11901 else
11902   cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h.  */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h.  */
11908 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
11909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11910 #define mkfifo innocuous_mkfifo
11911
11912 /* System header to define __stub macros and hopefully few prototypes,
11913     which can conflict with char mkfifo (); below.
11914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11915     <limits.h> exists even on freestanding compilers.  */
11916
11917 #ifdef __STDC__
11918 # include <limits.h>
11919 #else
11920 # include <assert.h>
11921 #endif
11922
11923 #undef mkfifo
11924
11925 /* Override any gcc2 internal prototype to avoid an error.  */
11926 #ifdef __cplusplus
11927 extern "C"
11928 {
11929 #endif
11930 /* We use char because int might match the return type of a gcc2
11931    builtin and then its argument prototype would still apply.  */
11932 char mkfifo ();
11933 /* The GNU C library defines this for functions which it implements
11934     to always fail with ENOSYS.  Some functions are actually named
11935     something starting with __ and the normal name is an alias.  */
11936 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
11937 choke me
11938 #else
11939 char (*f) () = mkfifo;
11940 #endif
11941 #ifdef __cplusplus
11942 }
11943 #endif
11944
11945 int
11946 main ()
11947 {
11948 return f != mkfifo;
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>conftest.er1
11956   ac_status=$?
11957   grep -v '^ *+' conftest.er1 >conftest.err
11958   rm -f conftest.er1
11959   cat conftest.err >&5
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } &&
11962          { ac_try='test -z "$ac_c_werror_flag"
11963                          || test ! -s conftest.err'
11964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965   (eval $ac_try) 2>&5
11966   ac_status=$?
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); }; } &&
11969          { ac_try='test -s conftest$ac_exeext'
11970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971   (eval $ac_try) 2>&5
11972   ac_status=$?
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); }; }; then
11975   ac_cv_func_mkfifo=yes
11976 else
11977   echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11979
11980 ac_cv_func_mkfifo=no
11981 fi
11982 rm -f conftest.err conftest.$ac_objext \
11983       conftest$ac_exeext conftest.$ac_ext
11984 fi
11985 echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
11986 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
11987 if test $ac_cv_func_mkfifo = yes; then
11988   cat >>confdefs.h <<\_ACEOF
11989 #define HAVE_MKFIFO 1
11990 _ACEOF
11991
11992 else
11993   cat >>confdefs.h <<\_ACEOF
11994 #define MKFIFO_MISSING 1
11995 _ACEOF
11996
11997 fi
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017 for ac_func in dup2 select getdtablesize getgroups gethostname \
12018                 setdtablesize getpagesize killpg lstat getpeername sbrk \
12019                 getrlimit getrusage gettimeofday waitpid tcgetpgrp \
12020                 readlink
12021 do
12022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12023 echo "$as_me:$LINENO: checking for $ac_func" >&5
12024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12025 if eval "test \"\${$as_ac_var+set}\" = set"; then
12026   echo $ECHO_N "(cached) $ECHO_C" >&6
12027 else
12028   cat >conftest.$ac_ext <<_ACEOF
12029 /* confdefs.h.  */
12030 _ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h.  */
12034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12036 #define $ac_func innocuous_$ac_func
12037
12038 /* System header to define __stub macros and hopefully few prototypes,
12039     which can conflict with char $ac_func (); below.
12040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12041     <limits.h> exists even on freestanding compilers.  */
12042
12043 #ifdef __STDC__
12044 # include <limits.h>
12045 #else
12046 # include <assert.h>
12047 #endif
12048
12049 #undef $ac_func
12050
12051 /* Override any gcc2 internal prototype to avoid an error.  */
12052 #ifdef __cplusplus
12053 extern "C"
12054 {
12055 #endif
12056 /* We use char because int might match the return type of a gcc2
12057    builtin and then its argument prototype would still apply.  */
12058 char $ac_func ();
12059 /* The GNU C library defines this for functions which it implements
12060     to always fail with ENOSYS.  Some functions are actually named
12061     something starting with __ and the normal name is an alias.  */
12062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12063 choke me
12064 #else
12065 char (*f) () = $ac_func;
12066 #endif
12067 #ifdef __cplusplus
12068 }
12069 #endif
12070
12071 int
12072 main ()
12073 {
12074 return f != $ac_func;
12075   ;
12076   return 0;
12077 }
12078 _ACEOF
12079 rm -f conftest.$ac_objext conftest$ac_exeext
12080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12081   (eval $ac_link) 2>conftest.er1
12082   ac_status=$?
12083   grep -v '^ *+' conftest.er1 >conftest.err
12084   rm -f conftest.er1
12085   cat conftest.err >&5
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); } &&
12088          { ac_try='test -z "$ac_c_werror_flag"
12089                          || test ! -s conftest.err'
12090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091   (eval $ac_try) 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   eval "$as_ac_var=yes"
12102 else
12103   echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12105
12106 eval "$as_ac_var=no"
12107 fi
12108 rm -f conftest.err conftest.$ac_objext \
12109       conftest$ac_exeext conftest.$ac_ext
12110 fi
12111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12113 if test `eval echo '${'$as_ac_var'}'` = yes; then
12114   cat >>confdefs.h <<_ACEOF
12115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12116 _ACEOF
12117
12118 fi
12119 done
12120
12121
12122 for ac_func in rename
12123 do
12124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12125 echo "$as_me:$LINENO: checking for $ac_func" >&5
12126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12127 if eval "test \"\${$as_ac_var+set}\" = set"; then
12128   echo $ECHO_N "(cached) $ECHO_C" >&6
12129 else
12130   cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h.  */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h.  */
12136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12138 #define $ac_func innocuous_$ac_func
12139
12140 /* System header to define __stub macros and hopefully few prototypes,
12141     which can conflict with char $ac_func (); below.
12142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12143     <limits.h> exists even on freestanding compilers.  */
12144
12145 #ifdef __STDC__
12146 # include <limits.h>
12147 #else
12148 # include <assert.h>
12149 #endif
12150
12151 #undef $ac_func
12152
12153 /* Override any gcc2 internal prototype to avoid an error.  */
12154 #ifdef __cplusplus
12155 extern "C"
12156 {
12157 #endif
12158 /* We use char because int might match the return type of a gcc2
12159    builtin and then its argument prototype would still apply.  */
12160 char $ac_func ();
12161 /* The GNU C library defines this for functions which it implements
12162     to always fail with ENOSYS.  Some functions are actually named
12163     something starting with __ and the normal name is an alias.  */
12164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12165 choke me
12166 #else
12167 char (*f) () = $ac_func;
12168 #endif
12169 #ifdef __cplusplus
12170 }
12171 #endif
12172
12173 int
12174 main ()
12175 {
12176 return f != $ac_func;
12177   ;
12178   return 0;
12179 }
12180 _ACEOF
12181 rm -f conftest.$ac_objext conftest$ac_exeext
12182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12183   (eval $ac_link) 2>conftest.er1
12184   ac_status=$?
12185   grep -v '^ *+' conftest.er1 >conftest.err
12186   rm -f conftest.er1
12187   cat conftest.err >&5
12188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189   (exit $ac_status); } &&
12190          { ac_try='test -z "$ac_c_werror_flag"
12191                          || test ! -s conftest.err'
12192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193   (eval $ac_try) 2>&5
12194   ac_status=$?
12195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196   (exit $ac_status); }; } &&
12197          { ac_try='test -s conftest$ac_exeext'
12198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199   (eval $ac_try) 2>&5
12200   ac_status=$?
12201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202   (exit $ac_status); }; }; then
12203   eval "$as_ac_var=yes"
12204 else
12205   echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12207
12208 eval "$as_ac_var=no"
12209 fi
12210 rm -f conftest.err conftest.$ac_objext \
12211       conftest$ac_exeext conftest.$ac_ext
12212 fi
12213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12215 if test `eval echo '${'$as_ac_var'}'` = yes; then
12216   cat >>confdefs.h <<_ACEOF
12217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12218 _ACEOF
12219
12220 else
12221   case $LIBOBJS in
12222     "$ac_func.$ac_objext"   | \
12223   *" $ac_func.$ac_objext"   | \
12224     "$ac_func.$ac_objext "* | \
12225   *" $ac_func.$ac_objext "* ) ;;
12226   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12227 esac
12228
12229 fi
12230 done
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267 for ac_func in bcopy bzero confstr sysconf pathconf setenv putenv unsetenv \
12268                 setlinebuf setvbuf setlocale strchr tcgetattr uname \
12269                 ulimit tzset siginterrupt memmove ttyname times raise \
12270                 getaddrinfo gethostbyname getservbyname getservent inet_aton \
12271                 vsnprintf snprintf vasprintf asprintf fnmatch regcomp regexec
12272 do
12273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12274 echo "$as_me:$LINENO: checking for $ac_func" >&5
12275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12276 if eval "test \"\${$as_ac_var+set}\" = set"; then
12277   echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279   cat >conftest.$ac_ext <<_ACEOF
12280 /* confdefs.h.  */
12281 _ACEOF
12282 cat confdefs.h >>conftest.$ac_ext
12283 cat >>conftest.$ac_ext <<_ACEOF
12284 /* end confdefs.h.  */
12285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12287 #define $ac_func innocuous_$ac_func
12288
12289 /* System header to define __stub macros and hopefully few prototypes,
12290     which can conflict with char $ac_func (); below.
12291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12292     <limits.h> exists even on freestanding compilers.  */
12293
12294 #ifdef __STDC__
12295 # include <limits.h>
12296 #else
12297 # include <assert.h>
12298 #endif
12299
12300 #undef $ac_func
12301
12302 /* Override any gcc2 internal prototype to avoid an error.  */
12303 #ifdef __cplusplus
12304 extern "C"
12305 {
12306 #endif
12307 /* We use char because int might match the return type of a gcc2
12308    builtin and then its argument prototype would still apply.  */
12309 char $ac_func ();
12310 /* The GNU C library defines this for functions which it implements
12311     to always fail with ENOSYS.  Some functions are actually named
12312     something starting with __ and the normal name is an alias.  */
12313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12314 choke me
12315 #else
12316 char (*f) () = $ac_func;
12317 #endif
12318 #ifdef __cplusplus
12319 }
12320 #endif
12321
12322 int
12323 main ()
12324 {
12325 return f != $ac_func;
12326   ;
12327   return 0;
12328 }
12329 _ACEOF
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332   (eval $ac_link) 2>conftest.er1
12333   ac_status=$?
12334   grep -v '^ *+' conftest.er1 >conftest.err
12335   rm -f conftest.er1
12336   cat conftest.err >&5
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); } &&
12339          { ac_try='test -z "$ac_c_werror_flag"
12340                          || test ! -s conftest.err'
12341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342   (eval $ac_try) 2>&5
12343   ac_status=$?
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); }; } &&
12346          { ac_try='test -s conftest$ac_exeext'
12347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348   (eval $ac_try) 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; }; then
12352   eval "$as_ac_var=yes"
12353 else
12354   echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357 eval "$as_ac_var=no"
12358 fi
12359 rm -f conftest.err conftest.$ac_objext \
12360       conftest$ac_exeext conftest.$ac_ext
12361 fi
12362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12364 if test `eval echo '${'$as_ac_var'}'` = yes; then
12365   cat >>confdefs.h <<_ACEOF
12366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12367 _ACEOF
12368
12369 fi
12370 done
12371
12372
12373
12374
12375
12376
12377
12378 for ac_func in isascii isblank isgraph isprint isspace isxdigit
12379 do
12380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12381 echo "$as_me:$LINENO: checking for $ac_func" >&5
12382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12383 if eval "test \"\${$as_ac_var+set}\" = set"; then
12384   echo $ECHO_N "(cached) $ECHO_C" >&6
12385 else
12386   cat >conftest.$ac_ext <<_ACEOF
12387 /* confdefs.h.  */
12388 _ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h.  */
12392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12394 #define $ac_func innocuous_$ac_func
12395
12396 /* System header to define __stub macros and hopefully few prototypes,
12397     which can conflict with char $ac_func (); below.
12398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12399     <limits.h> exists even on freestanding compilers.  */
12400
12401 #ifdef __STDC__
12402 # include <limits.h>
12403 #else
12404 # include <assert.h>
12405 #endif
12406
12407 #undef $ac_func
12408
12409 /* Override any gcc2 internal prototype to avoid an error.  */
12410 #ifdef __cplusplus
12411 extern "C"
12412 {
12413 #endif
12414 /* We use char because int might match the return type of a gcc2
12415    builtin and then its argument prototype would still apply.  */
12416 char $ac_func ();
12417 /* The GNU C library defines this for functions which it implements
12418     to always fail with ENOSYS.  Some functions are actually named
12419     something starting with __ and the normal name is an alias.  */
12420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12421 choke me
12422 #else
12423 char (*f) () = $ac_func;
12424 #endif
12425 #ifdef __cplusplus
12426 }
12427 #endif
12428
12429 int
12430 main ()
12431 {
12432 return f != $ac_func;
12433   ;
12434   return 0;
12435 }
12436 _ACEOF
12437 rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12439   (eval $ac_link) 2>conftest.er1
12440   ac_status=$?
12441   grep -v '^ *+' conftest.er1 >conftest.err
12442   rm -f conftest.er1
12443   cat conftest.err >&5
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); } &&
12446          { ac_try='test -z "$ac_c_werror_flag"
12447                          || test ! -s conftest.err'
12448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449   (eval $ac_try) 2>&5
12450   ac_status=$?
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); }; } &&
12453          { ac_try='test -s conftest$ac_exeext'
12454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455   (eval $ac_try) 2>&5
12456   ac_status=$?
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); }; }; then
12459   eval "$as_ac_var=yes"
12460 else
12461   echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12463
12464 eval "$as_ac_var=no"
12465 fi
12466 rm -f conftest.err conftest.$ac_objext \
12467       conftest$ac_exeext conftest.$ac_ext
12468 fi
12469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12471 if test `eval echo '${'$as_ac_var'}'` = yes; then
12472   cat >>confdefs.h <<_ACEOF
12473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12474 _ACEOF
12475
12476 fi
12477 done
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487 for ac_func in getcwd strcasecmp strerror strftime strpbrk memset strstr strnlen
12488 do
12489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12490 echo "$as_me:$LINENO: checking for $ac_func" >&5
12491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12492 if eval "test \"\${$as_ac_var+set}\" = set"; then
12493   echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495   cat >conftest.$ac_ext <<_ACEOF
12496 /* confdefs.h.  */
12497 _ACEOF
12498 cat confdefs.h >>conftest.$ac_ext
12499 cat >>conftest.$ac_ext <<_ACEOF
12500 /* end confdefs.h.  */
12501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12503 #define $ac_func innocuous_$ac_func
12504
12505 /* System header to define __stub macros and hopefully few prototypes,
12506     which can conflict with char $ac_func (); below.
12507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12508     <limits.h> exists even on freestanding compilers.  */
12509
12510 #ifdef __STDC__
12511 # include <limits.h>
12512 #else
12513 # include <assert.h>
12514 #endif
12515
12516 #undef $ac_func
12517
12518 /* Override any gcc2 internal prototype to avoid an error.  */
12519 #ifdef __cplusplus
12520 extern "C"
12521 {
12522 #endif
12523 /* We use char because int might match the return type of a gcc2
12524    builtin and then its argument prototype would still apply.  */
12525 char $ac_func ();
12526 /* The GNU C library defines this for functions which it implements
12527     to always fail with ENOSYS.  Some functions are actually named
12528     something starting with __ and the normal name is an alias.  */
12529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12530 choke me
12531 #else
12532 char (*f) () = $ac_func;
12533 #endif
12534 #ifdef __cplusplus
12535 }
12536 #endif
12537
12538 int
12539 main ()
12540 {
12541 return f != $ac_func;
12542   ;
12543   return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12548   (eval $ac_link) 2>conftest.er1
12549   ac_status=$?
12550   grep -v '^ *+' conftest.er1 >conftest.err
12551   rm -f conftest.er1
12552   cat conftest.err >&5
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); } &&
12555          { ac_try='test -z "$ac_c_werror_flag"
12556                          || test ! -s conftest.err'
12557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558   (eval $ac_try) 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; } &&
12562          { ac_try='test -s conftest$ac_exeext'
12563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564   (eval $ac_try) 2>&5
12565   ac_status=$?
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); }; }; then
12568   eval "$as_ac_var=yes"
12569 else
12570   echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12572
12573 eval "$as_ac_var=no"
12574 fi
12575 rm -f conftest.err conftest.$ac_objext \
12576       conftest$ac_exeext conftest.$ac_ext
12577 fi
12578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12580 if test `eval echo '${'$as_ac_var'}'` = yes; then
12581   cat >>confdefs.h <<_ACEOF
12582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12583 _ACEOF
12584
12585 else
12586   case $LIBOBJS in
12587     "$ac_func.$ac_objext"   | \
12588   *" $ac_func.$ac_objext"   | \
12589     "$ac_func.$ac_objext "* | \
12590   *" $ac_func.$ac_objext "* ) ;;
12591   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12592 esac
12593
12594 fi
12595 done
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
12606 do
12607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12608 echo "$as_me:$LINENO: checking for $ac_func" >&5
12609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12610 if eval "test \"\${$as_ac_var+set}\" = set"; then
12611   echo $ECHO_N "(cached) $ECHO_C" >&6
12612 else
12613   cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h.  */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h.  */
12619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12621 #define $ac_func innocuous_$ac_func
12622
12623 /* System header to define __stub macros and hopefully few prototypes,
12624     which can conflict with char $ac_func (); below.
12625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12626     <limits.h> exists even on freestanding compilers.  */
12627
12628 #ifdef __STDC__
12629 # include <limits.h>
12630 #else
12631 # include <assert.h>
12632 #endif
12633
12634 #undef $ac_func
12635
12636 /* Override any gcc2 internal prototype to avoid an error.  */
12637 #ifdef __cplusplus
12638 extern "C"
12639 {
12640 #endif
12641 /* We use char because int might match the return type of a gcc2
12642    builtin and then its argument prototype would still apply.  */
12643 char $ac_func ();
12644 /* The GNU C library defines this for functions which it implements
12645     to always fail with ENOSYS.  Some functions are actually named
12646     something starting with __ and the normal name is an alias.  */
12647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12648 choke me
12649 #else
12650 char (*f) () = $ac_func;
12651 #endif
12652 #ifdef __cplusplus
12653 }
12654 #endif
12655
12656 int
12657 main ()
12658 {
12659 return f != $ac_func;
12660   ;
12661   return 0;
12662 }
12663 _ACEOF
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666   (eval $ac_link) 2>conftest.er1
12667   ac_status=$?
12668   grep -v '^ *+' conftest.er1 >conftest.err
12669   rm -f conftest.er1
12670   cat conftest.err >&5
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); } &&
12673          { ac_try='test -z "$ac_c_werror_flag"
12674                          || test ! -s conftest.err'
12675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676   (eval $ac_try) 2>&5
12677   ac_status=$?
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); }; } &&
12680          { ac_try='test -s conftest$ac_exeext'
12681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682   (eval $ac_try) 2>&5
12683   ac_status=$?
12684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685   (exit $ac_status); }; }; then
12686   eval "$as_ac_var=yes"
12687 else
12688   echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12690
12691 eval "$as_ac_var=no"
12692 fi
12693 rm -f conftest.err conftest.$ac_objext \
12694       conftest$ac_exeext conftest.$ac_ext
12695 fi
12696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12698 if test `eval echo '${'$as_ac_var'}'` = yes; then
12699   cat >>confdefs.h <<_ACEOF
12700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12701 _ACEOF
12702
12703 else
12704   case $LIBOBJS in
12705     "$ac_func.$ac_objext"   | \
12706   *" $ac_func.$ac_objext"   | \
12707     "$ac_func.$ac_objext "* | \
12708   *" $ac_func.$ac_objext "* ) ;;
12709   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12710 esac
12711
12712 fi
12713 done
12714
12715
12716
12717 echo "$as_me:$LINENO: checking whether confstr is declared" >&5
12718 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
12719 if test "${ac_cv_have_decl_confstr+set}" = set; then
12720   echo $ECHO_N "(cached) $ECHO_C" >&6
12721 else
12722   cat >conftest.$ac_ext <<_ACEOF
12723 /* confdefs.h.  */
12724 _ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h.  */
12728 $ac_includes_default
12729 int
12730 main ()
12731 {
12732 #ifndef confstr
12733   char *p = (char *) confstr;
12734 #endif
12735
12736   ;
12737   return 0;
12738 }
12739 _ACEOF
12740 rm -f conftest.$ac_objext
12741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12742   (eval $ac_compile) 2>conftest.er1
12743   ac_status=$?
12744   grep -v '^ *+' conftest.er1 >conftest.err
12745   rm -f conftest.er1
12746   cat conftest.err >&5
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); } &&
12749          { ac_try='test -z "$ac_c_werror_flag"
12750                          || test ! -s conftest.err'
12751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752   (eval $ac_try) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); }; } &&
12756          { ac_try='test -s conftest.$ac_objext'
12757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758   (eval $ac_try) 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; }; then
12762   ac_cv_have_decl_confstr=yes
12763 else
12764   echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12766
12767 ac_cv_have_decl_confstr=no
12768 fi
12769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12770 fi
12771 echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
12772 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
12773 if test $ac_cv_have_decl_confstr = yes; then
12774
12775 cat >>confdefs.h <<_ACEOF
12776 #define HAVE_DECL_CONFSTR 1
12777 _ACEOF
12778
12779
12780 else
12781   cat >>confdefs.h <<_ACEOF
12782 #define HAVE_DECL_CONFSTR 0
12783 _ACEOF
12784
12785
12786 fi
12787
12788
12789 echo "$as_me:$LINENO: checking whether printf is declared" >&5
12790 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
12791 if test "${ac_cv_have_decl_printf+set}" = set; then
12792   echo $ECHO_N "(cached) $ECHO_C" >&6
12793 else
12794   cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h.  */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h.  */
12800 $ac_includes_default
12801 int
12802 main ()
12803 {
12804 #ifndef printf
12805   char *p = (char *) printf;
12806 #endif
12807
12808   ;
12809   return 0;
12810 }
12811 _ACEOF
12812 rm -f conftest.$ac_objext
12813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12814   (eval $ac_compile) 2>conftest.er1
12815   ac_status=$?
12816   grep -v '^ *+' conftest.er1 >conftest.err
12817   rm -f conftest.er1
12818   cat conftest.err >&5
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); } &&
12821          { ac_try='test -z "$ac_c_werror_flag"
12822                          || test ! -s conftest.err'
12823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824   (eval $ac_try) 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); }; } &&
12828          { ac_try='test -s conftest.$ac_objext'
12829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830   (eval $ac_try) 2>&5
12831   ac_status=$?
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); }; }; then
12834   ac_cv_have_decl_printf=yes
12835 else
12836   echo "$as_me: failed program was:" >&5
12837 sed 's/^/| /' conftest.$ac_ext >&5
12838
12839 ac_cv_have_decl_printf=no
12840 fi
12841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12842 fi
12843 echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
12844 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
12845 if test $ac_cv_have_decl_printf = yes; then
12846
12847 cat >>confdefs.h <<_ACEOF
12848 #define HAVE_DECL_PRINTF 1
12849 _ACEOF
12850
12851
12852 else
12853   cat >>confdefs.h <<_ACEOF
12854 #define HAVE_DECL_PRINTF 0
12855 _ACEOF
12856
12857
12858 fi
12859
12860
12861 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12862 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12863 if test "${ac_cv_have_decl_sbrk+set}" = set; then
12864   echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866   cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h.  */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h.  */
12872 $ac_includes_default
12873 int
12874 main ()
12875 {
12876 #ifndef sbrk
12877   char *p = (char *) sbrk;
12878 #endif
12879
12880   ;
12881   return 0;
12882 }
12883 _ACEOF
12884 rm -f conftest.$ac_objext
12885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12886   (eval $ac_compile) 2>conftest.er1
12887   ac_status=$?
12888   grep -v '^ *+' conftest.er1 >conftest.err
12889   rm -f conftest.er1
12890   cat conftest.err >&5
12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); } &&
12893          { ac_try='test -z "$ac_c_werror_flag"
12894                          || test ! -s conftest.err'
12895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896   (eval $ac_try) 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); }; } &&
12900          { ac_try='test -s conftest.$ac_objext'
12901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902   (eval $ac_try) 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; }; then
12906   ac_cv_have_decl_sbrk=yes
12907 else
12908   echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12910
12911 ac_cv_have_decl_sbrk=no
12912 fi
12913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12914 fi
12915 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12916 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12917 if test $ac_cv_have_decl_sbrk = yes; then
12918
12919 cat >>confdefs.h <<_ACEOF
12920 #define HAVE_DECL_SBRK 1
12921 _ACEOF
12922
12923
12924 else
12925   cat >>confdefs.h <<_ACEOF
12926 #define HAVE_DECL_SBRK 0
12927 _ACEOF
12928
12929
12930 fi
12931
12932
12933 echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
12934 echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6
12935 if test "${ac_cv_have_decl_strcpy+set}" = set; then
12936   echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938   cat >conftest.$ac_ext <<_ACEOF
12939 /* confdefs.h.  */
12940 _ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h.  */
12944 $ac_includes_default
12945 int
12946 main ()
12947 {
12948 #ifndef strcpy
12949   char *p = (char *) strcpy;
12950 #endif
12951
12952   ;
12953   return 0;
12954 }
12955 _ACEOF
12956 rm -f conftest.$ac_objext
12957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12958   (eval $ac_compile) 2>conftest.er1
12959   ac_status=$?
12960   grep -v '^ *+' conftest.er1 >conftest.err
12961   rm -f conftest.er1
12962   cat conftest.err >&5
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); } &&
12965          { ac_try='test -z "$ac_c_werror_flag"
12966                          || test ! -s conftest.err'
12967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968   (eval $ac_try) 2>&5
12969   ac_status=$?
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); }; } &&
12972          { ac_try='test -s conftest.$ac_objext'
12973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974   (eval $ac_try) 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); }; }; then
12978   ac_cv_have_decl_strcpy=yes
12979 else
12980   echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12982
12983 ac_cv_have_decl_strcpy=no
12984 fi
12985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12986 fi
12987 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
12988 echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6
12989 if test $ac_cv_have_decl_strcpy = yes; then
12990
12991 cat >>confdefs.h <<_ACEOF
12992 #define HAVE_DECL_STRCPY 1
12993 _ACEOF
12994
12995
12996 else
12997   cat >>confdefs.h <<_ACEOF
12998 #define HAVE_DECL_STRCPY 0
12999 _ACEOF
13000
13001
13002 fi
13003
13004
13005 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
13006 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
13007 if test "${ac_cv_have_decl_strsignal+set}" = set; then
13008   echo $ECHO_N "(cached) $ECHO_C" >&6
13009 else
13010   cat >conftest.$ac_ext <<_ACEOF
13011 /* confdefs.h.  */
13012 _ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h.  */
13016 $ac_includes_default
13017 int
13018 main ()
13019 {
13020 #ifndef strsignal
13021   char *p = (char *) strsignal;
13022 #endif
13023
13024   ;
13025   return 0;
13026 }
13027 _ACEOF
13028 rm -f conftest.$ac_objext
13029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13030   (eval $ac_compile) 2>conftest.er1
13031   ac_status=$?
13032   grep -v '^ *+' conftest.er1 >conftest.err
13033   rm -f conftest.er1
13034   cat conftest.err >&5
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); } &&
13037          { ac_try='test -z "$ac_c_werror_flag"
13038                          || test ! -s conftest.err'
13039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040   (eval $ac_try) 2>&5
13041   ac_status=$?
13042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043   (exit $ac_status); }; } &&
13044          { ac_try='test -s conftest.$ac_objext'
13045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046   (eval $ac_try) 2>&5
13047   ac_status=$?
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); }; }; then
13050   ac_cv_have_decl_strsignal=yes
13051 else
13052   echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13054
13055 ac_cv_have_decl_strsignal=no
13056 fi
13057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13058 fi
13059 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
13060 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
13061 if test $ac_cv_have_decl_strsignal = yes; then
13062
13063 cat >>confdefs.h <<_ACEOF
13064 #define HAVE_DECL_STRSIGNAL 1
13065 _ACEOF
13066
13067
13068 else
13069   cat >>confdefs.h <<_ACEOF
13070 #define HAVE_DECL_STRSIGNAL 0
13071 _ACEOF
13072
13073
13074 fi
13075
13076
13077
13078 echo "$as_me:$LINENO: checking whether strtold is declared" >&5
13079 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
13080 if test "${ac_cv_have_decl_strtold+set}" = set; then
13081   echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083   cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h.  */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h.  */
13089 $ac_includes_default
13090 int
13091 main ()
13092 {
13093 #ifndef strtold
13094   char *p = (char *) strtold;
13095 #endif
13096
13097   ;
13098   return 0;
13099 }
13100 _ACEOF
13101 rm -f conftest.$ac_objext
13102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13103   (eval $ac_compile) 2>conftest.er1
13104   ac_status=$?
13105   grep -v '^ *+' conftest.er1 >conftest.err
13106   rm -f conftest.er1
13107   cat conftest.err >&5
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); } &&
13110          { ac_try='test -z "$ac_c_werror_flag"
13111                          || test ! -s conftest.err'
13112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113   (eval $ac_try) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); }; } &&
13117          { ac_try='test -s conftest.$ac_objext'
13118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119   (eval $ac_try) 2>&5
13120   ac_status=$?
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); }; }; then
13123   ac_cv_have_decl_strtold=yes
13124 else
13125   echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13127
13128 ac_cv_have_decl_strtold=no
13129 fi
13130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13131 fi
13132 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
13133 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
13134 if test $ac_cv_have_decl_strtold = yes; then
13135
13136 cat >>confdefs.h <<_ACEOF
13137 #define HAVE_DECL_STRTOLD 1
13138 _ACEOF
13139
13140
13141     echo "$as_me:$LINENO: checking for broken strtold" >&5
13142 echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6
13143     if test "${bash_cv_strtold_broken+set}" = set; then
13144   echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146   cat >conftest.$ac_ext <<_ACEOF
13147 /* confdefs.h.  */
13148 _ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h.  */
13152 #include <stdlib.h>
13153 int
13154 main ()
13155 {
13156 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
13157   ;
13158   return 0;
13159 }
13160 _ACEOF
13161 rm -f conftest.$ac_objext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13163   (eval $ac_compile) 2>conftest.er1
13164   ac_status=$?
13165   grep -v '^ *+' conftest.er1 >conftest.err
13166   rm -f conftest.er1
13167   cat conftest.err >&5
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); } &&
13170          { ac_try='test -z "$ac_c_werror_flag"
13171                          || test ! -s conftest.err'
13172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173   (eval $ac_try) 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); }; } &&
13177          { ac_try='test -s conftest.$ac_objext'
13178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179   (eval $ac_try) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); }; }; then
13183   bash_cv_strtold_broken=no
13184 else
13185   echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13187
13188 bash_cv_strtold_broken=yes
13189 fi
13190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13191
13192
13193 fi
13194
13195     echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
13196 echo "${ECHO_T}$bash_cv_strtold_broken" >&6
13197     if test "$bash_cv_strtold_broken" = "yes" ; then
13198         cat >>confdefs.h <<\_ACEOF
13199 #define STRTOLD_BROKEN 1
13200 _ACEOF
13201
13202     fi
13203
13204 else
13205   cat >>confdefs.h <<_ACEOF
13206 #define HAVE_DECL_STRTOLD 0
13207 _ACEOF
13208
13209
13210 fi
13211
13212
13213
13214
13215
13216
13217
13218 echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
13219 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
13220 if test "${bash_cv_decl_strtoimax+set}" = set; then
13221   echo $ECHO_N "(cached) $ECHO_C" >&6
13222 else
13223   cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h.  */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h.  */
13229
13230 #if STDC_HEADERS
13231 #  include <stdlib.h>
13232 #endif
13233 #if HAVE_INTTYPES_H
13234 #  include <inttypes.h>
13235 #endif
13236
13237 int
13238 main ()
13239 {
13240 return !strtoimax;
13241   ;
13242   return 0;
13243 }
13244 _ACEOF
13245 rm -f conftest.$ac_objext conftest$ac_exeext
13246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13247   (eval $ac_link) 2>conftest.er1
13248   ac_status=$?
13249   grep -v '^ *+' conftest.er1 >conftest.err
13250   rm -f conftest.er1
13251   cat conftest.err >&5
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); } &&
13254          { ac_try='test -z "$ac_c_werror_flag"
13255                          || test ! -s conftest.err'
13256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257   (eval $ac_try) 2>&5
13258   ac_status=$?
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); }; } &&
13261          { ac_try='test -s conftest$ac_exeext'
13262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263   (eval $ac_try) 2>&5
13264   ac_status=$?
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); }; }; then
13267   bash_cv_decl_strtoimax=yes
13268 else
13269   echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272 bash_cv_decl_strtoimax=no
13273 fi
13274 rm -f conftest.err conftest.$ac_objext \
13275       conftest$ac_exeext conftest.$ac_ext
13276 fi
13277 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
13278 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
13279 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13280 if test $bash_cv_decl_strtoimax = yes; then
13281   cat >>confdefs.h <<_ACEOF
13282 #define $bash_tr_func 1
13283 _ACEOF
13284
13285 else
13286   cat >>confdefs.h <<_ACEOF
13287 #define $bash_tr_func 0
13288 _ACEOF
13289
13290 fi
13291
13292
13293
13294
13295 echo "$as_me:$LINENO: checking for declaration of strtol" >&5
13296 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
13297 if test "${bash_cv_decl_strtol+set}" = set; then
13298   echo $ECHO_N "(cached) $ECHO_C" >&6
13299 else
13300   cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h.  */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h.  */
13306
13307 #if STDC_HEADERS
13308 #  include <stdlib.h>
13309 #endif
13310 #if HAVE_INTTYPES_H
13311 #  include <inttypes.h>
13312 #endif
13313
13314 int
13315 main ()
13316 {
13317 return !strtol;
13318   ;
13319   return 0;
13320 }
13321 _ACEOF
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324   (eval $ac_link) 2>conftest.er1
13325   ac_status=$?
13326   grep -v '^ *+' conftest.er1 >conftest.err
13327   rm -f conftest.er1
13328   cat conftest.err >&5
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); } &&
13331          { ac_try='test -z "$ac_c_werror_flag"
13332                          || test ! -s conftest.err'
13333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334   (eval $ac_try) 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); }; } &&
13338          { ac_try='test -s conftest$ac_exeext'
13339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340   (eval $ac_try) 2>&5
13341   ac_status=$?
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); }; }; then
13344   bash_cv_decl_strtol=yes
13345 else
13346   echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13348
13349 bash_cv_decl_strtol=no
13350 fi
13351 rm -f conftest.err conftest.$ac_objext \
13352       conftest$ac_exeext conftest.$ac_ext
13353 fi
13354 echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
13355 echo "${ECHO_T}$bash_cv_decl_strtol" >&6
13356 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13357 if test $bash_cv_decl_strtol = yes; then
13358   cat >>confdefs.h <<_ACEOF
13359 #define $bash_tr_func 1
13360 _ACEOF
13361
13362 else
13363   cat >>confdefs.h <<_ACEOF
13364 #define $bash_tr_func 0
13365 _ACEOF
13366
13367 fi
13368
13369
13370
13371
13372 echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
13373 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
13374 if test "${bash_cv_decl_strtoll+set}" = set; then
13375   echo $ECHO_N "(cached) $ECHO_C" >&6
13376 else
13377   cat >conftest.$ac_ext <<_ACEOF
13378 /* confdefs.h.  */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h.  */
13383
13384 #if STDC_HEADERS
13385 #  include <stdlib.h>
13386 #endif
13387 #if HAVE_INTTYPES_H
13388 #  include <inttypes.h>
13389 #endif
13390
13391 int
13392 main ()
13393 {
13394 return !strtoll;
13395   ;
13396   return 0;
13397 }
13398 _ACEOF
13399 rm -f conftest.$ac_objext conftest$ac_exeext
13400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13401   (eval $ac_link) 2>conftest.er1
13402   ac_status=$?
13403   grep -v '^ *+' conftest.er1 >conftest.err
13404   rm -f conftest.er1
13405   cat conftest.err >&5
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); } &&
13408          { ac_try='test -z "$ac_c_werror_flag"
13409                          || test ! -s conftest.err'
13410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411   (eval $ac_try) 2>&5
13412   ac_status=$?
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); }; } &&
13415          { ac_try='test -s conftest$ac_exeext'
13416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417   (eval $ac_try) 2>&5
13418   ac_status=$?
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); }; }; then
13421   bash_cv_decl_strtoll=yes
13422 else
13423   echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13425
13426 bash_cv_decl_strtoll=no
13427 fi
13428 rm -f conftest.err conftest.$ac_objext \
13429       conftest$ac_exeext conftest.$ac_ext
13430 fi
13431 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
13432 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
13433 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13434 if test $bash_cv_decl_strtoll = yes; then
13435   cat >>confdefs.h <<_ACEOF
13436 #define $bash_tr_func 1
13437 _ACEOF
13438
13439 else
13440   cat >>confdefs.h <<_ACEOF
13441 #define $bash_tr_func 0
13442 _ACEOF
13443
13444 fi
13445
13446
13447
13448
13449 echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
13450 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
13451 if test "${bash_cv_decl_strtoul+set}" = set; then
13452   echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454   cat >conftest.$ac_ext <<_ACEOF
13455 /* confdefs.h.  */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h.  */
13460
13461 #if STDC_HEADERS
13462 #  include <stdlib.h>
13463 #endif
13464 #if HAVE_INTTYPES_H
13465 #  include <inttypes.h>
13466 #endif
13467
13468 int
13469 main ()
13470 {
13471 return !strtoul;
13472   ;
13473   return 0;
13474 }
13475 _ACEOF
13476 rm -f conftest.$ac_objext conftest$ac_exeext
13477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13478   (eval $ac_link) 2>conftest.er1
13479   ac_status=$?
13480   grep -v '^ *+' conftest.er1 >conftest.err
13481   rm -f conftest.er1
13482   cat conftest.err >&5
13483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484   (exit $ac_status); } &&
13485          { ac_try='test -z "$ac_c_werror_flag"
13486                          || test ! -s conftest.err'
13487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488   (eval $ac_try) 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); }; } &&
13492          { ac_try='test -s conftest$ac_exeext'
13493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494   (eval $ac_try) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; }; then
13498   bash_cv_decl_strtoul=yes
13499 else
13500   echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13502
13503 bash_cv_decl_strtoul=no
13504 fi
13505 rm -f conftest.err conftest.$ac_objext \
13506       conftest$ac_exeext conftest.$ac_ext
13507 fi
13508 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
13509 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
13510 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13511 if test $bash_cv_decl_strtoul = yes; then
13512   cat >>confdefs.h <<_ACEOF
13513 #define $bash_tr_func 1
13514 _ACEOF
13515
13516 else
13517   cat >>confdefs.h <<_ACEOF
13518 #define $bash_tr_func 0
13519 _ACEOF
13520
13521 fi
13522
13523
13524
13525
13526 echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
13527 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
13528 if test "${bash_cv_decl_strtoull+set}" = set; then
13529   echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531   cat >conftest.$ac_ext <<_ACEOF
13532 /* confdefs.h.  */
13533 _ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h.  */
13537
13538 #if STDC_HEADERS
13539 #  include <stdlib.h>
13540 #endif
13541 #if HAVE_INTTYPES_H
13542 #  include <inttypes.h>
13543 #endif
13544
13545 int
13546 main ()
13547 {
13548 return !strtoull;
13549   ;
13550   return 0;
13551 }
13552 _ACEOF
13553 rm -f conftest.$ac_objext conftest$ac_exeext
13554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13555   (eval $ac_link) 2>conftest.er1
13556   ac_status=$?
13557   grep -v '^ *+' conftest.er1 >conftest.err
13558   rm -f conftest.er1
13559   cat conftest.err >&5
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); } &&
13562          { ac_try='test -z "$ac_c_werror_flag"
13563                          || test ! -s conftest.err'
13564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565   (eval $ac_try) 2>&5
13566   ac_status=$?
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); }; } &&
13569          { ac_try='test -s conftest$ac_exeext'
13570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571   (eval $ac_try) 2>&5
13572   ac_status=$?
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); }; }; then
13575   bash_cv_decl_strtoull=yes
13576 else
13577   echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13579
13580 bash_cv_decl_strtoull=no
13581 fi
13582 rm -f conftest.err conftest.$ac_objext \
13583       conftest$ac_exeext conftest.$ac_ext
13584 fi
13585 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
13586 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
13587 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13588 if test $bash_cv_decl_strtoull = yes; then
13589   cat >>confdefs.h <<_ACEOF
13590 #define $bash_tr_func 1
13591 _ACEOF
13592
13593 else
13594   cat >>confdefs.h <<_ACEOF
13595 #define $bash_tr_func 0
13596 _ACEOF
13597
13598 fi
13599
13600
13601
13602
13603 echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
13604 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
13605 if test "${bash_cv_decl_strtoumax+set}" = set; then
13606   echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608   cat >conftest.$ac_ext <<_ACEOF
13609 /* confdefs.h.  */
13610 _ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h.  */
13614
13615 #if STDC_HEADERS
13616 #  include <stdlib.h>
13617 #endif
13618 #if HAVE_INTTYPES_H
13619 #  include <inttypes.h>
13620 #endif
13621
13622 int
13623 main ()
13624 {
13625 return !strtoumax;
13626   ;
13627   return 0;
13628 }
13629 _ACEOF
13630 rm -f conftest.$ac_objext conftest$ac_exeext
13631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13632   (eval $ac_link) 2>conftest.er1
13633   ac_status=$?
13634   grep -v '^ *+' conftest.er1 >conftest.err
13635   rm -f conftest.er1
13636   cat conftest.err >&5
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); } &&
13639          { ac_try='test -z "$ac_c_werror_flag"
13640                          || test ! -s conftest.err'
13641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642   (eval $ac_try) 2>&5
13643   ac_status=$?
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); }; } &&
13646          { ac_try='test -s conftest$ac_exeext'
13647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648   (eval $ac_try) 2>&5
13649   ac_status=$?
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); }; }; then
13652   bash_cv_decl_strtoumax=yes
13653 else
13654   echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13656
13657 bash_cv_decl_strtoumax=no
13658 fi
13659 rm -f conftest.err conftest.$ac_objext \
13660       conftest$ac_exeext conftest.$ac_ext
13661 fi
13662 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
13663 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
13664 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13665 if test $bash_cv_decl_strtoumax = yes; then
13666   cat >>confdefs.h <<_ACEOF
13667 #define $bash_tr_func 1
13668 _ACEOF
13669
13670 else
13671   cat >>confdefs.h <<_ACEOF
13672 #define $bash_tr_func 0
13673 _ACEOF
13674
13675 fi
13676
13677
13678
13679
13680
13681 for ac_header in stdlib.h sys/time.h unistd.h
13682 do
13683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13685   echo "$as_me:$LINENO: checking for $ac_header" >&5
13686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13688   echo $ECHO_N "(cached) $ECHO_C" >&6
13689 fi
13690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13692 else
13693   # Is the header compilable?
13694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13696 cat >conftest.$ac_ext <<_ACEOF
13697 /* confdefs.h.  */
13698 _ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h.  */
13702 $ac_includes_default
13703 #include <$ac_header>
13704 _ACEOF
13705 rm -f conftest.$ac_objext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13707   (eval $ac_compile) 2>conftest.er1
13708   ac_status=$?
13709   grep -v '^ *+' conftest.er1 >conftest.err
13710   rm -f conftest.er1
13711   cat conftest.err >&5
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); } &&
13714          { ac_try='test -z "$ac_c_werror_flag"
13715                          || test ! -s conftest.err'
13716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717   (eval $ac_try) 2>&5
13718   ac_status=$?
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); }; } &&
13721          { ac_try='test -s conftest.$ac_objext'
13722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723   (eval $ac_try) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); }; }; then
13727   ac_header_compiler=yes
13728 else
13729   echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13731
13732 ac_header_compiler=no
13733 fi
13734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13736 echo "${ECHO_T}$ac_header_compiler" >&6
13737
13738 # Is the header present?
13739 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13741 cat >conftest.$ac_ext <<_ACEOF
13742 /* confdefs.h.  */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h.  */
13747 #include <$ac_header>
13748 _ACEOF
13749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13750   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13751   ac_status=$?
13752   grep -v '^ *+' conftest.er1 >conftest.err
13753   rm -f conftest.er1
13754   cat conftest.err >&5
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); } >/dev/null; then
13757   if test -s conftest.err; then
13758     ac_cpp_err=$ac_c_preproc_warn_flag
13759     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13760   else
13761     ac_cpp_err=
13762   fi
13763 else
13764   ac_cpp_err=yes
13765 fi
13766 if test -z "$ac_cpp_err"; then
13767   ac_header_preproc=yes
13768 else
13769   echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13771
13772   ac_header_preproc=no
13773 fi
13774 rm -f conftest.err conftest.$ac_ext
13775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13776 echo "${ECHO_T}$ac_header_preproc" >&6
13777
13778 # So?  What about this header?
13779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13780   yes:no: )
13781     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13785     ac_header_preproc=yes
13786     ;;
13787   no:yes:* )
13788     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13790     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13791 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13792     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13794     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13795 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13798     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13800     (
13801       cat <<\_ASBOX
13802 ## ------------------------------- ##
13803 ## Report this to bug-bash@gnu.org ##
13804 ## ------------------------------- ##
13805 _ASBOX
13806     ) |
13807       sed "s/^/$as_me: WARNING:     /" >&2
13808     ;;
13809 esac
13810 echo "$as_me:$LINENO: checking for $ac_header" >&5
13811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13813   echo $ECHO_N "(cached) $ECHO_C" >&6
13814 else
13815   eval "$as_ac_Header=\$ac_header_preproc"
13816 fi
13817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13819
13820 fi
13821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13822   cat >>confdefs.h <<_ACEOF
13823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13824 _ACEOF
13825
13826 fi
13827
13828 done
13829
13830
13831 for ac_func in alarm
13832 do
13833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13834 echo "$as_me:$LINENO: checking for $ac_func" >&5
13835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13836 if eval "test \"\${$as_ac_var+set}\" = set"; then
13837   echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839   cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h.  */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h.  */
13845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13847 #define $ac_func innocuous_$ac_func
13848
13849 /* System header to define __stub macros and hopefully few prototypes,
13850     which can conflict with char $ac_func (); below.
13851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13852     <limits.h> exists even on freestanding compilers.  */
13853
13854 #ifdef __STDC__
13855 # include <limits.h>
13856 #else
13857 # include <assert.h>
13858 #endif
13859
13860 #undef $ac_func
13861
13862 /* Override any gcc2 internal prototype to avoid an error.  */
13863 #ifdef __cplusplus
13864 extern "C"
13865 {
13866 #endif
13867 /* We use char because int might match the return type of a gcc2
13868    builtin and then its argument prototype would still apply.  */
13869 char $ac_func ();
13870 /* The GNU C library defines this for functions which it implements
13871     to always fail with ENOSYS.  Some functions are actually named
13872     something starting with __ and the normal name is an alias.  */
13873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13874 choke me
13875 #else
13876 char (*f) () = $ac_func;
13877 #endif
13878 #ifdef __cplusplus
13879 }
13880 #endif
13881
13882 int
13883 main ()
13884 {
13885 return f != $ac_func;
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>conftest.er1
13893   ac_status=$?
13894   grep -v '^ *+' conftest.er1 >conftest.err
13895   rm -f conftest.er1
13896   cat conftest.err >&5
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); } &&
13899          { ac_try='test -z "$ac_c_werror_flag"
13900                          || test ! -s conftest.err'
13901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902   (eval $ac_try) 2>&5
13903   ac_status=$?
13904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905   (exit $ac_status); }; } &&
13906          { ac_try='test -s conftest$ac_exeext'
13907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908   (eval $ac_try) 2>&5
13909   ac_status=$?
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); }; }; then
13912   eval "$as_ac_var=yes"
13913 else
13914   echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13916
13917 eval "$as_ac_var=no"
13918 fi
13919 rm -f conftest.err conftest.$ac_objext \
13920       conftest$ac_exeext conftest.$ac_ext
13921 fi
13922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13924 if test `eval echo '${'$as_ac_var'}'` = yes; then
13925   cat >>confdefs.h <<_ACEOF
13926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13927 _ACEOF
13928
13929 fi
13930 done
13931
13932 echo "$as_me:$LINENO: checking for working mktime" >&5
13933 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13934 if test "${ac_cv_func_working_mktime+set}" = set; then
13935   echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937   if test "$cross_compiling" = yes; then
13938   ac_cv_func_working_mktime=no
13939 else
13940   cat >conftest.$ac_ext <<_ACEOF
13941 /* confdefs.h.  */
13942 _ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h.  */
13946 /* Test program from Paul Eggert and Tony Leneis.  */
13947 #if TIME_WITH_SYS_TIME
13948 # include <sys/time.h>
13949 # include <time.h>
13950 #else
13951 # if HAVE_SYS_TIME_H
13952 #  include <sys/time.h>
13953 # else
13954 #  include <time.h>
13955 # endif
13956 #endif
13957
13958 #if HAVE_STDLIB_H
13959 # include <stdlib.h>
13960 #endif
13961
13962 #if HAVE_UNISTD_H
13963 # include <unistd.h>
13964 #endif
13965
13966 #if !HAVE_ALARM
13967 # define alarm(X) /* empty */
13968 #endif
13969
13970 /* Work around redefinition to rpl_putenv by other config tests.  */
13971 #undef putenv
13972
13973 static time_t time_t_max;
13974 static time_t time_t_min;
13975
13976 /* Values we'll use to set the TZ environment variable.  */
13977 static char *tz_strings[] = {
13978   (char *) 0, "TZ=GMT0", "TZ=JST-9",
13979   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13980 };
13981 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13982
13983 /* Fail if mktime fails to convert a date in the spring-forward gap.
13984    Based on a problem report from Andreas Jaeger.  */
13985 static void
13986 spring_forward_gap ()
13987 {
13988   /* glibc (up to about 1998-10-07) failed this test. */
13989   struct tm tm;
13990
13991   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13992      instead of "TZ=America/Vancouver" in order to detect the bug even
13993      on systems that don't support the Olson extension, or don't have the
13994      full zoneinfo tables installed.  */
13995   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13996
13997   tm.tm_year = 98;
13998   tm.tm_mon = 3;
13999   tm.tm_mday = 5;
14000   tm.tm_hour = 2;
14001   tm.tm_min = 0;
14002   tm.tm_sec = 0;
14003   tm.tm_isdst = -1;
14004   if (mktime (&tm) == (time_t)-1)
14005     exit (1);
14006 }
14007
14008 static void
14009 mktime_test1 (now)
14010      time_t now;
14011 {
14012   struct tm *lt;
14013   if ((lt = localtime (&now)) && mktime (lt) != now)
14014     exit (1);
14015 }
14016
14017 static void
14018 mktime_test (now)
14019      time_t now;
14020 {
14021   mktime_test1 (now);
14022   mktime_test1 ((time_t) (time_t_max - now));
14023   mktime_test1 ((time_t) (time_t_min + now));
14024 }
14025
14026 static void
14027 irix_6_4_bug ()
14028 {
14029   /* Based on code from Ariel Faigon.  */
14030   struct tm tm;
14031   tm.tm_year = 96;
14032   tm.tm_mon = 3;
14033   tm.tm_mday = 0;
14034   tm.tm_hour = 0;
14035   tm.tm_min = 0;
14036   tm.tm_sec = 0;
14037   tm.tm_isdst = -1;
14038   mktime (&tm);
14039   if (tm.tm_mon != 2 || tm.tm_mday != 31)
14040     exit (1);
14041 }
14042
14043 static void
14044 bigtime_test (j)
14045      int j;
14046 {
14047   struct tm tm;
14048   time_t now;
14049   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14050   now = mktime (&tm);
14051   if (now != (time_t) -1)
14052     {
14053       struct tm *lt = localtime (&now);
14054       if (! (lt
14055              && lt->tm_year == tm.tm_year
14056              && lt->tm_mon == tm.tm_mon
14057              && lt->tm_mday == tm.tm_mday
14058              && lt->tm_hour == tm.tm_hour
14059              && lt->tm_min == tm.tm_min
14060              && lt->tm_sec == tm.tm_sec
14061              && lt->tm_yday == tm.tm_yday
14062              && lt->tm_wday == tm.tm_wday
14063              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14064                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14065         exit (1);
14066     }
14067 }
14068
14069 int
14070 main ()
14071 {
14072   time_t t, delta;
14073   int i, j;
14074
14075   /* This test makes some buggy mktime implementations loop.
14076      Give up after 60 seconds; a mktime slower than that
14077      isn't worth using anyway.  */
14078   alarm (60);
14079
14080   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14081     continue;
14082   time_t_max--;
14083   if ((time_t) -1 < 0)
14084     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14085       continue;
14086   delta = time_t_max / 997; /* a suitable prime number */
14087   for (i = 0; i < N_STRINGS; i++)
14088     {
14089       if (tz_strings[i])
14090         putenv (tz_strings[i]);
14091
14092       for (t = 0; t <= time_t_max - delta; t += delta)
14093         mktime_test (t);
14094       mktime_test ((time_t) 1);
14095       mktime_test ((time_t) (60 * 60));
14096       mktime_test ((time_t) (60 * 60 * 24));
14097
14098       for (j = 1; 0 < j; j *= 2)
14099         bigtime_test (j);
14100       bigtime_test (j - 1);
14101     }
14102   irix_6_4_bug ();
14103   spring_forward_gap ();
14104   exit (0);
14105 }
14106 _ACEOF
14107 rm -f conftest$ac_exeext
14108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14109   (eval $ac_link) 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114   (eval $ac_try) 2>&5
14115   ac_status=$?
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); }; }; then
14118   ac_cv_func_working_mktime=yes
14119 else
14120   echo "$as_me: program exited with status $ac_status" >&5
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14123
14124 ( exit $ac_status )
14125 ac_cv_func_working_mktime=no
14126 fi
14127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14128 fi
14129 fi
14130 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14131 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14132 if test $ac_cv_func_working_mktime = no; then
14133   case $LIBOBJS in
14134     "mktime.$ac_objext"   | \
14135   *" mktime.$ac_objext"   | \
14136     "mktime.$ac_objext "* | \
14137   *" mktime.$ac_objext "* ) ;;
14138   *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14139 esac
14140
14141 fi
14142
14143
14144
14145
14146
14147
14148
14149
14150 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
14151 do
14152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14154   echo "$as_me:$LINENO: checking for $ac_header" >&5
14155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14157   echo $ECHO_N "(cached) $ECHO_C" >&6
14158 fi
14159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14161 else
14162   # Is the header compilable?
14163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h.  */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h.  */
14171 $ac_includes_default
14172 #include <$ac_header>
14173 _ACEOF
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176   (eval $ac_compile) 2>conftest.er1
14177   ac_status=$?
14178   grep -v '^ *+' conftest.er1 >conftest.err
14179   rm -f conftest.er1
14180   cat conftest.err >&5
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); } &&
14183          { ac_try='test -z "$ac_c_werror_flag"
14184                          || test ! -s conftest.err'
14185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186   (eval $ac_try) 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); }; } &&
14190          { ac_try='test -s conftest.$ac_objext'
14191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192   (eval $ac_try) 2>&5
14193   ac_status=$?
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); }; }; then
14196   ac_header_compiler=yes
14197 else
14198   echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14200
14201 ac_header_compiler=no
14202 fi
14203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14205 echo "${ECHO_T}$ac_header_compiler" >&6
14206
14207 # Is the header present?
14208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14210 cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h.  */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h.  */
14216 #include <$ac_header>
14217 _ACEOF
14218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14220   ac_status=$?
14221   grep -v '^ *+' conftest.er1 >conftest.err
14222   rm -f conftest.er1
14223   cat conftest.err >&5
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); } >/dev/null; then
14226   if test -s conftest.err; then
14227     ac_cpp_err=$ac_c_preproc_warn_flag
14228     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14229   else
14230     ac_cpp_err=
14231   fi
14232 else
14233   ac_cpp_err=yes
14234 fi
14235 if test -z "$ac_cpp_err"; then
14236   ac_header_preproc=yes
14237 else
14238   echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14240
14241   ac_header_preproc=no
14242 fi
14243 rm -f conftest.err conftest.$ac_ext
14244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14245 echo "${ECHO_T}$ac_header_preproc" >&6
14246
14247 # So?  What about this header?
14248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14249   yes:no: )
14250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14254     ac_header_preproc=yes
14255     ;;
14256   no:yes:* )
14257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14269     (
14270       cat <<\_ASBOX
14271 ## ------------------------------- ##
14272 ## Report this to bug-bash@gnu.org ##
14273 ## ------------------------------- ##
14274 _ASBOX
14275     ) |
14276       sed "s/^/$as_me: WARNING:     /" >&2
14277     ;;
14278 esac
14279 echo "$as_me:$LINENO: checking for $ac_header" >&5
14280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14282   echo $ECHO_N "(cached) $ECHO_C" >&6
14283 else
14284   eval "$as_ac_Header=\$ac_header_preproc"
14285 fi
14286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14288
14289 fi
14290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14291   cat >>confdefs.h <<_ACEOF
14292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14293 _ACEOF
14294
14295 fi
14296
14297 done
14298
14299
14300
14301
14302 for ac_header in stdlib.h unistd.h
14303 do
14304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14306   echo "$as_me:$LINENO: checking for $ac_header" >&5
14307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14309   echo $ECHO_N "(cached) $ECHO_C" >&6
14310 fi
14311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14313 else
14314   # Is the header compilable?
14315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14317 cat >conftest.$ac_ext <<_ACEOF
14318 /* confdefs.h.  */
14319 _ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h.  */
14323 $ac_includes_default
14324 #include <$ac_header>
14325 _ACEOF
14326 rm -f conftest.$ac_objext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14328   (eval $ac_compile) 2>conftest.er1
14329   ac_status=$?
14330   grep -v '^ *+' conftest.er1 >conftest.err
14331   rm -f conftest.er1
14332   cat conftest.err >&5
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); } &&
14335          { ac_try='test -z "$ac_c_werror_flag"
14336                          || test ! -s conftest.err'
14337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338   (eval $ac_try) 2>&5
14339   ac_status=$?
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); }; } &&
14342          { ac_try='test -s conftest.$ac_objext'
14343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344   (eval $ac_try) 2>&5
14345   ac_status=$?
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); }; }; then
14348   ac_header_compiler=yes
14349 else
14350   echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14352
14353 ac_header_compiler=no
14354 fi
14355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14357 echo "${ECHO_T}$ac_header_compiler" >&6
14358
14359 # Is the header present?
14360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14362 cat >conftest.$ac_ext <<_ACEOF
14363 /* confdefs.h.  */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h.  */
14368 #include <$ac_header>
14369 _ACEOF
14370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14371   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14372   ac_status=$?
14373   grep -v '^ *+' conftest.er1 >conftest.err
14374   rm -f conftest.er1
14375   cat conftest.err >&5
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); } >/dev/null; then
14378   if test -s conftest.err; then
14379     ac_cpp_err=$ac_c_preproc_warn_flag
14380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14381   else
14382     ac_cpp_err=
14383   fi
14384 else
14385   ac_cpp_err=yes
14386 fi
14387 if test -z "$ac_cpp_err"; then
14388   ac_header_preproc=yes
14389 else
14390   echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14392
14393   ac_header_preproc=no
14394 fi
14395 rm -f conftest.err conftest.$ac_ext
14396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14397 echo "${ECHO_T}$ac_header_preproc" >&6
14398
14399 # So?  What about this header?
14400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14401   yes:no: )
14402     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14406     ac_header_preproc=yes
14407     ;;
14408   no:yes:* )
14409     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14411     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14412 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14413     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14415     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14416 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14419     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14421     (
14422       cat <<\_ASBOX
14423 ## ------------------------------- ##
14424 ## Report this to bug-bash@gnu.org ##
14425 ## ------------------------------- ##
14426 _ASBOX
14427     ) |
14428       sed "s/^/$as_me: WARNING:     /" >&2
14429     ;;
14430 esac
14431 echo "$as_me:$LINENO: checking for $ac_header" >&5
14432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14434   echo $ECHO_N "(cached) $ECHO_C" >&6
14435 else
14436   eval "$as_ac_Header=\$ac_header_preproc"
14437 fi
14438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14440
14441 fi
14442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14443   cat >>confdefs.h <<_ACEOF
14444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14445 _ACEOF
14446
14447 fi
14448
14449 done
14450
14451
14452 for ac_func in getpagesize
14453 do
14454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14455 echo "$as_me:$LINENO: checking for $ac_func" >&5
14456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14457 if eval "test \"\${$as_ac_var+set}\" = set"; then
14458   echo $ECHO_N "(cached) $ECHO_C" >&6
14459 else
14460   cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h.  */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h.  */
14466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14468 #define $ac_func innocuous_$ac_func
14469
14470 /* System header to define __stub macros and hopefully few prototypes,
14471     which can conflict with char $ac_func (); below.
14472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14473     <limits.h> exists even on freestanding compilers.  */
14474
14475 #ifdef __STDC__
14476 # include <limits.h>
14477 #else
14478 # include <assert.h>
14479 #endif
14480
14481 #undef $ac_func
14482
14483 /* Override any gcc2 internal prototype to avoid an error.  */
14484 #ifdef __cplusplus
14485 extern "C"
14486 {
14487 #endif
14488 /* We use char because int might match the return type of a gcc2
14489    builtin and then its argument prototype would still apply.  */
14490 char $ac_func ();
14491 /* The GNU C library defines this for functions which it implements
14492     to always fail with ENOSYS.  Some functions are actually named
14493     something starting with __ and the normal name is an alias.  */
14494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14495 choke me
14496 #else
14497 char (*f) () = $ac_func;
14498 #endif
14499 #ifdef __cplusplus
14500 }
14501 #endif
14502
14503 int
14504 main ()
14505 {
14506 return f != $ac_func;
14507   ;
14508   return 0;
14509 }
14510 _ACEOF
14511 rm -f conftest.$ac_objext conftest$ac_exeext
14512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14513   (eval $ac_link) 2>conftest.er1
14514   ac_status=$?
14515   grep -v '^ *+' conftest.er1 >conftest.err
14516   rm -f conftest.er1
14517   cat conftest.err >&5
14518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519   (exit $ac_status); } &&
14520          { ac_try='test -z "$ac_c_werror_flag"
14521                          || test ! -s conftest.err'
14522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523   (eval $ac_try) 2>&5
14524   ac_status=$?
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); }; } &&
14527          { ac_try='test -s conftest$ac_exeext'
14528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529   (eval $ac_try) 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; }; then
14533   eval "$as_ac_var=yes"
14534 else
14535   echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14537
14538 eval "$as_ac_var=no"
14539 fi
14540 rm -f conftest.err conftest.$ac_objext \
14541       conftest$ac_exeext conftest.$ac_ext
14542 fi
14543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14545 if test `eval echo '${'$as_ac_var'}'` = yes; then
14546   cat >>confdefs.h <<_ACEOF
14547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14548 _ACEOF
14549
14550 fi
14551 done
14552
14553 echo "$as_me:$LINENO: checking for working mmap" >&5
14554 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14555 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14556   echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558   if test "$cross_compiling" = yes; then
14559   ac_cv_func_mmap_fixed_mapped=no
14560 else
14561   cat >conftest.$ac_ext <<_ACEOF
14562 /* confdefs.h.  */
14563 _ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h.  */
14567 $ac_includes_default
14568 /* malloc might have been renamed as rpl_malloc. */
14569 #undef malloc
14570
14571 /* Thanks to Mike Haertel and Jim Avera for this test.
14572    Here is a matrix of mmap possibilities:
14573         mmap private not fixed
14574         mmap private fixed at somewhere currently unmapped
14575         mmap private fixed at somewhere already mapped
14576         mmap shared not fixed
14577         mmap shared fixed at somewhere currently unmapped
14578         mmap shared fixed at somewhere already mapped
14579    For private mappings, we should verify that changes cannot be read()
14580    back from the file, nor mmap's back from the file at a different
14581    address.  (There have been systems where private was not correctly
14582    implemented like the infamous i386 svr4.0, and systems where the
14583    VM page cache was not coherent with the file system buffer cache
14584    like early versions of FreeBSD and possibly contemporary NetBSD.)
14585    For shared mappings, we should conversely verify that changes get
14586    propagated back to all the places they're supposed to be.
14587
14588    Grep wants private fixed already mapped.
14589    The main things grep needs to know about mmap are:
14590    * does it exist and is it safe to write into the mmap'd area
14591    * how to use it (BSD variants)  */
14592
14593 #include <fcntl.h>
14594 #include <sys/mman.h>
14595
14596 #if !STDC_HEADERS && !HAVE_STDLIB_H
14597 char *malloc ();
14598 #endif
14599
14600 /* This mess was copied from the GNU getpagesize.h.  */
14601 #if !HAVE_GETPAGESIZE
14602 /* Assume that all systems that can run configure have sys/param.h.  */
14603 # if !HAVE_SYS_PARAM_H
14604 #  define HAVE_SYS_PARAM_H 1
14605 # endif
14606
14607 # ifdef _SC_PAGESIZE
14608 #  define getpagesize() sysconf(_SC_PAGESIZE)
14609 # else /* no _SC_PAGESIZE */
14610 #  if HAVE_SYS_PARAM_H
14611 #   include <sys/param.h>
14612 #   ifdef EXEC_PAGESIZE
14613 #    define getpagesize() EXEC_PAGESIZE
14614 #   else /* no EXEC_PAGESIZE */
14615 #    ifdef NBPG
14616 #     define getpagesize() NBPG * CLSIZE
14617 #     ifndef CLSIZE
14618 #      define CLSIZE 1
14619 #     endif /* no CLSIZE */
14620 #    else /* no NBPG */
14621 #     ifdef NBPC
14622 #      define getpagesize() NBPC
14623 #     else /* no NBPC */
14624 #      ifdef PAGESIZE
14625 #       define getpagesize() PAGESIZE
14626 #      endif /* PAGESIZE */
14627 #     endif /* no NBPC */
14628 #    endif /* no NBPG */
14629 #   endif /* no EXEC_PAGESIZE */
14630 #  else /* no HAVE_SYS_PARAM_H */
14631 #   define getpagesize() 8192   /* punt totally */
14632 #  endif /* no HAVE_SYS_PARAM_H */
14633 # endif /* no _SC_PAGESIZE */
14634
14635 #endif /* no HAVE_GETPAGESIZE */
14636
14637 int
14638 main ()
14639 {
14640   char *data, *data2, *data3;
14641   int i, pagesize;
14642   int fd;
14643
14644   pagesize = getpagesize ();
14645
14646   /* First, make a file with some known garbage in it. */
14647   data = (char *) malloc (pagesize);
14648   if (!data)
14649     exit (1);
14650   for (i = 0; i < pagesize; ++i)
14651     *(data + i) = rand ();
14652   umask (0);
14653   fd = creat ("conftest.mmap", 0600);
14654   if (fd < 0)
14655     exit (1);
14656   if (write (fd, data, pagesize) != pagesize)
14657     exit (1);
14658   close (fd);
14659
14660   /* Next, try to mmap the file at a fixed address which already has
14661      something else allocated at it.  If we can, also make sure that
14662      we see the same garbage.  */
14663   fd = open ("conftest.mmap", O_RDWR);
14664   if (fd < 0)
14665     exit (1);
14666   data2 = (char *) malloc (2 * pagesize);
14667   if (!data2)
14668     exit (1);
14669   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14670   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14671                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14672     exit (1);
14673   for (i = 0; i < pagesize; ++i)
14674     if (*(data + i) != *(data2 + i))
14675       exit (1);
14676
14677   /* Finally, make sure that changes to the mapped area do not
14678      percolate back to the file as seen by read().  (This is a bug on
14679      some variants of i386 svr4.0.)  */
14680   for (i = 0; i < pagesize; ++i)
14681     *(data2 + i) = *(data2 + i) + 1;
14682   data3 = (char *) malloc (pagesize);
14683   if (!data3)
14684     exit (1);
14685   if (read (fd, data3, pagesize) != pagesize)
14686     exit (1);
14687   for (i = 0; i < pagesize; ++i)
14688     if (*(data + i) != *(data3 + i))
14689       exit (1);
14690   close (fd);
14691   exit (0);
14692 }
14693 _ACEOF
14694 rm -f conftest$ac_exeext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14696   (eval $ac_link) 2>&5
14697   ac_status=$?
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701   (eval $ac_try) 2>&5
14702   ac_status=$?
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); }; }; then
14705   ac_cv_func_mmap_fixed_mapped=yes
14706 else
14707   echo "$as_me: program exited with status $ac_status" >&5
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14710
14711 ( exit $ac_status )
14712 ac_cv_func_mmap_fixed_mapped=no
14713 fi
14714 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14715 fi
14716 fi
14717 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14718 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14719 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14720
14721 cat >>confdefs.h <<\_ACEOF
14722 #define HAVE_MMAP 1
14723 _ACEOF
14724
14725 fi
14726 rm -f conftest.mmap
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
14738                 munmap stpcpy strcspn strdup
14739 do
14740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14741 echo "$as_me:$LINENO: checking for $ac_func" >&5
14742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14743 if eval "test \"\${$as_ac_var+set}\" = set"; then
14744   echo $ECHO_N "(cached) $ECHO_C" >&6
14745 else
14746   cat >conftest.$ac_ext <<_ACEOF
14747 /* confdefs.h.  */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h.  */
14752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14754 #define $ac_func innocuous_$ac_func
14755
14756 /* System header to define __stub macros and hopefully few prototypes,
14757     which can conflict with char $ac_func (); below.
14758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14759     <limits.h> exists even on freestanding compilers.  */
14760
14761 #ifdef __STDC__
14762 # include <limits.h>
14763 #else
14764 # include <assert.h>
14765 #endif
14766
14767 #undef $ac_func
14768
14769 /* Override any gcc2 internal prototype to avoid an error.  */
14770 #ifdef __cplusplus
14771 extern "C"
14772 {
14773 #endif
14774 /* We use char because int might match the return type of a gcc2
14775    builtin and then its argument prototype would still apply.  */
14776 char $ac_func ();
14777 /* The GNU C library defines this for functions which it implements
14778     to always fail with ENOSYS.  Some functions are actually named
14779     something starting with __ and the normal name is an alias.  */
14780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14781 choke me
14782 #else
14783 char (*f) () = $ac_func;
14784 #endif
14785 #ifdef __cplusplus
14786 }
14787 #endif
14788
14789 int
14790 main ()
14791 {
14792 return f != $ac_func;
14793   ;
14794   return 0;
14795 }
14796 _ACEOF
14797 rm -f conftest.$ac_objext conftest$ac_exeext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14799   (eval $ac_link) 2>conftest.er1
14800   ac_status=$?
14801   grep -v '^ *+' conftest.er1 >conftest.err
14802   rm -f conftest.er1
14803   cat conftest.err >&5
14804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805   (exit $ac_status); } &&
14806          { ac_try='test -z "$ac_c_werror_flag"
14807                          || test ! -s conftest.err'
14808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809   (eval $ac_try) 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); }; } &&
14813          { ac_try='test -s conftest$ac_exeext'
14814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815   (eval $ac_try) 2>&5
14816   ac_status=$?
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); }; }; then
14819   eval "$as_ac_var=yes"
14820 else
14821   echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14823
14824 eval "$as_ac_var=no"
14825 fi
14826 rm -f conftest.err conftest.$ac_objext \
14827       conftest$ac_exeext conftest.$ac_ext
14828 fi
14829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14831 if test `eval echo '${'$as_ac_var'}'` = yes; then
14832   cat >>confdefs.h <<_ACEOF
14833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14834 _ACEOF
14835
14836 fi
14837 done
14838
14839
14840 INTL_DEP= INTL_INC= LIBINTL_H=
14841 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
14842         INTL_DEP='${INTL_LIBDIR}/libintl.a'
14843         INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
14844         LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
14845 fi
14846
14847
14848
14849
14850
14851
14852
14853 for ac_header in wctype.h
14854 do
14855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14857   echo "$as_me:$LINENO: checking for $ac_header" >&5
14858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14860   echo $ECHO_N "(cached) $ECHO_C" >&6
14861 fi
14862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14864 else
14865   # Is the header compilable?
14866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14868 cat >conftest.$ac_ext <<_ACEOF
14869 /* confdefs.h.  */
14870 _ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h.  */
14874 $ac_includes_default
14875 #include <$ac_header>
14876 _ACEOF
14877 rm -f conftest.$ac_objext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14879   (eval $ac_compile) 2>conftest.er1
14880   ac_status=$?
14881   grep -v '^ *+' conftest.er1 >conftest.err
14882   rm -f conftest.er1
14883   cat conftest.err >&5
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); } &&
14886          { ac_try='test -z "$ac_c_werror_flag"
14887                          || test ! -s conftest.err'
14888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889   (eval $ac_try) 2>&5
14890   ac_status=$?
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); }; } &&
14893          { ac_try='test -s conftest.$ac_objext'
14894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895   (eval $ac_try) 2>&5
14896   ac_status=$?
14897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898   (exit $ac_status); }; }; then
14899   ac_header_compiler=yes
14900 else
14901   echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14903
14904 ac_header_compiler=no
14905 fi
14906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14908 echo "${ECHO_T}$ac_header_compiler" >&6
14909
14910 # Is the header present?
14911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14913 cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h.  */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h.  */
14919 #include <$ac_header>
14920 _ACEOF
14921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14923   ac_status=$?
14924   grep -v '^ *+' conftest.er1 >conftest.err
14925   rm -f conftest.er1
14926   cat conftest.err >&5
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); } >/dev/null; then
14929   if test -s conftest.err; then
14930     ac_cpp_err=$ac_c_preproc_warn_flag
14931     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14932   else
14933     ac_cpp_err=
14934   fi
14935 else
14936   ac_cpp_err=yes
14937 fi
14938 if test -z "$ac_cpp_err"; then
14939   ac_header_preproc=yes
14940 else
14941   echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14943
14944   ac_header_preproc=no
14945 fi
14946 rm -f conftest.err conftest.$ac_ext
14947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14948 echo "${ECHO_T}$ac_header_preproc" >&6
14949
14950 # So?  What about this header?
14951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14952   yes:no: )
14953     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14957     ac_header_preproc=yes
14958     ;;
14959   no:yes:* )
14960     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14962     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14963 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14964     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14966     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14967 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14970     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14972     (
14973       cat <<\_ASBOX
14974 ## ------------------------------- ##
14975 ## Report this to bug-bash@gnu.org ##
14976 ## ------------------------------- ##
14977 _ASBOX
14978     ) |
14979       sed "s/^/$as_me: WARNING:     /" >&2
14980     ;;
14981 esac
14982 echo "$as_me:$LINENO: checking for $ac_header" >&5
14983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14985   echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987   eval "$as_ac_Header=\$ac_header_preproc"
14988 fi
14989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14991
14992 fi
14993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14994   cat >>confdefs.h <<_ACEOF
14995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14996 _ACEOF
14997
14998 fi
14999
15000 done
15001
15002
15003 for ac_header in wchar.h
15004 do
15005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15007   echo "$as_me:$LINENO: checking for $ac_header" >&5
15008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15010   echo $ECHO_N "(cached) $ECHO_C" >&6
15011 fi
15012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15014 else
15015   # Is the header compilable?
15016 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15018 cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h.  */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h.  */
15024 $ac_includes_default
15025 #include <$ac_header>
15026 _ACEOF
15027 rm -f conftest.$ac_objext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029   (eval $ac_compile) 2>conftest.er1
15030   ac_status=$?
15031   grep -v '^ *+' conftest.er1 >conftest.err
15032   rm -f conftest.er1
15033   cat conftest.err >&5
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); } &&
15036          { ac_try='test -z "$ac_c_werror_flag"
15037                          || test ! -s conftest.err'
15038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039   (eval $ac_try) 2>&5
15040   ac_status=$?
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); }; } &&
15043          { ac_try='test -s conftest.$ac_objext'
15044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045   (eval $ac_try) 2>&5
15046   ac_status=$?
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); }; }; then
15049   ac_header_compiler=yes
15050 else
15051   echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15053
15054 ac_header_compiler=no
15055 fi
15056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15058 echo "${ECHO_T}$ac_header_compiler" >&6
15059
15060 # Is the header present?
15061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15063 cat >conftest.$ac_ext <<_ACEOF
15064 /* confdefs.h.  */
15065 _ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h.  */
15069 #include <$ac_header>
15070 _ACEOF
15071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15073   ac_status=$?
15074   grep -v '^ *+' conftest.er1 >conftest.err
15075   rm -f conftest.er1
15076   cat conftest.err >&5
15077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); } >/dev/null; then
15079   if test -s conftest.err; then
15080     ac_cpp_err=$ac_c_preproc_warn_flag
15081     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15082   else
15083     ac_cpp_err=
15084   fi
15085 else
15086   ac_cpp_err=yes
15087 fi
15088 if test -z "$ac_cpp_err"; then
15089   ac_header_preproc=yes
15090 else
15091   echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15093
15094   ac_header_preproc=no
15095 fi
15096 rm -f conftest.err conftest.$ac_ext
15097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15098 echo "${ECHO_T}$ac_header_preproc" >&6
15099
15100 # So?  What about this header?
15101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15102   yes:no: )
15103     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15107     ac_header_preproc=yes
15108     ;;
15109   no:yes:* )
15110     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15112     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15113 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15114     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15116     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15117 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15120     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15122     (
15123       cat <<\_ASBOX
15124 ## ------------------------------- ##
15125 ## Report this to bug-bash@gnu.org ##
15126 ## ------------------------------- ##
15127 _ASBOX
15128     ) |
15129       sed "s/^/$as_me: WARNING:     /" >&2
15130     ;;
15131 esac
15132 echo "$as_me:$LINENO: checking for $ac_header" >&5
15133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15135   echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137   eval "$as_ac_Header=\$ac_header_preproc"
15138 fi
15139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15141
15142 fi
15143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15144   cat >>confdefs.h <<_ACEOF
15145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15146 _ACEOF
15147
15148 fi
15149
15150 done
15151
15152
15153 for ac_header in langinfo.h
15154 do
15155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15157   echo "$as_me:$LINENO: checking for $ac_header" >&5
15158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15160   echo $ECHO_N "(cached) $ECHO_C" >&6
15161 fi
15162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15164 else
15165   # Is the header compilable?
15166 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15168 cat >conftest.$ac_ext <<_ACEOF
15169 /* confdefs.h.  */
15170 _ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h.  */
15174 $ac_includes_default
15175 #include <$ac_header>
15176 _ACEOF
15177 rm -f conftest.$ac_objext
15178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15179   (eval $ac_compile) 2>conftest.er1
15180   ac_status=$?
15181   grep -v '^ *+' conftest.er1 >conftest.err
15182   rm -f conftest.er1
15183   cat conftest.err >&5
15184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); } &&
15186          { ac_try='test -z "$ac_c_werror_flag"
15187                          || test ! -s conftest.err'
15188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189   (eval $ac_try) 2>&5
15190   ac_status=$?
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); }; } &&
15193          { ac_try='test -s conftest.$ac_objext'
15194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195   (eval $ac_try) 2>&5
15196   ac_status=$?
15197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198   (exit $ac_status); }; }; then
15199   ac_header_compiler=yes
15200 else
15201   echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15203
15204 ac_header_compiler=no
15205 fi
15206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15208 echo "${ECHO_T}$ac_header_compiler" >&6
15209
15210 # Is the header present?
15211 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15213 cat >conftest.$ac_ext <<_ACEOF
15214 /* confdefs.h.  */
15215 _ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h.  */
15219 #include <$ac_header>
15220 _ACEOF
15221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15223   ac_status=$?
15224   grep -v '^ *+' conftest.er1 >conftest.err
15225   rm -f conftest.er1
15226   cat conftest.err >&5
15227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228   (exit $ac_status); } >/dev/null; then
15229   if test -s conftest.err; then
15230     ac_cpp_err=$ac_c_preproc_warn_flag
15231     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15232   else
15233     ac_cpp_err=
15234   fi
15235 else
15236   ac_cpp_err=yes
15237 fi
15238 if test -z "$ac_cpp_err"; then
15239   ac_header_preproc=yes
15240 else
15241   echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15243
15244   ac_header_preproc=no
15245 fi
15246 rm -f conftest.err conftest.$ac_ext
15247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15248 echo "${ECHO_T}$ac_header_preproc" >&6
15249
15250 # So?  What about this header?
15251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15252   yes:no: )
15253     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15257     ac_header_preproc=yes
15258     ;;
15259   no:yes:* )
15260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15262     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15263 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15264     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15266     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15267 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15270     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15272     (
15273       cat <<\_ASBOX
15274 ## ------------------------------- ##
15275 ## Report this to bug-bash@gnu.org ##
15276 ## ------------------------------- ##
15277 _ASBOX
15278     ) |
15279       sed "s/^/$as_me: WARNING:     /" >&2
15280     ;;
15281 esac
15282 echo "$as_me:$LINENO: checking for $ac_header" >&5
15283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15285   echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287   eval "$as_ac_Header=\$ac_header_preproc"
15288 fi
15289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15291
15292 fi
15293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15294   cat >>confdefs.h <<_ACEOF
15295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15296 _ACEOF
15297
15298 fi
15299
15300 done
15301
15302
15303 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
15304 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
15305 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
15306   echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308   cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h.  */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h.  */
15314 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
15315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15316 #define mbsrtowcs innocuous_mbsrtowcs
15317
15318 /* System header to define __stub macros and hopefully few prototypes,
15319     which can conflict with char mbsrtowcs (); below.
15320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15321     <limits.h> exists even on freestanding compilers.  */
15322
15323 #ifdef __STDC__
15324 # include <limits.h>
15325 #else
15326 # include <assert.h>
15327 #endif
15328
15329 #undef mbsrtowcs
15330
15331 /* Override any gcc2 internal prototype to avoid an error.  */
15332 #ifdef __cplusplus
15333 extern "C"
15334 {
15335 #endif
15336 /* We use char because int might match the return type of a gcc2
15337    builtin and then its argument prototype would still apply.  */
15338 char mbsrtowcs ();
15339 /* The GNU C library defines this for functions which it implements
15340     to always fail with ENOSYS.  Some functions are actually named
15341     something starting with __ and the normal name is an alias.  */
15342 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
15343 choke me
15344 #else
15345 char (*f) () = mbsrtowcs;
15346 #endif
15347 #ifdef __cplusplus
15348 }
15349 #endif
15350
15351 int
15352 main ()
15353 {
15354 return f != mbsrtowcs;
15355   ;
15356   return 0;
15357 }
15358 _ACEOF
15359 rm -f conftest.$ac_objext conftest$ac_exeext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15361   (eval $ac_link) 2>conftest.er1
15362   ac_status=$?
15363   grep -v '^ *+' conftest.er1 >conftest.err
15364   rm -f conftest.er1
15365   cat conftest.err >&5
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); } &&
15368          { ac_try='test -z "$ac_c_werror_flag"
15369                          || test ! -s conftest.err'
15370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371   (eval $ac_try) 2>&5
15372   ac_status=$?
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); }; } &&
15375          { ac_try='test -s conftest$ac_exeext'
15376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377   (eval $ac_try) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); }; }; then
15381   ac_cv_func_mbsrtowcs=yes
15382 else
15383   echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15385
15386 ac_cv_func_mbsrtowcs=no
15387 fi
15388 rm -f conftest.err conftest.$ac_objext \
15389       conftest$ac_exeext conftest.$ac_ext
15390 fi
15391 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
15392 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
15393 if test $ac_cv_func_mbsrtowcs = yes; then
15394   cat >>confdefs.h <<\_ACEOF
15395 #define HAVE_MBSRTOWCS 1
15396 _ACEOF
15397
15398 fi
15399
15400 echo "$as_me:$LINENO: checking for mbrtowc" >&5
15401 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
15402 if test "${ac_cv_func_mbrtowc+set}" = set; then
15403   echo $ECHO_N "(cached) $ECHO_C" >&6
15404 else
15405   cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h.  */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h.  */
15411 /* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc.
15412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15413 #define mbrtowc innocuous_mbrtowc
15414
15415 /* System header to define __stub macros and hopefully few prototypes,
15416     which can conflict with char mbrtowc (); below.
15417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15418     <limits.h> exists even on freestanding compilers.  */
15419
15420 #ifdef __STDC__
15421 # include <limits.h>
15422 #else
15423 # include <assert.h>
15424 #endif
15425
15426 #undef mbrtowc
15427
15428 /* Override any gcc2 internal prototype to avoid an error.  */
15429 #ifdef __cplusplus
15430 extern "C"
15431 {
15432 #endif
15433 /* We use char because int might match the return type of a gcc2
15434    builtin and then its argument prototype would still apply.  */
15435 char mbrtowc ();
15436 /* The GNU C library defines this for functions which it implements
15437     to always fail with ENOSYS.  Some functions are actually named
15438     something starting with __ and the normal name is an alias.  */
15439 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
15440 choke me
15441 #else
15442 char (*f) () = mbrtowc;
15443 #endif
15444 #ifdef __cplusplus
15445 }
15446 #endif
15447
15448 int
15449 main ()
15450 {
15451 return f != mbrtowc;
15452   ;
15453   return 0;
15454 }
15455 _ACEOF
15456 rm -f conftest.$ac_objext conftest$ac_exeext
15457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15458   (eval $ac_link) 2>conftest.er1
15459   ac_status=$?
15460   grep -v '^ *+' conftest.er1 >conftest.err
15461   rm -f conftest.er1
15462   cat conftest.err >&5
15463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464   (exit $ac_status); } &&
15465          { ac_try='test -z "$ac_c_werror_flag"
15466                          || test ! -s conftest.err'
15467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468   (eval $ac_try) 2>&5
15469   ac_status=$?
15470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471   (exit $ac_status); }; } &&
15472          { ac_try='test -s conftest$ac_exeext'
15473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474   (eval $ac_try) 2>&5
15475   ac_status=$?
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); }; }; then
15478   ac_cv_func_mbrtowc=yes
15479 else
15480   echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15482
15483 ac_cv_func_mbrtowc=no
15484 fi
15485 rm -f conftest.err conftest.$ac_objext \
15486       conftest$ac_exeext conftest.$ac_ext
15487 fi
15488 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
15489 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
15490 if test $ac_cv_func_mbrtowc = yes; then
15491   cat >>confdefs.h <<\_ACEOF
15492 #define HAVE_MBRTOWC 1
15493 _ACEOF
15494
15495 fi
15496
15497 echo "$as_me:$LINENO: checking for mbrlen" >&5
15498 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
15499 if test "${ac_cv_func_mbrlen+set}" = set; then
15500   echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502   cat >conftest.$ac_ext <<_ACEOF
15503 /* confdefs.h.  */
15504 _ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h.  */
15508 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
15509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15510 #define mbrlen innocuous_mbrlen
15511
15512 /* System header to define __stub macros and hopefully few prototypes,
15513     which can conflict with char mbrlen (); below.
15514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15515     <limits.h> exists even on freestanding compilers.  */
15516
15517 #ifdef __STDC__
15518 # include <limits.h>
15519 #else
15520 # include <assert.h>
15521 #endif
15522
15523 #undef mbrlen
15524
15525 /* Override any gcc2 internal prototype to avoid an error.  */
15526 #ifdef __cplusplus
15527 extern "C"
15528 {
15529 #endif
15530 /* We use char because int might match the return type of a gcc2
15531    builtin and then its argument prototype would still apply.  */
15532 char mbrlen ();
15533 /* The GNU C library defines this for functions which it implements
15534     to always fail with ENOSYS.  Some functions are actually named
15535     something starting with __ and the normal name is an alias.  */
15536 #if defined (__stub_mbrlen) || defined (__stub___mbrlen)
15537 choke me
15538 #else
15539 char (*f) () = mbrlen;
15540 #endif
15541 #ifdef __cplusplus
15542 }
15543 #endif
15544
15545 int
15546 main ()
15547 {
15548 return f != mbrlen;
15549   ;
15550   return 0;
15551 }
15552 _ACEOF
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15555   (eval $ac_link) 2>conftest.er1
15556   ac_status=$?
15557   grep -v '^ *+' conftest.er1 >conftest.err
15558   rm -f conftest.er1
15559   cat conftest.err >&5
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); } &&
15562          { ac_try='test -z "$ac_c_werror_flag"
15563                          || test ! -s conftest.err'
15564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565   (eval $ac_try) 2>&5
15566   ac_status=$?
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); }; } &&
15569          { ac_try='test -s conftest$ac_exeext'
15570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571   (eval $ac_try) 2>&5
15572   ac_status=$?
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); }; }; then
15575   ac_cv_func_mbrlen=yes
15576 else
15577   echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15579
15580 ac_cv_func_mbrlen=no
15581 fi
15582 rm -f conftest.err conftest.$ac_objext \
15583       conftest$ac_exeext conftest.$ac_ext
15584 fi
15585 echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
15586 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
15587 if test $ac_cv_func_mbrlen = yes; then
15588   cat >>confdefs.h <<\_ACEOF
15589 #define HAVE_MBRLEN 1
15590 _ACEOF
15591
15592 fi
15593
15594 echo "$as_me:$LINENO: checking for wctomb" >&5
15595 echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
15596 if test "${ac_cv_func_wctomb+set}" = set; then
15597   echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599   cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h.  */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h.  */
15605 /* Define wctomb to an innocuous variant, in case <limits.h> declares wctomb.
15606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15607 #define wctomb innocuous_wctomb
15608
15609 /* System header to define __stub macros and hopefully few prototypes,
15610     which can conflict with char wctomb (); below.
15611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15612     <limits.h> exists even on freestanding compilers.  */
15613
15614 #ifdef __STDC__
15615 # include <limits.h>
15616 #else
15617 # include <assert.h>
15618 #endif
15619
15620 #undef wctomb
15621
15622 /* Override any gcc2 internal prototype to avoid an error.  */
15623 #ifdef __cplusplus
15624 extern "C"
15625 {
15626 #endif
15627 /* We use char because int might match the return type of a gcc2
15628    builtin and then its argument prototype would still apply.  */
15629 char wctomb ();
15630 /* The GNU C library defines this for functions which it implements
15631     to always fail with ENOSYS.  Some functions are actually named
15632     something starting with __ and the normal name is an alias.  */
15633 #if defined (__stub_wctomb) || defined (__stub___wctomb)
15634 choke me
15635 #else
15636 char (*f) () = wctomb;
15637 #endif
15638 #ifdef __cplusplus
15639 }
15640 #endif
15641
15642 int
15643 main ()
15644 {
15645 return f != wctomb;
15646   ;
15647   return 0;
15648 }
15649 _ACEOF
15650 rm -f conftest.$ac_objext conftest$ac_exeext
15651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15652   (eval $ac_link) 2>conftest.er1
15653   ac_status=$?
15654   grep -v '^ *+' conftest.er1 >conftest.err
15655   rm -f conftest.er1
15656   cat conftest.err >&5
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); } &&
15659          { ac_try='test -z "$ac_c_werror_flag"
15660                          || test ! -s conftest.err'
15661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662   (eval $ac_try) 2>&5
15663   ac_status=$?
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); }; } &&
15666          { ac_try='test -s conftest$ac_exeext'
15667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668   (eval $ac_try) 2>&5
15669   ac_status=$?
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); }; }; then
15672   ac_cv_func_wctomb=yes
15673 else
15674   echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677 ac_cv_func_wctomb=no
15678 fi
15679 rm -f conftest.err conftest.$ac_objext \
15680       conftest$ac_exeext conftest.$ac_ext
15681 fi
15682 echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
15683 echo "${ECHO_T}$ac_cv_func_wctomb" >&6
15684 if test $ac_cv_func_wctomb = yes; then
15685   cat >>confdefs.h <<\_ACEOF
15686 #define HAVE_WCTOMB 1
15687 _ACEOF
15688
15689 fi
15690
15691 echo "$as_me:$LINENO: checking for wcwidth" >&5
15692 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
15693 if test "${ac_cv_func_wcwidth+set}" = set; then
15694   echo $ECHO_N "(cached) $ECHO_C" >&6
15695 else
15696   cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h.  */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h.  */
15702 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
15703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15704 #define wcwidth innocuous_wcwidth
15705
15706 /* System header to define __stub macros and hopefully few prototypes,
15707     which can conflict with char wcwidth (); below.
15708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15709     <limits.h> exists even on freestanding compilers.  */
15710
15711 #ifdef __STDC__
15712 # include <limits.h>
15713 #else
15714 # include <assert.h>
15715 #endif
15716
15717 #undef wcwidth
15718
15719 /* Override any gcc2 internal prototype to avoid an error.  */
15720 #ifdef __cplusplus
15721 extern "C"
15722 {
15723 #endif
15724 /* We use char because int might match the return type of a gcc2
15725    builtin and then its argument prototype would still apply.  */
15726 char wcwidth ();
15727 /* The GNU C library defines this for functions which it implements
15728     to always fail with ENOSYS.  Some functions are actually named
15729     something starting with __ and the normal name is an alias.  */
15730 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
15731 choke me
15732 #else
15733 char (*f) () = wcwidth;
15734 #endif
15735 #ifdef __cplusplus
15736 }
15737 #endif
15738
15739 int
15740 main ()
15741 {
15742 return f != wcwidth;
15743   ;
15744   return 0;
15745 }
15746 _ACEOF
15747 rm -f conftest.$ac_objext conftest$ac_exeext
15748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15749   (eval $ac_link) 2>conftest.er1
15750   ac_status=$?
15751   grep -v '^ *+' conftest.er1 >conftest.err
15752   rm -f conftest.er1
15753   cat conftest.err >&5
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); } &&
15756          { ac_try='test -z "$ac_c_werror_flag"
15757                          || test ! -s conftest.err'
15758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759   (eval $ac_try) 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; } &&
15763          { ac_try='test -s conftest$ac_exeext'
15764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765   (eval $ac_try) 2>&5
15766   ac_status=$?
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); }; }; then
15769   ac_cv_func_wcwidth=yes
15770 else
15771   echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774 ac_cv_func_wcwidth=no
15775 fi
15776 rm -f conftest.err conftest.$ac_objext \
15777       conftest$ac_exeext conftest.$ac_ext
15778 fi
15779 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
15780 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
15781 if test $ac_cv_func_wcwidth = yes; then
15782   cat >>confdefs.h <<\_ACEOF
15783 #define HAVE_WCWIDTH 1
15784 _ACEOF
15785
15786 fi
15787
15788 echo "$as_me:$LINENO: checking for wcsdup" >&5
15789 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
15790 if test "${ac_cv_func_wcsdup+set}" = set; then
15791   echo $ECHO_N "(cached) $ECHO_C" >&6
15792 else
15793   cat >conftest.$ac_ext <<_ACEOF
15794 /* confdefs.h.  */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h.  */
15799 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
15800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15801 #define wcsdup innocuous_wcsdup
15802
15803 /* System header to define __stub macros and hopefully few prototypes,
15804     which can conflict with char wcsdup (); below.
15805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15806     <limits.h> exists even on freestanding compilers.  */
15807
15808 #ifdef __STDC__
15809 # include <limits.h>
15810 #else
15811 # include <assert.h>
15812 #endif
15813
15814 #undef wcsdup
15815
15816 /* Override any gcc2 internal prototype to avoid an error.  */
15817 #ifdef __cplusplus
15818 extern "C"
15819 {
15820 #endif
15821 /* We use char because int might match the return type of a gcc2
15822    builtin and then its argument prototype would still apply.  */
15823 char wcsdup ();
15824 /* The GNU C library defines this for functions which it implements
15825     to always fail with ENOSYS.  Some functions are actually named
15826     something starting with __ and the normal name is an alias.  */
15827 #if defined (__stub_wcsdup) || defined (__stub___wcsdup)
15828 choke me
15829 #else
15830 char (*f) () = wcsdup;
15831 #endif
15832 #ifdef __cplusplus
15833 }
15834 #endif
15835
15836 int
15837 main ()
15838 {
15839 return f != wcsdup;
15840   ;
15841   return 0;
15842 }
15843 _ACEOF
15844 rm -f conftest.$ac_objext conftest$ac_exeext
15845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15846   (eval $ac_link) 2>conftest.er1
15847   ac_status=$?
15848   grep -v '^ *+' conftest.er1 >conftest.err
15849   rm -f conftest.er1
15850   cat conftest.err >&5
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); } &&
15853          { ac_try='test -z "$ac_c_werror_flag"
15854                          || test ! -s conftest.err'
15855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856   (eval $ac_try) 2>&5
15857   ac_status=$?
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); }; } &&
15860          { ac_try='test -s conftest$ac_exeext'
15861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862   (eval $ac_try) 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); }; }; then
15866   ac_cv_func_wcsdup=yes
15867 else
15868   echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15870
15871 ac_cv_func_wcsdup=no
15872 fi
15873 rm -f conftest.err conftest.$ac_objext \
15874       conftest$ac_exeext conftest.$ac_ext
15875 fi
15876 echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
15877 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
15878 if test $ac_cv_func_wcsdup = yes; then
15879   cat >>confdefs.h <<\_ACEOF
15880 #define HAVE_WCSDUP 1
15881 _ACEOF
15882
15883 fi
15884
15885
15886 echo "$as_me:$LINENO: checking for mbstate_t" >&5
15887 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
15888 if test "${bash_cv_have_mbstate_t+set}" = set; then
15889   echo $ECHO_N "(cached) $ECHO_C" >&6
15890 else
15891   cat >conftest.$ac_ext <<_ACEOF
15892 /* confdefs.h.  */
15893 _ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h.  */
15897
15898 #include <wchar.h>
15899 int
15900 main ()
15901 {
15902
15903   mbstate_t ps;
15904   mbstate_t *psp;
15905   psp = (mbstate_t *)0;
15906
15907   ;
15908   return 0;
15909 }
15910 _ACEOF
15911 rm -f conftest.$ac_objext
15912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15913   (eval $ac_compile) 2>conftest.er1
15914   ac_status=$?
15915   grep -v '^ *+' conftest.er1 >conftest.err
15916   rm -f conftest.er1
15917   cat conftest.err >&5
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); } &&
15920          { ac_try='test -z "$ac_c_werror_flag"
15921                          || test ! -s conftest.err'
15922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923   (eval $ac_try) 2>&5
15924   ac_status=$?
15925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926   (exit $ac_status); }; } &&
15927          { ac_try='test -s conftest.$ac_objext'
15928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929   (eval $ac_try) 2>&5
15930   ac_status=$?
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); }; }; then
15933   bash_cv_have_mbstate_t=yes
15934 else
15935   echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15937
15938 bash_cv_have_mbstate_t=no
15939 fi
15940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15941 fi
15942 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
15943 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
15944 if test $bash_cv_have_mbstate_t = yes; then
15945         cat >>confdefs.h <<\_ACEOF
15946 #define HAVE_MBSTATE_T 1
15947 _ACEOF
15948
15949 fi
15950
15951 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15952 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15953 if test "${bash_cv_langinfo_codeset+set}" = set; then
15954   echo $ECHO_N "(cached) $ECHO_C" >&6
15955 else
15956   cat >conftest.$ac_ext <<_ACEOF
15957 /* confdefs.h.  */
15958 _ACEOF
15959 cat confdefs.h >>conftest.$ac_ext
15960 cat >>conftest.$ac_ext <<_ACEOF
15961 /* end confdefs.h.  */
15962 #include <langinfo.h>
15963 int
15964 main ()
15965 {
15966 char* cs = nl_langinfo(CODESET);
15967   ;
15968   return 0;
15969 }
15970 _ACEOF
15971 rm -f conftest.$ac_objext conftest$ac_exeext
15972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15973   (eval $ac_link) 2>conftest.er1
15974   ac_status=$?
15975   grep -v '^ *+' conftest.er1 >conftest.err
15976   rm -f conftest.er1
15977   cat conftest.err >&5
15978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979   (exit $ac_status); } &&
15980          { ac_try='test -z "$ac_c_werror_flag"
15981                          || test ! -s conftest.err'
15982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983   (eval $ac_try) 2>&5
15984   ac_status=$?
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); }; } &&
15987          { ac_try='test -s conftest$ac_exeext'
15988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989   (eval $ac_try) 2>&5
15990   ac_status=$?
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); }; }; then
15993   bash_cv_langinfo_codeset=yes
15994 else
15995   echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15997
15998 bash_cv_langinfo_codeset=no
15999 fi
16000 rm -f conftest.err conftest.$ac_objext \
16001       conftest$ac_exeext conftest.$ac_ext
16002 fi
16003 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
16004 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
16005 if test $bash_cv_langinfo_codeset = yes; then
16006   cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_LANGINFO_CODESET 1
16008 _ACEOF
16009
16010 fi
16011
16012
16013
16014 if test "$opt_static_link" != yes; then
16015
16016 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16017 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16018 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021   ac_check_lib_save_LIBS=$LIBS
16022 LIBS="-ldl  $LIBS"
16023 cat >conftest.$ac_ext <<_ACEOF
16024 /* confdefs.h.  */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h.  */
16029
16030 /* Override any gcc2 internal prototype to avoid an error.  */
16031 #ifdef __cplusplus
16032 extern "C"
16033 #endif
16034 /* We use char because int might match the return type of a gcc2
16035    builtin and then its argument prototype would still apply.  */
16036 char dlopen ();
16037 int
16038 main ()
16039 {
16040 dlopen ();
16041   ;
16042   return 0;
16043 }
16044 _ACEOF
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16047   (eval $ac_link) 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } &&
16054          { ac_try='test -z "$ac_c_werror_flag"
16055                          || test ! -s conftest.err'
16056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057   (eval $ac_try) 2>&5
16058   ac_status=$?
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); }; } &&
16061          { ac_try='test -s conftest$ac_exeext'
16062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063   (eval $ac_try) 2>&5
16064   ac_status=$?
16065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066   (exit $ac_status); }; }; then
16067   ac_cv_lib_dl_dlopen=yes
16068 else
16069   echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16071
16072 ac_cv_lib_dl_dlopen=no
16073 fi
16074 rm -f conftest.err conftest.$ac_objext \
16075       conftest$ac_exeext conftest.$ac_ext
16076 LIBS=$ac_check_lib_save_LIBS
16077 fi
16078 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16079 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16080 if test $ac_cv_lib_dl_dlopen = yes; then
16081   cat >>confdefs.h <<_ACEOF
16082 #define HAVE_LIBDL 1
16083 _ACEOF
16084
16085   LIBS="-ldl $LIBS"
16086
16087 fi
16088
16089
16090
16091
16092 for ac_func in dlopen dlclose dlsym
16093 do
16094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16095 echo "$as_me:$LINENO: checking for $ac_func" >&5
16096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16097 if eval "test \"\${$as_ac_var+set}\" = set"; then
16098   echo $ECHO_N "(cached) $ECHO_C" >&6
16099 else
16100   cat >conftest.$ac_ext <<_ACEOF
16101 /* confdefs.h.  */
16102 _ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h.  */
16106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16108 #define $ac_func innocuous_$ac_func
16109
16110 /* System header to define __stub macros and hopefully few prototypes,
16111     which can conflict with char $ac_func (); below.
16112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16113     <limits.h> exists even on freestanding compilers.  */
16114
16115 #ifdef __STDC__
16116 # include <limits.h>
16117 #else
16118 # include <assert.h>
16119 #endif
16120
16121 #undef $ac_func
16122
16123 /* Override any gcc2 internal prototype to avoid an error.  */
16124 #ifdef __cplusplus
16125 extern "C"
16126 {
16127 #endif
16128 /* We use char because int might match the return type of a gcc2
16129    builtin and then its argument prototype would still apply.  */
16130 char $ac_func ();
16131 /* The GNU C library defines this for functions which it implements
16132     to always fail with ENOSYS.  Some functions are actually named
16133     something starting with __ and the normal name is an alias.  */
16134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16135 choke me
16136 #else
16137 char (*f) () = $ac_func;
16138 #endif
16139 #ifdef __cplusplus
16140 }
16141 #endif
16142
16143 int
16144 main ()
16145 {
16146 return f != $ac_func;
16147   ;
16148   return 0;
16149 }
16150 _ACEOF
16151 rm -f conftest.$ac_objext conftest$ac_exeext
16152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16153   (eval $ac_link) 2>conftest.er1
16154   ac_status=$?
16155   grep -v '^ *+' conftest.er1 >conftest.err
16156   rm -f conftest.er1
16157   cat conftest.err >&5
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); } &&
16160          { ac_try='test -z "$ac_c_werror_flag"
16161                          || test ! -s conftest.err'
16162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163   (eval $ac_try) 2>&5
16164   ac_status=$?
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); }; } &&
16167          { ac_try='test -s conftest$ac_exeext'
16168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169   (eval $ac_try) 2>&5
16170   ac_status=$?
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   (exit $ac_status); }; }; then
16173   eval "$as_ac_var=yes"
16174 else
16175   echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16177
16178 eval "$as_ac_var=no"
16179 fi
16180 rm -f conftest.err conftest.$ac_objext \
16181       conftest$ac_exeext conftest.$ac_ext
16182 fi
16183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16185 if test `eval echo '${'$as_ac_var'}'` = yes; then
16186   cat >>confdefs.h <<_ACEOF
16187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16188 _ACEOF
16189
16190 fi
16191 done
16192
16193 fi
16194
16195 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
16196 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
16197 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
16198   echo $ECHO_N "(cached) $ECHO_C" >&6
16199 else
16200   cat >conftest.$ac_ext <<_ACEOF
16201 /* confdefs.h.  */
16202 _ACEOF
16203 cat confdefs.h >>conftest.$ac_ext
16204 cat >>conftest.$ac_ext <<_ACEOF
16205 /* end confdefs.h.  */
16206 #include <signal.h>
16207 /* NetBSD declares sys_siglist in unistd.h.  */
16208 #if HAVE_UNISTD_H
16209 # include <unistd.h>
16210 #endif
16211
16212
16213 int
16214 main ()
16215 {
16216 #ifndef sys_siglist
16217   char *p = (char *) sys_siglist;
16218 #endif
16219
16220   ;
16221   return 0;
16222 }
16223 _ACEOF
16224 rm -f conftest.$ac_objext
16225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16226   (eval $ac_compile) 2>conftest.er1
16227   ac_status=$?
16228   grep -v '^ *+' conftest.er1 >conftest.err
16229   rm -f conftest.er1
16230   cat conftest.err >&5
16231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232   (exit $ac_status); } &&
16233          { ac_try='test -z "$ac_c_werror_flag"
16234                          || test ! -s conftest.err'
16235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236   (eval $ac_try) 2>&5
16237   ac_status=$?
16238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239   (exit $ac_status); }; } &&
16240          { ac_try='test -s conftest.$ac_objext'
16241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16242   (eval $ac_try) 2>&5
16243   ac_status=$?
16244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245   (exit $ac_status); }; }; then
16246   ac_cv_have_decl_sys_siglist=yes
16247 else
16248   echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16250
16251 ac_cv_have_decl_sys_siglist=no
16252 fi
16253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16254 fi
16255 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
16256 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
16257 if test $ac_cv_have_decl_sys_siglist = yes; then
16258
16259 cat >>confdefs.h <<_ACEOF
16260 #define HAVE_DECL_SYS_SIGLIST 1
16261 _ACEOF
16262
16263
16264 else
16265   cat >>confdefs.h <<_ACEOF
16266 #define HAVE_DECL_SYS_SIGLIST 0
16267 _ACEOF
16268
16269
16270 fi
16271
16272
16273
16274
16275 if test "$ac_cv_func_inet_aton" != 'yes'; then
16276
16277 echo "$as_me:$LINENO: checking for inet_aton" >&5
16278 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
16279 if test "${bash_cv_func_inet_aton+set}" = set; then
16280   echo $ECHO_N "(cached) $ECHO_C" >&6
16281 else
16282   cat >conftest.$ac_ext <<_ACEOF
16283 /* confdefs.h.  */
16284 _ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h.  */
16288
16289 #include <sys/types.h>
16290 #include <netinet/in.h>
16291 #include <arpa/inet.h>
16292 struct in_addr ap;
16293 int
16294 main ()
16295 {
16296  inet_aton("127.0.0.1", &ap);
16297   ;
16298   return 0;
16299 }
16300 _ACEOF
16301 rm -f conftest.$ac_objext conftest$ac_exeext
16302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16303   (eval $ac_link) 2>conftest.er1
16304   ac_status=$?
16305   grep -v '^ *+' conftest.er1 >conftest.err
16306   rm -f conftest.er1
16307   cat conftest.err >&5
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); } &&
16310          { ac_try='test -z "$ac_c_werror_flag"
16311                          || test ! -s conftest.err'
16312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313   (eval $ac_try) 2>&5
16314   ac_status=$?
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); }; } &&
16317          { ac_try='test -s conftest$ac_exeext'
16318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319   (eval $ac_try) 2>&5
16320   ac_status=$?
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); }; }; then
16323   bash_cv_func_inet_aton=yes
16324 else
16325   echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16327
16328 bash_cv_func_inet_aton=no
16329 fi
16330 rm -f conftest.err conftest.$ac_objext \
16331       conftest$ac_exeext conftest.$ac_ext
16332 fi
16333 echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
16334 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
16335 if test $bash_cv_func_inet_aton = yes; then
16336   cat >>confdefs.h <<\_ACEOF
16337 #define HAVE_INET_ATON 1
16338 _ACEOF
16339
16340 else
16341   case $LIBOBJS in
16342     "inet_aton.$ac_objext"   | \
16343   *" inet_aton.$ac_objext"   | \
16344     "inet_aton.$ac_objext "* | \
16345   *" inet_aton.$ac_objext "* ) ;;
16346   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
16347 esac
16348
16349 fi
16350
16351 fi
16352
16353 case "$host_os" in
16354 irix4*)
16355 echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
16356 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
16357 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
16358   echo $ECHO_N "(cached) $ECHO_C" >&6
16359 else
16360   ac_check_lib_save_LIBS=$LIBS
16361 LIBS="-lsun  $LIBS"
16362 cat >conftest.$ac_ext <<_ACEOF
16363 /* confdefs.h.  */
16364 _ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h.  */
16368
16369 /* Override any gcc2 internal prototype to avoid an error.  */
16370 #ifdef __cplusplus
16371 extern "C"
16372 #endif
16373 /* We use char because int might match the return type of a gcc2
16374    builtin and then its argument prototype would still apply.  */
16375 char getpwent ();
16376 int
16377 main ()
16378 {
16379 getpwent ();
16380   ;
16381   return 0;
16382 }
16383 _ACEOF
16384 rm -f conftest.$ac_objext conftest$ac_exeext
16385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16386   (eval $ac_link) 2>conftest.er1
16387   ac_status=$?
16388   grep -v '^ *+' conftest.er1 >conftest.err
16389   rm -f conftest.er1
16390   cat conftest.err >&5
16391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); } &&
16393          { ac_try='test -z "$ac_c_werror_flag"
16394                          || test ! -s conftest.err'
16395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16396   (eval $ac_try) 2>&5
16397   ac_status=$?
16398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399   (exit $ac_status); }; } &&
16400          { ac_try='test -s conftest$ac_exeext'
16401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402   (eval $ac_try) 2>&5
16403   ac_status=$?
16404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405   (exit $ac_status); }; }; then
16406   ac_cv_lib_sun_getpwent=yes
16407 else
16408   echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16410
16411 ac_cv_lib_sun_getpwent=no
16412 fi
16413 rm -f conftest.err conftest.$ac_objext \
16414       conftest$ac_exeext conftest.$ac_ext
16415 LIBS=$ac_check_lib_save_LIBS
16416 fi
16417 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
16418 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
16419 if test $ac_cv_lib_sun_getpwent = yes; then
16420   cat >>confdefs.h <<_ACEOF
16421 #define HAVE_LIBSUN 1
16422 _ACEOF
16423
16424   LIBS="-lsun $LIBS"
16425
16426 fi
16427  ;;
16428 esac
16429
16430 if test "$ac_cv_func_getpeername" = no; then
16431
16432 if test "X$bash_cv_have_socklib" = "X"; then
16433 _bash_needmsg=
16434 else
16435 echo "$as_me:$LINENO: checking for socket library" >&5
16436 echo $ECHO_N "checking for socket library... $ECHO_C" >&6
16437 _bash_needmsg=yes
16438 fi
16439 if test "${bash_cv_have_socklib+set}" = set; then
16440   echo $ECHO_N "(cached) $ECHO_C" >&6
16441 else
16442   echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
16443 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
16444 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
16445   echo $ECHO_N "(cached) $ECHO_C" >&6
16446 else
16447   ac_check_lib_save_LIBS=$LIBS
16448 LIBS="-lsocket -lnsl $LIBS"
16449 cat >conftest.$ac_ext <<_ACEOF
16450 /* confdefs.h.  */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h.  */
16455
16456 /* Override any gcc2 internal prototype to avoid an error.  */
16457 #ifdef __cplusplus
16458 extern "C"
16459 #endif
16460 /* We use char because int might match the return type of a gcc2
16461    builtin and then its argument prototype would still apply.  */
16462 char getpeername ();
16463 int
16464 main ()
16465 {
16466 getpeername ();
16467   ;
16468   return 0;
16469 }
16470 _ACEOF
16471 rm -f conftest.$ac_objext conftest$ac_exeext
16472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16473   (eval $ac_link) 2>conftest.er1
16474   ac_status=$?
16475   grep -v '^ *+' conftest.er1 >conftest.err
16476   rm -f conftest.er1
16477   cat conftest.err >&5
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); } &&
16480          { ac_try='test -z "$ac_c_werror_flag"
16481                          || test ! -s conftest.err'
16482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483   (eval $ac_try) 2>&5
16484   ac_status=$?
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); }; } &&
16487          { ac_try='test -s conftest$ac_exeext'
16488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489   (eval $ac_try) 2>&5
16490   ac_status=$?
16491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492   (exit $ac_status); }; }; then
16493   ac_cv_lib_socket_getpeername=yes
16494 else
16495   echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16497
16498 ac_cv_lib_socket_getpeername=no
16499 fi
16500 rm -f conftest.err conftest.$ac_objext \
16501       conftest$ac_exeext conftest.$ac_ext
16502 LIBS=$ac_check_lib_save_LIBS
16503 fi
16504 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
16505 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
16506 if test $ac_cv_lib_socket_getpeername = yes; then
16507   bash_cv_have_socklib=yes
16508 else
16509   bash_cv_have_socklib=no
16510 fi
16511
16512 fi
16513
16514 if test "X$_bash_needmsg" = Xyes; then
16515   echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
16516 echo "${ECHO_T}$bash_cv_have_socklib" >&6
16517   _bash_needmsg=
16518 fi
16519 if test $bash_cv_have_socklib = yes; then
16520   # check for libnsl, add it to LIBS if present
16521   if test "X$bash_cv_have_libnsl" = "X"; then
16522     _bash_needmsg=
16523   else
16524     echo "$as_me:$LINENO: checking for libnsl" >&5
16525 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
16526     _bash_needmsg=yes
16527   fi
16528   if test "${bash_cv_have_libnsl+set}" = set; then
16529   echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531   echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
16532 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
16533 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
16534   echo $ECHO_N "(cached) $ECHO_C" >&6
16535 else
16536   ac_check_lib_save_LIBS=$LIBS
16537 LIBS="-lnsl  $LIBS"
16538 cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h.  */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h.  */
16544
16545 /* Override any gcc2 internal prototype to avoid an error.  */
16546 #ifdef __cplusplus
16547 extern "C"
16548 #endif
16549 /* We use char because int might match the return type of a gcc2
16550    builtin and then its argument prototype would still apply.  */
16551 char t_open ();
16552 int
16553 main ()
16554 {
16555 t_open ();
16556   ;
16557   return 0;
16558 }
16559 _ACEOF
16560 rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16562   (eval $ac_link) 2>conftest.er1
16563   ac_status=$?
16564   grep -v '^ *+' conftest.er1 >conftest.err
16565   rm -f conftest.er1
16566   cat conftest.err >&5
16567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568   (exit $ac_status); } &&
16569          { ac_try='test -z "$ac_c_werror_flag"
16570                          || test ! -s conftest.err'
16571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572   (eval $ac_try) 2>&5
16573   ac_status=$?
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); }; } &&
16576          { ac_try='test -s conftest$ac_exeext'
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_cv_lib_nsl_t_open=yes
16583 else
16584   echo "$as_me: failed program was:" >&5
16585 sed 's/^/| /' conftest.$ac_ext >&5
16586
16587 ac_cv_lib_nsl_t_open=no
16588 fi
16589 rm -f conftest.err conftest.$ac_objext \
16590       conftest$ac_exeext conftest.$ac_ext
16591 LIBS=$ac_check_lib_save_LIBS
16592 fi
16593 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
16594 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
16595 if test $ac_cv_lib_nsl_t_open = yes; then
16596   bash_cv_have_libnsl=yes
16597 else
16598   bash_cv_have_libnsl=no
16599 fi
16600
16601 fi
16602
16603   if test "X$_bash_needmsg" = Xyes; then
16604     echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
16605 echo "${ECHO_T}$bash_cv_have_libnsl" >&6
16606     _bash_needmsg=
16607   fi
16608   if test $bash_cv_have_libnsl = yes; then
16609     LIBS="-lsocket -lnsl $LIBS"
16610   else
16611     LIBS="-lsocket $LIBS"
16612   fi
16613   cat >>confdefs.h <<\_ACEOF
16614 #define HAVE_LIBSOCKET 1
16615 _ACEOF
16616
16617   cat >>confdefs.h <<\_ACEOF
16618 #define HAVE_GETPEERNAME 1
16619 _ACEOF
16620
16621 fi
16622
16623 fi
16624 if test "$ac_cv_func_gethostbyname" = no; then
16625         if test "X$bash_cv_have_gethostbyname" = "X"; then
16626 _bash_needmsg=yes
16627 else
16628 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
16629 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
16630 _bash_needmsg=
16631 fi
16632 if test "${bash_cv_have_gethostbyname+set}" = set; then
16633   echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635   cat >conftest.$ac_ext <<_ACEOF
16636 /* confdefs.h.  */
16637 _ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h.  */
16641 #include <netdb.h>
16642 int
16643 main ()
16644 {
16645  struct hostent *hp;
16646   hp = gethostbyname("localhost");
16647
16648   ;
16649   return 0;
16650 }
16651 _ACEOF
16652 rm -f conftest.$ac_objext conftest$ac_exeext
16653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16654   (eval $ac_link) 2>conftest.er1
16655   ac_status=$?
16656   grep -v '^ *+' conftest.er1 >conftest.err
16657   rm -f conftest.er1
16658   cat conftest.err >&5
16659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660   (exit $ac_status); } &&
16661          { ac_try='test -z "$ac_c_werror_flag"
16662                          || test ! -s conftest.err'
16663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664   (eval $ac_try) 2>&5
16665   ac_status=$?
16666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667   (exit $ac_status); }; } &&
16668          { ac_try='test -s conftest$ac_exeext'
16669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670   (eval $ac_try) 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); }; }; then
16674   bash_cv_have_gethostbyname=yes
16675 else
16676   echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16678
16679 bash_cv_have_gethostbyname=no
16680 fi
16681 rm -f conftest.err conftest.$ac_objext \
16682       conftest$ac_exeext conftest.$ac_ext
16683
16684 fi
16685
16686 if test "X$_bash_needmsg" = Xyes; then
16687     echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
16688 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
16689 fi
16690 echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
16691 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
16692 if test "$bash_cv_have_gethostbyname" = yes; then
16693 cat >>confdefs.h <<\_ACEOF
16694 #define HAVE_GETHOSTBYNAME 1
16695 _ACEOF
16696
16697 fi
16698
16699 fi
16700
16701 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
16702 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
16703 if test "${ac_cv_type_uid_t+set}" = set; then
16704   echo $ECHO_N "(cached) $ECHO_C" >&6
16705 else
16706   cat >conftest.$ac_ext <<_ACEOF
16707 /* confdefs.h.  */
16708 _ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h.  */
16712 #include <sys/types.h>
16713
16714 _ACEOF
16715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16716   $EGREP "uid_t" >/dev/null 2>&1; then
16717   ac_cv_type_uid_t=yes
16718 else
16719   ac_cv_type_uid_t=no
16720 fi
16721 rm -f conftest*
16722
16723 fi
16724 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
16725 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
16726 if test $ac_cv_type_uid_t = no; then
16727
16728 cat >>confdefs.h <<\_ACEOF
16729 #define uid_t int
16730 _ACEOF
16731
16732
16733 cat >>confdefs.h <<\_ACEOF
16734 #define gid_t int
16735 _ACEOF
16736
16737 fi
16738
16739 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
16740 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
16741 if test "${ac_cv_type_getgroups+set}" = set; then
16742   echo $ECHO_N "(cached) $ECHO_C" >&6
16743 else
16744   if test "$cross_compiling" = yes; then
16745   ac_cv_type_getgroups=cross
16746 else
16747   cat >conftest.$ac_ext <<_ACEOF
16748 /* confdefs.h.  */
16749 _ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h.  */
16753 /* Thanks to Mike Rendell for this test.  */
16754 #include <sys/types.h>
16755 #define NGID 256
16756 #undef MAX
16757 #define MAX(x, y) ((x) > (y) ? (x) : (y))
16758
16759 int
16760 main ()
16761 {
16762   gid_t gidset[NGID];
16763   int i, n;
16764   union { gid_t gval; long lval; }  val;
16765
16766   val.lval = -1;
16767   for (i = 0; i < NGID; i++)
16768     gidset[i] = val.gval;
16769   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16770                  gidset);
16771   /* Exit non-zero if getgroups seems to require an array of ints.  This
16772      happens when gid_t is short but getgroups modifies an array of ints.  */
16773   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
16774 }
16775 _ACEOF
16776 rm -f conftest$ac_exeext
16777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16778   (eval $ac_link) 2>&5
16779   ac_status=$?
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783   (eval $ac_try) 2>&5
16784   ac_status=$?
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); }; }; then
16787   ac_cv_type_getgroups=gid_t
16788 else
16789   echo "$as_me: program exited with status $ac_status" >&5
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16792
16793 ( exit $ac_status )
16794 ac_cv_type_getgroups=int
16795 fi
16796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16797 fi
16798 if test $ac_cv_type_getgroups = cross; then
16799         cat >conftest.$ac_ext <<_ACEOF
16800 /* confdefs.h.  */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h.  */
16805 #include <unistd.h>
16806
16807 _ACEOF
16808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16809   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
16810   ac_cv_type_getgroups=gid_t
16811 else
16812   ac_cv_type_getgroups=int
16813 fi
16814 rm -f conftest*
16815
16816 fi
16817 fi
16818 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
16819 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
16820
16821 cat >>confdefs.h <<_ACEOF
16822 #define GETGROUPS_T $ac_cv_type_getgroups
16823 _ACEOF
16824
16825
16826 echo "$as_me:$LINENO: checking for off_t" >&5
16827 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
16828 if test "${ac_cv_type_off_t+set}" = set; then
16829   echo $ECHO_N "(cached) $ECHO_C" >&6
16830 else
16831   cat >conftest.$ac_ext <<_ACEOF
16832 /* confdefs.h.  */
16833 _ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h.  */
16837 $ac_includes_default
16838 int
16839 main ()
16840 {
16841 if ((off_t *) 0)
16842   return 0;
16843 if (sizeof (off_t))
16844   return 0;
16845   ;
16846   return 0;
16847 }
16848 _ACEOF
16849 rm -f conftest.$ac_objext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16851   (eval $ac_compile) 2>conftest.er1
16852   ac_status=$?
16853   grep -v '^ *+' conftest.er1 >conftest.err
16854   rm -f conftest.er1
16855   cat conftest.err >&5
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); } &&
16858          { ac_try='test -z "$ac_c_werror_flag"
16859                          || test ! -s conftest.err'
16860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861   (eval $ac_try) 2>&5
16862   ac_status=$?
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); }; } &&
16865          { ac_try='test -s conftest.$ac_objext'
16866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867   (eval $ac_try) 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); }; }; then
16871   ac_cv_type_off_t=yes
16872 else
16873   echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16875
16876 ac_cv_type_off_t=no
16877 fi
16878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16879 fi
16880 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16881 echo "${ECHO_T}$ac_cv_type_off_t" >&6
16882 if test $ac_cv_type_off_t = yes; then
16883   :
16884 else
16885
16886 cat >>confdefs.h <<_ACEOF
16887 #define off_t long
16888 _ACEOF
16889
16890 fi
16891
16892 echo "$as_me:$LINENO: checking for mode_t" >&5
16893 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
16894 if test "${ac_cv_type_mode_t+set}" = set; then
16895   echo $ECHO_N "(cached) $ECHO_C" >&6
16896 else
16897   cat >conftest.$ac_ext <<_ACEOF
16898 /* confdefs.h.  */
16899 _ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h.  */
16903 $ac_includes_default
16904 int
16905 main ()
16906 {
16907 if ((mode_t *) 0)
16908   return 0;
16909 if (sizeof (mode_t))
16910   return 0;
16911   ;
16912   return 0;
16913 }
16914 _ACEOF
16915 rm -f conftest.$ac_objext
16916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16917   (eval $ac_compile) 2>conftest.er1
16918   ac_status=$?
16919   grep -v '^ *+' conftest.er1 >conftest.err
16920   rm -f conftest.er1
16921   cat conftest.err >&5
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); } &&
16924          { ac_try='test -z "$ac_c_werror_flag"
16925                          || test ! -s conftest.err'
16926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927   (eval $ac_try) 2>&5
16928   ac_status=$?
16929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); }; } &&
16931          { ac_try='test -s conftest.$ac_objext'
16932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933   (eval $ac_try) 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); }; }; then
16937   ac_cv_type_mode_t=yes
16938 else
16939   echo "$as_me: failed program was:" >&5
16940 sed 's/^/| /' conftest.$ac_ext >&5
16941
16942 ac_cv_type_mode_t=no
16943 fi
16944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16945 fi
16946 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16947 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
16948 if test $ac_cv_type_mode_t = yes; then
16949   :
16950 else
16951
16952 cat >>confdefs.h <<_ACEOF
16953 #define mode_t int
16954 _ACEOF
16955
16956 fi
16957
16958 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
16959 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
16960 if test "${ac_cv_type_uid_t+set}" = set; then
16961   echo $ECHO_N "(cached) $ECHO_C" >&6
16962 else
16963   cat >conftest.$ac_ext <<_ACEOF
16964 /* confdefs.h.  */
16965 _ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h.  */
16969 #include <sys/types.h>
16970
16971 _ACEOF
16972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16973   $EGREP "uid_t" >/dev/null 2>&1; then
16974   ac_cv_type_uid_t=yes
16975 else
16976   ac_cv_type_uid_t=no
16977 fi
16978 rm -f conftest*
16979
16980 fi
16981 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
16982 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
16983 if test $ac_cv_type_uid_t = no; then
16984
16985 cat >>confdefs.h <<\_ACEOF
16986 #define uid_t int
16987 _ACEOF
16988
16989
16990 cat >>confdefs.h <<\_ACEOF
16991 #define gid_t int
16992 _ACEOF
16993
16994 fi
16995
16996 echo "$as_me:$LINENO: checking for pid_t" >&5
16997 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16998 if test "${ac_cv_type_pid_t+set}" = set; then
16999   echo $ECHO_N "(cached) $ECHO_C" >&6
17000 else
17001   cat >conftest.$ac_ext <<_ACEOF
17002 /* confdefs.h.  */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h.  */
17007 $ac_includes_default
17008 int
17009 main ()
17010 {
17011 if ((pid_t *) 0)
17012   return 0;
17013 if (sizeof (pid_t))
17014   return 0;
17015   ;
17016   return 0;
17017 }
17018 _ACEOF
17019 rm -f conftest.$ac_objext
17020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17021   (eval $ac_compile) 2>conftest.er1
17022   ac_status=$?
17023   grep -v '^ *+' conftest.er1 >conftest.err
17024   rm -f conftest.er1
17025   cat conftest.err >&5
17026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027   (exit $ac_status); } &&
17028          { ac_try='test -z "$ac_c_werror_flag"
17029                          || test ! -s conftest.err'
17030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031   (eval $ac_try) 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); }; } &&
17035          { ac_try='test -s conftest.$ac_objext'
17036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037   (eval $ac_try) 2>&5
17038   ac_status=$?
17039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040   (exit $ac_status); }; }; then
17041   ac_cv_type_pid_t=yes
17042 else
17043   echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17045
17046 ac_cv_type_pid_t=no
17047 fi
17048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17049 fi
17050 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17051 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17052 if test $ac_cv_type_pid_t = yes; then
17053   :
17054 else
17055
17056 cat >>confdefs.h <<_ACEOF
17057 #define pid_t int
17058 _ACEOF
17059
17060 fi
17061
17062 echo "$as_me:$LINENO: checking for size_t" >&5
17063 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17064 if test "${ac_cv_type_size_t+set}" = set; then
17065   echo $ECHO_N "(cached) $ECHO_C" >&6
17066 else
17067   cat >conftest.$ac_ext <<_ACEOF
17068 /* confdefs.h.  */
17069 _ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h.  */
17073 $ac_includes_default
17074 int
17075 main ()
17076 {
17077 if ((size_t *) 0)
17078   return 0;
17079 if (sizeof (size_t))
17080   return 0;
17081   ;
17082   return 0;
17083 }
17084 _ACEOF
17085 rm -f conftest.$ac_objext
17086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17087   (eval $ac_compile) 2>conftest.er1
17088   ac_status=$?
17089   grep -v '^ *+' conftest.er1 >conftest.err
17090   rm -f conftest.er1
17091   cat conftest.err >&5
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); } &&
17094          { ac_try='test -z "$ac_c_werror_flag"
17095                          || test ! -s conftest.err'
17096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097   (eval $ac_try) 2>&5
17098   ac_status=$?
17099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100   (exit $ac_status); }; } &&
17101          { ac_try='test -s conftest.$ac_objext'
17102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103   (eval $ac_try) 2>&5
17104   ac_status=$?
17105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106   (exit $ac_status); }; }; then
17107   ac_cv_type_size_t=yes
17108 else
17109   echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17111
17112 ac_cv_type_size_t=no
17113 fi
17114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17115 fi
17116 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17117 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17118 if test $ac_cv_type_size_t = yes; then
17119   :
17120 else
17121
17122 cat >>confdefs.h <<_ACEOF
17123 #define size_t unsigned
17124 _ACEOF
17125
17126 fi
17127
17128 echo "$as_me:$LINENO: checking for ssize_t" >&5
17129 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17130 if test "${ac_cv_type_ssize_t+set}" = set; then
17131   echo $ECHO_N "(cached) $ECHO_C" >&6
17132 else
17133   cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h.  */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h.  */
17139 $ac_includes_default
17140 int
17141 main ()
17142 {
17143 if ((ssize_t *) 0)
17144   return 0;
17145 if (sizeof (ssize_t))
17146   return 0;
17147   ;
17148   return 0;
17149 }
17150 _ACEOF
17151 rm -f conftest.$ac_objext
17152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17153   (eval $ac_compile) 2>conftest.er1
17154   ac_status=$?
17155   grep -v '^ *+' conftest.er1 >conftest.err
17156   rm -f conftest.er1
17157   cat conftest.err >&5
17158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159   (exit $ac_status); } &&
17160          { ac_try='test -z "$ac_c_werror_flag"
17161                          || test ! -s conftest.err'
17162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163   (eval $ac_try) 2>&5
17164   ac_status=$?
17165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166   (exit $ac_status); }; } &&
17167          { ac_try='test -s conftest.$ac_objext'
17168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169   (eval $ac_try) 2>&5
17170   ac_status=$?
17171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172   (exit $ac_status); }; }; then
17173   ac_cv_type_ssize_t=yes
17174 else
17175   echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17177
17178 ac_cv_type_ssize_t=no
17179 fi
17180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17181 fi
17182 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17183 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17184 if test $ac_cv_type_ssize_t = yes; then
17185   :
17186 else
17187
17188 cat >>confdefs.h <<_ACEOF
17189 #define ssize_t int
17190 _ACEOF
17191
17192 fi
17193
17194 echo "$as_me:$LINENO: checking for time_t" >&5
17195 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
17196 if test "${ac_cv_type_time_t+set}" = set; then
17197   echo $ECHO_N "(cached) $ECHO_C" >&6
17198 else
17199   cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h.  */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h.  */
17205 $ac_includes_default
17206 int
17207 main ()
17208 {
17209 if ((time_t *) 0)
17210   return 0;
17211 if (sizeof (time_t))
17212   return 0;
17213   ;
17214   return 0;
17215 }
17216 _ACEOF
17217 rm -f conftest.$ac_objext
17218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17219   (eval $ac_compile) 2>conftest.er1
17220   ac_status=$?
17221   grep -v '^ *+' conftest.er1 >conftest.err
17222   rm -f conftest.er1
17223   cat conftest.err >&5
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); } &&
17226          { ac_try='test -z "$ac_c_werror_flag"
17227                          || test ! -s conftest.err'
17228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229   (eval $ac_try) 2>&5
17230   ac_status=$?
17231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232   (exit $ac_status); }; } &&
17233          { ac_try='test -s conftest.$ac_objext'
17234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235   (eval $ac_try) 2>&5
17236   ac_status=$?
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); }; }; then
17239   ac_cv_type_time_t=yes
17240 else
17241   echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17243
17244 ac_cv_type_time_t=no
17245 fi
17246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17247 fi
17248 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
17249 echo "${ECHO_T}$ac_cv_type_time_t" >&6
17250 if test $ac_cv_type_time_t = yes; then
17251   :
17252 else
17253
17254 cat >>confdefs.h <<_ACEOF
17255 #define time_t long
17256 _ACEOF
17257
17258 fi
17259
17260
17261
17262 echo "$as_me:$LINENO: checking for long long" >&5
17263 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17264 if test "${bash_cv_type_long_long+set}" = set; then
17265   echo $ECHO_N "(cached) $ECHO_C" >&6
17266 else
17267   cat >conftest.$ac_ext <<_ACEOF
17268 /* confdefs.h.  */
17269 _ACEOF
17270 cat confdefs.h >>conftest.$ac_ext
17271 cat >>conftest.$ac_ext <<_ACEOF
17272 /* end confdefs.h.  */
17273
17274 long long ll = 1; int i = 63;
17275 int
17276 main ()
17277 {
17278
17279 long long llm = (long long) -1;
17280 return ll << i | ll >> i | llm / ll | llm % ll;
17281
17282   ;
17283   return 0;
17284 }
17285 _ACEOF
17286 rm -f conftest.$ac_objext conftest$ac_exeext
17287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17288   (eval $ac_link) 2>conftest.er1
17289   ac_status=$?
17290   grep -v '^ *+' conftest.er1 >conftest.err
17291   rm -f conftest.er1
17292   cat conftest.err >&5
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); } &&
17295          { ac_try='test -z "$ac_c_werror_flag"
17296                          || test ! -s conftest.err'
17297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298   (eval $ac_try) 2>&5
17299   ac_status=$?
17300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301   (exit $ac_status); }; } &&
17302          { ac_try='test -s conftest$ac_exeext'
17303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304   (eval $ac_try) 2>&5
17305   ac_status=$?
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); }; }; then
17308   bash_cv_type_long_long='long long'
17309 else
17310   echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17312
17313 bash_cv_type_long_long='long'
17314 fi
17315 rm -f conftest.err conftest.$ac_objext \
17316       conftest$ac_exeext conftest.$ac_ext
17317 fi
17318 echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
17319 echo "${ECHO_T}$bash_cv_type_long_long" >&6
17320 if test "$bash_cv_type_long_long" = 'long long'; then
17321   cat >>confdefs.h <<\_ACEOF
17322 #define HAVE_LONG_LONG 1
17323 _ACEOF
17324
17325 fi
17326
17327
17328 echo "$as_me:$LINENO: checking for unsigned long long" >&5
17329 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
17330 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
17331   echo $ECHO_N "(cached) $ECHO_C" >&6
17332 else
17333   cat >conftest.$ac_ext <<_ACEOF
17334 /* confdefs.h.  */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h.  */
17339
17340 unsigned long long ull = 1; int i = 63;
17341 int
17342 main ()
17343 {
17344
17345 unsigned long long ullmax = (unsigned long long) -1;
17346 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
17347
17348   ;
17349   return 0;
17350 }
17351 _ACEOF
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17354   (eval $ac_link) 2>conftest.er1
17355   ac_status=$?
17356   grep -v '^ *+' conftest.er1 >conftest.err
17357   rm -f conftest.er1
17358   cat conftest.err >&5
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); } &&
17361          { ac_try='test -z "$ac_c_werror_flag"
17362                          || test ! -s conftest.err'
17363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364   (eval $ac_try) 2>&5
17365   ac_status=$?
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); }; } &&
17368          { ac_try='test -s conftest$ac_exeext'
17369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370   (eval $ac_try) 2>&5
17371   ac_status=$?
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); }; }; then
17374   bash_cv_type_unsigned_long_long='unsigned long long'
17375 else
17376   echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17378
17379 bash_cv_type_unsigned_long_long='unsigned long'
17380 fi
17381 rm -f conftest.err conftest.$ac_objext \
17382       conftest$ac_exeext conftest.$ac_ext
17383 fi
17384 echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
17385 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
17386 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
17387   cat >>confdefs.h <<\_ACEOF
17388 #define HAVE_UNSIGNED_LONG_LONG 1
17389 _ACEOF
17390
17391 fi
17392
17393
17394 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
17395 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
17396 if test "${ac_cv_type_signal+set}" = set; then
17397   echo $ECHO_N "(cached) $ECHO_C" >&6
17398 else
17399   cat >conftest.$ac_ext <<_ACEOF
17400 /* confdefs.h.  */
17401 _ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h.  */
17405 #include <sys/types.h>
17406 #include <signal.h>
17407 #ifdef signal
17408 # undef signal
17409 #endif
17410 #ifdef __cplusplus
17411 extern "C" void (*signal (int, void (*)(int)))(int);
17412 #else
17413 void (*signal ()) ();
17414 #endif
17415
17416 int
17417 main ()
17418 {
17419 int i;
17420   ;
17421   return 0;
17422 }
17423 _ACEOF
17424 rm -f conftest.$ac_objext
17425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17426   (eval $ac_compile) 2>conftest.er1
17427   ac_status=$?
17428   grep -v '^ *+' conftest.er1 >conftest.err
17429   rm -f conftest.er1
17430   cat conftest.err >&5
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); } &&
17433          { ac_try='test -z "$ac_c_werror_flag"
17434                          || test ! -s conftest.err'
17435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436   (eval $ac_try) 2>&5
17437   ac_status=$?
17438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439   (exit $ac_status); }; } &&
17440          { ac_try='test -s conftest.$ac_objext'
17441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442   (eval $ac_try) 2>&5
17443   ac_status=$?
17444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445   (exit $ac_status); }; }; then
17446   ac_cv_type_signal=void
17447 else
17448   echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451 ac_cv_type_signal=int
17452 fi
17453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17454 fi
17455 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
17456 echo "${ECHO_T}$ac_cv_type_signal" >&6
17457
17458 cat >>confdefs.h <<_ACEOF
17459 #define RETSIGTYPE $ac_cv_type_signal
17460 _ACEOF
17461
17462
17463
17464 echo "$as_me:$LINENO: checking for char" >&5
17465 echo $ECHO_N "checking for char... $ECHO_C" >&6
17466 if test "${ac_cv_type_char+set}" = set; then
17467   echo $ECHO_N "(cached) $ECHO_C" >&6
17468 else
17469   cat >conftest.$ac_ext <<_ACEOF
17470 /* confdefs.h.  */
17471 _ACEOF
17472 cat confdefs.h >>conftest.$ac_ext
17473 cat >>conftest.$ac_ext <<_ACEOF
17474 /* end confdefs.h.  */
17475 $ac_includes_default
17476 int
17477 main ()
17478 {
17479 if ((char *) 0)
17480   return 0;
17481 if (sizeof (char))
17482   return 0;
17483   ;
17484   return 0;
17485 }
17486 _ACEOF
17487 rm -f conftest.$ac_objext
17488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17489   (eval $ac_compile) 2>conftest.er1
17490   ac_status=$?
17491   grep -v '^ *+' conftest.er1 >conftest.err
17492   rm -f conftest.er1
17493   cat conftest.err >&5
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); } &&
17496          { ac_try='test -z "$ac_c_werror_flag"
17497                          || test ! -s conftest.err'
17498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499   (eval $ac_try) 2>&5
17500   ac_status=$?
17501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); }; } &&
17503          { ac_try='test -s conftest.$ac_objext'
17504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505   (eval $ac_try) 2>&5
17506   ac_status=$?
17507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508   (exit $ac_status); }; }; then
17509   ac_cv_type_char=yes
17510 else
17511   echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17513
17514 ac_cv_type_char=no
17515 fi
17516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17517 fi
17518 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17519 echo "${ECHO_T}$ac_cv_type_char" >&6
17520
17521 echo "$as_me:$LINENO: checking size of char" >&5
17522 echo $ECHO_N "checking size of char... $ECHO_C" >&6
17523 if test "${ac_cv_sizeof_char+set}" = set; then
17524   echo $ECHO_N "(cached) $ECHO_C" >&6
17525 else
17526   if test "$ac_cv_type_char" = yes; then
17527   # The cast to unsigned long works around a bug in the HP C Compiler
17528   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17529   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17530   # This bug is HP SR number 8606223364.
17531   if test "$cross_compiling" = yes; then
17532   # Depending upon the size, compute the lo and hi bounds.
17533 cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h.  */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h.  */
17539 $ac_includes_default
17540 int
17541 main ()
17542 {
17543 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17544 test_array [0] = 0
17545
17546   ;
17547   return 0;
17548 }
17549 _ACEOF
17550 rm -f conftest.$ac_objext
17551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17552   (eval $ac_compile) 2>conftest.er1
17553   ac_status=$?
17554   grep -v '^ *+' conftest.er1 >conftest.err
17555   rm -f conftest.er1
17556   cat conftest.err >&5
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); } &&
17559          { ac_try='test -z "$ac_c_werror_flag"
17560                          || test ! -s conftest.err'
17561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562   (eval $ac_try) 2>&5
17563   ac_status=$?
17564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); }; } &&
17566          { ac_try='test -s conftest.$ac_objext'
17567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568   (eval $ac_try) 2>&5
17569   ac_status=$?
17570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571   (exit $ac_status); }; }; then
17572   ac_lo=0 ac_mid=0
17573   while :; do
17574     cat >conftest.$ac_ext <<_ACEOF
17575 /* confdefs.h.  */
17576 _ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h.  */
17580 $ac_includes_default
17581 int
17582 main ()
17583 {
17584 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17585 test_array [0] = 0
17586
17587   ;
17588   return 0;
17589 }
17590 _ACEOF
17591 rm -f conftest.$ac_objext
17592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17593   (eval $ac_compile) 2>conftest.er1
17594   ac_status=$?
17595   grep -v '^ *+' conftest.er1 >conftest.err
17596   rm -f conftest.er1
17597   cat conftest.err >&5
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); } &&
17600          { ac_try='test -z "$ac_c_werror_flag"
17601                          || test ! -s conftest.err'
17602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603   (eval $ac_try) 2>&5
17604   ac_status=$?
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); }; } &&
17607          { ac_try='test -s conftest.$ac_objext'
17608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609   (eval $ac_try) 2>&5
17610   ac_status=$?
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); }; }; then
17613   ac_hi=$ac_mid; break
17614 else
17615   echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17617
17618 ac_lo=`expr $ac_mid + 1`
17619                     if test $ac_lo -le $ac_mid; then
17620                       ac_lo= ac_hi=
17621                       break
17622                     fi
17623                     ac_mid=`expr 2 '*' $ac_mid + 1`
17624 fi
17625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17626   done
17627 else
17628   echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17630
17631 cat >conftest.$ac_ext <<_ACEOF
17632 /* confdefs.h.  */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h.  */
17637 $ac_includes_default
17638 int
17639 main ()
17640 {
17641 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17642 test_array [0] = 0
17643
17644   ;
17645   return 0;
17646 }
17647 _ACEOF
17648 rm -f conftest.$ac_objext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17650   (eval $ac_compile) 2>conftest.er1
17651   ac_status=$?
17652   grep -v '^ *+' conftest.er1 >conftest.err
17653   rm -f conftest.er1
17654   cat conftest.err >&5
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); } &&
17657          { ac_try='test -z "$ac_c_werror_flag"
17658                          || test ! -s conftest.err'
17659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660   (eval $ac_try) 2>&5
17661   ac_status=$?
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); }; } &&
17664          { ac_try='test -s conftest.$ac_objext'
17665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666   (eval $ac_try) 2>&5
17667   ac_status=$?
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); }; }; then
17670   ac_hi=-1 ac_mid=-1
17671   while :; do
17672     cat >conftest.$ac_ext <<_ACEOF
17673 /* confdefs.h.  */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h.  */
17678 $ac_includes_default
17679 int
17680 main ()
17681 {
17682 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17683 test_array [0] = 0
17684
17685   ;
17686   return 0;
17687 }
17688 _ACEOF
17689 rm -f conftest.$ac_objext
17690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17691   (eval $ac_compile) 2>conftest.er1
17692   ac_status=$?
17693   grep -v '^ *+' conftest.er1 >conftest.err
17694   rm -f conftest.er1
17695   cat conftest.err >&5
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); } &&
17698          { ac_try='test -z "$ac_c_werror_flag"
17699                          || test ! -s conftest.err'
17700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701   (eval $ac_try) 2>&5
17702   ac_status=$?
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); }; } &&
17705          { ac_try='test -s conftest.$ac_objext'
17706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707   (eval $ac_try) 2>&5
17708   ac_status=$?
17709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710   (exit $ac_status); }; }; then
17711   ac_lo=$ac_mid; break
17712 else
17713   echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17715
17716 ac_hi=`expr '(' $ac_mid ')' - 1`
17717                        if test $ac_mid -le $ac_hi; then
17718                          ac_lo= ac_hi=
17719                          break
17720                        fi
17721                        ac_mid=`expr 2 '*' $ac_mid`
17722 fi
17723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17724   done
17725 else
17726   echo "$as_me: failed program was:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17728
17729 ac_lo= ac_hi=
17730 fi
17731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17732 fi
17733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17734 # Binary search between lo and hi bounds.
17735 while test "x$ac_lo" != "x$ac_hi"; do
17736   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17737   cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h.  */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h.  */
17743 $ac_includes_default
17744 int
17745 main ()
17746 {
17747 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17748 test_array [0] = 0
17749
17750   ;
17751   return 0;
17752 }
17753 _ACEOF
17754 rm -f conftest.$ac_objext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17756   (eval $ac_compile) 2>conftest.er1
17757   ac_status=$?
17758   grep -v '^ *+' conftest.er1 >conftest.err
17759   rm -f conftest.er1
17760   cat conftest.err >&5
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); } &&
17763          { ac_try='test -z "$ac_c_werror_flag"
17764                          || test ! -s conftest.err'
17765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766   (eval $ac_try) 2>&5
17767   ac_status=$?
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); }; } &&
17770          { ac_try='test -s conftest.$ac_objext'
17771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772   (eval $ac_try) 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; }; then
17776   ac_hi=$ac_mid
17777 else
17778   echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17780
17781 ac_lo=`expr '(' $ac_mid ')' + 1`
17782 fi
17783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17784 done
17785 case $ac_lo in
17786 ?*) ac_cv_sizeof_char=$ac_lo;;
17787 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17788 See \`config.log' for more details." >&5
17789 echo "$as_me: error: cannot compute sizeof (char), 77
17790 See \`config.log' for more details." >&2;}
17791    { (exit 1); exit 1; }; } ;;
17792 esac
17793 else
17794   if test "$cross_compiling" = yes; then
17795   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17796 See \`config.log' for more details." >&5
17797 echo "$as_me: error: cannot run test program while cross compiling
17798 See \`config.log' for more details." >&2;}
17799    { (exit 1); exit 1; }; }
17800 else
17801   cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h.  */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h.  */
17807 $ac_includes_default
17808 long longval () { return (long) (sizeof (char)); }
17809 unsigned long ulongval () { return (long) (sizeof (char)); }
17810 #include <stdio.h>
17811 #include <stdlib.h>
17812 int
17813 main ()
17814 {
17815
17816   FILE *f = fopen ("conftest.val", "w");
17817   if (! f)
17818     exit (1);
17819   if (((long) (sizeof (char))) < 0)
17820     {
17821       long i = longval ();
17822       if (i != ((long) (sizeof (char))))
17823         exit (1);
17824       fprintf (f, "%ld\n", i);
17825     }
17826   else
17827     {
17828       unsigned long i = ulongval ();
17829       if (i != ((long) (sizeof (char))))
17830         exit (1);
17831       fprintf (f, "%lu\n", i);
17832     }
17833   exit (ferror (f) || fclose (f) != 0);
17834
17835   ;
17836   return 0;
17837 }
17838 _ACEOF
17839 rm -f conftest$ac_exeext
17840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17841   (eval $ac_link) 2>&5
17842   ac_status=$?
17843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846   (eval $ac_try) 2>&5
17847   ac_status=$?
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); }; }; then
17850   ac_cv_sizeof_char=`cat conftest.val`
17851 else
17852   echo "$as_me: program exited with status $ac_status" >&5
17853 echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17855
17856 ( exit $ac_status )
17857 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17858 See \`config.log' for more details." >&5
17859 echo "$as_me: error: cannot compute sizeof (char), 77
17860 See \`config.log' for more details." >&2;}
17861    { (exit 1); exit 1; }; }
17862 fi
17863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17864 fi
17865 fi
17866 rm -f conftest.val
17867 else
17868   ac_cv_sizeof_char=0
17869 fi
17870 fi
17871 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17872 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17873 cat >>confdefs.h <<_ACEOF
17874 #define SIZEOF_CHAR $ac_cv_sizeof_char
17875 _ACEOF
17876
17877
17878 echo "$as_me:$LINENO: checking for short" >&5
17879 echo $ECHO_N "checking for short... $ECHO_C" >&6
17880 if test "${ac_cv_type_short+set}" = set; then
17881   echo $ECHO_N "(cached) $ECHO_C" >&6
17882 else
17883   cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h.  */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h.  */
17889 $ac_includes_default
17890 int
17891 main ()
17892 {
17893 if ((short *) 0)
17894   return 0;
17895 if (sizeof (short))
17896   return 0;
17897   ;
17898   return 0;
17899 }
17900 _ACEOF
17901 rm -f conftest.$ac_objext
17902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17903   (eval $ac_compile) 2>conftest.er1
17904   ac_status=$?
17905   grep -v '^ *+' conftest.er1 >conftest.err
17906   rm -f conftest.er1
17907   cat conftest.err >&5
17908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909   (exit $ac_status); } &&
17910          { ac_try='test -z "$ac_c_werror_flag"
17911                          || test ! -s conftest.err'
17912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913   (eval $ac_try) 2>&5
17914   ac_status=$?
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); }; } &&
17917          { ac_try='test -s conftest.$ac_objext'
17918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919   (eval $ac_try) 2>&5
17920   ac_status=$?
17921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922   (exit $ac_status); }; }; then
17923   ac_cv_type_short=yes
17924 else
17925   echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17927
17928 ac_cv_type_short=no
17929 fi
17930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17931 fi
17932 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17933 echo "${ECHO_T}$ac_cv_type_short" >&6
17934
17935 echo "$as_me:$LINENO: checking size of short" >&5
17936 echo $ECHO_N "checking size of short... $ECHO_C" >&6
17937 if test "${ac_cv_sizeof_short+set}" = set; then
17938   echo $ECHO_N "(cached) $ECHO_C" >&6
17939 else
17940   if test "$ac_cv_type_short" = yes; then
17941   # The cast to unsigned long works around a bug in the HP C Compiler
17942   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17943   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17944   # This bug is HP SR number 8606223364.
17945   if test "$cross_compiling" = yes; then
17946   # Depending upon the size, compute the lo and hi bounds.
17947 cat >conftest.$ac_ext <<_ACEOF
17948 /* confdefs.h.  */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h.  */
17953 $ac_includes_default
17954 int
17955 main ()
17956 {
17957 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17958 test_array [0] = 0
17959
17960   ;
17961   return 0;
17962 }
17963 _ACEOF
17964 rm -f conftest.$ac_objext
17965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17966   (eval $ac_compile) 2>conftest.er1
17967   ac_status=$?
17968   grep -v '^ *+' conftest.er1 >conftest.err
17969   rm -f conftest.er1
17970   cat conftest.err >&5
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); } &&
17973          { ac_try='test -z "$ac_c_werror_flag"
17974                          || test ! -s conftest.err'
17975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976   (eval $ac_try) 2>&5
17977   ac_status=$?
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); }; } &&
17980          { ac_try='test -s conftest.$ac_objext'
17981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982   (eval $ac_try) 2>&5
17983   ac_status=$?
17984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985   (exit $ac_status); }; }; then
17986   ac_lo=0 ac_mid=0
17987   while :; do
17988     cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h.  */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h.  */
17994 $ac_includes_default
17995 int
17996 main ()
17997 {
17998 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17999 test_array [0] = 0
18000
18001   ;
18002   return 0;
18003 }
18004 _ACEOF
18005 rm -f conftest.$ac_objext
18006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18007   (eval $ac_compile) 2>conftest.er1
18008   ac_status=$?
18009   grep -v '^ *+' conftest.er1 >conftest.err
18010   rm -f conftest.er1
18011   cat conftest.err >&5
18012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013   (exit $ac_status); } &&
18014          { ac_try='test -z "$ac_c_werror_flag"
18015                          || test ! -s conftest.err'
18016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017   (eval $ac_try) 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; } &&
18021          { ac_try='test -s conftest.$ac_objext'
18022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023   (eval $ac_try) 2>&5
18024   ac_status=$?
18025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026   (exit $ac_status); }; }; then
18027   ac_hi=$ac_mid; break
18028 else
18029   echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18031
18032 ac_lo=`expr $ac_mid + 1`
18033                     if test $ac_lo -le $ac_mid; then
18034                       ac_lo= ac_hi=
18035                       break
18036                     fi
18037                     ac_mid=`expr 2 '*' $ac_mid + 1`
18038 fi
18039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18040   done
18041 else
18042   echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18044
18045 cat >conftest.$ac_ext <<_ACEOF
18046 /* confdefs.h.  */
18047 _ACEOF
18048 cat confdefs.h >>conftest.$ac_ext
18049 cat >>conftest.$ac_ext <<_ACEOF
18050 /* end confdefs.h.  */
18051 $ac_includes_default
18052 int
18053 main ()
18054 {
18055 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18056 test_array [0] = 0
18057
18058   ;
18059   return 0;
18060 }
18061 _ACEOF
18062 rm -f conftest.$ac_objext
18063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18064   (eval $ac_compile) 2>conftest.er1
18065   ac_status=$?
18066   grep -v '^ *+' conftest.er1 >conftest.err
18067   rm -f conftest.er1
18068   cat conftest.err >&5
18069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070   (exit $ac_status); } &&
18071          { ac_try='test -z "$ac_c_werror_flag"
18072                          || test ! -s conftest.err'
18073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074   (eval $ac_try) 2>&5
18075   ac_status=$?
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); }; } &&
18078          { ac_try='test -s conftest.$ac_objext'
18079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080   (eval $ac_try) 2>&5
18081   ac_status=$?
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); }; }; then
18084   ac_hi=-1 ac_mid=-1
18085   while :; do
18086     cat >conftest.$ac_ext <<_ACEOF
18087 /* confdefs.h.  */
18088 _ACEOF
18089 cat confdefs.h >>conftest.$ac_ext
18090 cat >>conftest.$ac_ext <<_ACEOF
18091 /* end confdefs.h.  */
18092 $ac_includes_default
18093 int
18094 main ()
18095 {
18096 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18097 test_array [0] = 0
18098
18099   ;
18100   return 0;
18101 }
18102 _ACEOF
18103 rm -f conftest.$ac_objext
18104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18105   (eval $ac_compile) 2>conftest.er1
18106   ac_status=$?
18107   grep -v '^ *+' conftest.er1 >conftest.err
18108   rm -f conftest.er1
18109   cat conftest.err >&5
18110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111   (exit $ac_status); } &&
18112          { ac_try='test -z "$ac_c_werror_flag"
18113                          || test ! -s conftest.err'
18114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115   (eval $ac_try) 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); }; } &&
18119          { ac_try='test -s conftest.$ac_objext'
18120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121   (eval $ac_try) 2>&5
18122   ac_status=$?
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); }; }; then
18125   ac_lo=$ac_mid; break
18126 else
18127   echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18129
18130 ac_hi=`expr '(' $ac_mid ')' - 1`
18131                        if test $ac_mid -le $ac_hi; then
18132                          ac_lo= ac_hi=
18133                          break
18134                        fi
18135                        ac_mid=`expr 2 '*' $ac_mid`
18136 fi
18137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18138   done
18139 else
18140   echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143 ac_lo= ac_hi=
18144 fi
18145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18146 fi
18147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18148 # Binary search between lo and hi bounds.
18149 while test "x$ac_lo" != "x$ac_hi"; do
18150   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18151   cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h.  */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h.  */
18157 $ac_includes_default
18158 int
18159 main ()
18160 {
18161 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18162 test_array [0] = 0
18163
18164   ;
18165   return 0;
18166 }
18167 _ACEOF
18168 rm -f conftest.$ac_objext
18169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18170   (eval $ac_compile) 2>conftest.er1
18171   ac_status=$?
18172   grep -v '^ *+' conftest.er1 >conftest.err
18173   rm -f conftest.er1
18174   cat conftest.err >&5
18175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176   (exit $ac_status); } &&
18177          { ac_try='test -z "$ac_c_werror_flag"
18178                          || test ! -s conftest.err'
18179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180   (eval $ac_try) 2>&5
18181   ac_status=$?
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); }; } &&
18184          { ac_try='test -s conftest.$ac_objext'
18185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186   (eval $ac_try) 2>&5
18187   ac_status=$?
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); }; }; then
18190   ac_hi=$ac_mid
18191 else
18192   echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18194
18195 ac_lo=`expr '(' $ac_mid ')' + 1`
18196 fi
18197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18198 done
18199 case $ac_lo in
18200 ?*) ac_cv_sizeof_short=$ac_lo;;
18201 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18202 See \`config.log' for more details." >&5
18203 echo "$as_me: error: cannot compute sizeof (short), 77
18204 See \`config.log' for more details." >&2;}
18205    { (exit 1); exit 1; }; } ;;
18206 esac
18207 else
18208   if test "$cross_compiling" = yes; then
18209   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18210 See \`config.log' for more details." >&5
18211 echo "$as_me: error: cannot run test program while cross compiling
18212 See \`config.log' for more details." >&2;}
18213    { (exit 1); exit 1; }; }
18214 else
18215   cat >conftest.$ac_ext <<_ACEOF
18216 /* confdefs.h.  */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h.  */
18221 $ac_includes_default
18222 long longval () { return (long) (sizeof (short)); }
18223 unsigned long ulongval () { return (long) (sizeof (short)); }
18224 #include <stdio.h>
18225 #include <stdlib.h>
18226 int
18227 main ()
18228 {
18229
18230   FILE *f = fopen ("conftest.val", "w");
18231   if (! f)
18232     exit (1);
18233   if (((long) (sizeof (short))) < 0)
18234     {
18235       long i = longval ();
18236       if (i != ((long) (sizeof (short))))
18237         exit (1);
18238       fprintf (f, "%ld\n", i);
18239     }
18240   else
18241     {
18242       unsigned long i = ulongval ();
18243       if (i != ((long) (sizeof (short))))
18244         exit (1);
18245       fprintf (f, "%lu\n", i);
18246     }
18247   exit (ferror (f) || fclose (f) != 0);
18248
18249   ;
18250   return 0;
18251 }
18252 _ACEOF
18253 rm -f conftest$ac_exeext
18254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18255   (eval $ac_link) 2>&5
18256   ac_status=$?
18257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260   (eval $ac_try) 2>&5
18261   ac_status=$?
18262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263   (exit $ac_status); }; }; then
18264   ac_cv_sizeof_short=`cat conftest.val`
18265 else
18266   echo "$as_me: program exited with status $ac_status" >&5
18267 echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18269
18270 ( exit $ac_status )
18271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18272 See \`config.log' for more details." >&5
18273 echo "$as_me: error: cannot compute sizeof (short), 77
18274 See \`config.log' for more details." >&2;}
18275    { (exit 1); exit 1; }; }
18276 fi
18277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18278 fi
18279 fi
18280 rm -f conftest.val
18281 else
18282   ac_cv_sizeof_short=0
18283 fi
18284 fi
18285 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18286 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18287 cat >>confdefs.h <<_ACEOF
18288 #define SIZEOF_SHORT $ac_cv_sizeof_short
18289 _ACEOF
18290
18291
18292 echo "$as_me:$LINENO: checking for int" >&5
18293 echo $ECHO_N "checking for int... $ECHO_C" >&6
18294 if test "${ac_cv_type_int+set}" = set; then
18295   echo $ECHO_N "(cached) $ECHO_C" >&6
18296 else
18297   cat >conftest.$ac_ext <<_ACEOF
18298 /* confdefs.h.  */
18299 _ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h.  */
18303 $ac_includes_default
18304 int
18305 main ()
18306 {
18307 if ((int *) 0)
18308   return 0;
18309 if (sizeof (int))
18310   return 0;
18311   ;
18312   return 0;
18313 }
18314 _ACEOF
18315 rm -f conftest.$ac_objext
18316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18317   (eval $ac_compile) 2>conftest.er1
18318   ac_status=$?
18319   grep -v '^ *+' conftest.er1 >conftest.err
18320   rm -f conftest.er1
18321   cat conftest.err >&5
18322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); } &&
18324          { ac_try='test -z "$ac_c_werror_flag"
18325                          || test ! -s conftest.err'
18326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327   (eval $ac_try) 2>&5
18328   ac_status=$?
18329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330   (exit $ac_status); }; } &&
18331          { ac_try='test -s conftest.$ac_objext'
18332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333   (eval $ac_try) 2>&5
18334   ac_status=$?
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); }; }; then
18337   ac_cv_type_int=yes
18338 else
18339   echo "$as_me: failed program was:" >&5
18340 sed 's/^/| /' conftest.$ac_ext >&5
18341
18342 ac_cv_type_int=no
18343 fi
18344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18345 fi
18346 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18347 echo "${ECHO_T}$ac_cv_type_int" >&6
18348
18349 echo "$as_me:$LINENO: checking size of int" >&5
18350 echo $ECHO_N "checking size of int... $ECHO_C" >&6
18351 if test "${ac_cv_sizeof_int+set}" = set; then
18352   echo $ECHO_N "(cached) $ECHO_C" >&6
18353 else
18354   if test "$ac_cv_type_int" = yes; then
18355   # The cast to unsigned long works around a bug in the HP C Compiler
18356   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18357   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18358   # This bug is HP SR number 8606223364.
18359   if test "$cross_compiling" = yes; then
18360   # Depending upon the size, compute the lo and hi bounds.
18361 cat >conftest.$ac_ext <<_ACEOF
18362 /* confdefs.h.  */
18363 _ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h.  */
18367 $ac_includes_default
18368 int
18369 main ()
18370 {
18371 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18372 test_array [0] = 0
18373
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 rm -f conftest.$ac_objext
18379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18380   (eval $ac_compile) 2>conftest.er1
18381   ac_status=$?
18382   grep -v '^ *+' conftest.er1 >conftest.err
18383   rm -f conftest.er1
18384   cat conftest.err >&5
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); } &&
18387          { ac_try='test -z "$ac_c_werror_flag"
18388                          || test ! -s conftest.err'
18389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390   (eval $ac_try) 2>&5
18391   ac_status=$?
18392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393   (exit $ac_status); }; } &&
18394          { ac_try='test -s conftest.$ac_objext'
18395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396   (eval $ac_try) 2>&5
18397   ac_status=$?
18398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399   (exit $ac_status); }; }; then
18400   ac_lo=0 ac_mid=0
18401   while :; do
18402     cat >conftest.$ac_ext <<_ACEOF
18403 /* confdefs.h.  */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h.  */
18408 $ac_includes_default
18409 int
18410 main ()
18411 {
18412 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18413 test_array [0] = 0
18414
18415   ;
18416   return 0;
18417 }
18418 _ACEOF
18419 rm -f conftest.$ac_objext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18421   (eval $ac_compile) 2>conftest.er1
18422   ac_status=$?
18423   grep -v '^ *+' conftest.er1 >conftest.err
18424   rm -f conftest.er1
18425   cat conftest.err >&5
18426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427   (exit $ac_status); } &&
18428          { ac_try='test -z "$ac_c_werror_flag"
18429                          || test ! -s conftest.err'
18430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431   (eval $ac_try) 2>&5
18432   ac_status=$?
18433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434   (exit $ac_status); }; } &&
18435          { ac_try='test -s conftest.$ac_objext'
18436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437   (eval $ac_try) 2>&5
18438   ac_status=$?
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); }; }; then
18441   ac_hi=$ac_mid; break
18442 else
18443   echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18445
18446 ac_lo=`expr $ac_mid + 1`
18447                     if test $ac_lo -le $ac_mid; then
18448                       ac_lo= ac_hi=
18449                       break
18450                     fi
18451                     ac_mid=`expr 2 '*' $ac_mid + 1`
18452 fi
18453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18454   done
18455 else
18456   echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18458
18459 cat >conftest.$ac_ext <<_ACEOF
18460 /* confdefs.h.  */
18461 _ACEOF
18462 cat confdefs.h >>conftest.$ac_ext
18463 cat >>conftest.$ac_ext <<_ACEOF
18464 /* end confdefs.h.  */
18465 $ac_includes_default
18466 int
18467 main ()
18468 {
18469 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18470 test_array [0] = 0
18471
18472   ;
18473   return 0;
18474 }
18475 _ACEOF
18476 rm -f conftest.$ac_objext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18478   (eval $ac_compile) 2>conftest.er1
18479   ac_status=$?
18480   grep -v '^ *+' conftest.er1 >conftest.err
18481   rm -f conftest.er1
18482   cat conftest.err >&5
18483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484   (exit $ac_status); } &&
18485          { ac_try='test -z "$ac_c_werror_flag"
18486                          || test ! -s conftest.err'
18487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488   (eval $ac_try) 2>&5
18489   ac_status=$?
18490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); }; } &&
18492          { ac_try='test -s conftest.$ac_objext'
18493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494   (eval $ac_try) 2>&5
18495   ac_status=$?
18496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497   (exit $ac_status); }; }; then
18498   ac_hi=-1 ac_mid=-1
18499   while :; do
18500     cat >conftest.$ac_ext <<_ACEOF
18501 /* confdefs.h.  */
18502 _ACEOF
18503 cat confdefs.h >>conftest.$ac_ext
18504 cat >>conftest.$ac_ext <<_ACEOF
18505 /* end confdefs.h.  */
18506 $ac_includes_default
18507 int
18508 main ()
18509 {
18510 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18511 test_array [0] = 0
18512
18513   ;
18514   return 0;
18515 }
18516 _ACEOF
18517 rm -f conftest.$ac_objext
18518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18519   (eval $ac_compile) 2>conftest.er1
18520   ac_status=$?
18521   grep -v '^ *+' conftest.er1 >conftest.err
18522   rm -f conftest.er1
18523   cat conftest.err >&5
18524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525   (exit $ac_status); } &&
18526          { ac_try='test -z "$ac_c_werror_flag"
18527                          || test ! -s conftest.err'
18528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529   (eval $ac_try) 2>&5
18530   ac_status=$?
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); }; } &&
18533          { ac_try='test -s conftest.$ac_objext'
18534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535   (eval $ac_try) 2>&5
18536   ac_status=$?
18537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538   (exit $ac_status); }; }; then
18539   ac_lo=$ac_mid; break
18540 else
18541   echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18543
18544 ac_hi=`expr '(' $ac_mid ')' - 1`
18545                        if test $ac_mid -le $ac_hi; then
18546                          ac_lo= ac_hi=
18547                          break
18548                        fi
18549                        ac_mid=`expr 2 '*' $ac_mid`
18550 fi
18551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18552   done
18553 else
18554   echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18556
18557 ac_lo= ac_hi=
18558 fi
18559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18560 fi
18561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18562 # Binary search between lo and hi bounds.
18563 while test "x$ac_lo" != "x$ac_hi"; do
18564   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18565   cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h.  */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h.  */
18571 $ac_includes_default
18572 int
18573 main ()
18574 {
18575 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18576 test_array [0] = 0
18577
18578   ;
18579   return 0;
18580 }
18581 _ACEOF
18582 rm -f conftest.$ac_objext
18583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18584   (eval $ac_compile) 2>conftest.er1
18585   ac_status=$?
18586   grep -v '^ *+' conftest.er1 >conftest.err
18587   rm -f conftest.er1
18588   cat conftest.err >&5
18589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); } &&
18591          { ac_try='test -z "$ac_c_werror_flag"
18592                          || test ! -s conftest.err'
18593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594   (eval $ac_try) 2>&5
18595   ac_status=$?
18596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597   (exit $ac_status); }; } &&
18598          { ac_try='test -s conftest.$ac_objext'
18599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600   (eval $ac_try) 2>&5
18601   ac_status=$?
18602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603   (exit $ac_status); }; }; then
18604   ac_hi=$ac_mid
18605 else
18606   echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18608
18609 ac_lo=`expr '(' $ac_mid ')' + 1`
18610 fi
18611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18612 done
18613 case $ac_lo in
18614 ?*) ac_cv_sizeof_int=$ac_lo;;
18615 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18616 See \`config.log' for more details." >&5
18617 echo "$as_me: error: cannot compute sizeof (int), 77
18618 See \`config.log' for more details." >&2;}
18619    { (exit 1); exit 1; }; } ;;
18620 esac
18621 else
18622   if test "$cross_compiling" = yes; then
18623   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18624 See \`config.log' for more details." >&5
18625 echo "$as_me: error: cannot run test program while cross compiling
18626 See \`config.log' for more details." >&2;}
18627    { (exit 1); exit 1; }; }
18628 else
18629   cat >conftest.$ac_ext <<_ACEOF
18630 /* confdefs.h.  */
18631 _ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h.  */
18635 $ac_includes_default
18636 long longval () { return (long) (sizeof (int)); }
18637 unsigned long ulongval () { return (long) (sizeof (int)); }
18638 #include <stdio.h>
18639 #include <stdlib.h>
18640 int
18641 main ()
18642 {
18643
18644   FILE *f = fopen ("conftest.val", "w");
18645   if (! f)
18646     exit (1);
18647   if (((long) (sizeof (int))) < 0)
18648     {
18649       long i = longval ();
18650       if (i != ((long) (sizeof (int))))
18651         exit (1);
18652       fprintf (f, "%ld\n", i);
18653     }
18654   else
18655     {
18656       unsigned long i = ulongval ();
18657       if (i != ((long) (sizeof (int))))
18658         exit (1);
18659       fprintf (f, "%lu\n", i);
18660     }
18661   exit (ferror (f) || fclose (f) != 0);
18662
18663   ;
18664   return 0;
18665 }
18666 _ACEOF
18667 rm -f conftest$ac_exeext
18668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18669   (eval $ac_link) 2>&5
18670   ac_status=$?
18671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674   (eval $ac_try) 2>&5
18675   ac_status=$?
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); }; }; then
18678   ac_cv_sizeof_int=`cat conftest.val`
18679 else
18680   echo "$as_me: program exited with status $ac_status" >&5
18681 echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.$ac_ext >&5
18683
18684 ( exit $ac_status )
18685 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18686 See \`config.log' for more details." >&5
18687 echo "$as_me: error: cannot compute sizeof (int), 77
18688 See \`config.log' for more details." >&2;}
18689    { (exit 1); exit 1; }; }
18690 fi
18691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18692 fi
18693 fi
18694 rm -f conftest.val
18695 else
18696   ac_cv_sizeof_int=0
18697 fi
18698 fi
18699 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18700 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18701 cat >>confdefs.h <<_ACEOF
18702 #define SIZEOF_INT $ac_cv_sizeof_int
18703 _ACEOF
18704
18705
18706 echo "$as_me:$LINENO: checking for long" >&5
18707 echo $ECHO_N "checking for long... $ECHO_C" >&6
18708 if test "${ac_cv_type_long+set}" = set; then
18709   echo $ECHO_N "(cached) $ECHO_C" >&6
18710 else
18711   cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717 $ac_includes_default
18718 int
18719 main ()
18720 {
18721 if ((long *) 0)
18722   return 0;
18723 if (sizeof (long))
18724   return 0;
18725   ;
18726   return 0;
18727 }
18728 _ACEOF
18729 rm -f conftest.$ac_objext
18730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18731   (eval $ac_compile) 2>conftest.er1
18732   ac_status=$?
18733   grep -v '^ *+' conftest.er1 >conftest.err
18734   rm -f conftest.er1
18735   cat conftest.err >&5
18736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737   (exit $ac_status); } &&
18738          { ac_try='test -z "$ac_c_werror_flag"
18739                          || test ! -s conftest.err'
18740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741   (eval $ac_try) 2>&5
18742   ac_status=$?
18743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744   (exit $ac_status); }; } &&
18745          { ac_try='test -s conftest.$ac_objext'
18746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747   (eval $ac_try) 2>&5
18748   ac_status=$?
18749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750   (exit $ac_status); }; }; then
18751   ac_cv_type_long=yes
18752 else
18753   echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18755
18756 ac_cv_type_long=no
18757 fi
18758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18759 fi
18760 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18761 echo "${ECHO_T}$ac_cv_type_long" >&6
18762
18763 echo "$as_me:$LINENO: checking size of long" >&5
18764 echo $ECHO_N "checking size of long... $ECHO_C" >&6
18765 if test "${ac_cv_sizeof_long+set}" = set; then
18766   echo $ECHO_N "(cached) $ECHO_C" >&6
18767 else
18768   if test "$ac_cv_type_long" = yes; then
18769   # The cast to unsigned long works around a bug in the HP C Compiler
18770   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18771   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18772   # This bug is HP SR number 8606223364.
18773   if test "$cross_compiling" = yes; then
18774   # Depending upon the size, compute the lo and hi bounds.
18775 cat >conftest.$ac_ext <<_ACEOF
18776 /* confdefs.h.  */
18777 _ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h.  */
18781 $ac_includes_default
18782 int
18783 main ()
18784 {
18785 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18786 test_array [0] = 0
18787
18788   ;
18789   return 0;
18790 }
18791 _ACEOF
18792 rm -f conftest.$ac_objext
18793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18794   (eval $ac_compile) 2>conftest.er1
18795   ac_status=$?
18796   grep -v '^ *+' conftest.er1 >conftest.err
18797   rm -f conftest.er1
18798   cat conftest.err >&5
18799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800   (exit $ac_status); } &&
18801          { ac_try='test -z "$ac_c_werror_flag"
18802                          || test ! -s conftest.err'
18803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804   (eval $ac_try) 2>&5
18805   ac_status=$?
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); }; } &&
18808          { ac_try='test -s conftest.$ac_objext'
18809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18810   (eval $ac_try) 2>&5
18811   ac_status=$?
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); }; }; then
18814   ac_lo=0 ac_mid=0
18815   while :; do
18816     cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h.  */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h.  */
18822 $ac_includes_default
18823 int
18824 main ()
18825 {
18826 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18827 test_array [0] = 0
18828
18829   ;
18830   return 0;
18831 }
18832 _ACEOF
18833 rm -f conftest.$ac_objext
18834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18835   (eval $ac_compile) 2>conftest.er1
18836   ac_status=$?
18837   grep -v '^ *+' conftest.er1 >conftest.err
18838   rm -f conftest.er1
18839   cat conftest.err >&5
18840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841   (exit $ac_status); } &&
18842          { ac_try='test -z "$ac_c_werror_flag"
18843                          || test ! -s conftest.err'
18844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845   (eval $ac_try) 2>&5
18846   ac_status=$?
18847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848   (exit $ac_status); }; } &&
18849          { ac_try='test -s conftest.$ac_objext'
18850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851   (eval $ac_try) 2>&5
18852   ac_status=$?
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); }; }; then
18855   ac_hi=$ac_mid; break
18856 else
18857   echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18859
18860 ac_lo=`expr $ac_mid + 1`
18861                     if test $ac_lo -le $ac_mid; then
18862                       ac_lo= ac_hi=
18863                       break
18864                     fi
18865                     ac_mid=`expr 2 '*' $ac_mid + 1`
18866 fi
18867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18868   done
18869 else
18870   echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18872
18873 cat >conftest.$ac_ext <<_ACEOF
18874 /* confdefs.h.  */
18875 _ACEOF
18876 cat confdefs.h >>conftest.$ac_ext
18877 cat >>conftest.$ac_ext <<_ACEOF
18878 /* end confdefs.h.  */
18879 $ac_includes_default
18880 int
18881 main ()
18882 {
18883 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18884 test_array [0] = 0
18885
18886   ;
18887   return 0;
18888 }
18889 _ACEOF
18890 rm -f conftest.$ac_objext
18891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18892   (eval $ac_compile) 2>conftest.er1
18893   ac_status=$?
18894   grep -v '^ *+' conftest.er1 >conftest.err
18895   rm -f conftest.er1
18896   cat conftest.err >&5
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); } &&
18899          { ac_try='test -z "$ac_c_werror_flag"
18900                          || test ! -s conftest.err'
18901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902   (eval $ac_try) 2>&5
18903   ac_status=$?
18904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905   (exit $ac_status); }; } &&
18906          { ac_try='test -s conftest.$ac_objext'
18907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908   (eval $ac_try) 2>&5
18909   ac_status=$?
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); }; }; then
18912   ac_hi=-1 ac_mid=-1
18913   while :; do
18914     cat >conftest.$ac_ext <<_ACEOF
18915 /* confdefs.h.  */
18916 _ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h.  */
18920 $ac_includes_default
18921 int
18922 main ()
18923 {
18924 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18925 test_array [0] = 0
18926
18927   ;
18928   return 0;
18929 }
18930 _ACEOF
18931 rm -f conftest.$ac_objext
18932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18933   (eval $ac_compile) 2>conftest.er1
18934   ac_status=$?
18935   grep -v '^ *+' conftest.er1 >conftest.err
18936   rm -f conftest.er1
18937   cat conftest.err >&5
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); } &&
18940          { ac_try='test -z "$ac_c_werror_flag"
18941                          || test ! -s conftest.err'
18942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943   (eval $ac_try) 2>&5
18944   ac_status=$?
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); }; } &&
18947          { ac_try='test -s conftest.$ac_objext'
18948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949   (eval $ac_try) 2>&5
18950   ac_status=$?
18951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952   (exit $ac_status); }; }; then
18953   ac_lo=$ac_mid; break
18954 else
18955   echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18957
18958 ac_hi=`expr '(' $ac_mid ')' - 1`
18959                        if test $ac_mid -le $ac_hi; then
18960                          ac_lo= ac_hi=
18961                          break
18962                        fi
18963                        ac_mid=`expr 2 '*' $ac_mid`
18964 fi
18965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18966   done
18967 else
18968   echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18970
18971 ac_lo= ac_hi=
18972 fi
18973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18974 fi
18975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18976 # Binary search between lo and hi bounds.
18977 while test "x$ac_lo" != "x$ac_hi"; do
18978   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18979   cat >conftest.$ac_ext <<_ACEOF
18980 /* confdefs.h.  */
18981 _ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h.  */
18985 $ac_includes_default
18986 int
18987 main ()
18988 {
18989 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18990 test_array [0] = 0
18991
18992   ;
18993   return 0;
18994 }
18995 _ACEOF
18996 rm -f conftest.$ac_objext
18997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18998   (eval $ac_compile) 2>conftest.er1
18999   ac_status=$?
19000   grep -v '^ *+' conftest.er1 >conftest.err
19001   rm -f conftest.er1
19002   cat conftest.err >&5
19003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004   (exit $ac_status); } &&
19005          { ac_try='test -z "$ac_c_werror_flag"
19006                          || test ! -s conftest.err'
19007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008   (eval $ac_try) 2>&5
19009   ac_status=$?
19010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011   (exit $ac_status); }; } &&
19012          { ac_try='test -s conftest.$ac_objext'
19013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014   (eval $ac_try) 2>&5
19015   ac_status=$?
19016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017   (exit $ac_status); }; }; then
19018   ac_hi=$ac_mid
19019 else
19020   echo "$as_me: failed program was:" >&5
19021 sed 's/^/| /' conftest.$ac_ext >&5
19022
19023 ac_lo=`expr '(' $ac_mid ')' + 1`
19024 fi
19025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19026 done
19027 case $ac_lo in
19028 ?*) ac_cv_sizeof_long=$ac_lo;;
19029 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19030 See \`config.log' for more details." >&5
19031 echo "$as_me: error: cannot compute sizeof (long), 77
19032 See \`config.log' for more details." >&2;}
19033    { (exit 1); exit 1; }; } ;;
19034 esac
19035 else
19036   if test "$cross_compiling" = yes; then
19037   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19038 See \`config.log' for more details." >&5
19039 echo "$as_me: error: cannot run test program while cross compiling
19040 See \`config.log' for more details." >&2;}
19041    { (exit 1); exit 1; }; }
19042 else
19043   cat >conftest.$ac_ext <<_ACEOF
19044 /* confdefs.h.  */
19045 _ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h.  */
19049 $ac_includes_default
19050 long longval () { return (long) (sizeof (long)); }
19051 unsigned long ulongval () { return (long) (sizeof (long)); }
19052 #include <stdio.h>
19053 #include <stdlib.h>
19054 int
19055 main ()
19056 {
19057
19058   FILE *f = fopen ("conftest.val", "w");
19059   if (! f)
19060     exit (1);
19061   if (((long) (sizeof (long))) < 0)
19062     {
19063       long i = longval ();
19064       if (i != ((long) (sizeof (long))))
19065         exit (1);
19066       fprintf (f, "%ld\n", i);
19067     }
19068   else
19069     {
19070       unsigned long i = ulongval ();
19071       if (i != ((long) (sizeof (long))))
19072         exit (1);
19073       fprintf (f, "%lu\n", i);
19074     }
19075   exit (ferror (f) || fclose (f) != 0);
19076
19077   ;
19078   return 0;
19079 }
19080 _ACEOF
19081 rm -f conftest$ac_exeext
19082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19083   (eval $ac_link) 2>&5
19084   ac_status=$?
19085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088   (eval $ac_try) 2>&5
19089   ac_status=$?
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); }; }; then
19092   ac_cv_sizeof_long=`cat conftest.val`
19093 else
19094   echo "$as_me: program exited with status $ac_status" >&5
19095 echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19097
19098 ( exit $ac_status )
19099 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19100 See \`config.log' for more details." >&5
19101 echo "$as_me: error: cannot compute sizeof (long), 77
19102 See \`config.log' for more details." >&2;}
19103    { (exit 1); exit 1; }; }
19104 fi
19105 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19106 fi
19107 fi
19108 rm -f conftest.val
19109 else
19110   ac_cv_sizeof_long=0
19111 fi
19112 fi
19113 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19114 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19115 cat >>confdefs.h <<_ACEOF
19116 #define SIZEOF_LONG $ac_cv_sizeof_long
19117 _ACEOF
19118
19119
19120 echo "$as_me:$LINENO: checking for char *" >&5
19121 echo $ECHO_N "checking for char *... $ECHO_C" >&6
19122 if test "${ac_cv_type_char_p+set}" = set; then
19123   echo $ECHO_N "(cached) $ECHO_C" >&6
19124 else
19125   cat >conftest.$ac_ext <<_ACEOF
19126 /* confdefs.h.  */
19127 _ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h.  */
19131 $ac_includes_default
19132 int
19133 main ()
19134 {
19135 if ((char * *) 0)
19136   return 0;
19137 if (sizeof (char *))
19138   return 0;
19139   ;
19140   return 0;
19141 }
19142 _ACEOF
19143 rm -f conftest.$ac_objext
19144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19145   (eval $ac_compile) 2>conftest.er1
19146   ac_status=$?
19147   grep -v '^ *+' conftest.er1 >conftest.err
19148   rm -f conftest.er1
19149   cat conftest.err >&5
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); } &&
19152          { ac_try='test -z "$ac_c_werror_flag"
19153                          || test ! -s conftest.err'
19154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155   (eval $ac_try) 2>&5
19156   ac_status=$?
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); }; } &&
19159          { ac_try='test -s conftest.$ac_objext'
19160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161   (eval $ac_try) 2>&5
19162   ac_status=$?
19163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164   (exit $ac_status); }; }; then
19165   ac_cv_type_char_p=yes
19166 else
19167   echo "$as_me: failed program was:" >&5
19168 sed 's/^/| /' conftest.$ac_ext >&5
19169
19170 ac_cv_type_char_p=no
19171 fi
19172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19173 fi
19174 echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
19175 echo "${ECHO_T}$ac_cv_type_char_p" >&6
19176
19177 echo "$as_me:$LINENO: checking size of char *" >&5
19178 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
19179 if test "${ac_cv_sizeof_char_p+set}" = set; then
19180   echo $ECHO_N "(cached) $ECHO_C" >&6
19181 else
19182   if test "$ac_cv_type_char_p" = yes; then
19183   # The cast to unsigned long works around a bug in the HP C Compiler
19184   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19185   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19186   # This bug is HP SR number 8606223364.
19187   if test "$cross_compiling" = yes; then
19188   # Depending upon the size, compute the lo and hi bounds.
19189 cat >conftest.$ac_ext <<_ACEOF
19190 /* confdefs.h.  */
19191 _ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h.  */
19195 $ac_includes_default
19196 int
19197 main ()
19198 {
19199 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
19200 test_array [0] = 0
19201
19202   ;
19203   return 0;
19204 }
19205 _ACEOF
19206 rm -f conftest.$ac_objext
19207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19208   (eval $ac_compile) 2>conftest.er1
19209   ac_status=$?
19210   grep -v '^ *+' conftest.er1 >conftest.err
19211   rm -f conftest.er1
19212   cat conftest.err >&5
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); } &&
19215          { ac_try='test -z "$ac_c_werror_flag"
19216                          || test ! -s conftest.err'
19217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218   (eval $ac_try) 2>&5
19219   ac_status=$?
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); }; } &&
19222          { ac_try='test -s conftest.$ac_objext'
19223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224   (eval $ac_try) 2>&5
19225   ac_status=$?
19226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227   (exit $ac_status); }; }; then
19228   ac_lo=0 ac_mid=0
19229   while :; do
19230     cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h.  */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h.  */
19236 $ac_includes_default
19237 int
19238 main ()
19239 {
19240 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
19241 test_array [0] = 0
19242
19243   ;
19244   return 0;
19245 }
19246 _ACEOF
19247 rm -f conftest.$ac_objext
19248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19249   (eval $ac_compile) 2>conftest.er1
19250   ac_status=$?
19251   grep -v '^ *+' conftest.er1 >conftest.err
19252   rm -f conftest.er1
19253   cat conftest.err >&5
19254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255   (exit $ac_status); } &&
19256          { ac_try='test -z "$ac_c_werror_flag"
19257                          || test ! -s conftest.err'
19258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259   (eval $ac_try) 2>&5
19260   ac_status=$?
19261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262   (exit $ac_status); }; } &&
19263          { ac_try='test -s conftest.$ac_objext'
19264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265   (eval $ac_try) 2>&5
19266   ac_status=$?
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); }; }; then
19269   ac_hi=$ac_mid; break
19270 else
19271   echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19273
19274 ac_lo=`expr $ac_mid + 1`
19275                     if test $ac_lo -le $ac_mid; then
19276                       ac_lo= ac_hi=
19277                       break
19278                     fi
19279                     ac_mid=`expr 2 '*' $ac_mid + 1`
19280 fi
19281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19282   done
19283 else
19284   echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19286
19287 cat >conftest.$ac_ext <<_ACEOF
19288 /* confdefs.h.  */
19289 _ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h.  */
19293 $ac_includes_default
19294 int
19295 main ()
19296 {
19297 static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
19298 test_array [0] = 0
19299
19300   ;
19301   return 0;
19302 }
19303 _ACEOF
19304 rm -f conftest.$ac_objext
19305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19306   (eval $ac_compile) 2>conftest.er1
19307   ac_status=$?
19308   grep -v '^ *+' conftest.er1 >conftest.err
19309   rm -f conftest.er1
19310   cat conftest.err >&5
19311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312   (exit $ac_status); } &&
19313          { ac_try='test -z "$ac_c_werror_flag"
19314                          || test ! -s conftest.err'
19315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316   (eval $ac_try) 2>&5
19317   ac_status=$?
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); }; } &&
19320          { ac_try='test -s conftest.$ac_objext'
19321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322   (eval $ac_try) 2>&5
19323   ac_status=$?
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); }; }; then
19326   ac_hi=-1 ac_mid=-1
19327   while :; do
19328     cat >conftest.$ac_ext <<_ACEOF
19329 /* confdefs.h.  */
19330 _ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h.  */
19334 $ac_includes_default
19335 int
19336 main ()
19337 {
19338 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
19339 test_array [0] = 0
19340
19341   ;
19342   return 0;
19343 }
19344 _ACEOF
19345 rm -f conftest.$ac_objext
19346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19347   (eval $ac_compile) 2>conftest.er1
19348   ac_status=$?
19349   grep -v '^ *+' conftest.er1 >conftest.err
19350   rm -f conftest.er1
19351   cat conftest.err >&5
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); } &&
19354          { ac_try='test -z "$ac_c_werror_flag"
19355                          || test ! -s conftest.err'
19356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357   (eval $ac_try) 2>&5
19358   ac_status=$?
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); }; } &&
19361          { ac_try='test -s conftest.$ac_objext'
19362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363   (eval $ac_try) 2>&5
19364   ac_status=$?
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); }; }; then
19367   ac_lo=$ac_mid; break
19368 else
19369   echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19371
19372 ac_hi=`expr '(' $ac_mid ')' - 1`
19373                        if test $ac_mid -le $ac_hi; then
19374                          ac_lo= ac_hi=
19375                          break
19376                        fi
19377                        ac_mid=`expr 2 '*' $ac_mid`
19378 fi
19379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19380   done
19381 else
19382   echo "$as_me: failed program was:" >&5
19383 sed 's/^/| /' conftest.$ac_ext >&5
19384
19385 ac_lo= ac_hi=
19386 fi
19387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19388 fi
19389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19390 # Binary search between lo and hi bounds.
19391 while test "x$ac_lo" != "x$ac_hi"; do
19392   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19393   cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h.  */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h.  */
19399 $ac_includes_default
19400 int
19401 main ()
19402 {
19403 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
19404 test_array [0] = 0
19405
19406   ;
19407   return 0;
19408 }
19409 _ACEOF
19410 rm -f conftest.$ac_objext
19411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19412   (eval $ac_compile) 2>conftest.er1
19413   ac_status=$?
19414   grep -v '^ *+' conftest.er1 >conftest.err
19415   rm -f conftest.er1
19416   cat conftest.err >&5
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } &&
19419          { ac_try='test -z "$ac_c_werror_flag"
19420                          || test ! -s conftest.err'
19421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422   (eval $ac_try) 2>&5
19423   ac_status=$?
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); }; } &&
19426          { ac_try='test -s conftest.$ac_objext'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; }; then
19432   ac_hi=$ac_mid
19433 else
19434   echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19436
19437 ac_lo=`expr '(' $ac_mid ')' + 1`
19438 fi
19439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19440 done
19441 case $ac_lo in
19442 ?*) ac_cv_sizeof_char_p=$ac_lo;;
19443 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
19444 See \`config.log' for more details." >&5
19445 echo "$as_me: error: cannot compute sizeof (char *), 77
19446 See \`config.log' for more details." >&2;}
19447    { (exit 1); exit 1; }; } ;;
19448 esac
19449 else
19450   if test "$cross_compiling" = yes; then
19451   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19452 See \`config.log' for more details." >&5
19453 echo "$as_me: error: cannot run test program while cross compiling
19454 See \`config.log' for more details." >&2;}
19455    { (exit 1); exit 1; }; }
19456 else
19457   cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h.  */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h.  */
19463 $ac_includes_default
19464 long longval () { return (long) (sizeof (char *)); }
19465 unsigned long ulongval () { return (long) (sizeof (char *)); }
19466 #include <stdio.h>
19467 #include <stdlib.h>
19468 int
19469 main ()
19470 {
19471
19472   FILE *f = fopen ("conftest.val", "w");
19473   if (! f)
19474     exit (1);
19475   if (((long) (sizeof (char *))) < 0)
19476     {
19477       long i = longval ();
19478       if (i != ((long) (sizeof (char *))))
19479         exit (1);
19480       fprintf (f, "%ld\n", i);
19481     }
19482   else
19483     {
19484       unsigned long i = ulongval ();
19485       if (i != ((long) (sizeof (char *))))
19486         exit (1);
19487       fprintf (f, "%lu\n", i);
19488     }
19489   exit (ferror (f) || fclose (f) != 0);
19490
19491   ;
19492   return 0;
19493 }
19494 _ACEOF
19495 rm -f conftest$ac_exeext
19496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19497   (eval $ac_link) 2>&5
19498   ac_status=$?
19499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502   (eval $ac_try) 2>&5
19503   ac_status=$?
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); }; }; then
19506   ac_cv_sizeof_char_p=`cat conftest.val`
19507 else
19508   echo "$as_me: program exited with status $ac_status" >&5
19509 echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19511
19512 ( exit $ac_status )
19513 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
19514 See \`config.log' for more details." >&5
19515 echo "$as_me: error: cannot compute sizeof (char *), 77
19516 See \`config.log' for more details." >&2;}
19517    { (exit 1); exit 1; }; }
19518 fi
19519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19520 fi
19521 fi
19522 rm -f conftest.val
19523 else
19524   ac_cv_sizeof_char_p=0
19525 fi
19526 fi
19527 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
19528 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
19529 cat >>confdefs.h <<_ACEOF
19530 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
19531 _ACEOF
19532
19533
19534 echo "$as_me:$LINENO: checking for double" >&5
19535 echo $ECHO_N "checking for double... $ECHO_C" >&6
19536 if test "${ac_cv_type_double+set}" = set; then
19537   echo $ECHO_N "(cached) $ECHO_C" >&6
19538 else
19539   cat >conftest.$ac_ext <<_ACEOF
19540 /* confdefs.h.  */
19541 _ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h.  */
19545 $ac_includes_default
19546 int
19547 main ()
19548 {
19549 if ((double *) 0)
19550   return 0;
19551 if (sizeof (double))
19552   return 0;
19553   ;
19554   return 0;
19555 }
19556 _ACEOF
19557 rm -f conftest.$ac_objext
19558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19559   (eval $ac_compile) 2>conftest.er1
19560   ac_status=$?
19561   grep -v '^ *+' conftest.er1 >conftest.err
19562   rm -f conftest.er1
19563   cat conftest.err >&5
19564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565   (exit $ac_status); } &&
19566          { ac_try='test -z "$ac_c_werror_flag"
19567                          || test ! -s conftest.err'
19568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569   (eval $ac_try) 2>&5
19570   ac_status=$?
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); }; } &&
19573          { ac_try='test -s conftest.$ac_objext'
19574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575   (eval $ac_try) 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; }; then
19579   ac_cv_type_double=yes
19580 else
19581   echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19583
19584 ac_cv_type_double=no
19585 fi
19586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19587 fi
19588 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
19589 echo "${ECHO_T}$ac_cv_type_double" >&6
19590
19591 echo "$as_me:$LINENO: checking size of double" >&5
19592 echo $ECHO_N "checking size of double... $ECHO_C" >&6
19593 if test "${ac_cv_sizeof_double+set}" = set; then
19594   echo $ECHO_N "(cached) $ECHO_C" >&6
19595 else
19596   if test "$ac_cv_type_double" = yes; then
19597   # The cast to unsigned long works around a bug in the HP C Compiler
19598   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19599   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19600   # This bug is HP SR number 8606223364.
19601   if test "$cross_compiling" = yes; then
19602   # Depending upon the size, compute the lo and hi bounds.
19603 cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h.  */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h.  */
19609 $ac_includes_default
19610 int
19611 main ()
19612 {
19613 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
19614 test_array [0] = 0
19615
19616   ;
19617   return 0;
19618 }
19619 _ACEOF
19620 rm -f conftest.$ac_objext
19621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19622   (eval $ac_compile) 2>conftest.er1
19623   ac_status=$?
19624   grep -v '^ *+' conftest.er1 >conftest.err
19625   rm -f conftest.er1
19626   cat conftest.err >&5
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); } &&
19629          { ac_try='test -z "$ac_c_werror_flag"
19630                          || test ! -s conftest.err'
19631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632   (eval $ac_try) 2>&5
19633   ac_status=$?
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); }; } &&
19636          { ac_try='test -s conftest.$ac_objext'
19637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638   (eval $ac_try) 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; }; then
19642   ac_lo=0 ac_mid=0
19643   while :; do
19644     cat >conftest.$ac_ext <<_ACEOF
19645 /* confdefs.h.  */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h.  */
19650 $ac_includes_default
19651 int
19652 main ()
19653 {
19654 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
19655 test_array [0] = 0
19656
19657   ;
19658   return 0;
19659 }
19660 _ACEOF
19661 rm -f conftest.$ac_objext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663   (eval $ac_compile) 2>conftest.er1
19664   ac_status=$?
19665   grep -v '^ *+' conftest.er1 >conftest.err
19666   rm -f conftest.er1
19667   cat conftest.err >&5
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); } &&
19670          { ac_try='test -z "$ac_c_werror_flag"
19671                          || test ! -s conftest.err'
19672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673   (eval $ac_try) 2>&5
19674   ac_status=$?
19675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); }; } &&
19677          { ac_try='test -s conftest.$ac_objext'
19678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679   (eval $ac_try) 2>&5
19680   ac_status=$?
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); }; }; then
19683   ac_hi=$ac_mid; break
19684 else
19685   echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19687
19688 ac_lo=`expr $ac_mid + 1`
19689                     if test $ac_lo -le $ac_mid; then
19690                       ac_lo= ac_hi=
19691                       break
19692                     fi
19693                     ac_mid=`expr 2 '*' $ac_mid + 1`
19694 fi
19695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19696   done
19697 else
19698   echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19700
19701 cat >conftest.$ac_ext <<_ACEOF
19702 /* confdefs.h.  */
19703 _ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h.  */
19707 $ac_includes_default
19708 int
19709 main ()
19710 {
19711 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
19712 test_array [0] = 0
19713
19714   ;
19715   return 0;
19716 }
19717 _ACEOF
19718 rm -f conftest.$ac_objext
19719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19720   (eval $ac_compile) 2>conftest.er1
19721   ac_status=$?
19722   grep -v '^ *+' conftest.er1 >conftest.err
19723   rm -f conftest.er1
19724   cat conftest.err >&5
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); } &&
19727          { ac_try='test -z "$ac_c_werror_flag"
19728                          || test ! -s conftest.err'
19729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730   (eval $ac_try) 2>&5
19731   ac_status=$?
19732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733   (exit $ac_status); }; } &&
19734          { ac_try='test -s conftest.$ac_objext'
19735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736   (eval $ac_try) 2>&5
19737   ac_status=$?
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); }; }; then
19740   ac_hi=-1 ac_mid=-1
19741   while :; do
19742     cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h.  */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h.  */
19748 $ac_includes_default
19749 int
19750 main ()
19751 {
19752 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
19753 test_array [0] = 0
19754
19755   ;
19756   return 0;
19757 }
19758 _ACEOF
19759 rm -f conftest.$ac_objext
19760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19761   (eval $ac_compile) 2>conftest.er1
19762   ac_status=$?
19763   grep -v '^ *+' conftest.er1 >conftest.err
19764   rm -f conftest.er1
19765   cat conftest.err >&5
19766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767   (exit $ac_status); } &&
19768          { ac_try='test -z "$ac_c_werror_flag"
19769                          || test ! -s conftest.err'
19770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771   (eval $ac_try) 2>&5
19772   ac_status=$?
19773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774   (exit $ac_status); }; } &&
19775          { ac_try='test -s conftest.$ac_objext'
19776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777   (eval $ac_try) 2>&5
19778   ac_status=$?
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); }; }; then
19781   ac_lo=$ac_mid; break
19782 else
19783   echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19785
19786 ac_hi=`expr '(' $ac_mid ')' - 1`
19787                        if test $ac_mid -le $ac_hi; then
19788                          ac_lo= ac_hi=
19789                          break
19790                        fi
19791                        ac_mid=`expr 2 '*' $ac_mid`
19792 fi
19793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19794   done
19795 else
19796   echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19798
19799 ac_lo= ac_hi=
19800 fi
19801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19802 fi
19803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19804 # Binary search between lo and hi bounds.
19805 while test "x$ac_lo" != "x$ac_hi"; do
19806   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19807   cat >conftest.$ac_ext <<_ACEOF
19808 /* confdefs.h.  */
19809 _ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h.  */
19813 $ac_includes_default
19814 int
19815 main ()
19816 {
19817 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
19818 test_array [0] = 0
19819
19820   ;
19821   return 0;
19822 }
19823 _ACEOF
19824 rm -f conftest.$ac_objext
19825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19826   (eval $ac_compile) 2>conftest.er1
19827   ac_status=$?
19828   grep -v '^ *+' conftest.er1 >conftest.err
19829   rm -f conftest.er1
19830   cat conftest.err >&5
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); } &&
19833          { ac_try='test -z "$ac_c_werror_flag"
19834                          || test ! -s conftest.err'
19835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836   (eval $ac_try) 2>&5
19837   ac_status=$?
19838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); }; } &&
19840          { ac_try='test -s conftest.$ac_objext'
19841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842   (eval $ac_try) 2>&5
19843   ac_status=$?
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); }; }; then
19846   ac_hi=$ac_mid
19847 else
19848   echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19850
19851 ac_lo=`expr '(' $ac_mid ')' + 1`
19852 fi
19853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19854 done
19855 case $ac_lo in
19856 ?*) ac_cv_sizeof_double=$ac_lo;;
19857 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
19858 See \`config.log' for more details." >&5
19859 echo "$as_me: error: cannot compute sizeof (double), 77
19860 See \`config.log' for more details." >&2;}
19861    { (exit 1); exit 1; }; } ;;
19862 esac
19863 else
19864   if test "$cross_compiling" = yes; then
19865   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19866 See \`config.log' for more details." >&5
19867 echo "$as_me: error: cannot run test program while cross compiling
19868 See \`config.log' for more details." >&2;}
19869    { (exit 1); exit 1; }; }
19870 else
19871   cat >conftest.$ac_ext <<_ACEOF
19872 /* confdefs.h.  */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h.  */
19877 $ac_includes_default
19878 long longval () { return (long) (sizeof (double)); }
19879 unsigned long ulongval () { return (long) (sizeof (double)); }
19880 #include <stdio.h>
19881 #include <stdlib.h>
19882 int
19883 main ()
19884 {
19885
19886   FILE *f = fopen ("conftest.val", "w");
19887   if (! f)
19888     exit (1);
19889   if (((long) (sizeof (double))) < 0)
19890     {
19891       long i = longval ();
19892       if (i != ((long) (sizeof (double))))
19893         exit (1);
19894       fprintf (f, "%ld\n", i);
19895     }
19896   else
19897     {
19898       unsigned long i = ulongval ();
19899       if (i != ((long) (sizeof (double))))
19900         exit (1);
19901       fprintf (f, "%lu\n", i);
19902     }
19903   exit (ferror (f) || fclose (f) != 0);
19904
19905   ;
19906   return 0;
19907 }
19908 _ACEOF
19909 rm -f conftest$ac_exeext
19910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19911   (eval $ac_link) 2>&5
19912   ac_status=$?
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916   (eval $ac_try) 2>&5
19917   ac_status=$?
19918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919   (exit $ac_status); }; }; then
19920   ac_cv_sizeof_double=`cat conftest.val`
19921 else
19922   echo "$as_me: program exited with status $ac_status" >&5
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19925
19926 ( exit $ac_status )
19927 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
19928 See \`config.log' for more details." >&5
19929 echo "$as_me: error: cannot compute sizeof (double), 77
19930 See \`config.log' for more details." >&2;}
19931    { (exit 1); exit 1; }; }
19932 fi
19933 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19934 fi
19935 fi
19936 rm -f conftest.val
19937 else
19938   ac_cv_sizeof_double=0
19939 fi
19940 fi
19941 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
19942 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
19943 cat >>confdefs.h <<_ACEOF
19944 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
19945 _ACEOF
19946
19947
19948 echo "$as_me:$LINENO: checking for long long" >&5
19949 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19950 if test "${ac_cv_type_long_long+set}" = set; then
19951   echo $ECHO_N "(cached) $ECHO_C" >&6
19952 else
19953   cat >conftest.$ac_ext <<_ACEOF
19954 /* confdefs.h.  */
19955 _ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h.  */
19959 $ac_includes_default
19960 int
19961 main ()
19962 {
19963 if ((long long *) 0)
19964   return 0;
19965 if (sizeof (long long))
19966   return 0;
19967   ;
19968   return 0;
19969 }
19970 _ACEOF
19971 rm -f conftest.$ac_objext
19972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19973   (eval $ac_compile) 2>conftest.er1
19974   ac_status=$?
19975   grep -v '^ *+' conftest.er1 >conftest.err
19976   rm -f conftest.er1
19977   cat conftest.err >&5
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); } &&
19980          { ac_try='test -z "$ac_c_werror_flag"
19981                          || test ! -s conftest.err'
19982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983   (eval $ac_try) 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); }; } &&
19987          { ac_try='test -s conftest.$ac_objext'
19988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989   (eval $ac_try) 2>&5
19990   ac_status=$?
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); }; }; then
19993   ac_cv_type_long_long=yes
19994 else
19995   echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19997
19998 ac_cv_type_long_long=no
19999 fi
20000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20001 fi
20002 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20003 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20004
20005 echo "$as_me:$LINENO: checking size of long long" >&5
20006 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20007 if test "${ac_cv_sizeof_long_long+set}" = set; then
20008   echo $ECHO_N "(cached) $ECHO_C" >&6
20009 else
20010   if test "$ac_cv_type_long_long" = yes; then
20011   # The cast to unsigned long works around a bug in the HP C Compiler
20012   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20013   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20014   # This bug is HP SR number 8606223364.
20015   if test "$cross_compiling" = yes; then
20016   # Depending upon the size, compute the lo and hi bounds.
20017 cat >conftest.$ac_ext <<_ACEOF
20018 /* confdefs.h.  */
20019 _ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h.  */
20023 $ac_includes_default
20024 int
20025 main ()
20026 {
20027 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20028 test_array [0] = 0
20029
20030   ;
20031   return 0;
20032 }
20033 _ACEOF
20034 rm -f conftest.$ac_objext
20035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20036   (eval $ac_compile) 2>conftest.er1
20037   ac_status=$?
20038   grep -v '^ *+' conftest.er1 >conftest.err
20039   rm -f conftest.er1
20040   cat conftest.err >&5
20041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042   (exit $ac_status); } &&
20043          { ac_try='test -z "$ac_c_werror_flag"
20044                          || test ! -s conftest.err'
20045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046   (eval $ac_try) 2>&5
20047   ac_status=$?
20048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049   (exit $ac_status); }; } &&
20050          { ac_try='test -s conftest.$ac_objext'
20051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052   (eval $ac_try) 2>&5
20053   ac_status=$?
20054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055   (exit $ac_status); }; }; then
20056   ac_lo=0 ac_mid=0
20057   while :; do
20058     cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h.  */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h.  */
20064 $ac_includes_default
20065 int
20066 main ()
20067 {
20068 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20069 test_array [0] = 0
20070
20071   ;
20072   return 0;
20073 }
20074 _ACEOF
20075 rm -f conftest.$ac_objext
20076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20077   (eval $ac_compile) 2>conftest.er1
20078   ac_status=$?
20079   grep -v '^ *+' conftest.er1 >conftest.err
20080   rm -f conftest.er1
20081   cat conftest.err >&5
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); } &&
20084          { ac_try='test -z "$ac_c_werror_flag"
20085                          || test ! -s conftest.err'
20086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20087   (eval $ac_try) 2>&5
20088   ac_status=$?
20089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090   (exit $ac_status); }; } &&
20091          { ac_try='test -s conftest.$ac_objext'
20092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093   (eval $ac_try) 2>&5
20094   ac_status=$?
20095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096   (exit $ac_status); }; }; then
20097   ac_hi=$ac_mid; break
20098 else
20099   echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20101
20102 ac_lo=`expr $ac_mid + 1`
20103                     if test $ac_lo -le $ac_mid; then
20104                       ac_lo= ac_hi=
20105                       break
20106                     fi
20107                     ac_mid=`expr 2 '*' $ac_mid + 1`
20108 fi
20109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20110   done
20111 else
20112   echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20114
20115 cat >conftest.$ac_ext <<_ACEOF
20116 /* confdefs.h.  */
20117 _ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h.  */
20121 $ac_includes_default
20122 int
20123 main ()
20124 {
20125 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20126 test_array [0] = 0
20127
20128   ;
20129   return 0;
20130 }
20131 _ACEOF
20132 rm -f conftest.$ac_objext
20133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20134   (eval $ac_compile) 2>conftest.er1
20135   ac_status=$?
20136   grep -v '^ *+' conftest.er1 >conftest.err
20137   rm -f conftest.er1
20138   cat conftest.err >&5
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); } &&
20141          { ac_try='test -z "$ac_c_werror_flag"
20142                          || test ! -s conftest.err'
20143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144   (eval $ac_try) 2>&5
20145   ac_status=$?
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); }; } &&
20148          { ac_try='test -s conftest.$ac_objext'
20149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150   (eval $ac_try) 2>&5
20151   ac_status=$?
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); }; }; then
20154   ac_hi=-1 ac_mid=-1
20155   while :; do
20156     cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h.  */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h.  */
20162 $ac_includes_default
20163 int
20164 main ()
20165 {
20166 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20167 test_array [0] = 0
20168
20169   ;
20170   return 0;
20171 }
20172 _ACEOF
20173 rm -f conftest.$ac_objext
20174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20175   (eval $ac_compile) 2>conftest.er1
20176   ac_status=$?
20177   grep -v '^ *+' conftest.er1 >conftest.err
20178   rm -f conftest.er1
20179   cat conftest.err >&5
20180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181   (exit $ac_status); } &&
20182          { ac_try='test -z "$ac_c_werror_flag"
20183                          || test ! -s conftest.err'
20184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185   (eval $ac_try) 2>&5
20186   ac_status=$?
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); }; } &&
20189          { ac_try='test -s conftest.$ac_objext'
20190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191   (eval $ac_try) 2>&5
20192   ac_status=$?
20193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194   (exit $ac_status); }; }; then
20195   ac_lo=$ac_mid; break
20196 else
20197   echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20199
20200 ac_hi=`expr '(' $ac_mid ')' - 1`
20201                        if test $ac_mid -le $ac_hi; then
20202                          ac_lo= ac_hi=
20203                          break
20204                        fi
20205                        ac_mid=`expr 2 '*' $ac_mid`
20206 fi
20207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20208   done
20209 else
20210   echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213 ac_lo= ac_hi=
20214 fi
20215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20216 fi
20217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20218 # Binary search between lo and hi bounds.
20219 while test "x$ac_lo" != "x$ac_hi"; do
20220   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20221   cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h.  */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h.  */
20227 $ac_includes_default
20228 int
20229 main ()
20230 {
20231 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20232 test_array [0] = 0
20233
20234   ;
20235   return 0;
20236 }
20237 _ACEOF
20238 rm -f conftest.$ac_objext
20239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20240   (eval $ac_compile) 2>conftest.er1
20241   ac_status=$?
20242   grep -v '^ *+' conftest.er1 >conftest.err
20243   rm -f conftest.er1
20244   cat conftest.err >&5
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); } &&
20247          { ac_try='test -z "$ac_c_werror_flag"
20248                          || test ! -s conftest.err'
20249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250   (eval $ac_try) 2>&5
20251   ac_status=$?
20252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253   (exit $ac_status); }; } &&
20254          { ac_try='test -s conftest.$ac_objext'
20255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256   (eval $ac_try) 2>&5
20257   ac_status=$?
20258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); }; }; then
20260   ac_hi=$ac_mid
20261 else
20262   echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20264
20265 ac_lo=`expr '(' $ac_mid ')' + 1`
20266 fi
20267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20268 done
20269 case $ac_lo in
20270 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20271 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20272 See \`config.log' for more details." >&5
20273 echo "$as_me: error: cannot compute sizeof (long long), 77
20274 See \`config.log' for more details." >&2;}
20275    { (exit 1); exit 1; }; } ;;
20276 esac
20277 else
20278   if test "$cross_compiling" = yes; then
20279   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20280 See \`config.log' for more details." >&5
20281 echo "$as_me: error: cannot run test program while cross compiling
20282 See \`config.log' for more details." >&2;}
20283    { (exit 1); exit 1; }; }
20284 else
20285   cat >conftest.$ac_ext <<_ACEOF
20286 /* confdefs.h.  */
20287 _ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h.  */
20291 $ac_includes_default
20292 long longval () { return (long) (sizeof (long long)); }
20293 unsigned long ulongval () { return (long) (sizeof (long long)); }
20294 #include <stdio.h>
20295 #include <stdlib.h>
20296 int
20297 main ()
20298 {
20299
20300   FILE *f = fopen ("conftest.val", "w");
20301   if (! f)
20302     exit (1);
20303   if (((long) (sizeof (long long))) < 0)
20304     {
20305       long i = longval ();
20306       if (i != ((long) (sizeof (long long))))
20307         exit (1);
20308       fprintf (f, "%ld\n", i);
20309     }
20310   else
20311     {
20312       unsigned long i = ulongval ();
20313       if (i != ((long) (sizeof (long long))))
20314         exit (1);
20315       fprintf (f, "%lu\n", i);
20316     }
20317   exit (ferror (f) || fclose (f) != 0);
20318
20319   ;
20320   return 0;
20321 }
20322 _ACEOF
20323 rm -f conftest$ac_exeext
20324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20325   (eval $ac_link) 2>&5
20326   ac_status=$?
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330   (eval $ac_try) 2>&5
20331   ac_status=$?
20332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); }; }; then
20334   ac_cv_sizeof_long_long=`cat conftest.val`
20335 else
20336   echo "$as_me: program exited with status $ac_status" >&5
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20339
20340 ( exit $ac_status )
20341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20342 See \`config.log' for more details." >&5
20343 echo "$as_me: error: cannot compute sizeof (long long), 77
20344 See \`config.log' for more details." >&2;}
20345    { (exit 1); exit 1; }; }
20346 fi
20347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20348 fi
20349 fi
20350 rm -f conftest.val
20351 else
20352   ac_cv_sizeof_long_long=0
20353 fi
20354 fi
20355 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20356 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20357 cat >>confdefs.h <<_ACEOF
20358 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20359 _ACEOF
20360
20361
20362
20363 echo "$as_me:$LINENO: checking for u_int" >&5
20364 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
20365 if test "${ac_cv_type_u_int+set}" = set; then
20366   echo $ECHO_N "(cached) $ECHO_C" >&6
20367 else
20368   cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h.  */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h.  */
20374 $ac_includes_default
20375 int
20376 main ()
20377 {
20378 if ((u_int *) 0)
20379   return 0;
20380 if (sizeof (u_int))
20381   return 0;
20382   ;
20383   return 0;
20384 }
20385 _ACEOF
20386 rm -f conftest.$ac_objext
20387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20388   (eval $ac_compile) 2>conftest.er1
20389   ac_status=$?
20390   grep -v '^ *+' conftest.er1 >conftest.err
20391   rm -f conftest.er1
20392   cat conftest.err >&5
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); } &&
20395          { ac_try='test -z "$ac_c_werror_flag"
20396                          || test ! -s conftest.err'
20397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398   (eval $ac_try) 2>&5
20399   ac_status=$?
20400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401   (exit $ac_status); }; } &&
20402          { ac_try='test -s conftest.$ac_objext'
20403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404   (eval $ac_try) 2>&5
20405   ac_status=$?
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); }; }; then
20408   ac_cv_type_u_int=yes
20409 else
20410   echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413 ac_cv_type_u_int=no
20414 fi
20415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20416 fi
20417 echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
20418 echo "${ECHO_T}$ac_cv_type_u_int" >&6
20419 if test $ac_cv_type_u_int = yes; then
20420   :
20421 else
20422
20423 cat >>confdefs.h <<_ACEOF
20424 #define u_int unsigned int
20425 _ACEOF
20426
20427 fi
20428
20429 echo "$as_me:$LINENO: checking for u_long" >&5
20430 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
20431 if test "${ac_cv_type_u_long+set}" = set; then
20432   echo $ECHO_N "(cached) $ECHO_C" >&6
20433 else
20434   cat >conftest.$ac_ext <<_ACEOF
20435 /* confdefs.h.  */
20436 _ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h.  */
20440 $ac_includes_default
20441 int
20442 main ()
20443 {
20444 if ((u_long *) 0)
20445   return 0;
20446 if (sizeof (u_long))
20447   return 0;
20448   ;
20449   return 0;
20450 }
20451 _ACEOF
20452 rm -f conftest.$ac_objext
20453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20454   (eval $ac_compile) 2>conftest.er1
20455   ac_status=$?
20456   grep -v '^ *+' conftest.er1 >conftest.err
20457   rm -f conftest.er1
20458   cat conftest.err >&5
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); } &&
20461          { ac_try='test -z "$ac_c_werror_flag"
20462                          || test ! -s conftest.err'
20463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464   (eval $ac_try) 2>&5
20465   ac_status=$?
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); }; } &&
20468          { ac_try='test -s conftest.$ac_objext'
20469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470   (eval $ac_try) 2>&5
20471   ac_status=$?
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); }; }; then
20474   ac_cv_type_u_long=yes
20475 else
20476   echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20478
20479 ac_cv_type_u_long=no
20480 fi
20481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20482 fi
20483 echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
20484 echo "${ECHO_T}$ac_cv_type_u_long" >&6
20485 if test $ac_cv_type_u_long = yes; then
20486   :
20487 else
20488
20489 cat >>confdefs.h <<_ACEOF
20490 #define u_long unsigned long
20491 _ACEOF
20492
20493 fi
20494
20495
20496
20497 if test "$ac_cv_sizeof_short" = 2; then
20498   echo "$as_me:$LINENO: checking for bits16_t" >&5
20499 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20500 if test "${ac_cv_type_bits16_t+set}" = set; then
20501   echo $ECHO_N "(cached) $ECHO_C" >&6
20502 else
20503   cat >conftest.$ac_ext <<_ACEOF
20504 /* confdefs.h.  */
20505 _ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h.  */
20509 $ac_includes_default
20510 int
20511 main ()
20512 {
20513 if ((bits16_t *) 0)
20514   return 0;
20515 if (sizeof (bits16_t))
20516   return 0;
20517   ;
20518   return 0;
20519 }
20520 _ACEOF
20521 rm -f conftest.$ac_objext
20522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20523   (eval $ac_compile) 2>conftest.er1
20524   ac_status=$?
20525   grep -v '^ *+' conftest.er1 >conftest.err
20526   rm -f conftest.er1
20527   cat conftest.err >&5
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); } &&
20530          { ac_try='test -z "$ac_c_werror_flag"
20531                          || test ! -s conftest.err'
20532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533   (eval $ac_try) 2>&5
20534   ac_status=$?
20535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); }; } &&
20537          { ac_try='test -s conftest.$ac_objext'
20538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539   (eval $ac_try) 2>&5
20540   ac_status=$?
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); }; }; then
20543   ac_cv_type_bits16_t=yes
20544 else
20545   echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20547
20548 ac_cv_type_bits16_t=no
20549 fi
20550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20551 fi
20552 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
20553 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20554 if test $ac_cv_type_bits16_t = yes; then
20555   :
20556 else
20557
20558 cat >>confdefs.h <<_ACEOF
20559 #define bits16_t short
20560 _ACEOF
20561
20562 fi
20563
20564 elif test "$ac_cv_sizeof_char" = 2; then
20565   echo "$as_me:$LINENO: checking for bits16_t" >&5
20566 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20567 if test "${ac_cv_type_bits16_t+set}" = set; then
20568   echo $ECHO_N "(cached) $ECHO_C" >&6
20569 else
20570   cat >conftest.$ac_ext <<_ACEOF
20571 /* confdefs.h.  */
20572 _ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h.  */
20576 $ac_includes_default
20577 int
20578 main ()
20579 {
20580 if ((bits16_t *) 0)
20581   return 0;
20582 if (sizeof (bits16_t))
20583   return 0;
20584   ;
20585   return 0;
20586 }
20587 _ACEOF
20588 rm -f conftest.$ac_objext
20589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20590   (eval $ac_compile) 2>conftest.er1
20591   ac_status=$?
20592   grep -v '^ *+' conftest.er1 >conftest.err
20593   rm -f conftest.er1
20594   cat conftest.err >&5
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); } &&
20597          { ac_try='test -z "$ac_c_werror_flag"
20598                          || test ! -s conftest.err'
20599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600   (eval $ac_try) 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); }; } &&
20604          { ac_try='test -s conftest.$ac_objext'
20605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606   (eval $ac_try) 2>&5
20607   ac_status=$?
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); }; }; then
20610   ac_cv_type_bits16_t=yes
20611 else
20612   echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20614
20615 ac_cv_type_bits16_t=no
20616 fi
20617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20618 fi
20619 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
20620 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20621 if test $ac_cv_type_bits16_t = yes; then
20622   :
20623 else
20624
20625 cat >>confdefs.h <<_ACEOF
20626 #define bits16_t char
20627 _ACEOF
20628
20629 fi
20630
20631 else
20632   echo "$as_me:$LINENO: checking for bits16_t" >&5
20633 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20634 if test "${ac_cv_type_bits16_t+set}" = set; then
20635   echo $ECHO_N "(cached) $ECHO_C" >&6
20636 else
20637   cat >conftest.$ac_ext <<_ACEOF
20638 /* confdefs.h.  */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h.  */
20643 $ac_includes_default
20644 int
20645 main ()
20646 {
20647 if ((bits16_t *) 0)
20648   return 0;
20649 if (sizeof (bits16_t))
20650   return 0;
20651   ;
20652   return 0;
20653 }
20654 _ACEOF
20655 rm -f conftest.$ac_objext
20656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20657   (eval $ac_compile) 2>conftest.er1
20658   ac_status=$?
20659   grep -v '^ *+' conftest.er1 >conftest.err
20660   rm -f conftest.er1
20661   cat conftest.err >&5
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); } &&
20664          { ac_try='test -z "$ac_c_werror_flag"
20665                          || test ! -s conftest.err'
20666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667   (eval $ac_try) 2>&5
20668   ac_status=$?
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); }; } &&
20671          { ac_try='test -s conftest.$ac_objext'
20672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673   (eval $ac_try) 2>&5
20674   ac_status=$?
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); }; }; then
20677   ac_cv_type_bits16_t=yes
20678 else
20679   echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20681
20682 ac_cv_type_bits16_t=no
20683 fi
20684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20685 fi
20686 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
20687 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20688 if test $ac_cv_type_bits16_t = yes; then
20689   :
20690 else
20691
20692 cat >>confdefs.h <<_ACEOF
20693 #define bits16_t short
20694 _ACEOF
20695
20696 fi
20697
20698 fi
20699
20700
20701 if test "$ac_cv_sizeof_short" = 2; then
20702   echo "$as_me:$LINENO: checking for u_bits16_t" >&5
20703 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
20704 if test "${ac_cv_type_u_bits16_t+set}" = set; then
20705   echo $ECHO_N "(cached) $ECHO_C" >&6
20706 else
20707   cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h.  */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h.  */
20713 $ac_includes_default
20714 int
20715 main ()
20716 {
20717 if ((u_bits16_t *) 0)
20718   return 0;
20719 if (sizeof (u_bits16_t))
20720   return 0;
20721   ;
20722   return 0;
20723 }
20724 _ACEOF
20725 rm -f conftest.$ac_objext
20726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20727   (eval $ac_compile) 2>conftest.er1
20728   ac_status=$?
20729   grep -v '^ *+' conftest.er1 >conftest.err
20730   rm -f conftest.er1
20731   cat conftest.err >&5
20732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733   (exit $ac_status); } &&
20734          { ac_try='test -z "$ac_c_werror_flag"
20735                          || test ! -s conftest.err'
20736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737   (eval $ac_try) 2>&5
20738   ac_status=$?
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); }; } &&
20741          { ac_try='test -s conftest.$ac_objext'
20742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743   (eval $ac_try) 2>&5
20744   ac_status=$?
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); }; }; then
20747   ac_cv_type_u_bits16_t=yes
20748 else
20749   echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20751
20752 ac_cv_type_u_bits16_t=no
20753 fi
20754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20755 fi
20756 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
20757 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
20758 if test $ac_cv_type_u_bits16_t = yes; then
20759   :
20760 else
20761
20762 cat >>confdefs.h <<_ACEOF
20763 #define u_bits16_t unsigned short
20764 _ACEOF
20765
20766 fi
20767
20768 elif test "$ac_cv_sizeof_char" = 2; then
20769   echo "$as_me:$LINENO: checking for u_bits16_t" >&5
20770 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
20771 if test "${ac_cv_type_u_bits16_t+set}" = set; then
20772   echo $ECHO_N "(cached) $ECHO_C" >&6
20773 else
20774   cat >conftest.$ac_ext <<_ACEOF
20775 /* confdefs.h.  */
20776 _ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h.  */
20780 $ac_includes_default
20781 int
20782 main ()
20783 {
20784 if ((u_bits16_t *) 0)
20785   return 0;
20786 if (sizeof (u_bits16_t))
20787   return 0;
20788   ;
20789   return 0;
20790 }
20791 _ACEOF
20792 rm -f conftest.$ac_objext
20793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20794   (eval $ac_compile) 2>conftest.er1
20795   ac_status=$?
20796   grep -v '^ *+' conftest.er1 >conftest.err
20797   rm -f conftest.er1
20798   cat conftest.err >&5
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); } &&
20801          { ac_try='test -z "$ac_c_werror_flag"
20802                          || test ! -s conftest.err'
20803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804   (eval $ac_try) 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   ac_cv_type_u_bits16_t=yes
20815 else
20816   echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20818
20819 ac_cv_type_u_bits16_t=no
20820 fi
20821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20822 fi
20823 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
20824 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
20825 if test $ac_cv_type_u_bits16_t = yes; then
20826   :
20827 else
20828
20829 cat >>confdefs.h <<_ACEOF
20830 #define u_bits16_t unsigned char
20831 _ACEOF
20832
20833 fi
20834
20835 else
20836   echo "$as_me:$LINENO: checking for u_bits16_t" >&5
20837 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
20838 if test "${ac_cv_type_u_bits16_t+set}" = set; then
20839   echo $ECHO_N "(cached) $ECHO_C" >&6
20840 else
20841   cat >conftest.$ac_ext <<_ACEOF
20842 /* confdefs.h.  */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h.  */
20847 $ac_includes_default
20848 int
20849 main ()
20850 {
20851 if ((u_bits16_t *) 0)
20852   return 0;
20853 if (sizeof (u_bits16_t))
20854   return 0;
20855   ;
20856   return 0;
20857 }
20858 _ACEOF
20859 rm -f conftest.$ac_objext
20860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20861   (eval $ac_compile) 2>conftest.er1
20862   ac_status=$?
20863   grep -v '^ *+' conftest.er1 >conftest.err
20864   rm -f conftest.er1
20865   cat conftest.err >&5
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); } &&
20868          { ac_try='test -z "$ac_c_werror_flag"
20869                          || test ! -s conftest.err'
20870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871   (eval $ac_try) 2>&5
20872   ac_status=$?
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); }; } &&
20875          { ac_try='test -s conftest.$ac_objext'
20876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20877   (eval $ac_try) 2>&5
20878   ac_status=$?
20879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880   (exit $ac_status); }; }; then
20881   ac_cv_type_u_bits16_t=yes
20882 else
20883   echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20885
20886 ac_cv_type_u_bits16_t=no
20887 fi
20888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20889 fi
20890 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
20891 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
20892 if test $ac_cv_type_u_bits16_t = yes; then
20893   :
20894 else
20895
20896 cat >>confdefs.h <<_ACEOF
20897 #define u_bits16_t unsigned short
20898 _ACEOF
20899
20900 fi
20901
20902 fi
20903
20904
20905 if test "$ac_cv_sizeof_int" = 4; then
20906   echo "$as_me:$LINENO: checking for bits32_t" >&5
20907 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
20908 if test "${ac_cv_type_bits32_t+set}" = set; then
20909   echo $ECHO_N "(cached) $ECHO_C" >&6
20910 else
20911   cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h.  */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h.  */
20917 $ac_includes_default
20918 int
20919 main ()
20920 {
20921 if ((bits32_t *) 0)
20922   return 0;
20923 if (sizeof (bits32_t))
20924   return 0;
20925   ;
20926   return 0;
20927 }
20928 _ACEOF
20929 rm -f conftest.$ac_objext
20930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20931   (eval $ac_compile) 2>conftest.er1
20932   ac_status=$?
20933   grep -v '^ *+' conftest.er1 >conftest.err
20934   rm -f conftest.er1
20935   cat conftest.err >&5
20936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937   (exit $ac_status); } &&
20938          { ac_try='test -z "$ac_c_werror_flag"
20939                          || test ! -s conftest.err'
20940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941   (eval $ac_try) 2>&5
20942   ac_status=$?
20943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944   (exit $ac_status); }; } &&
20945          { ac_try='test -s conftest.$ac_objext'
20946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947   (eval $ac_try) 2>&5
20948   ac_status=$?
20949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950   (exit $ac_status); }; }; then
20951   ac_cv_type_bits32_t=yes
20952 else
20953   echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20955
20956 ac_cv_type_bits32_t=no
20957 fi
20958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20959 fi
20960 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
20961 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
20962 if test $ac_cv_type_bits32_t = yes; then
20963   :
20964 else
20965
20966 cat >>confdefs.h <<_ACEOF
20967 #define bits32_t int
20968 _ACEOF
20969
20970 fi
20971
20972 elif test "$ac_cv_sizeof_long" = 4; then
20973   echo "$as_me:$LINENO: checking for bits32_t" >&5
20974 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
20975 if test "${ac_cv_type_bits32_t+set}" = set; then
20976   echo $ECHO_N "(cached) $ECHO_C" >&6
20977 else
20978   cat >conftest.$ac_ext <<_ACEOF
20979 /* confdefs.h.  */
20980 _ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h.  */
20984 $ac_includes_default
20985 int
20986 main ()
20987 {
20988 if ((bits32_t *) 0)
20989   return 0;
20990 if (sizeof (bits32_t))
20991   return 0;
20992   ;
20993   return 0;
20994 }
20995 _ACEOF
20996 rm -f conftest.$ac_objext
20997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20998   (eval $ac_compile) 2>conftest.er1
20999   ac_status=$?
21000   grep -v '^ *+' conftest.er1 >conftest.err
21001   rm -f conftest.er1
21002   cat conftest.err >&5
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); } &&
21005          { ac_try='test -z "$ac_c_werror_flag"
21006                          || test ! -s conftest.err'
21007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008   (eval $ac_try) 2>&5
21009   ac_status=$?
21010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011   (exit $ac_status); }; } &&
21012          { ac_try='test -s conftest.$ac_objext'
21013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014   (eval $ac_try) 2>&5
21015   ac_status=$?
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); }; }; then
21018   ac_cv_type_bits32_t=yes
21019 else
21020   echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21022
21023 ac_cv_type_bits32_t=no
21024 fi
21025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21026 fi
21027 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21028 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21029 if test $ac_cv_type_bits32_t = yes; then
21030   :
21031 else
21032
21033 cat >>confdefs.h <<_ACEOF
21034 #define bits32_t long
21035 _ACEOF
21036
21037 fi
21038
21039 else
21040   echo "$as_me:$LINENO: checking for bits32_t" >&5
21041 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21042 if test "${ac_cv_type_bits32_t+set}" = set; then
21043   echo $ECHO_N "(cached) $ECHO_C" >&6
21044 else
21045   cat >conftest.$ac_ext <<_ACEOF
21046 /* confdefs.h.  */
21047 _ACEOF
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h.  */
21051 $ac_includes_default
21052 int
21053 main ()
21054 {
21055 if ((bits32_t *) 0)
21056   return 0;
21057 if (sizeof (bits32_t))
21058   return 0;
21059   ;
21060   return 0;
21061 }
21062 _ACEOF
21063 rm -f conftest.$ac_objext
21064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21065   (eval $ac_compile) 2>conftest.er1
21066   ac_status=$?
21067   grep -v '^ *+' conftest.er1 >conftest.err
21068   rm -f conftest.er1
21069   cat conftest.err >&5
21070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071   (exit $ac_status); } &&
21072          { ac_try='test -z "$ac_c_werror_flag"
21073                          || test ! -s conftest.err'
21074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075   (eval $ac_try) 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); }; } &&
21079          { ac_try='test -s conftest.$ac_objext'
21080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081   (eval $ac_try) 2>&5
21082   ac_status=$?
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); }; }; then
21085   ac_cv_type_bits32_t=yes
21086 else
21087   echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21089
21090 ac_cv_type_bits32_t=no
21091 fi
21092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21093 fi
21094 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21095 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21096 if test $ac_cv_type_bits32_t = yes; then
21097   :
21098 else
21099
21100 cat >>confdefs.h <<_ACEOF
21101 #define bits32_t int
21102 _ACEOF
21103
21104 fi
21105
21106 fi
21107
21108
21109 if test "$ac_cv_sizeof_int" = 4; then
21110   echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21111 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21112 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21113   echo $ECHO_N "(cached) $ECHO_C" >&6
21114 else
21115   cat >conftest.$ac_ext <<_ACEOF
21116 /* confdefs.h.  */
21117 _ACEOF
21118 cat confdefs.h >>conftest.$ac_ext
21119 cat >>conftest.$ac_ext <<_ACEOF
21120 /* end confdefs.h.  */
21121 $ac_includes_default
21122 int
21123 main ()
21124 {
21125 if ((u_bits32_t *) 0)
21126   return 0;
21127 if (sizeof (u_bits32_t))
21128   return 0;
21129   ;
21130   return 0;
21131 }
21132 _ACEOF
21133 rm -f conftest.$ac_objext
21134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21135   (eval $ac_compile) 2>conftest.er1
21136   ac_status=$?
21137   grep -v '^ *+' conftest.er1 >conftest.err
21138   rm -f conftest.er1
21139   cat conftest.err >&5
21140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141   (exit $ac_status); } &&
21142          { ac_try='test -z "$ac_c_werror_flag"
21143                          || test ! -s conftest.err'
21144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145   (eval $ac_try) 2>&5
21146   ac_status=$?
21147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148   (exit $ac_status); }; } &&
21149          { ac_try='test -s conftest.$ac_objext'
21150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151   (eval $ac_try) 2>&5
21152   ac_status=$?
21153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154   (exit $ac_status); }; }; then
21155   ac_cv_type_u_bits32_t=yes
21156 else
21157   echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21159
21160 ac_cv_type_u_bits32_t=no
21161 fi
21162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21163 fi
21164 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21165 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21166 if test $ac_cv_type_u_bits32_t = yes; then
21167   :
21168 else
21169
21170 cat >>confdefs.h <<_ACEOF
21171 #define u_bits32_t unsigned int
21172 _ACEOF
21173
21174 fi
21175
21176 elif test "$ac_cv_sizeof_long" = 4; then
21177   echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21178 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21179 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21180   echo $ECHO_N "(cached) $ECHO_C" >&6
21181 else
21182   cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h.  */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h.  */
21188 $ac_includes_default
21189 int
21190 main ()
21191 {
21192 if ((u_bits32_t *) 0)
21193   return 0;
21194 if (sizeof (u_bits32_t))
21195   return 0;
21196   ;
21197   return 0;
21198 }
21199 _ACEOF
21200 rm -f conftest.$ac_objext
21201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21202   (eval $ac_compile) 2>conftest.er1
21203   ac_status=$?
21204   grep -v '^ *+' conftest.er1 >conftest.err
21205   rm -f conftest.er1
21206   cat conftest.err >&5
21207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208   (exit $ac_status); } &&
21209          { ac_try='test -z "$ac_c_werror_flag"
21210                          || test ! -s conftest.err'
21211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21212   (eval $ac_try) 2>&5
21213   ac_status=$?
21214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215   (exit $ac_status); }; } &&
21216          { ac_try='test -s conftest.$ac_objext'
21217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21218   (eval $ac_try) 2>&5
21219   ac_status=$?
21220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221   (exit $ac_status); }; }; then
21222   ac_cv_type_u_bits32_t=yes
21223 else
21224   echo "$as_me: failed program was:" >&5
21225 sed 's/^/| /' conftest.$ac_ext >&5
21226
21227 ac_cv_type_u_bits32_t=no
21228 fi
21229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21230 fi
21231 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21232 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21233 if test $ac_cv_type_u_bits32_t = yes; then
21234   :
21235 else
21236
21237 cat >>confdefs.h <<_ACEOF
21238 #define u_bits32_t unsigned long
21239 _ACEOF
21240
21241 fi
21242
21243 else
21244   echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21245 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21246 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21247   echo $ECHO_N "(cached) $ECHO_C" >&6
21248 else
21249   cat >conftest.$ac_ext <<_ACEOF
21250 /* confdefs.h.  */
21251 _ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h.  */
21255 $ac_includes_default
21256 int
21257 main ()
21258 {
21259 if ((u_bits32_t *) 0)
21260   return 0;
21261 if (sizeof (u_bits32_t))
21262   return 0;
21263   ;
21264   return 0;
21265 }
21266 _ACEOF
21267 rm -f conftest.$ac_objext
21268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21269   (eval $ac_compile) 2>conftest.er1
21270   ac_status=$?
21271   grep -v '^ *+' conftest.er1 >conftest.err
21272   rm -f conftest.er1
21273   cat conftest.err >&5
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); } &&
21276          { ac_try='test -z "$ac_c_werror_flag"
21277                          || test ! -s conftest.err'
21278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279   (eval $ac_try) 2>&5
21280   ac_status=$?
21281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282   (exit $ac_status); }; } &&
21283          { ac_try='test -s conftest.$ac_objext'
21284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285   (eval $ac_try) 2>&5
21286   ac_status=$?
21287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288   (exit $ac_status); }; }; then
21289   ac_cv_type_u_bits32_t=yes
21290 else
21291   echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21293
21294 ac_cv_type_u_bits32_t=no
21295 fi
21296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21297 fi
21298 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21299 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21300 if test $ac_cv_type_u_bits32_t = yes; then
21301   :
21302 else
21303
21304 cat >>confdefs.h <<_ACEOF
21305 #define u_bits32_t unsigned int
21306 _ACEOF
21307
21308 fi
21309
21310 fi
21311
21312
21313 if test "$ac_cv_sizeof_char_p" = 8; then
21314   echo "$as_me:$LINENO: checking for bits64_t" >&5
21315 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21316 if test "${ac_cv_type_bits64_t+set}" = set; then
21317   echo $ECHO_N "(cached) $ECHO_C" >&6
21318 else
21319   cat >conftest.$ac_ext <<_ACEOF
21320 /* confdefs.h.  */
21321 _ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h.  */
21325 $ac_includes_default
21326 int
21327 main ()
21328 {
21329 if ((bits64_t *) 0)
21330   return 0;
21331 if (sizeof (bits64_t))
21332   return 0;
21333   ;
21334   return 0;
21335 }
21336 _ACEOF
21337 rm -f conftest.$ac_objext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21339   (eval $ac_compile) 2>conftest.er1
21340   ac_status=$?
21341   grep -v '^ *+' conftest.er1 >conftest.err
21342   rm -f conftest.er1
21343   cat conftest.err >&5
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); } &&
21346          { ac_try='test -z "$ac_c_werror_flag"
21347                          || test ! -s conftest.err'
21348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349   (eval $ac_try) 2>&5
21350   ac_status=$?
21351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); }; } &&
21353          { ac_try='test -s conftest.$ac_objext'
21354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355   (eval $ac_try) 2>&5
21356   ac_status=$?
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); }; }; then
21359   ac_cv_type_bits64_t=yes
21360 else
21361   echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364 ac_cv_type_bits64_t=no
21365 fi
21366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21367 fi
21368 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21369 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21370 if test $ac_cv_type_bits64_t = yes; then
21371   :
21372 else
21373
21374 cat >>confdefs.h <<_ACEOF
21375 #define bits64_t char *
21376 _ACEOF
21377
21378 fi
21379
21380 elif test "$ac_cv_sizeof_double" = 8; then
21381   echo "$as_me:$LINENO: checking for bits64_t" >&5
21382 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21383 if test "${ac_cv_type_bits64_t+set}" = set; then
21384   echo $ECHO_N "(cached) $ECHO_C" >&6
21385 else
21386   cat >conftest.$ac_ext <<_ACEOF
21387 /* confdefs.h.  */
21388 _ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h.  */
21392 $ac_includes_default
21393 int
21394 main ()
21395 {
21396 if ((bits64_t *) 0)
21397   return 0;
21398 if (sizeof (bits64_t))
21399   return 0;
21400   ;
21401   return 0;
21402 }
21403 _ACEOF
21404 rm -f conftest.$ac_objext
21405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21406   (eval $ac_compile) 2>conftest.er1
21407   ac_status=$?
21408   grep -v '^ *+' conftest.er1 >conftest.err
21409   rm -f conftest.er1
21410   cat conftest.err >&5
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); } &&
21413          { ac_try='test -z "$ac_c_werror_flag"
21414                          || test ! -s conftest.err'
21415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416   (eval $ac_try) 2>&5
21417   ac_status=$?
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   (exit $ac_status); }; } &&
21420          { ac_try='test -s conftest.$ac_objext'
21421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422   (eval $ac_try) 2>&5
21423   ac_status=$?
21424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425   (exit $ac_status); }; }; then
21426   ac_cv_type_bits64_t=yes
21427 else
21428   echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431 ac_cv_type_bits64_t=no
21432 fi
21433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21434 fi
21435 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21436 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21437 if test $ac_cv_type_bits64_t = yes; then
21438   :
21439 else
21440
21441 cat >>confdefs.h <<_ACEOF
21442 #define bits64_t double
21443 _ACEOF
21444
21445 fi
21446
21447 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
21448   echo "$as_me:$LINENO: checking for bits64_t" >&5
21449 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21450 if test "${ac_cv_type_bits64_t+set}" = set; then
21451   echo $ECHO_N "(cached) $ECHO_C" >&6
21452 else
21453   cat >conftest.$ac_ext <<_ACEOF
21454 /* confdefs.h.  */
21455 _ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h.  */
21459 $ac_includes_default
21460 int
21461 main ()
21462 {
21463 if ((bits64_t *) 0)
21464   return 0;
21465 if (sizeof (bits64_t))
21466   return 0;
21467   ;
21468   return 0;
21469 }
21470 _ACEOF
21471 rm -f conftest.$ac_objext
21472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21473   (eval $ac_compile) 2>conftest.er1
21474   ac_status=$?
21475   grep -v '^ *+' conftest.er1 >conftest.err
21476   rm -f conftest.er1
21477   cat conftest.err >&5
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); } &&
21480          { ac_try='test -z "$ac_c_werror_flag"
21481                          || test ! -s conftest.err'
21482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483   (eval $ac_try) 2>&5
21484   ac_status=$?
21485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486   (exit $ac_status); }; } &&
21487          { ac_try='test -s conftest.$ac_objext'
21488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489   (eval $ac_try) 2>&5
21490   ac_status=$?
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); }; }; then
21493   ac_cv_type_bits64_t=yes
21494 else
21495   echo "$as_me: failed program was:" >&5
21496 sed 's/^/| /' conftest.$ac_ext >&5
21497
21498 ac_cv_type_bits64_t=no
21499 fi
21500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21501 fi
21502 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21503 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21504 if test $ac_cv_type_bits64_t = yes; then
21505   :
21506 else
21507
21508 cat >>confdefs.h <<_ACEOF
21509 #define bits64_t long long
21510 _ACEOF
21511
21512 fi
21513
21514 elif test "$ac_cv_sizeof_long" = 8; then
21515   echo "$as_me:$LINENO: checking for bits64_t" >&5
21516 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21517 if test "${ac_cv_type_bits64_t+set}" = set; then
21518   echo $ECHO_N "(cached) $ECHO_C" >&6
21519 else
21520   cat >conftest.$ac_ext <<_ACEOF
21521 /* confdefs.h.  */
21522 _ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h.  */
21526 $ac_includes_default
21527 int
21528 main ()
21529 {
21530 if ((bits64_t *) 0)
21531   return 0;
21532 if (sizeof (bits64_t))
21533   return 0;
21534   ;
21535   return 0;
21536 }
21537 _ACEOF
21538 rm -f conftest.$ac_objext
21539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21540   (eval $ac_compile) 2>conftest.er1
21541   ac_status=$?
21542   grep -v '^ *+' conftest.er1 >conftest.err
21543   rm -f conftest.er1
21544   cat conftest.err >&5
21545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546   (exit $ac_status); } &&
21547          { ac_try='test -z "$ac_c_werror_flag"
21548                          || test ! -s conftest.err'
21549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550   (eval $ac_try) 2>&5
21551   ac_status=$?
21552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553   (exit $ac_status); }; } &&
21554          { ac_try='test -s conftest.$ac_objext'
21555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556   (eval $ac_try) 2>&5
21557   ac_status=$?
21558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559   (exit $ac_status); }; }; then
21560   ac_cv_type_bits64_t=yes
21561 else
21562   echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21564
21565 ac_cv_type_bits64_t=no
21566 fi
21567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21568 fi
21569 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21570 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21571 if test $ac_cv_type_bits64_t = yes; then
21572   :
21573 else
21574
21575 cat >>confdefs.h <<_ACEOF
21576 #define bits64_t long
21577 _ACEOF
21578
21579 fi
21580
21581 else
21582   echo "$as_me:$LINENO: checking for bits64_t" >&5
21583 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21584 if test "${ac_cv_type_bits64_t+set}" = set; then
21585   echo $ECHO_N "(cached) $ECHO_C" >&6
21586 else
21587   cat >conftest.$ac_ext <<_ACEOF
21588 /* confdefs.h.  */
21589 _ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h.  */
21593 $ac_includes_default
21594 int
21595 main ()
21596 {
21597 if ((bits64_t *) 0)
21598   return 0;
21599 if (sizeof (bits64_t))
21600   return 0;
21601   ;
21602   return 0;
21603 }
21604 _ACEOF
21605 rm -f conftest.$ac_objext
21606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21607   (eval $ac_compile) 2>conftest.er1
21608   ac_status=$?
21609   grep -v '^ *+' conftest.er1 >conftest.err
21610   rm -f conftest.er1
21611   cat conftest.err >&5
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); } &&
21614          { ac_try='test -z "$ac_c_werror_flag"
21615                          || test ! -s conftest.err'
21616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617   (eval $ac_try) 2>&5
21618   ac_status=$?
21619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620   (exit $ac_status); }; } &&
21621          { ac_try='test -s conftest.$ac_objext'
21622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623   (eval $ac_try) 2>&5
21624   ac_status=$?
21625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626   (exit $ac_status); }; }; then
21627   ac_cv_type_bits64_t=yes
21628 else
21629   echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21631
21632 ac_cv_type_bits64_t=no
21633 fi
21634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21635 fi
21636 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21637 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21638 if test $ac_cv_type_bits64_t = yes; then
21639   :
21640 else
21641
21642 cat >>confdefs.h <<_ACEOF
21643 #define bits64_t double
21644 _ACEOF
21645
21646 fi
21647
21648 fi
21649
21650
21651
21652 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
21653   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21654 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21655 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21656   echo $ECHO_N "(cached) $ECHO_C" >&6
21657 else
21658   cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h.  */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h.  */
21664 $ac_includes_default
21665 int
21666 main ()
21667 {
21668 if ((ptrdiff_t *) 0)
21669   return 0;
21670 if (sizeof (ptrdiff_t))
21671   return 0;
21672   ;
21673   return 0;
21674 }
21675 _ACEOF
21676 rm -f conftest.$ac_objext
21677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21678   (eval $ac_compile) 2>conftest.er1
21679   ac_status=$?
21680   grep -v '^ *+' conftest.er1 >conftest.err
21681   rm -f conftest.er1
21682   cat conftest.err >&5
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); } &&
21685          { ac_try='test -z "$ac_c_werror_flag"
21686                          || test ! -s conftest.err'
21687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688   (eval $ac_try) 2>&5
21689   ac_status=$?
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); }; } &&
21692          { ac_try='test -s conftest.$ac_objext'
21693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694   (eval $ac_try) 2>&5
21695   ac_status=$?
21696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697   (exit $ac_status); }; }; then
21698   ac_cv_type_ptrdiff_t=yes
21699 else
21700   echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21702
21703 ac_cv_type_ptrdiff_t=no
21704 fi
21705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21706 fi
21707 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21708 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
21709 if test $ac_cv_type_ptrdiff_t = yes; then
21710   :
21711 else
21712
21713 cat >>confdefs.h <<_ACEOF
21714 #define ptrdiff_t int
21715 _ACEOF
21716
21717 fi
21718
21719 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
21720   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21721 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21722 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21723   echo $ECHO_N "(cached) $ECHO_C" >&6
21724 else
21725   cat >conftest.$ac_ext <<_ACEOF
21726 /* confdefs.h.  */
21727 _ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h.  */
21731 $ac_includes_default
21732 int
21733 main ()
21734 {
21735 if ((ptrdiff_t *) 0)
21736   return 0;
21737 if (sizeof (ptrdiff_t))
21738   return 0;
21739   ;
21740   return 0;
21741 }
21742 _ACEOF
21743 rm -f conftest.$ac_objext
21744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21745   (eval $ac_compile) 2>conftest.er1
21746   ac_status=$?
21747   grep -v '^ *+' conftest.er1 >conftest.err
21748   rm -f conftest.er1
21749   cat conftest.err >&5
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); } &&
21752          { ac_try='test -z "$ac_c_werror_flag"
21753                          || test ! -s conftest.err'
21754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755   (eval $ac_try) 2>&5
21756   ac_status=$?
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); }; } &&
21759          { ac_try='test -s conftest.$ac_objext'
21760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761   (eval $ac_try) 2>&5
21762   ac_status=$?
21763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764   (exit $ac_status); }; }; then
21765   ac_cv_type_ptrdiff_t=yes
21766 else
21767   echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21769
21770 ac_cv_type_ptrdiff_t=no
21771 fi
21772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21773 fi
21774 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21775 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
21776 if test $ac_cv_type_ptrdiff_t = yes; then
21777   :
21778 else
21779
21780 cat >>confdefs.h <<_ACEOF
21781 #define ptrdiff_t long
21782 _ACEOF
21783
21784 fi
21785
21786 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
21787   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21788 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21789 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21790   echo $ECHO_N "(cached) $ECHO_C" >&6
21791 else
21792   cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h.  */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h.  */
21798 $ac_includes_default
21799 int
21800 main ()
21801 {
21802 if ((ptrdiff_t *) 0)
21803   return 0;
21804 if (sizeof (ptrdiff_t))
21805   return 0;
21806   ;
21807   return 0;
21808 }
21809 _ACEOF
21810 rm -f conftest.$ac_objext
21811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21812   (eval $ac_compile) 2>conftest.er1
21813   ac_status=$?
21814   grep -v '^ *+' conftest.er1 >conftest.err
21815   rm -f conftest.er1
21816   cat conftest.err >&5
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); } &&
21819          { ac_try='test -z "$ac_c_werror_flag"
21820                          || test ! -s conftest.err'
21821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822   (eval $ac_try) 2>&5
21823   ac_status=$?
21824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825   (exit $ac_status); }; } &&
21826          { ac_try='test -s conftest.$ac_objext'
21827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828   (eval $ac_try) 2>&5
21829   ac_status=$?
21830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831   (exit $ac_status); }; }; then
21832   ac_cv_type_ptrdiff_t=yes
21833 else
21834   echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21836
21837 ac_cv_type_ptrdiff_t=no
21838 fi
21839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21840 fi
21841 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21842 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
21843 if test $ac_cv_type_ptrdiff_t = yes; then
21844   :
21845 else
21846
21847 cat >>confdefs.h <<_ACEOF
21848 #define ptrdiff_t long long
21849 _ACEOF
21850
21851 fi
21852
21853 else
21854   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21855 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21856 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21857   echo $ECHO_N "(cached) $ECHO_C" >&6
21858 else
21859   cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h.  */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h.  */
21865 $ac_includes_default
21866 int
21867 main ()
21868 {
21869 if ((ptrdiff_t *) 0)
21870   return 0;
21871 if (sizeof (ptrdiff_t))
21872   return 0;
21873   ;
21874   return 0;
21875 }
21876 _ACEOF
21877 rm -f conftest.$ac_objext
21878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21879   (eval $ac_compile) 2>conftest.er1
21880   ac_status=$?
21881   grep -v '^ *+' conftest.er1 >conftest.err
21882   rm -f conftest.er1
21883   cat conftest.err >&5
21884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885   (exit $ac_status); } &&
21886          { ac_try='test -z "$ac_c_werror_flag"
21887                          || test ! -s conftest.err'
21888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889   (eval $ac_try) 2>&5
21890   ac_status=$?
21891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); }; } &&
21893          { ac_try='test -s conftest.$ac_objext'
21894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895   (eval $ac_try) 2>&5
21896   ac_status=$?
21897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898   (exit $ac_status); }; }; then
21899   ac_cv_type_ptrdiff_t=yes
21900 else
21901   echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21903
21904 ac_cv_type_ptrdiff_t=no
21905 fi
21906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21907 fi
21908 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21909 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
21910 if test $ac_cv_type_ptrdiff_t = yes; then
21911   :
21912 else
21913
21914 cat >>confdefs.h <<_ACEOF
21915 #define ptrdiff_t int
21916 _ACEOF
21917
21918 fi
21919
21920 fi
21921
21922
21923 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
21924 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
21925 if test "${ac_cv_header_stat_broken+set}" = set; then
21926   echo $ECHO_N "(cached) $ECHO_C" >&6
21927 else
21928   cat >conftest.$ac_ext <<_ACEOF
21929 /* confdefs.h.  */
21930 _ACEOF
21931 cat confdefs.h >>conftest.$ac_ext
21932 cat >>conftest.$ac_ext <<_ACEOF
21933 /* end confdefs.h.  */
21934 #include <sys/types.h>
21935 #include <sys/stat.h>
21936
21937 #if defined(S_ISBLK) && defined(S_IFDIR)
21938 # if S_ISBLK (S_IFDIR)
21939 You lose.
21940 # endif
21941 #endif
21942
21943 #if defined(S_ISBLK) && defined(S_IFCHR)
21944 # if S_ISBLK (S_IFCHR)
21945 You lose.
21946 # endif
21947 #endif
21948
21949 #if defined(S_ISLNK) && defined(S_IFREG)
21950 # if S_ISLNK (S_IFREG)
21951 You lose.
21952 # endif
21953 #endif
21954
21955 #if defined(S_ISSOCK) && defined(S_IFREG)
21956 # if S_ISSOCK (S_IFREG)
21957 You lose.
21958 # endif
21959 #endif
21960
21961 _ACEOF
21962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21963   $EGREP "You lose" >/dev/null 2>&1; then
21964   ac_cv_header_stat_broken=yes
21965 else
21966   ac_cv_header_stat_broken=no
21967 fi
21968 rm -f conftest*
21969
21970 fi
21971 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
21972 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
21973 if test $ac_cv_header_stat_broken = yes; then
21974
21975 cat >>confdefs.h <<\_ACEOF
21976 #define STAT_MACROS_BROKEN 1
21977 _ACEOF
21978
21979 fi
21980
21981
21982 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
21983 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
21984 if test "${ac_cv_sys_interpreter+set}" = set; then
21985   echo $ECHO_N "(cached) $ECHO_C" >&6
21986 else
21987   echo '#! /bin/cat
21988 exit 69
21989 ' >conftest
21990 chmod u+x conftest
21991 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
21992 if test $? -ne 69; then
21993    ac_cv_sys_interpreter=yes
21994 else
21995    ac_cv_sys_interpreter=no
21996 fi
21997 rm -f conftest
21998 fi
21999 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
22000 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
22001 interpval=$ac_cv_sys_interpreter
22002
22003 if test $ac_cv_sys_interpreter = yes; then
22004 cat >>confdefs.h <<\_ACEOF
22005 #define HAVE_HASH_BANG_EXEC 1
22006 _ACEOF
22007
22008 fi
22009
22010 if test "$ac_cv_func_lstat" = "no"; then
22011 echo "$as_me:$LINENO: checking for lstat" >&5
22012 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
22013 if test "${bash_cv_func_lstat+set}" = set; then
22014   echo $ECHO_N "(cached) $ECHO_C" >&6
22015 else
22016   cat >conftest.$ac_ext <<_ACEOF
22017 /* confdefs.h.  */
22018 _ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
22021 /* end confdefs.h.  */
22022
22023 #include <sys/types.h>
22024 #include <sys/stat.h>
22025
22026 int
22027 main ()
22028 {
22029  lstat(".",(struct stat *)0);
22030   ;
22031   return 0;
22032 }
22033 _ACEOF
22034 rm -f conftest.$ac_objext conftest$ac_exeext
22035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22036   (eval $ac_link) 2>conftest.er1
22037   ac_status=$?
22038   grep -v '^ *+' conftest.er1 >conftest.err
22039   rm -f conftest.er1
22040   cat conftest.err >&5
22041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042   (exit $ac_status); } &&
22043          { ac_try='test -z "$ac_c_werror_flag"
22044                          || test ! -s conftest.err'
22045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046   (eval $ac_try) 2>&5
22047   ac_status=$?
22048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049   (exit $ac_status); }; } &&
22050          { ac_try='test -s conftest$ac_exeext'
22051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22052   (eval $ac_try) 2>&5
22053   ac_status=$?
22054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055   (exit $ac_status); }; }; then
22056   bash_cv_func_lstat=yes
22057 else
22058   echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22060
22061 bash_cv_func_lstat=no
22062 fi
22063 rm -f conftest.err conftest.$ac_objext \
22064       conftest$ac_exeext conftest.$ac_ext
22065 fi
22066 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
22067 echo "${ECHO_T}$bash_cv_func_lstat" >&6
22068 if test $bash_cv_func_lstat = yes; then
22069   cat >>confdefs.h <<\_ACEOF
22070 #define HAVE_LSTAT 1
22071 _ACEOF
22072
22073 fi
22074
22075 fi
22076
22077
22078 echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
22079 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
22080 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
22081   echo $ECHO_N "(cached) $ECHO_C" >&6
22082 else
22083   if test "$cross_compiling" = yes; then
22084   { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
22085 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
22086     bash_cv_func_ctype_nonascii=no
22087
22088 else
22089   cat >conftest.$ac_ext <<_ACEOF
22090 /* confdefs.h.  */
22091 _ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h.  */
22095
22096 #ifdef HAVE_LOCALE_H
22097 #include <locale.h>
22098 #endif
22099 #include <stdio.h>
22100 #include <ctype.h>
22101
22102 main(c, v)
22103 int     c;
22104 char    *v[];
22105 {
22106         char    *deflocale;
22107         unsigned char x;
22108         int     r1, r2;
22109
22110 #ifdef HAVE_SETLOCALE
22111         /* We take a shot here.  If that locale is not known, try the
22112            system default.  We try this one because '\342' (226) is
22113            known to be a printable character in that locale. */
22114         deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
22115         if (deflocale == 0)
22116                 deflocale = setlocale(LC_ALL, "");
22117 #endif
22118
22119         x = '\342';
22120         r1 = isprint(x);
22121         x -= 128;
22122         r2 = isprint(x);
22123         exit (r1 == 0 || r2 == 0);
22124 }
22125
22126 _ACEOF
22127 rm -f conftest$ac_exeext
22128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22129   (eval $ac_link) 2>&5
22130   ac_status=$?
22131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134   (eval $ac_try) 2>&5
22135   ac_status=$?
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); }; }; then
22138   bash_cv_func_ctype_nonascii=yes
22139 else
22140   echo "$as_me: program exited with status $ac_status" >&5
22141 echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22143
22144 ( exit $ac_status )
22145 bash_cv_func_ctype_nonascii=no
22146 fi
22147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22148 fi
22149 fi
22150
22151 echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
22152 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
22153 if test $bash_cv_func_ctype_nonascii = yes; then
22154 cat >>confdefs.h <<\_ACEOF
22155 #define CTYPE_NON_ASCII 1
22156 _ACEOF
22157
22158 fi
22159
22160 echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
22161 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
22162 if test "${bash_cv_dup2_broken+set}" = set; then
22163   echo $ECHO_N "(cached) $ECHO_C" >&6
22164 else
22165   if test "$cross_compiling" = yes; then
22166   { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
22167 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
22168      bash_cv_dup2_broken=no
22169 else
22170   cat >conftest.$ac_ext <<_ACEOF
22171 /* confdefs.h.  */
22172 _ACEOF
22173 cat confdefs.h >>conftest.$ac_ext
22174 cat >>conftest.$ac_ext <<_ACEOF
22175 /* end confdefs.h.  */
22176
22177 #include <sys/types.h>
22178 #include <fcntl.h>
22179 main()
22180 {
22181   int fd1, fd2, fl;
22182   fd1 = open("/dev/null", 2);
22183   if (fcntl(fd1, 2, 1) < 0)
22184     exit(1);
22185   fd2 = dup2(fd1, 1);
22186   if (fd2 < 0)
22187     exit(2);
22188   fl = fcntl(fd2, 1, 0);
22189   /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
22190   exit(fl != 1);
22191 }
22192
22193 _ACEOF
22194 rm -f conftest$ac_exeext
22195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22196   (eval $ac_link) 2>&5
22197   ac_status=$?
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201   (eval $ac_try) 2>&5
22202   ac_status=$?
22203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204   (exit $ac_status); }; }; then
22205   bash_cv_dup2_broken=yes
22206 else
22207   echo "$as_me: program exited with status $ac_status" >&5
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211 ( exit $ac_status )
22212 bash_cv_dup2_broken=no
22213 fi
22214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22215 fi
22216
22217 fi
22218
22219 echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
22220 echo "${ECHO_T}$bash_cv_dup2_broken" >&6
22221 if test $bash_cv_dup2_broken = yes; then
22222 cat >>confdefs.h <<\_ACEOF
22223 #define DUP2_BROKEN 1
22224 _ACEOF
22225
22226 fi
22227
22228
22229 echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
22230 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
22231 if test "${bash_cv_pgrp_pipe+set}" = set; then
22232   echo $ECHO_N "(cached) $ECHO_C" >&6
22233 else
22234   if test "$cross_compiling" = yes; then
22235   { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
22236 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
22237     bash_cv_pgrp_pipe=no
22238 else
22239   cat >conftest.$ac_ext <<_ACEOF
22240 /* confdefs.h.  */
22241 _ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h.  */
22245
22246 #ifdef HAVE_UNISTD_H
22247 #  include <unistd.h>
22248 #endif
22249 main()
22250 {
22251 # ifdef GETPGRP_VOID
22252 #  define getpgID()     getpgrp()
22253 # else
22254 #  define getpgID()     getpgrp(0)
22255 #  define setpgid(x,y)  setpgrp(x,y)
22256 # endif
22257         int pid1, pid2, fds[2];
22258         int status;
22259         char ok;
22260
22261         switch (pid1 = fork()) {
22262           case -1:
22263             exit(1);
22264           case 0:
22265             setpgid(0, getpid());
22266             exit(0);
22267         }
22268         setpgid(pid1, pid1);
22269
22270         sleep(2);       /* let first child die */
22271
22272         if (pipe(fds) < 0)
22273           exit(2);
22274
22275         switch (pid2 = fork()) {
22276           case -1:
22277             exit(3);
22278           case 0:
22279             setpgid(0, pid1);
22280             ok = getpgID() == pid1;
22281             write(fds[1], &ok, 1);
22282             exit(0);
22283         }
22284         setpgid(pid2, pid1);
22285
22286         close(fds[1]);
22287         if (read(fds[0], &ok, 1) != 1)
22288           exit(4);
22289         wait(&status);
22290         wait(&status);
22291         exit(ok ? 0 : 5);
22292 }
22293
22294 _ACEOF
22295 rm -f conftest$ac_exeext
22296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22297   (eval $ac_link) 2>&5
22298   ac_status=$?
22299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302   (eval $ac_try) 2>&5
22303   ac_status=$?
22304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305   (exit $ac_status); }; }; then
22306   bash_cv_pgrp_pipe=no
22307 else
22308   echo "$as_me: program exited with status $ac_status" >&5
22309 echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22311
22312 ( exit $ac_status )
22313 bash_cv_pgrp_pipe=yes
22314 fi
22315 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22316 fi
22317
22318 fi
22319
22320 echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
22321 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
22322 if test $bash_cv_pgrp_pipe = yes; then
22323 cat >>confdefs.h <<\_ACEOF
22324 #define PGRP_PIPE 1
22325 _ACEOF
22326
22327 fi
22328
22329
22330 echo "$as_me:$LINENO: checking for type of signal functions" >&5
22331 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
22332 if test "${bash_cv_signal_vintage+set}" = set; then
22333   echo $ECHO_N "(cached) $ECHO_C" >&6
22334 else
22335
22336   cat >conftest.$ac_ext <<_ACEOF
22337 /* confdefs.h.  */
22338 _ACEOF
22339 cat confdefs.h >>conftest.$ac_ext
22340 cat >>conftest.$ac_ext <<_ACEOF
22341 /* end confdefs.h.  */
22342 #include <signal.h>
22343 int
22344 main ()
22345 {
22346
22347     sigset_t ss;
22348     struct sigaction sa;
22349     sigemptyset(&ss); sigsuspend(&ss);
22350     sigaction(SIGINT, &sa, (struct sigaction *) 0);
22351     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22352
22353   ;
22354   return 0;
22355 }
22356 _ACEOF
22357 rm -f conftest.$ac_objext conftest$ac_exeext
22358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22359   (eval $ac_link) 2>conftest.er1
22360   ac_status=$?
22361   grep -v '^ *+' conftest.er1 >conftest.err
22362   rm -f conftest.er1
22363   cat conftest.err >&5
22364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365   (exit $ac_status); } &&
22366          { ac_try='test -z "$ac_c_werror_flag"
22367                          || test ! -s conftest.err'
22368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22369   (eval $ac_try) 2>&5
22370   ac_status=$?
22371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372   (exit $ac_status); }; } &&
22373          { ac_try='test -s conftest$ac_exeext'
22374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375   (eval $ac_try) 2>&5
22376   ac_status=$?
22377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378   (exit $ac_status); }; }; then
22379   bash_cv_signal_vintage=posix
22380 else
22381   echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22383
22384
22385     cat >conftest.$ac_ext <<_ACEOF
22386 /* confdefs.h.  */
22387 _ACEOF
22388 cat confdefs.h >>conftest.$ac_ext
22389 cat >>conftest.$ac_ext <<_ACEOF
22390 /* end confdefs.h.  */
22391 #include <signal.h>
22392 int
22393 main ()
22394 {
22395
22396         int mask = sigmask(SIGINT);
22397         sigsetmask(mask); sigblock(mask); sigpause(mask);
22398
22399   ;
22400   return 0;
22401 }
22402 _ACEOF
22403 rm -f conftest.$ac_objext conftest$ac_exeext
22404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22405   (eval $ac_link) 2>conftest.er1
22406   ac_status=$?
22407   grep -v '^ *+' conftest.er1 >conftest.err
22408   rm -f conftest.er1
22409   cat conftest.err >&5
22410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411   (exit $ac_status); } &&
22412          { ac_try='test -z "$ac_c_werror_flag"
22413                          || test ! -s conftest.err'
22414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415   (eval $ac_try) 2>&5
22416   ac_status=$?
22417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418   (exit $ac_status); }; } &&
22419          { ac_try='test -s conftest$ac_exeext'
22420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421   (eval $ac_try) 2>&5
22422   ac_status=$?
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); }; }; then
22425   bash_cv_signal_vintage=4.2bsd
22426 else
22427   echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22429
22430
22431       cat >conftest.$ac_ext <<_ACEOF
22432 /* confdefs.h.  */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h.  */
22437
22438         #include <signal.h>
22439         RETSIGTYPE foo() { }
22440 int
22441 main ()
22442 {
22443
22444                 int mask = sigmask(SIGINT);
22445                 sigset(SIGINT, foo); sigrelse(SIGINT);
22446                 sighold(SIGINT); sigpause(SIGINT);
22447
22448   ;
22449   return 0;
22450 }
22451 _ACEOF
22452 rm -f conftest.$ac_objext conftest$ac_exeext
22453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22454   (eval $ac_link) 2>conftest.er1
22455   ac_status=$?
22456   grep -v '^ *+' conftest.er1 >conftest.err
22457   rm -f conftest.er1
22458   cat conftest.err >&5
22459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); } &&
22461          { ac_try='test -z "$ac_c_werror_flag"
22462                          || test ! -s conftest.err'
22463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464   (eval $ac_try) 2>&5
22465   ac_status=$?
22466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467   (exit $ac_status); }; } &&
22468          { ac_try='test -s conftest$ac_exeext'
22469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470   (eval $ac_try) 2>&5
22471   ac_status=$?
22472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473   (exit $ac_status); }; }; then
22474   bash_cv_signal_vintage=svr3
22475 else
22476   echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22478
22479 bash_cv_signal_vintage=v7
22480
22481 fi
22482 rm -f conftest.err conftest.$ac_objext \
22483       conftest$ac_exeext conftest.$ac_ext
22484
22485 fi
22486 rm -f conftest.err conftest.$ac_objext \
22487       conftest$ac_exeext conftest.$ac_ext
22488
22489 fi
22490 rm -f conftest.err conftest.$ac_objext \
22491       conftest$ac_exeext conftest.$ac_ext
22492
22493 fi
22494
22495 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22496 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
22497 if test "$bash_cv_signal_vintage" = posix; then
22498 cat >>confdefs.h <<\_ACEOF
22499 #define HAVE_POSIX_SIGNALS 1
22500 _ACEOF
22501
22502 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22503 cat >>confdefs.h <<\_ACEOF
22504 #define HAVE_BSD_SIGNALS 1
22505 _ACEOF
22506
22507 elif test "$bash_cv_signal_vintage" = svr3; then
22508 cat >>confdefs.h <<\_ACEOF
22509 #define HAVE_USG_SIGHOLD 1
22510 _ACEOF
22511
22512 fi
22513
22514
22515 echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
22516 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
22517 if test "${bash_cv_sys_errlist+set}" = set; then
22518   echo $ECHO_N "(cached) $ECHO_C" >&6
22519 else
22520   cat >conftest.$ac_ext <<_ACEOF
22521 /* confdefs.h.  */
22522 _ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h.  */
22526 #include <errno.h>
22527 int
22528 main ()
22529 {
22530 extern char *sys_errlist[];
22531  extern int sys_nerr;
22532  char *msg = sys_errlist[sys_nerr - 1];
22533   ;
22534   return 0;
22535 }
22536 _ACEOF
22537 rm -f conftest.$ac_objext conftest$ac_exeext
22538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22539   (eval $ac_link) 2>conftest.er1
22540   ac_status=$?
22541   grep -v '^ *+' conftest.er1 >conftest.err
22542   rm -f conftest.er1
22543   cat conftest.err >&5
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); } &&
22546          { ac_try='test -z "$ac_c_werror_flag"
22547                          || test ! -s conftest.err'
22548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549   (eval $ac_try) 2>&5
22550   ac_status=$?
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); }; } &&
22553          { ac_try='test -s conftest$ac_exeext'
22554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555   (eval $ac_try) 2>&5
22556   ac_status=$?
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); }; }; then
22559   bash_cv_sys_errlist=yes
22560 else
22561   echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22563
22564 bash_cv_sys_errlist=no
22565 fi
22566 rm -f conftest.err conftest.$ac_objext \
22567       conftest$ac_exeext conftest.$ac_ext
22568 fi
22569 echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
22570 echo "${ECHO_T}$bash_cv_sys_errlist" >&6
22571 if test $bash_cv_sys_errlist = yes; then
22572 cat >>confdefs.h <<\_ACEOF
22573 #define HAVE_SYS_ERRLIST 1
22574 _ACEOF
22575
22576 fi
22577
22578
22579 echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
22580 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
22581 if test "${bash_cv_sys_siglist+set}" = set; then
22582   echo $ECHO_N "(cached) $ECHO_C" >&6
22583 else
22584   if test "$cross_compiling" = yes; then
22585   { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
22586 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
22587          bash_cv_sys_siglist=no
22588 else
22589   cat >conftest.$ac_ext <<_ACEOF
22590 /* confdefs.h.  */
22591 _ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h.  */
22595
22596 #include <sys/types.h>
22597 #include <signal.h>
22598 #ifdef HAVE_UNISTD_H
22599 #include <unistd.h>
22600 #endif
22601 #ifndef SYS_SIGLIST_DECLARED
22602 extern char *sys_siglist[];
22603 #endif
22604 main()
22605 {
22606 char *msg = sys_siglist[2];
22607 exit(msg == 0);
22608 }
22609 _ACEOF
22610 rm -f conftest$ac_exeext
22611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22612   (eval $ac_link) 2>&5
22613   ac_status=$?
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22617   (eval $ac_try) 2>&5
22618   ac_status=$?
22619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620   (exit $ac_status); }; }; then
22621   bash_cv_sys_siglist=yes
22622 else
22623   echo "$as_me: program exited with status $ac_status" >&5
22624 echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22626
22627 ( exit $ac_status )
22628 bash_cv_sys_siglist=no
22629 fi
22630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22631 fi
22632 fi
22633
22634 echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
22635 echo "${ECHO_T}$bash_cv_sys_siglist" >&6
22636 if test $bash_cv_sys_siglist = yes; then
22637 cat >>confdefs.h <<\_ACEOF
22638 #define HAVE_SYS_SIGLIST 1
22639 _ACEOF
22640
22641 fi
22642
22643 echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
22644 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
22645 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
22646   echo $ECHO_N "(cached) $ECHO_C" >&6
22647 else
22648   cat >conftest.$ac_ext <<_ACEOF
22649 /* confdefs.h.  */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h.  */
22654
22655 #include <sys/types.h>
22656 #include <signal.h>
22657 #ifdef HAVE_UNISTD_H
22658 #include <unistd.h>
22659 #endif
22660 int
22661 main ()
22662 {
22663  char *msg = _sys_siglist[2];
22664   ;
22665   return 0;
22666 }
22667 _ACEOF
22668 rm -f conftest.$ac_objext
22669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22670   (eval $ac_compile) 2>conftest.er1
22671   ac_status=$?
22672   grep -v '^ *+' conftest.er1 >conftest.err
22673   rm -f conftest.er1
22674   cat conftest.err >&5
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); } &&
22677          { ac_try='test -z "$ac_c_werror_flag"
22678                          || test ! -s conftest.err'
22679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680   (eval $ac_try) 2>&5
22681   ac_status=$?
22682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683   (exit $ac_status); }; } &&
22684          { ac_try='test -s conftest.$ac_objext'
22685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22686   (eval $ac_try) 2>&5
22687   ac_status=$?
22688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689   (exit $ac_status); }; }; then
22690   bash_cv_decl_under_sys_siglist=yes
22691 else
22692   echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.$ac_ext >&5
22694
22695 bash_cv_decl_under_sys_siglist=no
22696 fi
22697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22698 fi
22699 echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
22700 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
22701 if test $bash_cv_decl_under_sys_siglist = yes; then
22702 cat >>confdefs.h <<\_ACEOF
22703 #define UNDER_SYS_SIGLIST_DECLARED 1
22704 _ACEOF
22705
22706 fi
22707
22708
22709 echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
22710 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
22711 if test "${bash_cv_under_sys_siglist+set}" = set; then
22712   echo $ECHO_N "(cached) $ECHO_C" >&6
22713 else
22714   if test "$cross_compiling" = yes; then
22715   { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
22716 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
22717          bash_cv_under_sys_siglist=no
22718 else
22719   cat >conftest.$ac_ext <<_ACEOF
22720 /* confdefs.h.  */
22721 _ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h.  */
22725
22726 #include <sys/types.h>
22727 #include <signal.h>
22728 #ifdef HAVE_UNISTD_H
22729 #include <unistd.h>
22730 #endif
22731 #ifndef UNDER_SYS_SIGLIST_DECLARED
22732 extern char *_sys_siglist[];
22733 #endif
22734 main()
22735 {
22736 char *msg = (char *)_sys_siglist[2];
22737 exit(msg == 0);
22738 }
22739 _ACEOF
22740 rm -f conftest$ac_exeext
22741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22742   (eval $ac_link) 2>&5
22743   ac_status=$?
22744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22747   (eval $ac_try) 2>&5
22748   ac_status=$?
22749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750   (exit $ac_status); }; }; then
22751   bash_cv_under_sys_siglist=yes
22752 else
22753   echo "$as_me: program exited with status $ac_status" >&5
22754 echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22756
22757 ( exit $ac_status )
22758 bash_cv_under_sys_siglist=no
22759 fi
22760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22761 fi
22762 fi
22763
22764 echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
22765 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
22766 if test $bash_cv_under_sys_siglist = yes; then
22767 cat >>confdefs.h <<\_ACEOF
22768 #define HAVE_UNDER_SYS_SIGLIST 1
22769 _ACEOF
22770
22771 fi
22772
22773
22774 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
22775 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
22776 if test "${bash_cv_void_sighandler+set}" = set; then
22777   echo $ECHO_N "(cached) $ECHO_C" >&6
22778 else
22779   cat >conftest.$ac_ext <<_ACEOF
22780 /* confdefs.h.  */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h.  */
22785 #include <sys/types.h>
22786 #include <signal.h>
22787 #ifdef signal
22788 #undef signal
22789 #endif
22790 #ifdef __cplusplus
22791 extern "C"
22792 #endif
22793 void (*signal ()) ();
22794 int
22795 main ()
22796 {
22797 int i;
22798   ;
22799   return 0;
22800 }
22801 _ACEOF
22802 rm -f conftest.$ac_objext
22803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22804   (eval $ac_compile) 2>conftest.er1
22805   ac_status=$?
22806   grep -v '^ *+' conftest.er1 >conftest.err
22807   rm -f conftest.er1
22808   cat conftest.err >&5
22809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810   (exit $ac_status); } &&
22811          { ac_try='test -z "$ac_c_werror_flag"
22812                          || test ! -s conftest.err'
22813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814   (eval $ac_try) 2>&5
22815   ac_status=$?
22816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817   (exit $ac_status); }; } &&
22818          { ac_try='test -s conftest.$ac_objext'
22819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22820   (eval $ac_try) 2>&5
22821   ac_status=$?
22822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823   (exit $ac_status); }; }; then
22824   bash_cv_void_sighandler=yes
22825 else
22826   echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22828
22829 bash_cv_void_sighandler=no
22830 fi
22831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22832 fi
22833 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
22834 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
22835 if test $bash_cv_void_sighandler = yes; then
22836 cat >>confdefs.h <<\_ACEOF
22837 #define VOID_SIGHANDLER 1
22838 _ACEOF
22839
22840 fi
22841
22842
22843
22844 echo "$as_me:$LINENO: checking for clock_t" >&5
22845 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
22846 if test "${bash_cv_type_clock_t+set}" = set; then
22847   echo $ECHO_N "(cached) $ECHO_C" >&6
22848 else
22849   cat >conftest.$ac_ext <<_ACEOF
22850 /* confdefs.h.  */
22851 _ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h.  */
22855 #include <sys/types.h>
22856 #if STDC_HEADERS
22857 #include <stdlib.h>
22858 #include <stddef.h>
22859 #endif
22860 #if HAVE_INTTYPES_H
22861 #include <inttypes.h>
22862 #endif
22863 #include <sys/times.h>
22864
22865 _ACEOF
22866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22867   $EGREP "clock_t" >/dev/null 2>&1; then
22868   bash_cv_type_clock_t=yes
22869 else
22870   bash_cv_type_clock_t=no
22871 fi
22872 rm -f conftest*
22873
22874 fi
22875
22876 echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
22877 echo "${ECHO_T}$bash_cv_type_clock_t" >&6
22878
22879 if test $bash_cv_type_clock_t = no; then
22880   cat >>confdefs.h <<_ACEOF
22881 #define clock_t long
22882 _ACEOF
22883
22884 fi
22885
22886
22887
22888 echo "$as_me:$LINENO: checking for sigset_t" >&5
22889 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
22890 if test "${bash_cv_type_sigset_t+set}" = set; then
22891   echo $ECHO_N "(cached) $ECHO_C" >&6
22892 else
22893   cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h.  */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h.  */
22899 #include <sys/types.h>
22900 #if STDC_HEADERS
22901 #include <stdlib.h>
22902 #include <stddef.h>
22903 #endif
22904 #if HAVE_INTTYPES_H
22905 #include <inttypes.h>
22906 #endif
22907 #include <signal.h>
22908
22909 _ACEOF
22910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22911   $EGREP "sigset_t" >/dev/null 2>&1; then
22912   bash_cv_type_sigset_t=yes
22913 else
22914   bash_cv_type_sigset_t=no
22915 fi
22916 rm -f conftest*
22917
22918 fi
22919
22920 echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
22921 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
22922
22923 if test $bash_cv_type_sigset_t = no; then
22924   cat >>confdefs.h <<_ACEOF
22925 #define sigset_t int
22926 _ACEOF
22927
22928 fi
22929
22930
22931
22932 echo "$as_me:$LINENO: checking for quad_t" >&5
22933 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
22934 if test "${bash_cv_type_quad_t+set}" = set; then
22935   echo $ECHO_N "(cached) $ECHO_C" >&6
22936 else
22937   cat >conftest.$ac_ext <<_ACEOF
22938 /* confdefs.h.  */
22939 _ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h.  */
22943 #include <sys/types.h>
22944 #if STDC_HEADERS
22945 #include <stdlib.h>
22946 #include <stddef.h>
22947 #endif
22948 #if HAVE_INTTYPES_H
22949 #include <inttypes.h>
22950 #endif
22951
22952
22953 _ACEOF
22954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22955   $EGREP "quad_t" >/dev/null 2>&1; then
22956   bash_cv_type_quad_t=yes
22957 else
22958   bash_cv_type_quad_t=no
22959 fi
22960 rm -f conftest*
22961
22962 fi
22963
22964 echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
22965 echo "${ECHO_T}$bash_cv_type_quad_t" >&6
22966 if test $bash_cv_type_quad_t = yes; then
22967         cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_QUAD_T 1
22969 _ACEOF
22970
22971         fi
22972 if test $bash_cv_type_quad_t = no; then
22973   cat >>confdefs.h <<_ACEOF
22974 #define quad_t long
22975 _ACEOF
22976
22977 fi
22978
22979
22980
22981 echo "$as_me:$LINENO: checking for intmax_t" >&5
22982 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
22983 if test "${bash_cv_type_intmax_t+set}" = set; then
22984   echo $ECHO_N "(cached) $ECHO_C" >&6
22985 else
22986   cat >conftest.$ac_ext <<_ACEOF
22987 /* confdefs.h.  */
22988 _ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h.  */
22992 #include <sys/types.h>
22993 #if STDC_HEADERS
22994 #include <stdlib.h>
22995 #include <stddef.h>
22996 #endif
22997 #if HAVE_INTTYPES_H
22998 #include <inttypes.h>
22999 #endif
23000
23001
23002 _ACEOF
23003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23004   $EGREP "intmax_t" >/dev/null 2>&1; then
23005   bash_cv_type_intmax_t=yes
23006 else
23007   bash_cv_type_intmax_t=no
23008 fi
23009 rm -f conftest*
23010
23011 fi
23012
23013 echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
23014 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
23015
23016 if test $bash_cv_type_intmax_t = no; then
23017   cat >>confdefs.h <<_ACEOF
23018 #define intmax_t $bash_cv_type_long_long
23019 _ACEOF
23020
23021 fi
23022
23023
23024
23025 echo "$as_me:$LINENO: checking for uintmax_t" >&5
23026 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
23027 if test "${bash_cv_type_uintmax_t+set}" = set; then
23028   echo $ECHO_N "(cached) $ECHO_C" >&6
23029 else
23030   cat >conftest.$ac_ext <<_ACEOF
23031 /* confdefs.h.  */
23032 _ACEOF
23033 cat confdefs.h >>conftest.$ac_ext
23034 cat >>conftest.$ac_ext <<_ACEOF
23035 /* end confdefs.h.  */
23036 #include <sys/types.h>
23037 #if STDC_HEADERS
23038 #include <stdlib.h>
23039 #include <stddef.h>
23040 #endif
23041 #if HAVE_INTTYPES_H
23042 #include <inttypes.h>
23043 #endif
23044
23045
23046 _ACEOF
23047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23048   $EGREP "uintmax_t" >/dev/null 2>&1; then
23049   bash_cv_type_uintmax_t=yes
23050 else
23051   bash_cv_type_uintmax_t=no
23052 fi
23053 rm -f conftest*
23054
23055 fi
23056
23057 echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
23058 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
23059
23060 if test $bash_cv_type_uintmax_t = no; then
23061   cat >>confdefs.h <<_ACEOF
23062 #define uintmax_t $bash_cv_type_unsigned_long_long
23063 _ACEOF
23064
23065 fi
23066
23067 if test "$ac_cv_header_sys_socket_h" = "yes"; then
23068
23069
23070 echo "$as_me:$LINENO: checking for socklen_t" >&5
23071 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
23072 if test "${bash_cv_type_socklen_t+set}" = set; then
23073   echo $ECHO_N "(cached) $ECHO_C" >&6
23074 else
23075   cat >conftest.$ac_ext <<_ACEOF
23076 /* confdefs.h.  */
23077 _ACEOF
23078 cat confdefs.h >>conftest.$ac_ext
23079 cat >>conftest.$ac_ext <<_ACEOF
23080 /* end confdefs.h.  */
23081 #include <sys/types.h>
23082 #if STDC_HEADERS
23083 #include <stdlib.h>
23084 #include <stddef.h>
23085 #endif
23086 #if HAVE_INTTYPES_H
23087 #include <inttypes.h>
23088 #endif
23089 #include <sys/socket.h>
23090
23091 _ACEOF
23092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23093   $EGREP "socklen_t" >/dev/null 2>&1; then
23094   bash_cv_type_socklen_t=yes
23095 else
23096   bash_cv_type_socklen_t=no
23097 fi
23098 rm -f conftest*
23099
23100 fi
23101
23102 echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
23103 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
23104 if test $bash_cv_type_socklen_t = yes; then
23105         cat >>confdefs.h <<\_ACEOF
23106 #define HAVE_SOCKLEN_T 1
23107 _ACEOF
23108
23109         fi
23110 if test $bash_cv_type_socklen_t = no; then
23111   cat >>confdefs.h <<_ACEOF
23112 #define socklen_t int
23113 _ACEOF
23114
23115 fi
23116
23117 fi
23118 echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
23119 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
23120 if test "${bash_cv_type_rlimit+set}" = set; then
23121   echo $ECHO_N "(cached) $ECHO_C" >&6
23122 else
23123   cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h.  */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h.  */
23129 #include <sys/types.h>
23130 #include <sys/resource.h>
23131 int
23132 main ()
23133 {
23134 rlim_t xxx;
23135   ;
23136   return 0;
23137 }
23138 _ACEOF
23139 rm -f conftest.$ac_objext
23140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23141   (eval $ac_compile) 2>conftest.er1
23142   ac_status=$?
23143   grep -v '^ *+' conftest.er1 >conftest.err
23144   rm -f conftest.er1
23145   cat conftest.err >&5
23146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147   (exit $ac_status); } &&
23148          { ac_try='test -z "$ac_c_werror_flag"
23149                          || test ! -s conftest.err'
23150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151   (eval $ac_try) 2>&5
23152   ac_status=$?
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); }; } &&
23155          { ac_try='test -s conftest.$ac_objext'
23156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157   (eval $ac_try) 2>&5
23158   ac_status=$?
23159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160   (exit $ac_status); }; }; then
23161   bash_cv_type_rlimit=rlim_t
23162 else
23163   echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23165
23166
23167 if test "$cross_compiling" = yes; then
23168   { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
23169 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
23170          bash_cv_type_rlimit=long
23171 else
23172   cat >conftest.$ac_ext <<_ACEOF
23173 /* confdefs.h.  */
23174 _ACEOF
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h.  */
23178
23179 #include <sys/types.h>
23180 #include <sys/time.h>
23181 #include <sys/resource.h>
23182 main()
23183 {
23184 #ifdef HAVE_QUAD_T
23185   struct rlimit rl;
23186   if (sizeof(rl.rlim_cur) == sizeof(quad_t))
23187     exit(0);
23188 #endif
23189   exit(1);
23190 }
23191 _ACEOF
23192 rm -f conftest$ac_exeext
23193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23194   (eval $ac_link) 2>&5
23195   ac_status=$?
23196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23199   (eval $ac_try) 2>&5
23200   ac_status=$?
23201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202   (exit $ac_status); }; }; then
23203   bash_cv_type_rlimit=quad_t
23204 else
23205   echo "$as_me: program exited with status $ac_status" >&5
23206 echo "$as_me: failed program was:" >&5
23207 sed 's/^/| /' conftest.$ac_ext >&5
23208
23209 ( exit $ac_status )
23210 bash_cv_type_rlimit=long
23211 fi
23212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23213 fi
23214 fi
23215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23216
23217 fi
23218
23219 echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
23220 echo "${ECHO_T}$bash_cv_type_rlimit" >&6
23221 if test $bash_cv_type_rlimit = quad_t; then
23222 cat >>confdefs.h <<\_ACEOF
23223 #define RLIMTYPE quad_t
23224 _ACEOF
23225
23226 elif test $bash_cv_type_rlimit = rlim_t; then
23227 cat >>confdefs.h <<\_ACEOF
23228 #define RLIMTYPE rlim_t
23229 _ACEOF
23230
23231 fi
23232
23233
23234
23235 echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
23236 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
23237 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
23238   echo $ECHO_N "(cached) $ECHO_C" >&6
23239 else
23240   cat >conftest.$ac_ext <<_ACEOF
23241 /* confdefs.h.  */
23242 _ACEOF
23243 cat confdefs.h >>conftest.$ac_ext
23244 cat >>conftest.$ac_ext <<_ACEOF
23245 /* end confdefs.h.  */
23246
23247 #include <sys/types.h>
23248 #include <termios.h>
23249
23250
23251 int
23252 main ()
23253 {
23254 static struct termios ac_aggr;
23255 if (ac_aggr.c_line)
23256 return 0;
23257   ;
23258   return 0;
23259 }
23260 _ACEOF
23261 rm -f conftest.$ac_objext
23262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23263   (eval $ac_compile) 2>conftest.er1
23264   ac_status=$?
23265   grep -v '^ *+' conftest.er1 >conftest.err
23266   rm -f conftest.er1
23267   cat conftest.err >&5
23268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269   (exit $ac_status); } &&
23270          { ac_try='test -z "$ac_c_werror_flag"
23271                          || test ! -s conftest.err'
23272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273   (eval $ac_try) 2>&5
23274   ac_status=$?
23275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276   (exit $ac_status); }; } &&
23277          { ac_try='test -s conftest.$ac_objext'
23278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23279   (eval $ac_try) 2>&5
23280   ac_status=$?
23281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282   (exit $ac_status); }; }; then
23283   ac_cv_member_struct_termios_c_line=yes
23284 else
23285   echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23287
23288 cat >conftest.$ac_ext <<_ACEOF
23289 /* confdefs.h.  */
23290 _ACEOF
23291 cat confdefs.h >>conftest.$ac_ext
23292 cat >>conftest.$ac_ext <<_ACEOF
23293 /* end confdefs.h.  */
23294
23295 #include <sys/types.h>
23296 #include <termios.h>
23297
23298
23299 int
23300 main ()
23301 {
23302 static struct termios ac_aggr;
23303 if (sizeof ac_aggr.c_line)
23304 return 0;
23305   ;
23306   return 0;
23307 }
23308 _ACEOF
23309 rm -f conftest.$ac_objext
23310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23311   (eval $ac_compile) 2>conftest.er1
23312   ac_status=$?
23313   grep -v '^ *+' conftest.er1 >conftest.err
23314   rm -f conftest.er1
23315   cat conftest.err >&5
23316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317   (exit $ac_status); } &&
23318          { ac_try='test -z "$ac_c_werror_flag"
23319                          || test ! -s conftest.err'
23320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23321   (eval $ac_try) 2>&5
23322   ac_status=$?
23323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324   (exit $ac_status); }; } &&
23325          { ac_try='test -s conftest.$ac_objext'
23326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23327   (eval $ac_try) 2>&5
23328   ac_status=$?
23329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330   (exit $ac_status); }; }; then
23331   ac_cv_member_struct_termios_c_line=yes
23332 else
23333   echo "$as_me: failed program was:" >&5
23334 sed 's/^/| /' conftest.$ac_ext >&5
23335
23336 ac_cv_member_struct_termios_c_line=no
23337 fi
23338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23339 fi
23340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23341 fi
23342 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
23343 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
23344 if test $ac_cv_member_struct_termios_c_line = yes; then
23345   cat >>confdefs.h <<\_ACEOF
23346 #define TERMIOS_LDISC 1
23347 _ACEOF
23348
23349 fi
23350
23351
23352
23353 echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
23354 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
23355 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
23356   echo $ECHO_N "(cached) $ECHO_C" >&6
23357 else
23358   cat >conftest.$ac_ext <<_ACEOF
23359 /* confdefs.h.  */
23360 _ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h.  */
23364
23365 #include <sys/types.h>
23366 #include <termio.h>
23367
23368
23369 int
23370 main ()
23371 {
23372 static struct termio ac_aggr;
23373 if (ac_aggr.c_line)
23374 return 0;
23375   ;
23376   return 0;
23377 }
23378 _ACEOF
23379 rm -f conftest.$ac_objext
23380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23381   (eval $ac_compile) 2>conftest.er1
23382   ac_status=$?
23383   grep -v '^ *+' conftest.er1 >conftest.err
23384   rm -f conftest.er1
23385   cat conftest.err >&5
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); } &&
23388          { ac_try='test -z "$ac_c_werror_flag"
23389                          || test ! -s conftest.err'
23390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391   (eval $ac_try) 2>&5
23392   ac_status=$?
23393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394   (exit $ac_status); }; } &&
23395          { ac_try='test -s conftest.$ac_objext'
23396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397   (eval $ac_try) 2>&5
23398   ac_status=$?
23399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400   (exit $ac_status); }; }; then
23401   ac_cv_member_struct_termio_c_line=yes
23402 else
23403   echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23405
23406 cat >conftest.$ac_ext <<_ACEOF
23407 /* confdefs.h.  */
23408 _ACEOF
23409 cat confdefs.h >>conftest.$ac_ext
23410 cat >>conftest.$ac_ext <<_ACEOF
23411 /* end confdefs.h.  */
23412
23413 #include <sys/types.h>
23414 #include <termio.h>
23415
23416
23417 int
23418 main ()
23419 {
23420 static struct termio ac_aggr;
23421 if (sizeof ac_aggr.c_line)
23422 return 0;
23423   ;
23424   return 0;
23425 }
23426 _ACEOF
23427 rm -f conftest.$ac_objext
23428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23429   (eval $ac_compile) 2>conftest.er1
23430   ac_status=$?
23431   grep -v '^ *+' conftest.er1 >conftest.err
23432   rm -f conftest.er1
23433   cat conftest.err >&5
23434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435   (exit $ac_status); } &&
23436          { ac_try='test -z "$ac_c_werror_flag"
23437                          || test ! -s conftest.err'
23438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23439   (eval $ac_try) 2>&5
23440   ac_status=$?
23441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442   (exit $ac_status); }; } &&
23443          { ac_try='test -s conftest.$ac_objext'
23444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23445   (eval $ac_try) 2>&5
23446   ac_status=$?
23447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448   (exit $ac_status); }; }; then
23449   ac_cv_member_struct_termio_c_line=yes
23450 else
23451   echo "$as_me: failed program was:" >&5
23452 sed 's/^/| /' conftest.$ac_ext >&5
23453
23454 ac_cv_member_struct_termio_c_line=no
23455 fi
23456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23457 fi
23458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23459 fi
23460 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
23461 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
23462 if test $ac_cv_member_struct_termio_c_line = yes; then
23463   cat >>confdefs.h <<\_ACEOF
23464 #define TERMIO_LDISC 1
23465 _ACEOF
23466
23467 fi
23468
23469
23470
23471 echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
23472 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
23473 if test "${bash_cv_dirent_has_dino+set}" = set; then
23474   echo $ECHO_N "(cached) $ECHO_C" >&6
23475 else
23476   cat >conftest.$ac_ext <<_ACEOF
23477 /* confdefs.h.  */
23478 _ACEOF
23479 cat confdefs.h >>conftest.$ac_ext
23480 cat >>conftest.$ac_ext <<_ACEOF
23481 /* end confdefs.h.  */
23482
23483 #include <stdio.h>
23484 #include <sys/types.h>
23485 #ifdef HAVE_UNISTD_H
23486 # include <unistd.h>
23487 #endif /* HAVE_UNISTD_H */
23488 #if defined(HAVE_DIRENT_H)
23489 # include <dirent.h>
23490 #else
23491 # define dirent direct
23492 # ifdef HAVE_SYS_NDIR_H
23493 #  include <sys/ndir.h>
23494 # endif /* SYSNDIR */
23495 # ifdef HAVE_SYS_DIR_H
23496 #  include <sys/dir.h>
23497 # endif /* SYSDIR */
23498 # ifdef HAVE_NDIR_H
23499 #  include <ndir.h>
23500 # endif
23501 #endif /* HAVE_DIRENT_H */
23502
23503 int
23504 main ()
23505 {
23506
23507 struct dirent d; int z; z = d.d_ino;
23508
23509   ;
23510   return 0;
23511 }
23512 _ACEOF
23513 rm -f conftest.$ac_objext
23514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23515   (eval $ac_compile) 2>conftest.er1
23516   ac_status=$?
23517   grep -v '^ *+' conftest.er1 >conftest.err
23518   rm -f conftest.er1
23519   cat conftest.err >&5
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); } &&
23522          { ac_try='test -z "$ac_c_werror_flag"
23523                          || test ! -s conftest.err'
23524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525   (eval $ac_try) 2>&5
23526   ac_status=$?
23527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528   (exit $ac_status); }; } &&
23529          { ac_try='test -s conftest.$ac_objext'
23530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531   (eval $ac_try) 2>&5
23532   ac_status=$?
23533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534   (exit $ac_status); }; }; then
23535   bash_cv_dirent_has_dino=yes
23536 else
23537   echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23539
23540 bash_cv_dirent_has_dino=no
23541 fi
23542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23543 fi
23544
23545 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
23546 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
23547 if test $bash_cv_dirent_has_dino = yes; then
23548 cat >>confdefs.h <<\_ACEOF
23549 #define HAVE_STRUCT_DIRENT_D_INO 1
23550 _ACEOF
23551
23552 fi
23553
23554
23555 echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
23556 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
23557 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
23558   echo $ECHO_N "(cached) $ECHO_C" >&6
23559 else
23560   cat >conftest.$ac_ext <<_ACEOF
23561 /* confdefs.h.  */
23562 _ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h.  */
23566
23567 #include <stdio.h>
23568 #include <sys/types.h>
23569 #ifdef HAVE_UNISTD_H
23570 # include <unistd.h>
23571 #endif /* HAVE_UNISTD_H */
23572 #if defined(HAVE_DIRENT_H)
23573 # include <dirent.h>
23574 #else
23575 # define dirent direct
23576 # ifdef HAVE_SYS_NDIR_H
23577 #  include <sys/ndir.h>
23578 # endif /* SYSNDIR */
23579 # ifdef HAVE_SYS_DIR_H
23580 #  include <sys/dir.h>
23581 # endif /* SYSDIR */
23582 # ifdef HAVE_NDIR_H
23583 #  include <ndir.h>
23584 # endif
23585 #endif /* HAVE_DIRENT_H */
23586
23587 int
23588 main ()
23589 {
23590
23591 struct dirent d; int z; z = d.d_fileno;
23592
23593   ;
23594   return 0;
23595 }
23596 _ACEOF
23597 rm -f conftest.$ac_objext
23598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23599   (eval $ac_compile) 2>conftest.er1
23600   ac_status=$?
23601   grep -v '^ *+' conftest.er1 >conftest.err
23602   rm -f conftest.er1
23603   cat conftest.err >&5
23604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605   (exit $ac_status); } &&
23606          { ac_try='test -z "$ac_c_werror_flag"
23607                          || test ! -s conftest.err'
23608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609   (eval $ac_try) 2>&5
23610   ac_status=$?
23611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612   (exit $ac_status); }; } &&
23613          { ac_try='test -s conftest.$ac_objext'
23614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615   (eval $ac_try) 2>&5
23616   ac_status=$?
23617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618   (exit $ac_status); }; }; then
23619   bash_cv_dirent_has_d_fileno=yes
23620 else
23621   echo "$as_me: failed program was:" >&5
23622 sed 's/^/| /' conftest.$ac_ext >&5
23623
23624 bash_cv_dirent_has_d_fileno=no
23625 fi
23626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23627 fi
23628
23629 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
23630 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
23631 if test $bash_cv_dirent_has_d_fileno = yes; then
23632 cat >>confdefs.h <<\_ACEOF
23633 #define HAVE_STRUCT_DIRENT_D_FILENO 1
23634 _ACEOF
23635
23636 fi
23637
23638
23639 echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
23640 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
23641 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
23642   echo $ECHO_N "(cached) $ECHO_C" >&6
23643 else
23644   cat >conftest.$ac_ext <<_ACEOF
23645 /* confdefs.h.  */
23646 _ACEOF
23647 cat confdefs.h >>conftest.$ac_ext
23648 cat >>conftest.$ac_ext <<_ACEOF
23649 /* end confdefs.h.  */
23650
23651 #include <stdio.h>
23652 #include <sys/types.h>
23653 #ifdef HAVE_UNISTD_H
23654 # include <unistd.h>
23655 #endif /* HAVE_UNISTD_H */
23656 #if defined(HAVE_DIRENT_H)
23657 # include <dirent.h>
23658 #else
23659 # define dirent direct
23660 # ifdef HAVE_SYS_NDIR_H
23661 #  include <sys/ndir.h>
23662 # endif /* SYSNDIR */
23663 # ifdef HAVE_SYS_DIR_H
23664 #  include <sys/dir.h>
23665 # endif /* SYSDIR */
23666 # ifdef HAVE_NDIR_H
23667 #  include <ndir.h>
23668 # endif
23669 #endif /* HAVE_DIRENT_H */
23670
23671 int
23672 main ()
23673 {
23674
23675 struct dirent d; int z; z = d.d_namlen;
23676
23677   ;
23678   return 0;
23679 }
23680 _ACEOF
23681 rm -f conftest.$ac_objext
23682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23683   (eval $ac_compile) 2>conftest.er1
23684   ac_status=$?
23685   grep -v '^ *+' conftest.er1 >conftest.err
23686   rm -f conftest.er1
23687   cat conftest.err >&5
23688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689   (exit $ac_status); } &&
23690          { ac_try='test -z "$ac_c_werror_flag"
23691                          || test ! -s conftest.err'
23692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23693   (eval $ac_try) 2>&5
23694   ac_status=$?
23695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696   (exit $ac_status); }; } &&
23697          { ac_try='test -s conftest.$ac_objext'
23698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23699   (eval $ac_try) 2>&5
23700   ac_status=$?
23701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702   (exit $ac_status); }; }; then
23703   bash_cv_dirent_has_d_namlen=yes
23704 else
23705   echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23707
23708 bash_cv_dirent_has_d_namlen=no
23709 fi
23710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23711 fi
23712
23713 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
23714 echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6
23715 if test $bash_cv_dirent_has_d_namlen = yes; then
23716 cat >>confdefs.h <<\_ACEOF
23717 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
23718 _ACEOF
23719
23720 fi
23721
23722 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
23723 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
23724 if test "${bash_cv_struct_winsize_header+set}" = set; then
23725   echo $ECHO_N "(cached) $ECHO_C" >&6
23726 else
23727   cat >conftest.$ac_ext <<_ACEOF
23728 /* confdefs.h.  */
23729 _ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h.  */
23733 #include <sys/types.h>
23734 #include <sys/ioctl.h>
23735 int
23736 main ()
23737 {
23738 struct winsize x;
23739   ;
23740   return 0;
23741 }
23742 _ACEOF
23743 rm -f conftest.$ac_objext
23744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23745   (eval $ac_compile) 2>conftest.er1
23746   ac_status=$?
23747   grep -v '^ *+' conftest.er1 >conftest.err
23748   rm -f conftest.er1
23749   cat conftest.err >&5
23750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751   (exit $ac_status); } &&
23752          { ac_try='test -z "$ac_c_werror_flag"
23753                          || test ! -s conftest.err'
23754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23755   (eval $ac_try) 2>&5
23756   ac_status=$?
23757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758   (exit $ac_status); }; } &&
23759          { ac_try='test -s conftest.$ac_objext'
23760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23761   (eval $ac_try) 2>&5
23762   ac_status=$?
23763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764   (exit $ac_status); }; }; then
23765   bash_cv_struct_winsize_header=ioctl_h
23766 else
23767   echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23769
23770 cat >conftest.$ac_ext <<_ACEOF
23771 /* confdefs.h.  */
23772 _ACEOF
23773 cat confdefs.h >>conftest.$ac_ext
23774 cat >>conftest.$ac_ext <<_ACEOF
23775 /* end confdefs.h.  */
23776 #include <sys/types.h>
23777 #include <termios.h>
23778 int
23779 main ()
23780 {
23781 struct winsize x;
23782   ;
23783   return 0;
23784 }
23785 _ACEOF
23786 rm -f conftest.$ac_objext
23787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23788   (eval $ac_compile) 2>conftest.er1
23789   ac_status=$?
23790   grep -v '^ *+' conftest.er1 >conftest.err
23791   rm -f conftest.er1
23792   cat conftest.err >&5
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); } &&
23795          { ac_try='test -z "$ac_c_werror_flag"
23796                          || test ! -s conftest.err'
23797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23798   (eval $ac_try) 2>&5
23799   ac_status=$?
23800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801   (exit $ac_status); }; } &&
23802          { ac_try='test -s conftest.$ac_objext'
23803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23804   (eval $ac_try) 2>&5
23805   ac_status=$?
23806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807   (exit $ac_status); }; }; then
23808   bash_cv_struct_winsize_header=termios_h
23809 else
23810   echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23812
23813 bash_cv_struct_winsize_header=other
23814 fi
23815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23816
23817 fi
23818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23819 fi
23820
23821 if test $bash_cv_struct_winsize_header = ioctl_h; then
23822   echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
23823 echo "${ECHO_T}sys/ioctl.h" >&6
23824   cat >>confdefs.h <<\_ACEOF
23825 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
23826 _ACEOF
23827
23828 elif test $bash_cv_struct_winsize_header = termios_h; then
23829   echo "$as_me:$LINENO: result: termios.h" >&5
23830 echo "${ECHO_T}termios.h" >&6
23831   cat >>confdefs.h <<\_ACEOF
23832 #define STRUCT_WINSIZE_IN_TERMIOS 1
23833 _ACEOF
23834
23835 else
23836   echo "$as_me:$LINENO: result: not found" >&5
23837 echo "${ECHO_T}not found" >&6
23838 fi
23839
23840 echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
23841 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
23842 if test "${bash_cv_struct_timeval+set}" = set; then
23843   echo $ECHO_N "(cached) $ECHO_C" >&6
23844 else
23845
23846 cat >conftest.$ac_ext <<_ACEOF
23847 /* confdefs.h.  */
23848 _ACEOF
23849 cat confdefs.h >>conftest.$ac_ext
23850 cat >>conftest.$ac_ext <<_ACEOF
23851 /* end confdefs.h.  */
23852 #include <sys/time.h>
23853
23854 _ACEOF
23855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23856   $EGREP "struct timeval" >/dev/null 2>&1; then
23857   bash_cv_struct_timeval=yes
23858 else
23859   cat >conftest.$ac_ext <<_ACEOF
23860 /* confdefs.h.  */
23861 _ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h.  */
23865 #include <time.h>
23866
23867 _ACEOF
23868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23869   $EGREP "struct timeval" >/dev/null 2>&1; then
23870   bash_cv_struct_timeval=yes
23871 else
23872   bash_cv_struct_timeval=no
23873 fi
23874 rm -f conftest*
23875
23876 fi
23877 rm -f conftest*
23878
23879
23880 fi
23881
23882 echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
23883 echo "${ECHO_T}$bash_cv_struct_timeval" >&6
23884 if test $bash_cv_struct_timeval = yes; then
23885   cat >>confdefs.h <<\_ACEOF
23886 #define HAVE_TIMEVAL 1
23887 _ACEOF
23888
23889 fi
23890
23891 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23892 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
23893 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23894   echo $ECHO_N "(cached) $ECHO_C" >&6
23895 else
23896   cat >conftest.$ac_ext <<_ACEOF
23897 /* confdefs.h.  */
23898 _ACEOF
23899 cat confdefs.h >>conftest.$ac_ext
23900 cat >>conftest.$ac_ext <<_ACEOF
23901 /* end confdefs.h.  */
23902 $ac_includes_default
23903 int
23904 main ()
23905 {
23906 static struct stat ac_aggr;
23907 if (ac_aggr.st_blocks)
23908 return 0;
23909   ;
23910   return 0;
23911 }
23912 _ACEOF
23913 rm -f conftest.$ac_objext
23914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23915   (eval $ac_compile) 2>conftest.er1
23916   ac_status=$?
23917   grep -v '^ *+' conftest.er1 >conftest.err
23918   rm -f conftest.er1
23919   cat conftest.err >&5
23920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921   (exit $ac_status); } &&
23922          { ac_try='test -z "$ac_c_werror_flag"
23923                          || test ! -s conftest.err'
23924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23925   (eval $ac_try) 2>&5
23926   ac_status=$?
23927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); }; } &&
23929          { ac_try='test -s conftest.$ac_objext'
23930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931   (eval $ac_try) 2>&5
23932   ac_status=$?
23933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934   (exit $ac_status); }; }; then
23935   ac_cv_member_struct_stat_st_blocks=yes
23936 else
23937   echo "$as_me: failed program was:" >&5
23938 sed 's/^/| /' conftest.$ac_ext >&5
23939
23940 cat >conftest.$ac_ext <<_ACEOF
23941 /* confdefs.h.  */
23942 _ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h.  */
23946 $ac_includes_default
23947 int
23948 main ()
23949 {
23950 static struct stat ac_aggr;
23951 if (sizeof ac_aggr.st_blocks)
23952 return 0;
23953   ;
23954   return 0;
23955 }
23956 _ACEOF
23957 rm -f conftest.$ac_objext
23958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23959   (eval $ac_compile) 2>conftest.er1
23960   ac_status=$?
23961   grep -v '^ *+' conftest.er1 >conftest.err
23962   rm -f conftest.er1
23963   cat conftest.err >&5
23964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965   (exit $ac_status); } &&
23966          { ac_try='test -z "$ac_c_werror_flag"
23967                          || test ! -s conftest.err'
23968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23969   (eval $ac_try) 2>&5
23970   ac_status=$?
23971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972   (exit $ac_status); }; } &&
23973          { ac_try='test -s conftest.$ac_objext'
23974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23975   (eval $ac_try) 2>&5
23976   ac_status=$?
23977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978   (exit $ac_status); }; }; then
23979   ac_cv_member_struct_stat_st_blocks=yes
23980 else
23981   echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23983
23984 ac_cv_member_struct_stat_st_blocks=no
23985 fi
23986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23987 fi
23988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23989 fi
23990 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23991 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
23992 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23993
23994 cat >>confdefs.h <<_ACEOF
23995 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23996 _ACEOF
23997
23998
23999 fi
24000
24001 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24002 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
24003 if test "${ac_cv_struct_tm+set}" = set; then
24004   echo $ECHO_N "(cached) $ECHO_C" >&6
24005 else
24006   cat >conftest.$ac_ext <<_ACEOF
24007 /* confdefs.h.  */
24008 _ACEOF
24009 cat confdefs.h >>conftest.$ac_ext
24010 cat >>conftest.$ac_ext <<_ACEOF
24011 /* end confdefs.h.  */
24012 #include <sys/types.h>
24013 #include <time.h>
24014
24015 int
24016 main ()
24017 {
24018 struct tm *tp; tp->tm_sec;
24019   ;
24020   return 0;
24021 }
24022 _ACEOF
24023 rm -f conftest.$ac_objext
24024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24025   (eval $ac_compile) 2>conftest.er1
24026   ac_status=$?
24027   grep -v '^ *+' conftest.er1 >conftest.err
24028   rm -f conftest.er1
24029   cat conftest.err >&5
24030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031   (exit $ac_status); } &&
24032          { ac_try='test -z "$ac_c_werror_flag"
24033                          || test ! -s conftest.err'
24034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24035   (eval $ac_try) 2>&5
24036   ac_status=$?
24037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038   (exit $ac_status); }; } &&
24039          { ac_try='test -s conftest.$ac_objext'
24040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24041   (eval $ac_try) 2>&5
24042   ac_status=$?
24043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044   (exit $ac_status); }; }; then
24045   ac_cv_struct_tm=time.h
24046 else
24047   echo "$as_me: failed program was:" >&5
24048 sed 's/^/| /' conftest.$ac_ext >&5
24049
24050 ac_cv_struct_tm=sys/time.h
24051 fi
24052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24053 fi
24054 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24055 echo "${ECHO_T}$ac_cv_struct_tm" >&6
24056 if test $ac_cv_struct_tm = sys/time.h; then
24057
24058 cat >>confdefs.h <<\_ACEOF
24059 #define TM_IN_SYS_TIME 1
24060 _ACEOF
24061
24062 fi
24063
24064 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24065 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
24066 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24067   echo $ECHO_N "(cached) $ECHO_C" >&6
24068 else
24069   cat >conftest.$ac_ext <<_ACEOF
24070 /* confdefs.h.  */
24071 _ACEOF
24072 cat confdefs.h >>conftest.$ac_ext
24073 cat >>conftest.$ac_ext <<_ACEOF
24074 /* end confdefs.h.  */
24075 #include <sys/types.h>
24076 #include <$ac_cv_struct_tm>
24077
24078
24079 int
24080 main ()
24081 {
24082 static struct tm ac_aggr;
24083 if (ac_aggr.tm_zone)
24084 return 0;
24085   ;
24086   return 0;
24087 }
24088 _ACEOF
24089 rm -f conftest.$ac_objext
24090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24091   (eval $ac_compile) 2>conftest.er1
24092   ac_status=$?
24093   grep -v '^ *+' conftest.er1 >conftest.err
24094   rm -f conftest.er1
24095   cat conftest.err >&5
24096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097   (exit $ac_status); } &&
24098          { ac_try='test -z "$ac_c_werror_flag"
24099                          || test ! -s conftest.err'
24100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24101   (eval $ac_try) 2>&5
24102   ac_status=$?
24103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104   (exit $ac_status); }; } &&
24105          { ac_try='test -s conftest.$ac_objext'
24106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24107   (eval $ac_try) 2>&5
24108   ac_status=$?
24109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110   (exit $ac_status); }; }; then
24111   ac_cv_member_struct_tm_tm_zone=yes
24112 else
24113   echo "$as_me: failed program was:" >&5
24114 sed 's/^/| /' conftest.$ac_ext >&5
24115
24116 cat >conftest.$ac_ext <<_ACEOF
24117 /* confdefs.h.  */
24118 _ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h.  */
24122 #include <sys/types.h>
24123 #include <$ac_cv_struct_tm>
24124
24125
24126 int
24127 main ()
24128 {
24129 static struct tm ac_aggr;
24130 if (sizeof ac_aggr.tm_zone)
24131 return 0;
24132   ;
24133   return 0;
24134 }
24135 _ACEOF
24136 rm -f conftest.$ac_objext
24137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24138   (eval $ac_compile) 2>conftest.er1
24139   ac_status=$?
24140   grep -v '^ *+' conftest.er1 >conftest.err
24141   rm -f conftest.er1
24142   cat conftest.err >&5
24143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144   (exit $ac_status); } &&
24145          { ac_try='test -z "$ac_c_werror_flag"
24146                          || test ! -s conftest.err'
24147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148   (eval $ac_try) 2>&5
24149   ac_status=$?
24150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); }; } &&
24152          { ac_try='test -s conftest.$ac_objext'
24153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154   (eval $ac_try) 2>&5
24155   ac_status=$?
24156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157   (exit $ac_status); }; }; then
24158   ac_cv_member_struct_tm_tm_zone=yes
24159 else
24160   echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24162
24163 ac_cv_member_struct_tm_tm_zone=no
24164 fi
24165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24166 fi
24167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24168 fi
24169 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24170 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
24171 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24172
24173 cat >>confdefs.h <<_ACEOF
24174 #define HAVE_STRUCT_TM_TM_ZONE 1
24175 _ACEOF
24176
24177
24178 fi
24179
24180 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24181
24182 cat >>confdefs.h <<\_ACEOF
24183 #define HAVE_TM_ZONE 1
24184 _ACEOF
24185
24186 else
24187   echo "$as_me:$LINENO: checking for tzname" >&5
24188 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
24189 if test "${ac_cv_var_tzname+set}" = set; then
24190   echo $ECHO_N "(cached) $ECHO_C" >&6
24191 else
24192   cat >conftest.$ac_ext <<_ACEOF
24193 /* confdefs.h.  */
24194 _ACEOF
24195 cat confdefs.h >>conftest.$ac_ext
24196 cat >>conftest.$ac_ext <<_ACEOF
24197 /* end confdefs.h.  */
24198 #include <time.h>
24199 #ifndef tzname /* For SGI.  */
24200 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
24201 #endif
24202
24203 int
24204 main ()
24205 {
24206 atoi(*tzname);
24207   ;
24208   return 0;
24209 }
24210 _ACEOF
24211 rm -f conftest.$ac_objext conftest$ac_exeext
24212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24213   (eval $ac_link) 2>conftest.er1
24214   ac_status=$?
24215   grep -v '^ *+' conftest.er1 >conftest.err
24216   rm -f conftest.er1
24217   cat conftest.err >&5
24218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219   (exit $ac_status); } &&
24220          { ac_try='test -z "$ac_c_werror_flag"
24221                          || test ! -s conftest.err'
24222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24223   (eval $ac_try) 2>&5
24224   ac_status=$?
24225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226   (exit $ac_status); }; } &&
24227          { ac_try='test -s conftest$ac_exeext'
24228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24229   (eval $ac_try) 2>&5
24230   ac_status=$?
24231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232   (exit $ac_status); }; }; then
24233   ac_cv_var_tzname=yes
24234 else
24235   echo "$as_me: failed program was:" >&5
24236 sed 's/^/| /' conftest.$ac_ext >&5
24237
24238 ac_cv_var_tzname=no
24239 fi
24240 rm -f conftest.err conftest.$ac_objext \
24241       conftest$ac_exeext conftest.$ac_ext
24242 fi
24243 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24244 echo "${ECHO_T}$ac_cv_var_tzname" >&6
24245   if test $ac_cv_var_tzname = yes; then
24246
24247 cat >>confdefs.h <<\_ACEOF
24248 #define HAVE_TZNAME 1
24249 _ACEOF
24250
24251   fi
24252 fi
24253
24254 echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
24255 echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6
24256 if test "${bash_cv_struct_timezone+set}" = set; then
24257   echo $ECHO_N "(cached) $ECHO_C" >&6
24258 else
24259
24260 cat >conftest.$ac_ext <<_ACEOF
24261 /* confdefs.h.  */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h.  */
24266 #include <sys/time.h>
24267
24268 _ACEOF
24269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24270   $EGREP "struct timezone" >/dev/null 2>&1; then
24271   bash_cv_struct_timezone=yes
24272 else
24273   cat >conftest.$ac_ext <<_ACEOF
24274 /* confdefs.h.  */
24275 _ACEOF
24276 cat confdefs.h >>conftest.$ac_ext
24277 cat >>conftest.$ac_ext <<_ACEOF
24278 /* end confdefs.h.  */
24279 #include <time.h>
24280
24281 _ACEOF
24282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24283   $EGREP "struct timezone" >/dev/null 2>&1; then
24284   bash_cv_struct_timezone=yes
24285 else
24286   bash_cv_struct_timezone=no
24287 fi
24288 rm -f conftest*
24289
24290 fi
24291 rm -f conftest*
24292
24293
24294 fi
24295
24296 echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
24297 echo "${ECHO_T}$bash_cv_struct_timezone" >&6
24298 if test $bash_cv_struct_timezone = yes; then
24299   cat >>confdefs.h <<\_ACEOF
24300 #define HAVE_STRUCT_TIMEZONE 1
24301 _ACEOF
24302
24303 fi
24304
24305
24306 echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
24307 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
24308 if test "${bash_cv_have_strsignal+set}" = set; then
24309   echo $ECHO_N "(cached) $ECHO_C" >&6
24310 else
24311   cat >conftest.$ac_ext <<_ACEOF
24312 /* confdefs.h.  */
24313 _ACEOF
24314 cat confdefs.h >>conftest.$ac_ext
24315 cat >>conftest.$ac_ext <<_ACEOF
24316 /* end confdefs.h.  */
24317 #include <sys/types.h>
24318 #include <signal.h>
24319 int
24320 main ()
24321 {
24322 char *s = (char *)strsignal(2);
24323   ;
24324   return 0;
24325 }
24326 _ACEOF
24327 rm -f conftest.$ac_objext conftest$ac_exeext
24328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24329   (eval $ac_link) 2>conftest.er1
24330   ac_status=$?
24331   grep -v '^ *+' conftest.er1 >conftest.err
24332   rm -f conftest.er1
24333   cat conftest.err >&5
24334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335   (exit $ac_status); } &&
24336          { ac_try='test -z "$ac_c_werror_flag"
24337                          || test ! -s conftest.err'
24338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24339   (eval $ac_try) 2>&5
24340   ac_status=$?
24341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342   (exit $ac_status); }; } &&
24343          { ac_try='test -s conftest$ac_exeext'
24344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345   (eval $ac_try) 2>&5
24346   ac_status=$?
24347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348   (exit $ac_status); }; }; then
24349   bash_cv_have_strsignal=yes
24350 else
24351   echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.$ac_ext >&5
24353
24354 bash_cv_have_strsignal=no
24355 fi
24356 rm -f conftest.err conftest.$ac_objext \
24357       conftest$ac_exeext conftest.$ac_ext
24358 fi
24359
24360 echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
24361 echo "${ECHO_T}$bash_cv_have_strsignal" >&6
24362 if test $bash_cv_have_strsignal = yes; then
24363 cat >>confdefs.h <<\_ACEOF
24364 #define HAVE_STRSIGNAL 1
24365 _ACEOF
24366
24367 fi
24368
24369 echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
24370 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
24371 if test "${bash_cv_opendir_not_robust+set}" = set; then
24372   echo $ECHO_N "(cached) $ECHO_C" >&6
24373 else
24374   if test "$cross_compiling" = yes; then
24375   { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
24376 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
24377      bash_cv_opendir_not_robust=no
24378
24379 else
24380   cat >conftest.$ac_ext <<_ACEOF
24381 /* confdefs.h.  */
24382 _ACEOF
24383 cat confdefs.h >>conftest.$ac_ext
24384 cat >>conftest.$ac_ext <<_ACEOF
24385 /* end confdefs.h.  */
24386
24387 #include <stdio.h>
24388 #include <sys/types.h>
24389 #include <fcntl.h>
24390 #ifdef HAVE_UNISTD_H
24391 # include <unistd.h>
24392 #endif /* HAVE_UNISTD_H */
24393 #if defined(HAVE_DIRENT_H)
24394 # include <dirent.h>
24395 #else
24396 # define dirent direct
24397 # ifdef HAVE_SYS_NDIR_H
24398 #  include <sys/ndir.h>
24399 # endif /* SYSNDIR */
24400 # ifdef HAVE_SYS_DIR_H
24401 #  include <sys/dir.h>
24402 # endif /* SYSDIR */
24403 # ifdef HAVE_NDIR_H
24404 #  include <ndir.h>
24405 # endif
24406 #endif /* HAVE_DIRENT_H */
24407 main()
24408 {
24409 DIR *dir;
24410 int fd, err;
24411 err = mkdir("/tmp/bash-aclocal", 0700);
24412 if (err < 0) {
24413   perror("mkdir");
24414   exit(1);
24415 }
24416 unlink("/tmp/bash-aclocal/not_a_directory");
24417 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
24418 write(fd, "\n", 1);
24419 close(fd);
24420 dir = opendir("/tmp/bash-aclocal/not_a_directory");
24421 unlink("/tmp/bash-aclocal/not_a_directory");
24422 rmdir("/tmp/bash-aclocal");
24423 exit (dir == 0);
24424 }
24425 _ACEOF
24426 rm -f conftest$ac_exeext
24427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24428   (eval $ac_link) 2>&5
24429   ac_status=$?
24430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24433   (eval $ac_try) 2>&5
24434   ac_status=$?
24435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436   (exit $ac_status); }; }; then
24437   bash_cv_opendir_not_robust=yes
24438 else
24439   echo "$as_me: program exited with status $ac_status" >&5
24440 echo "$as_me: failed program was:" >&5
24441 sed 's/^/| /' conftest.$ac_ext >&5
24442
24443 ( exit $ac_status )
24444 bash_cv_opendir_not_robust=no
24445 fi
24446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24447 fi
24448 fi
24449
24450 echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
24451 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
24452 if test $bash_cv_opendir_not_robust = yes; then
24453 cat >>confdefs.h <<\_ACEOF
24454 #define OPENDIR_NOT_ROBUST 1
24455 _ACEOF
24456
24457 fi
24458
24459 echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
24460 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
24461 if test "${bash_cv_ulimit_maxfds+set}" = set; then
24462   echo $ECHO_N "(cached) $ECHO_C" >&6
24463 else
24464   if test "$cross_compiling" = yes; then
24465   { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
24466 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
24467     bash_cv_ulimit_maxfds=no
24468
24469 else
24470   cat >conftest.$ac_ext <<_ACEOF
24471 /* confdefs.h.  */
24472 _ACEOF
24473 cat confdefs.h >>conftest.$ac_ext
24474 cat >>conftest.$ac_ext <<_ACEOF
24475 /* end confdefs.h.  */
24476
24477 main()
24478 {
24479 long maxfds = ulimit(4, 0L);
24480 exit (maxfds == -1L);
24481 }
24482
24483 _ACEOF
24484 rm -f conftest$ac_exeext
24485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24486   (eval $ac_link) 2>&5
24487   ac_status=$?
24488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24491   (eval $ac_try) 2>&5
24492   ac_status=$?
24493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494   (exit $ac_status); }; }; then
24495   bash_cv_ulimit_maxfds=yes
24496 else
24497   echo "$as_me: program exited with status $ac_status" >&5
24498 echo "$as_me: failed program was:" >&5
24499 sed 's/^/| /' conftest.$ac_ext >&5
24500
24501 ( exit $ac_status )
24502 bash_cv_ulimit_maxfds=no
24503 fi
24504 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24505 fi
24506 fi
24507
24508 echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
24509 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
24510 if test $bash_cv_ulimit_maxfds = yes; then
24511 cat >>confdefs.h <<\_ACEOF
24512 #define ULIMIT_MAXFDS 1
24513 _ACEOF
24514
24515 fi
24516
24517 echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
24518 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
24519 if test "${bash_cv_getenv_redef+set}" = set; then
24520   echo $ECHO_N "(cached) $ECHO_C" >&6
24521 else
24522   if test "$cross_compiling" = yes; then
24523   { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
24524 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
24525     bash_cv_getenv_redef=yes
24526
24527 else
24528   cat >conftest.$ac_ext <<_ACEOF
24529 /* confdefs.h.  */
24530 _ACEOF
24531 cat confdefs.h >>conftest.$ac_ext
24532 cat >>conftest.$ac_ext <<_ACEOF
24533 /* end confdefs.h.  */
24534
24535 #ifdef HAVE_UNISTD_H
24536 #  include <unistd.h>
24537 #endif
24538 #ifndef __STDC__
24539 #  ifndef const
24540 #    define const
24541 #  endif
24542 #endif
24543 char *
24544 getenv (name)
24545 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
24546      const char *name;
24547 #else
24548      char const *name;
24549 #endif /* !__linux__ && !__bsdi__ && !convex */
24550 {
24551 return "42";
24552 }
24553 main()
24554 {
24555 char *s;
24556 /* The next allows this program to run, but does not allow bash to link
24557    when it redefines getenv.  I'm not really interested in figuring out
24558    why not. */
24559 #if defined (NeXT)
24560 exit(1);
24561 #endif
24562 s = getenv("ABCDE");
24563 exit(s == 0);   /* force optimizer to leave getenv in */
24564 }
24565
24566 _ACEOF
24567 rm -f conftest$ac_exeext
24568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24569   (eval $ac_link) 2>&5
24570   ac_status=$?
24571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24574   (eval $ac_try) 2>&5
24575   ac_status=$?
24576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577   (exit $ac_status); }; }; then
24578   bash_cv_getenv_redef=yes
24579 else
24580   echo "$as_me: program exited with status $ac_status" >&5
24581 echo "$as_me: failed program was:" >&5
24582 sed 's/^/| /' conftest.$ac_ext >&5
24583
24584 ( exit $ac_status )
24585 bash_cv_getenv_redef=no
24586 fi
24587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24588 fi
24589 fi
24590
24591 echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
24592 echo "${ECHO_T}$bash_cv_getenv_redef" >&6
24593 if test $bash_cv_getenv_redef = yes; then
24594 cat >>confdefs.h <<\_ACEOF
24595 #define CAN_REDEFINE_GETENV 1
24596 _ACEOF
24597
24598 fi
24599
24600 if test "$ac_cv_func_getcwd" = "yes"; then
24601 echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory" >&5
24602 echo $ECHO_N "checking if getcwd() will dynamically allocate memory... $ECHO_C" >&6
24603 if test "${bash_cv_getcwd_malloc+set}" = set; then
24604   echo $ECHO_N "(cached) $ECHO_C" >&6
24605 else
24606   if test "$cross_compiling" = yes; then
24607   { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
24608 echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
24609     bash_cv_getcwd_malloc=no
24610
24611 else
24612   cat >conftest.$ac_ext <<_ACEOF
24613 /* confdefs.h.  */
24614 _ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h.  */
24618
24619 #include <stdio.h>
24620 #ifdef HAVE_UNISTD_H
24621 #include <unistd.h>
24622 #endif
24623
24624 main()
24625 {
24626         char    *xpwd;
24627         xpwd = getcwd(0, 0);
24628         exit (xpwd == 0);
24629 }
24630
24631 _ACEOF
24632 rm -f conftest$ac_exeext
24633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24634   (eval $ac_link) 2>&5
24635   ac_status=$?
24636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24639   (eval $ac_try) 2>&5
24640   ac_status=$?
24641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642   (exit $ac_status); }; }; then
24643   bash_cv_getcwd_malloc=yes
24644 else
24645   echo "$as_me: program exited with status $ac_status" >&5
24646 echo "$as_me: failed program was:" >&5
24647 sed 's/^/| /' conftest.$ac_ext >&5
24648
24649 ( exit $ac_status )
24650 bash_cv_getcwd_malloc=no
24651 fi
24652 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24653 fi
24654 fi
24655
24656 echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
24657 echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6
24658 if test $bash_cv_getcwd_malloc = no; then
24659 cat >>confdefs.h <<\_ACEOF
24660 #define GETCWD_BROKEN 1
24661 _ACEOF
24662
24663 case $LIBOBJS in
24664     "getcwd.$ac_objext"   | \
24665   *" getcwd.$ac_objext"   | \
24666     "getcwd.$ac_objext "* | \
24667   *" getcwd.$ac_objext "* ) ;;
24668   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
24669 esac
24670
24671 fi
24672
24673 fi
24674
24675 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
24676 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
24677 if test "${bash_cv_func_sigsetjmp+set}" = set; then
24678   echo $ECHO_N "(cached) $ECHO_C" >&6
24679 else
24680   if test "$cross_compiling" = yes; then
24681   { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
24682 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
24683      bash_cv_func_sigsetjmp=missing
24684
24685 else
24686   cat >conftest.$ac_ext <<_ACEOF
24687 /* confdefs.h.  */
24688 _ACEOF
24689 cat confdefs.h >>conftest.$ac_ext
24690 cat >>conftest.$ac_ext <<_ACEOF
24691 /* end confdefs.h.  */
24692
24693 #ifdef HAVE_UNISTD_H
24694 #include <unistd.h>
24695 #endif
24696 #include <sys/types.h>
24697 #include <signal.h>
24698 #include <setjmp.h>
24699
24700 main()
24701 {
24702 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
24703 exit (1);
24704 #else
24705
24706 int code;
24707 sigset_t set, oset;
24708 sigjmp_buf xx;
24709
24710 /* get the mask */
24711 sigemptyset(&set);
24712 sigemptyset(&oset);
24713 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
24714 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
24715
24716 /* save it */
24717 code = sigsetjmp(xx, 1);
24718 if (code)
24719   exit(0);      /* could get sigmask and compare to oset here. */
24720
24721 /* change it */
24722 sigaddset(&set, SIGINT);
24723 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
24724
24725 /* and siglongjmp */
24726 siglongjmp(xx, 10);
24727 exit(1);
24728 #endif
24729 }
24730 _ACEOF
24731 rm -f conftest$ac_exeext
24732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24733   (eval $ac_link) 2>&5
24734   ac_status=$?
24735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24738   (eval $ac_try) 2>&5
24739   ac_status=$?
24740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741   (exit $ac_status); }; }; then
24742   bash_cv_func_sigsetjmp=present
24743 else
24744   echo "$as_me: program exited with status $ac_status" >&5
24745 echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.$ac_ext >&5
24747
24748 ( exit $ac_status )
24749 bash_cv_func_sigsetjmp=missing
24750 fi
24751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24752 fi
24753 fi
24754
24755 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
24756 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
24757 if test $bash_cv_func_sigsetjmp = present; then
24758 cat >>confdefs.h <<\_ACEOF
24759 #define HAVE_POSIX_SIGSETJMP 1
24760 _ACEOF
24761
24762 fi
24763
24764
24765 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
24766 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
24767 if test "${bash_cv_func_strcoll_broken+set}" = set; then
24768   echo $ECHO_N "(cached) $ECHO_C" >&6
24769 else
24770   if test "$cross_compiling" = yes; then
24771   { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
24772 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
24773     bash_cv_func_strcoll_broken=no
24774
24775 else
24776   cat >conftest.$ac_ext <<_ACEOF
24777 /* confdefs.h.  */
24778 _ACEOF
24779 cat confdefs.h >>conftest.$ac_ext
24780 cat >>conftest.$ac_ext <<_ACEOF
24781 /* end confdefs.h.  */
24782
24783 #include <stdio.h>
24784 #if defined (HAVE_LOCALE_H)
24785 #include <locale.h>
24786 #endif
24787
24788 main(c, v)
24789 int     c;
24790 char    *v[];
24791 {
24792         int     r1, r2;
24793         char    *deflocale, *defcoll;
24794
24795 #ifdef HAVE_SETLOCALE
24796         deflocale = setlocale(LC_ALL, "");
24797         defcoll = setlocale(LC_COLLATE, "");
24798 #endif
24799
24800 #ifdef HAVE_STRCOLL
24801         /* These two values are taken from tests/glob-test. */
24802         r1 = strcoll("abd", "aXd");
24803 #else
24804         r1 = 0;
24805 #endif
24806         r2 = strcmp("abd", "aXd");
24807
24808         /* These two should both be greater than 0.  It is permissible for
24809            a system to return different values, as long as the sign is the
24810            same. */
24811
24812         /* Exit with 1 (failure) if these two values are both > 0, since
24813            this tests whether strcoll(3) is broken with respect to strcmp(3)
24814            in the default locale. */
24815         exit (r1 > 0 && r2 > 0);
24816 }
24817
24818 _ACEOF
24819 rm -f conftest$ac_exeext
24820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24821   (eval $ac_link) 2>&5
24822   ac_status=$?
24823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24826   (eval $ac_try) 2>&5
24827   ac_status=$?
24828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24829   (exit $ac_status); }; }; then
24830   bash_cv_func_strcoll_broken=yes
24831 else
24832   echo "$as_me: program exited with status $ac_status" >&5
24833 echo "$as_me: failed program was:" >&5
24834 sed 's/^/| /' conftest.$ac_ext >&5
24835
24836 ( exit $ac_status )
24837 bash_cv_func_strcoll_broken=no
24838 fi
24839 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24840 fi
24841 fi
24842
24843 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
24844 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
24845 if test $bash_cv_func_strcoll_broken = yes; then
24846 cat >>confdefs.h <<\_ACEOF
24847 #define STRCOLL_BROKEN 1
24848 _ACEOF
24849
24850 fi
24851
24852
24853
24854 if test "$ac_cv_func_putenv" = "yes"; then
24855
24856
24857
24858 echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
24859 echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6
24860 if test "${bash_cv_std_putenv+set}" = set; then
24861   echo $ECHO_N "(cached) $ECHO_C" >&6
24862 else
24863   cat >conftest.$ac_ext <<_ACEOF
24864 /* confdefs.h.  */
24865 _ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h.  */
24869
24870 #if STDC_HEADERS
24871 #include <stdlib.h>
24872 #include <stddef.h>
24873 #endif
24874 #ifndef __STDC__
24875 #  ifndef const
24876 #    define const
24877 #  endif
24878 #endif
24879 #ifdef PROTOTYPES
24880 extern int putenv (char *);
24881 #else
24882 extern int putenv ();
24883 #endif
24884
24885 int
24886 main ()
24887 {
24888 return (putenv == 0);
24889   ;
24890   return 0;
24891 }
24892 _ACEOF
24893 rm -f conftest.$ac_objext conftest$ac_exeext
24894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24895   (eval $ac_link) 2>conftest.er1
24896   ac_status=$?
24897   grep -v '^ *+' conftest.er1 >conftest.err
24898   rm -f conftest.er1
24899   cat conftest.err >&5
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); } &&
24902          { ac_try='test -z "$ac_c_werror_flag"
24903                          || test ! -s conftest.err'
24904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24905   (eval $ac_try) 2>&5
24906   ac_status=$?
24907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908   (exit $ac_status); }; } &&
24909          { ac_try='test -s conftest$ac_exeext'
24910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911   (eval $ac_try) 2>&5
24912   ac_status=$?
24913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); }; }; then
24915   bash_cv_std_putenv=yes
24916 else
24917   echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24919
24920 bash_cv_std_putenv=no
24921
24922 fi
24923 rm -f conftest.err conftest.$ac_objext \
24924       conftest$ac_exeext conftest.$ac_ext
24925 fi
24926 echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
24927 echo "${ECHO_T}$bash_cv_std_putenv" >&6
24928 if test $bash_cv_std_putenv = yes; then
24929 cat >>confdefs.h <<\_ACEOF
24930 #define HAVE_STD_PUTENV 1
24931 _ACEOF
24932
24933 fi
24934
24935 else
24936 cat >>confdefs.h <<\_ACEOF
24937 #define HAVE_STD_PUTENV 1
24938 _ACEOF
24939
24940 fi
24941 if test "$ac_cv_func_unsetenv" = "yes"; then
24942
24943
24944
24945 echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
24946 echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6
24947 if test "${bash_cv_std_unsetenv+set}" = set; then
24948   echo $ECHO_N "(cached) $ECHO_C" >&6
24949 else
24950   cat >conftest.$ac_ext <<_ACEOF
24951 /* confdefs.h.  */
24952 _ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h.  */
24956
24957 #if STDC_HEADERS
24958 #include <stdlib.h>
24959 #include <stddef.h>
24960 #endif
24961 #ifndef __STDC__
24962 #  ifndef const
24963 #    define const
24964 #  endif
24965 #endif
24966 #ifdef PROTOTYPES
24967 extern int unsetenv (const char *);
24968 #else
24969 extern int unsetenv ();
24970 #endif
24971
24972 int
24973 main ()
24974 {
24975 return (unsetenv == 0);
24976   ;
24977   return 0;
24978 }
24979 _ACEOF
24980 rm -f conftest.$ac_objext conftest$ac_exeext
24981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24982   (eval $ac_link) 2>conftest.er1
24983   ac_status=$?
24984   grep -v '^ *+' conftest.er1 >conftest.err
24985   rm -f conftest.er1
24986   cat conftest.err >&5
24987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988   (exit $ac_status); } &&
24989          { ac_try='test -z "$ac_c_werror_flag"
24990                          || test ! -s conftest.err'
24991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24992   (eval $ac_try) 2>&5
24993   ac_status=$?
24994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995   (exit $ac_status); }; } &&
24996          { ac_try='test -s conftest$ac_exeext'
24997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24998   (eval $ac_try) 2>&5
24999   ac_status=$?
25000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001   (exit $ac_status); }; }; then
25002   bash_cv_std_unsetenv=yes
25003 else
25004   echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25006
25007 bash_cv_std_unsetenv=no
25008
25009 fi
25010 rm -f conftest.err conftest.$ac_objext \
25011       conftest$ac_exeext conftest.$ac_ext
25012 fi
25013 echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
25014 echo "${ECHO_T}$bash_cv_std_unsetenv" >&6
25015 if test $bash_cv_std_unsetenv = yes; then
25016 cat >>confdefs.h <<\_ACEOF
25017 #define HAVE_STD_UNSETENV 1
25018 _ACEOF
25019
25020 fi
25021
25022 else
25023 cat >>confdefs.h <<\_ACEOF
25024 #define HAVE_STD_UNSETENV 1
25025 _ACEOF
25026
25027 fi
25028
25029 echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
25030 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
25031 if test "${bash_cv_printf_a_format+set}" = set; then
25032   echo $ECHO_N "(cached) $ECHO_C" >&6
25033 else
25034   if test "$cross_compiling" = yes; then
25035   { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
25036 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
25037     bash_cv_printf_a_format=no
25038
25039 else
25040   cat >conftest.$ac_ext <<_ACEOF
25041 /* confdefs.h.  */
25042 _ACEOF
25043 cat confdefs.h >>conftest.$ac_ext
25044 cat >>conftest.$ac_ext <<_ACEOF
25045 /* end confdefs.h.  */
25046
25047 #include <stdio.h>
25048 #include <string.h>
25049
25050 int
25051 main()
25052 {
25053         double y = 0.0;
25054         char abuf[1024];
25055
25056         sprintf(abuf, "%A", y);
25057         exit(strchr(abuf, 'P') == (char *)0);
25058 }
25059
25060 _ACEOF
25061 rm -f conftest$ac_exeext
25062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25063   (eval $ac_link) 2>&5
25064   ac_status=$?
25065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068   (eval $ac_try) 2>&5
25069   ac_status=$?
25070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071   (exit $ac_status); }; }; then
25072   bash_cv_printf_a_format=yes
25073 else
25074   echo "$as_me: program exited with status $ac_status" >&5
25075 echo "$as_me: failed program was:" >&5
25076 sed 's/^/| /' conftest.$ac_ext >&5
25077
25078 ( exit $ac_status )
25079 bash_cv_printf_a_format=no
25080 fi
25081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25082 fi
25083 fi
25084
25085 echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
25086 echo "${ECHO_T}$bash_cv_printf_a_format" >&6
25087 if test $bash_cv_printf_a_format = yes; then
25088 cat >>confdefs.h <<\_ACEOF
25089 #define HAVE_PRINTF_A_FORMAT 1
25090 _ACEOF
25091
25092 fi
25093
25094
25095
25096
25097 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
25098 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
25099 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
25100   echo $ECHO_N "(cached) $ECHO_C" >&6
25101 else
25102   if test "$cross_compiling" = yes; then
25103   { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
25104 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
25105     bash_cv_must_reinstall_sighandlers=no
25106
25107 else
25108   cat >conftest.$ac_ext <<_ACEOF
25109 /* confdefs.h.  */
25110 _ACEOF
25111 cat confdefs.h >>conftest.$ac_ext
25112 cat >>conftest.$ac_ext <<_ACEOF
25113 /* end confdefs.h.  */
25114
25115 #include <signal.h>
25116 #ifdef HAVE_UNISTD_H
25117 #include <unistd.h>
25118 #endif
25119
25120 typedef RETSIGTYPE sigfunc();
25121
25122 int nsigint;
25123
25124 #ifdef HAVE_POSIX_SIGNALS
25125 sigfunc *
25126 set_signal_handler(sig, handler)
25127      int sig;
25128      sigfunc *handler;
25129 {
25130   struct sigaction act, oact;
25131   act.sa_handler = handler;
25132   act.sa_flags = 0;
25133   sigemptyset (&act.sa_mask);
25134   sigemptyset (&oact.sa_mask);
25135   sigaction (sig, &act, &oact);
25136   return (oact.sa_handler);
25137 }
25138 #else
25139 #define set_signal_handler(s, h) signal(s, h)
25140 #endif
25141
25142 RETSIGTYPE
25143 sigint(s)
25144 int s;
25145 {
25146   nsigint++;
25147 }
25148
25149 main()
25150 {
25151         nsigint = 0;
25152         set_signal_handler(SIGINT, sigint);
25153         kill((int)getpid(), SIGINT);
25154         kill((int)getpid(), SIGINT);
25155         exit(nsigint != 2);
25156 }
25157
25158 _ACEOF
25159 rm -f conftest$ac_exeext
25160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25161   (eval $ac_link) 2>&5
25162   ac_status=$?
25163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25166   (eval $ac_try) 2>&5
25167   ac_status=$?
25168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169   (exit $ac_status); }; }; then
25170   bash_cv_must_reinstall_sighandlers=no
25171 else
25172   echo "$as_me: program exited with status $ac_status" >&5
25173 echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25175
25176 ( exit $ac_status )
25177 bash_cv_must_reinstall_sighandlers=yes
25178 fi
25179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25180 fi
25181 fi
25182
25183 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
25184 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
25185 if test $bash_cv_must_reinstall_sighandlers = yes; then
25186 cat >>confdefs.h <<\_ACEOF
25187 #define MUST_REINSTALL_SIGHANDLERS 1
25188 _ACEOF
25189
25190 fi
25191
25192
25193 echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
25194 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
25195 if test "${bash_cv_job_control_missing+set}" = set; then
25196   echo $ECHO_N "(cached) $ECHO_C" >&6
25197 else
25198   if test "$cross_compiling" = yes; then
25199   { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
25200 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
25201      bash_cv_job_control_missing=missing
25202
25203 else
25204   cat >conftest.$ac_ext <<_ACEOF
25205 /* confdefs.h.  */
25206 _ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h.  */
25210
25211 #include <sys/types.h>
25212 #ifdef HAVE_SYS_WAIT_H
25213 #include <sys/wait.h>
25214 #endif
25215 #ifdef HAVE_UNISTD_H
25216 #include <unistd.h>
25217 #endif
25218 #include <signal.h>
25219
25220 /* Add more tests in here as appropriate. */
25221 main()
25222 {
25223 /* signal type */
25224 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
25225 exit(1);
25226 #endif
25227
25228 /* signals and tty control. */
25229 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
25230 exit (1);
25231 #endif
25232
25233 /* process control */
25234 #if !defined (WNOHANG) || !defined (WUNTRACED)
25235 exit(1);
25236 #endif
25237
25238 /* Posix systems have tcgetpgrp and waitpid. */
25239 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
25240 exit(1);
25241 #endif
25242
25243 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
25244 exit(1);
25245 #endif
25246
25247 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
25248 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
25249 exit(1);
25250 #endif
25251
25252 exit(0);
25253 }
25254 _ACEOF
25255 rm -f conftest$ac_exeext
25256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25257   (eval $ac_link) 2>&5
25258   ac_status=$?
25259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262   (eval $ac_try) 2>&5
25263   ac_status=$?
25264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265   (exit $ac_status); }; }; then
25266   bash_cv_job_control_missing=present
25267 else
25268   echo "$as_me: program exited with status $ac_status" >&5
25269 echo "$as_me: failed program was:" >&5
25270 sed 's/^/| /' conftest.$ac_ext >&5
25271
25272 ( exit $ac_status )
25273 bash_cv_job_control_missing=missing
25274 fi
25275 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25276 fi
25277 fi
25278
25279 echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
25280 echo "${ECHO_T}$bash_cv_job_control_missing" >&6
25281 if test $bash_cv_job_control_missing = missing; then
25282 cat >>confdefs.h <<\_ACEOF
25283 #define JOB_CONTROL_MISSING 1
25284 _ACEOF
25285
25286 fi
25287
25288 echo "$as_me:$LINENO: checking for presence of named pipes" >&5
25289 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
25290 if test "${bash_cv_sys_named_pipes+set}" = set; then
25291   echo $ECHO_N "(cached) $ECHO_C" >&6
25292 else
25293   if test "$cross_compiling" = yes; then
25294   { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
25295 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
25296      bash_cv_sys_named_pipes=missing
25297
25298 else
25299   cat >conftest.$ac_ext <<_ACEOF
25300 /* confdefs.h.  */
25301 _ACEOF
25302 cat confdefs.h >>conftest.$ac_ext
25303 cat >>conftest.$ac_ext <<_ACEOF
25304 /* end confdefs.h.  */
25305
25306 #include <sys/types.h>
25307 #include <sys/stat.h>
25308 #ifdef HAVE_UNISTD_H
25309 #include <unistd.h>
25310 #endif
25311
25312 /* Add more tests in here as appropriate. */
25313 main()
25314 {
25315 int fd, err;
25316
25317 #if defined (HAVE_MKFIFO)
25318 exit (0);
25319 #endif
25320
25321 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
25322 exit (1);
25323 #endif
25324
25325 #if defined (NeXT)
25326 exit (1);
25327 #endif
25328 err = mkdir("/tmp/bash-aclocal", 0700);
25329 if (err < 0) {
25330   perror ("mkdir");
25331   exit(1);
25332 }
25333 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
25334 if (fd == -1) {
25335   rmdir ("/tmp/bash-aclocal");
25336   exit (1);
25337 }
25338 close(fd);
25339 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
25340 rmdir ("/tmp/bash-aclocal");
25341 exit(0);
25342 }
25343 _ACEOF
25344 rm -f conftest$ac_exeext
25345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25346   (eval $ac_link) 2>&5
25347   ac_status=$?
25348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351   (eval $ac_try) 2>&5
25352   ac_status=$?
25353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354   (exit $ac_status); }; }; then
25355   bash_cv_sys_named_pipes=present
25356 else
25357   echo "$as_me: program exited with status $ac_status" >&5
25358 echo "$as_me: failed program was:" >&5
25359 sed 's/^/| /' conftest.$ac_ext >&5
25360
25361 ( exit $ac_status )
25362 bash_cv_sys_named_pipes=missing
25363 fi
25364 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25365 fi
25366 fi
25367
25368 echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
25369 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
25370 if test $bash_cv_sys_named_pipes = missing; then
25371 cat >>confdefs.h <<\_ACEOF
25372 #define NAMED_PIPES_MISSING 1
25373 _ACEOF
25374
25375 fi
25376
25377
25378 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
25379 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
25380 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
25381   echo $ECHO_N "(cached) $ECHO_C" >&6
25382 else
25383   cat >conftest.$ac_ext <<_ACEOF
25384 /* confdefs.h.  */
25385 _ACEOF
25386 cat confdefs.h >>conftest.$ac_ext
25387 cat >>conftest.$ac_ext <<_ACEOF
25388 /* end confdefs.h.  */
25389 #include <sys/types.h>
25390 #include <termios.h>
25391 #ifdef TIOCGWINSZ
25392   yes
25393 #endif
25394
25395 _ACEOF
25396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25397   $EGREP "yes" >/dev/null 2>&1; then
25398   ac_cv_sys_tiocgwinsz_in_termios_h=yes
25399 else
25400   ac_cv_sys_tiocgwinsz_in_termios_h=no
25401 fi
25402 rm -f conftest*
25403
25404 fi
25405 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
25406 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
25407
25408 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
25409   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
25410 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
25411 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
25412   echo $ECHO_N "(cached) $ECHO_C" >&6
25413 else
25414   cat >conftest.$ac_ext <<_ACEOF
25415 /* confdefs.h.  */
25416 _ACEOF
25417 cat confdefs.h >>conftest.$ac_ext
25418 cat >>conftest.$ac_ext <<_ACEOF
25419 /* end confdefs.h.  */
25420 #include <sys/types.h>
25421 #include <sys/ioctl.h>
25422 #ifdef TIOCGWINSZ
25423   yes
25424 #endif
25425
25426 _ACEOF
25427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25428   $EGREP "yes" >/dev/null 2>&1; then
25429   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
25430 else
25431   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
25432 fi
25433 rm -f conftest*
25434
25435 fi
25436 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
25437 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
25438
25439   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
25440
25441 cat >>confdefs.h <<\_ACEOF
25442 #define GWINSZ_IN_SYS_IOCTL 1
25443 _ACEOF
25444
25445   fi
25446 fi
25447
25448 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
25449 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
25450 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
25451   echo $ECHO_N "(cached) $ECHO_C" >&6
25452 else
25453   cat >conftest.$ac_ext <<_ACEOF
25454 /* confdefs.h.  */
25455 _ACEOF
25456 cat confdefs.h >>conftest.$ac_ext
25457 cat >>conftest.$ac_ext <<_ACEOF
25458 /* end confdefs.h.  */
25459 #include <sys/types.h>
25460 #include <sys/ioctl.h>
25461 int
25462 main ()
25463 {
25464 int x = TIOCSTAT;
25465   ;
25466   return 0;
25467 }
25468 _ACEOF
25469 rm -f conftest.$ac_objext
25470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25471   (eval $ac_compile) 2>conftest.er1
25472   ac_status=$?
25473   grep -v '^ *+' conftest.er1 >conftest.err
25474   rm -f conftest.er1
25475   cat conftest.err >&5
25476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477   (exit $ac_status); } &&
25478          { ac_try='test -z "$ac_c_werror_flag"
25479                          || test ! -s conftest.err'
25480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481   (eval $ac_try) 2>&5
25482   ac_status=$?
25483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484   (exit $ac_status); }; } &&
25485          { ac_try='test -s conftest.$ac_objext'
25486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487   (eval $ac_try) 2>&5
25488   ac_status=$?
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); }; }; then
25491   bash_cv_tiocstat_in_ioctl=yes
25492 else
25493   echo "$as_me: failed program was:" >&5
25494 sed 's/^/| /' conftest.$ac_ext >&5
25495
25496 bash_cv_tiocstat_in_ioctl=no
25497 fi
25498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25499 fi
25500
25501 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
25502 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
25503 if test $bash_cv_tiocstat_in_ioctl = yes; then
25504 cat >>confdefs.h <<\_ACEOF
25505 #define TIOCSTAT_IN_SYS_IOCTL 1
25506 _ACEOF
25507
25508 fi
25509
25510 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
25511 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
25512 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
25513   echo $ECHO_N "(cached) $ECHO_C" >&6
25514 else
25515   cat >conftest.$ac_ext <<_ACEOF
25516 /* confdefs.h.  */
25517 _ACEOF
25518 cat confdefs.h >>conftest.$ac_ext
25519 cat >>conftest.$ac_ext <<_ACEOF
25520 /* end confdefs.h.  */
25521 #include <sys/types.h>
25522 #include <sys/ioctl.h>
25523 int
25524 main ()
25525 {
25526 int x = FIONREAD;
25527   ;
25528   return 0;
25529 }
25530 _ACEOF
25531 rm -f conftest.$ac_objext
25532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25533   (eval $ac_compile) 2>conftest.er1
25534   ac_status=$?
25535   grep -v '^ *+' conftest.er1 >conftest.err
25536   rm -f conftest.er1
25537   cat conftest.err >&5
25538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539   (exit $ac_status); } &&
25540          { ac_try='test -z "$ac_c_werror_flag"
25541                          || test ! -s conftest.err'
25542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25543   (eval $ac_try) 2>&5
25544   ac_status=$?
25545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546   (exit $ac_status); }; } &&
25547          { ac_try='test -s conftest.$ac_objext'
25548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25549   (eval $ac_try) 2>&5
25550   ac_status=$?
25551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552   (exit $ac_status); }; }; then
25553   bash_cv_fionread_in_ioctl=yes
25554 else
25555   echo "$as_me: failed program was:" >&5
25556 sed 's/^/| /' conftest.$ac_ext >&5
25557
25558 bash_cv_fionread_in_ioctl=no
25559 fi
25560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25561 fi
25562
25563 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
25564 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
25565 if test $bash_cv_fionread_in_ioctl = yes; then
25566 cat >>confdefs.h <<\_ACEOF
25567 #define FIONREAD_IN_SYS_IOCTL 1
25568 _ACEOF
25569
25570 fi
25571
25572
25573
25574 echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
25575 echo $ECHO_N "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... $ECHO_C" >&6
25576 if test "${bash_cv_wcontinued_broken+set}" = set; then
25577   echo $ECHO_N "(cached) $ECHO_C" >&6
25578 else
25579   if test "$cross_compiling" = yes; then
25580   { echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
25581 echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
25582     bash_cv_wcontinued_broken=no
25583
25584 else
25585   cat >conftest.$ac_ext <<_ACEOF
25586 /* confdefs.h.  */
25587 _ACEOF
25588 cat confdefs.h >>conftest.$ac_ext
25589 cat >>conftest.$ac_ext <<_ACEOF
25590 /* end confdefs.h.  */
25591
25592 #include <sys/types.h>
25593 #include <sys/wait.h>
25594 #include <unistd.h>
25595 #include <errno.h>
25596
25597 #ifndef errno
25598 extern int errno;
25599 #endif
25600 main()
25601 {
25602         int     x;
25603
25604         x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
25605         if (x == -1 && errno == EINVAL)
25606                 exit (1);
25607         else
25608                 exit (0);
25609 }
25610
25611 _ACEOF
25612 rm -f conftest$ac_exeext
25613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25614   (eval $ac_link) 2>&5
25615   ac_status=$?
25616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25619   (eval $ac_try) 2>&5
25620   ac_status=$?
25621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622   (exit $ac_status); }; }; then
25623   bash_cv_wcontinued_broken=no
25624 else
25625   echo "$as_me: program exited with status $ac_status" >&5
25626 echo "$as_me: failed program was:" >&5
25627 sed 's/^/| /' conftest.$ac_ext >&5
25628
25629 ( exit $ac_status )
25630 bash_cv_wcontinued_broken=yes
25631 fi
25632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25633 fi
25634 fi
25635
25636 echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
25637 echo "${ECHO_T}$bash_cv_wcontinued_broken" >&6
25638 if test $bash_cv_wcontinued_broken = yes; then
25639 cat >>confdefs.h <<\_ACEOF
25640 #define WCONTINUED_BROKEN 1
25641 _ACEOF
25642
25643 fi
25644
25645
25646 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
25647 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
25648 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
25649   echo $ECHO_N "(cached) $ECHO_C" >&6
25650 else
25651   cat >conftest.$ac_ext <<_ACEOF
25652 /* confdefs.h.  */
25653 _ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
25656 /* end confdefs.h.  */
25657 #include <sys/types.h>
25658 int
25659 main ()
25660 {
25661 speed_t x;
25662   ;
25663   return 0;
25664 }
25665 _ACEOF
25666 rm -f conftest.$ac_objext
25667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25668   (eval $ac_compile) 2>conftest.er1
25669   ac_status=$?
25670   grep -v '^ *+' conftest.er1 >conftest.err
25671   rm -f conftest.er1
25672   cat conftest.err >&5
25673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674   (exit $ac_status); } &&
25675          { ac_try='test -z "$ac_c_werror_flag"
25676                          || test ! -s conftest.err'
25677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25678   (eval $ac_try) 2>&5
25679   ac_status=$?
25680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681   (exit $ac_status); }; } &&
25682          { ac_try='test -s conftest.$ac_objext'
25683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25684   (eval $ac_try) 2>&5
25685   ac_status=$?
25686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687   (exit $ac_status); }; }; then
25688   bash_cv_speed_t_in_sys_types=yes
25689 else
25690   echo "$as_me: failed program was:" >&5
25691 sed 's/^/| /' conftest.$ac_ext >&5
25692
25693 bash_cv_speed_t_in_sys_types=no
25694 fi
25695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25696 fi
25697
25698 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
25699 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
25700 if test $bash_cv_speed_t_in_sys_types = yes; then
25701 cat >>confdefs.h <<\_ACEOF
25702 #define SPEED_T_IN_SYS_TYPES 1
25703 _ACEOF
25704
25705 fi
25706
25707 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
25708 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
25709 if test "${bash_cv_getpw_declared+set}" = set; then
25710   echo $ECHO_N "(cached) $ECHO_C" >&6
25711 else
25712   cat >conftest.$ac_ext <<_ACEOF
25713 /* confdefs.h.  */
25714 _ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h.  */
25718
25719 #include <sys/types.h>
25720 #ifdef HAVE_UNISTD_H
25721 #  include <unistd.h>
25722 #endif
25723 #include <pwd.h>
25724
25725 _ACEOF
25726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25727   $EGREP "getpwuid" >/dev/null 2>&1; then
25728   bash_cv_getpw_declared=yes
25729 else
25730   bash_cv_getpw_declared=no
25731 fi
25732 rm -f conftest*
25733
25734 fi
25735
25736 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
25737 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
25738 if test $bash_cv_getpw_declared = yes; then
25739 cat >>confdefs.h <<\_ACEOF
25740 #define HAVE_GETPW_DECLS 1
25741 _ACEOF
25742
25743 fi
25744
25745 echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
25746 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
25747 if test "${bash_cv_unusable_rtsigs+set}" = set; then
25748   echo $ECHO_N "(cached) $ECHO_C" >&6
25749 else
25750   if test "$cross_compiling" = yes; then
25751   { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
25752 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
25753      bash_cv_unusable_rtsigs=yes
25754
25755 else
25756   cat >conftest.$ac_ext <<_ACEOF
25757 /* confdefs.h.  */
25758 _ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h.  */
25762
25763 #include <sys/types.h>
25764 #include <signal.h>
25765
25766 #ifndef NSIG
25767 #  define NSIG 64
25768 #endif
25769
25770 main ()
25771 {
25772   int n_sigs = 2 * NSIG;
25773 #ifdef SIGRTMIN
25774   int rtmin = SIGRTMIN;
25775 #else
25776   int rtmin = 0;
25777 #endif
25778
25779   exit(rtmin < n_sigs);
25780 }
25781 _ACEOF
25782 rm -f conftest$ac_exeext
25783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25784   (eval $ac_link) 2>&5
25785   ac_status=$?
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25789   (eval $ac_try) 2>&5
25790   ac_status=$?
25791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792   (exit $ac_status); }; }; then
25793   bash_cv_unusable_rtsigs=yes
25794 else
25795   echo "$as_me: program exited with status $ac_status" >&5
25796 echo "$as_me: failed program was:" >&5
25797 sed 's/^/| /' conftest.$ac_ext >&5
25798
25799 ( exit $ac_status )
25800 bash_cv_unusable_rtsigs=no
25801 fi
25802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25803 fi
25804 fi
25805
25806 echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
25807 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
25808 if test $bash_cv_unusable_rtsigs = yes; then
25809 cat >>confdefs.h <<\_ACEOF
25810 #define UNUSABLE_RT_SIGNALS 1
25811 _ACEOF
25812
25813 fi
25814
25815
25816
25817
25818
25819 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
25820   SIGLIST_O=siglist.o
25821 else
25822   SIGLIST_O=
25823 fi
25824
25825
25826
25827 case "$host_os" in
25828 hpux*)  echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
25829 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
25830 if test "${bash_cv_kernel_rlimit+set}" = set; then
25831   echo $ECHO_N "(cached) $ECHO_C" >&6
25832 else
25833   cat >conftest.$ac_ext <<_ACEOF
25834 /* confdefs.h.  */
25835 _ACEOF
25836 cat confdefs.h >>conftest.$ac_ext
25837 cat >>conftest.$ac_ext <<_ACEOF
25838 /* end confdefs.h.  */
25839
25840 #include <sys/types.h>
25841 #include <sys/resource.h>
25842
25843 int
25844 main ()
25845 {
25846
25847   int f;
25848   f = RLIMIT_DATA;
25849
25850   ;
25851   return 0;
25852 }
25853 _ACEOF
25854 rm -f conftest.$ac_objext
25855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25856   (eval $ac_compile) 2>conftest.er1
25857   ac_status=$?
25858   grep -v '^ *+' conftest.er1 >conftest.err
25859   rm -f conftest.er1
25860   cat conftest.err >&5
25861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862   (exit $ac_status); } &&
25863          { ac_try='test -z "$ac_c_werror_flag"
25864                          || test ! -s conftest.err'
25865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25866   (eval $ac_try) 2>&5
25867   ac_status=$?
25868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869   (exit $ac_status); }; } &&
25870          { ac_try='test -s conftest.$ac_objext'
25871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872   (eval $ac_try) 2>&5
25873   ac_status=$?
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); }; }; then
25876   bash_cv_kernel_rlimit=no
25877 else
25878   echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25880
25881 cat >conftest.$ac_ext <<_ACEOF
25882 /* confdefs.h.  */
25883 _ACEOF
25884 cat confdefs.h >>conftest.$ac_ext
25885 cat >>conftest.$ac_ext <<_ACEOF
25886 /* end confdefs.h.  */
25887
25888 #include <sys/types.h>
25889 #define _KERNEL
25890 #include <sys/resource.h>
25891 #undef _KERNEL
25892
25893 int
25894 main ()
25895 {
25896
25897         int f;
25898         f = RLIMIT_DATA;
25899
25900   ;
25901   return 0;
25902 }
25903 _ACEOF
25904 rm -f conftest.$ac_objext
25905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25906   (eval $ac_compile) 2>conftest.er1
25907   ac_status=$?
25908   grep -v '^ *+' conftest.er1 >conftest.err
25909   rm -f conftest.er1
25910   cat conftest.err >&5
25911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912   (exit $ac_status); } &&
25913          { ac_try='test -z "$ac_c_werror_flag"
25914                          || test ! -s conftest.err'
25915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25916   (eval $ac_try) 2>&5
25917   ac_status=$?
25918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919   (exit $ac_status); }; } &&
25920          { ac_try='test -s conftest.$ac_objext'
25921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25922   (eval $ac_try) 2>&5
25923   ac_status=$?
25924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925   (exit $ac_status); }; }; then
25926   bash_cv_kernel_rlimit=yes
25927 else
25928   echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25930
25931 bash_cv_kernel_rlimit=no
25932 fi
25933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25934
25935 fi
25936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25937 fi
25938
25939 echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
25940 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
25941 if test $bash_cv_kernel_rlimit = yes; then
25942 cat >>confdefs.h <<\_ACEOF
25943 #define RLIMIT_NEEDS_KERNEL 1
25944 _ACEOF
25945
25946 fi
25947  ;;
25948 esac
25949
25950 if test "$opt_readline" = yes; then
25951 case "$host_os" in
25952 aix*)   prefer_curses=yes ;;
25953 esac
25954
25955 if test "X$bash_cv_termcap_lib" = "X"; then
25956 _bash_needmsg=yes
25957 else
25958 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
25959 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
25960 _bash_needmsg=
25961 fi
25962 if test "${bash_cv_termcap_lib+set}" = set; then
25963   echo $ECHO_N "(cached) $ECHO_C" >&6
25964 else
25965   echo "$as_me:$LINENO: checking for tgetent" >&5
25966 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
25967 if test "${ac_cv_func_tgetent+set}" = set; then
25968   echo $ECHO_N "(cached) $ECHO_C" >&6
25969 else
25970   cat >conftest.$ac_ext <<_ACEOF
25971 /* confdefs.h.  */
25972 _ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h.  */
25976 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
25977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25978 #define tgetent innocuous_tgetent
25979
25980 /* System header to define __stub macros and hopefully few prototypes,
25981     which can conflict with char tgetent (); below.
25982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25983     <limits.h> exists even on freestanding compilers.  */
25984
25985 #ifdef __STDC__
25986 # include <limits.h>
25987 #else
25988 # include <assert.h>
25989 #endif
25990
25991 #undef tgetent
25992
25993 /* Override any gcc2 internal prototype to avoid an error.  */
25994 #ifdef __cplusplus
25995 extern "C"
25996 {
25997 #endif
25998 /* We use char because int might match the return type of a gcc2
25999    builtin and then its argument prototype would still apply.  */
26000 char tgetent ();
26001 /* The GNU C library defines this for functions which it implements
26002     to always fail with ENOSYS.  Some functions are actually named
26003     something starting with __ and the normal name is an alias.  */
26004 #if defined (__stub_tgetent) || defined (__stub___tgetent)
26005 choke me
26006 #else
26007 char (*f) () = tgetent;
26008 #endif
26009 #ifdef __cplusplus
26010 }
26011 #endif
26012
26013 int
26014 main ()
26015 {
26016 return f != tgetent;
26017   ;
26018   return 0;
26019 }
26020 _ACEOF
26021 rm -f conftest.$ac_objext conftest$ac_exeext
26022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26023   (eval $ac_link) 2>conftest.er1
26024   ac_status=$?
26025   grep -v '^ *+' conftest.er1 >conftest.err
26026   rm -f conftest.er1
26027   cat conftest.err >&5
26028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029   (exit $ac_status); } &&
26030          { ac_try='test -z "$ac_c_werror_flag"
26031                          || test ! -s conftest.err'
26032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26033   (eval $ac_try) 2>&5
26034   ac_status=$?
26035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036   (exit $ac_status); }; } &&
26037          { ac_try='test -s conftest$ac_exeext'
26038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26039   (eval $ac_try) 2>&5
26040   ac_status=$?
26041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042   (exit $ac_status); }; }; then
26043   ac_cv_func_tgetent=yes
26044 else
26045   echo "$as_me: failed program was:" >&5
26046 sed 's/^/| /' conftest.$ac_ext >&5
26047
26048 ac_cv_func_tgetent=no
26049 fi
26050 rm -f conftest.err conftest.$ac_objext \
26051       conftest$ac_exeext conftest.$ac_ext
26052 fi
26053 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
26054 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
26055 if test $ac_cv_func_tgetent = yes; then
26056   bash_cv_termcap_lib=libc
26057 else
26058   echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26059 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
26060 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26061   echo $ECHO_N "(cached) $ECHO_C" >&6
26062 else
26063   ac_check_lib_save_LIBS=$LIBS
26064 LIBS="-ltermcap  $LIBS"
26065 cat >conftest.$ac_ext <<_ACEOF
26066 /* confdefs.h.  */
26067 _ACEOF
26068 cat confdefs.h >>conftest.$ac_ext
26069 cat >>conftest.$ac_ext <<_ACEOF
26070 /* end confdefs.h.  */
26071
26072 /* Override any gcc2 internal prototype to avoid an error.  */
26073 #ifdef __cplusplus
26074 extern "C"
26075 #endif
26076 /* We use char because int might match the return type of a gcc2
26077    builtin and then its argument prototype would still apply.  */
26078 char tgetent ();
26079 int
26080 main ()
26081 {
26082 tgetent ();
26083   ;
26084   return 0;
26085 }
26086 _ACEOF
26087 rm -f conftest.$ac_objext conftest$ac_exeext
26088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26089   (eval $ac_link) 2>conftest.er1
26090   ac_status=$?
26091   grep -v '^ *+' conftest.er1 >conftest.err
26092   rm -f conftest.er1
26093   cat conftest.err >&5
26094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095   (exit $ac_status); } &&
26096          { ac_try='test -z "$ac_c_werror_flag"
26097                          || test ! -s conftest.err'
26098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099   (eval $ac_try) 2>&5
26100   ac_status=$?
26101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102   (exit $ac_status); }; } &&
26103          { ac_try='test -s conftest$ac_exeext'
26104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105   (eval $ac_try) 2>&5
26106   ac_status=$?
26107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108   (exit $ac_status); }; }; then
26109   ac_cv_lib_termcap_tgetent=yes
26110 else
26111   echo "$as_me: failed program was:" >&5
26112 sed 's/^/| /' conftest.$ac_ext >&5
26113
26114 ac_cv_lib_termcap_tgetent=no
26115 fi
26116 rm -f conftest.err conftest.$ac_objext \
26117       conftest$ac_exeext conftest.$ac_ext
26118 LIBS=$ac_check_lib_save_LIBS
26119 fi
26120 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26121 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
26122 if test $ac_cv_lib_termcap_tgetent = yes; then
26123   bash_cv_termcap_lib=libtermcap
26124 else
26125   echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
26126 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
26127 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
26128   echo $ECHO_N "(cached) $ECHO_C" >&6
26129 else
26130   ac_check_lib_save_LIBS=$LIBS
26131 LIBS="-ltinfo  $LIBS"
26132 cat >conftest.$ac_ext <<_ACEOF
26133 /* confdefs.h.  */
26134 _ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h.  */
26138
26139 /* Override any gcc2 internal prototype to avoid an error.  */
26140 #ifdef __cplusplus
26141 extern "C"
26142 #endif
26143 /* We use char because int might match the return type of a gcc2
26144    builtin and then its argument prototype would still apply.  */
26145 char tgetent ();
26146 int
26147 main ()
26148 {
26149 tgetent ();
26150   ;
26151   return 0;
26152 }
26153 _ACEOF
26154 rm -f conftest.$ac_objext conftest$ac_exeext
26155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26156   (eval $ac_link) 2>conftest.er1
26157   ac_status=$?
26158   grep -v '^ *+' conftest.er1 >conftest.err
26159   rm -f conftest.er1
26160   cat conftest.err >&5
26161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162   (exit $ac_status); } &&
26163          { ac_try='test -z "$ac_c_werror_flag"
26164                          || test ! -s conftest.err'
26165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26166   (eval $ac_try) 2>&5
26167   ac_status=$?
26168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169   (exit $ac_status); }; } &&
26170          { ac_try='test -s conftest$ac_exeext'
26171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172   (eval $ac_try) 2>&5
26173   ac_status=$?
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); }; }; then
26176   ac_cv_lib_tinfo_tgetent=yes
26177 else
26178   echo "$as_me: failed program was:" >&5
26179 sed 's/^/| /' conftest.$ac_ext >&5
26180
26181 ac_cv_lib_tinfo_tgetent=no
26182 fi
26183 rm -f conftest.err conftest.$ac_objext \
26184       conftest$ac_exeext conftest.$ac_ext
26185 LIBS=$ac_check_lib_save_LIBS
26186 fi
26187 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
26188 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
26189 if test $ac_cv_lib_tinfo_tgetent = yes; then
26190   bash_cv_termcap_lib=libtinfo
26191 else
26192   echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
26193 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
26194 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
26195   echo $ECHO_N "(cached) $ECHO_C" >&6
26196 else
26197   ac_check_lib_save_LIBS=$LIBS
26198 LIBS="-lcurses  $LIBS"
26199 cat >conftest.$ac_ext <<_ACEOF
26200 /* confdefs.h.  */
26201 _ACEOF
26202 cat confdefs.h >>conftest.$ac_ext
26203 cat >>conftest.$ac_ext <<_ACEOF
26204 /* end confdefs.h.  */
26205
26206 /* Override any gcc2 internal prototype to avoid an error.  */
26207 #ifdef __cplusplus
26208 extern "C"
26209 #endif
26210 /* We use char because int might match the return type of a gcc2
26211    builtin and then its argument prototype would still apply.  */
26212 char tgetent ();
26213 int
26214 main ()
26215 {
26216 tgetent ();
26217   ;
26218   return 0;
26219 }
26220 _ACEOF
26221 rm -f conftest.$ac_objext conftest$ac_exeext
26222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26223   (eval $ac_link) 2>conftest.er1
26224   ac_status=$?
26225   grep -v '^ *+' conftest.er1 >conftest.err
26226   rm -f conftest.er1
26227   cat conftest.err >&5
26228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229   (exit $ac_status); } &&
26230          { ac_try='test -z "$ac_c_werror_flag"
26231                          || test ! -s conftest.err'
26232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26233   (eval $ac_try) 2>&5
26234   ac_status=$?
26235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236   (exit $ac_status); }; } &&
26237          { ac_try='test -s conftest$ac_exeext'
26238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26239   (eval $ac_try) 2>&5
26240   ac_status=$?
26241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242   (exit $ac_status); }; }; then
26243   ac_cv_lib_curses_tgetent=yes
26244 else
26245   echo "$as_me: failed program was:" >&5
26246 sed 's/^/| /' conftest.$ac_ext >&5
26247
26248 ac_cv_lib_curses_tgetent=no
26249 fi
26250 rm -f conftest.err conftest.$ac_objext \
26251       conftest$ac_exeext conftest.$ac_ext
26252 LIBS=$ac_check_lib_save_LIBS
26253 fi
26254 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
26255 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
26256 if test $ac_cv_lib_curses_tgetent = yes; then
26257   bash_cv_termcap_lib=libcurses
26258 else
26259   echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
26260 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
26261 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
26262   echo $ECHO_N "(cached) $ECHO_C" >&6
26263 else
26264   ac_check_lib_save_LIBS=$LIBS
26265 LIBS="-lncurses  $LIBS"
26266 cat >conftest.$ac_ext <<_ACEOF
26267 /* confdefs.h.  */
26268 _ACEOF
26269 cat confdefs.h >>conftest.$ac_ext
26270 cat >>conftest.$ac_ext <<_ACEOF
26271 /* end confdefs.h.  */
26272
26273 /* Override any gcc2 internal prototype to avoid an error.  */
26274 #ifdef __cplusplus
26275 extern "C"
26276 #endif
26277 /* We use char because int might match the return type of a gcc2
26278    builtin and then its argument prototype would still apply.  */
26279 char tgetent ();
26280 int
26281 main ()
26282 {
26283 tgetent ();
26284   ;
26285   return 0;
26286 }
26287 _ACEOF
26288 rm -f conftest.$ac_objext conftest$ac_exeext
26289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26290   (eval $ac_link) 2>conftest.er1
26291   ac_status=$?
26292   grep -v '^ *+' conftest.er1 >conftest.err
26293   rm -f conftest.er1
26294   cat conftest.err >&5
26295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296   (exit $ac_status); } &&
26297          { ac_try='test -z "$ac_c_werror_flag"
26298                          || test ! -s conftest.err'
26299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300   (eval $ac_try) 2>&5
26301   ac_status=$?
26302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303   (exit $ac_status); }; } &&
26304          { ac_try='test -s conftest$ac_exeext'
26305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26306   (eval $ac_try) 2>&5
26307   ac_status=$?
26308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309   (exit $ac_status); }; }; then
26310   ac_cv_lib_ncurses_tgetent=yes
26311 else
26312   echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26314
26315 ac_cv_lib_ncurses_tgetent=no
26316 fi
26317 rm -f conftest.err conftest.$ac_objext \
26318       conftest$ac_exeext conftest.$ac_ext
26319 LIBS=$ac_check_lib_save_LIBS
26320 fi
26321 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
26322 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
26323 if test $ac_cv_lib_ncurses_tgetent = yes; then
26324   bash_cv_termcap_lib=libncurses
26325 else
26326   bash_cv_termcap_lib=gnutermcap
26327 fi
26328
26329 fi
26330
26331 fi
26332
26333 fi
26334
26335 fi
26336
26337 fi
26338
26339 if test "X$_bash_needmsg" = "Xyes"; then
26340 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
26341 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
26342 fi
26343 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
26344 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
26345 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
26346 LDFLAGS="$LDFLAGS -L./lib/termcap"
26347 TERMCAP_LIB="./lib/termcap/libtermcap.a"
26348 TERMCAP_DEP="./lib/termcap/libtermcap.a"
26349 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
26350 TERMCAP_LIB=-ltermcap
26351 TERMCAP_DEP=
26352 elif test $bash_cv_termcap_lib = libtinfo; then
26353 TERMCAP_LIB=-ltinfo
26354 TERMCAP_DEP=
26355 elif test $bash_cv_termcap_lib = libncurses; then
26356 TERMCAP_LIB=-lncurses
26357 TERMCAP_DEP=
26358 elif test $bash_cv_termcap_lib = libc; then
26359 TERMCAP_LIB=
26360 TERMCAP_DEP=
26361 else
26362 TERMCAP_LIB=-lcurses
26363 TERMCAP_DEP=
26364 fi
26365
26366 fi
26367
26368
26369
26370 echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
26371 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
26372 if test "${bash_cv_dev_fd+set}" = set; then
26373   echo $ECHO_N "(cached) $ECHO_C" >&6
26374 else
26375   if test -d /dev/fd  && test -r /dev/fd/0 < /dev/null; then
26376 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
26377    exec 3<&0
26378    if test -r /dev/fd/3; then
26379      bash_cv_dev_fd=standard
26380    else
26381      bash_cv_dev_fd=absent
26382    fi
26383    exec 3<&-
26384  elif test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
26385    bash_cv_dev_fd=whacky
26386  else
26387    bash_cv_dev_fd=absent
26388  fi
26389
26390 fi
26391
26392 echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
26393 echo "${ECHO_T}$bash_cv_dev_fd" >&6
26394 if test $bash_cv_dev_fd = "standard"; then
26395   cat >>confdefs.h <<\_ACEOF
26396 #define HAVE_DEV_FD 1
26397 _ACEOF
26398
26399   cat >>confdefs.h <<\_ACEOF
26400 #define DEV_FD_PREFIX "/dev/fd/"
26401 _ACEOF
26402
26403 elif test $bash_cv_dev_fd = "whacky"; then
26404   cat >>confdefs.h <<\_ACEOF
26405 #define HAVE_DEV_FD 1
26406 _ACEOF
26407
26408   cat >>confdefs.h <<\_ACEOF
26409 #define DEV_FD_PREFIX "/proc/self/fd/"
26410 _ACEOF
26411
26412 fi
26413
26414 echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
26415 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
26416 if test "${bash_cv_dev_stdin+set}" = set; then
26417   echo $ECHO_N "(cached) $ECHO_C" >&6
26418 else
26419   if test -d /dev/fd && test -r /dev/stdin < /dev/null; then
26420    bash_cv_dev_stdin=present
26421  elif test -d /proc/self/fd && test -r /dev/stdin < /dev/null; then
26422    bash_cv_dev_stdin=present
26423  else
26424    bash_cv_dev_stdin=absent
26425  fi
26426
26427 fi
26428
26429 echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
26430 echo "${ECHO_T}$bash_cv_dev_stdin" >&6
26431 if test $bash_cv_dev_stdin = "present"; then
26432   cat >>confdefs.h <<\_ACEOF
26433 #define HAVE_DEV_STDIN 1
26434 _ACEOF
26435
26436 fi
26437
26438 echo "$as_me:$LINENO: checking for default mail directory" >&5
26439 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
26440 if test "${bash_cv_mail_dir+set}" = set; then
26441   echo $ECHO_N "(cached) $ECHO_C" >&6
26442 else
26443   if test -d /var/mail; then
26444    bash_cv_mail_dir=/var/mail
26445  elif test -d /var/spool/mail; then
26446    bash_cv_mail_dir=/var/spool/mail
26447  elif test -d /usr/mail; then
26448    bash_cv_mail_dir=/usr/mail
26449  elif test -d /usr/spool/mail; then
26450    bash_cv_mail_dir=/usr/spool/mail
26451  else
26452    bash_cv_mail_dir=unknown
26453  fi
26454
26455 fi
26456
26457 echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
26458 echo "${ECHO_T}$bash_cv_mail_dir" >&6
26459 cat >>confdefs.h <<_ACEOF
26460 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
26461 _ACEOF
26462
26463
26464
26465 if test "$bash_cv_job_control_missing" = missing; then
26466         opt_job_control=no
26467 fi
26468
26469 if test "$opt_job_control" = yes; then
26470 cat >>confdefs.h <<\_ACEOF
26471 #define JOB_CONTROL 1
26472 _ACEOF
26473
26474 JOBS_O=jobs.o
26475 else
26476 JOBS_O=nojobs.o
26477 fi
26478
26479
26480
26481
26482 LOCAL_DEFS=-DSHELL
26483
26484
26485 case "${host_os}" in
26486 sysv4.2*)       cat >>confdefs.h <<\_ACEOF
26487 #define SVR4_2 1
26488 _ACEOF
26489
26490                 cat >>confdefs.h <<\_ACEOF
26491 #define SVR4 1
26492 _ACEOF
26493  ;;
26494 sysv4*)         cat >>confdefs.h <<\_ACEOF
26495 #define SVR4 1
26496 _ACEOF
26497  ;;
26498 sysv5*)         cat >>confdefs.h <<\_ACEOF
26499 #define SVR5 1
26500 _ACEOF
26501  ;;
26502 hpux9*)         LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
26503 hpux*)          LOCAL_CFLAGS=-DHPUX ;;
26504 dgux*)          LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
26505 isc*)           LOCAL_CFLAGS=-Disc386 ;;
26506 rhapsody*)      LOCAL_CFLAGS=-DRHAPSODY ;;
26507 darwin*)        LOCAL_CFLAGS=-DMACOSX ;;
26508 sco3.2v5*)      LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
26509 sco3.2v4*)      LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
26510 sco3.2*)        LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
26511 sunos4*)        LOCAL_CFLAGS=-DSunOS4 ;;
26512 solaris2.5*)    LOCAL_CFLAGS=-DSunOS5 ;;
26513 lynxos*)        LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
26514 linux*)         LOCAL_LDFLAGS=-rdynamic          # allow dynamic loading
26515 echo "uname -r = `uname -r`" >&6
26516                 case "`uname -r`" in
26517                 2.456789*|3*)   cat >>confdefs.h <<\_ACEOF
26518 #define PGRP_PIPE 1
26519 _ACEOF
26520 echo "defining PGRP_PIPE to 1" >&6
26521  ;;
26522                 esac ;;
26523 *qnx*)          LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
26524 powerux*)       LOCAL_LIBS="-lgen" ;;
26525 cygwin*)        LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
26526 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
26527 esac
26528
26529 case "${host_os}-${CC}" in
26530 aix4.2*-*gcc*)  LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
26531 aix4.2*)        LOCAL_LDFLAGS="-bexpall -brtl" ;;
26532 bsdi4*-*gcc*)   LOCAL_LDFLAGS="-rdynamic" ;;    # allow dynamic loading, like Linux
26533 esac
26534
26535 case "${host_os}" in
26536 freebsd[3-9]*)
26537                 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
26538                         LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
26539                 fi ;;
26540 freebsdelf*)    LOCAL_LDFLAGS=-rdynamic ;;      # allow dynamic loading
26541 esac
26542
26543 case "$host_cpu" in
26544 *cray*)         LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
26545 esac
26546
26547 case "$host_cpu-$host_os" in
26548 ibmrt-*bsd4*)   LOCAL_CFLAGS="-ma -U__STDC__" ;;
26549 esac
26550
26551 case "$host_cpu-$host_vendor-$host_os" in
26552 m88k-motorola-sysv3)    LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
26553 mips-pyramid-sysv4)     LOCAL_CFLAGS=-Xa ;;
26554 esac
26555
26556 #
26557 # Shared object configuration section.  These values are generated by
26558 # ${srcdir}/support/shobj-conf
26559 #
26560 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
26561 then
26562         echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
26563 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
26564         eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
26565
26566
26567
26568
26569
26570
26571
26572         echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
26573 echo "${ECHO_T}$SHOBJ_STATUS" >&6
26574 fi
26575
26576 # try to create a directory tree if the source is elsewhere
26577 # this should be packaged into a script accessible via ${srcdir}/support
26578 case "$srcdir" in
26579 .)      ;;
26580 *)      for d in doc tests support lib examples; do     # dirs
26581                 test -d $d || mkdir $d
26582         done
26583         for ld in readline glob tilde malloc sh termcap; do     # libdirs
26584                 test -d lib/$ld || mkdir lib/$ld
26585         done
26586         test -d examples/loadables || mkdir examples/loadables  # loadable builtins
26587         test -d examples/loadables/perl || mkdir examples/loadables/perl
26588         ;;
26589 esac
26590
26591 BUILD_DIR=`pwd`
26592 case "$BUILD_DIR" in
26593 *\ *)   BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
26594 *)      ;;
26595 esac
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620 #AC_SUBST(ALLOCA_SOURCE)
26621 #AC_SUBST(ALLOCA_OBJECT)
26622
26623                                                                                                                                                       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"
26624           ac_config_commands="$ac_config_commands default"
26625 cat >confcache <<\_ACEOF
26626 # This file is a shell script that caches the results of configure
26627 # tests run on this system so they can be shared between configure
26628 # scripts and configure runs, see configure's option --config-cache.
26629 # It is not useful on other systems.  If it contains results you don't
26630 # want to keep, you may remove or edit it.
26631 #
26632 # config.status only pays attention to the cache file if you give it
26633 # the --recheck option to rerun configure.
26634 #
26635 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26636 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26637 # following values.
26638
26639 _ACEOF
26640
26641 # The following way of writing the cache mishandles newlines in values,
26642 # but we know of no workaround that is simple, portable, and efficient.
26643 # So, don't put newlines in cache variables' values.
26644 # Ultrix sh set writes to stderr and can't be redirected directly,
26645 # and sets the high bit in the cache file unless we assign to the vars.
26646 {
26647   (set) 2>&1 |
26648     case `(ac_space=' '; set | grep ac_space) 2>&1` in
26649     *ac_space=\ *)
26650       # `set' does not quote correctly, so add quotes (double-quote
26651       # substitution turns \\\\ into \\, and sed turns \\ into \).
26652       sed -n \
26653         "s/'/'\\\\''/g;
26654           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26655       ;;
26656     *)
26657       # `set' quotes correctly as required by POSIX, so do not add quotes.
26658       sed -n \
26659         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26660       ;;
26661     esac;
26662 } |
26663   sed '
26664      t clear
26665      : clear
26666      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26667      t end
26668      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26669      : end' >>confcache
26670 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26671   if test -w $cache_file; then
26672     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26673     cat confcache >$cache_file
26674   else
26675     echo "not updating unwritable cache $cache_file"
26676   fi
26677 fi
26678 rm -f confcache
26679
26680 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26681 # Let make expand exec_prefix.
26682 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26683
26684 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26685 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26686 # trailing colons and then remove the whole line if VPATH becomes empty
26687 # (actually we leave an empty line to preserve line numbers).
26688 if test "x$srcdir" = x.; then
26689   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26690 s/:*\$(srcdir):*/:/;
26691 s/:*\${srcdir}:*/:/;
26692 s/:*@srcdir@:*/:/;
26693 s/^\([^=]*=[     ]*\):*/\1/;
26694 s/:*$//;
26695 s/^[^=]*=[       ]*$//;
26696 }'
26697 fi
26698
26699 DEFS=-DHAVE_CONFIG_H
26700
26701 ac_libobjs=
26702 ac_ltlibobjs=
26703 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26704   # 1. Remove the extension, and $U if already installed.
26705   ac_i=`echo "$ac_i" |
26706          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26707   # 2. Add them.
26708   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26709   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26710 done
26711 LIBOBJS=$ac_libobjs
26712
26713 LTLIBOBJS=$ac_ltlibobjs
26714
26715
26716
26717 : ${CONFIG_STATUS=./config.status}
26718 ac_clean_files_save=$ac_clean_files
26719 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26720 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26721 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26722 cat >$CONFIG_STATUS <<_ACEOF
26723 #! $SHELL
26724 # Generated by $as_me.
26725 # Run this file to recreate the current configuration.
26726 # Compiler output produced by configure, useful for debugging
26727 # configure, is in config.log if it exists.
26728
26729 debug=false
26730 ac_cs_recheck=false
26731 ac_cs_silent=false
26732 SHELL=\${CONFIG_SHELL-$SHELL}
26733 _ACEOF
26734
26735 cat >>$CONFIG_STATUS <<\_ACEOF
26736 ## --------------------- ##
26737 ## M4sh Initialization.  ##
26738 ## --------------------- ##
26739
26740 # Be Bourne compatible
26741 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26742   emulate sh
26743   NULLCMD=:
26744   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26745   # is contrary to our usage.  Disable this feature.
26746   alias -g '${1+"$@"}'='"$@"'
26747 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26748   set -o posix
26749 fi
26750 DUALCASE=1; export DUALCASE # for MKS sh
26751
26752 # Support unset when possible.
26753 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26754   as_unset=unset
26755 else
26756   as_unset=false
26757 fi
26758
26759
26760 # Work around bugs in pre-3.0 UWIN ksh.
26761 $as_unset ENV MAIL MAILPATH
26762 PS1='$ '
26763 PS2='> '
26764 PS4='+ '
26765
26766 # NLS nuisances.
26767 for as_var in \
26768   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26769   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26770   LC_TELEPHONE LC_TIME
26771 do
26772   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26773     eval $as_var=C; export $as_var
26774   else
26775     $as_unset $as_var
26776   fi
26777 done
26778
26779 # Required to use basename.
26780 if expr a : '\(a\)' >/dev/null 2>&1; then
26781   as_expr=expr
26782 else
26783   as_expr=false
26784 fi
26785
26786 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26787   as_basename=basename
26788 else
26789   as_basename=false
26790 fi
26791
26792
26793 # Name of the executable.
26794 as_me=`$as_basename "$0" ||
26795 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26796          X"$0" : 'X\(//\)$' \| \
26797          X"$0" : 'X\(/\)$' \| \
26798          .     : '\(.\)' 2>/dev/null ||
26799 echo X/"$0" |
26800     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26801           /^X\/\(\/\/\)$/{ s//\1/; q; }
26802           /^X\/\(\/\).*/{ s//\1/; q; }
26803           s/.*/./; q'`
26804
26805
26806 # PATH needs CR, and LINENO needs CR and PATH.
26807 # Avoid depending upon Character Ranges.
26808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26811 as_cr_digits='0123456789'
26812 as_cr_alnum=$as_cr_Letters$as_cr_digits
26813
26814 # The user is always right.
26815 if test "${PATH_SEPARATOR+set}" != set; then
26816   echo "#! /bin/sh" >conf$$.sh
26817   echo  "exit 0"   >>conf$$.sh
26818   chmod +x conf$$.sh
26819   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26820     PATH_SEPARATOR=';'
26821   else
26822     PATH_SEPARATOR=:
26823   fi
26824   rm -f conf$$.sh
26825 fi
26826
26827
26828   as_lineno_1=$LINENO
26829   as_lineno_2=$LINENO
26830   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26831   test "x$as_lineno_1" != "x$as_lineno_2" &&
26832   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26833   # Find who we are.  Look in the path if we contain no path at all
26834   # relative or not.
26835   case $0 in
26836     *[\\/]* ) as_myself=$0 ;;
26837     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26838 for as_dir in $PATH
26839 do
26840   IFS=$as_save_IFS
26841   test -z "$as_dir" && as_dir=.
26842   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26843 done
26844
26845        ;;
26846   esac
26847   # We did not find ourselves, most probably we were run as `sh COMMAND'
26848   # in which case we are not to be found in the path.
26849   if test "x$as_myself" = x; then
26850     as_myself=$0
26851   fi
26852   if test ! -f "$as_myself"; then
26853     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26854 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26855    { (exit 1); exit 1; }; }
26856   fi
26857   case $CONFIG_SHELL in
26858   '')
26859     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26860 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26861 do
26862   IFS=$as_save_IFS
26863   test -z "$as_dir" && as_dir=.
26864   for as_base in sh bash ksh sh5; do
26865          case $as_dir in
26866          /*)
26867            if ("$as_dir/$as_base" -c '
26868   as_lineno_1=$LINENO
26869   as_lineno_2=$LINENO
26870   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26871   test "x$as_lineno_1" != "x$as_lineno_2" &&
26872   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26873              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26874              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26875              CONFIG_SHELL=$as_dir/$as_base
26876              export CONFIG_SHELL
26877              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26878            fi;;
26879          esac
26880        done
26881 done
26882 ;;
26883   esac
26884
26885   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26886   # uniformly replaced by the line number.  The first 'sed' inserts a
26887   # line-number line before each line; the second 'sed' does the real
26888   # work.  The second script uses 'N' to pair each line-number line
26889   # with the numbered line, and appends trailing '-' during
26890   # substitution so that $LINENO is not a special case at line end.
26891   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26892   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26893   sed '=' <$as_myself |
26894     sed '
26895       N
26896       s,$,-,
26897       : loop
26898       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26899       t loop
26900       s,-$,,
26901       s,^['$as_cr_digits']*\n,,
26902     ' >$as_me.lineno &&
26903   chmod +x $as_me.lineno ||
26904     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26905 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26906    { (exit 1); exit 1; }; }
26907
26908   # Don't try to exec as it changes $[0], causing all sort of problems
26909   # (the dirname of $[0] is not the place where we might find the
26910   # original and so on.  Autoconf is especially sensible to this).
26911   . ./$as_me.lineno
26912   # Exit status is that of the last command.
26913   exit
26914 }
26915
26916
26917 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26918   *c*,-n*) ECHO_N= ECHO_C='
26919 ' ECHO_T='      ' ;;
26920   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26921   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26922 esac
26923
26924 if expr a : '\(a\)' >/dev/null 2>&1; then
26925   as_expr=expr
26926 else
26927   as_expr=false
26928 fi
26929
26930 rm -f conf$$ conf$$.exe conf$$.file
26931 echo >conf$$.file
26932 if ln -s conf$$.file conf$$ 2>/dev/null; then
26933   # We could just check for DJGPP; but this test a) works b) is more generic
26934   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26935   if test -f conf$$.exe; then
26936     # Don't use ln at all; we don't have any links
26937     as_ln_s='cp -p'
26938   else
26939     as_ln_s='ln -s'
26940   fi
26941 elif ln conf$$.file conf$$ 2>/dev/null; then
26942   as_ln_s=ln
26943 else
26944   as_ln_s='cp -p'
26945 fi
26946 rm -f conf$$ conf$$.exe conf$$.file
26947
26948 if mkdir -p . 2>/dev/null; then
26949   as_mkdir_p=:
26950 else
26951   test -d ./-p && rmdir ./-p
26952   as_mkdir_p=false
26953 fi
26954
26955 as_executable_p="test -f"
26956
26957 # Sed expression to map a string onto a valid CPP name.
26958 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26959
26960 # Sed expression to map a string onto a valid variable name.
26961 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26962
26963
26964 # IFS
26965 # We need space, tab and new line, in precisely that order.
26966 as_nl='
26967 '
26968 IFS="   $as_nl"
26969
26970 # CDPATH.
26971 $as_unset CDPATH
26972
26973 exec 6>&1
26974
26975 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26976 # report actual input values of CONFIG_FILES etc. instead of their
26977 # values after options handling.  Logging --version etc. is OK.
26978 exec 5>>config.log
26979 {
26980   echo
26981   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26982 ## Running $as_me. ##
26983 _ASBOX
26984 } >&5
26985 cat >&5 <<_CSEOF
26986
26987 This file was extended by bash $as_me 3.1-devel, which was
26988 generated by GNU Autoconf 2.59.  Invocation command line was
26989
26990   CONFIG_FILES    = $CONFIG_FILES
26991   CONFIG_HEADERS  = $CONFIG_HEADERS
26992   CONFIG_LINKS    = $CONFIG_LINKS
26993   CONFIG_COMMANDS = $CONFIG_COMMANDS
26994   $ $0 $@
26995
26996 _CSEOF
26997 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26998 echo >&5
26999 _ACEOF
27000
27001 # Files that config.status was made for.
27002 if test -n "$ac_config_files"; then
27003   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27004 fi
27005
27006 if test -n "$ac_config_headers"; then
27007   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27008 fi
27009
27010 if test -n "$ac_config_links"; then
27011   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27012 fi
27013
27014 if test -n "$ac_config_commands"; then
27015   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27016 fi
27017
27018 cat >>$CONFIG_STATUS <<\_ACEOF
27019
27020 ac_cs_usage="\
27021 \`$as_me' instantiates files from templates according to the
27022 current configuration.
27023
27024 Usage: $0 [OPTIONS] [FILE]...
27025
27026   -h, --help       print this help, then exit
27027   -V, --version    print version number, then exit
27028   -q, --quiet      do not print progress messages
27029   -d, --debug      don't remove temporary files
27030       --recheck    update $as_me by reconfiguring in the same conditions
27031   --file=FILE[:TEMPLATE]
27032                    instantiate the configuration file FILE
27033   --header=FILE[:TEMPLATE]
27034                    instantiate the configuration header FILE
27035
27036 Configuration files:
27037 $config_files
27038
27039 Configuration headers:
27040 $config_headers
27041
27042 Configuration commands:
27043 $config_commands
27044
27045 Report bugs to <bug-autoconf@gnu.org>."
27046 _ACEOF
27047
27048 cat >>$CONFIG_STATUS <<_ACEOF
27049 ac_cs_version="\\
27050 bash config.status 3.1-devel
27051 configured by $0, generated by GNU Autoconf 2.59,
27052   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27053
27054 Copyright (C) 2003 Free Software Foundation, Inc.
27055 This config.status script is free software; the Free Software Foundation
27056 gives unlimited permission to copy, distribute and modify it."
27057 srcdir=$srcdir
27058 INSTALL="$INSTALL"
27059 _ACEOF
27060
27061 cat >>$CONFIG_STATUS <<\_ACEOF
27062 # If no file are specified by the user, then we need to provide default
27063 # value.  By we need to know if files were specified by the user.
27064 ac_need_defaults=:
27065 while test $# != 0
27066 do
27067   case $1 in
27068   --*=*)
27069     ac_option=`expr "x$1" : 'x\([^=]*\)='`
27070     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27071     ac_shift=:
27072     ;;
27073   -*)
27074     ac_option=$1
27075     ac_optarg=$2
27076     ac_shift=shift
27077     ;;
27078   *) # This is not an option, so the user has probably given explicit
27079      # arguments.
27080      ac_option=$1
27081      ac_need_defaults=false;;
27082   esac
27083
27084   case $ac_option in
27085   # Handling of the options.
27086 _ACEOF
27087 cat >>$CONFIG_STATUS <<\_ACEOF
27088   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27089     ac_cs_recheck=: ;;
27090   --version | --vers* | -V )
27091     echo "$ac_cs_version"; exit 0 ;;
27092   --he | --h)
27093     # Conflict between --help and --header
27094     { { echo "$as_me:$LINENO: error: ambiguous option: $1
27095 Try \`$0 --help' for more information." >&5
27096 echo "$as_me: error: ambiguous option: $1
27097 Try \`$0 --help' for more information." >&2;}
27098    { (exit 1); exit 1; }; };;
27099   --help | --hel | -h )
27100     echo "$ac_cs_usage"; exit 0 ;;
27101   --debug | --d* | -d )
27102     debug=: ;;
27103   --file | --fil | --fi | --f )
27104     $ac_shift
27105     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27106     ac_need_defaults=false;;
27107   --header | --heade | --head | --hea )
27108     $ac_shift
27109     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27110     ac_need_defaults=false;;
27111   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27112   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27113     ac_cs_silent=: ;;
27114
27115   # This is an error.
27116   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27117 Try \`$0 --help' for more information." >&5
27118 echo "$as_me: error: unrecognized option: $1
27119 Try \`$0 --help' for more information." >&2;}
27120    { (exit 1); exit 1; }; } ;;
27121
27122   *) ac_config_targets="$ac_config_targets $1" ;;
27123
27124   esac
27125   shift
27126 done
27127
27128 ac_configure_extra_args=
27129
27130 if $ac_cs_silent; then
27131   exec 6>/dev/null
27132   ac_configure_extra_args="$ac_configure_extra_args --silent"
27133 fi
27134
27135 _ACEOF
27136 cat >>$CONFIG_STATUS <<_ACEOF
27137 if \$ac_cs_recheck; then
27138   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27139   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27140 fi
27141
27142 _ACEOF
27143
27144 cat >>$CONFIG_STATUS <<_ACEOF
27145 #
27146 # INIT-COMMANDS section.
27147 #
27148
27149 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
27150     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
27151     # from automake.
27152     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27153     # Capture the value of LINGUAS because we need it to compute CATALOGS.
27154     LINGUAS="${LINGUAS-%UNSET%}"
27155
27156
27157 _ACEOF
27158
27159
27160
27161 cat >>$CONFIG_STATUS <<\_ACEOF
27162 for ac_config_target in $ac_config_targets
27163 do
27164   case "$ac_config_target" in
27165   # Handling of arguments.
27166   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27167   "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
27168   "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
27169   "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
27170   "lib/intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
27171   "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
27172   "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
27173   "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
27174   "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
27175   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27176   "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
27177   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27178   "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
27179   "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
27180   "pathnames.h" ) CONFIG_FILES="$CONFIG_FILES pathnames.h" ;;
27181   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27182   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27183   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27184   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27185 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27186    { (exit 1); exit 1; }; };;
27187   esac
27188 done
27189
27190 # If the user did not use the arguments to specify the items to instantiate,
27191 # then the envvar interface is used.  Set only those that are not.
27192 # We use the long form for the default assignment because of an extremely
27193 # bizarre bug on SunOS 4.1.3.
27194 if $ac_need_defaults; then
27195   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27196   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27197   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27198 fi
27199
27200 # Have a temporary directory for convenience.  Make it in the build tree
27201 # simply because there is no reason to put it here, and in addition,
27202 # creating and moving files from /tmp can sometimes cause problems.
27203 # Create a temporary directory, and hook for its removal unless debugging.
27204 $debug ||
27205 {
27206   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27207   trap '{ (exit 1); exit 1; }' 1 2 13 15
27208 }
27209
27210 # Create a (secure) tmp directory for tmp files.
27211
27212 {
27213   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27214   test -n "$tmp" && test -d "$tmp"
27215 }  ||
27216 {
27217   tmp=./confstat$$-$RANDOM
27218   (umask 077 && mkdir $tmp)
27219 } ||
27220 {
27221    echo "$me: cannot create a temporary directory in ." >&2
27222    { (exit 1); exit 1; }
27223 }
27224
27225 _ACEOF
27226
27227 cat >>$CONFIG_STATUS <<_ACEOF
27228
27229 #
27230 # CONFIG_FILES section.
27231 #
27232
27233 # No need to generate the scripts if there are no CONFIG_FILES.
27234 # This happens for instance when ./config.status config.h
27235 if test -n "\$CONFIG_FILES"; then
27236   # Protect against being on the right side of a sed subst in config.status.
27237   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27238    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27239 s,@SHELL@,$SHELL,;t t
27240 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27241 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27242 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27243 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27244 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27245 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27246 s,@exec_prefix@,$exec_prefix,;t t
27247 s,@prefix@,$prefix,;t t
27248 s,@program_transform_name@,$program_transform_name,;t t
27249 s,@bindir@,$bindir,;t t
27250 s,@sbindir@,$sbindir,;t t
27251 s,@libexecdir@,$libexecdir,;t t
27252 s,@datadir@,$datadir,;t t
27253 s,@sysconfdir@,$sysconfdir,;t t
27254 s,@sharedstatedir@,$sharedstatedir,;t t
27255 s,@localstatedir@,$localstatedir,;t t
27256 s,@libdir@,$libdir,;t t
27257 s,@includedir@,$includedir,;t t
27258 s,@oldincludedir@,$oldincludedir,;t t
27259 s,@infodir@,$infodir,;t t
27260 s,@mandir@,$mandir,;t t
27261 s,@build_alias@,$build_alias,;t t
27262 s,@host_alias@,$host_alias,;t t
27263 s,@target_alias@,$target_alias,;t t
27264 s,@DEFS@,$DEFS,;t t
27265 s,@ECHO_C@,$ECHO_C,;t t
27266 s,@ECHO_N@,$ECHO_N,;t t
27267 s,@ECHO_T@,$ECHO_T,;t t
27268 s,@LIBS@,$LIBS,;t t
27269 s,@build@,$build,;t t
27270 s,@build_cpu@,$build_cpu,;t t
27271 s,@build_vendor@,$build_vendor,;t t
27272 s,@build_os@,$build_os,;t t
27273 s,@host@,$host,;t t
27274 s,@host_cpu@,$host_cpu,;t t
27275 s,@host_vendor@,$host_vendor,;t t
27276 s,@host_os@,$host_os,;t t
27277 s,@EMACS@,$EMACS,;t t
27278 s,@lispdir@,$lispdir,;t t
27279 s,@DEBUGGER_START_FILE@,$DEBUGGER_START_FILE,;t t
27280 s,@TESTSCRIPT@,$TESTSCRIPT,;t t
27281 s,@PURIFY@,$PURIFY,;t t
27282 s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
27283 s,@MALLOC_SRC@,$MALLOC_SRC,;t t
27284 s,@MALLOC_LIB@,$MALLOC_LIB,;t t
27285 s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
27286 s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
27287 s,@MALLOC_DEP@,$MALLOC_DEP,;t t
27288 s,@htmldir@,$htmldir,;t t
27289 s,@HELPDIR@,$HELPDIR,;t t
27290 s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t
27291 s,@HELPINSTALL@,$HELPINSTALL,;t t
27292 s,@HELPSTRINGS@,$HELPSTRINGS,;t t
27293 s,@CC@,$CC,;t t
27294 s,@CFLAGS@,$CFLAGS,;t t
27295 s,@LDFLAGS@,$LDFLAGS,;t t
27296 s,@CPPFLAGS@,$CPPFLAGS,;t t
27297 s,@ac_ct_CC@,$ac_ct_CC,;t t
27298 s,@EXEEXT@,$EXEEXT,;t t
27299 s,@OBJEXT@,$OBJEXT,;t t
27300 s,@CPP@,$CPP,;t t
27301 s,@EGREP@,$EGREP,;t t
27302 s,@SIGNAMES_H@,$SIGNAMES_H,;t t
27303 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
27304 s,@STATIC_LD@,$STATIC_LD,;t t
27305 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
27306 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
27307 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
27308 s,@RL_VERSION@,$RL_VERSION,;t t
27309 s,@RL_MAJOR@,$RL_MAJOR,;t t
27310 s,@RL_MINOR@,$RL_MINOR,;t t
27311 s,@READLINE_LIB@,$READLINE_LIB,;t t
27312 s,@READLINE_DEP@,$READLINE_DEP,;t t
27313 s,@RL_LIBDIR@,$RL_LIBDIR,;t t
27314 s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
27315 s,@RL_INCLUDE@,$RL_INCLUDE,;t t
27316 s,@HISTORY_LIB@,$HISTORY_LIB,;t t
27317 s,@HISTORY_DEP@,$HISTORY_DEP,;t t
27318 s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
27319 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27320 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27321 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27322 s,@AR@,$AR,;t t
27323 s,@RANLIB@,$RANLIB,;t t
27324 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27325 s,@YACC@,$YACC,;t t
27326 s,@SET_MAKE@,$SET_MAKE,;t t
27327 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
27328 s,@SIZE@,$SIZE,;t t
27329 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
27330 s,@USE_NLS@,$USE_NLS,;t t
27331 s,@MSGFMT@,$MSGFMT,;t t
27332 s,@GMSGFMT@,$GMSGFMT,;t t
27333 s,@XGETTEXT@,$XGETTEXT,;t t
27334 s,@MSGMERGE@,$MSGMERGE,;t t
27335 s,@ALLOCA@,$ALLOCA,;t t
27336 s,@GLIBC21@,$GLIBC21,;t t
27337 s,@LIBICONV@,$LIBICONV,;t t
27338 s,@LTLIBICONV@,$LTLIBICONV,;t t
27339 s,@INTLBISON@,$INTLBISON,;t t
27340 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
27341 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
27342 s,@CATOBJEXT@,$CATOBJEXT,;t t
27343 s,@DATADIRNAME@,$DATADIRNAME,;t t
27344 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
27345 s,@GENCAT@,$GENCAT,;t t
27346 s,@INTLOBJS@,$INTLOBJS,;t t
27347 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
27348 s,@INTLLIBS@,$INTLLIBS,;t t
27349 s,@LIBINTL@,$LIBINTL,;t t
27350 s,@LTLIBINTL@,$LTLIBINTL,;t t
27351 s,@POSUB@,$POSUB,;t t
27352 s,@LIBOBJS@,$LIBOBJS,;t t
27353 s,@INTL_DEP@,$INTL_DEP,;t t
27354 s,@INTL_INC@,$INTL_INC,;t t
27355 s,@LIBINTL_H@,$LIBINTL_H,;t t
27356 s,@SIGLIST_O@,$SIGLIST_O,;t t
27357 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
27358 s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
27359 s,@JOBS_O@,$JOBS_O,;t t
27360 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
27361 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
27362 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
27363 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
27364 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
27365 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
27366 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
27367 s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
27368 s,@incdir@,$incdir,;t t
27369 s,@BUILD_DIR@,$BUILD_DIR,;t t
27370 s,@ARFLAGS@,$ARFLAGS,;t t
27371 s,@BASHVERS@,$BASHVERS,;t t
27372 s,@RELSTATUS@,$RELSTATUS,;t t
27373 s,@DEBUG@,$DEBUG,;t t
27374 s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t
27375 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
27376 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
27377 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
27378 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
27379 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27380 CEOF
27381
27382 _ACEOF
27383
27384   cat >>$CONFIG_STATUS <<\_ACEOF
27385   # Split the substitutions into bite-sized pieces for seds with
27386   # small command number limits, like on Digital OSF/1 and HP-UX.
27387   ac_max_sed_lines=48
27388   ac_sed_frag=1 # Number of current file.
27389   ac_beg=1 # First line for current file.
27390   ac_end=$ac_max_sed_lines # Line after last line for current file.
27391   ac_more_lines=:
27392   ac_sed_cmds=
27393   while $ac_more_lines; do
27394     if test $ac_beg -gt 1; then
27395       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27396     else
27397       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27398     fi
27399     if test ! -s $tmp/subs.frag; then
27400       ac_more_lines=false
27401     else
27402       # The purpose of the label and of the branching condition is to
27403       # speed up the sed processing (if there are no `@' at all, there
27404       # is no need to browse any of the substitutions).
27405       # These are the two extra sed commands mentioned above.
27406       (echo ':t
27407   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27408       if test -z "$ac_sed_cmds"; then
27409         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27410       else
27411         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27412       fi
27413       ac_sed_frag=`expr $ac_sed_frag + 1`
27414       ac_beg=$ac_end
27415       ac_end=`expr $ac_end + $ac_max_sed_lines`
27416     fi
27417   done
27418   if test -z "$ac_sed_cmds"; then
27419     ac_sed_cmds=cat
27420   fi
27421 fi # test -n "$CONFIG_FILES"
27422
27423 _ACEOF
27424 cat >>$CONFIG_STATUS <<\_ACEOF
27425 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27426   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27427   case $ac_file in
27428   - | *:- | *:-:* ) # input from stdin
27429         cat >$tmp/stdin
27430         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27431         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27432   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27433         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27434   * )   ac_file_in=$ac_file.in ;;
27435   esac
27436
27437   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27438   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27439 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27440          X"$ac_file" : 'X\(//\)[^/]' \| \
27441          X"$ac_file" : 'X\(//\)$' \| \
27442          X"$ac_file" : 'X\(/\)' \| \
27443          .     : '\(.\)' 2>/dev/null ||
27444 echo X"$ac_file" |
27445     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27446           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27447           /^X\(\/\/\)$/{ s//\1/; q; }
27448           /^X\(\/\).*/{ s//\1/; q; }
27449           s/.*/./; q'`
27450   { if $as_mkdir_p; then
27451     mkdir -p "$ac_dir"
27452   else
27453     as_dir="$ac_dir"
27454     as_dirs=
27455     while test ! -d "$as_dir"; do
27456       as_dirs="$as_dir $as_dirs"
27457       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27459          X"$as_dir" : 'X\(//\)[^/]' \| \
27460          X"$as_dir" : 'X\(//\)$' \| \
27461          X"$as_dir" : 'X\(/\)' \| \
27462          .     : '\(.\)' 2>/dev/null ||
27463 echo X"$as_dir" |
27464     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27465           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27466           /^X\(\/\/\)$/{ s//\1/; q; }
27467           /^X\(\/\).*/{ s//\1/; q; }
27468           s/.*/./; q'`
27469     done
27470     test ! -n "$as_dirs" || mkdir $as_dirs
27471   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27472 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27473    { (exit 1); exit 1; }; }; }
27474
27475   ac_builddir=.
27476
27477 if test "$ac_dir" != .; then
27478   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27479   # A "../" for each directory in $ac_dir_suffix.
27480   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27481 else
27482   ac_dir_suffix= ac_top_builddir=
27483 fi
27484
27485 case $srcdir in
27486   .)  # No --srcdir option.  We are building in place.
27487     ac_srcdir=.
27488     if test -z "$ac_top_builddir"; then
27489        ac_top_srcdir=.
27490     else
27491        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27492     fi ;;
27493   [\\/]* | ?:[\\/]* )  # Absolute path.
27494     ac_srcdir=$srcdir$ac_dir_suffix;
27495     ac_top_srcdir=$srcdir ;;
27496   *) # Relative path.
27497     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27498     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27499 esac
27500
27501 # Do not use `cd foo && pwd` to compute absolute paths, because
27502 # the directories may not exist.
27503 case `pwd` in
27504 .) ac_abs_builddir="$ac_dir";;
27505 *)
27506   case "$ac_dir" in
27507   .) ac_abs_builddir=`pwd`;;
27508   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27509   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27510   esac;;
27511 esac
27512 case $ac_abs_builddir in
27513 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27514 *)
27515   case ${ac_top_builddir}. in
27516   .) ac_abs_top_builddir=$ac_abs_builddir;;
27517   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27518   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27519   esac;;
27520 esac
27521 case $ac_abs_builddir in
27522 .) ac_abs_srcdir=$ac_srcdir;;
27523 *)
27524   case $ac_srcdir in
27525   .) ac_abs_srcdir=$ac_abs_builddir;;
27526   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27527   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27528   esac;;
27529 esac
27530 case $ac_abs_builddir in
27531 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27532 *)
27533   case $ac_top_srcdir in
27534   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27535   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27536   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27537   esac;;
27538 esac
27539
27540
27541   case $INSTALL in
27542   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27543   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27544   esac
27545
27546   if test x"$ac_file" != x-; then
27547     { echo "$as_me:$LINENO: creating $ac_file" >&5
27548 echo "$as_me: creating $ac_file" >&6;}
27549     rm -f "$ac_file"
27550   fi
27551   # Let's still pretend it is `configure' which instantiates (i.e., don't
27552   # use $as_me), people would be surprised to read:
27553   #    /* config.h.  Generated by config.status.  */
27554   if test x"$ac_file" = x-; then
27555     configure_input=
27556   else
27557     configure_input="$ac_file.  "
27558   fi
27559   configure_input=$configure_input"Generated from `echo $ac_file_in |
27560                                      sed 's,.*/,,'` by configure."
27561
27562   # First look for the input files in the build tree, otherwise in the
27563   # src tree.
27564   ac_file_inputs=`IFS=:
27565     for f in $ac_file_in; do
27566       case $f in
27567       -) echo $tmp/stdin ;;
27568       [\\/$]*)
27569          # Absolute (can't be DOS-style, as IFS=:)
27570          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27571 echo "$as_me: error: cannot find input file: $f" >&2;}
27572    { (exit 1); exit 1; }; }
27573          echo "$f";;
27574       *) # Relative
27575          if test -f "$f"; then
27576            # Build tree
27577            echo "$f"
27578          elif test -f "$srcdir/$f"; then
27579            # Source tree
27580            echo "$srcdir/$f"
27581          else
27582            # /dev/null tree
27583            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27584 echo "$as_me: error: cannot find input file: $f" >&2;}
27585    { (exit 1); exit 1; }; }
27586          fi;;
27587       esac
27588     done` || { (exit 1); exit 1; }
27589 _ACEOF
27590 cat >>$CONFIG_STATUS <<_ACEOF
27591   sed "$ac_vpsub
27592 $extrasub
27593 _ACEOF
27594 cat >>$CONFIG_STATUS <<\_ACEOF
27595 :t
27596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27597 s,@configure_input@,$configure_input,;t t
27598 s,@srcdir@,$ac_srcdir,;t t
27599 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27600 s,@top_srcdir@,$ac_top_srcdir,;t t
27601 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27602 s,@builddir@,$ac_builddir,;t t
27603 s,@abs_builddir@,$ac_abs_builddir,;t t
27604 s,@top_builddir@,$ac_top_builddir,;t t
27605 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27606 s,@INSTALL@,$ac_INSTALL,;t t
27607 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27608   rm -f $tmp/stdin
27609   if test x"$ac_file" != x-; then
27610     mv $tmp/out $ac_file
27611   else
27612     cat $tmp/out
27613     rm -f $tmp/out
27614   fi
27615
27616 done
27617 _ACEOF
27618 cat >>$CONFIG_STATUS <<\_ACEOF
27619
27620 #
27621 # CONFIG_HEADER section.
27622 #
27623
27624 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27625 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27626 #
27627 # ac_d sets the value in "#define NAME VALUE" lines.
27628 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27629 ac_dB='[         ].*$,\1#\2'
27630 ac_dC=' '
27631 ac_dD=',;t'
27632 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27633 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27634 ac_uB='$,\1#\2define\3'
27635 ac_uC=' '
27636 ac_uD=',;t'
27637
27638 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27639   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27640   case $ac_file in
27641   - | *:- | *:-:* ) # input from stdin
27642         cat >$tmp/stdin
27643         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27644         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27645   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27646         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27647   * )   ac_file_in=$ac_file.in ;;
27648   esac
27649
27650   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27651 echo "$as_me: creating $ac_file" >&6;}
27652
27653   # First look for the input files in the build tree, otherwise in the
27654   # src tree.
27655   ac_file_inputs=`IFS=:
27656     for f in $ac_file_in; do
27657       case $f in
27658       -) echo $tmp/stdin ;;
27659       [\\/$]*)
27660          # Absolute (can't be DOS-style, as IFS=:)
27661          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27662 echo "$as_me: error: cannot find input file: $f" >&2;}
27663    { (exit 1); exit 1; }; }
27664          # Do quote $f, to prevent DOS paths from being IFS'd.
27665          echo "$f";;
27666       *) # Relative
27667          if test -f "$f"; then
27668            # Build tree
27669            echo "$f"
27670          elif test -f "$srcdir/$f"; then
27671            # Source tree
27672            echo "$srcdir/$f"
27673          else
27674            # /dev/null tree
27675            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27676 echo "$as_me: error: cannot find input file: $f" >&2;}
27677    { (exit 1); exit 1; }; }
27678          fi;;
27679       esac
27680     done` || { (exit 1); exit 1; }
27681   # Remove the trailing spaces.
27682   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27683
27684 _ACEOF
27685
27686 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27687 # `conftest.undefs', that substitutes the proper values into
27688 # config.h.in to produce config.h.  The first handles `#define'
27689 # templates, and the second `#undef' templates.
27690 # And first: Protect against being on the right side of a sed subst in
27691 # config.status.  Protect against being in an unquoted here document
27692 # in config.status.
27693 rm -f conftest.defines conftest.undefs
27694 # Using a here document instead of a string reduces the quoting nightmare.
27695 # Putting comments in sed scripts is not portable.
27696 #
27697 # `end' is used to avoid that the second main sed command (meant for
27698 # 0-ary CPP macros) applies to n-ary macro definitions.
27699 # See the Autoconf documentation for `clear'.
27700 cat >confdef2sed.sed <<\_ACEOF
27701 s/[\\&,]/\\&/g
27702 s,[\\$`],\\&,g
27703 t clear
27704 : clear
27705 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27706 t end
27707 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27708 : end
27709 _ACEOF
27710 # If some macros were called several times there might be several times
27711 # the same #defines, which is useless.  Nevertheless, we may not want to
27712 # sort them, since we want the *last* AC-DEFINE to be honored.
27713 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27714 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27715 rm -f confdef2sed.sed
27716
27717 # This sed command replaces #undef with comments.  This is necessary, for
27718 # example, in the case of _POSIX_SOURCE, which is predefined and required
27719 # on some systems where configure will not decide to define it.
27720 cat >>conftest.undefs <<\_ACEOF
27721 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27722 _ACEOF
27723
27724 # Break up conftest.defines because some shells have a limit on the size
27725 # of here documents, and old seds have small limits too (100 cmds).
27726 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27727 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27728 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27729 echo '  :' >>$CONFIG_STATUS
27730 rm -f conftest.tail
27731 while grep . conftest.defines >/dev/null
27732 do
27733   # Write a limited-size here document to $tmp/defines.sed.
27734   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27735   # Speed up: don't consider the non `#define' lines.
27736   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27737   # Work around the forget-to-reset-the-flag bug.
27738   echo 't clr' >>$CONFIG_STATUS
27739   echo ': clr' >>$CONFIG_STATUS
27740   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27741   echo 'CEOF
27742   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27743   rm -f $tmp/in
27744   mv $tmp/out $tmp/in
27745 ' >>$CONFIG_STATUS
27746   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27747   rm -f conftest.defines
27748   mv conftest.tail conftest.defines
27749 done
27750 rm -f conftest.defines
27751 echo '  fi # grep' >>$CONFIG_STATUS
27752 echo >>$CONFIG_STATUS
27753
27754 # Break up conftest.undefs because some shells have a limit on the size
27755 # of here documents, and old seds have small limits too (100 cmds).
27756 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27757 rm -f conftest.tail
27758 while grep . conftest.undefs >/dev/null
27759 do
27760   # Write a limited-size here document to $tmp/undefs.sed.
27761   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27762   # Speed up: don't consider the non `#undef'
27763   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27764   # Work around the forget-to-reset-the-flag bug.
27765   echo 't clr' >>$CONFIG_STATUS
27766   echo ': clr' >>$CONFIG_STATUS
27767   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27768   echo 'CEOF
27769   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27770   rm -f $tmp/in
27771   mv $tmp/out $tmp/in
27772 ' >>$CONFIG_STATUS
27773   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27774   rm -f conftest.undefs
27775   mv conftest.tail conftest.undefs
27776 done
27777 rm -f conftest.undefs
27778
27779 cat >>$CONFIG_STATUS <<\_ACEOF
27780   # Let's still pretend it is `configure' which instantiates (i.e., don't
27781   # use $as_me), people would be surprised to read:
27782   #    /* config.h.  Generated by config.status.  */
27783   if test x"$ac_file" = x-; then
27784     echo "/* Generated by configure.  */" >$tmp/config.h
27785   else
27786     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27787   fi
27788   cat $tmp/in >>$tmp/config.h
27789   rm -f $tmp/in
27790   if test x"$ac_file" != x-; then
27791     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27792       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27793 echo "$as_me: $ac_file is unchanged" >&6;}
27794     else
27795       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27796 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27797          X"$ac_file" : 'X\(//\)[^/]' \| \
27798          X"$ac_file" : 'X\(//\)$' \| \
27799          X"$ac_file" : 'X\(/\)' \| \
27800          .     : '\(.\)' 2>/dev/null ||
27801 echo X"$ac_file" |
27802     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27803           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27804           /^X\(\/\/\)$/{ s//\1/; q; }
27805           /^X\(\/\).*/{ s//\1/; q; }
27806           s/.*/./; q'`
27807       { if $as_mkdir_p; then
27808     mkdir -p "$ac_dir"
27809   else
27810     as_dir="$ac_dir"
27811     as_dirs=
27812     while test ! -d "$as_dir"; do
27813       as_dirs="$as_dir $as_dirs"
27814       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27816          X"$as_dir" : 'X\(//\)[^/]' \| \
27817          X"$as_dir" : 'X\(//\)$' \| \
27818          X"$as_dir" : 'X\(/\)' \| \
27819          .     : '\(.\)' 2>/dev/null ||
27820 echo X"$as_dir" |
27821     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27822           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27823           /^X\(\/\/\)$/{ s//\1/; q; }
27824           /^X\(\/\).*/{ s//\1/; q; }
27825           s/.*/./; q'`
27826     done
27827     test ! -n "$as_dirs" || mkdir $as_dirs
27828   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27829 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27830    { (exit 1); exit 1; }; }; }
27831
27832       rm -f $ac_file
27833       mv $tmp/config.h $ac_file
27834     fi
27835   else
27836     cat $tmp/config.h
27837     rm -f $tmp/config.h
27838   fi
27839 done
27840 _ACEOF
27841 cat >>$CONFIG_STATUS <<\_ACEOF
27842
27843 #
27844 # CONFIG_COMMANDS section.
27845 #
27846 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27847   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27848   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27849   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27850 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27851          X"$ac_dest" : 'X\(//\)[^/]' \| \
27852          X"$ac_dest" : 'X\(//\)$' \| \
27853          X"$ac_dest" : 'X\(/\)' \| \
27854          .     : '\(.\)' 2>/dev/null ||
27855 echo X"$ac_dest" |
27856     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27857           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27858           /^X\(\/\/\)$/{ s//\1/; q; }
27859           /^X\(\/\).*/{ s//\1/; q; }
27860           s/.*/./; q'`
27861   { if $as_mkdir_p; then
27862     mkdir -p "$ac_dir"
27863   else
27864     as_dir="$ac_dir"
27865     as_dirs=
27866     while test ! -d "$as_dir"; do
27867       as_dirs="$as_dir $as_dirs"
27868       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27870          X"$as_dir" : 'X\(//\)[^/]' \| \
27871          X"$as_dir" : 'X\(//\)$' \| \
27872          X"$as_dir" : 'X\(/\)' \| \
27873          .     : '\(.\)' 2>/dev/null ||
27874 echo X"$as_dir" |
27875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27877           /^X\(\/\/\)$/{ s//\1/; q; }
27878           /^X\(\/\).*/{ s//\1/; q; }
27879           s/.*/./; q'`
27880     done
27881     test ! -n "$as_dirs" || mkdir $as_dirs
27882   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27883 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27884    { (exit 1); exit 1; }; }; }
27885
27886   ac_builddir=.
27887
27888 if test "$ac_dir" != .; then
27889   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27890   # A "../" for each directory in $ac_dir_suffix.
27891   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27892 else
27893   ac_dir_suffix= ac_top_builddir=
27894 fi
27895
27896 case $srcdir in
27897   .)  # No --srcdir option.  We are building in place.
27898     ac_srcdir=.
27899     if test -z "$ac_top_builddir"; then
27900        ac_top_srcdir=.
27901     else
27902        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27903     fi ;;
27904   [\\/]* | ?:[\\/]* )  # Absolute path.
27905     ac_srcdir=$srcdir$ac_dir_suffix;
27906     ac_top_srcdir=$srcdir ;;
27907   *) # Relative path.
27908     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27909     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27910 esac
27911
27912 # Do not use `cd foo && pwd` to compute absolute paths, because
27913 # the directories may not exist.
27914 case `pwd` in
27915 .) ac_abs_builddir="$ac_dir";;
27916 *)
27917   case "$ac_dir" in
27918   .) ac_abs_builddir=`pwd`;;
27919   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27920   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27921   esac;;
27922 esac
27923 case $ac_abs_builddir in
27924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27925 *)
27926   case ${ac_top_builddir}. in
27927   .) ac_abs_top_builddir=$ac_abs_builddir;;
27928   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27929   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27930   esac;;
27931 esac
27932 case $ac_abs_builddir in
27933 .) ac_abs_srcdir=$ac_srcdir;;
27934 *)
27935   case $ac_srcdir in
27936   .) ac_abs_srcdir=$ac_abs_builddir;;
27937   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27938   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27939   esac;;
27940 esac
27941 case $ac_abs_builddir in
27942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27943 *)
27944   case $ac_top_srcdir in
27945   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27946   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27947   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27948   esac;;
27949 esac
27950
27951
27952   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27953 echo "$as_me: executing $ac_dest commands" >&6;}
27954   case $ac_dest in
27955     default-1 )
27956     for ac_file in $CONFIG_FILES; do
27957       # Support "outfile[:infile[:infile...]]"
27958       case "$ac_file" in
27959         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
27960       esac
27961       # PO directories have a Makefile.in generated from Makefile.in.in.
27962       case "$ac_file" in */Makefile.in)
27963         # Adjust a relative srcdir.
27964         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
27965         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
27966         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
27967         # In autoconf-2.13 it is called $ac_given_srcdir.
27968         # In autoconf-2.50 it is called $srcdir.
27969         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
27970         case "$ac_given_srcdir" in
27971           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
27972           /*) top_srcdir="$ac_given_srcdir" ;;
27973           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
27974         esac
27975         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
27976           rm -f "$ac_dir/POTFILES"
27977           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
27978           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
27979           POMAKEFILEDEPS="POTFILES.in"
27980           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
27981           # on $ac_dir but don't depend on user-specified configuration
27982           # parameters.
27983           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
27984             # The LINGUAS file contains the set of available languages.
27985             if test -n "$OBSOLETE_ALL_LINGUAS"; then
27986               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
27987             fi
27988             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
27989             # Hide the ALL_LINGUAS assigment from automake.
27990             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
27991             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
27992           else
27993             # The set of available languages was given in configure.in.
27994             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
27995           fi
27996           case "$ac_given_srcdir" in
27997             .) srcdirpre= ;;
27998             *) srcdirpre='$(srcdir)/' ;;
27999           esac
28000           POFILES=
28001           GMOFILES=
28002           UPDATEPOFILES=
28003           DUMMYPOFILES=
28004           for lang in $ALL_LINGUAS; do
28005             POFILES="$POFILES $srcdirpre$lang.po"
28006             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28007             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28008             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28009           done
28010           # CATALOGS depends on both $ac_dir and the user's LINGUAS
28011           # environment variable.
28012           INST_LINGUAS=
28013           if test -n "$ALL_LINGUAS"; then
28014             for presentlang in $ALL_LINGUAS; do
28015               useit=no
28016               if test "%UNSET%" != "$LINGUAS"; then
28017                 desiredlanguages="$LINGUAS"
28018               else
28019                 desiredlanguages="$ALL_LINGUAS"
28020               fi
28021               for desiredlang in $desiredlanguages; do
28022                 # Use the presentlang catalog if desiredlang is
28023                 #   a. equal to presentlang, or
28024                 #   b. a variant of presentlang (because in this case,
28025                 #      presentlang can be used as a fallback for messages
28026                 #      which are not translated in the desiredlang catalog).
28027                 case "$desiredlang" in
28028                   "$presentlang"*) useit=yes;;
28029                 esac
28030               done
28031               if test $useit = yes; then
28032                 INST_LINGUAS="$INST_LINGUAS $presentlang"
28033               fi
28034             done
28035           fi
28036           CATALOGS=
28037           if test -n "$INST_LINGUAS"; then
28038             for lang in $INST_LINGUAS; do
28039               CATALOGS="$CATALOGS $lang.gmo"
28040             done
28041           fi
28042           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28043           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"
28044           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28045             if test -f "$f"; then
28046               case "$f" in
28047                 *.orig | *.bak | *~) ;;
28048                 *) cat "$f" >> "$ac_dir/Makefile" ;;
28049               esac
28050             fi
28051           done
28052         fi
28053         ;;
28054       esac
28055     done ;;
28056     default )
28057 # Makefile uses this timestamp file to record whether config.h is up to date.
28058 echo timestamp > stamp-h
28059  ;;
28060   esac
28061 done
28062 _ACEOF
28063
28064 cat >>$CONFIG_STATUS <<\_ACEOF
28065
28066 { (exit 0); exit 0; }
28067 _ACEOF
28068 chmod +x $CONFIG_STATUS
28069 ac_clean_files=$ac_clean_files_save
28070
28071
28072 # configure is writing to config.log, and then calls config.status.
28073 # config.status does its own redirection, appending to config.log.
28074 # Unfortunately, on DOS this fails, as config.log is still kept open
28075 # by configure, so config.status won't be able to write to it; its
28076 # output is simply discarded.  So we exec the FD to /dev/null,
28077 # effectively closing config.log, so it can be properly (re)opened and
28078 # appended to by config.status.  When coming back to configure, we
28079 # need to make the FD available again.
28080 if test "$no_create" != yes; then
28081   ac_cs_success=:
28082   ac_config_status_args=
28083   test "$silent" = yes &&
28084     ac_config_status_args="$ac_config_status_args --quiet"
28085   exec 5>/dev/null
28086   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28087   exec 5>>config.log
28088   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28089   # would make configure fail if this is the last instruction.
28090   $ac_cs_success || { (exit 1); exit 1; }
28091 fi