1#! /bin/sh
2# From configure.in for Readline 4.3, version 2.45, from autoconf version AC_ACVERSION.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57 for readline 4.3.
5#
6# Report bugs to <bug-readline@gnu.org>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9# Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization.  ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24  set -o posix
25fi
26
27# Support unset when possible.
28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29  as_unset=unset
30else
31  as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for 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
46do
47  if (set +x; test -n "`(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
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56  as_expr=expr
57else
58  as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62  as_basename=basename
63else
64  as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71	 X"$0" : 'X\(//\)$' \| \
72	 X"$0" : 'X\(/\)$' \| \
73	 .     : '\(.\)' 2>/dev/null ||
74echo 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.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if 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
100fi
101
102
103  as_lineno_1=103
104  as_lineno_2=104
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
113for as_dir in $PATH
114do
115  IFS=$as_save_IFS
116  test -z "$as_dir" && as_dir=.
117  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
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
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
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=142
143  as_lineno_2=143
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
155done
156;;
157  esac
158
159  # Create $as_me.lineno as a copy of $as_myself, but with 159
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 164 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
190case `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= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198  as_expr=expr
199else
200  as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if 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
214elif ln conf$$.file conf$$ 2>/dev/null; then
215  as_ln_s=ln
216else
217  as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222  as_mkdir_p=:
223else
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='readline'
271PACKAGE_TARNAME='readline'
272PACKAGE_VERSION='4.3'
273PACKAGE_STRING='readline 4.3'
274PACKAGE_BUGREPORT='bug-readline@gnu.org'
275
276ac_unique_file="readline.h"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_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 SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CROSS_COMPILING_FLAG CC_FOR_BUILD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB MAKE_SHELL WCWIDTH_OBJ SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS SHLIB_STATUS SHLIB_XLDFLAGS SHLIB_LIBSUFF SHLIB_LIBVERSION SHLIB_LIBS SHLIB_MAJOR SHLIB_MINOR STATIC_TARGET SHARED_TARGET STATIC_INSTALL_TARGET SHARED_INSTALL_TARGET BUILD_DIR LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS ARFLAGS LIBVERSION TERMCAP_LIB LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673              localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713         X"$0" : 'X\(//\)[^/]' \| \
714         X"$0" : 'X\(//\)$' \| \
715         X"$0" : 'X\(/\)' \| \
716         .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720  	  /^X\(\/\/\)$/{ s//\1/; q; }
721  	  /^X\(\/\).*/{ s//\1/; q; }
722  	  s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
775
776#
777# Report the --help message.
778#
779if test "$ac_init_help" = "long"; then
780  # Omit some internal or obsolete options to make the list less imposing.
781  # This message is too long to be a string in the A/UX 3.1 sh.
782  cat <<_ACEOF
783\`configure' configures readline 4.3 to adapt to many kinds of systems.
784
785Usage: $0 [OPTION]... [VAR=VALUE]...
786
787To assign environment variables (e.g., CC, CFLAGS...), specify them as
788VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790Defaults for the options are specified in brackets.
791
792Configuration:
793  -h, --help              display this help and exit
794      --help=short        display options specific to this package
795      --help=recursive    display the short help of all the included packages
796  -V, --version           display version information and exit
797  -q, --quiet, --silent   do not print \`checking...' messages
798      --cache-file=FILE   cache test results in FILE [disabled]
799  -C, --config-cache      alias for \`--cache-file=config.cache'
800  -n, --no-create         do not create output files
801      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803_ACEOF
804
805  cat <<_ACEOF
806Installation directories:
807  --prefix=PREFIX         install architecture-independent files in PREFIX
808                          [$ac_default_prefix]
809  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                          [PREFIX]
811
812By default, \`make install' will install all the files in
813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815for instance \`--prefix=\$HOME'.
816
817For better control, use the options below.
818
819Fine tuning of the installation directories:
820  --bindir=DIR           user executables [EPREFIX/bin]
821  --sbindir=DIR          system admin executables [EPREFIX/sbin]
822  --libexecdir=DIR       program executables [EPREFIX/libexec]
823  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827  --libdir=DIR           object code libraries [EPREFIX/lib]
828  --includedir=DIR       C header files [PREFIX/include]
829  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830  --infodir=DIR          info documentation [PREFIX/info]
831  --mandir=DIR           man documentation [PREFIX/man]
832_ACEOF
833
834  cat <<\_ACEOF
835
836System types:
837  --build=BUILD     configure for building on BUILD [guessed]
838  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839_ACEOF
840fi
841
842if test -n "$ac_init_help"; then
843  case $ac_init_help in
844     short | recursive ) echo "Configuration of readline 4.3:";;
845   esac
846  cat <<\_ACEOF
847
848Optional Features:
849  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
850  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
851  --enable-static         build static libraries [default=YES]
852
853Optional Packages:
854  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
855  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
856  --with-curses           use the curses library instead of the termcap
857                          library
858
859Some influential environment variables:
860  CC          C compiler command
861  CFLAGS      C compiler flags
862  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
863              nonstandard directory <lib dir>
864  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
865              headers in a nonstandard directory <include dir>
866  CPP         C preprocessor
867
868Use these variables to override the choices made by `configure' or to help
869it to find libraries and programs with nonstandard names/locations.
870
871Report bugs to <bug-readline@gnu.org>.
872_ACEOF
873fi
874
875if test "$ac_init_help" = "recursive"; then
876  # If there are subdirs, report their specific --help.
877  ac_popdir=`pwd`
878  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879    test -d $ac_dir || continue
880    ac_builddir=.
881
882if test "$ac_dir" != .; then
883  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884  # A "../" for each directory in $ac_dir_suffix.
885  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886else
887  ac_dir_suffix= ac_top_builddir=
888fi
889
890case $srcdir in
891  .)  # No --srcdir option.  We are building in place.
892    ac_srcdir=.
893    if test -z "$ac_top_builddir"; then
894       ac_top_srcdir=.
895    else
896       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897    fi ;;
898  [\\/]* | ?:[\\/]* )  # Absolute path.
899    ac_srcdir=$srcdir$ac_dir_suffix;
900    ac_top_srcdir=$srcdir ;;
901  *) # Relative path.
902    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903    ac_top_srcdir=$ac_top_builddir$srcdir ;;
904esac
905# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906# absolute.
907ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
911
912    cd $ac_dir
913    # Check for guested configure; otherwise get Cygnus style configure.
914    if test -f $ac_srcdir/configure.gnu; then
915      echo
916      $SHELL $ac_srcdir/configure.gnu  --help=recursive
917    elif test -f $ac_srcdir/configure; then
918      echo
919      $SHELL $ac_srcdir/configure  --help=recursive
920    elif test -f $ac_srcdir/configure.ac ||
921           test -f $ac_srcdir/configure.in; then
922      echo
923      $ac_configure --help
924    else
925      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
926    fi
927    cd $ac_popdir
928  done
929fi
930
931test -n "$ac_init_help" && exit 0
932if $ac_init_version; then
933  cat <<\_ACEOF
934readline configure 4.3
935generated by GNU Autoconf 2.57
936
937Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
938Free Software Foundation, Inc.
939This configure script is free software; the Free Software Foundation
940gives unlimited permission to copy, distribute and modify it.
941_ACEOF
942  exit 0
943fi
944exec 5>config.log
945cat >&5 <<_ACEOF
946This file contains any messages produced by compilers while
947running configure, to aid debugging if configure makes a mistake.
948
949It was created by readline $as_me 4.3, which was
950generated by GNU Autoconf 2.57.  Invocation command line was
951
952  $ $0 $@
953
954_ACEOF
955{
956cat <<_ASUNAME
957## --------- ##
958## Platform. ##
959## --------- ##
960
961hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962uname -m = `(uname -m) 2>/dev/null || echo unknown`
963uname -r = `(uname -r) 2>/dev/null || echo unknown`
964uname -s = `(uname -s) 2>/dev/null || echo unknown`
965uname -v = `(uname -v) 2>/dev/null || echo unknown`
966
967/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
969
970/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
971/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
972/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
974/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
975/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
976/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
977
978_ASUNAME
979
980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981for as_dir in $PATH
982do
983  IFS=$as_save_IFS
984  test -z "$as_dir" && as_dir=.
985  echo "PATH: $as_dir"
986done
987
988} >&5
989
990cat >&5 <<_ACEOF
991
992
993## ----------- ##
994## Core tests. ##
995## ----------- ##
996
997_ACEOF
998
999
1000# Keep a trace of the command line.
1001# Strip out --no-create and --no-recursion so they do not pile up.
1002# Strip out --silent because we don't want to record it for future runs.
1003# Also quote any args containing shell meta-characters.
1004# Make two passes to allow for proper duplicate-argument suppression.
1005ac_configure_args=
1006ac_configure_args0=
1007ac_configure_args1=
1008ac_sep=
1009ac_must_keep_next=false
1010for ac_pass in 1 2
1011do
1012  for ac_arg
1013  do
1014    case $ac_arg in
1015    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1016    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017    | -silent | --silent | --silen | --sile | --sil)
1018      continue ;;
1019    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021    esac
1022    case $ac_pass in
1023    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1024    2)
1025      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1026      if test $ac_must_keep_next = true; then
1027        ac_must_keep_next=false # Got value, back to normal.
1028      else
1029        case $ac_arg in
1030          *=* | --config-cache | -C | -disable-* | --disable-* \
1031          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1032          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1033          | -with-* | --with-* | -without-* | --without-* | --x)
1034            case "$ac_configure_args0 " in
1035              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1036            esac
1037            ;;
1038          -* ) ac_must_keep_next=true ;;
1039        esac
1040      fi
1041      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042      # Get rid of the leading space.
1043      ac_sep=" "
1044      ;;
1045    esac
1046  done
1047done
1048$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1049$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1050
1051# When interrupted or exit'd, cleanup temporary files, and complete
1052# config.log.  We remove comments because anyway the quotes in there
1053# would cause problems or look ugly.
1054# WARNING: Be sure not to use single quotes in there, as some shells,
1055# such as our DU 5.0 friend, will then `close' the trap.
1056trap 'exit_status=$?
1057  # Save into config.log some information that might help in debugging.
1058  {
1059    echo
1060
1061    cat <<\_ASBOX
1062## ---------------- ##
1063## Cache variables. ##
1064## ---------------- ##
1065_ASBOX
1066    echo
1067    # The following way of writing the cache mishandles newlines in values,
1068{
1069  (set) 2>&1 |
1070    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071    *ac_space=\ *)
1072      sed -n \
1073        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075      ;;
1076    *)
1077      sed -n \
1078        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1079      ;;
1080    esac;
1081}
1082    echo
1083
1084    cat <<\_ASBOX
1085## ----------------- ##
1086## Output variables. ##
1087## ----------------- ##
1088_ASBOX
1089    echo
1090    for ac_var in $ac_subst_vars
1091    do
1092      eval ac_val=$`echo $ac_var`
1093      echo "$ac_var='"'"'$ac_val'"'"'"
1094    done | sort
1095    echo
1096
1097    if test -n "$ac_subst_files"; then
1098      cat <<\_ASBOX
1099## ------------- ##
1100## Output files. ##
1101## ------------- ##
1102_ASBOX
1103      echo
1104      for ac_var in $ac_subst_files
1105      do
1106	eval ac_val=$`echo $ac_var`
1107        echo "$ac_var='"'"'$ac_val'"'"'"
1108      done | sort
1109      echo
1110    fi
1111
1112    if test -s confdefs.h; then
1113      cat <<\_ASBOX
1114## ----------- ##
1115## confdefs.h. ##
1116## ----------- ##
1117_ASBOX
1118      echo
1119      sed "/^$/d" confdefs.h | sort
1120      echo
1121    fi
1122    test "$ac_signal" != 0 &&
1123      echo "$as_me: caught signal $ac_signal"
1124    echo "$as_me: exit $exit_status"
1125  } >&5
1126  rm -f core core.* *.core &&
1127  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128    exit $exit_status
1129     ' 0
1130for ac_signal in 1 2 13 15; do
1131  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132done
1133ac_signal=0
1134
1135# confdefs.h avoids OS command line length limits that DEFS can exceed.
1136rm -rf conftest* confdefs.h
1137# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138echo >confdefs.h
1139
1140# Predefined preprocessor variables.
1141
1142cat >>confdefs.h <<_ACEOF
1143#define PACKAGE_NAME "$PACKAGE_NAME"
1144_ACEOF
1145
1146
1147cat >>confdefs.h <<_ACEOF
1148#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149_ACEOF
1150
1151
1152cat >>confdefs.h <<_ACEOF
1153#define PACKAGE_VERSION "$PACKAGE_VERSION"
1154_ACEOF
1155
1156
1157cat >>confdefs.h <<_ACEOF
1158#define PACKAGE_STRING "$PACKAGE_STRING"
1159_ACEOF
1160
1161
1162cat >>confdefs.h <<_ACEOF
1163#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164_ACEOF
1165
1166
1167# Let the site file select an alternate cache file if it wants to.
1168# Prefer explicitly selected file to automatically selected ones.
1169if test -z "$CONFIG_SITE"; then
1170  if test "x$prefix" != xNONE; then
1171    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1172  else
1173    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1174  fi
1175fi
1176for ac_site_file in $CONFIG_SITE; do
1177  if test -r "$ac_site_file"; then
1178    { echo "$as_me:1178: loading site script $ac_site_file" >&5
1179echo "$as_me: loading site script $ac_site_file" >&6;}
1180    sed 's/^/| /' "$ac_site_file" >&5
1181    . "$ac_site_file"
1182  fi
1183done
1184
1185if test -r "$cache_file"; then
1186  # Some versions of bash will fail to source /dev/null (special
1187  # files actually), so we avoid doing that.
1188  if test -f "$cache_file"; then
1189    { echo "$as_me:1189: loading cache $cache_file" >&5
1190echo "$as_me: loading cache $cache_file" >&6;}
1191    case $cache_file in
1192      [\\/]* | ?:[\\/]* ) . $cache_file;;
1193      *)                      . ./$cache_file;;
1194    esac
1195  fi
1196else
1197  { echo "$as_me:1197: creating cache $cache_file" >&5
1198echo "$as_me: creating cache $cache_file" >&6;}
1199  >$cache_file
1200fi
1201
1202# Check that the precious variables saved in the cache have kept the same
1203# value.
1204ac_cache_corrupted=false
1205for ac_var in `(set) 2>&1 |
1206               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208  eval ac_new_set=\$ac_env_${ac_var}_set
1209  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210  eval ac_new_val="\$ac_env_${ac_var}_value"
1211  case $ac_old_set,$ac_new_set in
1212    set,)
1213      { echo "$as_me:1213: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215      ac_cache_corrupted=: ;;
1216    ,set)
1217      { echo "$as_me:1217: error: \`$ac_var' was not set in the previous run" >&5
1218echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219      ac_cache_corrupted=: ;;
1220    ,);;
1221    *)
1222      if test "x$ac_old_val" != "x$ac_new_val"; then
1223        { echo "$as_me:1223: error: \`$ac_var' has changed since the previous run:" >&5
1224echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225        { echo "$as_me:1225:   former value:  $ac_old_val" >&5
1226echo "$as_me:   former value:  $ac_old_val" >&2;}
1227        { echo "$as_me:1227:   current value: $ac_new_val" >&5
1228echo "$as_me:   current value: $ac_new_val" >&2;}
1229        ac_cache_corrupted=:
1230      fi;;
1231  esac
1232  # Pass precious variables to config.status.
1233  if test "$ac_new_set" = set; then
1234    case $ac_new_val in
1235    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237    *) ac_arg=$ac_var=$ac_new_val ;;
1238    esac
1239    case " $ac_configure_args " in
1240      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1241      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1242    esac
1243  fi
1244done
1245if $ac_cache_corrupted; then
1246  { echo "$as_me:1246: error: changes in the environment can compromise the build" >&5
1247echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248  { { echo "$as_me:1248: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250   { (exit 1); exit 1; }; }
1251fi
1252
1253ac_ext=c
1254ac_cpp='$CPP $CPPFLAGS'
1255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257ac_compiler_gnu=$ac_cv_c_compiler_gnu
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289          ac_config_headers="$ac_config_headers config.h"
1290
1291
1292LIBVERSION=4.3
1293
1294ac_aux_dir=
1295for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1296  if test -f $ac_dir/install-sh; then
1297    ac_aux_dir=$ac_dir
1298    ac_install_sh="$ac_aux_dir/install-sh -c"
1299    break
1300  elif test -f $ac_dir/install.sh; then
1301    ac_aux_dir=$ac_dir
1302    ac_install_sh="$ac_aux_dir/install.sh -c"
1303    break
1304  elif test -f $ac_dir/shtool; then
1305    ac_aux_dir=$ac_dir
1306    ac_install_sh="$ac_aux_dir/shtool install -c"
1307    break
1308  fi
1309done
1310if test -z "$ac_aux_dir"; then
1311  { { echo "$as_me:1311: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1312echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1313   { (exit 1); exit 1; }; }
1314fi
1315ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1316ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1317ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1318
1319# Make sure we can run config.sub.
1320$ac_config_sub sun4 >/dev/null 2>&1 ||
1321  { { echo "$as_me:1321: error: cannot run $ac_config_sub" >&5
1322echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1323   { (exit 1); exit 1; }; }
1324
1325echo "$as_me:1325: checking build system type" >&5
1326echo $ECHO_N "checking build system type... $ECHO_C" >&6
1327if test "${ac_cv_build+set}" = set; then
1328  echo $ECHO_N "(cached) $ECHO_C" >&6
1329else
1330  ac_cv_build_alias=$build_alias
1331test -z "$ac_cv_build_alias" &&
1332  ac_cv_build_alias=`$ac_config_guess`
1333test -z "$ac_cv_build_alias" &&
1334  { { echo "$as_me:1334: error: cannot guess build type; you must specify one" >&5
1335echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1336   { (exit 1); exit 1; }; }
1337ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1338  { { echo "$as_me:1338: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1339echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1340   { (exit 1); exit 1; }; }
1341
1342fi
1343echo "$as_me:1343: result: $ac_cv_build" >&5
1344echo "${ECHO_T}$ac_cv_build" >&6
1345build=$ac_cv_build
1346build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1347build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1348build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1349
1350
1351echo "$as_me:1351: checking host system type" >&5
1352echo $ECHO_N "checking host system type... $ECHO_C" >&6
1353if test "${ac_cv_host+set}" = set; then
1354  echo $ECHO_N "(cached) $ECHO_C" >&6
1355else
1356  ac_cv_host_alias=$host_alias
1357test -z "$ac_cv_host_alias" &&
1358  ac_cv_host_alias=$ac_cv_build_alias
1359ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1360  { { echo "$as_me:1360: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1361echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1362   { (exit 1); exit 1; }; }
1363
1364fi
1365echo "$as_me:1365: result: $ac_cv_host" >&5
1366echo "${ECHO_T}$ac_cv_host" >&6
1367host=$ac_cv_host
1368host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1369host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1370host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1371
1372
1373
1374opt_curses=no
1375
1376
1377# Check whether --with-curses or --without-curses was given.
1378if test "${with_curses+set}" = set; then
1379  withval="$with_curses"
1380  opt_curses=$withval
1381fi;
1382
1383if test "$opt_curses" = "yes"; then
1384	prefer_curses=yes
1385fi
1386
1387opt_static_libs=yes
1388opt_shared_libs=no
1389
1390# Check whether --enable-static or --disable-static was given.
1391if test "${enable_static+set}" = set; then
1392  enableval="$enable_static"
1393  opt_static_libs=$enableval
1394fi;
1395
1396echo ""
1397echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
1398echo ""
1399
1400# We want these before the checks, so the checks can modify their values.
1401test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
1402
1403echo "$as_me:1403: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1404echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1405set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1406if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1407  echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409  cat >conftest.make <<\_ACEOF
1410all:
1411	@echo 'ac_maketemp="$(MAKE)"'
1412_ACEOF
1413# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1414eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1415if test -n "$ac_maketemp"; then
1416  eval ac_cv_prog_make_${ac_make}_set=yes
1417else
1418  eval ac_cv_prog_make_${ac_make}_set=no
1419fi
1420rm -f conftest.make
1421fi
1422if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1423  echo "$as_me:1423: result: yes" >&5
1424echo "${ECHO_T}yes" >&6
1425  SET_MAKE=
1426else
1427  echo "$as_me:1427: result: no" >&5
1428echo "${ECHO_T}no" >&6
1429  SET_MAKE="MAKE=${MAKE-make}"
1430fi
1431
1432ac_ext=c
1433ac_cpp='$CPP $CPPFLAGS'
1434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437if test -n "$ac_tool_prefix"; then
1438  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439set dummy ${ac_tool_prefix}gcc; ac_word=$2
1440echo "$as_me:1440: checking for $ac_word" >&5
1441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442if test "${ac_cv_prog_CC+set}" = set; then
1443  echo $ECHO_N "(cached) $ECHO_C" >&6
1444else
1445  if test -n "$CC"; then
1446  ac_cv_prog_CC="$CC" # Let the user override the test.
1447else
1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449for as_dir in $PATH
1450do
1451  IFS=$as_save_IFS
1452  test -z "$as_dir" && as_dir=.
1453  for ac_exec_ext in '' $ac_executable_extensions; do
1454  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456    echo "$as_me:1456: found $as_dir/$ac_word$ac_exec_ext" >&5
1457    break 2
1458  fi
1459done
1460done
1461
1462fi
1463fi
1464CC=$ac_cv_prog_CC
1465if test -n "$CC"; then
1466  echo "$as_me:1466: result: $CC" >&5
1467echo "${ECHO_T}$CC" >&6
1468else
1469  echo "$as_me:1469: result: no" >&5
1470echo "${ECHO_T}no" >&6
1471fi
1472
1473fi
1474if test -z "$ac_cv_prog_CC"; then
1475  ac_ct_CC=$CC
1476  # Extract the first word of "gcc", so it can be a program name with args.
1477set dummy gcc; ac_word=$2
1478echo "$as_me:1478: checking for $ac_word" >&5
1479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481  echo $ECHO_N "(cached) $ECHO_C" >&6
1482else
1483  if test -n "$ac_ct_CC"; then
1484  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485else
1486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487for as_dir in $PATH
1488do
1489  IFS=$as_save_IFS
1490  test -z "$as_dir" && as_dir=.
1491  for ac_exec_ext in '' $ac_executable_extensions; do
1492  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493    ac_cv_prog_ac_ct_CC="gcc"
1494    echo "$as_me:1494: found $as_dir/$ac_word$ac_exec_ext" >&5
1495    break 2
1496  fi
1497done
1498done
1499
1500fi
1501fi
1502ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503if test -n "$ac_ct_CC"; then
1504  echo "$as_me:1504: result: $ac_ct_CC" >&5
1505echo "${ECHO_T}$ac_ct_CC" >&6
1506else
1507  echo "$as_me:1507: result: no" >&5
1508echo "${ECHO_T}no" >&6
1509fi
1510
1511  CC=$ac_ct_CC
1512else
1513  CC="$ac_cv_prog_CC"
1514fi
1515
1516if test -z "$CC"; then
1517  if test -n "$ac_tool_prefix"; then
1518  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519set dummy ${ac_tool_prefix}cc; ac_word=$2
1520echo "$as_me:1520: checking for $ac_word" >&5
1521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522if test "${ac_cv_prog_CC+set}" = set; then
1523  echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525  if test -n "$CC"; then
1526  ac_cv_prog_CC="$CC" # Let the user override the test.
1527else
1528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529for as_dir in $PATH
1530do
1531  IFS=$as_save_IFS
1532  test -z "$as_dir" && as_dir=.
1533  for ac_exec_ext in '' $ac_executable_extensions; do
1534  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535    ac_cv_prog_CC="${ac_tool_prefix}cc"
1536    echo "$as_me:1536: found $as_dir/$ac_word$ac_exec_ext" >&5
1537    break 2
1538  fi
1539done
1540done
1541
1542fi
1543fi
1544CC=$ac_cv_prog_CC
1545if test -n "$CC"; then
1546  echo "$as_me:1546: result: $CC" >&5
1547echo "${ECHO_T}$CC" >&6
1548else
1549  echo "$as_me:1549: result: no" >&5
1550echo "${ECHO_T}no" >&6
1551fi
1552
1553fi
1554if test -z "$ac_cv_prog_CC"; then
1555  ac_ct_CC=$CC
1556  # Extract the first word of "cc", so it can be a program name with args.
1557set dummy cc; ac_word=$2
1558echo "$as_me:1558: checking for $ac_word" >&5
1559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561  echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563  if test -n "$ac_ct_CC"; then
1564  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565else
1566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569  IFS=$as_save_IFS
1570  test -z "$as_dir" && as_dir=.
1571  for ac_exec_ext in '' $ac_executable_extensions; do
1572  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573    ac_cv_prog_ac_ct_CC="cc"
1574    echo "$as_me:1574: found $as_dir/$ac_word$ac_exec_ext" >&5
1575    break 2
1576  fi
1577done
1578done
1579
1580fi
1581fi
1582ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583if test -n "$ac_ct_CC"; then
1584  echo "$as_me:1584: result: $ac_ct_CC" >&5
1585echo "${ECHO_T}$ac_ct_CC" >&6
1586else
1587  echo "$as_me:1587: result: no" >&5
1588echo "${ECHO_T}no" >&6
1589fi
1590
1591  CC=$ac_ct_CC
1592else
1593  CC="$ac_cv_prog_CC"
1594fi
1595
1596fi
1597if test -z "$CC"; then
1598  # Extract the first word of "cc", so it can be a program name with args.
1599set dummy cc; ac_word=$2
1600echo "$as_me:1600: checking for $ac_word" >&5
1601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602if test "${ac_cv_prog_CC+set}" = set; then
1603  echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605  if test -n "$CC"; then
1606  ac_cv_prog_CC="$CC" # Let the user override the test.
1607else
1608  ac_prog_rejected=no
1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610for as_dir in $PATH
1611do
1612  IFS=$as_save_IFS
1613  test -z "$as_dir" && as_dir=.
1614  for ac_exec_ext in '' $ac_executable_extensions; do
1615  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617       ac_prog_rejected=yes
1618       continue
1619     fi
1620    ac_cv_prog_CC="cc"
1621    echo "$as_me:1621: found $as_dir/$ac_word$ac_exec_ext" >&5
1622    break 2
1623  fi
1624done
1625done
1626
1627if test $ac_prog_rejected = yes; then
1628  # We found a bogon in the path, so make sure we never use it.
1629  set dummy $ac_cv_prog_CC
1630  shift
1631  if test $# != 0; then
1632    # We chose a different compiler from the bogus one.
1633    # However, it has the same basename, so the bogon will be chosen
1634    # first if we set CC to just the basename; use the full file name.
1635    shift
1636    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1637  fi
1638fi
1639fi
1640fi
1641CC=$ac_cv_prog_CC
1642if test -n "$CC"; then
1643  echo "$as_me:1643: result: $CC" >&5
1644echo "${ECHO_T}$CC" >&6
1645else
1646  echo "$as_me:1646: result: no" >&5
1647echo "${ECHO_T}no" >&6
1648fi
1649
1650fi
1651if test -z "$CC"; then
1652  if test -n "$ac_tool_prefix"; then
1653  for ac_prog in cl
1654  do
1655    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1657echo "$as_me:1657: checking for $ac_word" >&5
1658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659if test "${ac_cv_prog_CC+set}" = set; then
1660  echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662  if test -n "$CC"; then
1663  ac_cv_prog_CC="$CC" # Let the user override the test.
1664else
1665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666for as_dir in $PATH
1667do
1668  IFS=$as_save_IFS
1669  test -z "$as_dir" && as_dir=.
1670  for ac_exec_ext in '' $ac_executable_extensions; do
1671  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1673    echo "$as_me:1673: found $as_dir/$ac_word$ac_exec_ext" >&5
1674    break 2
1675  fi
1676done
1677done
1678
1679fi
1680fi
1681CC=$ac_cv_prog_CC
1682if test -n "$CC"; then
1683  echo "$as_me:1683: result: $CC" >&5
1684echo "${ECHO_T}$CC" >&6
1685else
1686  echo "$as_me:1686: result: no" >&5
1687echo "${ECHO_T}no" >&6
1688fi
1689
1690    test -n "$CC" && break
1691  done
1692fi
1693if test -z "$CC"; then
1694  ac_ct_CC=$CC
1695  for ac_prog in cl
1696do
1697  # Extract the first word of "$ac_prog", so it can be a program name with args.
1698set dummy $ac_prog; ac_word=$2
1699echo "$as_me:1699: checking for $ac_word" >&5
1700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702  echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704  if test -n "$ac_ct_CC"; then
1705  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706else
1707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710  IFS=$as_save_IFS
1711  test -z "$as_dir" && as_dir=.
1712  for ac_exec_ext in '' $ac_executable_extensions; do
1713  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714    ac_cv_prog_ac_ct_CC="$ac_prog"
1715    echo "$as_me:1715: found $as_dir/$ac_word$ac_exec_ext" >&5
1716    break 2
1717  fi
1718done
1719done
1720
1721fi
1722fi
1723ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724if test -n "$ac_ct_CC"; then
1725  echo "$as_me:1725: result: $ac_ct_CC" >&5
1726echo "${ECHO_T}$ac_ct_CC" >&6
1727else
1728  echo "$as_me:1728: result: no" >&5
1729echo "${ECHO_T}no" >&6
1730fi
1731
1732  test -n "$ac_ct_CC" && break
1733done
1734
1735  CC=$ac_ct_CC
1736fi
1737
1738fi
1739
1740
1741test -z "$CC" && { { echo "$as_me:1741: error: no acceptable C compiler found in \$PATH
1742See \`config.log' for more details." >&5
1743echo "$as_me: error: no acceptable C compiler found in \$PATH
1744See \`config.log' for more details." >&2;}
1745   { (exit 1); exit 1; }; }
1746
1747# Provide some information about the compiler.
1748echo "$as_me:1748:" \
1749     "checking for C compiler version" >&5
1750ac_compiler=`set X $ac_compile; echo $2`
1751{ (eval echo "$as_me:1751: \"$ac_compiler --version </dev/null >&5\"") >&5
1752  (eval $ac_compiler --version </dev/null >&5) 2>&5
1753  ac_status=$?
1754  echo "$as_me:1754: \$? = $ac_status" >&5
1755  (exit $ac_status); }
1756{ (eval echo "$as_me:1756: \"$ac_compiler -v </dev/null >&5\"") >&5
1757  (eval $ac_compiler -v </dev/null >&5) 2>&5
1758  ac_status=$?
1759  echo "$as_me:1759: \$? = $ac_status" >&5
1760  (exit $ac_status); }
1761{ (eval echo "$as_me:1761: \"$ac_compiler -V </dev/null >&5\"") >&5
1762  (eval $ac_compiler -V </dev/null >&5) 2>&5
1763  ac_status=$?
1764  echo "$as_me:1764: \$? = $ac_status" >&5
1765  (exit $ac_status); }
1766
1767cat >conftest.$ac_ext <<_ACEOF
1768#line 1768 "configure"
1769/* confdefs.h.  */
1770_ACEOF
1771cat confdefs.h >>conftest.$ac_ext
1772cat >>conftest.$ac_ext <<_ACEOF
1773/* end confdefs.h.  */
1774
1775int
1776main ()
1777{
1778
1779  ;
1780  return 0;
1781}
1782_ACEOF
1783ac_clean_files_save=$ac_clean_files
1784ac_clean_files="$ac_clean_files a.out a.exe b.out"
1785# Try to create an executable without -o first, disregard a.out.
1786# It will help us diagnose broken compilers, and finding out an intuition
1787# of exeext.
1788echo "$as_me:1788: checking for C compiler default output" >&5
1789echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1790ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791if { (eval echo "$as_me:1791: \"$ac_link_default\"") >&5
1792  (eval $ac_link_default) 2>&5
1793  ac_status=$?
1794  echo "$as_me:1794: \$? = $ac_status" >&5
1795  (exit $ac_status); }; then
1796  # Find the output, starting from the most likely.  This scheme is
1797# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798# resort.
1799
1800# Be careful to initialize this variable, since it used to be cached.
1801# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1802ac_cv_exeext=
1803# b.out is created by i960 compilers.
1804for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1805do
1806  test -f "$ac_file" || continue
1807  case $ac_file in
1808    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809        ;;
1810    conftest.$ac_ext )
1811        # This is the source file.
1812        ;;
1813    [ab].out )
1814        # We found the default executable, but exeext='' is most
1815        # certainly right.
1816        break;;
1817    *.* )
1818        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819        # FIXME: I believe we export ac_cv_exeext for Libtool,
1820        # but it would be cool to find out if it's true.  Does anybody
1821        # maintain Libtool? --akim.
1822        export ac_cv_exeext
1823        break;;
1824    * )
1825        break;;
1826  esac
1827done
1828else
1829  echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832{ { echo "$as_me:1832: error: C compiler cannot create executables
1833See \`config.log' for more details." >&5
1834echo "$as_me: error: C compiler cannot create executables
1835See \`config.log' for more details." >&2;}
1836   { (exit 77); exit 77; }; }
1837fi
1838
1839ac_exeext=$ac_cv_exeext
1840echo "$as_me:1840: result: $ac_file" >&5
1841echo "${ECHO_T}$ac_file" >&6
1842
1843# Check the compiler produces executables we can run.  If not, either
1844# the compiler is broken, or we cross compile.
1845echo "$as_me:1845: checking whether the C compiler works" >&5
1846echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1847# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848# If not cross compiling, check that we can run a simple program.
1849if test "$cross_compiling" != yes; then
1850  if { ac_try='./$ac_file'
1851  { (eval echo "$as_me:1851: \"$ac_try\"") >&5
1852  (eval $ac_try) 2>&5
1853  ac_status=$?
1854  echo "$as_me:1854: \$? = $ac_status" >&5
1855  (exit $ac_status); }; }; then
1856    cross_compiling=no
1857  else
1858    if test "$cross_compiling" = maybe; then
1859	cross_compiling=yes
1860    else
1861	{ { echo "$as_me:1861: error: cannot run C compiled programs.
1862If you meant to cross compile, use \`--host'.
1863See \`config.log' for more details." >&5
1864echo "$as_me: error: cannot run C compiled programs.
1865If you meant to cross compile, use \`--host'.
1866See \`config.log' for more details." >&2;}
1867   { (exit 1); exit 1; }; }
1868    fi
1869  fi
1870fi
1871echo "$as_me:1871: result: yes" >&5
1872echo "${ECHO_T}yes" >&6
1873
1874rm -f a.out a.exe conftest$ac_cv_exeext b.out
1875ac_clean_files=$ac_clean_files_save
1876# Check the compiler produces executables we can run.  If not, either
1877# the compiler is broken, or we cross compile.
1878echo "$as_me:1878: checking whether we are cross compiling" >&5
1879echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880echo "$as_me:1880: result: $cross_compiling" >&5
1881echo "${ECHO_T}$cross_compiling" >&6
1882
1883echo "$as_me:1883: checking for suffix of executables" >&5
1884echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885if { (eval echo "$as_me:1885: \"$ac_link\"") >&5
1886  (eval $ac_link) 2>&5
1887  ac_status=$?
1888  echo "$as_me:1888: \$? = $ac_status" >&5
1889  (exit $ac_status); }; then
1890  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1892# work properly (i.e., refer to `conftest.exe'), while it won't with
1893# `rm'.
1894for ac_file in conftest.exe conftest conftest.*; do
1895  test -f "$ac_file" || continue
1896  case $ac_file in
1897    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1898    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899          export ac_cv_exeext
1900          break;;
1901    * ) break;;
1902  esac
1903done
1904else
1905  { { echo "$as_me:1905: error: cannot compute suffix of executables: cannot compile and link
1906See \`config.log' for more details." >&5
1907echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908See \`config.log' for more details." >&2;}
1909   { (exit 1); exit 1; }; }
1910fi
1911
1912rm -f conftest$ac_cv_exeext
1913echo "$as_me:1913: result: $ac_cv_exeext" >&5
1914echo "${ECHO_T}$ac_cv_exeext" >&6
1915
1916rm -f conftest.$ac_ext
1917EXEEXT=$ac_cv_exeext
1918ac_exeext=$EXEEXT
1919echo "$as_me:1919: checking for suffix of object files" >&5
1920echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1921if test "${ac_cv_objext+set}" = set; then
1922  echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924  cat >conftest.$ac_ext <<_ACEOF
1925#line 1925 "configure"
1926/* confdefs.h.  */
1927_ACEOF
1928cat confdefs.h >>conftest.$ac_ext
1929cat >>conftest.$ac_ext <<_ACEOF
1930/* end confdefs.h.  */
1931
1932int
1933main ()
1934{
1935
1936  ;
1937  return 0;
1938}
1939_ACEOF
1940rm -f conftest.o conftest.obj
1941if { (eval echo "$as_me:1941: \"$ac_compile\"") >&5
1942  (eval $ac_compile) 2>&5
1943  ac_status=$?
1944  echo "$as_me:1944: \$? = $ac_status" >&5
1945  (exit $ac_status); }; then
1946  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1947  case $ac_file in
1948    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1949    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1950       break;;
1951  esac
1952done
1953else
1954  echo "$as_me: failed program was:" >&5
1955sed 's/^/| /' conftest.$ac_ext >&5
1956
1957{ { echo "$as_me:1957: error: cannot compute suffix of object files: cannot compile
1958See \`config.log' for more details." >&5
1959echo "$as_me: error: cannot compute suffix of object files: cannot compile
1960See \`config.log' for more details." >&2;}
1961   { (exit 1); exit 1; }; }
1962fi
1963
1964rm -f conftest.$ac_cv_objext conftest.$ac_ext
1965fi
1966echo "$as_me:1966: result: $ac_cv_objext" >&5
1967echo "${ECHO_T}$ac_cv_objext" >&6
1968OBJEXT=$ac_cv_objext
1969ac_objext=$OBJEXT
1970echo "$as_me:1970: checking whether we are using the GNU C compiler" >&5
1971echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1972if test "${ac_cv_c_compiler_gnu+set}" = set; then
1973  echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975  cat >conftest.$ac_ext <<_ACEOF
1976#line 1976 "configure"
1977/* confdefs.h.  */
1978_ACEOF
1979cat confdefs.h >>conftest.$ac_ext
1980cat >>conftest.$ac_ext <<_ACEOF
1981/* end confdefs.h.  */
1982
1983int
1984main ()
1985{
1986#ifndef __GNUC__
1987       choke me
1988#endif
1989
1990  ;
1991  return 0;
1992}
1993_ACEOF
1994rm -f conftest.$ac_objext
1995if { (eval echo "$as_me:1995: \"$ac_compile\"") >&5
1996  (eval $ac_compile) 2>&5
1997  ac_status=$?
1998  echo "$as_me:1998: \$? = $ac_status" >&5
1999  (exit $ac_status); } &&
2000         { ac_try='test -s conftest.$ac_objext'
2001  { (eval echo "$as_me:2001: \"$ac_try\"") >&5
2002  (eval $ac_try) 2>&5
2003  ac_status=$?
2004  echo "$as_me:2004: \$? = $ac_status" >&5
2005  (exit $ac_status); }; }; then
2006  ac_compiler_gnu=yes
2007else
2008  echo "$as_me: failed program was:" >&5
2009sed 's/^/| /' conftest.$ac_ext >&5
2010
2011ac_compiler_gnu=no
2012fi
2013rm -f conftest.$ac_objext conftest.$ac_ext
2014ac_cv_c_compiler_gnu=$ac_compiler_gnu
2015
2016fi
2017echo "$as_me:2017: result: $ac_cv_c_compiler_gnu" >&5
2018echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2019GCC=`test $ac_compiler_gnu = yes && echo yes`
2020ac_test_CFLAGS=${CFLAGS+set}
2021ac_save_CFLAGS=$CFLAGS
2022CFLAGS="-g"
2023echo "$as_me:2023: checking whether $CC accepts -g" >&5
2024echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2025if test "${ac_cv_prog_cc_g+set}" = set; then
2026  echo $ECHO_N "(cached) $ECHO_C" >&6
2027else
2028  cat >conftest.$ac_ext <<_ACEOF
2029#line 2029 "configure"
2030/* confdefs.h.  */
2031_ACEOF
2032cat confdefs.h >>conftest.$ac_ext
2033cat >>conftest.$ac_ext <<_ACEOF
2034/* end confdefs.h.  */
2035
2036int
2037main ()
2038{
2039
2040  ;
2041  return 0;
2042}
2043_ACEOF
2044rm -f conftest.$ac_objext
2045if { (eval echo "$as_me:2045: \"$ac_compile\"") >&5
2046  (eval $ac_compile) 2>&5
2047  ac_status=$?
2048  echo "$as_me:2048: \$? = $ac_status" >&5
2049  (exit $ac_status); } &&
2050         { ac_try='test -s conftest.$ac_objext'
2051  { (eval echo "$as_me:2051: \"$ac_try\"") >&5
2052  (eval $ac_try) 2>&5
2053  ac_status=$?
2054  echo "$as_me:2054: \$? = $ac_status" >&5
2055  (exit $ac_status); }; }; then
2056  ac_cv_prog_cc_g=yes
2057else
2058  echo "$as_me: failed program was:" >&5
2059sed 's/^/| /' conftest.$ac_ext >&5
2060
2061ac_cv_prog_cc_g=no
2062fi
2063rm -f conftest.$ac_objext conftest.$ac_ext
2064fi
2065echo "$as_me:2065: result: $ac_cv_prog_cc_g" >&5
2066echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2067if test "$ac_test_CFLAGS" = set; then
2068  CFLAGS=$ac_save_CFLAGS
2069elif test $ac_cv_prog_cc_g = yes; then
2070  if test "$GCC" = yes; then
2071    CFLAGS="-g -O2"
2072  else
2073    CFLAGS="-g"
2074  fi
2075else
2076  if test "$GCC" = yes; then
2077    CFLAGS="-O2"
2078  else
2079    CFLAGS=
2080  fi
2081fi
2082echo "$as_me:2082: checking for $CC option to accept ANSI C" >&5
2083echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2084if test "${ac_cv_prog_cc_stdc+set}" = set; then
2085  echo $ECHO_N "(cached) $ECHO_C" >&6
2086else
2087  ac_cv_prog_cc_stdc=no
2088ac_save_CC=$CC
2089cat >conftest.$ac_ext <<_ACEOF
2090#line 2090 "configure"
2091/* confdefs.h.  */
2092_ACEOF
2093cat confdefs.h >>conftest.$ac_ext
2094cat >>conftest.$ac_ext <<_ACEOF
2095/* end confdefs.h.  */
2096#include <stdarg.h>
2097#include <stdio.h>
2098#include <sys/types.h>
2099#include <sys/stat.h>
2100/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2101struct buf { int x; };
2102FILE * (*rcsopen) (struct buf *, struct stat *, int);
2103static char *e (p, i)
2104     char **p;
2105     int i;
2106{
2107  return p[i];
2108}
2109static char *f (char * (*g) (char **, int), char **p, ...)
2110{
2111  char *s;
2112  va_list v;
2113  va_start (v,p);
2114  s = g (p, va_arg (v,int));
2115  va_end (v);
2116  return s;
2117}
2118int test (int i, double x);
2119struct s1 {int (*f) (int a);};
2120struct s2 {int (*f) (double a);};
2121int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2122int argc;
2123char **argv;
2124int
2125main ()
2126{
2127return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2128  ;
2129  return 0;
2130}
2131_ACEOF
2132# Don't try gcc -ansi; that turns off useful extensions and
2133# breaks some systems' header files.
2134# AIX			-qlanglvl=ansi
2135# Ultrix and OSF/1	-std1
2136# HP-UX 10.20 and later	-Ae
2137# HP-UX older versions	-Aa -D_HPUX_SOURCE
2138# SVR4			-Xc -D__EXTENSIONS__
2139for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2140do
2141  CC="$ac_save_CC $ac_arg"
2142  rm -f conftest.$ac_objext
2143if { (eval echo "$as_me:2143: \"$ac_compile\"") >&5
2144  (eval $ac_compile) 2>&5
2145  ac_status=$?
2146  echo "$as_me:2146: \$? = $ac_status" >&5
2147  (exit $ac_status); } &&
2148         { ac_try='test -s conftest.$ac_objext'
2149  { (eval echo "$as_me:2149: \"$ac_try\"") >&5
2150  (eval $ac_try) 2>&5
2151  ac_status=$?
2152  echo "$as_me:2152: \$? = $ac_status" >&5
2153  (exit $ac_status); }; }; then
2154  ac_cv_prog_cc_stdc=$ac_arg
2155break
2156else
2157  echo "$as_me: failed program was:" >&5
2158sed 's/^/| /' conftest.$ac_ext >&5
2159
2160fi
2161rm -f conftest.$ac_objext
2162done
2163rm -f conftest.$ac_ext conftest.$ac_objext
2164CC=$ac_save_CC
2165
2166fi
2167
2168case "x$ac_cv_prog_cc_stdc" in
2169  x|xno)
2170    echo "$as_me:2170: result: none needed" >&5
2171echo "${ECHO_T}none needed" >&6 ;;
2172  *)
2173    echo "$as_me:2173: result: $ac_cv_prog_cc_stdc" >&5
2174echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2175    CC="$CC $ac_cv_prog_cc_stdc" ;;
2176esac
2177
2178# Some people use a C++ compiler to compile C.  Since we use `exit',
2179# in C++ we need to declare it.  In case someone uses the same compiler
2180# for both compiling C and C++ we need to have the C++ compiler decide
2181# the declaration of exit, since it's the most demanding environment.
2182cat >conftest.$ac_ext <<_ACEOF
2183#ifndef __cplusplus
2184  choke me
2185#endif
2186_ACEOF
2187rm -f conftest.$ac_objext
2188if { (eval echo "$as_me:2188: \"$ac_compile\"") >&5
2189  (eval $ac_compile) 2>&5
2190  ac_status=$?
2191  echo "$as_me:2191: \$? = $ac_status" >&5
2192  (exit $ac_status); } &&
2193         { ac_try='test -s conftest.$ac_objext'
2194  { (eval echo "$as_me:2194: \"$ac_try\"") >&5
2195  (eval $ac_try) 2>&5
2196  ac_status=$?
2197  echo "$as_me:2197: \$? = $ac_status" >&5
2198  (exit $ac_status); }; }; then
2199  for ac_declaration in \
2200   ''\
2201   '#include <stdlib.h>' \
2202   'extern "C" void std::exit (int) throw (); using std::exit;' \
2203   'extern "C" void std::exit (int); using std::exit;' \
2204   'extern "C" void exit (int) throw ();' \
2205   'extern "C" void exit (int);' \
2206   'void exit (int);'
2207do
2208  cat >conftest.$ac_ext <<_ACEOF
2209#line 2209 "configure"
2210/* confdefs.h.  */
2211_ACEOF
2212cat confdefs.h >>conftest.$ac_ext
2213cat >>conftest.$ac_ext <<_ACEOF
2214/* end confdefs.h.  */
2215#include <stdlib.h>
2216$ac_declaration
2217int
2218main ()
2219{
2220exit (42);
2221  ;
2222  return 0;
2223}
2224_ACEOF
2225rm -f conftest.$ac_objext
2226if { (eval echo "$as_me:2226: \"$ac_compile\"") >&5
2227  (eval $ac_compile) 2>&5
2228  ac_status=$?
2229  echo "$as_me:2229: \$? = $ac_status" >&5
2230  (exit $ac_status); } &&
2231         { ac_try='test -s conftest.$ac_objext'
2232  { (eval echo "$as_me:2232: \"$ac_try\"") >&5
2233  (eval $ac_try) 2>&5
2234  ac_status=$?
2235  echo "$as_me:2235: \$? = $ac_status" >&5
2236  (exit $ac_status); }; }; then
2237  :
2238else
2239  echo "$as_me: failed program was:" >&5
2240sed 's/^/| /' conftest.$ac_ext >&5
2241
2242continue
2243fi
2244rm -f conftest.$ac_objext conftest.$ac_ext
2245  cat >conftest.$ac_ext <<_ACEOF
2246#line 2246 "configure"
2247/* confdefs.h.  */
2248_ACEOF
2249cat confdefs.h >>conftest.$ac_ext
2250cat >>conftest.$ac_ext <<_ACEOF
2251/* end confdefs.h.  */
2252$ac_declaration
2253int
2254main ()
2255{
2256exit (42);
2257  ;
2258  return 0;
2259}
2260_ACEOF
2261rm -f conftest.$ac_objext
2262if { (eval echo "$as_me:2262: \"$ac_compile\"") >&5
2263  (eval $ac_compile) 2>&5
2264  ac_status=$?
2265  echo "$as_me:2265: \$? = $ac_status" >&5
2266  (exit $ac_status); } &&
2267         { ac_try='test -s conftest.$ac_objext'
2268  { (eval echo "$as_me:2268: \"$ac_try\"") >&5
2269  (eval $ac_try) 2>&5
2270  ac_status=$?
2271  echo "$as_me:2271: \$? = $ac_status" >&5
2272  (exit $ac_status); }; }; then
2273  break
2274else
2275  echo "$as_me: failed program was:" >&5
2276sed 's/^/| /' conftest.$ac_ext >&5
2277
2278fi
2279rm -f conftest.$ac_objext conftest.$ac_ext
2280done
2281rm -f conftest*
2282if test -n "$ac_declaration"; then
2283  echo '#ifdef __cplusplus' >>confdefs.h
2284  echo $ac_declaration      >>confdefs.h
2285  echo '#endif'             >>confdefs.h
2286fi
2287
2288else
2289  echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292fi
2293rm -f conftest.$ac_objext conftest.$ac_ext
2294ac_ext=c
2295ac_cpp='$CPP $CPPFLAGS'
2296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299
2300
2301ac_ext=c
2302ac_cpp='$CPP $CPPFLAGS'
2303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2305ac_compiler_gnu=$ac_cv_c_compiler_gnu
2306echo "$as_me:2306: checking how to run the C preprocessor" >&5
2307echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2308# On Suns, sometimes $CPP names a directory.
2309if test -n "$CPP" && test -d "$CPP"; then
2310  CPP=
2311fi
2312if test -z "$CPP"; then
2313  if test "${ac_cv_prog_CPP+set}" = set; then
2314  echo $ECHO_N "(cached) $ECHO_C" >&6
2315else
2316      # Double quotes because CPP needs to be expanded
2317    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2318    do
2319      ac_preproc_ok=false
2320for ac_c_preproc_warn_flag in '' yes
2321do
2322  # Use a header file that comes with gcc, so configuring glibc
2323  # with a fresh cross-compiler works.
2324  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2325  # <limits.h> exists even on freestanding compilers.
2326  # On the NeXT, cc -E runs the code through the compiler's parser,
2327  # not just through cpp. "Syntax error" is here to catch this case.
2328  cat >conftest.$ac_ext <<_ACEOF
2329#line 2329 "configure"
2330/* confdefs.h.  */
2331_ACEOF
2332cat confdefs.h >>conftest.$ac_ext
2333cat >>conftest.$ac_ext <<_ACEOF
2334/* end confdefs.h.  */
2335#ifdef __STDC__
2336# include <limits.h>
2337#else
2338# include <assert.h>
2339#endif
2340                     Syntax error
2341_ACEOF
2342if { (eval echo "$as_me:2342: \"$ac_cpp conftest.$ac_ext\"") >&5
2343  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2344  ac_status=$?
2345  grep -v '^ *+' conftest.er1 >conftest.err
2346  rm -f conftest.er1
2347  cat conftest.err >&5
2348  echo "$as_me:2348: \$? = $ac_status" >&5
2349  (exit $ac_status); } >/dev/null; then
2350  if test -s conftest.err; then
2351    ac_cpp_err=$ac_c_preproc_warn_flag
2352  else
2353    ac_cpp_err=
2354  fi
2355else
2356  ac_cpp_err=yes
2357fi
2358if test -z "$ac_cpp_err"; then
2359  :
2360else
2361  echo "$as_me: failed program was:" >&5
2362sed 's/^/| /' conftest.$ac_ext >&5
2363
2364  # Broken: fails on valid input.
2365continue
2366fi
2367rm -f conftest.err conftest.$ac_ext
2368
2369  # OK, works on sane cases.  Now check whether non-existent headers
2370  # can be detected and how.
2371  cat >conftest.$ac_ext <<_ACEOF
2372#line 2372 "configure"
2373/* confdefs.h.  */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h.  */
2378#include <ac_nonexistent.h>
2379_ACEOF
2380if { (eval echo "$as_me:2380: \"$ac_cpp conftest.$ac_ext\"") >&5
2381  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2382  ac_status=$?
2383  grep -v '^ *+' conftest.er1 >conftest.err
2384  rm -f conftest.er1
2385  cat conftest.err >&5
2386  echo "$as_me:2386: \$? = $ac_status" >&5
2387  (exit $ac_status); } >/dev/null; then
2388  if test -s conftest.err; then
2389    ac_cpp_err=$ac_c_preproc_warn_flag
2390  else
2391    ac_cpp_err=
2392  fi
2393else
2394  ac_cpp_err=yes
2395fi
2396if test -z "$ac_cpp_err"; then
2397  # Broken: success on invalid input.
2398continue
2399else
2400  echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403  # Passes both tests.
2404ac_preproc_ok=:
2405break
2406fi
2407rm -f conftest.err conftest.$ac_ext
2408
2409done
2410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2411rm -f conftest.err conftest.$ac_ext
2412if $ac_preproc_ok; then
2413  break
2414fi
2415
2416    done
2417    ac_cv_prog_CPP=$CPP
2418
2419fi
2420  CPP=$ac_cv_prog_CPP
2421else
2422  ac_cv_prog_CPP=$CPP
2423fi
2424echo "$as_me:2424: result: $CPP" >&5
2425echo "${ECHO_T}$CPP" >&6
2426ac_preproc_ok=false
2427for ac_c_preproc_warn_flag in '' yes
2428do
2429  # Use a header file that comes with gcc, so configuring glibc
2430  # with a fresh cross-compiler works.
2431  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2432  # <limits.h> exists even on freestanding compilers.
2433  # On the NeXT, cc -E runs the code through the compiler's parser,
2434  # not just through cpp. "Syntax error" is here to catch this case.
2435  cat >conftest.$ac_ext <<_ACEOF
2436#line 2436 "configure"
2437/* confdefs.h.  */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h.  */
2442#ifdef __STDC__
2443# include <limits.h>
2444#else
2445# include <assert.h>
2446#endif
2447                     Syntax error
2448_ACEOF
2449if { (eval echo "$as_me:2449: \"$ac_cpp conftest.$ac_ext\"") >&5
2450  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2451  ac_status=$?
2452  grep -v '^ *+' conftest.er1 >conftest.err
2453  rm -f conftest.er1
2454  cat conftest.err >&5
2455  echo "$as_me:2455: \$? = $ac_status" >&5
2456  (exit $ac_status); } >/dev/null; then
2457  if test -s conftest.err; then
2458    ac_cpp_err=$ac_c_preproc_warn_flag
2459  else
2460    ac_cpp_err=
2461  fi
2462else
2463  ac_cpp_err=yes
2464fi
2465if test -z "$ac_cpp_err"; then
2466  :
2467else
2468  echo "$as_me: failed program was:" >&5
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
2471  # Broken: fails on valid input.
2472continue
2473fi
2474rm -f conftest.err conftest.$ac_ext
2475
2476  # OK, works on sane cases.  Now check whether non-existent headers
2477  # can be detected and how.
2478  cat >conftest.$ac_ext <<_ACEOF
2479#line 2479 "configure"
2480/* confdefs.h.  */
2481_ACEOF
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
2484/* end confdefs.h.  */
2485#include <ac_nonexistent.h>
2486_ACEOF
2487if { (eval echo "$as_me:2487: \"$ac_cpp conftest.$ac_ext\"") >&5
2488  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2489  ac_status=$?
2490  grep -v '^ *+' conftest.er1 >conftest.err
2491  rm -f conftest.er1
2492  cat conftest.err >&5
2493  echo "$as_me:2493: \$? = $ac_status" >&5
2494  (exit $ac_status); } >/dev/null; then
2495  if test -s conftest.err; then
2496    ac_cpp_err=$ac_c_preproc_warn_flag
2497  else
2498    ac_cpp_err=
2499  fi
2500else
2501  ac_cpp_err=yes
2502fi
2503if test -z "$ac_cpp_err"; then
2504  # Broken: success on invalid input.
2505continue
2506else
2507  echo "$as_me: failed program was:" >&5
2508sed 's/^/| /' conftest.$ac_ext >&5
2509
2510  # Passes both tests.
2511ac_preproc_ok=:
2512break
2513fi
2514rm -f conftest.err conftest.$ac_ext
2515
2516done
2517# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2518rm -f conftest.err conftest.$ac_ext
2519if $ac_preproc_ok; then
2520  :
2521else
2522  { { echo "$as_me:2522: error: C preprocessor \"$CPP\" fails sanity check
2523See \`config.log' for more details." >&5
2524echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2525See \`config.log' for more details." >&2;}
2526   { (exit 1); exit 1; }; }
2527fi
2528
2529ac_ext=c
2530ac_cpp='$CPP $CPPFLAGS'
2531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534
2535
2536echo "$as_me:2536: checking for egrep" >&5
2537echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2538if test "${ac_cv_prog_egrep+set}" = set; then
2539  echo $ECHO_N "(cached) $ECHO_C" >&6
2540else
2541  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2542    then ac_cv_prog_egrep='grep -E'
2543    else ac_cv_prog_egrep='egrep'
2544    fi
2545fi
2546echo "$as_me:2546: result: $ac_cv_prog_egrep" >&5
2547echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2548 EGREP=$ac_cv_prog_egrep
2549
2550
2551echo "$as_me:2551: checking for ANSI C header files" >&5
2552echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2553if test "${ac_cv_header_stdc+set}" = set; then
2554  echo $ECHO_N "(cached) $ECHO_C" >&6
2555else
2556  cat >conftest.$ac_ext <<_ACEOF
2557#line 2557 "configure"
2558/* confdefs.h.  */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h.  */
2563#include <stdlib.h>
2564#include <stdarg.h>
2565#include <string.h>
2566#include <float.h>
2567
2568int
2569main ()
2570{
2571
2572  ;
2573  return 0;
2574}
2575_ACEOF
2576rm -f conftest.$ac_objext
2577if { (eval echo "$as_me:2577: \"$ac_compile\"") >&5
2578  (eval $ac_compile) 2>&5
2579  ac_status=$?
2580  echo "$as_me:2580: \$? = $ac_status" >&5
2581  (exit $ac_status); } &&
2582         { ac_try='test -s conftest.$ac_objext'
2583  { (eval echo "$as_me:2583: \"$ac_try\"") >&5
2584  (eval $ac_try) 2>&5
2585  ac_status=$?
2586  echo "$as_me:2586: \$? = $ac_status" >&5
2587  (exit $ac_status); }; }; then
2588  ac_cv_header_stdc=yes
2589else
2590  echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593ac_cv_header_stdc=no
2594fi
2595rm -f conftest.$ac_objext conftest.$ac_ext
2596
2597if test $ac_cv_header_stdc = yes; then
2598  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2599  cat >conftest.$ac_ext <<_ACEOF
2600#line 2600 "configure"
2601/* confdefs.h.  */
2602_ACEOF
2603cat confdefs.h >>conftest.$ac_ext
2604cat >>conftest.$ac_ext <<_ACEOF
2605/* end confdefs.h.  */
2606#include <string.h>
2607
2608_ACEOF
2609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2610  $EGREP "memchr" >/dev/null 2>&1; then
2611  :
2612else
2613  ac_cv_header_stdc=no
2614fi
2615rm -f conftest*
2616
2617fi
2618
2619if test $ac_cv_header_stdc = yes; then
2620  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2621  cat >conftest.$ac_ext <<_ACEOF
2622#line 2622 "configure"
2623/* confdefs.h.  */
2624_ACEOF
2625cat confdefs.h >>conftest.$ac_ext
2626cat >>conftest.$ac_ext <<_ACEOF
2627/* end confdefs.h.  */
2628#include <stdlib.h>
2629
2630_ACEOF
2631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2632  $EGREP "free" >/dev/null 2>&1; then
2633  :
2634else
2635  ac_cv_header_stdc=no
2636fi
2637rm -f conftest*
2638
2639fi
2640
2641if test $ac_cv_header_stdc = yes; then
2642  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2643  if test "$cross_compiling" = yes; then
2644  :
2645else
2646  cat >conftest.$ac_ext <<_ACEOF
2647#line 2647 "configure"
2648/* confdefs.h.  */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h.  */
2653#include <ctype.h>
2654#if ((' ' & 0x0FF) == 0x020)
2655# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2656# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2657#else
2658# define ISLOWER(c) \
2659                   (('a' <= (c) && (c) <= 'i') \
2660                     || ('j' <= (c) && (c) <= 'r') \
2661                     || ('s' <= (c) && (c) <= 'z'))
2662# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2663#endif
2664
2665#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2666int
2667main ()
2668{
2669  int i;
2670  for (i = 0; i < 256; i++)
2671    if (XOR (islower (i), ISLOWER (i))
2672        || toupper (i) != TOUPPER (i))
2673      exit(2);
2674  exit (0);
2675}
2676_ACEOF
2677rm -f conftest$ac_exeext
2678if { (eval echo "$as_me:2678: \"$ac_link\"") >&5
2679  (eval $ac_link) 2>&5
2680  ac_status=$?
2681  echo "$as_me:2681: \$? = $ac_status" >&5
2682  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2683  { (eval echo "$as_me:2683: \"$ac_try\"") >&5
2684  (eval $ac_try) 2>&5
2685  ac_status=$?
2686  echo "$as_me:2686: \$? = $ac_status" >&5
2687  (exit $ac_status); }; }; then
2688  :
2689else
2690  echo "$as_me: program exited with status $ac_status" >&5
2691echo "$as_me: failed program was:" >&5
2692sed 's/^/| /' conftest.$ac_ext >&5
2693
2694( exit $ac_status )
2695ac_cv_header_stdc=no
2696fi
2697rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2698fi
2699fi
2700fi
2701echo "$as_me:2701: result: $ac_cv_header_stdc" >&5
2702echo "${ECHO_T}$ac_cv_header_stdc" >&6
2703if test $ac_cv_header_stdc = yes; then
2704
2705cat >>confdefs.h <<\_ACEOF
2706#define STDC_HEADERS 1
2707_ACEOF
2708
2709fi
2710
2711# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2722                  inttypes.h stdint.h unistd.h
2723do
2724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2725echo "$as_me:2725: checking for $ac_header" >&5
2726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2727if eval "test \"\${$as_ac_Header+set}\" = set"; then
2728  echo $ECHO_N "(cached) $ECHO_C" >&6
2729else
2730  cat >conftest.$ac_ext <<_ACEOF
2731#line 2731 "configure"
2732/* confdefs.h.  */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h.  */
2737$ac_includes_default
2738
2739#include <$ac_header>
2740_ACEOF
2741rm -f conftest.$ac_objext
2742if { (eval echo "$as_me:2742: \"$ac_compile\"") >&5
2743  (eval $ac_compile) 2>&5
2744  ac_status=$?
2745  echo "$as_me:2745: \$? = $ac_status" >&5
2746  (exit $ac_status); } &&
2747         { ac_try='test -s conftest.$ac_objext'
2748  { (eval echo "$as_me:2748: \"$ac_try\"") >&5
2749  (eval $ac_try) 2>&5
2750  ac_status=$?
2751  echo "$as_me:2751: \$? = $ac_status" >&5
2752  (exit $ac_status); }; }; then
2753  eval "$as_ac_Header=yes"
2754else
2755  echo "$as_me: failed program was:" >&5
2756sed 's/^/| /' conftest.$ac_ext >&5
2757
2758eval "$as_ac_Header=no"
2759fi
2760rm -f conftest.$ac_objext conftest.$ac_ext
2761fi
2762echo "$as_me:2762: result: `eval echo '${'$as_ac_Header'}'`" >&5
2763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2764if test `eval echo '${'$as_ac_Header'}'` = yes; then
2765  cat >>confdefs.h <<_ACEOF
2766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2767_ACEOF
2768
2769fi
2770
2771done
2772
2773
2774if test "${ac_cv_header_minix_config_h+set}" = set; then
2775  echo "$as_me:2775: checking for minix/config.h" >&5
2776echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2777if test "${ac_cv_header_minix_config_h+set}" = set; then
2778  echo $ECHO_N "(cached) $ECHO_C" >&6
2779fi
2780echo "$as_me:2780: result: $ac_cv_header_minix_config_h" >&5
2781echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2782else
2783  # Is the header compilable?
2784echo "$as_me:2784: checking minix/config.h usability" >&5
2785echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2786cat >conftest.$ac_ext <<_ACEOF
2787#line 2787 "configure"
2788/* confdefs.h.  */
2789_ACEOF
2790cat confdefs.h >>conftest.$ac_ext
2791cat >>conftest.$ac_ext <<_ACEOF
2792/* end confdefs.h.  */
2793$ac_includes_default
2794#include <minix/config.h>
2795_ACEOF
2796rm -f conftest.$ac_objext
2797if { (eval echo "$as_me:2797: \"$ac_compile\"") >&5
2798  (eval $ac_compile) 2>&5
2799  ac_status=$?
2800  echo "$as_me:2800: \$? = $ac_status" >&5
2801  (exit $ac_status); } &&
2802         { ac_try='test -s conftest.$ac_objext'
2803  { (eval echo "$as_me:2803: \"$ac_try\"") >&5
2804  (eval $ac_try) 2>&5
2805  ac_status=$?
2806  echo "$as_me:2806: \$? = $ac_status" >&5
2807  (exit $ac_status); }; }; then
2808  ac_header_compiler=yes
2809else
2810  echo "$as_me: failed program was:" >&5
2811sed 's/^/| /' conftest.$ac_ext >&5
2812
2813ac_header_compiler=no
2814fi
2815rm -f conftest.$ac_objext conftest.$ac_ext
2816echo "$as_me:2816: result: $ac_header_compiler" >&5
2817echo "${ECHO_T}$ac_header_compiler" >&6
2818
2819# Is the header present?
2820echo "$as_me:2820: checking minix/config.h presence" >&5
2821echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2822cat >conftest.$ac_ext <<_ACEOF
2823#line 2823 "configure"
2824/* confdefs.h.  */
2825_ACEOF
2826cat confdefs.h >>conftest.$ac_ext
2827cat >>conftest.$ac_ext <<_ACEOF
2828/* end confdefs.h.  */
2829#include <minix/config.h>
2830_ACEOF
2831if { (eval echo "$as_me:2831: \"$ac_cpp conftest.$ac_ext\"") >&5
2832  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2833  ac_status=$?
2834  grep -v '^ *+' conftest.er1 >conftest.err
2835  rm -f conftest.er1
2836  cat conftest.err >&5
2837  echo "$as_me:2837: \$? = $ac_status" >&5
2838  (exit $ac_status); } >/dev/null; then
2839  if test -s conftest.err; then
2840    ac_cpp_err=$ac_c_preproc_warn_flag
2841  else
2842    ac_cpp_err=
2843  fi
2844else
2845  ac_cpp_err=yes
2846fi
2847if test -z "$ac_cpp_err"; then
2848  ac_header_preproc=yes
2849else
2850  echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
2852
2853  ac_header_preproc=no
2854fi
2855rm -f conftest.err conftest.$ac_ext
2856echo "$as_me:2856: result: $ac_header_preproc" >&5
2857echo "${ECHO_T}$ac_header_preproc" >&6
2858
2859# So?  What about this header?
2860case $ac_header_compiler:$ac_header_preproc in
2861  yes:no )
2862    { echo "$as_me:2862: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2863echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2864    { echo "$as_me:2864: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2865echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
2866    (
2867      cat <<\_ASBOX
2868## ------------------------------------ ##
2869## Report this to bug-autoconf@gnu.org. ##
2870## ------------------------------------ ##
2871_ASBOX
2872    ) |
2873      sed "s/^/$as_me: WARNING:     /" >&2
2874    ;;
2875  no:yes )
2876    { echo "$as_me:2876: WARNING: minix/config.h: present but cannot be compiled" >&5
2877echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
2878    { echo "$as_me:2878: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2879echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2880    { echo "$as_me:2880: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2881echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
2882    (
2883      cat <<\_ASBOX
2884## ------------------------------------ ##
2885## Report this to bug-autoconf@gnu.org. ##
2886## ------------------------------------ ##
2887_ASBOX
2888    ) |
2889      sed "s/^/$as_me: WARNING:     /" >&2
2890    ;;
2891esac
2892echo "$as_me:2892: checking for minix/config.h" >&5
2893echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2894if test "${ac_cv_header_minix_config_h+set}" = set; then
2895  echo $ECHO_N "(cached) $ECHO_C" >&6
2896else
2897  ac_cv_header_minix_config_h=$ac_header_preproc
2898fi
2899echo "$as_me:2899: result: $ac_cv_header_minix_config_h" >&5
2900echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2901
2902fi
2903if test $ac_cv_header_minix_config_h = yes; then
2904  MINIX=yes
2905else
2906  MINIX=
2907fi
2908
2909
2910if test "$MINIX" = yes; then
2911
2912cat >>confdefs.h <<\_ACEOF
2913#define _POSIX_SOURCE 1
2914_ACEOF
2915
2916
2917cat >>confdefs.h <<\_ACEOF
2918#define _POSIX_1_SOURCE 2
2919_ACEOF
2920
2921
2922cat >>confdefs.h <<\_ACEOF
2923#define _MINIX 1
2924_ACEOF
2925
2926fi
2927
2928
2929
2930if test "x$cross_compiling" = "xyes"; then
2931    case "${host}" in
2932    *-cygwin*)
2933	cross_cache=${srcdir}/cross-build/cygwin.cache
2934	if test -r "${cross_cache}"; then
2935	    echo "loading cross-build cache file ${cross_cache}"
2936	    . ${cross_cache}
2937	fi
2938	LOCAL_CFLAGS="$LOCAL_CFLAGS -I${srcdir}/../libtermcap"
2939	unset cross_cache
2940	;;
2941    *)  echo "configure: cross-compiling for a non-cygwin target is not supported" >&2
2942	;;
2943    esac
2944fi
2945
2946if test "x$cross_compiling" = "xyes"; then
2947  CROSS_COMPILING_FLAG=-DCROSS_COMPILING
2948else
2949  CROSS_COMPILING_FLAG=
2950fi
2951
2952
2953if test -z "$CC_FOR_BUILD"; then
2954    if test "x$cross_compiling" = "xno"; then
2955        CC_FOR_BUILD='$(CC)'
2956    else
2957        CC_FOR_BUILD=gcc
2958    fi
2959fi
2960
2961
2962
2963# If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
2964test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
2965
2966if test $ac_cv_c_compiler_gnu = yes; then
2967    echo "$as_me:2967: checking whether $CC needs -traditional" >&5
2968echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2969if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2970  echo $ECHO_N "(cached) $ECHO_C" >&6
2971else
2972    ac_pattern="Autoconf.*'x'"
2973  cat >conftest.$ac_ext <<_ACEOF
2974#line 2974 "configure"
2975/* confdefs.h.  */
2976_ACEOF
2977cat confdefs.h >>conftest.$ac_ext
2978cat >>conftest.$ac_ext <<_ACEOF
2979/* end confdefs.h.  */
2980#include <sgtty.h>
2981Autoconf TIOCGETP
2982_ACEOF
2983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2984  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2985  ac_cv_prog_gcc_traditional=yes
2986else
2987  ac_cv_prog_gcc_traditional=no
2988fi
2989rm -f conftest*
2990
2991
2992  if test $ac_cv_prog_gcc_traditional = no; then
2993    cat >conftest.$ac_ext <<_ACEOF
2994#line 2994 "configure"
2995/* confdefs.h.  */
2996_ACEOF
2997cat confdefs.h >>conftest.$ac_ext
2998cat >>conftest.$ac_ext <<_ACEOF
2999/* end confdefs.h.  */
3000#include <termio.h>
3001Autoconf TCGETA
3002_ACEOF
3003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3004  $EGREP "$ac_pattern" >/dev/null 2>&1; then
3005  ac_cv_prog_gcc_traditional=yes
3006fi
3007rm -f conftest*
3008
3009  fi
3010fi
3011echo "$as_me:3011: result: $ac_cv_prog_gcc_traditional" >&5
3012echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3013  if test $ac_cv_prog_gcc_traditional = yes; then
3014    CC="$CC -traditional"
3015  fi
3016fi
3017
3018# Find a good install program.  We prefer a C program (faster),
3019# so one script is as good as another.  But avoid the broken or
3020# incompatible versions:
3021# SysV /etc/install, /usr/sbin/install
3022# SunOS /usr/etc/install
3023# IRIX /sbin/install
3024# AIX /bin/install
3025# AmigaOS /C/install, which installs bootblocks on floppy discs
3026# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3027# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3028# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3029# ./install, which can be erroneously created by make from ./install.sh.
3030echo "$as_me:3030: checking for a BSD-compatible install" >&5
3031echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3032if test -z "$INSTALL"; then
3033if test "${ac_cv_path_install+set}" = set; then
3034  echo $ECHO_N "(cached) $ECHO_C" >&6
3035else
3036  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH
3038do
3039  IFS=$as_save_IFS
3040  test -z "$as_dir" && as_dir=.
3041  # Account for people who put trailing slashes in PATH elements.
3042case $as_dir/ in
3043  ./ | .// | /cC/* | \
3044  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3045  /usr/ucb/* ) ;;
3046  *)
3047    # OSF1 and SCO ODT 3.0 have their own names for install.
3048    # Don't use installbsd from OSF since it installs stuff as root
3049    # by default.
3050    for ac_prog in ginstall scoinst install; do
3051      for ac_exec_ext in '' $ac_executable_extensions; do
3052        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3053          if test $ac_prog = install &&
3054            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3055            # AIX install.  It has an incompatible calling convention.
3056            :
3057          elif test $ac_prog = install &&
3058            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3059            # program-specific install script used by HP pwplus--don't use.
3060            :
3061          else
3062            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3063            break 3
3064          fi
3065        fi
3066      done
3067    done
3068    ;;
3069esac
3070done
3071
3072
3073fi
3074  if test "${ac_cv_path_install+set}" = set; then
3075    INSTALL=$ac_cv_path_install
3076  else
3077    # As a last resort, use the slow shell script.  We don't cache a
3078    # path for INSTALL within a source directory, because that will
3079    # break other packages using the cache if that directory is
3080    # removed, or if the path is relative.
3081    INSTALL=$ac_install_sh
3082  fi
3083fi
3084echo "$as_me:3084: result: $INSTALL" >&5
3085echo "${ECHO_T}$INSTALL" >&6
3086
3087# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3088# It thinks the first close brace ends the variable substitution.
3089test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3090
3091test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3092
3093test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3094
3095# Extract the first word of "ar", so it can be a program name with args.
3096set dummy ar; ac_word=$2
3097echo "$as_me:3097: checking for $ac_word" >&5
3098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099if test "${ac_cv_prog_AR+set}" = set; then
3100  echo $ECHO_N "(cached) $ECHO_C" >&6
3101else
3102  if test -n "$AR"; then
3103  ac_cv_prog_AR="$AR" # Let the user override the test.
3104else
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108  IFS=$as_save_IFS
3109  test -z "$as_dir" && as_dir=.
3110  for ac_exec_ext in '' $ac_executable_extensions; do
3111  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112    ac_cv_prog_AR=""
3113    echo "$as_me:3113: found $as_dir/$ac_word$ac_exec_ext" >&5
3114    break 2
3115  fi
3116done
3117done
3118
3119  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3120fi
3121fi
3122AR=$ac_cv_prog_AR
3123if test -n "$AR"; then
3124  echo "$as_me:3124: result: $AR" >&5
3125echo "${ECHO_T}$AR" >&6
3126else
3127  echo "$as_me:3127: result: no" >&5
3128echo "${ECHO_T}no" >&6
3129fi
3130
3131test -n "$ARFLAGS" || ARFLAGS="cr"
3132if test -n "$ac_tool_prefix"; then
3133  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3134set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3135echo "$as_me:3135: checking for $ac_word" >&5
3136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3137if test "${ac_cv_prog_RANLIB+set}" = set; then
3138  echo $ECHO_N "(cached) $ECHO_C" >&6
3139else
3140  if test -n "$RANLIB"; then
3141  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3142else
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146  IFS=$as_save_IFS
3147  test -z "$as_dir" && as_dir=.
3148  for ac_exec_ext in '' $ac_executable_extensions; do
3149  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3151    echo "$as_me:3151: found $as_dir/$ac_word$ac_exec_ext" >&5
3152    break 2
3153  fi
3154done
3155done
3156
3157fi
3158fi
3159RANLIB=$ac_cv_prog_RANLIB
3160if test -n "$RANLIB"; then
3161  echo "$as_me:3161: result: $RANLIB" >&5
3162echo "${ECHO_T}$RANLIB" >&6
3163else
3164  echo "$as_me:3164: result: no" >&5
3165echo "${ECHO_T}no" >&6
3166fi
3167
3168fi
3169if test -z "$ac_cv_prog_RANLIB"; then
3170  ac_ct_RANLIB=$RANLIB
3171  # Extract the first word of "ranlib", so it can be a program name with args.
3172set dummy ranlib; ac_word=$2
3173echo "$as_me:3173: checking for $ac_word" >&5
3174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3176  echo $ECHO_N "(cached) $ECHO_C" >&6
3177else
3178  if test -n "$ac_ct_RANLIB"; then
3179  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184  IFS=$as_save_IFS
3185  test -z "$as_dir" && as_dir=.
3186  for ac_exec_ext in '' $ac_executable_extensions; do
3187  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188    ac_cv_prog_ac_ct_RANLIB="ranlib"
3189    echo "$as_me:3189: found $as_dir/$ac_word$ac_exec_ext" >&5
3190    break 2
3191  fi
3192done
3193done
3194
3195  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3196fi
3197fi
3198ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3199if test -n "$ac_ct_RANLIB"; then
3200  echo "$as_me:3200: result: $ac_ct_RANLIB" >&5
3201echo "${ECHO_T}$ac_ct_RANLIB" >&6
3202else
3203  echo "$as_me:3203: result: no" >&5
3204echo "${ECHO_T}no" >&6
3205fi
3206
3207  RANLIB=$ac_ct_RANLIB
3208else
3209  RANLIB="$ac_cv_prog_RANLIB"
3210fi
3211
3212
3213MAKE_SHELL=/bin/sh
3214
3215
3216echo "$as_me:3216: checking for an ANSI C-conforming const" >&5
3217echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3218if test "${ac_cv_c_const+set}" = set; then
3219  echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221  cat >conftest.$ac_ext <<_ACEOF
3222#line 3222 "configure"
3223/* confdefs.h.  */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h.  */
3228
3229int
3230main ()
3231{
3232/* FIXME: Include the comments suggested by Paul. */
3233#ifndef __cplusplus
3234  /* Ultrix mips cc rejects this.  */
3235  typedef int charset[2];
3236  const charset x;
3237  /* SunOS 4.1.1 cc rejects this.  */
3238  char const *const *ccp;
3239  char **p;
3240  /* NEC SVR4.0.2 mips cc rejects this.  */
3241  struct point {int x, y;};
3242  static struct point const zero = {0,0};
3243  /* AIX XL C 1.02.0.0 rejects this.
3244     It does not let you subtract one const X* pointer from another in
3245     an arm of an if-expression whose if-part is not a constant
3246     expression */
3247  const char *g = "string";
3248  ccp = &g + (g ? g-g : 0);
3249  /* HPUX 7.0 cc rejects these. */
3250  ++ccp;
3251  p = (char**) ccp;
3252  ccp = (char const *const *) p;
3253  { /* SCO 3.2v4 cc rejects this.  */
3254    char *t;
3255    char const *s = 0 ? (char *) 0 : (char const *) 0;
3256
3257    *t++ = 0;
3258  }
3259  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3260    int x[] = {25, 17};
3261    const int *foo = &x[0];
3262    ++foo;
3263  }
3264  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265    typedef const int *iptr;
3266    iptr p = 0;
3267    ++p;
3268  }
3269  { /* AIX XL C 1.02.0.0 rejects this saying
3270       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271    struct s { int j; const int *ap[3]; };
3272    struct s *b; b->j = 5;
3273  }
3274  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3275    const int foo = 10;
3276  }
3277#endif
3278
3279  ;
3280  return 0;
3281}
3282_ACEOF
3283rm -f conftest.$ac_objext
3284if { (eval echo "$as_me:3284: \"$ac_compile\"") >&5
3285  (eval $ac_compile) 2>&5
3286  ac_status=$?
3287  echo "$as_me:3287: \$? = $ac_status" >&5
3288  (exit $ac_status); } &&
3289         { ac_try='test -s conftest.$ac_objext'
3290  { (eval echo "$as_me:3290: \"$ac_try\"") >&5
3291  (eval $ac_try) 2>&5
3292  ac_status=$?
3293  echo "$as_me:3293: \$? = $ac_status" >&5
3294  (exit $ac_status); }; }; then
3295  ac_cv_c_const=yes
3296else
3297  echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300ac_cv_c_const=no
3301fi
3302rm -f conftest.$ac_objext conftest.$ac_ext
3303fi
3304echo "$as_me:3304: result: $ac_cv_c_const" >&5
3305echo "${ECHO_T}$ac_cv_c_const" >&6
3306if test $ac_cv_c_const = no; then
3307
3308cat >>confdefs.h <<\_ACEOF
3309#define const
3310_ACEOF
3311
3312fi
3313
3314echo "$as_me:3314: checking for function prototypes" >&5
3315echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3316if test "$ac_cv_prog_cc_stdc" != no; then
3317  echo "$as_me:3317: result: yes" >&5
3318echo "${ECHO_T}yes" >&6
3319
3320cat >>confdefs.h <<\_ACEOF
3321#define PROTOTYPES 1
3322_ACEOF
3323
3324
3325cat >>confdefs.h <<\_ACEOF
3326#define __PROTOTYPES 1
3327_ACEOF
3328
3329else
3330  echo "$as_me:3330: result: no" >&5
3331echo "${ECHO_T}no" >&6
3332fi
3333
3334
3335echo "$as_me:3335: checking whether char is unsigned" >&5
3336echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
3337if test "${ac_cv_c_char_unsigned+set}" = set; then
3338  echo $ECHO_N "(cached) $ECHO_C" >&6
3339else
3340  cat >conftest.$ac_ext <<_ACEOF
3341#line 3341 "configure"
3342/* confdefs.h.  */
3343_ACEOF
3344cat confdefs.h >>conftest.$ac_ext
3345cat >>conftest.$ac_ext <<_ACEOF
3346/* end confdefs.h.  */
3347$ac_includes_default
3348int
3349main ()
3350{
3351static int test_array [1 - 2 * !(((char) -1) < 0)];
3352test_array [0] = 0
3353
3354  ;
3355  return 0;
3356}
3357_ACEOF
3358rm -f conftest.$ac_objext
3359if { (eval echo "$as_me:3359: \"$ac_compile\"") >&5
3360  (eval $ac_compile) 2>&5
3361  ac_status=$?
3362  echo "$as_me:3362: \$? = $ac_status" >&5
3363  (exit $ac_status); } &&
3364         { ac_try='test -s conftest.$ac_objext'
3365  { (eval echo "$as_me:3365: \"$ac_try\"") >&5
3366  (eval $ac_try) 2>&5
3367  ac_status=$?
3368  echo "$as_me:3368: \$? = $ac_status" >&5
3369  (exit $ac_status); }; }; then
3370  ac_cv_c_char_unsigned=no
3371else
3372  echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
3375ac_cv_c_char_unsigned=yes
3376fi
3377rm -f conftest.$ac_objext conftest.$ac_ext
3378fi
3379echo "$as_me:3379: result: $ac_cv_c_char_unsigned" >&5
3380echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
3381if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3382  cat >>confdefs.h <<\_ACEOF
3383#define __CHAR_UNSIGNED__ 1
3384_ACEOF
3385
3386fi
3387
3388
3389echo "$as_me:3389: checking return type of signal handlers" >&5
3390echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3391if test "${ac_cv_type_signal+set}" = set; then
3392  echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394  cat >conftest.$ac_ext <<_ACEOF
3395#line 3395 "configure"
3396/* confdefs.h.  */
3397_ACEOF
3398cat confdefs.h >>conftest.$ac_ext
3399cat >>conftest.$ac_ext <<_ACEOF
3400/* end confdefs.h.  */
3401#include <sys/types.h>
3402#include <signal.h>
3403#ifdef signal
3404# undef signal
3405#endif
3406#ifdef __cplusplus
3407extern "C" void (*signal (int, void (*)(int)))(int);
3408#else
3409void (*signal ()) ();
3410#endif
3411
3412int
3413main ()
3414{
3415int i;
3416  ;
3417  return 0;
3418}
3419_ACEOF
3420rm -f conftest.$ac_objext
3421if { (eval echo "$as_me:3421: \"$ac_compile\"") >&5
3422  (eval $ac_compile) 2>&5
3423  ac_status=$?
3424  echo "$as_me:3424: \$? = $ac_status" >&5
3425  (exit $ac_status); } &&
3426         { ac_try='test -s conftest.$ac_objext'
3427  { (eval echo "$as_me:3427: \"$ac_try\"") >&5
3428  (eval $ac_try) 2>&5
3429  ac_status=$?
3430  echo "$as_me:3430: \$? = $ac_status" >&5
3431  (exit $ac_status); }; }; then
3432  ac_cv_type_signal=void
3433else
3434  echo "$as_me: failed program was:" >&5
3435sed 's/^/| /' conftest.$ac_ext >&5
3436
3437ac_cv_type_signal=int
3438fi
3439rm -f conftest.$ac_objext conftest.$ac_ext
3440fi
3441echo "$as_me:3441: result: $ac_cv_type_signal" >&5
3442echo "${ECHO_T}$ac_cv_type_signal" >&6
3443
3444cat >>confdefs.h <<_ACEOF
3445#define RETSIGTYPE $ac_cv_type_signal
3446_ACEOF
3447
3448
3449
3450echo "$as_me:3450: checking for size_t" >&5
3451echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3452if test "${ac_cv_type_size_t+set}" = set; then
3453  echo $ECHO_N "(cached) $ECHO_C" >&6
3454else
3455  cat >conftest.$ac_ext <<_ACEOF
3456#line 3456 "configure"
3457/* confdefs.h.  */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
3461/* end confdefs.h.  */
3462$ac_includes_default
3463int
3464main ()
3465{
3466if ((size_t *) 0)
3467  return 0;
3468if (sizeof (size_t))
3469  return 0;
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474rm -f conftest.$ac_objext
3475if { (eval echo "$as_me:3475: \"$ac_compile\"") >&5
3476  (eval $ac_compile) 2>&5
3477  ac_status=$?
3478  echo "$as_me:3478: \$? = $ac_status" >&5
3479  (exit $ac_status); } &&
3480         { ac_try='test -s conftest.$ac_objext'
3481  { (eval echo "$as_me:3481: \"$ac_try\"") >&5
3482  (eval $ac_try) 2>&5
3483  ac_status=$?
3484  echo "$as_me:3484: \$? = $ac_status" >&5
3485  (exit $ac_status); }; }; then
3486  ac_cv_type_size_t=yes
3487else
3488  echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
3491ac_cv_type_size_t=no
3492fi
3493rm -f conftest.$ac_objext conftest.$ac_ext
3494fi
3495echo "$as_me:3495: result: $ac_cv_type_size_t" >&5
3496echo "${ECHO_T}$ac_cv_type_size_t" >&6
3497if test $ac_cv_type_size_t = yes; then
3498  :
3499else
3500
3501cat >>confdefs.h <<_ACEOF
3502#define size_t unsigned
3503_ACEOF
3504
3505fi
3506
3507echo "$as_me:3507: checking for ssize_t" >&5
3508echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
3509if test "${ac_cv_type_ssize_t+set}" = set; then
3510  echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512  cat >conftest.$ac_ext <<_ACEOF
3513#line 3513 "configure"
3514/* confdefs.h.  */
3515_ACEOF
3516cat confdefs.h >>conftest.$ac_ext
3517cat >>conftest.$ac_ext <<_ACEOF
3518/* end confdefs.h.  */
3519$ac_includes_default
3520int
3521main ()
3522{
3523if ((ssize_t *) 0)
3524  return 0;
3525if (sizeof (ssize_t))
3526  return 0;
3527  ;
3528  return 0;
3529}
3530_ACEOF
3531rm -f conftest.$ac_objext
3532if { (eval echo "$as_me:3532: \"$ac_compile\"") >&5
3533  (eval $ac_compile) 2>&5
3534  ac_status=$?
3535  echo "$as_me:3535: \$? = $ac_status" >&5
3536  (exit $ac_status); } &&
3537         { ac_try='test -s conftest.$ac_objext'
3538  { (eval echo "$as_me:3538: \"$ac_try\"") >&5
3539  (eval $ac_try) 2>&5
3540  ac_status=$?
3541  echo "$as_me:3541: \$? = $ac_status" >&5
3542  (exit $ac_status); }; }; then
3543  ac_cv_type_ssize_t=yes
3544else
3545  echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
3548ac_cv_type_ssize_t=no
3549fi
3550rm -f conftest.$ac_objext conftest.$ac_ext
3551fi
3552echo "$as_me:3552: result: $ac_cv_type_ssize_t" >&5
3553echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
3554if test $ac_cv_type_ssize_t = yes; then
3555  :
3556else
3557
3558cat >>confdefs.h <<_ACEOF
3559#define ssize_t int
3560_ACEOF
3561
3562fi
3563
3564
3565echo "$as_me:3565: checking whether stat file-mode macros are broken" >&5
3566echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3567if test "${ac_cv_header_stat_broken+set}" = set; then
3568  echo $ECHO_N "(cached) $ECHO_C" >&6
3569else
3570  cat >conftest.$ac_ext <<_ACEOF
3571#line 3571 "configure"
3572/* confdefs.h.  */
3573_ACEOF
3574cat confdefs.h >>conftest.$ac_ext
3575cat >>conftest.$ac_ext <<_ACEOF
3576/* end confdefs.h.  */
3577#include <sys/types.h>
3578#include <sys/stat.h>
3579
3580#if defined(S_ISBLK) && defined(S_IFDIR)
3581# if S_ISBLK (S_IFDIR)
3582You lose.
3583# endif
3584#endif
3585
3586#if defined(S_ISBLK) && defined(S_IFCHR)
3587# if S_ISBLK (S_IFCHR)
3588You lose.
3589# endif
3590#endif
3591
3592#if defined(S_ISLNK) && defined(S_IFREG)
3593# if S_ISLNK (S_IFREG)
3594You lose.
3595# endif
3596#endif
3597
3598#if defined(S_ISSOCK) && defined(S_IFREG)
3599# if S_ISSOCK (S_IFREG)
3600You lose.
3601# endif
3602#endif
3603
3604_ACEOF
3605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3606  $EGREP "You lose" >/dev/null 2>&1; then
3607  ac_cv_header_stat_broken=yes
3608else
3609  ac_cv_header_stat_broken=no
3610fi
3611rm -f conftest*
3612
3613fi
3614echo "$as_me:3614: result: $ac_cv_header_stat_broken" >&5
3615echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
3616if test $ac_cv_header_stat_broken = yes; then
3617
3618cat >>confdefs.h <<\_ACEOF
3619#define STAT_MACROS_BROKEN 1
3620_ACEOF
3621
3622fi
3623
3624
3625
3626
3627
3628
3629ac_header_dirent=no
3630for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3631  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3632echo "$as_me:3632: checking for $ac_hdr that defines DIR" >&5
3633echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3634if eval "test \"\${$as_ac_Header+set}\" = set"; then
3635  echo $ECHO_N "(cached) $ECHO_C" >&6
3636else
3637  cat >conftest.$ac_ext <<_ACEOF
3638#line 3638 "configure"
3639/* confdefs.h.  */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h.  */
3644#include <sys/types.h>
3645#include <$ac_hdr>
3646
3647int
3648main ()
3649{
3650if ((DIR *) 0)
3651return 0;
3652  ;
3653  return 0;
3654}
3655_ACEOF
3656rm -f conftest.$ac_objext
3657if { (eval echo "$as_me:3657: \"$ac_compile\"") >&5
3658  (eval $ac_compile) 2>&5
3659  ac_status=$?
3660  echo "$as_me:3660: \$? = $ac_status" >&5
3661  (exit $ac_status); } &&
3662         { ac_try='test -s conftest.$ac_objext'
3663  { (eval echo "$as_me:3663: \"$ac_try\"") >&5
3664  (eval $ac_try) 2>&5
3665  ac_status=$?
3666  echo "$as_me:3666: \$? = $ac_status" >&5
3667  (exit $ac_status); }; }; then
3668  eval "$as_ac_Header=yes"
3669else
3670  echo "$as_me: failed program was:" >&5
3671sed 's/^/| /' conftest.$ac_ext >&5
3672
3673eval "$as_ac_Header=no"
3674fi
3675rm -f conftest.$ac_objext conftest.$ac_ext
3676fi
3677echo "$as_me:3677: result: `eval echo '${'$as_ac_Header'}'`" >&5
3678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3679if test `eval echo '${'$as_ac_Header'}'` = yes; then
3680  cat >>confdefs.h <<_ACEOF
3681#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3682_ACEOF
3683
3684ac_header_dirent=$ac_hdr; break
3685fi
3686
3687done
3688# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3689if test $ac_header_dirent = dirent.h; then
3690  echo "$as_me:3690: checking for library containing opendir" >&5
3691echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3692if test "${ac_cv_search_opendir+set}" = set; then
3693  echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
3695  ac_func_search_save_LIBS=$LIBS
3696ac_cv_search_opendir=no
3697cat >conftest.$ac_ext <<_ACEOF
3698#line 3698 "configure"
3699/* confdefs.h.  */
3700_ACEOF
3701cat confdefs.h >>conftest.$ac_ext
3702cat >>conftest.$ac_ext <<_ACEOF
3703/* end confdefs.h.  */
3704
3705/* Override any gcc2 internal prototype to avoid an error.  */
3706#ifdef __cplusplus
3707extern "C"
3708#endif
3709/* We use char because int might match the return type of a gcc2
3710   builtin and then its argument prototype would still apply.  */
3711char opendir ();
3712int
3713main ()
3714{
3715opendir ();
3716  ;
3717  return 0;
3718}
3719_ACEOF
3720rm -f conftest.$ac_objext conftest$ac_exeext
3721if { (eval echo "$as_me:3721: \"$ac_link\"") >&5
3722  (eval $ac_link) 2>&5
3723  ac_status=$?
3724  echo "$as_me:3724: \$? = $ac_status" >&5
3725  (exit $ac_status); } &&
3726         { ac_try='test -s conftest$ac_exeext'
3727  { (eval echo "$as_me:3727: \"$ac_try\"") >&5
3728  (eval $ac_try) 2>&5
3729  ac_status=$?
3730  echo "$as_me:3730: \$? = $ac_status" >&5
3731  (exit $ac_status); }; }; then
3732  ac_cv_search_opendir="none required"
3733else
3734  echo "$as_me: failed program was:" >&5
3735sed 's/^/| /' conftest.$ac_ext >&5
3736
3737fi
3738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3739if test "$ac_cv_search_opendir" = no; then
3740  for ac_lib in dir; do
3741    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3742    cat >conftest.$ac_ext <<_ACEOF
3743#line 3743 "configure"
3744/* confdefs.h.  */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h.  */
3749
3750/* Override any gcc2 internal prototype to avoid an error.  */
3751#ifdef __cplusplus
3752extern "C"
3753#endif
3754/* We use char because int might match the return type of a gcc2
3755   builtin and then its argument prototype would still apply.  */
3756char opendir ();
3757int
3758main ()
3759{
3760opendir ();
3761  ;
3762  return 0;
3763}
3764_ACEOF
3765rm -f conftest.$ac_objext conftest$ac_exeext
3766if { (eval echo "$as_me:3766: \"$ac_link\"") >&5
3767  (eval $ac_link) 2>&5
3768  ac_status=$?
3769  echo "$as_me:3769: \$? = $ac_status" >&5
3770  (exit $ac_status); } &&
3771         { ac_try='test -s conftest$ac_exeext'
3772  { (eval echo "$as_me:3772: \"$ac_try\"") >&5
3773  (eval $ac_try) 2>&5
3774  ac_status=$?
3775  echo "$as_me:3775: \$? = $ac_status" >&5
3776  (exit $ac_status); }; }; then
3777  ac_cv_search_opendir="-l$ac_lib"
3778break
3779else
3780  echo "$as_me: failed program was:" >&5
3781sed 's/^/| /' conftest.$ac_ext >&5
3782
3783fi
3784rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3785  done
3786fi
3787LIBS=$ac_func_search_save_LIBS
3788fi
3789echo "$as_me:3789: result: $ac_cv_search_opendir" >&5
3790echo "${ECHO_T}$ac_cv_search_opendir" >&6
3791if test "$ac_cv_search_opendir" != no; then
3792  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3793
3794fi
3795
3796else
3797  echo "$as_me:3797: checking for library containing opendir" >&5
3798echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3799if test "${ac_cv_search_opendir+set}" = set; then
3800  echo $ECHO_N "(cached) $ECHO_C" >&6
3801else
3802  ac_func_search_save_LIBS=$LIBS
3803ac_cv_search_opendir=no
3804cat >conftest.$ac_ext <<_ACEOF
3805#line 3805 "configure"
3806/* confdefs.h.  */
3807_ACEOF
3808cat confdefs.h >>conftest.$ac_ext
3809cat >>conftest.$ac_ext <<_ACEOF
3810/* end confdefs.h.  */
3811
3812/* Override any gcc2 internal prototype to avoid an error.  */
3813#ifdef __cplusplus
3814extern "C"
3815#endif
3816/* We use char because int might match the return type of a gcc2
3817   builtin and then its argument prototype would still apply.  */
3818char opendir ();
3819int
3820main ()
3821{
3822opendir ();
3823  ;
3824  return 0;
3825}
3826_ACEOF
3827rm -f conftest.$ac_objext conftest$ac_exeext
3828if { (eval echo "$as_me:3828: \"$ac_link\"") >&5
3829  (eval $ac_link) 2>&5
3830  ac_status=$?
3831  echo "$as_me:3831: \$? = $ac_status" >&5
3832  (exit $ac_status); } &&
3833         { ac_try='test -s conftest$ac_exeext'
3834  { (eval echo "$as_me:3834: \"$ac_try\"") >&5
3835  (eval $ac_try) 2>&5
3836  ac_status=$?
3837  echo "$as_me:3837: \$? = $ac_status" >&5
3838  (exit $ac_status); }; }; then
3839  ac_cv_search_opendir="none required"
3840else
3841  echo "$as_me: failed program was:" >&5
3842sed 's/^/| /' conftest.$ac_ext >&5
3843
3844fi
3845rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3846if test "$ac_cv_search_opendir" = no; then
3847  for ac_lib in x; do
3848    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3849    cat >conftest.$ac_ext <<_ACEOF
3850#line 3850 "configure"
3851/* confdefs.h.  */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h.  */
3856
3857/* Override any gcc2 internal prototype to avoid an error.  */
3858#ifdef __cplusplus
3859extern "C"
3860#endif
3861/* We use char because int might match the return type of a gcc2
3862   builtin and then its argument prototype would still apply.  */
3863char opendir ();
3864int
3865main ()
3866{
3867opendir ();
3868  ;
3869  return 0;
3870}
3871_ACEOF
3872rm -f conftest.$ac_objext conftest$ac_exeext
3873if { (eval echo "$as_me:3873: \"$ac_link\"") >&5
3874  (eval $ac_link) 2>&5
3875  ac_status=$?
3876  echo "$as_me:3876: \$? = $ac_status" >&5
3877  (exit $ac_status); } &&
3878         { ac_try='test -s conftest$ac_exeext'
3879  { (eval echo "$as_me:3879: \"$ac_try\"") >&5
3880  (eval $ac_try) 2>&5
3881  ac_status=$?
3882  echo "$as_me:3882: \$? = $ac_status" >&5
3883  (exit $ac_status); }; }; then
3884  ac_cv_search_opendir="-l$ac_lib"
3885break
3886else
3887  echo "$as_me: failed program was:" >&5
3888sed 's/^/| /' conftest.$ac_ext >&5
3889
3890fi
3891rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3892  done
3893fi
3894LIBS=$ac_func_search_save_LIBS
3895fi
3896echo "$as_me:3896: result: $ac_cv_search_opendir" >&5
3897echo "${ECHO_T}$ac_cv_search_opendir" >&6
3898if test "$ac_cv_search_opendir" != no; then
3899  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3900
3901fi
3902
3903fi
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918for ac_func in lstat memmove putenv select setenv setlocale \
3919		strcasecmp strpbrk tcgetattr vsnprintf isascii isxdigit
3920do
3921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3922echo "$as_me:3922: checking for $ac_func" >&5
3923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3924if eval "test \"\${$as_ac_var+set}\" = set"; then
3925  echo $ECHO_N "(cached) $ECHO_C" >&6
3926else
3927  cat >conftest.$ac_ext <<_ACEOF
3928#line 3928 "configure"
3929/* confdefs.h.  */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h.  */
3934/* System header to define __stub macros and hopefully few prototypes,
3935    which can conflict with char $ac_func (); below.
3936    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3937    <limits.h> exists even on freestanding compilers.  */
3938#ifdef __STDC__
3939# include <limits.h>
3940#else
3941# include <assert.h>
3942#endif
3943/* Override any gcc2 internal prototype to avoid an error.  */
3944#ifdef __cplusplus
3945extern "C"
3946{
3947#endif
3948/* We use char because int might match the return type of a gcc2
3949   builtin and then its argument prototype would still apply.  */
3950char $ac_func ();
3951/* The GNU C library defines this for functions which it implements
3952    to always fail with ENOSYS.  Some functions are actually named
3953    something starting with __ and the normal name is an alias.  */
3954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3955choke me
3956#else
3957char (*f) () = $ac_func;
3958#endif
3959#ifdef __cplusplus
3960}
3961#endif
3962
3963int
3964main ()
3965{
3966return f != $ac_func;
3967  ;
3968  return 0;
3969}
3970_ACEOF
3971rm -f conftest.$ac_objext conftest$ac_exeext
3972if { (eval echo "$as_me:3972: \"$ac_link\"") >&5
3973  (eval $ac_link) 2>&5
3974  ac_status=$?
3975  echo "$as_me:3975: \$? = $ac_status" >&5
3976  (exit $ac_status); } &&
3977         { ac_try='test -s conftest$ac_exeext'
3978  { (eval echo "$as_me:3978: \"$ac_try\"") >&5
3979  (eval $ac_try) 2>&5
3980  ac_status=$?
3981  echo "$as_me:3981: \$? = $ac_status" >&5
3982  (exit $ac_status); }; }; then
3983  eval "$as_ac_var=yes"
3984else
3985  echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988eval "$as_ac_var=no"
3989fi
3990rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3991fi
3992echo "$as_me:3992: result: `eval echo '${'$as_ac_var'}'`" >&5
3993echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3994if test `eval echo '${'$as_ac_var'}'` = yes; then
3995  cat >>confdefs.h <<_ACEOF
3996#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3997_ACEOF
3998
3999fi
4000done
4001
4002
4003echo "$as_me:4003: checking for working strcoll" >&5
4004echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4005if test "${ac_cv_func_strcoll_works+set}" = set; then
4006  echo $ECHO_N "(cached) $ECHO_C" >&6
4007else
4008  if test "$cross_compiling" = yes; then
4009  ac_cv_func_strcoll_works=no
4010else
4011  cat >conftest.$ac_ext <<_ACEOF
4012#line 4012 "configure"
4013/* confdefs.h.  */
4014_ACEOF
4015cat confdefs.h >>conftest.$ac_ext
4016cat >>conftest.$ac_ext <<_ACEOF
4017/* end confdefs.h.  */
4018$ac_includes_default
4019int
4020main ()
4021{
4022exit (strcoll ("abc", "def") >= 0 ||
4023	 strcoll ("ABC", "DEF") >= 0 ||
4024	 strcoll ("123", "456") >= 0)
4025  ;
4026  return 0;
4027}
4028_ACEOF
4029rm -f conftest$ac_exeext
4030if { (eval echo "$as_me:4030: \"$ac_link\"") >&5
4031  (eval $ac_link) 2>&5
4032  ac_status=$?
4033  echo "$as_me:4033: \$? = $ac_status" >&5
4034  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4035  { (eval echo "$as_me:4035: \"$ac_try\"") >&5
4036  (eval $ac_try) 2>&5
4037  ac_status=$?
4038  echo "$as_me:4038: \$? = $ac_status" >&5
4039  (exit $ac_status); }; }; then
4040  ac_cv_func_strcoll_works=yes
4041else
4042  echo "$as_me: program exited with status $ac_status" >&5
4043echo "$as_me: failed program was:" >&5
4044sed 's/^/| /' conftest.$ac_ext >&5
4045
4046( exit $ac_status )
4047ac_cv_func_strcoll_works=no
4048fi
4049rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4050fi
4051fi
4052echo "$as_me:4052: result: $ac_cv_func_strcoll_works" >&5
4053echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4054if test $ac_cv_func_strcoll_works = yes; then
4055
4056cat >>confdefs.h <<\_ACEOF
4057#define HAVE_STRCOLL 1
4058_ACEOF
4059
4060fi
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \
4081		limits.h sys/ptem.h sys/pte.h sys/stream.h sys/select.h \
4082		termcap.h termios.h termio.h sys/file.h locale.h memory.h
4083do
4084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4085if eval "test \"\${$as_ac_Header+set}\" = set"; then
4086  echo "$as_me:4086: checking for $ac_header" >&5
4087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4088if eval "test \"\${$as_ac_Header+set}\" = set"; then
4089  echo $ECHO_N "(cached) $ECHO_C" >&6
4090fi
4091echo "$as_me:4091: result: `eval echo '${'$as_ac_Header'}'`" >&5
4092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4093else
4094  # Is the header compilable?
4095echo "$as_me:4095: checking $ac_header usability" >&5
4096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4097cat >conftest.$ac_ext <<_ACEOF
4098#line 4098 "configure"
4099/* confdefs.h.  */
4100_ACEOF
4101cat confdefs.h >>conftest.$ac_ext
4102cat >>conftest.$ac_ext <<_ACEOF
4103/* end confdefs.h.  */
4104$ac_includes_default
4105#include <$ac_header>
4106_ACEOF
4107rm -f conftest.$ac_objext
4108if { (eval echo "$as_me:4108: \"$ac_compile\"") >&5
4109  (eval $ac_compile) 2>&5
4110  ac_status=$?
4111  echo "$as_me:4111: \$? = $ac_status" >&5
4112  (exit $ac_status); } &&
4113         { ac_try='test -s conftest.$ac_objext'
4114  { (eval echo "$as_me:4114: \"$ac_try\"") >&5
4115  (eval $ac_try) 2>&5
4116  ac_status=$?
4117  echo "$as_me:4117: \$? = $ac_status" >&5
4118  (exit $ac_status); }; }; then
4119  ac_header_compiler=yes
4120else
4121  echo "$as_me: failed program was:" >&5
4122sed 's/^/| /' conftest.$ac_ext >&5
4123
4124ac_header_compiler=no
4125fi
4126rm -f conftest.$ac_objext conftest.$ac_ext
4127echo "$as_me:4127: result: $ac_header_compiler" >&5
4128echo "${ECHO_T}$ac_header_compiler" >&6
4129
4130# Is the header present?
4131echo "$as_me:4131: checking $ac_header presence" >&5
4132echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4133cat >conftest.$ac_ext <<_ACEOF
4134#line 4134 "configure"
4135/* confdefs.h.  */
4136_ACEOF
4137cat confdefs.h >>conftest.$ac_ext
4138cat >>conftest.$ac_ext <<_ACEOF
4139/* end confdefs.h.  */
4140#include <$ac_header>
4141_ACEOF
4142if { (eval echo "$as_me:4142: \"$ac_cpp conftest.$ac_ext\"") >&5
4143  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4144  ac_status=$?
4145  grep -v '^ *+' conftest.er1 >conftest.err
4146  rm -f conftest.er1
4147  cat conftest.err >&5
4148  echo "$as_me:4148: \$? = $ac_status" >&5
4149  (exit $ac_status); } >/dev/null; then
4150  if test -s conftest.err; then
4151    ac_cpp_err=$ac_c_preproc_warn_flag
4152  else
4153    ac_cpp_err=
4154  fi
4155else
4156  ac_cpp_err=yes
4157fi
4158if test -z "$ac_cpp_err"; then
4159  ac_header_preproc=yes
4160else
4161  echo "$as_me: failed program was:" >&5
4162sed 's/^/| /' conftest.$ac_ext >&5
4163
4164  ac_header_preproc=no
4165fi
4166rm -f conftest.err conftest.$ac_ext
4167echo "$as_me:4167: result: $ac_header_preproc" >&5
4168echo "${ECHO_T}$ac_header_preproc" >&6
4169
4170# So?  What about this header?
4171case $ac_header_compiler:$ac_header_preproc in
4172  yes:no )
4173    { echo "$as_me:4173: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4174echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4175    { echo "$as_me:4175: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4176echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4177    (
4178      cat <<\_ASBOX
4179## ------------------------------------ ##
4180## Report this to bug-autoconf@gnu.org. ##
4181## ------------------------------------ ##
4182_ASBOX
4183    ) |
4184      sed "s/^/$as_me: WARNING:     /" >&2
4185    ;;
4186  no:yes )
4187    { echo "$as_me:4187: WARNING: $ac_header: present but cannot be compiled" >&5
4188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4189    { echo "$as_me:4189: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4190echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4191    { echo "$as_me:4191: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4192echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4193    (
4194      cat <<\_ASBOX
4195## ------------------------------------ ##
4196## Report this to bug-autoconf@gnu.org. ##
4197## ------------------------------------ ##
4198_ASBOX
4199    ) |
4200      sed "s/^/$as_me: WARNING:     /" >&2
4201    ;;
4202esac
4203echo "$as_me:4203: checking for $ac_header" >&5
4204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4205if eval "test \"\${$as_ac_Header+set}\" = set"; then
4206  echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
4208  eval "$as_ac_Header=$ac_header_preproc"
4209fi
4210echo "$as_me:4210: result: `eval echo '${'$as_ac_Header'}'`" >&5
4211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4212
4213fi
4214if test `eval echo '${'$as_ac_Header'}'` = yes; then
4215  cat >>confdefs.h <<_ACEOF
4216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4217_ACEOF
4218
4219fi
4220
4221done
4222
4223
4224
4225echo "$as_me:4225: checking for type of signal functions" >&5
4226echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
4227if test "${bash_cv_signal_vintage+set}" = set; then
4228  echo $ECHO_N "(cached) $ECHO_C" >&6
4229else
4230
4231  cat >conftest.$ac_ext <<_ACEOF
4232#line 4232 "configure"
4233/* confdefs.h.  */
4234_ACEOF
4235cat confdefs.h >>conftest.$ac_ext
4236cat >>conftest.$ac_ext <<_ACEOF
4237/* end confdefs.h.  */
4238#include <signal.h>
4239int
4240main ()
4241{
4242
4243    sigset_t ss;
4244    struct sigaction sa;
4245    sigemptyset(&ss); sigsuspend(&ss);
4246    sigaction(SIGINT, &sa, (struct sigaction *) 0);
4247    sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
4248
4249  ;
4250  return 0;
4251}
4252_ACEOF
4253rm -f conftest.$ac_objext conftest$ac_exeext
4254if { (eval echo "$as_me:4254: \"$ac_link\"") >&5
4255  (eval $ac_link) 2>&5
4256  ac_status=$?
4257  echo "$as_me:4257: \$? = $ac_status" >&5
4258  (exit $ac_status); } &&
4259         { ac_try='test -s conftest$ac_exeext'
4260  { (eval echo "$as_me:4260: \"$ac_try\"") >&5
4261  (eval $ac_try) 2>&5
4262  ac_status=$?
4263  echo "$as_me:4263: \$? = $ac_status" >&5
4264  (exit $ac_status); }; }; then
4265  bash_cv_signal_vintage=posix
4266else
4267  echo "$as_me: failed program was:" >&5
4268sed 's/^/| /' conftest.$ac_ext >&5
4269
4270
4271    cat >conftest.$ac_ext <<_ACEOF
4272#line 4272 "configure"
4273/* confdefs.h.  */
4274_ACEOF
4275cat confdefs.h >>conftest.$ac_ext
4276cat >>conftest.$ac_ext <<_ACEOF
4277/* end confdefs.h.  */
4278#include <signal.h>
4279int
4280main ()
4281{
4282
4283	int mask = sigmask(SIGINT);
4284	sigsetmask(mask); sigblock(mask); sigpause(mask);
4285
4286  ;
4287  return 0;
4288}
4289_ACEOF
4290rm -f conftest.$ac_objext conftest$ac_exeext
4291if { (eval echo "$as_me:4291: \"$ac_link\"") >&5
4292  (eval $ac_link) 2>&5
4293  ac_status=$?
4294  echo "$as_me:4294: \$? = $ac_status" >&5
4295  (exit $ac_status); } &&
4296         { ac_try='test -s conftest$ac_exeext'
4297  { (eval echo "$as_me:4297: \"$ac_try\"") >&5
4298  (eval $ac_try) 2>&5
4299  ac_status=$?
4300  echo "$as_me:4300: \$? = $ac_status" >&5
4301  (exit $ac_status); }; }; then
4302  bash_cv_signal_vintage=4.2bsd
4303else
4304  echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
4306
4307
4308      cat >conftest.$ac_ext <<_ACEOF
4309#line 4309 "configure"
4310/* confdefs.h.  */
4311_ACEOF
4312cat confdefs.h >>conftest.$ac_ext
4313cat >>conftest.$ac_ext <<_ACEOF
4314/* end confdefs.h.  */
4315
4316	#include <signal.h>
4317	RETSIGTYPE foo() { }
4318int
4319main ()
4320{
4321
4322		int mask = sigmask(SIGINT);
4323		sigset(SIGINT, foo); sigrelse(SIGINT);
4324		sighold(SIGINT); sigpause(SIGINT);
4325
4326  ;
4327  return 0;
4328}
4329_ACEOF
4330rm -f conftest.$ac_objext conftest$ac_exeext
4331if { (eval echo "$as_me:4331: \"$ac_link\"") >&5
4332  (eval $ac_link) 2>&5
4333  ac_status=$?
4334  echo "$as_me:4334: \$? = $ac_status" >&5
4335  (exit $ac_status); } &&
4336         { ac_try='test -s conftest$ac_exeext'
4337  { (eval echo "$as_me:4337: \"$ac_try\"") >&5
4338  (eval $ac_try) 2>&5
4339  ac_status=$?
4340  echo "$as_me:4340: \$? = $ac_status" >&5
4341  (exit $ac_status); }; }; then
4342  bash_cv_signal_vintage=svr3
4343else
4344  echo "$as_me: failed program was:" >&5
4345sed 's/^/| /' conftest.$ac_ext >&5
4346
4347bash_cv_signal_vintage=v7
4348
4349fi
4350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4351
4352fi
4353rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4354
4355fi
4356rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4357
4358fi
4359
4360echo "$as_me:4360: result: $bash_cv_signal_vintage" >&5
4361echo "${ECHO_T}$bash_cv_signal_vintage" >&6
4362if test "$bash_cv_signal_vintage" = posix; then
4363cat >>confdefs.h <<\_ACEOF
4364#define HAVE_POSIX_SIGNALS 1
4365_ACEOF
4366
4367elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
4368cat >>confdefs.h <<\_ACEOF
4369#define HAVE_BSD_SIGNALS 1
4370_ACEOF
4371
4372elif test "$bash_cv_signal_vintage" = svr3; then
4373cat >>confdefs.h <<\_ACEOF
4374#define HAVE_USG_SIGHOLD 1
4375_ACEOF
4376
4377fi
4378
4379
4380
4381echo "$as_me:4381: checking if signal handlers must be reinstalled when invoked" >&5
4382echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
4383if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
4384  echo $ECHO_N "(cached) $ECHO_C" >&6
4385else
4386  if test "$cross_compiling" = yes; then
4387  { echo "$as_me:4387: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
4388echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
4389    bash_cv_must_reinstall_sighandlers=no
4390
4391else
4392  cat >conftest.$ac_ext <<_ACEOF
4393#line 4393 "configure"
4394/* confdefs.h.  */
4395_ACEOF
4396cat confdefs.h >>conftest.$ac_ext
4397cat >>conftest.$ac_ext <<_ACEOF
4398/* end confdefs.h.  */
4399
4400#include <signal.h>
4401#ifdef HAVE_UNISTD_H
4402#include <unistd.h>
4403#endif
4404
4405typedef RETSIGTYPE sigfunc();
4406
4407int nsigint;
4408
4409#ifdef HAVE_POSIX_SIGNALS
4410sigfunc *
4411set_signal_handler(sig, handler)
4412     int sig;
4413     sigfunc *handler;
4414{
4415  struct sigaction act, oact;
4416  act.sa_handler = handler;
4417  act.sa_flags = 0;
4418  sigemptyset (&act.sa_mask);
4419  sigemptyset (&oact.sa_mask);
4420  sigaction (sig, &act, &oact);
4421  return (oact.sa_handler);
4422}
4423#else
4424#define set_signal_handler(s, h) signal(s, h)
4425#endif
4426
4427RETSIGTYPE
4428sigint(s)
4429int s;
4430{
4431  nsigint++;
4432}
4433
4434main()
4435{
4436	nsigint = 0;
4437	set_signal_handler(SIGINT, sigint);
4438	kill((int)getpid(), SIGINT);
4439	kill((int)getpid(), SIGINT);
4440	exit(nsigint != 2);
4441}
4442
4443_ACEOF
4444rm -f conftest$ac_exeext
4445if { (eval echo "$as_me:4445: \"$ac_link\"") >&5
4446  (eval $ac_link) 2>&5
4447  ac_status=$?
4448  echo "$as_me:4448: \$? = $ac_status" >&5
4449  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4450  { (eval echo "$as_me:4450: \"$ac_try\"") >&5
4451  (eval $ac_try) 2>&5
4452  ac_status=$?
4453  echo "$as_me:4453: \$? = $ac_status" >&5
4454  (exit $ac_status); }; }; then
4455  bash_cv_must_reinstall_sighandlers=no
4456else
4457  echo "$as_me: program exited with status $ac_status" >&5
4458echo "$as_me: failed program was:" >&5
4459sed 's/^/| /' conftest.$ac_ext >&5
4460
4461( exit $ac_status )
4462bash_cv_must_reinstall_sighandlers=yes
4463fi
4464rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4465fi
4466fi
4467
4468echo "$as_me:4468: result: $bash_cv_must_reinstall_sighandlers" >&5
4469echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
4470if test $bash_cv_must_reinstall_sighandlers = yes; then
4471cat >>confdefs.h <<\_ACEOF
4472#define MUST_REINSTALL_SIGHANDLERS 1
4473_ACEOF
4474
4475fi
4476
4477
4478
4479echo "$as_me:4479: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
4480echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
4481if test "${bash_cv_func_sigsetjmp+set}" = set; then
4482  echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484  if test "$cross_compiling" = yes; then
4485  { echo "$as_me:4485: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
4486echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
4487     bash_cv_func_sigsetjmp=missing
4488
4489else
4490  cat >conftest.$ac_ext <<_ACEOF
4491#line 4491 "configure"
4492/* confdefs.h.  */
4493_ACEOF
4494cat confdefs.h >>conftest.$ac_ext
4495cat >>conftest.$ac_ext <<_ACEOF
4496/* end confdefs.h.  */
4497
4498#ifdef HAVE_UNISTD_H
4499#include <unistd.h>
4500#endif
4501#include <sys/types.h>
4502#include <signal.h>
4503#include <setjmp.h>
4504
4505main()
4506{
4507#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
4508exit (1);
4509#else
4510
4511int code;
4512sigset_t set, oset;
4513sigjmp_buf xx;
4514
4515/* get the mask */
4516sigemptyset(&set);
4517sigemptyset(&oset);
4518sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
4519sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
4520
4521/* save it */
4522code = sigsetjmp(xx, 1);
4523if (code)
4524  exit(0);	/* could get sigmask and compare to oset here. */
4525
4526/* change it */
4527sigaddset(&set, SIGINT);
4528sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
4529
4530/* and siglongjmp */
4531siglongjmp(xx, 10);
4532exit(1);
4533#endif
4534}
4535_ACEOF
4536rm -f conftest$ac_exeext
4537if { (eval echo "$as_me:4537: \"$ac_link\"") >&5
4538  (eval $ac_link) 2>&5
4539  ac_status=$?
4540  echo "$as_me:4540: \$? = $ac_status" >&5
4541  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4542  { (eval echo "$as_me:4542: \"$ac_try\"") >&5
4543  (eval $ac_try) 2>&5
4544  ac_status=$?
4545  echo "$as_me:4545: \$? = $ac_status" >&5
4546  (exit $ac_status); }; }; then
4547  bash_cv_func_sigsetjmp=present
4548else
4549  echo "$as_me: program exited with status $ac_status" >&5
4550echo "$as_me: failed program was:" >&5
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
4553( exit $ac_status )
4554bash_cv_func_sigsetjmp=missing
4555fi
4556rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4557fi
4558fi
4559
4560echo "$as_me:4560: result: $bash_cv_func_sigsetjmp" >&5
4561echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
4562if test $bash_cv_func_sigsetjmp = present; then
4563cat >>confdefs.h <<\_ACEOF
4564#define HAVE_POSIX_SIGSETJMP 1
4565_ACEOF
4566
4567fi
4568
4569echo "$as_me:4569: checking for lstat" >&5
4570echo $ECHO_N "checking for lstat... $ECHO_C" >&6
4571if test "${bash_cv_func_lstat+set}" = set; then
4572  echo $ECHO_N "(cached) $ECHO_C" >&6
4573else
4574  cat >conftest.$ac_ext <<_ACEOF
4575#line 4575 "configure"
4576/* confdefs.h.  */
4577_ACEOF
4578cat confdefs.h >>conftest.$ac_ext
4579cat >>conftest.$ac_ext <<_ACEOF
4580/* end confdefs.h.  */
4581
4582#include <sys/types.h>
4583#include <sys/stat.h>
4584
4585int
4586main ()
4587{
4588 lstat(".",(struct stat *)0);
4589  ;
4590  return 0;
4591}
4592_ACEOF
4593rm -f conftest.$ac_objext conftest$ac_exeext
4594if { (eval echo "$as_me:4594: \"$ac_link\"") >&5
4595  (eval $ac_link) 2>&5
4596  ac_status=$?
4597  echo "$as_me:4597: \$? = $ac_status" >&5
4598  (exit $ac_status); } &&
4599         { ac_try='test -s conftest$ac_exeext'
4600  { (eval echo "$as_me:4600: \"$ac_try\"") >&5
4601  (eval $ac_try) 2>&5
4602  ac_status=$?
4603  echo "$as_me:4603: \$? = $ac_status" >&5
4604  (exit $ac_status); }; }; then
4605  bash_cv_func_lstat=yes
4606else
4607  echo "$as_me: failed program was:" >&5
4608sed 's/^/| /' conftest.$ac_ext >&5
4609
4610bash_cv_func_lstat=no
4611fi
4612rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4613fi
4614echo "$as_me:4614: result: $bash_cv_func_lstat" >&5
4615echo "${ECHO_T}$bash_cv_func_lstat" >&6
4616if test $bash_cv_func_lstat = yes; then
4617  cat >>confdefs.h <<\_ACEOF
4618#define HAVE_LSTAT 1
4619_ACEOF
4620
4621fi
4622
4623
4624echo "$as_me:4624: checking whether or not strcoll and strcmp differ" >&5
4625echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
4626if test "${bash_cv_func_strcoll_broken+set}" = set; then
4627  echo $ECHO_N "(cached) $ECHO_C" >&6
4628else
4629  if test "$cross_compiling" = yes; then
4630  { echo "$as_me:4630: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
4631echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
4632    bash_cv_func_strcoll_broken=no
4633
4634else
4635  cat >conftest.$ac_ext <<_ACEOF
4636#line 4636 "configure"
4637/* confdefs.h.  */
4638_ACEOF
4639cat confdefs.h >>conftest.$ac_ext
4640cat >>conftest.$ac_ext <<_ACEOF
4641/* end confdefs.h.  */
4642
4643#include <stdio.h>
4644#if defined (HAVE_LOCALE_H)
4645#include <locale.h>
4646#endif
4647
4648main(c, v)
4649int     c;
4650char    *v[];
4651{
4652        int     r1, r2;
4653        char    *deflocale, *defcoll;
4654
4655#ifdef HAVE_SETLOCALE
4656        deflocale = setlocale(LC_ALL, "");
4657	defcoll = setlocale(LC_COLLATE, "");
4658#endif
4659
4660#ifdef HAVE_STRCOLL
4661	/* These two values are taken from tests/glob-test. */
4662        r1 = strcoll("abd", "aXd");
4663#else
4664	r1 = 0;
4665#endif
4666        r2 = strcmp("abd", "aXd");
4667
4668	/* These two should both be greater than 0.  It is permissible for
4669	   a system to return different values, as long as the sign is the
4670	   same. */
4671
4672        /* Exit with 1 (failure) if these two values are both > 0, since
4673	   this tests whether strcoll(3) is broken with respect to strcmp(3)
4674	   in the default locale. */
4675	exit (r1 > 0 && r2 > 0);
4676}
4677
4678_ACEOF
4679rm -f conftest$ac_exeext
4680if { (eval echo "$as_me:4680: \"$ac_link\"") >&5
4681  (eval $ac_link) 2>&5
4682  ac_status=$?
4683  echo "$as_me:4683: \$? = $ac_status" >&5
4684  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4685  { (eval echo "$as_me:4685: \"$ac_try\"") >&5
4686  (eval $ac_try) 2>&5
4687  ac_status=$?
4688  echo "$as_me:4688: \$? = $ac_status" >&5
4689  (exit $ac_status); }; }; then
4690  bash_cv_func_strcoll_broken=yes
4691else
4692  echo "$as_me: program exited with status $ac_status" >&5
4693echo "$as_me: failed program was:" >&5
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696( exit $ac_status )
4697bash_cv_func_strcoll_broken=no
4698fi
4699rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4700fi
4701fi
4702
4703echo "$as_me:4703: result: $bash_cv_func_strcoll_broken" >&5
4704echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
4705if test $bash_cv_func_strcoll_broken = yes; then
4706cat >>confdefs.h <<\_ACEOF
4707#define STRCOLL_BROKEN 1
4708_ACEOF
4709
4710fi
4711
4712
4713echo "$as_me:4713: checking whether getpw functions are declared in pwd.h" >&5
4714echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
4715if test "${bash_cv_getpw_declared+set}" = set; then
4716  echo $ECHO_N "(cached) $ECHO_C" >&6
4717else
4718  cat >conftest.$ac_ext <<_ACEOF
4719#line 4719 "configure"
4720/* confdefs.h.  */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h.  */
4725
4726#include <sys/types.h>
4727#ifdef HAVE_UNISTD_H
4728#  include <unistd.h>
4729#endif
4730#include <pwd.h>
4731
4732_ACEOF
4733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4734  $EGREP "getpwuid" >/dev/null 2>&1; then
4735  bash_cv_getpw_declared=yes
4736else
4737  bash_cv_getpw_declared=no
4738fi
4739rm -f conftest*
4740
4741fi
4742
4743echo "$as_me:4743: result: $bash_cv_getpw_declared" >&5
4744echo "${ECHO_T}$bash_cv_getpw_declared" >&6
4745if test $bash_cv_getpw_declared = yes; then
4746cat >>confdefs.h <<\_ACEOF
4747#define HAVE_GETPW_DECLS 1
4748_ACEOF
4749
4750fi
4751
4752
4753echo "$as_me:4753: checking whether termios.h defines TIOCGWINSZ" >&5
4754echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
4755if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
4756  echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758  cat >conftest.$ac_ext <<_ACEOF
4759#line 4759 "configure"
4760/* confdefs.h.  */
4761_ACEOF
4762cat confdefs.h >>conftest.$ac_ext
4763cat >>conftest.$ac_ext <<_ACEOF
4764/* end confdefs.h.  */
4765#include <sys/types.h>
4766#include <termios.h>
4767#ifdef TIOCGWINSZ
4768  yes
4769#endif
4770
4771_ACEOF
4772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773  $EGREP "yes" >/dev/null 2>&1; then
4774  ac_cv_sys_tiocgwinsz_in_termios_h=yes
4775else
4776  ac_cv_sys_tiocgwinsz_in_termios_h=no
4777fi
4778rm -f conftest*
4779
4780fi
4781echo "$as_me:4781: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
4782echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
4783
4784if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
4785  echo "$as_me:4785: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
4786echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
4787if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
4788  echo $ECHO_N "(cached) $ECHO_C" >&6
4789else
4790  cat >conftest.$ac_ext <<_ACEOF
4791#line 4791 "configure"
4792/* confdefs.h.  */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h.  */
4797#include <sys/types.h>
4798#include <sys/ioctl.h>
4799#ifdef TIOCGWINSZ
4800  yes
4801#endif
4802
4803_ACEOF
4804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4805  $EGREP "yes" >/dev/null 2>&1; then
4806  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
4807else
4808  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
4809fi
4810rm -f conftest*
4811
4812fi
4813echo "$as_me:4813: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
4814echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
4815
4816  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
4817
4818cat >>confdefs.h <<\_ACEOF
4819#define GWINSZ_IN_SYS_IOCTL 1
4820_ACEOF
4821
4822  fi
4823fi
4824
4825
4826echo "$as_me:4826: checking whether signal handlers are of type void" >&5
4827echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
4828if test "${bash_cv_void_sighandler+set}" = set; then
4829  echo $ECHO_N "(cached) $ECHO_C" >&6
4830else
4831  cat >conftest.$ac_ext <<_ACEOF
4832#line 4832 "configure"
4833/* confdefs.h.  */
4834_ACEOF
4835cat confdefs.h >>conftest.$ac_ext
4836cat >>conftest.$ac_ext <<_ACEOF
4837/* end confdefs.h.  */
4838#include <sys/types.h>
4839#include <signal.h>
4840#ifdef signal
4841#undef signal
4842#endif
4843#ifdef __cplusplus
4844extern "C"
4845#endif
4846void (*signal ()) ();
4847int
4848main ()
4849{
4850int i;
4851  ;
4852  return 0;
4853}
4854_ACEOF
4855rm -f conftest.$ac_objext
4856if { (eval echo "$as_me:4856: \"$ac_compile\"") >&5
4857  (eval $ac_compile) 2>&5
4858  ac_status=$?
4859  echo "$as_me:4859: \$? = $ac_status" >&5
4860  (exit $ac_status); } &&
4861         { ac_try='test -s conftest.$ac_objext'
4862  { (eval echo "$as_me:4862: \"$ac_try\"") >&5
4863  (eval $ac_try) 2>&5
4864  ac_status=$?
4865  echo "$as_me:4865: \$? = $ac_status" >&5
4866  (exit $ac_status); }; }; then
4867  bash_cv_void_sighandler=yes
4868else
4869  echo "$as_me: failed program was:" >&5
4870sed 's/^/| /' conftest.$ac_ext >&5
4871
4872bash_cv_void_sighandler=no
4873fi
4874rm -f conftest.$ac_objext conftest.$ac_ext
4875fi
4876echo "$as_me:4876: result: $bash_cv_void_sighandler" >&5
4877echo "${ECHO_T}$bash_cv_void_sighandler" >&6
4878if test $bash_cv_void_sighandler = yes; then
4879cat >>confdefs.h <<\_ACEOF
4880#define VOID_SIGHANDLER 1
4881_ACEOF
4882
4883fi
4884
4885echo "$as_me:4885: checking for TIOCSTAT in sys/ioctl.h" >&5
4886echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
4887if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
4888  echo $ECHO_N "(cached) $ECHO_C" >&6
4889else
4890  cat >conftest.$ac_ext <<_ACEOF
4891#line 4891 "configure"
4892/* confdefs.h.  */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h.  */
4897#include <sys/types.h>
4898#include <sys/ioctl.h>
4899int
4900main ()
4901{
4902int x = TIOCSTAT;
4903  ;
4904  return 0;
4905}
4906_ACEOF
4907rm -f conftest.$ac_objext
4908if { (eval echo "$as_me:4908: \"$ac_compile\"") >&5
4909  (eval $ac_compile) 2>&5
4910  ac_status=$?
4911  echo "$as_me:4911: \$? = $ac_status" >&5
4912  (exit $ac_status); } &&
4913         { ac_try='test -s conftest.$ac_objext'
4914  { (eval echo "$as_me:4914: \"$ac_try\"") >&5
4915  (eval $ac_try) 2>&5
4916  ac_status=$?
4917  echo "$as_me:4917: \$? = $ac_status" >&5
4918  (exit $ac_status); }; }; then
4919  bash_cv_tiocstat_in_ioctl=yes
4920else
4921  echo "$as_me: failed program was:" >&5
4922sed 's/^/| /' conftest.$ac_ext >&5
4923
4924bash_cv_tiocstat_in_ioctl=no
4925fi
4926rm -f conftest.$ac_objext conftest.$ac_ext
4927fi
4928
4929echo "$as_me:4929: result: $bash_cv_tiocstat_in_ioctl" >&5
4930echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
4931if test $bash_cv_tiocstat_in_ioctl = yes; then
4932cat >>confdefs.h <<\_ACEOF
4933#define TIOCSTAT_IN_SYS_IOCTL 1
4934_ACEOF
4935
4936fi
4937
4938echo "$as_me:4938: checking for FIONREAD in sys/ioctl.h" >&5
4939echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
4940if test "${bash_cv_fionread_in_ioctl+set}" = set; then
4941  echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
4943  cat >conftest.$ac_ext <<_ACEOF
4944#line 4944 "configure"
4945/* confdefs.h.  */
4946_ACEOF
4947cat confdefs.h >>conftest.$ac_ext
4948cat >>conftest.$ac_ext <<_ACEOF
4949/* end confdefs.h.  */
4950#include <sys/types.h>
4951#include <sys/ioctl.h>
4952int
4953main ()
4954{
4955int x = FIONREAD;
4956  ;
4957  return 0;
4958}
4959_ACEOF
4960rm -f conftest.$ac_objext
4961if { (eval echo "$as_me:4961: \"$ac_compile\"") >&5
4962  (eval $ac_compile) 2>&5
4963  ac_status=$?
4964  echo "$as_me:4964: \$? = $ac_status" >&5
4965  (exit $ac_status); } &&
4966         { ac_try='test -s conftest.$ac_objext'
4967  { (eval echo "$as_me:4967: \"$ac_try\"") >&5
4968  (eval $ac_try) 2>&5
4969  ac_status=$?
4970  echo "$as_me:4970: \$? = $ac_status" >&5
4971  (exit $ac_status); }; }; then
4972  bash_cv_fionread_in_ioctl=yes
4973else
4974  echo "$as_me: failed program was:" >&5
4975sed 's/^/| /' conftest.$ac_ext >&5
4976
4977bash_cv_fionread_in_ioctl=no
4978fi
4979rm -f conftest.$ac_objext conftest.$ac_ext
4980fi
4981
4982echo "$as_me:4982: result: $bash_cv_fionread_in_ioctl" >&5
4983echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
4984if test $bash_cv_fionread_in_ioctl = yes; then
4985cat >>confdefs.h <<\_ACEOF
4986#define FIONREAD_IN_SYS_IOCTL 1
4987_ACEOF
4988
4989fi
4990
4991echo "$as_me:4991: checking for speed_t in sys/types.h" >&5
4992echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
4993if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
4994  echo $ECHO_N "(cached) $ECHO_C" >&6
4995else
4996  cat >conftest.$ac_ext <<_ACEOF
4997#line 4997 "configure"
4998/* confdefs.h.  */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h.  */
5003#include <sys/types.h>
5004int
5005main ()
5006{
5007speed_t x;
5008  ;
5009  return 0;
5010}
5011_ACEOF
5012rm -f conftest.$ac_objext
5013if { (eval echo "$as_me:5013: \"$ac_compile\"") >&5
5014  (eval $ac_compile) 2>&5
5015  ac_status=$?
5016  echo "$as_me:5016: \$? = $ac_status" >&5
5017  (exit $ac_status); } &&
5018         { ac_try='test -s conftest.$ac_objext'
5019  { (eval echo "$as_me:5019: \"$ac_try\"") >&5
5020  (eval $ac_try) 2>&5
5021  ac_status=$?
5022  echo "$as_me:5022: \$? = $ac_status" >&5
5023  (exit $ac_status); }; }; then
5024  bash_cv_speed_t_in_sys_types=yes
5025else
5026  echo "$as_me: failed program was:" >&5
5027sed 's/^/| /' conftest.$ac_ext >&5
5028
5029bash_cv_speed_t_in_sys_types=no
5030fi
5031rm -f conftest.$ac_objext conftest.$ac_ext
5032fi
5033
5034echo "$as_me:5034: result: $bash_cv_speed_t_in_sys_types" >&5
5035echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
5036if test $bash_cv_speed_t_in_sys_types = yes; then
5037cat >>confdefs.h <<\_ACEOF
5038#define SPEED_T_IN_SYS_TYPES 1
5039_ACEOF
5040
5041fi
5042
5043echo "$as_me:5043: checking for struct winsize in sys/ioctl.h and termios.h" >&5
5044echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
5045if test "${bash_cv_struct_winsize_header+set}" = set; then
5046  echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048  cat >conftest.$ac_ext <<_ACEOF
5049#line 5049 "configure"
5050/* confdefs.h.  */
5051_ACEOF
5052cat confdefs.h >>conftest.$ac_ext
5053cat >>conftest.$ac_ext <<_ACEOF
5054/* end confdefs.h.  */
5055#include <sys/types.h>
5056#include <sys/ioctl.h>
5057int
5058main ()
5059{
5060struct winsize x;
5061  ;
5062  return 0;
5063}
5064_ACEOF
5065rm -f conftest.$ac_objext
5066if { (eval echo "$as_me:5066: \"$ac_compile\"") >&5
5067  (eval $ac_compile) 2>&5
5068  ac_status=$?
5069  echo "$as_me:5069: \$? = $ac_status" >&5
5070  (exit $ac_status); } &&
5071         { ac_try='test -s conftest.$ac_objext'
5072  { (eval echo "$as_me:5072: \"$ac_try\"") >&5
5073  (eval $ac_try) 2>&5
5074  ac_status=$?
5075  echo "$as_me:5075: \$? = $ac_status" >&5
5076  (exit $ac_status); }; }; then
5077  bash_cv_struct_winsize_header=ioctl_h
5078else
5079  echo "$as_me: failed program was:" >&5
5080sed 's/^/| /' conftest.$ac_ext >&5
5081
5082cat >conftest.$ac_ext <<_ACEOF
5083#line 5083 "configure"
5084/* confdefs.h.  */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h.  */
5089#include <sys/types.h>
5090#include <termios.h>
5091int
5092main ()
5093{
5094struct winsize x;
5095  ;
5096  return 0;
5097}
5098_ACEOF
5099rm -f conftest.$ac_objext
5100if { (eval echo "$as_me:5100: \"$ac_compile\"") >&5
5101  (eval $ac_compile) 2>&5
5102  ac_status=$?
5103  echo "$as_me:5103: \$? = $ac_status" >&5
5104  (exit $ac_status); } &&
5105         { ac_try='test -s conftest.$ac_objext'
5106  { (eval echo "$as_me:5106: \"$ac_try\"") >&5
5107  (eval $ac_try) 2>&5
5108  ac_status=$?
5109  echo "$as_me:5109: \$? = $ac_status" >&5
5110  (exit $ac_status); }; }; then
5111  bash_cv_struct_winsize_header=termios_h
5112else
5113  echo "$as_me: failed program was:" >&5
5114sed 's/^/| /' conftest.$ac_ext >&5
5115
5116bash_cv_struct_winsize_header=other
5117fi
5118rm -f conftest.$ac_objext conftest.$ac_ext
5119
5120fi
5121rm -f conftest.$ac_objext conftest.$ac_ext
5122fi
5123
5124if test $bash_cv_struct_winsize_header = ioctl_h; then
5125  echo "$as_me:5125: result: sys/ioctl.h" >&5
5126echo "${ECHO_T}sys/ioctl.h" >&6
5127  cat >>confdefs.h <<\_ACEOF
5128#define STRUCT_WINSIZE_IN_SYS_IOCTL 1
5129_ACEOF
5130
5131elif test $bash_cv_struct_winsize_header = termios_h; then
5132  echo "$as_me:5132: result: termios.h" >&5
5133echo "${ECHO_T}termios.h" >&6
5134  cat >>confdefs.h <<\_ACEOF
5135#define STRUCT_WINSIZE_IN_TERMIOS 1
5136_ACEOF
5137
5138else
5139  echo "$as_me:5139: result: not found" >&5
5140echo "${ECHO_T}not found" >&6
5141fi
5142
5143
5144echo "$as_me:5144: checking if struct dirent has a d_ino member" >&5
5145echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6
5146if test "${bash_cv_dirent_has_dino+set}" = set; then
5147  echo $ECHO_N "(cached) $ECHO_C" >&6
5148else
5149  cat >conftest.$ac_ext <<_ACEOF
5150#line 5150 "configure"
5151/* confdefs.h.  */
5152_ACEOF
5153cat confdefs.h >>conftest.$ac_ext
5154cat >>conftest.$ac_ext <<_ACEOF
5155/* end confdefs.h.  */
5156
5157#include <stdio.h>
5158#include <sys/types.h>
5159#ifdef HAVE_UNISTD_H
5160# include <unistd.h>
5161#endif /* HAVE_UNISTD_H */
5162#if defined(HAVE_DIRENT_H)
5163# include <dirent.h>
5164#else
5165# define dirent direct
5166# ifdef HAVE_SYS_NDIR_H
5167#  include <sys/ndir.h>
5168# endif /* SYSNDIR */
5169# ifdef HAVE_SYS_DIR_H
5170#  include <sys/dir.h>
5171# endif /* SYSDIR */
5172# ifdef HAVE_NDIR_H
5173#  include <ndir.h>
5174# endif
5175#endif /* HAVE_DIRENT_H */
5176
5177int
5178main ()
5179{
5180
5181struct dirent d; int z; z = d.d_ino;
5182
5183  ;
5184  return 0;
5185}
5186_ACEOF
5187rm -f conftest.$ac_objext
5188if { (eval echo "$as_me:5188: \"$ac_compile\"") >&5
5189  (eval $ac_compile) 2>&5
5190  ac_status=$?
5191  echo "$as_me:5191: \$? = $ac_status" >&5
5192  (exit $ac_status); } &&
5193         { ac_try='test -s conftest.$ac_objext'
5194  { (eval echo "$as_me:5194: \"$ac_try\"") >&5
5195  (eval $ac_try) 2>&5
5196  ac_status=$?
5197  echo "$as_me:5197: \$? = $ac_status" >&5
5198  (exit $ac_status); }; }; then
5199  bash_cv_dirent_has_dino=yes
5200else
5201  echo "$as_me: failed program was:" >&5
5202sed 's/^/| /' conftest.$ac_ext >&5
5203
5204bash_cv_dirent_has_dino=no
5205fi
5206rm -f conftest.$ac_objext conftest.$ac_ext
5207fi
5208
5209echo "$as_me:5209: result: $bash_cv_dirent_has_dino" >&5
5210echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
5211if test $bash_cv_dirent_has_dino = yes; then
5212cat >>confdefs.h <<\_ACEOF
5213#define STRUCT_DIRENT_HAS_D_INO 1
5214_ACEOF
5215
5216fi
5217
5218
5219echo "$as_me:5219: checking if struct dirent has a d_fileno member" >&5
5220echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6
5221if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
5222  echo $ECHO_N "(cached) $ECHO_C" >&6
5223else
5224  cat >conftest.$ac_ext <<_ACEOF
5225#line 5225 "configure"
5226/* confdefs.h.  */
5227_ACEOF
5228cat confdefs.h >>conftest.$ac_ext
5229cat >>conftest.$ac_ext <<_ACEOF
5230/* end confdefs.h.  */
5231
5232#include <stdio.h>
5233#include <sys/types.h>
5234#ifdef HAVE_UNISTD_H
5235# include <unistd.h>
5236#endif /* HAVE_UNISTD_H */
5237#if defined(HAVE_DIRENT_H)
5238# include <dirent.h>
5239#else
5240# define dirent direct
5241# ifdef HAVE_SYS_NDIR_H
5242#  include <sys/ndir.h>
5243# endif /* SYSNDIR */
5244# ifdef HAVE_SYS_DIR_H
5245#  include <sys/dir.h>
5246# endif /* SYSDIR */
5247# ifdef HAVE_NDIR_H
5248#  include <ndir.h>
5249# endif
5250#endif /* HAVE_DIRENT_H */
5251
5252int
5253main ()
5254{
5255
5256struct dirent d; int z; z = d.d_fileno;
5257
5258  ;
5259  return 0;
5260}
5261_ACEOF
5262rm -f conftest.$ac_objext
5263if { (eval echo "$as_me:5263: \"$ac_compile\"") >&5
5264  (eval $ac_compile) 2>&5
5265  ac_status=$?
5266  echo "$as_me:5266: \$? = $ac_status" >&5
5267  (exit $ac_status); } &&
5268         { ac_try='test -s conftest.$ac_objext'
5269  { (eval echo "$as_me:5269: \"$ac_try\"") >&5
5270  (eval $ac_try) 2>&5
5271  ac_status=$?
5272  echo "$as_me:5272: \$? = $ac_status" >&5
5273  (exit $ac_status); }; }; then
5274  bash_cv_dirent_has_d_fileno=yes
5275else
5276  echo "$as_me: failed program was:" >&5
5277sed 's/^/| /' conftest.$ac_ext >&5
5278
5279bash_cv_dirent_has_d_fileno=no
5280fi
5281rm -f conftest.$ac_objext conftest.$ac_ext
5282fi
5283
5284echo "$as_me:5284: result: $bash_cv_dirent_has_d_fileno" >&5
5285echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
5286if test $bash_cv_dirent_has_d_fileno = yes; then
5287cat >>confdefs.h <<\_ACEOF
5288#define STRUCT_DIRENT_HAS_D_FILENO 1
5289_ACEOF
5290
5291fi
5292
5293
5294case "$host_os" in
5295aix*)   prefer_curses=yes ;;
5296esac
5297
5298if test "X$bash_cv_termcap_lib" = "X"; then
5299_bash_needmsg=yes
5300else
5301echo "$as_me:5301: checking which library has the termcap functions" >&5
5302echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
5303_bash_needmsg=
5304fi
5305if test "${bash_cv_termcap_lib+set}" = set; then
5306  echo $ECHO_N "(cached) $ECHO_C" >&6
5307else
5308  echo "$as_me:5308: checking for tgetent in -ltermcap" >&5
5309echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5310if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5311  echo $ECHO_N "(cached) $ECHO_C" >&6
5312else
5313  ac_check_lib_save_LIBS=$LIBS
5314LIBS="-ltermcap  $LIBS"
5315cat >conftest.$ac_ext <<_ACEOF
5316#line 5316 "configure"
5317/* confdefs.h.  */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h.  */
5322
5323/* Override any gcc2 internal prototype to avoid an error.  */
5324#ifdef __cplusplus
5325extern "C"
5326#endif
5327/* We use char because int might match the return type of a gcc2
5328   builtin and then its argument prototype would still apply.  */
5329char tgetent ();
5330int
5331main ()
5332{
5333tgetent ();
5334  ;
5335  return 0;
5336}
5337_ACEOF
5338rm -f conftest.$ac_objext conftest$ac_exeext
5339if { (eval echo "$as_me:5339: \"$ac_link\"") >&5
5340  (eval $ac_link) 2>&5
5341  ac_status=$?
5342  echo "$as_me:5342: \$? = $ac_status" >&5
5343  (exit $ac_status); } &&
5344         { ac_try='test -s conftest$ac_exeext'
5345  { (eval echo "$as_me:5345: \"$ac_try\"") >&5
5346  (eval $ac_try) 2>&5
5347  ac_status=$?
5348  echo "$as_me:5348: \$? = $ac_status" >&5
5349  (exit $ac_status); }; }; then
5350  ac_cv_lib_termcap_tgetent=yes
5351else
5352  echo "$as_me: failed program was:" >&5
5353sed 's/^/| /' conftest.$ac_ext >&5
5354
5355ac_cv_lib_termcap_tgetent=no
5356fi
5357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5358LIBS=$ac_check_lib_save_LIBS
5359fi
5360echo "$as_me:5360: result: $ac_cv_lib_termcap_tgetent" >&5
5361echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5362if test $ac_cv_lib_termcap_tgetent = yes; then
5363  bash_cv_termcap_lib=libtermcap
5364else
5365  echo "$as_me:5365: checking for tgetent in -ltinfo" >&5
5366echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
5367if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5368  echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370  ac_check_lib_save_LIBS=$LIBS
5371LIBS="-ltinfo  $LIBS"
5372cat >conftest.$ac_ext <<_ACEOF
5373#line 5373 "configure"
5374/* confdefs.h.  */
5375_ACEOF
5376cat confdefs.h >>conftest.$ac_ext
5377cat >>conftest.$ac_ext <<_ACEOF
5378/* end confdefs.h.  */
5379
5380/* Override any gcc2 internal prototype to avoid an error.  */
5381#ifdef __cplusplus
5382extern "C"
5383#endif
5384/* We use char because int might match the return type of a gcc2
5385   builtin and then its argument prototype would still apply.  */
5386char tgetent ();
5387int
5388main ()
5389{
5390tgetent ();
5391  ;
5392  return 0;
5393}
5394_ACEOF
5395rm -f conftest.$ac_objext conftest$ac_exeext
5396if { (eval echo "$as_me:5396: \"$ac_link\"") >&5
5397  (eval $ac_link) 2>&5
5398  ac_status=$?
5399  echo "$as_me:5399: \$? = $ac_status" >&5
5400  (exit $ac_status); } &&
5401         { ac_try='test -s conftest$ac_exeext'
5402  { (eval echo "$as_me:5402: \"$ac_try\"") >&5
5403  (eval $ac_try) 2>&5
5404  ac_status=$?
5405  echo "$as_me:5405: \$? = $ac_status" >&5
5406  (exit $ac_status); }; }; then
5407  ac_cv_lib_tinfo_tgetent=yes
5408else
5409  echo "$as_me: failed program was:" >&5
5410sed 's/^/| /' conftest.$ac_ext >&5
5411
5412ac_cv_lib_tinfo_tgetent=no
5413fi
5414rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5415LIBS=$ac_check_lib_save_LIBS
5416fi
5417echo "$as_me:5417: result: $ac_cv_lib_tinfo_tgetent" >&5
5418echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
5419if test $ac_cv_lib_tinfo_tgetent = yes; then
5420  bash_cv_termcap_lib=libtinfo
5421else
5422  echo "$as_me:5422: checking for tgetent in -lcurses" >&5
5423echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5424if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5425  echo $ECHO_N "(cached) $ECHO_C" >&6
5426else
5427  ac_check_lib_save_LIBS=$LIBS
5428LIBS="-lcurses  $LIBS"
5429cat >conftest.$ac_ext <<_ACEOF
5430#line 5430 "configure"
5431/* confdefs.h.  */
5432_ACEOF
5433cat confdefs.h >>conftest.$ac_ext
5434cat >>conftest.$ac_ext <<_ACEOF
5435/* end confdefs.h.  */
5436
5437/* Override any gcc2 internal prototype to avoid an error.  */
5438#ifdef __cplusplus
5439extern "C"
5440#endif
5441/* We use char because int might match the return type of a gcc2
5442   builtin and then its argument prototype would still apply.  */
5443char tgetent ();
5444int
5445main ()
5446{
5447tgetent ();
5448  ;
5449  return 0;
5450}
5451_ACEOF
5452rm -f conftest.$ac_objext conftest$ac_exeext
5453if { (eval echo "$as_me:5453: \"$ac_link\"") >&5
5454  (eval $ac_link) 2>&5
5455  ac_status=$?
5456  echo "$as_me:5456: \$? = $ac_status" >&5
5457  (exit $ac_status); } &&
5458         { ac_try='test -s conftest$ac_exeext'
5459  { (eval echo "$as_me:5459: \"$ac_try\"") >&5
5460  (eval $ac_try) 2>&5
5461  ac_status=$?
5462  echo "$as_me:5462: \$? = $ac_status" >&5
5463  (exit $ac_status); }; }; then
5464  ac_cv_lib_curses_tgetent=yes
5465else
5466  echo "$as_me: failed program was:" >&5
5467sed 's/^/| /' conftest.$ac_ext >&5
5468
5469ac_cv_lib_curses_tgetent=no
5470fi
5471rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5472LIBS=$ac_check_lib_save_LIBS
5473fi
5474echo "$as_me:5474: result: $ac_cv_lib_curses_tgetent" >&5
5475echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5476if test $ac_cv_lib_curses_tgetent = yes; then
5477  bash_cv_termcap_lib=libcurses
5478else
5479  echo "$as_me:5479: checking for tgetent in -lncurses" >&5
5480echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5481if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5482  echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484  ac_check_lib_save_LIBS=$LIBS
5485LIBS="-lncurses  $LIBS"
5486cat >conftest.$ac_ext <<_ACEOF
5487#line 5487 "configure"
5488/* confdefs.h.  */
5489_ACEOF
5490cat confdefs.h >>conftest.$ac_ext
5491cat >>conftest.$ac_ext <<_ACEOF
5492/* end confdefs.h.  */
5493
5494/* Override any gcc2 internal prototype to avoid an error.  */
5495#ifdef __cplusplus
5496extern "C"
5497#endif
5498/* We use char because int might match the return type of a gcc2
5499   builtin and then its argument prototype would still apply.  */
5500char tgetent ();
5501int
5502main ()
5503{
5504tgetent ();
5505  ;
5506  return 0;
5507}
5508_ACEOF
5509rm -f conftest.$ac_objext conftest$ac_exeext
5510if { (eval echo "$as_me:5510: \"$ac_link\"") >&5
5511  (eval $ac_link) 2>&5
5512  ac_status=$?
5513  echo "$as_me:5513: \$? = $ac_status" >&5
5514  (exit $ac_status); } &&
5515         { ac_try='test -s conftest$ac_exeext'
5516  { (eval echo "$as_me:5516: \"$ac_try\"") >&5
5517  (eval $ac_try) 2>&5
5518  ac_status=$?
5519  echo "$as_me:5519: \$? = $ac_status" >&5
5520  (exit $ac_status); }; }; then
5521  ac_cv_lib_ncurses_tgetent=yes
5522else
5523  echo "$as_me: failed program was:" >&5
5524sed 's/^/| /' conftest.$ac_ext >&5
5525
5526ac_cv_lib_ncurses_tgetent=no
5527fi
5528rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5529LIBS=$ac_check_lib_save_LIBS
5530fi
5531echo "$as_me:5531: result: $ac_cv_lib_ncurses_tgetent" >&5
5532echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5533if test $ac_cv_lib_ncurses_tgetent = yes; then
5534  bash_cv_termcap_lib=libncurses
5535else
5536  bash_cv_termcap_lib=gnutermcap
5537fi
5538
5539fi
5540
5541fi
5542
5543fi
5544
5545fi
5546
5547if test "X$_bash_needmsg" = "Xyes"; then
5548echo "$as_me:5548: checking which library has the termcap functions" >&5
5549echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
5550fi
5551echo "$as_me:5551: result: using $bash_cv_termcap_lib" >&5
5552echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
5553if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5554LDFLAGS="$LDFLAGS -L./lib/termcap"
5555TERMCAP_LIB="./lib/termcap/libtermcap.a"
5556TERMCAP_DEP="./lib/termcap/libtermcap.a"
5557elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5558TERMCAP_LIB=-ltermcap
5559TERMCAP_DEP=
5560elif test $bash_cv_termcap_lib = libtinfo; then
5561TERMCAP_LIB=-ltinfo
5562TERMCAP_DEP=
5563elif test $bash_cv_termcap_lib = libncurses; then
5564TERMCAP_LIB=-lncurses
5565TERMCAP_DEP=
5566else
5567TERMCAP_LIB=-lcurses
5568TERMCAP_DEP=
5569fi
5570
5571if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
5572	if test "$prefer_curses" = yes; then
5573		TERMCAP_LIB=-lcurses
5574	else
5575		TERMCAP_LIB=-ltermcap	#default
5576	fi
5577fi
5578
5579
5580
5581for ac_header in wctype.h
5582do
5583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5584if eval "test \"\${$as_ac_Header+set}\" = set"; then
5585  echo "$as_me:5585: checking for $ac_header" >&5
5586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5587if eval "test \"\${$as_ac_Header+set}\" = set"; then
5588  echo $ECHO_N "(cached) $ECHO_C" >&6
5589fi
5590echo "$as_me:5590: result: `eval echo '${'$as_ac_Header'}'`" >&5
5591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5592else
5593  # Is the header compilable?
5594echo "$as_me:5594: checking $ac_header usability" >&5
5595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5596cat >conftest.$ac_ext <<_ACEOF
5597#line 5597 "configure"
5598/* confdefs.h.  */
5599_ACEOF
5600cat confdefs.h >>conftest.$ac_ext
5601cat >>conftest.$ac_ext <<_ACEOF
5602/* end confdefs.h.  */
5603$ac_includes_default
5604#include <$ac_header>
5605_ACEOF
5606rm -f conftest.$ac_objext
5607if { (eval echo "$as_me:5607: \"$ac_compile\"") >&5
5608  (eval $ac_compile) 2>&5
5609  ac_status=$?
5610  echo "$as_me:5610: \$? = $ac_status" >&5
5611  (exit $ac_status); } &&
5612         { ac_try='test -s conftest.$ac_objext'
5613  { (eval echo "$as_me:5613: \"$ac_try\"") >&5
5614  (eval $ac_try) 2>&5
5615  ac_status=$?
5616  echo "$as_me:5616: \$? = $ac_status" >&5
5617  (exit $ac_status); }; }; then
5618  ac_header_compiler=yes
5619else
5620  echo "$as_me: failed program was:" >&5
5621sed 's/^/| /' conftest.$ac_ext >&5
5622
5623ac_header_compiler=no
5624fi
5625rm -f conftest.$ac_objext conftest.$ac_ext
5626echo "$as_me:5626: result: $ac_header_compiler" >&5
5627echo "${ECHO_T}$ac_header_compiler" >&6
5628
5629# Is the header present?
5630echo "$as_me:5630: checking $ac_header presence" >&5
5631echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5632cat >conftest.$ac_ext <<_ACEOF
5633#line 5633 "configure"
5634/* confdefs.h.  */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h.  */
5639#include <$ac_header>
5640_ACEOF
5641if { (eval echo "$as_me:5641: \"$ac_cpp conftest.$ac_ext\"") >&5
5642  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5643  ac_status=$?
5644  grep -v '^ *+' conftest.er1 >conftest.err
5645  rm -f conftest.er1
5646  cat conftest.err >&5
5647  echo "$as_me:5647: \$? = $ac_status" >&5
5648  (exit $ac_status); } >/dev/null; then
5649  if test -s conftest.err; then
5650    ac_cpp_err=$ac_c_preproc_warn_flag
5651  else
5652    ac_cpp_err=
5653  fi
5654else
5655  ac_cpp_err=yes
5656fi
5657if test -z "$ac_cpp_err"; then
5658  ac_header_preproc=yes
5659else
5660  echo "$as_me: failed program was:" >&5
5661sed 's/^/| /' conftest.$ac_ext >&5
5662
5663  ac_header_preproc=no
5664fi
5665rm -f conftest.err conftest.$ac_ext
5666echo "$as_me:5666: result: $ac_header_preproc" >&5
5667echo "${ECHO_T}$ac_header_preproc" >&6
5668
5669# So?  What about this header?
5670case $ac_header_compiler:$ac_header_preproc in
5671  yes:no )
5672    { echo "$as_me:5672: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5673echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5674    { echo "$as_me:5674: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5675echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5676    (
5677      cat <<\_ASBOX
5678## ------------------------------------ ##
5679## Report this to bug-autoconf@gnu.org. ##
5680## ------------------------------------ ##
5681_ASBOX
5682    ) |
5683      sed "s/^/$as_me: WARNING:     /" >&2
5684    ;;
5685  no:yes )
5686    { echo "$as_me:5686: WARNING: $ac_header: present but cannot be compiled" >&5
5687echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5688    { echo "$as_me:5688: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5689echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5690    { echo "$as_me:5690: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5691echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5692    (
5693      cat <<\_ASBOX
5694## ------------------------------------ ##
5695## Report this to bug-autoconf@gnu.org. ##
5696## ------------------------------------ ##
5697_ASBOX
5698    ) |
5699      sed "s/^/$as_me: WARNING:     /" >&2
5700    ;;
5701esac
5702echo "$as_me:5702: checking for $ac_header" >&5
5703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5704if eval "test \"\${$as_ac_Header+set}\" = set"; then
5705  echo $ECHO_N "(cached) $ECHO_C" >&6
5706else
5707  eval "$as_ac_Header=$ac_header_preproc"
5708fi
5709echo "$as_me:5709: result: `eval echo '${'$as_ac_Header'}'`" >&5
5710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5711
5712fi
5713if test `eval echo '${'$as_ac_Header'}'` = yes; then
5714  cat >>confdefs.h <<_ACEOF
5715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5716_ACEOF
5717
5718fi
5719
5720done
5721
5722
5723for ac_header in wchar.h
5724do
5725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5726if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727  echo "$as_me:5727: checking for $ac_header" >&5
5728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5729if eval "test \"\${$as_ac_Header+set}\" = set"; then
5730  echo $ECHO_N "(cached) $ECHO_C" >&6
5731fi
5732echo "$as_me:5732: result: `eval echo '${'$as_ac_Header'}'`" >&5
5733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5734else
5735  # Is the header compilable?
5736echo "$as_me:5736: checking $ac_header usability" >&5
5737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5738cat >conftest.$ac_ext <<_ACEOF
5739#line 5739 "configure"
5740/* confdefs.h.  */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
5744/* end confdefs.h.  */
5745$ac_includes_default
5746#include <$ac_header>
5747_ACEOF
5748rm -f conftest.$ac_objext
5749if { (eval echo "$as_me:5749: \"$ac_compile\"") >&5
5750  (eval $ac_compile) 2>&5
5751  ac_status=$?
5752  echo "$as_me:5752: \$? = $ac_status" >&5
5753  (exit $ac_status); } &&
5754         { ac_try='test -s conftest.$ac_objext'
5755  { (eval echo "$as_me:5755: \"$ac_try\"") >&5
5756  (eval $ac_try) 2>&5
5757  ac_status=$?
5758  echo "$as_me:5758: \$? = $ac_status" >&5
5759  (exit $ac_status); }; }; then
5760  ac_header_compiler=yes
5761else
5762  echo "$as_me: failed program was:" >&5
5763sed 's/^/| /' conftest.$ac_ext >&5
5764
5765ac_header_compiler=no
5766fi
5767rm -f conftest.$ac_objext conftest.$ac_ext
5768echo "$as_me:5768: result: $ac_header_compiler" >&5
5769echo "${ECHO_T}$ac_header_compiler" >&6
5770
5771# Is the header present?
5772echo "$as_me:5772: checking $ac_header presence" >&5
5773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5774cat >conftest.$ac_ext <<_ACEOF
5775#line 5775 "configure"
5776/* confdefs.h.  */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h.  */
5781#include <$ac_header>
5782_ACEOF
5783if { (eval echo "$as_me:5783: \"$ac_cpp conftest.$ac_ext\"") >&5
5784  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5785  ac_status=$?
5786  grep -v '^ *+' conftest.er1 >conftest.err
5787  rm -f conftest.er1
5788  cat conftest.err >&5
5789  echo "$as_me:5789: \$? = $ac_status" >&5
5790  (exit $ac_status); } >/dev/null; then
5791  if test -s conftest.err; then
5792    ac_cpp_err=$ac_c_preproc_warn_flag
5793  else
5794    ac_cpp_err=
5795  fi
5796else
5797  ac_cpp_err=yes
5798fi
5799if test -z "$ac_cpp_err"; then
5800  ac_header_preproc=yes
5801else
5802  echo "$as_me: failed program was:" >&5
5803sed 's/^/| /' conftest.$ac_ext >&5
5804
5805  ac_header_preproc=no
5806fi
5807rm -f conftest.err conftest.$ac_ext
5808echo "$as_me:5808: result: $ac_header_preproc" >&5
5809echo "${ECHO_T}$ac_header_preproc" >&6
5810
5811# So?  What about this header?
5812case $ac_header_compiler:$ac_header_preproc in
5813  yes:no )
5814    { echo "$as_me:5814: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5816    { echo "$as_me:5816: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5818    (
5819      cat <<\_ASBOX
5820## ------------------------------------ ##
5821## Report this to bug-autoconf@gnu.org. ##
5822## ------------------------------------ ##
5823_ASBOX
5824    ) |
5825      sed "s/^/$as_me: WARNING:     /" >&2
5826    ;;
5827  no:yes )
5828    { echo "$as_me:5828: WARNING: $ac_header: present but cannot be compiled" >&5
5829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5830    { echo "$as_me:5830: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5832    { echo "$as_me:5832: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5834    (
5835      cat <<\_ASBOX
5836## ------------------------------------ ##
5837## Report this to bug-autoconf@gnu.org. ##
5838## ------------------------------------ ##
5839_ASBOX
5840    ) |
5841      sed "s/^/$as_me: WARNING:     /" >&2
5842    ;;
5843esac
5844echo "$as_me:5844: checking for $ac_header" >&5
5845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5846if eval "test \"\${$as_ac_Header+set}\" = set"; then
5847  echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849  eval "$as_ac_Header=$ac_header_preproc"
5850fi
5851echo "$as_me:5851: result: `eval echo '${'$as_ac_Header'}'`" >&5
5852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5853
5854fi
5855if test `eval echo '${'$as_ac_Header'}'` = yes; then
5856  cat >>confdefs.h <<_ACEOF
5857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5858_ACEOF
5859
5860fi
5861
5862done
5863
5864
5865for ac_header in langinfo.h
5866do
5867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5868if eval "test \"\${$as_ac_Header+set}\" = set"; then
5869  echo "$as_me:5869: checking for $ac_header" >&5
5870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5871if eval "test \"\${$as_ac_Header+set}\" = set"; then
5872  echo $ECHO_N "(cached) $ECHO_C" >&6
5873fi
5874echo "$as_me:5874: result: `eval echo '${'$as_ac_Header'}'`" >&5
5875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5876else
5877  # Is the header compilable?
5878echo "$as_me:5878: checking $ac_header usability" >&5
5879echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5880cat >conftest.$ac_ext <<_ACEOF
5881#line 5881 "configure"
5882/* confdefs.h.  */
5883_ACEOF
5884cat confdefs.h >>conftest.$ac_ext
5885cat >>conftest.$ac_ext <<_ACEOF
5886/* end confdefs.h.  */
5887$ac_includes_default
5888#include <$ac_header>
5889_ACEOF
5890rm -f conftest.$ac_objext
5891if { (eval echo "$as_me:5891: \"$ac_compile\"") >&5
5892  (eval $ac_compile) 2>&5
5893  ac_status=$?
5894  echo "$as_me:5894: \$? = $ac_status" >&5
5895  (exit $ac_status); } &&
5896         { ac_try='test -s conftest.$ac_objext'
5897  { (eval echo "$as_me:5897: \"$ac_try\"") >&5
5898  (eval $ac_try) 2>&5
5899  ac_status=$?
5900  echo "$as_me:5900: \$? = $ac_status" >&5
5901  (exit $ac_status); }; }; then
5902  ac_header_compiler=yes
5903else
5904  echo "$as_me: failed program was:" >&5
5905sed 's/^/| /' conftest.$ac_ext >&5
5906
5907ac_header_compiler=no
5908fi
5909rm -f conftest.$ac_objext conftest.$ac_ext
5910echo "$as_me:5910: result: $ac_header_compiler" >&5
5911echo "${ECHO_T}$ac_header_compiler" >&6
5912
5913# Is the header present?
5914echo "$as_me:5914: checking $ac_header presence" >&5
5915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5916cat >conftest.$ac_ext <<_ACEOF
5917#line 5917 "configure"
5918/* confdefs.h.  */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h.  */
5923#include <$ac_header>
5924_ACEOF
5925if { (eval echo "$as_me:5925: \"$ac_cpp conftest.$ac_ext\"") >&5
5926  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5927  ac_status=$?
5928  grep -v '^ *+' conftest.er1 >conftest.err
5929  rm -f conftest.er1
5930  cat conftest.err >&5
5931  echo "$as_me:5931: \$? = $ac_status" >&5
5932  (exit $ac_status); } >/dev/null; then
5933  if test -s conftest.err; then
5934    ac_cpp_err=$ac_c_preproc_warn_flag
5935  else
5936    ac_cpp_err=
5937  fi
5938else
5939  ac_cpp_err=yes
5940fi
5941if test -z "$ac_cpp_err"; then
5942  ac_header_preproc=yes
5943else
5944  echo "$as_me: failed program was:" >&5
5945sed 's/^/| /' conftest.$ac_ext >&5
5946
5947  ac_header_preproc=no
5948fi
5949rm -f conftest.err conftest.$ac_ext
5950echo "$as_me:5950: result: $ac_header_preproc" >&5
5951echo "${ECHO_T}$ac_header_preproc" >&6
5952
5953# So?  What about this header?
5954case $ac_header_compiler:$ac_header_preproc in
5955  yes:no )
5956    { echo "$as_me:5956: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5957echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5958    { echo "$as_me:5958: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5959echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5960    (
5961      cat <<\_ASBOX
5962## ------------------------------------ ##
5963## Report this to bug-autoconf@gnu.org. ##
5964## ------------------------------------ ##
5965_ASBOX
5966    ) |
5967      sed "s/^/$as_me: WARNING:     /" >&2
5968    ;;
5969  no:yes )
5970    { echo "$as_me:5970: WARNING: $ac_header: present but cannot be compiled" >&5
5971echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5972    { echo "$as_me:5972: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5973echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5974    { echo "$as_me:5974: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5975echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5976    (
5977      cat <<\_ASBOX
5978## ------------------------------------ ##
5979## Report this to bug-autoconf@gnu.org. ##
5980## ------------------------------------ ##
5981_ASBOX
5982    ) |
5983      sed "s/^/$as_me: WARNING:     /" >&2
5984    ;;
5985esac
5986echo "$as_me:5986: checking for $ac_header" >&5
5987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5988if eval "test \"\${$as_ac_Header+set}\" = set"; then
5989  echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991  eval "$as_ac_Header=$ac_header_preproc"
5992fi
5993echo "$as_me:5993: result: `eval echo '${'$as_ac_Header'}'`" >&5
5994echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5995
5996fi
5997if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998  cat >>confdefs.h <<_ACEOF
5999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6000_ACEOF
6001
6002fi
6003
6004done
6005
6006
6007echo "$as_me:6007: checking for mbrtowc" >&5
6008echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
6009if test "${ac_cv_func_mbrtowc+set}" = set; then
6010  echo $ECHO_N "(cached) $ECHO_C" >&6
6011else
6012  cat >conftest.$ac_ext <<_ACEOF
6013#line 6013 "configure"
6014/* confdefs.h.  */
6015_ACEOF
6016cat confdefs.h >>conftest.$ac_ext
6017cat >>conftest.$ac_ext <<_ACEOF
6018/* end confdefs.h.  */
6019/* System header to define __stub macros and hopefully few prototypes,
6020    which can conflict with char mbrtowc (); below.
6021    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6022    <limits.h> exists even on freestanding compilers.  */
6023#ifdef __STDC__
6024# include <limits.h>
6025#else
6026# include <assert.h>
6027#endif
6028/* Override any gcc2 internal prototype to avoid an error.  */
6029#ifdef __cplusplus
6030extern "C"
6031{
6032#endif
6033/* We use char because int might match the return type of a gcc2
6034   builtin and then its argument prototype would still apply.  */
6035char mbrtowc ();
6036/* The GNU C library defines this for functions which it implements
6037    to always fail with ENOSYS.  Some functions are actually named
6038    something starting with __ and the normal name is an alias.  */
6039#if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
6040choke me
6041#else
6042char (*f) () = mbrtowc;
6043#endif
6044#ifdef __cplusplus
6045}
6046#endif
6047
6048int
6049main ()
6050{
6051return f != mbrtowc;
6052  ;
6053  return 0;
6054}
6055_ACEOF
6056rm -f conftest.$ac_objext conftest$ac_exeext
6057if { (eval echo "$as_me:6057: \"$ac_link\"") >&5
6058  (eval $ac_link) 2>&5
6059  ac_status=$?
6060  echo "$as_me:6060: \$? = $ac_status" >&5
6061  (exit $ac_status); } &&
6062         { ac_try='test -s conftest$ac_exeext'
6063  { (eval echo "$as_me:6063: \"$ac_try\"") >&5
6064  (eval $ac_try) 2>&5
6065  ac_status=$?
6066  echo "$as_me:6066: \$? = $ac_status" >&5
6067  (exit $ac_status); }; }; then
6068  ac_cv_func_mbrtowc=yes
6069else
6070  echo "$as_me: failed program was:" >&5
6071sed 's/^/| /' conftest.$ac_ext >&5
6072
6073ac_cv_func_mbrtowc=no
6074fi
6075rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6076fi
6077echo "$as_me:6077: result: $ac_cv_func_mbrtowc" >&5
6078echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
6079if test $ac_cv_func_mbrtowc = yes; then
6080  cat >>confdefs.h <<\_ACEOF
6081#define HAVE_MBRTOWC 1
6082_ACEOF
6083
6084fi
6085
6086echo "$as_me:6086: checking for mbsrtowcs" >&5
6087echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
6088if test "${ac_cv_func_mbsrtowcs+set}" = set; then
6089  echo $ECHO_N "(cached) $ECHO_C" >&6
6090else
6091  cat >conftest.$ac_ext <<_ACEOF
6092#line 6092 "configure"
6093/* confdefs.h.  */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h.  */
6098/* System header to define __stub macros and hopefully few prototypes,
6099    which can conflict with char mbsrtowcs (); below.
6100    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6101    <limits.h> exists even on freestanding compilers.  */
6102#ifdef __STDC__
6103# include <limits.h>
6104#else
6105# include <assert.h>
6106#endif
6107/* Override any gcc2 internal prototype to avoid an error.  */
6108#ifdef __cplusplus
6109extern "C"
6110{
6111#endif
6112/* We use char because int might match the return type of a gcc2
6113   builtin and then its argument prototype would still apply.  */
6114char mbsrtowcs ();
6115/* The GNU C library defines this for functions which it implements
6116    to always fail with ENOSYS.  Some functions are actually named
6117    something starting with __ and the normal name is an alias.  */
6118#if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
6119choke me
6120#else
6121char (*f) () = mbsrtowcs;
6122#endif
6123#ifdef __cplusplus
6124}
6125#endif
6126
6127int
6128main ()
6129{
6130return f != mbsrtowcs;
6131  ;
6132  return 0;
6133}
6134_ACEOF
6135rm -f conftest.$ac_objext conftest$ac_exeext
6136if { (eval echo "$as_me:6136: \"$ac_link\"") >&5
6137  (eval $ac_link) 2>&5
6138  ac_status=$?
6139  echo "$as_me:6139: \$? = $ac_status" >&5
6140  (exit $ac_status); } &&
6141         { ac_try='test -s conftest$ac_exeext'
6142  { (eval echo "$as_me:6142: \"$ac_try\"") >&5
6143  (eval $ac_try) 2>&5
6144  ac_status=$?
6145  echo "$as_me:6145: \$? = $ac_status" >&5
6146  (exit $ac_status); }; }; then
6147  ac_cv_func_mbsrtowcs=yes
6148else
6149  echo "$as_me: failed program was:" >&5
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
6152ac_cv_func_mbsrtowcs=no
6153fi
6154rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6155fi
6156echo "$as_me:6156: result: $ac_cv_func_mbsrtowcs" >&5
6157echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
6158if test $ac_cv_func_mbsrtowcs = yes; then
6159  cat >>confdefs.h <<\_ACEOF
6160#define HAVE_MBSRTOWCS 1
6161_ACEOF
6162
6163fi
6164
6165echo "$as_me:6165: checking for wcwidth" >&5
6166echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
6167if test "${ac_cv_func_wcwidth+set}" = set; then
6168  echo $ECHO_N "(cached) $ECHO_C" >&6
6169else
6170  cat >conftest.$ac_ext <<_ACEOF
6171#line 6171 "configure"
6172/* confdefs.h.  */
6173_ACEOF
6174cat confdefs.h >>conftest.$ac_ext
6175cat >>conftest.$ac_ext <<_ACEOF
6176/* end confdefs.h.  */
6177/* System header to define __stub macros and hopefully few prototypes,
6178    which can conflict with char wcwidth (); below.
6179    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6180    <limits.h> exists even on freestanding compilers.  */
6181#ifdef __STDC__
6182# include <limits.h>
6183#else
6184# include <assert.h>
6185#endif
6186/* Override any gcc2 internal prototype to avoid an error.  */
6187#ifdef __cplusplus
6188extern "C"
6189{
6190#endif
6191/* We use char because int might match the return type of a gcc2
6192   builtin and then its argument prototype would still apply.  */
6193char wcwidth ();
6194/* The GNU C library defines this for functions which it implements
6195    to always fail with ENOSYS.  Some functions are actually named
6196    something starting with __ and the normal name is an alias.  */
6197#if defined (__stub_wcwidth) || defined (__stub___wcwidth)
6198choke me
6199#else
6200char (*f) () = wcwidth;
6201#endif
6202#ifdef __cplusplus
6203}
6204#endif
6205
6206int
6207main ()
6208{
6209return f != wcwidth;
6210  ;
6211  return 0;
6212}
6213_ACEOF
6214rm -f conftest.$ac_objext conftest$ac_exeext
6215if { (eval echo "$as_me:6215: \"$ac_link\"") >&5
6216  (eval $ac_link) 2>&5
6217  ac_status=$?
6218  echo "$as_me:6218: \$? = $ac_status" >&5
6219  (exit $ac_status); } &&
6220         { ac_try='test -s conftest$ac_exeext'
6221  { (eval echo "$as_me:6221: \"$ac_try\"") >&5
6222  (eval $ac_try) 2>&5
6223  ac_status=$?
6224  echo "$as_me:6224: \$? = $ac_status" >&5
6225  (exit $ac_status); }; }; then
6226  ac_cv_func_wcwidth=yes
6227else
6228  echo "$as_me: failed program was:" >&5
6229sed 's/^/| /' conftest.$ac_ext >&5
6230
6231ac_cv_func_wcwidth=no
6232fi
6233rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6234fi
6235echo "$as_me:6235: result: $ac_cv_func_wcwidth" >&5
6236echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
6237if test $ac_cv_func_wcwidth = yes; then
6238  cat >>confdefs.h <<\_ACEOF
6239#define HAVE_WCWIDTH 1
6240_ACEOF
6241
6242fi
6243
6244if test "$ac_cv_func_wcwidth" = no && test "$ac_cv_header_wchar_h" = yes; then
6245  WCWIDTH_OBJ=wcwidth.o
6246else
6247  WCWIDTH_OBJ=
6248fi
6249
6250
6251echo "$as_me:6251: checking for mbstate_t" >&5
6252echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
6253if test "${bash_cv_have_mbstate_t+set}" = set; then
6254  echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256  if test "$cross_compiling" = yes; then
6257  { { echo "$as_me:6257: error: cannot run test program while cross compiling
6258See \`config.log' for more details." >&5
6259echo "$as_me: error: cannot run test program while cross compiling
6260See \`config.log' for more details." >&2;}
6261   { (exit 1); exit 1; }; }
6262else
6263  cat >conftest.$ac_ext <<_ACEOF
6264#line 6264 "configure"
6265/* confdefs.h.  */
6266_ACEOF
6267cat confdefs.h >>conftest.$ac_ext
6268cat >>conftest.$ac_ext <<_ACEOF
6269/* end confdefs.h.  */
6270
6271#include <wchar.h>
6272int
6273main ()
6274{
6275  mbstate_t ps;
6276  return 0;
6277}
6278_ACEOF
6279rm -f conftest$ac_exeext
6280if { (eval echo "$as_me:6280: \"$ac_link\"") >&5
6281  (eval $ac_link) 2>&5
6282  ac_status=$?
6283  echo "$as_me:6283: \$? = $ac_status" >&5
6284  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6285  { (eval echo "$as_me:6285: \"$ac_try\"") >&5
6286  (eval $ac_try) 2>&5
6287  ac_status=$?
6288  echo "$as_me:6288: \$? = $ac_status" >&5
6289  (exit $ac_status); }; }; then
6290  bash_cv_have_mbstate_t=yes
6291else
6292  echo "$as_me: program exited with status $ac_status" >&5
6293echo "$as_me: failed program was:" >&5
6294sed 's/^/| /' conftest.$ac_ext >&5
6295
6296( exit $ac_status )
6297bash_cv_have_mbstate_t=no
6298fi
6299rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6300fi
6301fi
6302echo "$as_me:6302: result: $bash_cv_have_mbstate_t" >&5
6303echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
6304if test $bash_cv_have_mbstate_t = yes; then
6305	cat >>confdefs.h <<\_ACEOF
6306#define HAVE_MBSTATE_T 1
6307_ACEOF
6308
6309fi
6310
6311echo "$as_me:6311: checking for nl_langinfo and CODESET" >&5
6312echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6313if test "${bash_cv_langinfo_codeset+set}" = set; then
6314  echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316  cat >conftest.$ac_ext <<_ACEOF
6317#line 6317 "configure"
6318/* confdefs.h.  */
6319_ACEOF
6320cat confdefs.h >>conftest.$ac_ext
6321cat >>conftest.$ac_ext <<_ACEOF
6322/* end confdefs.h.  */
6323#include <langinfo.h>
6324int
6325main ()
6326{
6327char* cs = nl_langinfo(CODESET);
6328  ;
6329  return 0;
6330}
6331_ACEOF
6332rm -f conftest.$ac_objext conftest$ac_exeext
6333if { (eval echo "$as_me:6333: \"$ac_link\"") >&5
6334  (eval $ac_link) 2>&5
6335  ac_status=$?
6336  echo "$as_me:6336: \$? = $ac_status" >&5
6337  (exit $ac_status); } &&
6338         { ac_try='test -s conftest$ac_exeext'
6339  { (eval echo "$as_me:6339: \"$ac_try\"") >&5
6340  (eval $ac_try) 2>&5
6341  ac_status=$?
6342  echo "$as_me:6342: \$? = $ac_status" >&5
6343  (exit $ac_status); }; }; then
6344  bash_cv_langinfo_codeset=yes
6345else
6346  echo "$as_me: failed program was:" >&5
6347sed 's/^/| /' conftest.$ac_ext >&5
6348
6349bash_cv_langinfo_codeset=no
6350fi
6351rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6352fi
6353echo "$as_me:6353: result: $bash_cv_langinfo_codeset" >&5
6354echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
6355if test $bash_cv_langinfo_codeset = yes; then
6356  cat >>confdefs.h <<\_ACEOF
6357#define HAVE_LANGINFO_CODESET 1
6358_ACEOF
6359
6360fi
6361
6362
6363
6364case "$host_cpu" in
6365*cray*)	LOCAL_CFLAGS=-DCRAY ;;
6366*s390*) LOCAL_CFLAGS=-fsigned-char ;;
6367esac
6368
6369case "$host_os" in
6370isc*)	LOCAL_CFLAGS=-Disc386 ;;
6371esac
6372
6373# shared library configuration section
6374#
6375# Shared object configuration section.  These values are generated by
6376# ${srcdir}/support/shobj-conf
6377#
6378if test -f ${srcdir}/support/shobj-conf; then
6379        echo "$as_me:6379: checking configuration for building shared libraries" >&5
6380echo $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6
6381        eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394        echo "$as_me:6394: result: $SHLIB_STATUS" >&5
6395echo "${ECHO_T}$SHLIB_STATUS" >&6
6396
6397	# SHLIB_STATUS is either `supported' or `unsupported'.  If it's
6398	# `unsupported', turn off any default shared library building
6399	if test "$SHLIB_STATUS" = 'unsupported'; then
6400		opt_shared_libs=no
6401	fi
6402
6403	# shared library versioning
6404	# quoted for m4 so I can use character classes
6405	SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
6406	SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
6407
6408
6409fi
6410
6411if test "$opt_static_libs" = "yes"; then
6412	STATIC_TARGET=static
6413	STATIC_INSTALL_TARGET=install-static
6414fi
6415if test "$opt_shared_libs" = "yes"; then
6416	SHARED_TARGET=shared
6417	SHARED_INSTALL_TARGET=install-shared
6418fi
6419
6420
6421
6422
6423
6424
6425case "$host_os" in
6426msdosdjgpp*)	BUILD_DIR=`pwd.exe` ;;	# to prevent //d/path/file
6427*)		BUILD_DIR=`pwd` ;;
6428esac
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447                                        ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile"
6448          ac_config_commands="$ac_config_commands default"
6449cat >confcache <<\_ACEOF
6450# This file is a shell script that caches the results of configure
6451# tests run on this system so they can be shared between configure
6452# scripts and configure runs, see configure's option --config-cache.
6453# It is not useful on other systems.  If it contains results you don't
6454# want to keep, you may remove or edit it.
6455#
6456# config.status only pays attention to the cache file if you give it
6457# the --recheck option to rerun configure.
6458#
6459# `ac_cv_env_foo' variables (set or unset) will be overridden when
6460# loading this file, other *unset* `ac_cv_foo' will be assigned the
6461# following values.
6462
6463_ACEOF
6464
6465# The following way of writing the cache mishandles newlines in values,
6466# but we know of no workaround that is simple, portable, and efficient.
6467# So, don't put newlines in cache variables' values.
6468# Ultrix sh set writes to stderr and can't be redirected directly,
6469# and sets the high bit in the cache file unless we assign to the vars.
6470{
6471  (set) 2>&1 |
6472    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6473    *ac_space=\ *)
6474      # `set' does not quote correctly, so add quotes (double-quote
6475      # substitution turns \\\\ into \\, and sed turns \\ into \).
6476      sed -n \
6477        "s/'/'\\\\''/g;
6478    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6479      ;;
6480    *)
6481      # `set' quotes correctly as required by POSIX, so do not add quotes.
6482      sed -n \
6483        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6484      ;;
6485    esac;
6486} |
6487  sed '
6488     t clear
6489     : clear
6490     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6491     t end
6492     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6493     : end' >>confcache
6494if diff $cache_file confcache >/dev/null 2>&1; then :; else
6495  if test -w $cache_file; then
6496    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6497    cat confcache >$cache_file
6498  else
6499    echo "not updating unwritable cache $cache_file"
6500  fi
6501fi
6502rm -f confcache
6503
6504test "x$prefix" = xNONE && prefix=$ac_default_prefix
6505# Let make expand exec_prefix.
6506test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6507
6508# VPATH may cause trouble with some makes, so we remove $(srcdir),
6509# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6510# trailing colons and then remove the whole line if VPATH becomes empty
6511# (actually we leave an empty line to preserve line numbers).
6512if test "x$srcdir" = x.; then
6513  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
6514s/:*\$(srcdir):*/:/;
6515s/:*\${srcdir}:*/:/;
6516s/:*@srcdir@:*/:/;
6517s/^\([^=]*=[ 	]*\):*/\1/;
6518s/:*$//;
6519s/^[^=]*=[ 	]*$//;
6520}'
6521fi
6522
6523DEFS=-DHAVE_CONFIG_H
6524
6525ac_libobjs=
6526ac_ltlibobjs=
6527for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6528  # 1. Remove the extension, and $U if already installed.
6529  ac_i=`echo "$ac_i" |
6530         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6531  # 2. Add them.
6532  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6533  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6534done
6535LIBOBJS=$ac_libobjs
6536
6537LTLIBOBJS=$ac_ltlibobjs
6538
6539
6540
6541: ${CONFIG_STATUS=./config.status}
6542ac_clean_files_save=$ac_clean_files
6543ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6544{ echo "$as_me:6544: creating $CONFIG_STATUS" >&5
6545echo "$as_me: creating $CONFIG_STATUS" >&6;}
6546cat >$CONFIG_STATUS <<_ACEOF
6547#! $SHELL
6548# Generated by $as_me.
6549# Run this file to recreate the current configuration.
6550# Compiler output produced by configure, useful for debugging
6551# configure, is in config.log if it exists.
6552
6553debug=false
6554ac_cs_recheck=false
6555ac_cs_silent=false
6556SHELL=\${CONFIG_SHELL-$SHELL}
6557_ACEOF
6558
6559cat >>$CONFIG_STATUS <<\_ACEOF
6560## --------------------- ##
6561## M4sh Initialization.  ##
6562## --------------------- ##
6563
6564# Be Bourne compatible
6565if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6566  emulate sh
6567  NULLCMD=:
6568  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6569  # is contrary to our usage.  Disable this feature.
6570  alias -g '${1+"$@"}'='"$@"'
6571elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6572  set -o posix
6573fi
6574
6575# Support unset when possible.
6576if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6577  as_unset=unset
6578else
6579  as_unset=false
6580fi
6581
6582
6583# Work around bugs in pre-3.0 UWIN ksh.
6584$as_unset ENV MAIL MAILPATH
6585PS1='$ '
6586PS2='> '
6587PS4='+ '
6588
6589# NLS nuisances.
6590for as_var in \
6591  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6592  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6593  LC_TELEPHONE LC_TIME
6594do
6595  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6596    eval $as_var=C; export $as_var
6597  else
6598    $as_unset $as_var
6599  fi
6600done
6601
6602# Required to use basename.
6603if expr a : '\(a\)' >/dev/null 2>&1; then
6604  as_expr=expr
6605else
6606  as_expr=false
6607fi
6608
6609if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6610  as_basename=basename
6611else
6612  as_basename=false
6613fi
6614
6615
6616# Name of the executable.
6617as_me=`$as_basename "$0" ||
6618$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6619	 X"$0" : 'X\(//\)$' \| \
6620	 X"$0" : 'X\(/\)$' \| \
6621	 .     : '\(.\)' 2>/dev/null ||
6622echo X/"$0" |
6623    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6624  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
6625  	  /^X\/\(\/\).*/{ s//\1/; q; }
6626  	  s/.*/./; q'`
6627
6628
6629# PATH needs CR, and LINENO needs CR and PATH.
6630# Avoid depending upon Character Ranges.
6631as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6632as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6633as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6634as_cr_digits='0123456789'
6635as_cr_alnum=$as_cr_Letters$as_cr_digits
6636
6637# The user is always right.
6638if test "${PATH_SEPARATOR+set}" != set; then
6639  echo "#! /bin/sh" >conf$$.sh
6640  echo  "exit 0"   >>conf$$.sh
6641  chmod +x conf$$.sh
6642  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6643    PATH_SEPARATOR=';'
6644  else
6645    PATH_SEPARATOR=:
6646  fi
6647  rm -f conf$$.sh
6648fi
6649
6650
6651  as_lineno_1=6651
6652  as_lineno_2=6652
6653  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6654  test "x$as_lineno_1" != "x$as_lineno_2" &&
6655  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6656  # Find who we are.  Look in the path if we contain no path at all
6657  # relative or not.
6658  case $0 in
6659    *[\\/]* ) as_myself=$0 ;;
6660    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661for as_dir in $PATH
6662do
6663  IFS=$as_save_IFS
6664  test -z "$as_dir" && as_dir=.
6665  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6666done
6667
6668       ;;
6669  esac
6670  # We did not find ourselves, most probably we were run as `sh COMMAND'
6671  # in which case we are not to be found in the path.
6672  if test "x$as_myself" = x; then
6673    as_myself=$0
6674  fi
6675  if test ! -f "$as_myself"; then
6676    { { echo "$as_me:6676: error: cannot find myself; rerun with an absolute path" >&5
6677echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6678   { (exit 1); exit 1; }; }
6679  fi
6680  case $CONFIG_SHELL in
6681  '')
6682    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6684do
6685  IFS=$as_save_IFS
6686  test -z "$as_dir" && as_dir=.
6687  for as_base in sh bash ksh sh5; do
6688	 case $as_dir in
6689	 /*)
6690	   if ("$as_dir/$as_base" -c '
6691  as_lineno_1=6691
6692  as_lineno_2=6692
6693  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6694  test "x$as_lineno_1" != "x$as_lineno_2" &&
6695  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6696	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6697	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6698	     CONFIG_SHELL=$as_dir/$as_base
6699	     export CONFIG_SHELL
6700	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6701	   fi;;
6702	 esac
6703       done
6704done
6705;;
6706  esac
6707
6708  # Create $as_me.lineno as a copy of $as_myself, but with 6708
6709  # uniformly replaced by the line number.  The first 'sed' inserts a
6710  # line-number line before each line; the second 'sed' does the real
6711  # work.  The second script uses 'N' to pair each line-number line
6712  # with the numbered line, and appends trailing '-' during
6713  # substitution so that 6713 is not a special case at line end.
6714  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6715  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6716  sed '=' <$as_myself |
6717    sed '
6718      N
6719      s,$,-,
6720      : loop
6721      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6722      t loop
6723      s,-$,,
6724      s,^['$as_cr_digits']*\n,,
6725    ' >$as_me.lineno &&
6726  chmod +x $as_me.lineno ||
6727    { { echo "$as_me:6727: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6728echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6729   { (exit 1); exit 1; }; }
6730
6731  # Don't try to exec as it changes $[0], causing all sort of problems
6732  # (the dirname of $[0] is not the place where we might find the
6733  # original and so on.  Autoconf is especially sensible to this).
6734  . ./$as_me.lineno
6735  # Exit status is that of the last command.
6736  exit
6737}
6738
6739
6740case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6741  *c*,-n*) ECHO_N= ECHO_C='
6742' ECHO_T='	' ;;
6743  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6744  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6745esac
6746
6747if expr a : '\(a\)' >/dev/null 2>&1; then
6748  as_expr=expr
6749else
6750  as_expr=false
6751fi
6752
6753rm -f conf$$ conf$$.exe conf$$.file
6754echo >conf$$.file
6755if ln -s conf$$.file conf$$ 2>/dev/null; then
6756  # We could just check for DJGPP; but this test a) works b) is more generic
6757  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6758  if test -f conf$$.exe; then
6759    # Don't use ln at all; we don't have any links
6760    as_ln_s='cp -p'
6761  else
6762    as_ln_s='ln -s'
6763  fi
6764elif ln conf$$.file conf$$ 2>/dev/null; then
6765  as_ln_s=ln
6766else
6767  as_ln_s='cp -p'
6768fi
6769rm -f conf$$ conf$$.exe conf$$.file
6770
6771if mkdir -p . 2>/dev/null; then
6772  as_mkdir_p=:
6773else
6774  as_mkdir_p=false
6775fi
6776
6777as_executable_p="test -f"
6778
6779# Sed expression to map a string onto a valid CPP name.
6780as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6781
6782# Sed expression to map a string onto a valid variable name.
6783as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6784
6785
6786# IFS
6787# We need space, tab and new line, in precisely that order.
6788as_nl='
6789'
6790IFS=" 	$as_nl"
6791
6792# CDPATH.
6793$as_unset CDPATH
6794
6795exec 6>&1
6796
6797# Open the log real soon, to keep \$[0] and so on meaningful, and to
6798# report actual input values of CONFIG_FILES etc. instead of their
6799# values after options handling.  Logging --version etc. is OK.
6800exec 5>>config.log
6801{
6802  echo
6803  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6804## Running $as_me. ##
6805_ASBOX
6806} >&5
6807cat >&5 <<_CSEOF
6808
6809This file was extended by readline $as_me 4.3, which was
6810generated by GNU Autoconf 2.57.  Invocation command line was
6811
6812  CONFIG_FILES    = $CONFIG_FILES
6813  CONFIG_HEADERS  = $CONFIG_HEADERS
6814  CONFIG_LINKS    = $CONFIG_LINKS
6815  CONFIG_COMMANDS = $CONFIG_COMMANDS
6816  $ $0 $@
6817
6818_CSEOF
6819echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6820echo >&5
6821_ACEOF
6822
6823# Files that config.status was made for.
6824if test -n "$ac_config_files"; then
6825  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6826fi
6827
6828if test -n "$ac_config_headers"; then
6829  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6830fi
6831
6832if test -n "$ac_config_links"; then
6833  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6834fi
6835
6836if test -n "$ac_config_commands"; then
6837  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6838fi
6839
6840cat >>$CONFIG_STATUS <<\_ACEOF
6841
6842ac_cs_usage="\
6843\`$as_me' instantiates files from templates according to the
6844current configuration.
6845
6846Usage: $0 [OPTIONS] [FILE]...
6847
6848  -h, --help       print this help, then exit
6849  -V, --version    print version number, then exit
6850  -q, --quiet      do not print progress messages
6851  -d, --debug      don't remove temporary files
6852      --recheck    update $as_me by reconfiguring in the same conditions
6853  --file=FILE[:TEMPLATE]
6854                   instantiate the configuration file FILE
6855  --header=FILE[:TEMPLATE]
6856                   instantiate the configuration header FILE
6857
6858Configuration files:
6859$config_files
6860
6861Configuration headers:
6862$config_headers
6863
6864Configuration commands:
6865$config_commands
6866
6867Report bugs to <bug-autoconf@gnu.org>."
6868_ACEOF
6869
6870cat >>$CONFIG_STATUS <<_ACEOF
6871ac_cs_version="\\
6872readline config.status 4.3
6873configured by $0, generated by GNU Autoconf 2.57,
6874  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6875
6876Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6877Free Software Foundation, Inc.
6878This config.status script is free software; the Free Software Foundation
6879gives unlimited permission to copy, distribute and modify it."
6880srcdir=$srcdir
6881INSTALL="$INSTALL"
6882_ACEOF
6883
6884cat >>$CONFIG_STATUS <<\_ACEOF
6885# If no file are specified by the user, then we need to provide default
6886# value.  By we need to know if files were specified by the user.
6887ac_need_defaults=:
6888while test $# != 0
6889do
6890  case $1 in
6891  --*=*)
6892    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6893    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6894    ac_shift=:
6895    ;;
6896  -*)
6897    ac_option=$1
6898    ac_optarg=$2
6899    ac_shift=shift
6900    ;;
6901  *) # This is not an option, so the user has probably given explicit
6902     # arguments.
6903     ac_option=$1
6904     ac_need_defaults=false;;
6905  esac
6906
6907  case $ac_option in
6908  # Handling of the options.
6909_ACEOF
6910cat >>$CONFIG_STATUS <<\_ACEOF
6911  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6912    ac_cs_recheck=: ;;
6913  --version | --vers* | -V )
6914    echo "$ac_cs_version"; exit 0 ;;
6915  --he | --h)
6916    # Conflict between --help and --header
6917    { { echo "$as_me:6917: error: ambiguous option: $1
6918Try \`$0 --help' for more information." >&5
6919echo "$as_me: error: ambiguous option: $1
6920Try \`$0 --help' for more information." >&2;}
6921   { (exit 1); exit 1; }; };;
6922  --help | --hel | -h )
6923    echo "$ac_cs_usage"; exit 0 ;;
6924  --debug | --d* | -d )
6925    debug=: ;;
6926  --file | --fil | --fi | --f )
6927    $ac_shift
6928    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6929    ac_need_defaults=false;;
6930  --header | --heade | --head | --hea )
6931    $ac_shift
6932    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6933    ac_need_defaults=false;;
6934  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6935  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6936    ac_cs_silent=: ;;
6937
6938  # This is an error.
6939  -*) { { echo "$as_me:6939: error: unrecognized option: $1
6940Try \`$0 --help' for more information." >&5
6941echo "$as_me: error: unrecognized option: $1
6942Try \`$0 --help' for more information." >&2;}
6943   { (exit 1); exit 1; }; } ;;
6944
6945  *) ac_config_targets="$ac_config_targets $1" ;;
6946
6947  esac
6948  shift
6949done
6950
6951ac_configure_extra_args=
6952
6953if $ac_cs_silent; then
6954  exec 6>/dev/null
6955  ac_configure_extra_args="$ac_configure_extra_args --silent"
6956fi
6957
6958_ACEOF
6959cat >>$CONFIG_STATUS <<_ACEOF
6960if \$ac_cs_recheck; then
6961  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6962  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6963fi
6964
6965_ACEOF
6966
6967
6968
6969
6970
6971cat >>$CONFIG_STATUS <<\_ACEOF
6972for ac_config_target in $ac_config_targets
6973do
6974  case "$ac_config_target" in
6975  # Handling of arguments.
6976  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6977  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6978  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
6979  "shlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;;
6980  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6981  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6982  *) { { echo "$as_me:6982: error: invalid argument: $ac_config_target" >&5
6983echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6984   { (exit 1); exit 1; }; };;
6985  esac
6986done
6987
6988# If the user did not use the arguments to specify the items to instantiate,
6989# then the envvar interface is used.  Set only those that are not.
6990# We use the long form for the default assignment because of an extremely
6991# bizarre bug on SunOS 4.1.3.
6992if $ac_need_defaults; then
6993  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6994  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6995  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6996fi
6997
6998# Have a temporary directory for convenience.  Make it in the build tree
6999# simply because there is no reason to put it here, and in addition,
7000# creating and moving files from /tmp can sometimes cause problems.
7001# Create a temporary directory, and hook for its removal unless debugging.
7002$debug ||
7003{
7004  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7005  trap '{ (exit 1); exit 1; }' 1 2 13 15
7006}
7007
7008# Create a (secure) tmp directory for tmp files.
7009
7010{
7011  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7012  test -n "$tmp" && test -d "$tmp"
7013}  ||
7014{
7015  tmp=./confstat$$-$RANDOM
7016  (umask 077 && mkdir $tmp)
7017} ||
7018{
7019   echo "$me: cannot create a temporary directory in ." >&2
7020   { (exit 1); exit 1; }
7021}
7022
7023_ACEOF
7024
7025cat >>$CONFIG_STATUS <<_ACEOF
7026
7027#
7028# CONFIG_FILES section.
7029#
7030
7031# No need to generate the scripts if there are no CONFIG_FILES.
7032# This happens for instance when ./config.status config.h
7033if test -n "\$CONFIG_FILES"; then
7034  # Protect against being on the right side of a sed subst in config.status.
7035  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7036   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7037s,@SHELL@,$SHELL,;t t
7038s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7039s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7040s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7041s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7042s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7043s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7044s,@exec_prefix@,$exec_prefix,;t t
7045s,@prefix@,$prefix,;t t
7046s,@program_transform_name@,$program_transform_name,;t t
7047s,@bindir@,$bindir,;t t
7048s,@sbindir@,$sbindir,;t t
7049s,@libexecdir@,$libexecdir,;t t
7050s,@datadir@,$datadir,;t t
7051s,@sysconfdir@,$sysconfdir,;t t
7052s,@sharedstatedir@,$sharedstatedir,;t t
7053s,@localstatedir@,$localstatedir,;t t
7054s,@libdir@,$libdir,;t t
7055s,@includedir@,$includedir,;t t
7056s,@oldincludedir@,$oldincludedir,;t t
7057s,@infodir@,$infodir,;t t
7058s,@mandir@,$mandir,;t t
7059s,@build_alias@,$build_alias,;t t
7060s,@host_alias@,$host_alias,;t t
7061s,@target_alias@,$target_alias,;t t
7062s,@DEFS@,$DEFS,;t t
7063s,@ECHO_C@,$ECHO_C,;t t
7064s,@ECHO_N@,$ECHO_N,;t t
7065s,@ECHO_T@,$ECHO_T,;t t
7066s,@LIBS@,$LIBS,;t t
7067s,@build@,$build,;t t
7068s,@build_cpu@,$build_cpu,;t t
7069s,@build_vendor@,$build_vendor,;t t
7070s,@build_os@,$build_os,;t t
7071s,@host@,$host,;t t
7072s,@host_cpu@,$host_cpu,;t t
7073s,@host_vendor@,$host_vendor,;t t
7074s,@host_os@,$host_os,;t t
7075s,@SET_MAKE@,$SET_MAKE,;t t
7076s,@CC@,$CC,;t t
7077s,@CFLAGS@,$CFLAGS,;t t
7078s,@LDFLAGS@,$LDFLAGS,;t t
7079s,@CPPFLAGS@,$CPPFLAGS,;t t
7080s,@ac_ct_CC@,$ac_ct_CC,;t t
7081s,@EXEEXT@,$EXEEXT,;t t
7082s,@OBJEXT@,$OBJEXT,;t t
7083s,@CPP@,$CPP,;t t
7084s,@EGREP@,$EGREP,;t t
7085s,@CROSS_COMPILING_FLAG@,$CROSS_COMPILING_FLAG,;t t
7086s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7087s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7088s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7089s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7090s,@AR@,$AR,;t t
7091s,@RANLIB@,$RANLIB,;t t
7092s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7093s,@MAKE_SHELL@,$MAKE_SHELL,;t t
7094s,@WCWIDTH_OBJ@,$WCWIDTH_OBJ,;t t
7095s,@SHOBJ_CC@,$SHOBJ_CC,;t t
7096s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
7097s,@SHOBJ_LD@,$SHOBJ_LD,;t t
7098s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
7099s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
7100s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
7101s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
7102s,@SHLIB_STATUS@,$SHLIB_STATUS,;t t
7103s,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t
7104s,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t
7105s,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t
7106s,@SHLIB_LIBS@,$SHLIB_LIBS,;t t
7107s,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t
7108s,@SHLIB_MINOR@,$SHLIB_MINOR,;t t
7109s,@STATIC_TARGET@,$STATIC_TARGET,;t t
7110s,@SHARED_TARGET@,$SHARED_TARGET,;t t
7111s,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t
7112s,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t
7113s,@BUILD_DIR@,$BUILD_DIR,;t t
7114s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
7115s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
7116s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
7117s,@ARFLAGS@,$ARFLAGS,;t t
7118s,@LIBVERSION@,$LIBVERSION,;t t
7119s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
7120s,@LIBOBJS@,$LIBOBJS,;t t
7121s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7122CEOF
7123
7124_ACEOF
7125
7126  cat >>$CONFIG_STATUS <<\_ACEOF
7127  # Split the substitutions into bite-sized pieces for seds with
7128  # small command number limits, like on Digital OSF/1 and HP-UX.
7129  ac_max_sed_lines=48
7130  ac_sed_frag=1 # Number of current file.
7131  ac_beg=1 # First line for current file.
7132  ac_end=$ac_max_sed_lines # Line after last line for current file.
7133  ac_more_lines=:
7134  ac_sed_cmds=
7135  while $ac_more_lines; do
7136    if test $ac_beg -gt 1; then
7137      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7138    else
7139      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7140    fi
7141    if test ! -s $tmp/subs.frag; then
7142      ac_more_lines=false
7143    else
7144      # The purpose of the label and of the branching condition is to
7145      # speed up the sed processing (if there are no `@' at all, there
7146      # is no need to browse any of the substitutions).
7147      # These are the two extra sed commands mentioned above.
7148      (echo ':t
7149  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7150      if test -z "$ac_sed_cmds"; then
7151  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7152      else
7153  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7154      fi
7155      ac_sed_frag=`expr $ac_sed_frag + 1`
7156      ac_beg=$ac_end
7157      ac_end=`expr $ac_end + $ac_max_sed_lines`
7158    fi
7159  done
7160  if test -z "$ac_sed_cmds"; then
7161    ac_sed_cmds=cat
7162  fi
7163fi # test -n "$CONFIG_FILES"
7164
7165_ACEOF
7166cat >>$CONFIG_STATUS <<\_ACEOF
7167for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7168  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7169  case $ac_file in
7170  - | *:- | *:-:* ) # input from stdin
7171        cat >$tmp/stdin
7172        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7173        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7174  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7175        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7176  * )   ac_file_in=$ac_file.in ;;
7177  esac
7178
7179  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7180  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7181$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7182         X"$ac_file" : 'X\(//\)[^/]' \| \
7183         X"$ac_file" : 'X\(//\)$' \| \
7184         X"$ac_file" : 'X\(/\)' \| \
7185         .     : '\(.\)' 2>/dev/null ||
7186echo X"$ac_file" |
7187    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7188  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7189  	  /^X\(\/\/\)$/{ s//\1/; q; }
7190  	  /^X\(\/\).*/{ s//\1/; q; }
7191  	  s/.*/./; q'`
7192  { if $as_mkdir_p; then
7193    mkdir -p "$ac_dir"
7194  else
7195    as_dir="$ac_dir"
7196    as_dirs=
7197    while test ! -d "$as_dir"; do
7198      as_dirs="$as_dir $as_dirs"
7199      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7200$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7201         X"$as_dir" : 'X\(//\)[^/]' \| \
7202         X"$as_dir" : 'X\(//\)$' \| \
7203         X"$as_dir" : 'X\(/\)' \| \
7204         .     : '\(.\)' 2>/dev/null ||
7205echo X"$as_dir" |
7206    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7207  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7208  	  /^X\(\/\/\)$/{ s//\1/; q; }
7209  	  /^X\(\/\).*/{ s//\1/; q; }
7210  	  s/.*/./; q'`
7211    done
7212    test ! -n "$as_dirs" || mkdir $as_dirs
7213  fi || { { echo "$as_me:7213: error: cannot create directory \"$ac_dir\"" >&5
7214echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7215   { (exit 1); exit 1; }; }; }
7216
7217  ac_builddir=.
7218
7219if test "$ac_dir" != .; then
7220  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7221  # A "../" for each directory in $ac_dir_suffix.
7222  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7223else
7224  ac_dir_suffix= ac_top_builddir=
7225fi
7226
7227case $srcdir in
7228  .)  # No --srcdir option.  We are building in place.
7229    ac_srcdir=.
7230    if test -z "$ac_top_builddir"; then
7231       ac_top_srcdir=.
7232    else
7233       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7234    fi ;;
7235  [\\/]* | ?:[\\/]* )  # Absolute path.
7236    ac_srcdir=$srcdir$ac_dir_suffix;
7237    ac_top_srcdir=$srcdir ;;
7238  *) # Relative path.
7239    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7240    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7241esac
7242# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7243# absolute.
7244ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7245ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7246ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7247ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7248
7249
7250  case $INSTALL in
7251  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7252  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7253  esac
7254
7255  if test x"$ac_file" != x-; then
7256    { echo "$as_me:7256: creating $ac_file" >&5
7257echo "$as_me: creating $ac_file" >&6;}
7258    rm -f "$ac_file"
7259  fi
7260  # Let's still pretend it is `configure' which instantiates (i.e., don't
7261  # use $as_me), people would be surprised to read:
7262  #    /* config.h.  Generated by config.status.  */
7263  if test x"$ac_file" = x-; then
7264    configure_input=
7265  else
7266    configure_input="$ac_file.  "
7267  fi
7268  configure_input=$configure_input"Generated from `echo $ac_file_in |
7269                                     sed 's,.*/,,'` by configure."
7270
7271  # First look for the input files in the build tree, otherwise in the
7272  # src tree.
7273  ac_file_inputs=`IFS=:
7274    for f in $ac_file_in; do
7275      case $f in
7276      -) echo $tmp/stdin ;;
7277      [\\/$]*)
7278         # Absolute (can't be DOS-style, as IFS=:)
7279         test -f "$f" || { { echo "$as_me:7279: error: cannot find input file: $f" >&5
7280echo "$as_me: error: cannot find input file: $f" >&2;}
7281   { (exit 1); exit 1; }; }
7282         echo $f;;
7283      *) # Relative
7284         if test -f "$f"; then
7285           # Build tree
7286           echo $f
7287         elif test -f "$srcdir/$f"; then
7288           # Source tree
7289           echo $srcdir/$f
7290         else
7291           # /dev/null tree
7292           { { echo "$as_me:7292: error: cannot find input file: $f" >&5
7293echo "$as_me: error: cannot find input file: $f" >&2;}
7294   { (exit 1); exit 1; }; }
7295         fi;;
7296      esac
7297    done` || { (exit 1); exit 1; }
7298_ACEOF
7299cat >>$CONFIG_STATUS <<_ACEOF
7300  sed "$ac_vpsub
7301$extrasub
7302_ACEOF
7303cat >>$CONFIG_STATUS <<\_ACEOF
7304:t
7305/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7306s,@configure_input@,$configure_input,;t t
7307s,@srcdir@,$ac_srcdir,;t t
7308s,@abs_srcdir@,$ac_abs_srcdir,;t t
7309s,@top_srcdir@,$ac_top_srcdir,;t t
7310s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7311s,@builddir@,$ac_builddir,;t t
7312s,@abs_builddir@,$ac_abs_builddir,;t t
7313s,@top_builddir@,$ac_top_builddir,;t t
7314s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7315s,@INSTALL@,$ac_INSTALL,;t t
7316" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7317  rm -f $tmp/stdin
7318  if test x"$ac_file" != x-; then
7319    mv $tmp/out $ac_file
7320  else
7321    cat $tmp/out
7322    rm -f $tmp/out
7323  fi
7324
7325done
7326_ACEOF
7327cat >>$CONFIG_STATUS <<\_ACEOF
7328
7329#
7330# CONFIG_HEADER section.
7331#
7332
7333# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7334# NAME is the cpp macro being defined and VALUE is the value it is being given.
7335#
7336# ac_d sets the value in "#define NAME VALUE" lines.
7337ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
7338ac_dB='[ 	].*$,\1#\2'
7339ac_dC=' '
7340ac_dD=',;t'
7341# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7342ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
7343ac_uB='$,\1#\2define\3'
7344ac_uC=' '
7345ac_uD=',;t'
7346
7347for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7348  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7349  case $ac_file in
7350  - | *:- | *:-:* ) # input from stdin
7351        cat >$tmp/stdin
7352        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7353        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7354  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7355        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7356  * )   ac_file_in=$ac_file.in ;;
7357  esac
7358
7359  test x"$ac_file" != x- && { echo "$as_me:7359: creating $ac_file" >&5
7360echo "$as_me: creating $ac_file" >&6;}
7361
7362  # First look for the input files in the build tree, otherwise in the
7363  # src tree.
7364  ac_file_inputs=`IFS=:
7365    for f in $ac_file_in; do
7366      case $f in
7367      -) echo $tmp/stdin ;;
7368      [\\/$]*)
7369         # Absolute (can't be DOS-style, as IFS=:)
7370         test -f "$f" || { { echo "$as_me:7370: error: cannot find input file: $f" >&5
7371echo "$as_me: error: cannot find input file: $f" >&2;}
7372   { (exit 1); exit 1; }; }
7373         echo $f;;
7374      *) # Relative
7375         if test -f "$f"; then
7376           # Build tree
7377           echo $f
7378         elif test -f "$srcdir/$f"; then
7379           # Source tree
7380           echo $srcdir/$f
7381         else
7382           # /dev/null tree
7383           { { echo "$as_me:7383: error: cannot find input file: $f" >&5
7384echo "$as_me: error: cannot find input file: $f" >&2;}
7385   { (exit 1); exit 1; }; }
7386         fi;;
7387      esac
7388    done` || { (exit 1); exit 1; }
7389  # Remove the trailing spaces.
7390  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
7391
7392_ACEOF
7393
7394# Transform confdefs.h into two sed scripts, `conftest.defines' and
7395# `conftest.undefs', that substitutes the proper values into
7396# config.h.in to produce config.h.  The first handles `#define'
7397# templates, and the second `#undef' templates.
7398# And first: Protect against being on the right side of a sed subst in
7399# config.status.  Protect against being in an unquoted here document
7400# in config.status.
7401rm -f conftest.defines conftest.undefs
7402# Using a here document instead of a string reduces the quoting nightmare.
7403# Putting comments in sed scripts is not portable.
7404#
7405# `end' is used to avoid that the second main sed command (meant for
7406# 0-ary CPP macros) applies to n-ary macro definitions.
7407# See the Autoconf documentation for `clear'.
7408cat >confdef2sed.sed <<\_ACEOF
7409s/[\\&,]/\\&/g
7410s,[\\$`],\\&,g
7411t clear
7412: clear
7413s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7414t end
7415s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7416: end
7417_ACEOF
7418# If some macros were called several times there might be several times
7419# the same #defines, which is useless.  Nevertheless, we may not want to
7420# sort them, since we want the *last* AC-DEFINE to be honored.
7421uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7422sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7423rm -f confdef2sed.sed
7424
7425# This sed command replaces #undef with comments.  This is necessary, for
7426# example, in the case of _POSIX_SOURCE, which is predefined and required
7427# on some systems where configure will not decide to define it.
7428cat >>conftest.undefs <<\_ACEOF
7429s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7430_ACEOF
7431
7432# Break up conftest.defines because some shells have a limit on the size
7433# of here documents, and old seds have small limits too (100 cmds).
7434echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7435echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7436echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7437echo '  :' >>$CONFIG_STATUS
7438rm -f conftest.tail
7439while grep . conftest.defines >/dev/null
7440do
7441  # Write a limited-size here document to $tmp/defines.sed.
7442  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7443  # Speed up: don't consider the non `#define' lines.
7444  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
7445  # Work around the forget-to-reset-the-flag bug.
7446  echo 't clr' >>$CONFIG_STATUS
7447  echo ': clr' >>$CONFIG_STATUS
7448  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7449  echo 'CEOF
7450  sed -f $tmp/defines.sed $tmp/in >$tmp/out
7451  rm -f $tmp/in
7452  mv $tmp/out $tmp/in
7453' >>$CONFIG_STATUS
7454  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7455  rm -f conftest.defines
7456  mv conftest.tail conftest.defines
7457done
7458rm -f conftest.defines
7459echo '  fi # grep' >>$CONFIG_STATUS
7460echo >>$CONFIG_STATUS
7461
7462# Break up conftest.undefs because some shells have a limit on the size
7463# of here documents, and old seds have small limits too (100 cmds).
7464echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7465rm -f conftest.tail
7466while grep . conftest.undefs >/dev/null
7467do
7468  # Write a limited-size here document to $tmp/undefs.sed.
7469  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7470  # Speed up: don't consider the non `#undef'
7471  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
7472  # Work around the forget-to-reset-the-flag bug.
7473  echo 't clr' >>$CONFIG_STATUS
7474  echo ': clr' >>$CONFIG_STATUS
7475  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7476  echo 'CEOF
7477  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7478  rm -f $tmp/in
7479  mv $tmp/out $tmp/in
7480' >>$CONFIG_STATUS
7481  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7482  rm -f conftest.undefs
7483  mv conftest.tail conftest.undefs
7484done
7485rm -f conftest.undefs
7486
7487cat >>$CONFIG_STATUS <<\_ACEOF
7488  # Let's still pretend it is `configure' which instantiates (i.e., don't
7489  # use $as_me), people would be surprised to read:
7490  #    /* config.h.  Generated by config.status.  */
7491  if test x"$ac_file" = x-; then
7492    echo "/* Generated by configure.  */" >$tmp/config.h
7493  else
7494    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7495  fi
7496  cat $tmp/in >>$tmp/config.h
7497  rm -f $tmp/in
7498  if test x"$ac_file" != x-; then
7499    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7500      { echo "$as_me:7500: $ac_file is unchanged" >&5
7501echo "$as_me: $ac_file is unchanged" >&6;}
7502    else
7503      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7504$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7505         X"$ac_file" : 'X\(//\)[^/]' \| \
7506         X"$ac_file" : 'X\(//\)$' \| \
7507         X"$ac_file" : 'X\(/\)' \| \
7508         .     : '\(.\)' 2>/dev/null ||
7509echo X"$ac_file" |
7510    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7511  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7512  	  /^X\(\/\/\)$/{ s//\1/; q; }
7513  	  /^X\(\/\).*/{ s//\1/; q; }
7514  	  s/.*/./; q'`
7515      { if $as_mkdir_p; then
7516    mkdir -p "$ac_dir"
7517  else
7518    as_dir="$ac_dir"
7519    as_dirs=
7520    while test ! -d "$as_dir"; do
7521      as_dirs="$as_dir $as_dirs"
7522      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7523$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7524         X"$as_dir" : 'X\(//\)[^/]' \| \
7525         X"$as_dir" : 'X\(//\)$' \| \
7526         X"$as_dir" : 'X\(/\)' \| \
7527         .     : '\(.\)' 2>/dev/null ||
7528echo X"$as_dir" |
7529    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7530  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7531  	  /^X\(\/\/\)$/{ s//\1/; q; }
7532  	  /^X\(\/\).*/{ s//\1/; q; }
7533  	  s/.*/./; q'`
7534    done
7535    test ! -n "$as_dirs" || mkdir $as_dirs
7536  fi || { { echo "$as_me:7536: error: cannot create directory \"$ac_dir\"" >&5
7537echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7538   { (exit 1); exit 1; }; }; }
7539
7540      rm -f $ac_file
7541      mv $tmp/config.h $ac_file
7542    fi
7543  else
7544    cat $tmp/config.h
7545    rm -f $tmp/config.h
7546  fi
7547done
7548_ACEOF
7549cat >>$CONFIG_STATUS <<\_ACEOF
7550
7551#
7552# CONFIG_COMMANDS section.
7553#
7554for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7555  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7556  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7557  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7558$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7559         X"$ac_dest" : 'X\(//\)[^/]' \| \
7560         X"$ac_dest" : 'X\(//\)$' \| \
7561         X"$ac_dest" : 'X\(/\)' \| \
7562         .     : '\(.\)' 2>/dev/null ||
7563echo X"$ac_dest" |
7564    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7565  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7566  	  /^X\(\/\/\)$/{ s//\1/; q; }
7567  	  /^X\(\/\).*/{ s//\1/; q; }
7568  	  s/.*/./; q'`
7569  ac_builddir=.
7570
7571if test "$ac_dir" != .; then
7572  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7573  # A "../" for each directory in $ac_dir_suffix.
7574  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7575else
7576  ac_dir_suffix= ac_top_builddir=
7577fi
7578
7579case $srcdir in
7580  .)  # No --srcdir option.  We are building in place.
7581    ac_srcdir=.
7582    if test -z "$ac_top_builddir"; then
7583       ac_top_srcdir=.
7584    else
7585       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7586    fi ;;
7587  [\\/]* | ?:[\\/]* )  # Absolute path.
7588    ac_srcdir=$srcdir$ac_dir_suffix;
7589    ac_top_srcdir=$srcdir ;;
7590  *) # Relative path.
7591    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7592    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7593esac
7594# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7595# absolute.
7596ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7597ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7598ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7599ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7600
7601
7602  { echo "$as_me:7602: executing $ac_dest commands" >&5
7603echo "$as_me: executing $ac_dest commands" >&6;}
7604  case $ac_dest in
7605    default )
7606# Makefile uses this timestamp file to record whether config.h is up to date.
7607echo > stamp-h
7608 ;;
7609  esac
7610done
7611_ACEOF
7612
7613cat >>$CONFIG_STATUS <<\_ACEOF
7614
7615{ (exit 0); exit 0; }
7616_ACEOF
7617chmod +x $CONFIG_STATUS
7618ac_clean_files=$ac_clean_files_save
7619
7620
7621# configure is writing to config.log, and then calls config.status.
7622# config.status does its own redirection, appending to config.log.
7623# Unfortunately, on DOS this fails, as config.log is still kept open
7624# by configure, so config.status won't be able to write to it; its
7625# output is simply discarded.  So we exec the FD to /dev/null,
7626# effectively closing config.log, so it can be properly (re)opened and
7627# appended to by config.status.  When coming back to configure, we
7628# need to make the FD available again.
7629if test "$no_create" != yes; then
7630  ac_cs_success=:
7631  ac_config_status_args=
7632  test "$silent" = yes &&
7633    ac_config_status_args="$ac_config_status_args --quiet"
7634  exec 5>/dev/null
7635  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7636  exec 5>>config.log
7637  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7638  # would make configure fail if this is the last instruction.
7639  $ac_cs_success || { (exit 1); exit 1; }
7640fi
7641
7642