126497Sache#! /bin/sh
2165670Sache# From configure.in for Readline 5.2, version 2.61.
3119610Sache# Guess values for system-dependent variables and create Makefiles.
4165670Sache# Generated by GNU Autoconf 2.59 for readline 5.2.
5119610Sache#
6119610Sache# Report bugs to <bug-readline@gnu.org>.
7119610Sache#
8157184Sache# Copyright (C) 2003 Free Software Foundation, Inc.
9119610Sache# This configure script is free software; the Free Software Foundation
10119610Sache# gives unlimited permission to copy, distribute and modify it.
11136644Sache## --------------------- ##
12136644Sache## M4sh Initialization.  ##
13136644Sache## --------------------- ##
1426497Sache
15136644Sache# Be Bourne compatible
16136644Sacheif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17136644Sache  emulate sh
18136644Sache  NULLCMD=:
19136644Sache  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20136644Sache  # is contrary to our usage.  Disable this feature.
21136644Sache  alias -g '${1+"$@"}'='"$@"'
22136644Sacheelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23136644Sache  set -o posix
24136644Sachefi
25157184SacheDUALCASE=1; export DUALCASE # for MKS sh
26136644Sache
27136644Sache# Support unset when possible.
28157184Sacheif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29136644Sache  as_unset=unset
30136644Sacheelse
31136644Sache  as_unset=false
32136644Sachefi
33136644Sache
34136644Sache
35136644Sache# Work around bugs in pre-3.0 UWIN ksh.
36136644Sache$as_unset ENV MAIL MAILPATH
37136644SachePS1='$ '
38136644SachePS2='> '
39136644SachePS4='+ '
40136644Sache
41136644Sache# NLS nuisances.
42136644Sachefor as_var in \
43136644Sache  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44136644Sache  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45136644Sache  LC_TELEPHONE LC_TIME
46136644Sachedo
47157184Sache  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48136644Sache    eval $as_var=C; export $as_var
49136644Sache  else
50136644Sache    $as_unset $as_var
51136644Sache  fi
52136644Sachedone
53136644Sache
54136644Sache# Required to use basename.
55136644Sacheif expr a : '\(a\)' >/dev/null 2>&1; then
56136644Sache  as_expr=expr
57136644Sacheelse
58136644Sache  as_expr=false
59136644Sachefi
60136644Sache
61136644Sacheif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62136644Sache  as_basename=basename
63136644Sacheelse
64136644Sache  as_basename=false
65136644Sachefi
66136644Sache
67136644Sache
68136644Sache# Name of the executable.
69136644Sacheas_me=`$as_basename "$0" ||
70136644Sache$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71136644Sache	 X"$0" : 'X\(//\)$' \| \
72136644Sache	 X"$0" : 'X\(/\)$' \| \
73136644Sache	 .     : '\(.\)' 2>/dev/null ||
74136644Sacheecho X/"$0" |
75136644Sache    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76136644Sache  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
77136644Sache  	  /^X\/\(\/\).*/{ s//\1/; q; }
78136644Sache  	  s/.*/./; q'`
79136644Sache
80136644Sache
81136644Sache# PATH needs CR, and LINENO needs CR and PATH.
82119610Sache# Avoid depending upon Character Ranges.
83119610Sacheas_cr_letters='abcdefghijklmnopqrstuvwxyz'
84119610Sacheas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85119610Sacheas_cr_Letters=$as_cr_letters$as_cr_LETTERS
86119610Sacheas_cr_digits='0123456789'
87119610Sacheas_cr_alnum=$as_cr_Letters$as_cr_digits
8826497Sache
89136644Sache# The user is always right.
90136644Sacheif test "${PATH_SEPARATOR+set}" != set; then
91136644Sache  echo "#! /bin/sh" >conf$$.sh
92136644Sache  echo  "exit 0"   >>conf$$.sh
93136644Sache  chmod +x conf$$.sh
94136644Sache  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95136644Sache    PATH_SEPARATOR=';'
96136644Sache  else
97136644Sache    PATH_SEPARATOR=:
98136644Sache  fi
99136644Sache  rm -f conf$$.sh
100136644Sachefi
10126497Sache
10226497Sache
103136644Sache  as_lineno_1=$LINENO
104136644Sache  as_lineno_2=$LINENO
105136644Sache  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106136644Sache  test "x$as_lineno_1" != "x$as_lineno_2" &&
107136644Sache  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108136644Sache  # Find who we are.  Look in the path if we contain no path at all
109136644Sache  # relative or not.
110136644Sache  case $0 in
111136644Sache    *[\\/]* ) as_myself=$0 ;;
112136644Sache    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113136644Sachefor as_dir in $PATH
114136644Sachedo
115136644Sache  IFS=$as_save_IFS
116136644Sache  test -z "$as_dir" && as_dir=.
117136644Sache  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118136644Sachedone
11926497Sache
120136644Sache       ;;
121136644Sache  esac
122136644Sache  # We did not find ourselves, most probably we were run as `sh COMMAND'
123136644Sache  # in which case we are not to be found in the path.
124136644Sache  if test "x$as_myself" = x; then
125136644Sache    as_myself=$0
126136644Sache  fi
127136644Sache  if test ! -f "$as_myself"; then
128136644Sache    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129136644Sache   { (exit 1); exit 1; }; }
130136644Sache  fi
131136644Sache  case $CONFIG_SHELL in
132136644Sache  '')
133136644Sache    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134136644Sachefor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135136644Sachedo
136136644Sache  IFS=$as_save_IFS
137136644Sache  test -z "$as_dir" && as_dir=.
138136644Sache  for as_base in sh bash ksh sh5; do
139136644Sache	 case $as_dir in
140136644Sache	 /*)
141136644Sache	   if ("$as_dir/$as_base" -c '
142136644Sache  as_lineno_1=$LINENO
143136644Sache  as_lineno_2=$LINENO
144136644Sache  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145136644Sache  test "x$as_lineno_1" != "x$as_lineno_2" &&
146136644Sache  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147136644Sache	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148136644Sache	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149136644Sache	     CONFIG_SHELL=$as_dir/$as_base
150136644Sache	     export CONFIG_SHELL
151136644Sache	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152136644Sache	   fi;;
153136644Sache	 esac
154136644Sache       done
155136644Sachedone
156136644Sache;;
157136644Sache  esac
15826497Sache
159136644Sache  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160136644Sache  # uniformly replaced by the line number.  The first 'sed' inserts a
161136644Sache  # line-number line before each line; the second 'sed' does the real
162136644Sache  # work.  The second script uses 'N' to pair each line-number line
163136644Sache  # with the numbered line, and appends trailing '-' during
164136644Sache  # substitution so that $LINENO is not a special case at line end.
165136644Sache  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166136644Sache  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167136644Sache  sed '=' <$as_myself |
168136644Sache    sed '
169136644Sache      N
170136644Sache      s,$,-,
171136644Sache      : loop
172136644Sache      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173136644Sache      t loop
174136644Sache      s,-$,,
175136644Sache      s,^['$as_cr_digits']*\n,,
176136644Sache    ' >$as_me.lineno &&
177136644Sache  chmod +x $as_me.lineno ||
178136644Sache    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179136644Sache   { (exit 1); exit 1; }; }
180136644Sache
181136644Sache  # Don't try to exec as it changes $[0], causing all sort of problems
182136644Sache  # (the dirname of $[0] is not the place where we might find the
183136644Sache  # original and so on.  Autoconf is especially sensible to this).
184136644Sache  . ./$as_me.lineno
185136644Sache  # Exit status is that of the last command.
186136644Sache  exit
187136644Sache}
188136644Sache
189136644Sache
190136644Sachecase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191136644Sache  *c*,-n*) ECHO_N= ECHO_C='
192136644Sache' ECHO_T='	' ;;
193136644Sache  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194136644Sache  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195136644Sacheesac
196136644Sache
197119610Sacheif expr a : '\(a\)' >/dev/null 2>&1; then
198119610Sache  as_expr=expr
199119610Sacheelse
200119610Sache  as_expr=false
201119610Sachefi
20226497Sache
203119610Sacherm -f conf$$ conf$$.exe conf$$.file
204119610Sacheecho >conf$$.file
205119610Sacheif ln -s conf$$.file conf$$ 2>/dev/null; then
206119610Sache  # We could just check for DJGPP; but this test a) works b) is more generic
207119610Sache  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208119610Sache  if test -f conf$$.exe; then
209119610Sache    # Don't use ln at all; we don't have any links
210119610Sache    as_ln_s='cp -p'
211119610Sache  else
212119610Sache    as_ln_s='ln -s'
213119610Sache  fi
214119610Sacheelif ln conf$$.file conf$$ 2>/dev/null; then
215119610Sache  as_ln_s=ln
216119610Sacheelse
217119610Sache  as_ln_s='cp -p'
218119610Sachefi
219119610Sacherm -f conf$$ conf$$.exe conf$$.file
22026497Sache
221136644Sacheif mkdir -p . 2>/dev/null; then
222136644Sache  as_mkdir_p=:
223119610Sacheelse
224157184Sache  test -d ./-p && rmdir ./-p
225136644Sache  as_mkdir_p=false
226119610Sachefi
22726497Sache
228136644Sacheas_executable_p="test -f"
22926497Sache
230136644Sache# Sed expression to map a string onto a valid CPP name.
231157184Sacheas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232136644Sache
233136644Sache# Sed expression to map a string onto a valid variable name.
234157184Sacheas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235136644Sache
236136644Sache
237119610Sache# IFS
238119610Sache# We need space, tab and new line, in precisely that order.
239119610Sacheas_nl='
240119610Sache'
241119610SacheIFS=" 	$as_nl"
24226497Sache
243119610Sache# CDPATH.
244136644Sache$as_unset CDPATH
24526497Sache
246136644Sache
247119610Sache# Name of the host.
248119610Sache# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249119610Sache# so uname gets run too.
250119610Sacheac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
25126497Sache
252119610Sacheexec 6>&1
25326497Sache
254119610Sache#
255119610Sache# Initializations.
256119610Sache#
257119610Sacheac_default_prefix=/usr/local
258136644Sacheac_config_libobj_dir=.
259119610Sachecross_compiling=no
260119610Sachesubdirs=
261136644SacheMFLAGS=
262136644SacheMAKEFLAGS=
263119610SacheSHELL=${CONFIG_SHELL-/bin/sh}
26426497Sache
265119610Sache# Maximum number of lines to put in a shell here document.
266119610Sache# This variable seems obsolete.  It should probably be removed, and
267119610Sache# only ac_max_sed_lines should be used.
268119610Sache: ${ac_max_here_lines=38}
26926497Sache
270136644Sache# Identity of this package.
271136644SachePACKAGE_NAME='readline'
272136644SachePACKAGE_TARNAME='readline'
273165670SachePACKAGE_VERSION='5.2'
274165670SachePACKAGE_STRING='readline 5.2'
275136644SachePACKAGE_BUGREPORT='bug-readline@gnu.org'
276136644Sache
277119610Sacheac_unique_file="readline.h"
278119610Sache# Factoring default headers for most tests.
279119610Sacheac_includes_default="\
280119610Sache#include <stdio.h>
281119610Sache#if HAVE_SYS_TYPES_H
282119610Sache# include <sys/types.h>
283119610Sache#endif
284119610Sache#if HAVE_SYS_STAT_H
285119610Sache# include <sys/stat.h>
286119610Sache#endif
287119610Sache#if STDC_HEADERS
288119610Sache# include <stdlib.h>
289119610Sache# include <stddef.h>
290119610Sache#else
291119610Sache# if HAVE_STDLIB_H
292119610Sache#  include <stdlib.h>
293119610Sache# endif
294119610Sache#endif
295119610Sache#if HAVE_STRING_H
296119610Sache# if !STDC_HEADERS && HAVE_MEMORY_H
297119610Sache#  include <memory.h>
298119610Sache# endif
299119610Sache# include <string.h>
300119610Sache#endif
301119610Sache#if HAVE_STRINGS_H
302119610Sache# include <strings.h>
303119610Sache#endif
304119610Sache#if HAVE_INTTYPES_H
305119610Sache# include <inttypes.h>
306119610Sache#else
307119610Sache# if HAVE_STDINT_H
308119610Sache#  include <stdint.h>
309119610Sache# endif
310119610Sache#endif
311119610Sache#if HAVE_UNISTD_H
312119610Sache# include <unistd.h>
313119610Sache#endif"
31426497Sache
315157184Sacheac_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 CROSS_COMPILE SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB MAKE_SHELL SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS SHLIB_STATUS SHLIB_XLDFLAGS SHLIB_DOT SHLIB_LIBPREF SHLIB_LIBSUFF SHLIB_LIBVERSION SHLIB_DLLVERSION SHLIB_LIBS SHLIB_MAJOR SHLIB_MINOR STATIC_TARGET SHARED_TARGET STATIC_INSTALL_TARGET SHARED_INSTALL_TARGET PURIFY BUILD_DIR LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS ARFLAGS LIBVERSION TERMCAP_LIB LIBOBJS LTLIBOBJS'
316136644Sacheac_subst_files=''
317136644Sache
31826497Sache# Initialize some variables set by options.
319119610Sacheac_init_help=
320119610Sacheac_init_version=false
32126497Sache# The variables have the same names as the options, with
32226497Sache# dashes changed to underlines.
323119610Sachecache_file=/dev/null
32426497Sacheexec_prefix=NONE
32526497Sacheno_create=
32626497Sacheno_recursion=
32726497Sacheprefix=NONE
32826497Sacheprogram_prefix=NONE
32926497Sacheprogram_suffix=NONE
33026497Sacheprogram_transform_name=s,x,x,
33126497Sachesilent=
33226497Sachesite=
33326497Sachesrcdir=
33426497Sacheverbose=
33526497Sachex_includes=NONE
33626497Sachex_libraries=NONE
337119610Sache
338119610Sache# Installation directory options.
339119610Sache# These are left unexpanded so users can "make install exec_prefix=/foo"
340119610Sache# and all the variables that are supposed to be based on exec_prefix
341119610Sache# by default will actually change.
342119610Sache# Use braces instead of parens because sh, perl, etc. also accept them.
34326497Sachebindir='${exec_prefix}/bin'
34426497Sachesbindir='${exec_prefix}/sbin'
34526497Sachelibexecdir='${exec_prefix}/libexec'
34626497Sachedatadir='${prefix}/share'
34726497Sachesysconfdir='${prefix}/etc'
34826497Sachesharedstatedir='${prefix}/com'
34926497Sachelocalstatedir='${prefix}/var'
35026497Sachelibdir='${exec_prefix}/lib'
35126497Sacheincludedir='${prefix}/include'
35226497Sacheoldincludedir='/usr/include'
35326497Sacheinfodir='${prefix}/info'
35426497Sachemandir='${prefix}/man'
35526497Sache
35626497Sacheac_prev=
35726497Sachefor ac_option
35826497Sachedo
35926497Sache  # If the previous option needs an argument, assign it.
36026497Sache  if test -n "$ac_prev"; then
36126497Sache    eval "$ac_prev=\$ac_option"
36226497Sache    ac_prev=
36326497Sache    continue
36426497Sache  fi
36526497Sache
366119610Sache  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
36726497Sache
36826497Sache  # Accept the important Cygnus configure options, so we can diagnose typos.
36926497Sache
370119610Sache  case $ac_option in
37126497Sache
37226497Sache  -bindir | --bindir | --bindi | --bind | --bin | --bi)
37326497Sache    ac_prev=bindir ;;
37426497Sache  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375119610Sache    bindir=$ac_optarg ;;
37626497Sache
37726497Sache  -build | --build | --buil | --bui | --bu)
378119610Sache    ac_prev=build_alias ;;
37926497Sache  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380119610Sache    build_alias=$ac_optarg ;;
38126497Sache
38226497Sache  -cache-file | --cache-file | --cache-fil | --cache-fi \
38326497Sache  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
38426497Sache    ac_prev=cache_file ;;
38526497Sache  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
38626497Sache  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387119610Sache    cache_file=$ac_optarg ;;
38826497Sache
389119610Sache  --config-cache | -C)
390119610Sache    cache_file=config.cache ;;
391119610Sache
39226497Sache  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
39326497Sache    ac_prev=datadir ;;
39426497Sache  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
39526497Sache  | --da=*)
396119610Sache    datadir=$ac_optarg ;;
39726497Sache
39826497Sache  -disable-* | --disable-*)
399119610Sache    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
40026497Sache    # Reject names that are not valid shell variable names.
401119610Sache    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402119610Sache      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403119610Sache   { (exit 1); exit 1; }; }
404119610Sache    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405119610Sache    eval "enable_$ac_feature=no" ;;
40626497Sache
40726497Sache  -enable-* | --enable-*)
408119610Sache    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
40926497Sache    # Reject names that are not valid shell variable names.
410119610Sache    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411119610Sache      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412119610Sache   { (exit 1); exit 1; }; }
413119610Sache    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414119610Sache    case $ac_option in
415119610Sache      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
41626497Sache      *) ac_optarg=yes ;;
41726497Sache    esac
418119610Sache    eval "enable_$ac_feature='$ac_optarg'" ;;
41926497Sache
42026497Sache  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
42126497Sache  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
42226497Sache  | --exec | --exe | --ex)
42326497Sache    ac_prev=exec_prefix ;;
42426497Sache  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
42526497Sache  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
42626497Sache  | --exec=* | --exe=* | --ex=*)
427119610Sache    exec_prefix=$ac_optarg ;;
42826497Sache
42926497Sache  -gas | --gas | --ga | --g)
43026497Sache    # Obsolete; use --with-gas.
43126497Sache    with_gas=yes ;;
43226497Sache
433119610Sache  -help | --help | --hel | --he | -h)
434119610Sache    ac_init_help=long ;;
435119610Sache  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436119610Sache    ac_init_help=recursive ;;
437119610Sache  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438119610Sache    ac_init_help=short ;;
43926497Sache
44026497Sache  -host | --host | --hos | --ho)
441119610Sache    ac_prev=host_alias ;;
44226497Sache  -host=* | --host=* | --hos=* | --ho=*)
443119610Sache    host_alias=$ac_optarg ;;
44426497Sache
44526497Sache  -includedir | --includedir | --includedi | --included | --include \
44626497Sache  | --includ | --inclu | --incl | --inc)
44726497Sache    ac_prev=includedir ;;
44826497Sache  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
44926497Sache  | --includ=* | --inclu=* | --incl=* | --inc=*)
450119610Sache    includedir=$ac_optarg ;;
45126497Sache
45226497Sache  -infodir | --infodir | --infodi | --infod | --info | --inf)
45326497Sache    ac_prev=infodir ;;
45426497Sache  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455119610Sache    infodir=$ac_optarg ;;
45626497Sache
45726497Sache  -libdir | --libdir | --libdi | --libd)
45826497Sache    ac_prev=libdir ;;
45926497Sache  -libdir=* | --libdir=* | --libdi=* | --libd=*)
460119610Sache    libdir=$ac_optarg ;;
46126497Sache
46226497Sache  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
46326497Sache  | --libexe | --libex | --libe)
46426497Sache    ac_prev=libexecdir ;;
46526497Sache  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
46626497Sache  | --libexe=* | --libex=* | --libe=*)
467119610Sache    libexecdir=$ac_optarg ;;
46826497Sache
46926497Sache  -localstatedir | --localstatedir | --localstatedi | --localstated \
47026497Sache  | --localstate | --localstat | --localsta | --localst \
47126497Sache  | --locals | --local | --loca | --loc | --lo)
47226497Sache    ac_prev=localstatedir ;;
47326497Sache  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
47426497Sache  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
47526497Sache  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476119610Sache    localstatedir=$ac_optarg ;;
47726497Sache
47826497Sache  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
47926497Sache    ac_prev=mandir ;;
48026497Sache  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481119610Sache    mandir=$ac_optarg ;;
48226497Sache
48326497Sache  -nfp | --nfp | --nf)
48426497Sache    # Obsolete; use --without-fp.
48526497Sache    with_fp=no ;;
48626497Sache
48726497Sache  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488136644Sache  | --no-cr | --no-c | -n)
48926497Sache    no_create=yes ;;
49026497Sache
49126497Sache  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
49226497Sache  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
49326497Sache    no_recursion=yes ;;
49426497Sache
49526497Sache  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
49626497Sache  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
49726497Sache  | --oldin | --oldi | --old | --ol | --o)
49826497Sache    ac_prev=oldincludedir ;;
49926497Sache  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
50026497Sache  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
50126497Sache  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502119610Sache    oldincludedir=$ac_optarg ;;
50326497Sache
50426497Sache  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50526497Sache    ac_prev=prefix ;;
50626497Sache  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507119610Sache    prefix=$ac_optarg ;;
50826497Sache
50926497Sache  -program-prefix | --program-prefix | --program-prefi | --program-pref \
51026497Sache  | --program-pre | --program-pr | --program-p)
51126497Sache    ac_prev=program_prefix ;;
51226497Sache  -program-prefix=* | --program-prefix=* | --program-prefi=* \
51326497Sache  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514119610Sache    program_prefix=$ac_optarg ;;
51526497Sache
51626497Sache  -program-suffix | --program-suffix | --program-suffi | --program-suff \
51726497Sache  | --program-suf | --program-su | --program-s)
51826497Sache    ac_prev=program_suffix ;;
51926497Sache  -program-suffix=* | --program-suffix=* | --program-suffi=* \
52026497Sache  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521119610Sache    program_suffix=$ac_optarg ;;
52226497Sache
52326497Sache  -program-transform-name | --program-transform-name \
52426497Sache  | --program-transform-nam | --program-transform-na \
52526497Sache  | --program-transform-n | --program-transform- \
52626497Sache  | --program-transform | --program-transfor \
52726497Sache  | --program-transfo | --program-transf \
52826497Sache  | --program-trans | --program-tran \
52926497Sache  | --progr-tra | --program-tr | --program-t)
53026497Sache    ac_prev=program_transform_name ;;
53126497Sache  -program-transform-name=* | --program-transform-name=* \
53226497Sache  | --program-transform-nam=* | --program-transform-na=* \
53326497Sache  | --program-transform-n=* | --program-transform-=* \
53426497Sache  | --program-transform=* | --program-transfor=* \
53526497Sache  | --program-transfo=* | --program-transf=* \
53626497Sache  | --program-trans=* | --program-tran=* \
53726497Sache  | --progr-tra=* | --program-tr=* | --program-t=*)
538119610Sache    program_transform_name=$ac_optarg ;;
53926497Sache
54026497Sache  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
54126497Sache  | -silent | --silent | --silen | --sile | --sil)
54226497Sache    silent=yes ;;
54326497Sache
54426497Sache  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
54526497Sache    ac_prev=sbindir ;;
54626497Sache  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
54726497Sache  | --sbi=* | --sb=*)
548119610Sache    sbindir=$ac_optarg ;;
54926497Sache
55026497Sache  -sharedstatedir | --sharedstatedir | --sharedstatedi \
55126497Sache  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
55226497Sache  | --sharedst | --shareds | --shared | --share | --shar \
55326497Sache  | --sha | --sh)
55426497Sache    ac_prev=sharedstatedir ;;
55526497Sache  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
55626497Sache  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
55726497Sache  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
55826497Sache  | --sha=* | --sh=*)
559119610Sache    sharedstatedir=$ac_optarg ;;
56026497Sache
56126497Sache  -site | --site | --sit)
56226497Sache    ac_prev=site ;;
56326497Sache  -site=* | --site=* | --sit=*)
564119610Sache    site=$ac_optarg ;;
56526497Sache
56626497Sache  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
56726497Sache    ac_prev=srcdir ;;
56826497Sache  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569119610Sache    srcdir=$ac_optarg ;;
57026497Sache
57126497Sache  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
57226497Sache  | --syscon | --sysco | --sysc | --sys | --sy)
57326497Sache    ac_prev=sysconfdir ;;
57426497Sache  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
57526497Sache  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576119610Sache    sysconfdir=$ac_optarg ;;
57726497Sache
57826497Sache  -target | --target | --targe | --targ | --tar | --ta | --t)
579119610Sache    ac_prev=target_alias ;;
58026497Sache  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581119610Sache    target_alias=$ac_optarg ;;
58226497Sache
58326497Sache  -v | -verbose | --verbose | --verbos | --verbo | --verb)
58426497Sache    verbose=yes ;;
58526497Sache
586119610Sache  -version | --version | --versio | --versi | --vers | -V)
587119610Sache    ac_init_version=: ;;
58826497Sache
58926497Sache  -with-* | --with-*)
590119610Sache    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
59126497Sache    # Reject names that are not valid shell variable names.
592119610Sache    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593119610Sache      { echo "$as_me: error: invalid package name: $ac_package" >&2
594119610Sache   { (exit 1); exit 1; }; }
59526497Sache    ac_package=`echo $ac_package| sed 's/-/_/g'`
596119610Sache    case $ac_option in
597119610Sache      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
59826497Sache      *) ac_optarg=yes ;;
59926497Sache    esac
600119610Sache    eval "with_$ac_package='$ac_optarg'" ;;
60126497Sache
60226497Sache  -without-* | --without-*)
603119610Sache    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
60426497Sache    # Reject names that are not valid shell variable names.
605119610Sache    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606119610Sache      { echo "$as_me: error: invalid package name: $ac_package" >&2
607119610Sache   { (exit 1); exit 1; }; }
608119610Sache    ac_package=`echo $ac_package | sed 's/-/_/g'`
609119610Sache    eval "with_$ac_package=no" ;;
61026497Sache
61126497Sache  --x)
61226497Sache    # Obsolete; use --with-x.
61326497Sache    with_x=yes ;;
61426497Sache
61526497Sache  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
61626497Sache  | --x-incl | --x-inc | --x-in | --x-i)
61726497Sache    ac_prev=x_includes ;;
61826497Sache  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
61926497Sache  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620119610Sache    x_includes=$ac_optarg ;;
62126497Sache
62226497Sache  -x-libraries | --x-libraries | --x-librarie | --x-librari \
62326497Sache  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
62426497Sache    ac_prev=x_libraries ;;
62526497Sache  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
62626497Sache  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627119610Sache    x_libraries=$ac_optarg ;;
62826497Sache
629119610Sache  -*) { echo "$as_me: error: unrecognized option: $ac_option
630119610SacheTry \`$0 --help' for more information." >&2
631119610Sache   { (exit 1); exit 1; }; }
63226497Sache    ;;
63326497Sache
634119610Sache  *=*)
635119610Sache    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636119610Sache    # Reject names that are not valid shell variable names.
637119610Sache    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638119610Sache      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639119610Sache   { (exit 1); exit 1; }; }
640119610Sache    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641119610Sache    eval "$ac_envvar='$ac_optarg'"
642119610Sache    export $ac_envvar ;;
643119610Sache
64426497Sache  *)
645119610Sache    # FIXME: should be removed in autoconf 3.0.
646119610Sache    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647119610Sache    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648119610Sache      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649119610Sache    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
65026497Sache    ;;
65126497Sache
65226497Sache  esac
65326497Sachedone
65426497Sache
65526497Sacheif test -n "$ac_prev"; then
656119610Sache  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657119610Sache  { echo "$as_me: error: missing argument to $ac_option" >&2
658119610Sache   { (exit 1); exit 1; }; }
65926497Sachefi
66026497Sache
661119610Sache# Be sure to have absolute paths.
662119610Sachefor ac_var in exec_prefix prefix
663119610Sachedo
664119610Sache  eval ac_val=$`echo $ac_var`
665119610Sache  case $ac_val in
666119610Sache    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667136644Sache    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668119610Sache   { (exit 1); exit 1; }; };;
669119610Sache  esac
670119610Sachedone
67126497Sache
672119610Sache# Be sure to have absolute paths.
673119610Sachefor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674157184Sache	      localstatedir libdir includedir oldincludedir infodir mandir
67526497Sachedo
676119610Sache  eval ac_val=$`echo $ac_var`
677119610Sache  case $ac_val in
678119610Sache    [\\/$]* | ?:[\\/]* ) ;;
679136644Sache    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680119610Sache   { (exit 1); exit 1; }; };;
68126497Sache  esac
68226497Sachedone
68326497Sache
684119610Sache# There might be people who depend on the old broken behavior: `$host'
685119610Sache# used to hold the argument of --host etc.
686136644Sache# FIXME: To remove some day.
687119610Sachebuild=$build_alias
688119610Sachehost=$host_alias
689119610Sachetarget=$target_alias
69026497Sache
691136644Sache# FIXME: To remove some day.
692119610Sacheif test "x$host_alias" != x; then
693119610Sache  if test "x$build_alias" = x; then
694119610Sache    cross_compiling=maybe
695119610Sache    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696119610Sache    If a cross compiler is detected then cross compile mode will be used." >&2
697119610Sache  elif test "x$build_alias" != "x$host_alias"; then
698119610Sache    cross_compiling=yes
699119610Sache  fi
700119610Sachefi
70126497Sache
702119610Sacheac_tool_prefix=
703119610Sachetest -n "$host_alias" && ac_tool_prefix=$host_alias-
70426497Sache
705119610Sachetest "$silent" = yes && exec 6>/dev/null
706119610Sache
707136644Sache
70826497Sache# Find the source files, if location was not specified.
70926497Sacheif test -z "$srcdir"; then
71026497Sache  ac_srcdir_defaulted=yes
71126497Sache  # Try the directory containing this script, then its parent.
712136644Sache  ac_confdir=`(dirname "$0") 2>/dev/null ||
713136644Sache$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714157184Sache	 X"$0" : 'X\(//\)[^/]' \| \
715157184Sache	 X"$0" : 'X\(//\)$' \| \
716157184Sache	 X"$0" : 'X\(/\)' \| \
717157184Sache	 .     : '\(.\)' 2>/dev/null ||
718136644Sacheecho X"$0" |
719136644Sache    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720136644Sache  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721136644Sache  	  /^X\(\/\/\)$/{ s//\1/; q; }
722136644Sache  	  /^X\(\/\).*/{ s//\1/; q; }
723136644Sache  	  s/.*/./; q'`
72426497Sache  srcdir=$ac_confdir
72526497Sache  if test ! -r $srcdir/$ac_unique_file; then
72626497Sache    srcdir=..
72726497Sache  fi
72826497Sacheelse
72926497Sache  ac_srcdir_defaulted=no
73026497Sachefi
73126497Sacheif test ! -r $srcdir/$ac_unique_file; then
73226497Sache  if test "$ac_srcdir_defaulted" = yes; then
733136644Sache    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734119610Sache   { (exit 1); exit 1; }; }
73526497Sache  else
736136644Sache    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737119610Sache   { (exit 1); exit 1; }; }
73826497Sache  fi
73926497Sachefi
740136644Sache(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741136644Sache  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742136644Sache   { (exit 1); exit 1; }; }
743119610Sachesrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744119610Sacheac_env_build_alias_set=${build_alias+set}
745119610Sacheac_env_build_alias_value=$build_alias
746119610Sacheac_cv_env_build_alias_set=${build_alias+set}
747119610Sacheac_cv_env_build_alias_value=$build_alias
748119610Sacheac_env_host_alias_set=${host_alias+set}
749119610Sacheac_env_host_alias_value=$host_alias
750119610Sacheac_cv_env_host_alias_set=${host_alias+set}
751119610Sacheac_cv_env_host_alias_value=$host_alias
752119610Sacheac_env_target_alias_set=${target_alias+set}
753119610Sacheac_env_target_alias_value=$target_alias
754119610Sacheac_cv_env_target_alias_set=${target_alias+set}
755119610Sacheac_cv_env_target_alias_value=$target_alias
756119610Sacheac_env_CC_set=${CC+set}
757119610Sacheac_env_CC_value=$CC
758119610Sacheac_cv_env_CC_set=${CC+set}
759119610Sacheac_cv_env_CC_value=$CC
760119610Sacheac_env_CFLAGS_set=${CFLAGS+set}
761119610Sacheac_env_CFLAGS_value=$CFLAGS
762119610Sacheac_cv_env_CFLAGS_set=${CFLAGS+set}
763119610Sacheac_cv_env_CFLAGS_value=$CFLAGS
764119610Sacheac_env_LDFLAGS_set=${LDFLAGS+set}
765119610Sacheac_env_LDFLAGS_value=$LDFLAGS
766119610Sacheac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767119610Sacheac_cv_env_LDFLAGS_value=$LDFLAGS
768119610Sacheac_env_CPPFLAGS_set=${CPPFLAGS+set}
769119610Sacheac_env_CPPFLAGS_value=$CPPFLAGS
770119610Sacheac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771119610Sacheac_cv_env_CPPFLAGS_value=$CPPFLAGS
772119610Sacheac_env_CPP_set=${CPP+set}
773119610Sacheac_env_CPP_value=$CPP
774119610Sacheac_cv_env_CPP_set=${CPP+set}
775119610Sacheac_cv_env_CPP_value=$CPP
77626497Sache
777119610Sache#
778119610Sache# Report the --help message.
779119610Sache#
780119610Sacheif test "$ac_init_help" = "long"; then
781119610Sache  # Omit some internal or obsolete options to make the list less imposing.
782119610Sache  # This message is too long to be a string in the A/UX 3.1 sh.
783136644Sache  cat <<_ACEOF
784165670Sache\`configure' configures readline 5.2 to adapt to many kinds of systems.
785119610Sache
786119610SacheUsage: $0 [OPTION]... [VAR=VALUE]...
787119610Sache
788119610SacheTo assign environment variables (e.g., CC, CFLAGS...), specify them as
789119610SacheVAR=VALUE.  See below for descriptions of some of the useful variables.
790119610Sache
791119610SacheDefaults for the options are specified in brackets.
792119610Sache
793119610SacheConfiguration:
794119610Sache  -h, --help              display this help and exit
795119610Sache      --help=short        display options specific to this package
796119610Sache      --help=recursive    display the short help of all the included packages
797119610Sache  -V, --version           display version information and exit
798119610Sache  -q, --quiet, --silent   do not print \`checking...' messages
799119610Sache      --cache-file=FILE   cache test results in FILE [disabled]
800119610Sache  -C, --config-cache      alias for \`--cache-file=config.cache'
801119610Sache  -n, --no-create         do not create output files
802119610Sache      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
803119610Sache
804136644Sache_ACEOF
805119610Sache
806136644Sache  cat <<_ACEOF
807119610SacheInstallation directories:
808119610Sache  --prefix=PREFIX         install architecture-independent files in PREFIX
809157184Sache			  [$ac_default_prefix]
810119610Sache  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
811157184Sache			  [PREFIX]
812119610Sache
813119610SacheBy default, \`make install' will install all the files in
814119610Sache\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
815119610Sachean installation prefix other than \`$ac_default_prefix' using \`--prefix',
816119610Sachefor instance \`--prefix=\$HOME'.
817119610Sache
818119610SacheFor better control, use the options below.
819119610Sache
820119610SacheFine tuning of the installation directories:
821119610Sache  --bindir=DIR           user executables [EPREFIX/bin]
822119610Sache  --sbindir=DIR          system admin executables [EPREFIX/sbin]
823119610Sache  --libexecdir=DIR       program executables [EPREFIX/libexec]
824119610Sache  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
825119610Sache  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
826119610Sache  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
827119610Sache  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
828119610Sache  --libdir=DIR           object code libraries [EPREFIX/lib]
829119610Sache  --includedir=DIR       C header files [PREFIX/include]
830119610Sache  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
831119610Sache  --infodir=DIR          info documentation [PREFIX/info]
832119610Sache  --mandir=DIR           man documentation [PREFIX/man]
833136644Sache_ACEOF
834119610Sache
835136644Sache  cat <<\_ACEOF
836119610Sache
837119610SacheSystem types:
838119610Sache  --build=BUILD     configure for building on BUILD [guessed]
839136644Sache  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840136644Sache_ACEOF
841119610Sachefi
842119610Sache
843119610Sacheif test -n "$ac_init_help"; then
844119610Sache  case $ac_init_help in
845165670Sache     short | recursive ) echo "Configuration of readline 5.2:";;
846119610Sache   esac
847136644Sache  cat <<\_ACEOF
848119610Sache
849119610SacheOptional Features:
850119610Sache  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851119610Sache  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852136644Sache  --enable-multibyte      enable multibyte characters if OS supports them
853119610Sache  --enable-shared         build shared libraries [default=YES]
854119610Sache  --enable-static         build static libraries [default=YES]
855119610Sache
856119610SacheOptional Packages:
857119610Sache  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
858119610Sache  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
859119610Sache  --with-curses           use the curses library instead of the termcap
860119610Sache                          library
861157184Sache  --with-purify           configure to postprocess with purify
862119610Sache
863119610SacheSome influential environment variables:
864119610Sache  CC          C compiler command
865119610Sache  CFLAGS      C compiler flags
866119610Sache  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
867119610Sache              nonstandard directory <lib dir>
868119610Sache  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
869119610Sache              headers in a nonstandard directory <include dir>
870119610Sache  CPP         C preprocessor
871119610Sache
872119610SacheUse these variables to override the choices made by `configure' or to help
873119610Sacheit to find libraries and programs with nonstandard names/locations.
874119610Sache
875119610SacheReport bugs to <bug-readline@gnu.org>.
876136644Sache_ACEOF
877119610Sachefi
878119610Sache
879119610Sacheif test "$ac_init_help" = "recursive"; then
880119610Sache  # If there are subdirs, report their specific --help.
881119610Sache  ac_popdir=`pwd`
882136644Sache  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883136644Sache    test -d $ac_dir || continue
884136644Sache    ac_builddir=.
885119610Sache
886136644Sacheif test "$ac_dir" != .; then
887136644Sache  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888136644Sache  # A "../" for each directory in $ac_dir_suffix.
889136644Sache  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890136644Sacheelse
891136644Sache  ac_dir_suffix= ac_top_builddir=
892136644Sachefi
893119610Sache
894136644Sachecase $srcdir in
895136644Sache  .)  # No --srcdir option.  We are building in place.
896136644Sache    ac_srcdir=.
897136644Sache    if test -z "$ac_top_builddir"; then
898136644Sache       ac_top_srcdir=.
899136644Sache    else
900136644Sache       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901136644Sache    fi ;;
902136644Sache  [\\/]* | ?:[\\/]* )  # Absolute path.
903136644Sache    ac_srcdir=$srcdir$ac_dir_suffix;
904136644Sache    ac_top_srcdir=$srcdir ;;
905136644Sache  *) # Relative path.
906136644Sache    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907136644Sache    ac_top_srcdir=$ac_top_builddir$srcdir ;;
908136644Sacheesac
909136644Sache
910157184Sache# Do not use `cd foo && pwd` to compute absolute paths, because
911157184Sache# the directories may not exist.
912157184Sachecase `pwd` in
913157184Sache.) ac_abs_builddir="$ac_dir";;
914157184Sache*)
915157184Sache  case "$ac_dir" in
916157184Sache  .) ac_abs_builddir=`pwd`;;
917157184Sache  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
918157184Sache  *) ac_abs_builddir=`pwd`/"$ac_dir";;
919157184Sache  esac;;
920157184Sacheesac
921157184Sachecase $ac_abs_builddir in
922157184Sache.) ac_abs_top_builddir=${ac_top_builddir}.;;
923157184Sache*)
924157184Sache  case ${ac_top_builddir}. in
925157184Sache  .) ac_abs_top_builddir=$ac_abs_builddir;;
926157184Sache  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
927157184Sache  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
928157184Sache  esac;;
929157184Sacheesac
930157184Sachecase $ac_abs_builddir in
931157184Sache.) ac_abs_srcdir=$ac_srcdir;;
932157184Sache*)
933157184Sache  case $ac_srcdir in
934157184Sache  .) ac_abs_srcdir=$ac_abs_builddir;;
935157184Sache  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
936157184Sache  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
937157184Sache  esac;;
938157184Sacheesac
939157184Sachecase $ac_abs_builddir in
940157184Sache.) ac_abs_top_srcdir=$ac_top_srcdir;;
941157184Sache*)
942157184Sache  case $ac_top_srcdir in
943157184Sache  .) ac_abs_top_srcdir=$ac_abs_builddir;;
944157184Sache  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
945157184Sache  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
946157184Sache  esac;;
947157184Sacheesac
948157184Sache
949136644Sache    cd $ac_dir
950119610Sache    # Check for guested configure; otherwise get Cygnus style configure.
951136644Sache    if test -f $ac_srcdir/configure.gnu; then
952119610Sache      echo
953136644Sache      $SHELL $ac_srcdir/configure.gnu  --help=recursive
954136644Sache    elif test -f $ac_srcdir/configure; then
955119610Sache      echo
956136644Sache      $SHELL $ac_srcdir/configure  --help=recursive
957136644Sache    elif test -f $ac_srcdir/configure.ac ||
958157184Sache	   test -f $ac_srcdir/configure.in; then
959119610Sache      echo
960119610Sache      $ac_configure --help
961119610Sache    else
962136644Sache      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963119610Sache    fi
964119610Sache    cd $ac_popdir
965119610Sache  done
966119610Sachefi
967119610Sache
968119610Sachetest -n "$ac_init_help" && exit 0
969119610Sacheif $ac_init_version; then
970136644Sache  cat <<\_ACEOF
971165670Sachereadline configure 5.2
972157184Sachegenerated by GNU Autoconf 2.59
973119610Sache
974157184SacheCopyright (C) 2003 Free Software Foundation, Inc.
975119610SacheThis configure script is free software; the Free Software Foundation
976119610Sachegives unlimited permission to copy, distribute and modify it.
977136644Sache_ACEOF
978119610Sache  exit 0
979119610Sachefi
980119610Sacheexec 5>config.log
981136644Sachecat >&5 <<_ACEOF
982119610SacheThis file contains any messages produced by compilers while
983119610Sacherunning configure, to aid debugging if configure makes a mistake.
984119610Sache
985165670SacheIt was created by readline $as_me 5.2, which was
986157184Sachegenerated by GNU Autoconf 2.59.  Invocation command line was
987119610Sache
988119610Sache  $ $0 $@
989119610Sache
990136644Sache_ACEOF
991119610Sache{
992119610Sachecat <<_ASUNAME
993136644Sache## --------- ##
994136644Sache## Platform. ##
995136644Sache## --------- ##
996119610Sache
997119610Sachehostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998119610Sacheuname -m = `(uname -m) 2>/dev/null || echo unknown`
999119610Sacheuname -r = `(uname -r) 2>/dev/null || echo unknown`
1000119610Sacheuname -s = `(uname -s) 2>/dev/null || echo unknown`
1001119610Sacheuname -v = `(uname -v) 2>/dev/null || echo unknown`
1002119610Sache
1003119610Sache/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004119610Sache/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1005119610Sache
1006119610Sache/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1007119610Sache/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1008119610Sache/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009119610Sachehostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1010119610Sache/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1011119610Sache/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1012119610Sache/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1013119610Sache
1014136644Sache_ASUNAME
1015119610Sache
1016136644Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017136644Sachefor as_dir in $PATH
1018136644Sachedo
1019136644Sache  IFS=$as_save_IFS
1020136644Sache  test -z "$as_dir" && as_dir=.
1021136644Sache  echo "PATH: $as_dir"
1022136644Sachedone
1023136644Sache
1024119610Sache} >&5
1025119610Sache
1026136644Sachecat >&5 <<_ACEOF
1027119610Sache
1028119610Sache
1029136644Sache## ----------- ##
1030136644Sache## Core tests. ##
1031136644Sache## ----------- ##
1032136644Sache
1033136644Sache_ACEOF
1034136644Sache
1035136644Sache
1036119610Sache# Keep a trace of the command line.
1037119610Sache# Strip out --no-create and --no-recursion so they do not pile up.
1038136644Sache# Strip out --silent because we don't want to record it for future runs.
1039119610Sache# Also quote any args containing shell meta-characters.
1040136644Sache# Make two passes to allow for proper duplicate-argument suppression.
1041119610Sacheac_configure_args=
1042136644Sacheac_configure_args0=
1043136644Sacheac_configure_args1=
1044119610Sacheac_sep=
1045136644Sacheac_must_keep_next=false
1046136644Sachefor ac_pass in 1 2
1047119610Sachedo
1048136644Sache  for ac_arg
1049136644Sache  do
1050136644Sache    case $ac_arg in
1051136644Sache    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052136644Sache    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053136644Sache    | -silent | --silent | --silen | --sile | --sil)
1054136644Sache      continue ;;
1055136644Sache    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056136644Sache      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1057136644Sache    esac
1058136644Sache    case $ac_pass in
1059136644Sache    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1060136644Sache    2)
1061136644Sache      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062136644Sache      if test $ac_must_keep_next = true; then
1063157184Sache	ac_must_keep_next=false # Got value, back to normal.
1064136644Sache      else
1065157184Sache	case $ac_arg in
1066157184Sache	  *=* | --config-cache | -C | -disable-* | --disable-* \
1067157184Sache	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068157184Sache	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069157184Sache	  | -with-* | --with-* | -without-* | --without-* | --x)
1070157184Sache	    case "$ac_configure_args0 " in
1071157184Sache	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1072157184Sache	    esac
1073157184Sache	    ;;
1074157184Sache	  -* ) ac_must_keep_next=true ;;
1075157184Sache	esac
1076136644Sache      fi
1077136644Sache      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078136644Sache      # Get rid of the leading space.
1079136644Sache      ac_sep=" "
1080136644Sache      ;;
1081136644Sache    esac
1082136644Sache  done
1083119610Sachedone
1084136644Sache$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085136644Sache$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1086119610Sache
1087119610Sache# When interrupted or exit'd, cleanup temporary files, and complete
1088119610Sache# config.log.  We remove comments because anyway the quotes in there
1089119610Sache# would cause problems or look ugly.
1090136644Sache# WARNING: Be sure not to use single quotes in there, as some shells,
1091136644Sache# such as our DU 5.0 friend, will then `close' the trap.
1092119610Sachetrap 'exit_status=$?
1093119610Sache  # Save into config.log some information that might help in debugging.
1094136644Sache  {
1095136644Sache    echo
1096136644Sache
1097136644Sache    cat <<\_ASBOX
1098136644Sache## ---------------- ##
1099136644Sache## Cache variables. ##
1100136644Sache## ---------------- ##
1101136644Sache_ASBOX
1102136644Sache    echo
1103136644Sache    # The following way of writing the cache mishandles newlines in values,
1104119610Sache{
1105119610Sache  (set) 2>&1 |
1106119610Sache    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1107119610Sache    *ac_space=\ *)
1108119610Sache      sed -n \
1109157184Sache	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110157184Sache	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111119610Sache      ;;
1112119610Sache    *)
1113119610Sache      sed -n \
1114157184Sache	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1115119610Sache      ;;
1116119610Sache    esac;
1117136644Sache}
1118136644Sache    echo
1119136644Sache
1120136644Sache    cat <<\_ASBOX
1121136644Sache## ----------------- ##
1122136644Sache## Output variables. ##
1123136644Sache## ----------------- ##
1124136644Sache_ASBOX
1125136644Sache    echo
1126136644Sache    for ac_var in $ac_subst_vars
1127136644Sache    do
1128136644Sache      eval ac_val=$`echo $ac_var`
1129136644Sache      echo "$ac_var='"'"'$ac_val'"'"'"
1130136644Sache    done | sort
1131136644Sache    echo
1132136644Sache
1133136644Sache    if test -n "$ac_subst_files"; then
1134136644Sache      cat <<\_ASBOX
1135136644Sache## ------------- ##
1136136644Sache## Output files. ##
1137136644Sache## ------------- ##
1138136644Sache_ASBOX
1139136644Sache      echo
1140136644Sache      for ac_var in $ac_subst_files
1141136644Sache      do
1142136644Sache	eval ac_val=$`echo $ac_var`
1143157184Sache	echo "$ac_var='"'"'$ac_val'"'"'"
1144136644Sache      done | sort
1145136644Sache      echo
1146136644Sache    fi
1147136644Sache
1148136644Sache    if test -s confdefs.h; then
1149136644Sache      cat <<\_ASBOX
1150136644Sache## ----------- ##
1151136644Sache## confdefs.h. ##
1152136644Sache## ----------- ##
1153136644Sache_ASBOX
1154136644Sache      echo
1155136644Sache      sed "/^$/d" confdefs.h | sort
1156136644Sache      echo
1157136644Sache    fi
1158136644Sache    test "$ac_signal" != 0 &&
1159136644Sache      echo "$as_me: caught signal $ac_signal"
1160136644Sache    echo "$as_me: exit $exit_status"
1161136644Sache  } >&5
1162157184Sache  rm -f core *.core &&
1163136644Sache  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1164119610Sache    exit $exit_status
1165119610Sache     ' 0
1166119610Sachefor ac_signal in 1 2 13 15; do
1167119610Sache  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168119610Sachedone
1169119610Sacheac_signal=0
1170119610Sache
1171119610Sache# confdefs.h avoids OS command line length limits that DEFS can exceed.
1172119610Sacherm -rf conftest* confdefs.h
1173119610Sache# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1174119610Sacheecho >confdefs.h
1175119610Sache
1176136644Sache# Predefined preprocessor variables.
1177136644Sache
1178136644Sachecat >>confdefs.h <<_ACEOF
1179136644Sache#define PACKAGE_NAME "$PACKAGE_NAME"
1180136644Sache_ACEOF
1181136644Sache
1182136644Sache
1183136644Sachecat >>confdefs.h <<_ACEOF
1184136644Sache#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185136644Sache_ACEOF
1186136644Sache
1187136644Sache
1188136644Sachecat >>confdefs.h <<_ACEOF
1189136644Sache#define PACKAGE_VERSION "$PACKAGE_VERSION"
1190136644Sache_ACEOF
1191136644Sache
1192136644Sache
1193136644Sachecat >>confdefs.h <<_ACEOF
1194136644Sache#define PACKAGE_STRING "$PACKAGE_STRING"
1195136644Sache_ACEOF
1196136644Sache
1197136644Sache
1198136644Sachecat >>confdefs.h <<_ACEOF
1199136644Sache#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200136644Sache_ACEOF
1201136644Sache
1202136644Sache
1203119610Sache# Let the site file select an alternate cache file if it wants to.
120426497Sache# Prefer explicitly selected file to automatically selected ones.
120526497Sacheif test -z "$CONFIG_SITE"; then
120626497Sache  if test "x$prefix" != xNONE; then
120726497Sache    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
120826497Sache  else
120926497Sache    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
121026497Sache  fi
121126497Sachefi
121226497Sachefor ac_site_file in $CONFIG_SITE; do
121326497Sache  if test -r "$ac_site_file"; then
1214136644Sache    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215119610Sacheecho "$as_me: loading site script $ac_site_file" >&6;}
1216136644Sache    sed 's/^/| /' "$ac_site_file" >&5
121726497Sache    . "$ac_site_file"
121826497Sache  fi
121926497Sachedone
122026497Sache
122126497Sacheif test -r "$cache_file"; then
1222119610Sache  # Some versions of bash will fail to source /dev/null (special
1223119610Sache  # files actually), so we avoid doing that.
1224119610Sache  if test -f "$cache_file"; then
1225136644Sache    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226119610Sacheecho "$as_me: loading cache $cache_file" >&6;}
1227119610Sache    case $cache_file in
1228119610Sache      [\\/]* | ?:[\\/]* ) . $cache_file;;
1229119610Sache      *)                      . ./$cache_file;;
1230119610Sache    esac
1231119610Sache  fi
123226497Sacheelse
1233136644Sache  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234119610Sacheecho "$as_me: creating cache $cache_file" >&6;}
1235119610Sache  >$cache_file
123626497Sachefi
123726497Sache
1238119610Sache# Check that the precious variables saved in the cache have kept the same
1239119610Sache# value.
1240119610Sacheac_cache_corrupted=false
1241119610Sachefor ac_var in `(set) 2>&1 |
1242157184Sache	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243119610Sache  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244119610Sache  eval ac_new_set=\$ac_env_${ac_var}_set
1245119610Sache  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246119610Sache  eval ac_new_val="\$ac_env_${ac_var}_value"
1247119610Sache  case $ac_old_set,$ac_new_set in
1248119610Sache    set,)
1249136644Sache      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250119610Sacheecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251119610Sache      ac_cache_corrupted=: ;;
1252119610Sache    ,set)
1253136644Sache      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254119610Sacheecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255119610Sache      ac_cache_corrupted=: ;;
1256119610Sache    ,);;
1257119610Sache    *)
1258119610Sache      if test "x$ac_old_val" != "x$ac_new_val"; then
1259157184Sache	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260119610Sacheecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261157184Sache	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1262119610Sacheecho "$as_me:   former value:  $ac_old_val" >&2;}
1263157184Sache	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1264119610Sacheecho "$as_me:   current value: $ac_new_val" >&2;}
1265157184Sache	ac_cache_corrupted=:
1266119610Sache      fi;;
1267119610Sache  esac
1268136644Sache  # Pass precious variables to config.status.
1269119610Sache  if test "$ac_new_set" = set; then
1270119610Sache    case $ac_new_val in
1271119610Sache    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272136644Sache      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273136644Sache    *) ac_arg=$ac_var=$ac_new_val ;;
1274119610Sache    esac
1275136644Sache    case " $ac_configure_args " in
1276136644Sache      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1277136644Sache      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278136644Sache    esac
1279119610Sache  fi
1280119610Sachedone
1281119610Sacheif $ac_cache_corrupted; then
1282136644Sache  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283119610Sacheecho "$as_me: error: changes in the environment can compromise the build" >&2;}
1284136644Sache  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285119610Sacheecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286119610Sache   { (exit 1); exit 1; }; }
1287119610Sachefi
1288119610Sache
128926497Sacheac_ext=c
129026497Sacheac_cpp='$CPP $CPPFLAGS'
1291119610Sacheac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292119610Sacheac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293119610Sacheac_compiler_gnu=$ac_cv_c_compiler_gnu
129426497Sache
129526497Sache
1296136644Sache
1297136644Sache
1298136644Sache
1299136644Sache
1300136644Sache
1301136644Sache
1302136644Sache
1303136644Sache
1304136644Sache
1305136644Sache
1306136644Sache
1307136644Sache
1308136644Sache
1309136644Sache
1310136644Sache
1311136644Sache
1312136644Sache
1313136644Sache
1314136644Sache
1315136644Sache
1316136644Sache
1317136644Sache
1318136644Sache
1319136644Sache
1320136644Sache
1321136644Sache
1322136644Sache
1323136644Sache
1324136644Sache
132526497Sacheac_aux_dir=
132626497Sachefor ac_dir in ./support $srcdir/./support; do
132726497Sache  if test -f $ac_dir/install-sh; then
132826497Sache    ac_aux_dir=$ac_dir
132926497Sache    ac_install_sh="$ac_aux_dir/install-sh -c"
133026497Sache    break
133126497Sache  elif test -f $ac_dir/install.sh; then
133226497Sache    ac_aux_dir=$ac_dir
133326497Sache    ac_install_sh="$ac_aux_dir/install.sh -c"
133426497Sache    break
1335119610Sache  elif test -f $ac_dir/shtool; then
1336119610Sache    ac_aux_dir=$ac_dir
1337119610Sache    ac_install_sh="$ac_aux_dir/shtool install -c"
1338119610Sache    break
133926497Sache  fi
134026497Sachedone
134126497Sacheif test -z "$ac_aux_dir"; then
1342136644Sache  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1343119610Sacheecho "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1344119610Sache   { (exit 1); exit 1; }; }
134526497Sachefi
1346119610Sacheac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347119610Sacheac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348119610Sacheac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
134926497Sache
1350136644Sache          ac_config_headers="$ac_config_headers config.h"
135126497Sache
135226497Sache
1353165670SacheLIBVERSION=5.2
1354136644Sache
135526497Sache# Make sure we can run config.sub.
1356119610Sache$ac_config_sub sun4 >/dev/null 2>&1 ||
1357136644Sache  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1358119610Sacheecho "$as_me: error: cannot run $ac_config_sub" >&2;}
1359119610Sache   { (exit 1); exit 1; }; }
136026497Sache
1361136644Sacheecho "$as_me:$LINENO: checking build system type" >&5
1362119610Sacheecho $ECHO_N "checking build system type... $ECHO_C" >&6
1363119610Sacheif test "${ac_cv_build+set}" = set; then
1364119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
1365119610Sacheelse
1366119610Sache  ac_cv_build_alias=$build_alias
1367119610Sachetest -z "$ac_cv_build_alias" &&
1368119610Sache  ac_cv_build_alias=`$ac_config_guess`
1369119610Sachetest -z "$ac_cv_build_alias" &&
1370136644Sache  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1371119610Sacheecho "$as_me: error: cannot guess build type; you must specify one" >&2;}
1372119610Sache   { (exit 1); exit 1; }; }
1373119610Sacheac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1374136644Sache  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1375136644Sacheecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1376119610Sache   { (exit 1); exit 1; }; }
137726497Sache
1378119610Sachefi
1379136644Sacheecho "$as_me:$LINENO: result: $ac_cv_build" >&5
1380119610Sacheecho "${ECHO_T}$ac_cv_build" >&6
1381119610Sachebuild=$ac_cv_build
1382119610Sachebuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1383119610Sachebuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1384119610Sachebuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
138526497Sache
1386136644Sache
1387136644Sacheecho "$as_me:$LINENO: checking host system type" >&5
1388119610Sacheecho $ECHO_N "checking host system type... $ECHO_C" >&6
1389119610Sacheif test "${ac_cv_host+set}" = set; then
1390119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
1391119610Sacheelse
1392119610Sache  ac_cv_host_alias=$host_alias
1393119610Sachetest -z "$ac_cv_host_alias" &&
1394119610Sache  ac_cv_host_alias=$ac_cv_build_alias
1395119610Sacheac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1396136644Sache  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1397119610Sacheecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1398119610Sache   { (exit 1); exit 1; }; }
139926497Sache
1400119610Sachefi
1401136644Sacheecho "$as_me:$LINENO: result: $ac_cv_host" >&5
1402119610Sacheecho "${ECHO_T}$ac_cv_host" >&6
1403119610Sachehost=$ac_cv_host
1404119610Sachehost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405119610Sachehost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406119610Sachehost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
140726497Sache
1408136644Sache
1409136644Sache
141035486Sacheopt_curses=no
1411157184Sacheopt_purify=no
141235486Sache
1413136644Sache
141435486Sache# Check whether --with-curses or --without-curses was given.
141535486Sacheif test "${with_curses+set}" = set; then
141635486Sache  withval="$with_curses"
141735486Sache  opt_curses=$withval
1418119610Sachefi;
141935486Sache
1420157184Sache# Check whether --with-purify or --without-purify was given.
1421157184Sacheif test "${with_purify+set}" = set; then
1422157184Sache  withval="$with_purify"
1423157184Sache  opt_purify=$withval
1424157184Sachefi;
1425157184Sache
142635486Sacheif test "$opt_curses" = "yes"; then
142735486Sache	prefer_curses=yes
142835486Sachefi
142935486Sache
1430157184Sacheif test "$opt_purify" = yes; then
1431157184Sache	PURIFY="purify"
1432157184Sacheelse
1433157184Sache	PURIFY=
1434157184Sachefi
1435157184Sache
1436136644Sacheopt_multibyte=yes
1437119610Sacheopt_static_libs=yes
1438119610Sacheopt_shared_libs=yes
1439119610Sache
1440136644Sache# Check whether --enable-multibyte or --disable-multibyte was given.
1441136644Sacheif test "${enable_multibyte+set}" = set; then
1442136644Sache  enableval="$enable_multibyte"
1443136644Sache  opt_multibyte=$enableval
1444136644Sachefi;
1445119610Sache# Check whether --enable-shared or --disable-shared was given.
1446119610Sacheif test "${enable_shared+set}" = set; then
1447119610Sache  enableval="$enable_shared"
1448119610Sache  opt_shared_libs=$enableval
1449119610Sachefi;
1450119610Sache# Check whether --enable-static or --disable-static was given.
1451119610Sacheif test "${enable_static+set}" = set; then
1452119610Sache  enableval="$enable_static"
1453119610Sache  opt_static_libs=$enableval
1454119610Sachefi;
1455119610Sache
1456136644Sacheif test $opt_multibyte = no; then
1457136644Sachecat >>confdefs.h <<\_ACEOF
1458136644Sache#define NO_MULTIBYTE_SUPPORT 1
1459136644Sache_ACEOF
1460136644Sache
1461136644Sachefi
1462136644Sache
1463157184Sache
1464157184Sache
1465165670SacheCROSS_COMPILE=
1466157184Sacheif test "x$cross_compiling" = "xyes"; then
1467157184Sache    case "${host}" in
1468157184Sache    *-cygwin*)
1469157184Sache        cross_cache=${srcdir}/cross-build/cygwin.cache
1470157184Sache        ;;
1471157184Sache    *-mingw*)
1472157184Sache        cross_cache=${srcdir}/cross-build/mingw.cache
1473157184Sache        ;;
1474157184Sache    i[3456]86-*-beos*)
1475157184Sache        cross_cache=${srcdir}/cross-build/x86-beos.cache
1476157184Sache        ;;
1477157184Sache    *)  echo "configure: cross-compiling for $host is not supported" >&2
1478157184Sache        ;;
1479157184Sache    esac
1480157184Sache    if test -n "${cross_cache}" && test -r "${cross_cache}"; then
1481157184Sache        echo "loading cross-build cache file ${cross_cache}"
1482157184Sache        . ${cross_cache}
1483157184Sache    fi
1484157184Sache    unset cross_cache
1485157184Sache    CROSS_COMPILE='-DCROSS_COMPILING'
1486157184Sache
1487157184Sachefi
1488157184Sache
1489119610Sacheecho ""
1490119610Sacheecho "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
1491119610Sacheecho ""
1492119610Sache
149326497Sache# We want these before the checks, so the checks can modify their values.
149426497Sachetest -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
149526497Sache
1496136644Sacheecho "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1497136644Sacheecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1498157184Sacheset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1499119610Sacheif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1500119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
150175406Sacheelse
1502136644Sache  cat >conftest.make <<\_ACEOF
150375406Sacheall:
1504136644Sache	@echo 'ac_maketemp="$(MAKE)"'
1505136644Sache_ACEOF
150675406Sache# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1507119610Sacheeval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
150875406Sacheif test -n "$ac_maketemp"; then
150975406Sache  eval ac_cv_prog_make_${ac_make}_set=yes
151075406Sacheelse
151175406Sache  eval ac_cv_prog_make_${ac_make}_set=no
151275406Sachefi
1513119610Sacherm -f conftest.make
151475406Sachefi
151575406Sacheif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1516136644Sache  echo "$as_me:$LINENO: result: yes" >&5
1517119610Sacheecho "${ECHO_T}yes" >&6
151875406Sache  SET_MAKE=
151975406Sacheelse
1520136644Sache  echo "$as_me:$LINENO: result: no" >&5
1521119610Sacheecho "${ECHO_T}no" >&6
152275406Sache  SET_MAKE="MAKE=${MAKE-make}"
152375406Sachefi
152475406Sache
1525119610Sacheac_ext=c
1526119610Sacheac_cpp='$CPP $CPPFLAGS'
1527119610Sacheac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1528119610Sacheac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1529119610Sacheac_compiler_gnu=$ac_cv_c_compiler_gnu
1530119610Sacheif test -n "$ac_tool_prefix"; then
1531119610Sache  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1532119610Sacheset dummy ${ac_tool_prefix}gcc; ac_word=$2
1533136644Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5
1534119610Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1535119610Sacheif test "${ac_cv_prog_CC+set}" = set; then
1536119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
1537119610Sacheelse
1538119610Sache  if test -n "$CC"; then
1539119610Sache  ac_cv_prog_CC="$CC" # Let the user override the test.
1540119610Sacheelse
1541136644Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542136644Sachefor as_dir in $PATH
1543136644Sachedo
1544136644Sache  IFS=$as_save_IFS
1545136644Sache  test -z "$as_dir" && as_dir=.
1546136644Sache  for ac_exec_ext in '' $ac_executable_extensions; do
1547136644Sache  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1548136644Sache    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1549136644Sache    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550136644Sache    break 2
1551136644Sache  fi
1552119610Sachedone
1553136644Sachedone
1554119610Sache
1555119610Sachefi
1556119610Sachefi
1557119610SacheCC=$ac_cv_prog_CC
1558119610Sacheif test -n "$CC"; then
1559136644Sache  echo "$as_me:$LINENO: result: $CC" >&5
1560119610Sacheecho "${ECHO_T}$CC" >&6
1561119610Sacheelse
1562136644Sache  echo "$as_me:$LINENO: result: no" >&5
1563119610Sacheecho "${ECHO_T}no" >&6
1564119610Sachefi
1565119610Sache
1566119610Sachefi
1567119610Sacheif test -z "$ac_cv_prog_CC"; then
1568119610Sache  ac_ct_CC=$CC
1569119610Sache  # Extract the first word of "gcc", so it can be a program name with args.
157026497Sacheset dummy gcc; ac_word=$2
1571136644Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5
1572119610Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573119610Sacheif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1574119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
157526497Sacheelse
1576119610Sache  if test -n "$ac_ct_CC"; then
1577119610Sache  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1578119610Sacheelse
1579136644Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580136644Sachefor as_dir in $PATH
1581136644Sachedo
1582136644Sache  IFS=$as_save_IFS
1583136644Sache  test -z "$as_dir" && as_dir=.
1584136644Sache  for ac_exec_ext in '' $ac_executable_extensions; do
1585136644Sache  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586136644Sache    ac_cv_prog_ac_ct_CC="gcc"
1587136644Sache    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588136644Sache    break 2
1589136644Sache  fi
1590119610Sachedone
1591136644Sachedone
1592119610Sache
1593119610Sachefi
1594119610Sachefi
1595119610Sacheac_ct_CC=$ac_cv_prog_ac_ct_CC
1596119610Sacheif test -n "$ac_ct_CC"; then
1597136644Sache  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1598119610Sacheecho "${ECHO_T}$ac_ct_CC" >&6
1599119610Sacheelse
1600136644Sache  echo "$as_me:$LINENO: result: no" >&5
1601119610Sacheecho "${ECHO_T}no" >&6
1602119610Sachefi
1603119610Sache
1604119610Sache  CC=$ac_ct_CC
1605119610Sacheelse
1606119610Sache  CC="$ac_cv_prog_CC"
1607119610Sachefi
1608119610Sache
1609119610Sacheif test -z "$CC"; then
1610119610Sache  if test -n "$ac_tool_prefix"; then
1611119610Sache  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1612119610Sacheset dummy ${ac_tool_prefix}cc; ac_word=$2
1613136644Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5
1614119610Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615119610Sacheif test "${ac_cv_prog_CC+set}" = set; then
1616119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
1617119610Sacheelse
161826497Sache  if test -n "$CC"; then
161926497Sache  ac_cv_prog_CC="$CC" # Let the user override the test.
162026497Sacheelse
1621136644Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622136644Sachefor as_dir in $PATH
1623136644Sachedo
1624136644Sache  IFS=$as_save_IFS
1625136644Sache  test -z "$as_dir" && as_dir=.
1626136644Sache  for ac_exec_ext in '' $ac_executable_extensions; do
1627136644Sache  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1628136644Sache    ac_cv_prog_CC="${ac_tool_prefix}cc"
1629136644Sache    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630136644Sache    break 2
1631136644Sache  fi
1632119610Sachedone
1633136644Sachedone
1634119610Sache
163526497Sachefi
163626497Sachefi
1637119610SacheCC=$ac_cv_prog_CC
163826497Sacheif test -n "$CC"; then
1639136644Sache  echo "$as_me:$LINENO: result: $CC" >&5
1640119610Sacheecho "${ECHO_T}$CC" >&6
164126497Sacheelse
1642136644Sache  echo "$as_me:$LINENO: result: no" >&5
1643119610Sacheecho "${ECHO_T}no" >&6
164426497Sachefi
164526497Sache
1646119610Sachefi
1647119610Sacheif test -z "$ac_cv_prog_CC"; then
1648119610Sache  ac_ct_CC=$CC
1649119610Sache  # Extract the first word of "cc", so it can be a program name with args.
1650119610Sacheset dummy cc; ac_word=$2
1651136644Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5
1652119610Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653119610Sacheif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
1655119610Sacheelse
1656119610Sache  if test -n "$ac_ct_CC"; then
1657119610Sache  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1658119610Sacheelse
1659136644Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660136644Sachefor as_dir in $PATH
1661136644Sachedo
1662136644Sache  IFS=$as_save_IFS
1663136644Sache  test -z "$as_dir" && as_dir=.
1664136644Sache  for ac_exec_ext in '' $ac_executable_extensions; do
1665136644Sache  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666136644Sache    ac_cv_prog_ac_ct_CC="cc"
1667136644Sache    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668136644Sache    break 2
1669136644Sache  fi
1670119610Sachedone
1671136644Sachedone
1672119610Sache
1673119610Sachefi
1674119610Sachefi
1675119610Sacheac_ct_CC=$ac_cv_prog_ac_ct_CC
1676119610Sacheif test -n "$ac_ct_CC"; then
1677136644Sache  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1678119610Sacheecho "${ECHO_T}$ac_ct_CC" >&6
1679119610Sacheelse
1680136644Sache  echo "$as_me:$LINENO: result: no" >&5
1681119610Sacheecho "${ECHO_T}no" >&6
1682119610Sachefi
1683119610Sache
1684119610Sache  CC=$ac_ct_CC
1685119610Sacheelse
1686119610Sache  CC="$ac_cv_prog_CC"
1687119610Sachefi
1688119610Sache
1689119610Sachefi
169026497Sacheif test -z "$CC"; then
169126497Sache  # Extract the first word of "cc", so it can be a program name with args.
169226497Sacheset dummy cc; ac_word=$2
1693136644Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5
1694119610Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695119610Sacheif test "${ac_cv_prog_CC+set}" = set; then
1696119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
169726497Sacheelse
169826497Sache  if test -n "$CC"; then
169926497Sache  ac_cv_prog_CC="$CC" # Let the user override the test.
170026497Sacheelse
170126497Sache  ac_prog_rejected=no
1702136644Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703136644Sachefor as_dir in $PATH
1704136644Sachedo
1705136644Sache  IFS=$as_save_IFS
1706136644Sache  test -z "$as_dir" && as_dir=.
1707136644Sache  for ac_exec_ext in '' $ac_executable_extensions; do
1708136644Sache  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1709136644Sache    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1710136644Sache       ac_prog_rejected=yes
1711136644Sache       continue
1712136644Sache     fi
1713136644Sache    ac_cv_prog_CC="cc"
1714136644Sache    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715136644Sache    break 2
1716136644Sache  fi
1717119610Sachedone
1718136644Sachedone
1719119610Sache
172026497Sacheif test $ac_prog_rejected = yes; then
172126497Sache  # We found a bogon in the path, so make sure we never use it.
172226497Sache  set dummy $ac_cv_prog_CC
172326497Sache  shift
1724119610Sache  if test $# != 0; then
172526497Sache    # We chose a different compiler from the bogus one.
172626497Sache    # However, it has the same basename, so the bogon will be chosen
172726497Sache    # first if we set CC to just the basename; use the full file name.
172826497Sache    shift
1729136644Sache    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
173026497Sache  fi
173126497Sachefi
173226497Sachefi
173326497Sachefi
1734119610SacheCC=$ac_cv_prog_CC
173526497Sacheif test -n "$CC"; then
1736136644Sache  echo "$as_me:$LINENO: result: $CC" >&5
1737119610Sacheecho "${ECHO_T}$CC" >&6
173826497Sacheelse
1739136644Sache  echo "$as_me:$LINENO: result: no" >&5
1740119610Sacheecho "${ECHO_T}no" >&6
174126497Sachefi
174226497Sache
1743119610Sachefi
1744119610Sacheif test -z "$CC"; then
1745119610Sache  if test -n "$ac_tool_prefix"; then
1746119610Sache  for ac_prog in cl
1747119610Sache  do
1748119610Sache    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1749119610Sacheset dummy $ac_tool_prefix$ac_prog; ac_word=$2
1750136644Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5
1751119610Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752119610Sacheif test "${ac_cv_prog_CC+set}" = set; then
1753119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
175458310Sacheelse
175558310Sache  if test -n "$CC"; then
175658310Sache  ac_cv_prog_CC="$CC" # Let the user override the test.
175758310Sacheelse
1758136644Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759136644Sachefor as_dir in $PATH
1760136644Sachedo
1761136644Sache  IFS=$as_save_IFS
1762136644Sache  test -z "$as_dir" && as_dir=.
1763136644Sache  for ac_exec_ext in '' $ac_executable_extensions; do
1764136644Sache  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765136644Sache    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1766136644Sache    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767136644Sache    break 2
1768136644Sache  fi
1769119610Sachedone
1770136644Sachedone
1771119610Sache
177258310Sachefi
177358310Sachefi
1774119610SacheCC=$ac_cv_prog_CC
177558310Sacheif test -n "$CC"; then
1776136644Sache  echo "$as_me:$LINENO: result: $CC" >&5
1777119610Sacheecho "${ECHO_T}$CC" >&6
177858310Sacheelse
1779136644Sache  echo "$as_me:$LINENO: result: no" >&5
1780119610Sacheecho "${ECHO_T}no" >&6
178158310Sachefi
1782119610Sache
1783119610Sache    test -n "$CC" && break
1784119610Sache  done
178526497Sachefi
1786119610Sacheif test -z "$CC"; then
1787119610Sache  ac_ct_CC=$CC
1788119610Sache  for ac_prog in cl
1789119610Sachedo
1790119610Sache  # Extract the first word of "$ac_prog", so it can be a program name with args.
1791119610Sacheset dummy $ac_prog; ac_word=$2
1792136644Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5
1793119610Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794119610Sacheif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1795119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
1796119610Sacheelse
1797119610Sache  if test -n "$ac_ct_CC"; then
1798119610Sache  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1799119610Sacheelse
1800136644Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801136644Sachefor as_dir in $PATH
1802136644Sachedo
1803136644Sache  IFS=$as_save_IFS
1804136644Sache  test -z "$as_dir" && as_dir=.
1805136644Sache  for ac_exec_ext in '' $ac_executable_extensions; do
1806136644Sache  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807136644Sache    ac_cv_prog_ac_ct_CC="$ac_prog"
1808136644Sache    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809136644Sache    break 2
1810136644Sache  fi
1811119610Sachedone
1812136644Sachedone
181326497Sache
1814119610Sachefi
1815119610Sachefi
1816119610Sacheac_ct_CC=$ac_cv_prog_ac_ct_CC
1817119610Sacheif test -n "$ac_ct_CC"; then
1818136644Sache  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1819119610Sacheecho "${ECHO_T}$ac_ct_CC" >&6
1820119610Sacheelse
1821136644Sache  echo "$as_me:$LINENO: result: no" >&5
1822119610Sacheecho "${ECHO_T}no" >&6
1823119610Sachefi
182426497Sache
1825119610Sache  test -n "$ac_ct_CC" && break
1826119610Sachedone
182726497Sache
1828119610Sache  CC=$ac_ct_CC
1829119610Sachefi
183058310Sache
1831119610Sachefi
1832119610Sache
1833136644Sache
1834136644Sachetest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1835136644SacheSee \`config.log' for more details." >&5
1836136644Sacheecho "$as_me: error: no acceptable C compiler found in \$PATH
1837136644SacheSee \`config.log' for more details." >&2;}
1838119610Sache   { (exit 1); exit 1; }; }
1839119610Sache
1840119610Sache# Provide some information about the compiler.
1841136644Sacheecho "$as_me:$LINENO:" \
1842119610Sache     "checking for C compiler version" >&5
1843119610Sacheac_compiler=`set X $ac_compile; echo $2`
1844136644Sache{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1845119610Sache  (eval $ac_compiler --version </dev/null >&5) 2>&5
1846119610Sache  ac_status=$?
1847136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848119610Sache  (exit $ac_status); }
1849136644Sache{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1850119610Sache  (eval $ac_compiler -v </dev/null >&5) 2>&5
1851119610Sache  ac_status=$?
1852136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853119610Sache  (exit $ac_status); }
1854136644Sache{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1855119610Sache  (eval $ac_compiler -V </dev/null >&5) 2>&5
1856119610Sache  ac_status=$?
1857136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858119610Sache  (exit $ac_status); }
1859119610Sache
1860119610Sachecat >conftest.$ac_ext <<_ACEOF
1861136644Sache/* confdefs.h.  */
1862136644Sache_ACEOF
1863136644Sachecat confdefs.h >>conftest.$ac_ext
1864136644Sachecat >>conftest.$ac_ext <<_ACEOF
1865136644Sache/* end confdefs.h.  */
186658310Sache
1867119610Sacheint
1868119610Sachemain ()
1869119610Sache{
1870119610Sache
1871119610Sache  ;
1872119610Sache  return 0;
1873119610Sache}
1874119610Sache_ACEOF
1875119610Sacheac_clean_files_save=$ac_clean_files
1876136644Sacheac_clean_files="$ac_clean_files a.out a.exe b.out"
1877119610Sache# Try to create an executable without -o first, disregard a.out.
1878119610Sache# It will help us diagnose broken compilers, and finding out an intuition
1879119610Sache# of exeext.
1880157184Sacheecho "$as_me:$LINENO: checking for C compiler default output file name" >&5
1881157184Sacheecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1882119610Sacheac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1883136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1884119610Sache  (eval $ac_link_default) 2>&5
1885119610Sache  ac_status=$?
1886136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887119610Sache  (exit $ac_status); }; then
1888119610Sache  # Find the output, starting from the most likely.  This scheme is
1889119610Sache# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1890119610Sache# resort.
1891136644Sache
1892136644Sache# Be careful to initialize this variable, since it used to be cached.
1893136644Sache# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1894136644Sacheac_cv_exeext=
1895136644Sache# b.out is created by i960 compilers.
1896136644Sachefor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1897136644Sachedo
1898136644Sache  test -f "$ac_file" || continue
1899119610Sache  case $ac_file in
1900136644Sache    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1901157184Sache	;;
1902136644Sache    conftest.$ac_ext )
1903157184Sache	# This is the source file.
1904157184Sache	;;
1905136644Sache    [ab].out )
1906157184Sache	# We found the default executable, but exeext='' is most
1907157184Sache	# certainly right.
1908157184Sache	break;;
1909136644Sache    *.* )
1910157184Sache	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1911157184Sache	# FIXME: I believe we export ac_cv_exeext for Libtool,
1912157184Sache	# but it would be cool to find out if it's true.  Does anybody
1913157184Sache	# maintain Libtool? --akim.
1914157184Sache	export ac_cv_exeext
1915157184Sache	break;;
1916136644Sache    * )
1917157184Sache	break;;
1918119610Sache  esac
1919119610Sachedone
1920119610Sacheelse
1921119610Sache  echo "$as_me: failed program was:" >&5
1922136644Sachesed 's/^/| /' conftest.$ac_ext >&5
1923136644Sache
1924136644Sache{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1925136644SacheSee \`config.log' for more details." >&5
1926136644Sacheecho "$as_me: error: C compiler cannot create executables
1927136644SacheSee \`config.log' for more details." >&2;}
1928119610Sache   { (exit 77); exit 77; }; }
1929119610Sachefi
1930119610Sache
1931119610Sacheac_exeext=$ac_cv_exeext
1932136644Sacheecho "$as_me:$LINENO: result: $ac_file" >&5
1933119610Sacheecho "${ECHO_T}$ac_file" >&6
1934119610Sache
1935119610Sache# Check the compiler produces executables we can run.  If not, either
1936119610Sache# the compiler is broken, or we cross compile.
1937136644Sacheecho "$as_me:$LINENO: checking whether the C compiler works" >&5
1938119610Sacheecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1939119610Sache# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1940119610Sache# If not cross compiling, check that we can run a simple program.
1941119610Sacheif test "$cross_compiling" != yes; then
1942119610Sache  if { ac_try='./$ac_file'
1943136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944119610Sache  (eval $ac_try) 2>&5
1945119610Sache  ac_status=$?
1946136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947119610Sache  (exit $ac_status); }; }; then
1948119610Sache    cross_compiling=no
194926497Sache  else
1950119610Sache    if test "$cross_compiling" = maybe; then
1951119610Sache	cross_compiling=yes
1952119610Sache    else
1953136644Sache	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1954136644SacheIf you meant to cross compile, use \`--host'.
1955136644SacheSee \`config.log' for more details." >&5
1956119610Sacheecho "$as_me: error: cannot run C compiled programs.
1957136644SacheIf you meant to cross compile, use \`--host'.
1958136644SacheSee \`config.log' for more details." >&2;}
1959119610Sache   { (exit 1); exit 1; }; }
1960119610Sache    fi
196126497Sache  fi
196226497Sachefi
1963136644Sacheecho "$as_me:$LINENO: result: yes" >&5
1964119610Sacheecho "${ECHO_T}yes" >&6
196526497Sache
1966136644Sacherm -f a.out a.exe conftest$ac_cv_exeext b.out
1967119610Sacheac_clean_files=$ac_clean_files_save
1968119610Sache# Check the compiler produces executables we can run.  If not, either
1969119610Sache# the compiler is broken, or we cross compile.
1970136644Sacheecho "$as_me:$LINENO: checking whether we are cross compiling" >&5
1971119610Sacheecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1972136644Sacheecho "$as_me:$LINENO: result: $cross_compiling" >&5
1973119610Sacheecho "${ECHO_T}$cross_compiling" >&6
1974119610Sache
1975136644Sacheecho "$as_me:$LINENO: checking for suffix of executables" >&5
1976136644Sacheecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1977136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1978119610Sache  (eval $ac_link) 2>&5
1979119610Sache  ac_status=$?
1980136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981119610Sache  (exit $ac_status); }; then
1982119610Sache  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1983119610Sache# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1984119610Sache# work properly (i.e., refer to `conftest.exe'), while it won't with
1985119610Sache# `rm'.
1986136644Sachefor ac_file in conftest.exe conftest conftest.*; do
1987136644Sache  test -f "$ac_file" || continue
1988119610Sache  case $ac_file in
1989136644Sache    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1990119610Sache    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1991157184Sache	  export ac_cv_exeext
1992157184Sache	  break;;
1993119610Sache    * ) break;;
1994119610Sache  esac
1995119610Sachedone
1996119610Sacheelse
1997136644Sache  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1998136644SacheSee \`config.log' for more details." >&5
1999136644Sacheecho "$as_me: error: cannot compute suffix of executables: cannot compile and link
2000136644SacheSee \`config.log' for more details." >&2;}
2001119610Sache   { (exit 1); exit 1; }; }
200226497Sachefi
200326497Sache
2004119610Sacherm -f conftest$ac_cv_exeext
2005136644Sacheecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2006119610Sacheecho "${ECHO_T}$ac_cv_exeext" >&6
2007119610Sache
2008119610Sacherm -f conftest.$ac_ext
2009119610SacheEXEEXT=$ac_cv_exeext
2010119610Sacheac_exeext=$EXEEXT
2011136644Sacheecho "$as_me:$LINENO: checking for suffix of object files" >&5
2012136644Sacheecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2013119610Sacheif test "${ac_cv_objext+set}" = set; then
2014119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
201526497Sacheelse
2016119610Sache  cat >conftest.$ac_ext <<_ACEOF
2017136644Sache/* confdefs.h.  */
2018136644Sache_ACEOF
2019136644Sachecat confdefs.h >>conftest.$ac_ext
2020136644Sachecat >>conftest.$ac_ext <<_ACEOF
2021136644Sache/* end confdefs.h.  */
2022119610Sache
2023119610Sacheint
2024119610Sachemain ()
2025119610Sache{
2026119610Sache
2027119610Sache  ;
2028119610Sache  return 0;
2029119610Sache}
2030119610Sache_ACEOF
2031119610Sacherm -f conftest.o conftest.obj
2032136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033119610Sache  (eval $ac_compile) 2>&5
2034119610Sache  ac_status=$?
2035136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036119610Sache  (exit $ac_status); }; then
2037119610Sache  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2038119610Sache  case $ac_file in
2039136644Sache    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2040119610Sache    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2041119610Sache       break;;
2042119610Sache  esac
2043119610Sachedone
204426497Sacheelse
2045119610Sache  echo "$as_me: failed program was:" >&5
2046136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2047136644Sache
2048136644Sache{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2049136644SacheSee \`config.log' for more details." >&5
2050136644Sacheecho "$as_me: error: cannot compute suffix of object files: cannot compile
2051136644SacheSee \`config.log' for more details." >&2;}
2052119610Sache   { (exit 1); exit 1; }; }
205326497Sachefi
2054119610Sache
2055119610Sacherm -f conftest.$ac_cv_objext conftest.$ac_ext
205626497Sachefi
2057136644Sacheecho "$as_me:$LINENO: result: $ac_cv_objext" >&5
2058119610Sacheecho "${ECHO_T}$ac_cv_objext" >&6
2059119610SacheOBJEXT=$ac_cv_objext
2060119610Sacheac_objext=$OBJEXT
2061136644Sacheecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2062119610Sacheecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2063119610Sacheif test "${ac_cv_c_compiler_gnu+set}" = set; then
2064119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
2065119610Sacheelse
2066119610Sache  cat >conftest.$ac_ext <<_ACEOF
2067136644Sache/* confdefs.h.  */
2068136644Sache_ACEOF
2069136644Sachecat confdefs.h >>conftest.$ac_ext
2070136644Sachecat >>conftest.$ac_ext <<_ACEOF
2071136644Sache/* end confdefs.h.  */
207226497Sache
2073119610Sacheint
2074119610Sachemain ()
2075119610Sache{
2076119610Sache#ifndef __GNUC__
2077119610Sache       choke me
2078119610Sache#endif
207926497Sache
2080119610Sache  ;
2081119610Sache  return 0;
2082119610Sache}
2083119610Sache_ACEOF
2084119610Sacherm -f conftest.$ac_objext
2085136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086157184Sache  (eval $ac_compile) 2>conftest.er1
2087119610Sache  ac_status=$?
2088157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
2089157184Sache  rm -f conftest.er1
2090157184Sache  cat conftest.err >&5
2091136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092119610Sache  (exit $ac_status); } &&
2093157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
2094157184Sache			 || test ! -s conftest.err'
2095136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096119610Sache  (eval $ac_try) 2>&5
2097119610Sache  ac_status=$?
2098136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099157184Sache  (exit $ac_status); }; } &&
2100157184Sache	 { ac_try='test -s conftest.$ac_objext'
2101157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102157184Sache  (eval $ac_try) 2>&5
2103157184Sache  ac_status=$?
2104157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105119610Sache  (exit $ac_status); }; }; then
2106119610Sache  ac_compiler_gnu=yes
210758310Sacheelse
2108119610Sache  echo "$as_me: failed program was:" >&5
2109136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2110136644Sache
2111119610Sacheac_compiler_gnu=no
211258310Sachefi
2113157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2114119610Sacheac_cv_c_compiler_gnu=$ac_compiler_gnu
211558310Sache
2116119610Sachefi
2117136644Sacheecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2118119610Sacheecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2119119610SacheGCC=`test $ac_compiler_gnu = yes && echo yes`
2120119610Sacheac_test_CFLAGS=${CFLAGS+set}
2121119610Sacheac_save_CFLAGS=$CFLAGS
2122119610SacheCFLAGS="-g"
2123136644Sacheecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2124119610Sacheecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2125119610Sacheif test "${ac_cv_prog_cc_g+set}" = set; then
2126119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
212726497Sacheelse
2128119610Sache  cat >conftest.$ac_ext <<_ACEOF
2129136644Sache/* confdefs.h.  */
2130136644Sache_ACEOF
2131136644Sachecat confdefs.h >>conftest.$ac_ext
2132136644Sachecat >>conftest.$ac_ext <<_ACEOF
2133136644Sache/* end confdefs.h.  */
2134119610Sache
2135119610Sacheint
2136119610Sachemain ()
2137119610Sache{
2138119610Sache
2139119610Sache  ;
2140119610Sache  return 0;
2141119610Sache}
2142119610Sache_ACEOF
2143119610Sacherm -f conftest.$ac_objext
2144136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145157184Sache  (eval $ac_compile) 2>conftest.er1
2146119610Sache  ac_status=$?
2147157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
2148157184Sache  rm -f conftest.er1
2149157184Sache  cat conftest.err >&5
2150136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151119610Sache  (exit $ac_status); } &&
2152157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
2153157184Sache			 || test ! -s conftest.err'
2154136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155119610Sache  (eval $ac_try) 2>&5
2156119610Sache  ac_status=$?
2157136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158157184Sache  (exit $ac_status); }; } &&
2159157184Sache	 { ac_try='test -s conftest.$ac_objext'
2160157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161157184Sache  (eval $ac_try) 2>&5
2162157184Sache  ac_status=$?
2163157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164119610Sache  (exit $ac_status); }; }; then
216526497Sache  ac_cv_prog_cc_g=yes
216626497Sacheelse
2167119610Sache  echo "$as_me: failed program was:" >&5
2168136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2169136644Sache
2170119610Sacheac_cv_prog_cc_g=no
217126497Sachefi
2172157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
217326497Sachefi
2174136644Sacheecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2175119610Sacheecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
217658310Sacheif test "$ac_test_CFLAGS" = set; then
2177119610Sache  CFLAGS=$ac_save_CFLAGS
217858310Sacheelif test $ac_cv_prog_cc_g = yes; then
217958310Sache  if test "$GCC" = yes; then
218026497Sache    CFLAGS="-g -O2"
218126497Sache  else
218258310Sache    CFLAGS="-g"
218358310Sache  fi
218458310Sacheelse
218558310Sache  if test "$GCC" = yes; then
218626497Sache    CFLAGS="-O2"
218758310Sache  else
218858310Sache    CFLAGS=
218926497Sache  fi
219026497Sachefi
2191136644Sacheecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2192136644Sacheecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2193136644Sacheif test "${ac_cv_prog_cc_stdc+set}" = set; then
2194136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
2195136644Sacheelse
2196136644Sache  ac_cv_prog_cc_stdc=no
2197136644Sacheac_save_CC=$CC
2198136644Sachecat >conftest.$ac_ext <<_ACEOF
2199136644Sache/* confdefs.h.  */
2200136644Sache_ACEOF
2201136644Sachecat confdefs.h >>conftest.$ac_ext
2202136644Sachecat >>conftest.$ac_ext <<_ACEOF
2203136644Sache/* end confdefs.h.  */
2204136644Sache#include <stdarg.h>
2205136644Sache#include <stdio.h>
2206136644Sache#include <sys/types.h>
2207136644Sache#include <sys/stat.h>
2208136644Sache/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2209136644Sachestruct buf { int x; };
2210136644SacheFILE * (*rcsopen) (struct buf *, struct stat *, int);
2211136644Sachestatic char *e (p, i)
2212136644Sache     char **p;
2213136644Sache     int i;
2214136644Sache{
2215136644Sache  return p[i];
2216136644Sache}
2217136644Sachestatic char *f (char * (*g) (char **, int), char **p, ...)
2218136644Sache{
2219136644Sache  char *s;
2220136644Sache  va_list v;
2221136644Sache  va_start (v,p);
2222136644Sache  s = g (p, va_arg (v,int));
2223136644Sache  va_end (v);
2224136644Sache  return s;
2225136644Sache}
2226157184Sache
2227157184Sache/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2228157184Sache   function prototypes and stuff, but not '\xHH' hex character constants.
2229157184Sache   These don't provoke an error unfortunately, instead are silently treated
2230157184Sache   as 'x'.  The following induces an error, until -std1 is added to get
2231157184Sache   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2232157184Sache   array size at least.  It's necessary to write '\x00'==0 to get something
2233157184Sache   that's true only with -std1.  */
2234157184Sacheint osf4_cc_array ['\x00' == 0 ? 1 : -1];
2235157184Sache
2236136644Sacheint test (int i, double x);
2237136644Sachestruct s1 {int (*f) (int a);};
2238136644Sachestruct s2 {int (*f) (double a);};
2239136644Sacheint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2240136644Sacheint argc;
2241136644Sachechar **argv;
2242136644Sacheint
2243136644Sachemain ()
2244136644Sache{
2245136644Sachereturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2246136644Sache  ;
2247136644Sache  return 0;
2248136644Sache}
2249136644Sache_ACEOF
2250136644Sache# Don't try gcc -ansi; that turns off useful extensions and
2251136644Sache# breaks some systems' header files.
2252136644Sache# AIX			-qlanglvl=ansi
2253136644Sache# Ultrix and OSF/1	-std1
2254136644Sache# HP-UX 10.20 and later	-Ae
2255136644Sache# HP-UX older versions	-Aa -D_HPUX_SOURCE
2256136644Sache# SVR4			-Xc -D__EXTENSIONS__
2257136644Sachefor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2258136644Sachedo
2259136644Sache  CC="$ac_save_CC $ac_arg"
2260136644Sache  rm -f conftest.$ac_objext
2261136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262157184Sache  (eval $ac_compile) 2>conftest.er1
2263136644Sache  ac_status=$?
2264157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
2265157184Sache  rm -f conftest.er1
2266157184Sache  cat conftest.err >&5
2267136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268136644Sache  (exit $ac_status); } &&
2269157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
2270157184Sache			 || test ! -s conftest.err'
2271136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272136644Sache  (eval $ac_try) 2>&5
2273136644Sache  ac_status=$?
2274136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275157184Sache  (exit $ac_status); }; } &&
2276157184Sache	 { ac_try='test -s conftest.$ac_objext'
2277157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278157184Sache  (eval $ac_try) 2>&5
2279157184Sache  ac_status=$?
2280157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281136644Sache  (exit $ac_status); }; }; then
2282136644Sache  ac_cv_prog_cc_stdc=$ac_arg
2283136644Sachebreak
2284136644Sacheelse
2285136644Sache  echo "$as_me: failed program was:" >&5
2286136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2287136644Sache
2288136644Sachefi
2289157184Sacherm -f conftest.err conftest.$ac_objext
2290136644Sachedone
2291136644Sacherm -f conftest.$ac_ext conftest.$ac_objext
2292136644SacheCC=$ac_save_CC
2293136644Sache
2294136644Sachefi
2295136644Sache
2296136644Sachecase "x$ac_cv_prog_cc_stdc" in
2297136644Sache  x|xno)
2298136644Sache    echo "$as_me:$LINENO: result: none needed" >&5
2299136644Sacheecho "${ECHO_T}none needed" >&6 ;;
2300136644Sache  *)
2301136644Sache    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2302136644Sacheecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2303136644Sache    CC="$CC $ac_cv_prog_cc_stdc" ;;
2304136644Sacheesac
2305136644Sache
2306119610Sache# Some people use a C++ compiler to compile C.  Since we use `exit',
2307119610Sache# in C++ we need to declare it.  In case someone uses the same compiler
2308119610Sache# for both compiling C and C++ we need to have the C++ compiler decide
2309119610Sache# the declaration of exit, since it's the most demanding environment.
2310119610Sachecat >conftest.$ac_ext <<_ACEOF
2311119610Sache#ifndef __cplusplus
2312119610Sache  choke me
2313119610Sache#endif
2314119610Sache_ACEOF
2315119610Sacherm -f conftest.$ac_objext
2316136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317157184Sache  (eval $ac_compile) 2>conftest.er1
2318119610Sache  ac_status=$?
2319157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
2320157184Sache  rm -f conftest.er1
2321157184Sache  cat conftest.err >&5
2322136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323119610Sache  (exit $ac_status); } &&
2324157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
2325157184Sache			 || test ! -s conftest.err'
2326136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327119610Sache  (eval $ac_try) 2>&5
2328119610Sache  ac_status=$?
2329136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330157184Sache  (exit $ac_status); }; } &&
2331157184Sache	 { ac_try='test -s conftest.$ac_objext'
2332157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333157184Sache  (eval $ac_try) 2>&5
2334157184Sache  ac_status=$?
2335157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336119610Sache  (exit $ac_status); }; }; then
2337119610Sache  for ac_declaration in \
2338157184Sache   '' \
2339119610Sache   'extern "C" void std::exit (int) throw (); using std::exit;' \
2340119610Sache   'extern "C" void std::exit (int); using std::exit;' \
2341119610Sache   'extern "C" void exit (int) throw ();' \
2342119610Sache   'extern "C" void exit (int);' \
2343119610Sache   'void exit (int);'
2344119610Sachedo
2345119610Sache  cat >conftest.$ac_ext <<_ACEOF
2346136644Sache/* confdefs.h.  */
2347136644Sache_ACEOF
2348136644Sachecat confdefs.h >>conftest.$ac_ext
2349136644Sachecat >>conftest.$ac_ext <<_ACEOF
2350136644Sache/* end confdefs.h.  */
2351157184Sache$ac_declaration
2352119610Sache#include <stdlib.h>
2353119610Sacheint
2354119610Sachemain ()
2355119610Sache{
2356119610Sacheexit (42);
2357119610Sache  ;
2358119610Sache  return 0;
2359119610Sache}
2360119610Sache_ACEOF
2361119610Sacherm -f conftest.$ac_objext
2362136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363157184Sache  (eval $ac_compile) 2>conftest.er1
2364119610Sache  ac_status=$?
2365157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
2366157184Sache  rm -f conftest.er1
2367157184Sache  cat conftest.err >&5
2368136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369119610Sache  (exit $ac_status); } &&
2370157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
2371157184Sache			 || test ! -s conftest.err'
2372136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373119610Sache  (eval $ac_try) 2>&5
2374119610Sache  ac_status=$?
2375136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376157184Sache  (exit $ac_status); }; } &&
2377157184Sache	 { ac_try='test -s conftest.$ac_objext'
2378157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379157184Sache  (eval $ac_try) 2>&5
2380157184Sache  ac_status=$?
2381157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382119610Sache  (exit $ac_status); }; }; then
2383119610Sache  :
2384119610Sacheelse
2385119610Sache  echo "$as_me: failed program was:" >&5
2386136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2387136644Sache
2388119610Sachecontinue
2389119610Sachefi
2390157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391119610Sache  cat >conftest.$ac_ext <<_ACEOF
2392136644Sache/* confdefs.h.  */
2393136644Sache_ACEOF
2394136644Sachecat confdefs.h >>conftest.$ac_ext
2395136644Sachecat >>conftest.$ac_ext <<_ACEOF
2396136644Sache/* end confdefs.h.  */
2397119610Sache$ac_declaration
2398119610Sacheint
2399119610Sachemain ()
2400119610Sache{
2401119610Sacheexit (42);
2402119610Sache  ;
2403119610Sache  return 0;
2404119610Sache}
2405119610Sache_ACEOF
2406119610Sacherm -f conftest.$ac_objext
2407136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408157184Sache  (eval $ac_compile) 2>conftest.er1
2409119610Sache  ac_status=$?
2410157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
2411157184Sache  rm -f conftest.er1
2412157184Sache  cat conftest.err >&5
2413136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414119610Sache  (exit $ac_status); } &&
2415157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
2416157184Sache			 || test ! -s conftest.err'
2417136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418119610Sache  (eval $ac_try) 2>&5
2419119610Sache  ac_status=$?
2420136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421157184Sache  (exit $ac_status); }; } &&
2422157184Sache	 { ac_try='test -s conftest.$ac_objext'
2423157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424157184Sache  (eval $ac_try) 2>&5
2425157184Sache  ac_status=$?
2426157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427119610Sache  (exit $ac_status); }; }; then
2428119610Sache  break
2429119610Sacheelse
2430119610Sache  echo "$as_me: failed program was:" >&5
2431136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2432136644Sache
2433119610Sachefi
2434157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2435119610Sachedone
2436119610Sacherm -f conftest*
2437119610Sacheif test -n "$ac_declaration"; then
2438119610Sache  echo '#ifdef __cplusplus' >>confdefs.h
2439119610Sache  echo $ac_declaration      >>confdefs.h
2440119610Sache  echo '#endif'             >>confdefs.h
2441119610Sachefi
244226497Sache
2443119610Sacheelse
2444119610Sache  echo "$as_me: failed program was:" >&5
2445136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2446136644Sache
2447119610Sachefi
2448157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2449119610Sacheac_ext=c
2450119610Sacheac_cpp='$CPP $CPPFLAGS'
2451119610Sacheac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452119610Sacheac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453119610Sacheac_compiler_gnu=$ac_cv_c_compiler_gnu
2454119610Sache
2455136644Sache
2456119610Sacheac_ext=c
2457119610Sacheac_cpp='$CPP $CPPFLAGS'
2458119610Sacheac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459119610Sacheac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460119610Sacheac_compiler_gnu=$ac_cv_c_compiler_gnu
2461136644Sacheecho "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2462119610Sacheecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
246326497Sache# On Suns, sometimes $CPP names a directory.
246426497Sacheif test -n "$CPP" && test -d "$CPP"; then
246526497Sache  CPP=
246626497Sachefi
246726497Sacheif test -z "$CPP"; then
2468119610Sache  if test "${ac_cv_prog_CPP+set}" = set; then
2469119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
247026497Sacheelse
2471119610Sache      # Double quotes because CPP needs to be expanded
2472119610Sache    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2473119610Sache    do
2474119610Sache      ac_preproc_ok=false
2475119610Sachefor ac_c_preproc_warn_flag in '' yes
2476119610Sachedo
2477119610Sache  # Use a header file that comes with gcc, so configuring glibc
2478119610Sache  # with a fresh cross-compiler works.
2479136644Sache  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2480136644Sache  # <limits.h> exists even on freestanding compilers.
248126497Sache  # On the NeXT, cc -E runs the code through the compiler's parser,
2482119610Sache  # not just through cpp. "Syntax error" is here to catch this case.
2483119610Sache  cat >conftest.$ac_ext <<_ACEOF
2484136644Sache/* confdefs.h.  */
2485136644Sache_ACEOF
2486136644Sachecat confdefs.h >>conftest.$ac_ext
2487136644Sachecat >>conftest.$ac_ext <<_ACEOF
2488136644Sache/* end confdefs.h.  */
2489136644Sache#ifdef __STDC__
2490136644Sache# include <limits.h>
2491136644Sache#else
2492136644Sache# include <assert.h>
2493136644Sache#endif
2494157184Sache		     Syntax error
2495119610Sache_ACEOF
2496136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497119610Sache  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498119610Sache  ac_status=$?
2499136644Sache  grep -v '^ *+' conftest.er1 >conftest.err
2500119610Sache  rm -f conftest.er1
2501119610Sache  cat conftest.err >&5
2502136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503119610Sache  (exit $ac_status); } >/dev/null; then
2504119610Sache  if test -s conftest.err; then
2505119610Sache    ac_cpp_err=$ac_c_preproc_warn_flag
2506157184Sache    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2507119610Sache  else
2508119610Sache    ac_cpp_err=
2509119610Sache  fi
2510119610Sacheelse
2511119610Sache  ac_cpp_err=yes
2512119610Sachefi
2513119610Sacheif test -z "$ac_cpp_err"; then
251426497Sache  :
251526497Sacheelse
2516119610Sache  echo "$as_me: failed program was:" >&5
2517136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2518136644Sache
2519119610Sache  # Broken: fails on valid input.
2520119610Sachecontinue
2521119610Sachefi
2522119610Sacherm -f conftest.err conftest.$ac_ext
2523119610Sache
2524119610Sache  # OK, works on sane cases.  Now check whether non-existent headers
2525119610Sache  # can be detected and how.
2526119610Sache  cat >conftest.$ac_ext <<_ACEOF
2527136644Sache/* confdefs.h.  */
2528136644Sache_ACEOF
2529136644Sachecat confdefs.h >>conftest.$ac_ext
2530136644Sachecat >>conftest.$ac_ext <<_ACEOF
2531136644Sache/* end confdefs.h.  */
2532119610Sache#include <ac_nonexistent.h>
2533119610Sache_ACEOF
2534136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2535119610Sache  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2536119610Sache  ac_status=$?
2537136644Sache  grep -v '^ *+' conftest.er1 >conftest.err
2538119610Sache  rm -f conftest.er1
2539119610Sache  cat conftest.err >&5
2540136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541119610Sache  (exit $ac_status); } >/dev/null; then
2542119610Sache  if test -s conftest.err; then
2543119610Sache    ac_cpp_err=$ac_c_preproc_warn_flag
2544157184Sache    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2545119610Sache  else
2546119610Sache    ac_cpp_err=
2547119610Sache  fi
254826497Sacheelse
2549119610Sache  ac_cpp_err=yes
2550119610Sachefi
2551119610Sacheif test -z "$ac_cpp_err"; then
2552119610Sache  # Broken: success on invalid input.
2553119610Sachecontinue
2554119610Sacheelse
2555119610Sache  echo "$as_me: failed program was:" >&5
2556136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2557136644Sache
2558119610Sache  # Passes both tests.
2559119610Sacheac_preproc_ok=:
2560119610Sachebreak
2561119610Sachefi
2562119610Sacherm -f conftest.err conftest.$ac_ext
2563119610Sache
2564119610Sachedone
2565119610Sache# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2566119610Sacherm -f conftest.err conftest.$ac_ext
2567119610Sacheif $ac_preproc_ok; then
2568119610Sache  break
2569119610Sachefi
2570119610Sache
2571119610Sache    done
2572119610Sache    ac_cv_prog_CPP=$CPP
2573119610Sache
2574119610Sachefi
2575119610Sache  CPP=$ac_cv_prog_CPP
2576119610Sacheelse
2577119610Sache  ac_cv_prog_CPP=$CPP
2578119610Sachefi
2579136644Sacheecho "$as_me:$LINENO: result: $CPP" >&5
2580119610Sacheecho "${ECHO_T}$CPP" >&6
2581119610Sacheac_preproc_ok=false
2582119610Sachefor ac_c_preproc_warn_flag in '' yes
2583119610Sachedo
2584119610Sache  # Use a header file that comes with gcc, so configuring glibc
2585119610Sache  # with a fresh cross-compiler works.
2586136644Sache  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2587136644Sache  # <limits.h> exists even on freestanding compilers.
2588119610Sache  # On the NeXT, cc -E runs the code through the compiler's parser,
2589119610Sache  # not just through cpp. "Syntax error" is here to catch this case.
2590119610Sache  cat >conftest.$ac_ext <<_ACEOF
2591136644Sache/* confdefs.h.  */
2592136644Sache_ACEOF
2593136644Sachecat confdefs.h >>conftest.$ac_ext
2594136644Sachecat >>conftest.$ac_ext <<_ACEOF
2595136644Sache/* end confdefs.h.  */
2596136644Sache#ifdef __STDC__
2597136644Sache# include <limits.h>
2598136644Sache#else
2599136644Sache# include <assert.h>
2600136644Sache#endif
2601157184Sache		     Syntax error
2602119610Sache_ACEOF
2603136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2604119610Sache  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2605119610Sache  ac_status=$?
2606136644Sache  grep -v '^ *+' conftest.er1 >conftest.err
2607119610Sache  rm -f conftest.er1
2608119610Sache  cat conftest.err >&5
2609136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610119610Sache  (exit $ac_status); } >/dev/null; then
2611119610Sache  if test -s conftest.err; then
2612119610Sache    ac_cpp_err=$ac_c_preproc_warn_flag
2613157184Sache    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2614119610Sache  else
2615119610Sache    ac_cpp_err=
2616119610Sache  fi
2617119610Sacheelse
2618119610Sache  ac_cpp_err=yes
2619119610Sachefi
2620119610Sacheif test -z "$ac_cpp_err"; then
262158310Sache  :
262258310Sacheelse
2623119610Sache  echo "$as_me: failed program was:" >&5
2624136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2625136644Sache
2626119610Sache  # Broken: fails on valid input.
2627119610Sachecontinue
262826497Sachefi
2629119610Sacherm -f conftest.err conftest.$ac_ext
2630119610Sache
2631119610Sache  # OK, works on sane cases.  Now check whether non-existent headers
2632119610Sache  # can be detected and how.
2633119610Sache  cat >conftest.$ac_ext <<_ACEOF
2634136644Sache/* confdefs.h.  */
2635136644Sache_ACEOF
2636136644Sachecat confdefs.h >>conftest.$ac_ext
2637136644Sachecat >>conftest.$ac_ext <<_ACEOF
2638136644Sache/* end confdefs.h.  */
2639119610Sache#include <ac_nonexistent.h>
2640119610Sache_ACEOF
2641136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2642119610Sache  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2643119610Sache  ac_status=$?
2644136644Sache  grep -v '^ *+' conftest.er1 >conftest.err
2645119610Sache  rm -f conftest.er1
2646119610Sache  cat conftest.err >&5
2647136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648119610Sache  (exit $ac_status); } >/dev/null; then
2649119610Sache  if test -s conftest.err; then
2650119610Sache    ac_cpp_err=$ac_c_preproc_warn_flag
2651157184Sache    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2652119610Sache  else
2653119610Sache    ac_cpp_err=
2654119610Sache  fi
2655119610Sacheelse
2656119610Sache  ac_cpp_err=yes
265726497Sachefi
2658119610Sacheif test -z "$ac_cpp_err"; then
2659119610Sache  # Broken: success on invalid input.
2660119610Sachecontinue
2661119610Sacheelse
2662119610Sache  echo "$as_me: failed program was:" >&5
2663136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2664136644Sache
2665119610Sache  # Passes both tests.
2666119610Sacheac_preproc_ok=:
2667119610Sachebreak
266858310Sachefi
2669119610Sacherm -f conftest.err conftest.$ac_ext
2670119610Sache
2671119610Sachedone
2672119610Sache# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2673119610Sacherm -f conftest.err conftest.$ac_ext
2674119610Sacheif $ac_preproc_ok; then
2675119610Sache  :
267626497Sacheelse
2677136644Sache  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2678136644SacheSee \`config.log' for more details." >&5
2679136644Sacheecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2680136644SacheSee \`config.log' for more details." >&2;}
2681119610Sache   { (exit 1); exit 1; }; }
268226497Sachefi
268326497Sache
2684119610Sacheac_ext=c
2685119610Sacheac_cpp='$CPP $CPPFLAGS'
2686119610Sacheac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687119610Sacheac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688119610Sacheac_compiler_gnu=$ac_cv_c_compiler_gnu
2689119610Sache
2690136644Sache
2691136644Sacheecho "$as_me:$LINENO: checking for egrep" >&5
2692136644Sacheecho $ECHO_N "checking for egrep... $ECHO_C" >&6
2693136644Sacheif test "${ac_cv_prog_egrep+set}" = set; then
2694136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
2695136644Sacheelse
2696136644Sache  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2697136644Sache    then ac_cv_prog_egrep='grep -E'
2698136644Sache    else ac_cv_prog_egrep='egrep'
2699136644Sache    fi
2700136644Sachefi
2701136644Sacheecho "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2702136644Sacheecho "${ECHO_T}$ac_cv_prog_egrep" >&6
2703136644Sache EGREP=$ac_cv_prog_egrep
2704136644Sache
2705136644Sache
2706136644Sacheecho "$as_me:$LINENO: checking for ANSI C header files" >&5
2707136644Sacheecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2708136644Sacheif test "${ac_cv_header_stdc+set}" = set; then
2709136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
2710136644Sacheelse
2711136644Sache  cat >conftest.$ac_ext <<_ACEOF
2712136644Sache/* confdefs.h.  */
2713136644Sache_ACEOF
2714136644Sachecat confdefs.h >>conftest.$ac_ext
2715136644Sachecat >>conftest.$ac_ext <<_ACEOF
2716136644Sache/* end confdefs.h.  */
2717136644Sache#include <stdlib.h>
2718136644Sache#include <stdarg.h>
2719136644Sache#include <string.h>
2720136644Sache#include <float.h>
2721136644Sache
2722136644Sacheint
2723136644Sachemain ()
2724136644Sache{
2725136644Sache
2726136644Sache  ;
2727136644Sache  return 0;
2728136644Sache}
2729136644Sache_ACEOF
2730136644Sacherm -f conftest.$ac_objext
2731136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732157184Sache  (eval $ac_compile) 2>conftest.er1
2733136644Sache  ac_status=$?
2734157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
2735157184Sache  rm -f conftest.er1
2736157184Sache  cat conftest.err >&5
2737136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738136644Sache  (exit $ac_status); } &&
2739157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
2740157184Sache			 || test ! -s conftest.err'
2741136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742136644Sache  (eval $ac_try) 2>&5
2743136644Sache  ac_status=$?
2744136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745157184Sache  (exit $ac_status); }; } &&
2746157184Sache	 { ac_try='test -s conftest.$ac_objext'
2747157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748157184Sache  (eval $ac_try) 2>&5
2749157184Sache  ac_status=$?
2750157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751136644Sache  (exit $ac_status); }; }; then
2752136644Sache  ac_cv_header_stdc=yes
2753136644Sacheelse
2754136644Sache  echo "$as_me: failed program was:" >&5
2755136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2756136644Sache
2757136644Sacheac_cv_header_stdc=no
2758136644Sachefi
2759157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760136644Sache
2761136644Sacheif test $ac_cv_header_stdc = yes; then
2762136644Sache  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2763136644Sache  cat >conftest.$ac_ext <<_ACEOF
2764136644Sache/* confdefs.h.  */
2765136644Sache_ACEOF
2766136644Sachecat confdefs.h >>conftest.$ac_ext
2767136644Sachecat >>conftest.$ac_ext <<_ACEOF
2768136644Sache/* end confdefs.h.  */
2769136644Sache#include <string.h>
2770136644Sache
2771136644Sache_ACEOF
2772136644Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2773136644Sache  $EGREP "memchr" >/dev/null 2>&1; then
2774136644Sache  :
2775136644Sacheelse
2776136644Sache  ac_cv_header_stdc=no
2777136644Sachefi
2778136644Sacherm -f conftest*
2779136644Sache
2780136644Sachefi
2781136644Sache
2782136644Sacheif test $ac_cv_header_stdc = yes; then
2783136644Sache  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2784136644Sache  cat >conftest.$ac_ext <<_ACEOF
2785136644Sache/* confdefs.h.  */
2786136644Sache_ACEOF
2787136644Sachecat confdefs.h >>conftest.$ac_ext
2788136644Sachecat >>conftest.$ac_ext <<_ACEOF
2789136644Sache/* end confdefs.h.  */
2790136644Sache#include <stdlib.h>
2791136644Sache
2792136644Sache_ACEOF
2793136644Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2794136644Sache  $EGREP "free" >/dev/null 2>&1; then
2795136644Sache  :
2796136644Sacheelse
2797136644Sache  ac_cv_header_stdc=no
2798136644Sachefi
2799136644Sacherm -f conftest*
2800136644Sache
2801136644Sachefi
2802136644Sache
2803136644Sacheif test $ac_cv_header_stdc = yes; then
2804136644Sache  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2805136644Sache  if test "$cross_compiling" = yes; then
2806136644Sache  :
2807136644Sacheelse
2808136644Sache  cat >conftest.$ac_ext <<_ACEOF
2809136644Sache/* confdefs.h.  */
2810136644Sache_ACEOF
2811136644Sachecat confdefs.h >>conftest.$ac_ext
2812136644Sachecat >>conftest.$ac_ext <<_ACEOF
2813136644Sache/* end confdefs.h.  */
2814136644Sache#include <ctype.h>
2815136644Sache#if ((' ' & 0x0FF) == 0x020)
2816136644Sache# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2817136644Sache# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2818136644Sache#else
2819136644Sache# define ISLOWER(c) \
2820157184Sache		   (('a' <= (c) && (c) <= 'i') \
2821157184Sache		     || ('j' <= (c) && (c) <= 'r') \
2822157184Sache		     || ('s' <= (c) && (c) <= 'z'))
2823136644Sache# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2824136644Sache#endif
2825136644Sache
2826136644Sache#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2827136644Sacheint
2828136644Sachemain ()
2829136644Sache{
2830136644Sache  int i;
2831136644Sache  for (i = 0; i < 256; i++)
2832136644Sache    if (XOR (islower (i), ISLOWER (i))
2833157184Sache	|| toupper (i) != TOUPPER (i))
2834136644Sache      exit(2);
2835136644Sache  exit (0);
2836136644Sache}
2837136644Sache_ACEOF
2838136644Sacherm -f conftest$ac_exeext
2839136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2840136644Sache  (eval $ac_link) 2>&5
2841136644Sache  ac_status=$?
2842136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843136644Sache  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2844136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845136644Sache  (eval $ac_try) 2>&5
2846136644Sache  ac_status=$?
2847136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848136644Sache  (exit $ac_status); }; }; then
2849136644Sache  :
2850136644Sacheelse
2851136644Sache  echo "$as_me: program exited with status $ac_status" >&5
2852136644Sacheecho "$as_me: failed program was:" >&5
2853136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2854136644Sache
2855136644Sache( exit $ac_status )
2856136644Sacheac_cv_header_stdc=no
2857136644Sachefi
2858157184Sacherm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2859136644Sachefi
2860136644Sachefi
2861136644Sachefi
2862136644Sacheecho "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2863136644Sacheecho "${ECHO_T}$ac_cv_header_stdc" >&6
2864136644Sacheif test $ac_cv_header_stdc = yes; then
2865136644Sache
2866136644Sachecat >>confdefs.h <<\_ACEOF
2867136644Sache#define STDC_HEADERS 1
2868136644Sache_ACEOF
2869136644Sache
2870136644Sachefi
2871136644Sache
2872136644Sache# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2873136644Sache
2874136644Sache
2875136644Sache
2876136644Sache
2877136644Sache
2878136644Sache
2879136644Sache
2880136644Sache
2881136644Sache
2882136644Sachefor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2883157184Sache		  inttypes.h stdint.h unistd.h
2884136644Sachedo
2885136644Sacheas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2886136644Sacheecho "$as_me:$LINENO: checking for $ac_header" >&5
2887136644Sacheecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2888136644Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
2889136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
2890136644Sacheelse
2891136644Sache  cat >conftest.$ac_ext <<_ACEOF
2892136644Sache/* confdefs.h.  */
2893136644Sache_ACEOF
2894136644Sachecat confdefs.h >>conftest.$ac_ext
2895136644Sachecat >>conftest.$ac_ext <<_ACEOF
2896136644Sache/* end confdefs.h.  */
2897136644Sache$ac_includes_default
2898136644Sache
2899136644Sache#include <$ac_header>
2900136644Sache_ACEOF
2901136644Sacherm -f conftest.$ac_objext
2902136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2903157184Sache  (eval $ac_compile) 2>conftest.er1
2904136644Sache  ac_status=$?
2905157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
2906157184Sache  rm -f conftest.er1
2907157184Sache  cat conftest.err >&5
2908136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909136644Sache  (exit $ac_status); } &&
2910157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
2911157184Sache			 || test ! -s conftest.err'
2912136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913136644Sache  (eval $ac_try) 2>&5
2914136644Sache  ac_status=$?
2915136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916157184Sache  (exit $ac_status); }; } &&
2917157184Sache	 { ac_try='test -s conftest.$ac_objext'
2918157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919157184Sache  (eval $ac_try) 2>&5
2920157184Sache  ac_status=$?
2921157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922136644Sache  (exit $ac_status); }; }; then
2923136644Sache  eval "$as_ac_Header=yes"
2924136644Sacheelse
2925136644Sache  echo "$as_me: failed program was:" >&5
2926136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2927136644Sache
2928136644Sacheeval "$as_ac_Header=no"
2929136644Sachefi
2930157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2931136644Sachefi
2932136644Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2933136644Sacheecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2934136644Sacheif test `eval echo '${'$as_ac_Header'}'` = yes; then
2935136644Sache  cat >>confdefs.h <<_ACEOF
2936136644Sache#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2937136644Sache_ACEOF
2938136644Sache
2939136644Sachefi
2940136644Sache
2941136644Sachedone
2942136644Sache
2943136644Sache
2944136644Sacheif test "${ac_cv_header_minix_config_h+set}" = set; then
2945136644Sache  echo "$as_me:$LINENO: checking for minix/config.h" >&5
2946119610Sacheecho $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2947119610Sacheif test "${ac_cv_header_minix_config_h+set}" = set; then
2948119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
2949136644Sachefi
2950136644Sacheecho "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2951136644Sacheecho "${ECHO_T}$ac_cv_header_minix_config_h" >&6
295235486Sacheelse
2953136644Sache  # Is the header compilable?
2954136644Sacheecho "$as_me:$LINENO: checking minix/config.h usability" >&5
2955136644Sacheecho $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2956136644Sachecat >conftest.$ac_ext <<_ACEOF
2957136644Sache/* confdefs.h.  */
2958136644Sache_ACEOF
2959136644Sachecat confdefs.h >>conftest.$ac_ext
2960136644Sachecat >>conftest.$ac_ext <<_ACEOF
2961136644Sache/* end confdefs.h.  */
2962136644Sache$ac_includes_default
296335486Sache#include <minix/config.h>
2964119610Sache_ACEOF
2965136644Sacherm -f conftest.$ac_objext
2966136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967157184Sache  (eval $ac_compile) 2>conftest.er1
2968136644Sache  ac_status=$?
2969157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
2970157184Sache  rm -f conftest.er1
2971157184Sache  cat conftest.err >&5
2972136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973136644Sache  (exit $ac_status); } &&
2974157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
2975157184Sache			 || test ! -s conftest.err'
2976136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977136644Sache  (eval $ac_try) 2>&5
2978136644Sache  ac_status=$?
2979136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980157184Sache  (exit $ac_status); }; } &&
2981157184Sache	 { ac_try='test -s conftest.$ac_objext'
2982157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983157184Sache  (eval $ac_try) 2>&5
2984157184Sache  ac_status=$?
2985157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986136644Sache  (exit $ac_status); }; }; then
2987136644Sache  ac_header_compiler=yes
2988136644Sacheelse
2989136644Sache  echo "$as_me: failed program was:" >&5
2990136644Sachesed 's/^/| /' conftest.$ac_ext >&5
2991136644Sache
2992136644Sacheac_header_compiler=no
2993136644Sachefi
2994157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2995136644Sacheecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
2996136644Sacheecho "${ECHO_T}$ac_header_compiler" >&6
2997136644Sache
2998136644Sache# Is the header present?
2999136644Sacheecho "$as_me:$LINENO: checking minix/config.h presence" >&5
3000136644Sacheecho $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3001136644Sachecat >conftest.$ac_ext <<_ACEOF
3002136644Sache/* confdefs.h.  */
3003136644Sache_ACEOF
3004136644Sachecat confdefs.h >>conftest.$ac_ext
3005136644Sachecat >>conftest.$ac_ext <<_ACEOF
3006136644Sache/* end confdefs.h.  */
3007136644Sache#include <minix/config.h>
3008136644Sache_ACEOF
3009136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3010119610Sache  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3011119610Sache  ac_status=$?
3012136644Sache  grep -v '^ *+' conftest.er1 >conftest.err
3013119610Sache  rm -f conftest.er1
3014119610Sache  cat conftest.err >&5
3015136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016119610Sache  (exit $ac_status); } >/dev/null; then
3017119610Sache  if test -s conftest.err; then
3018119610Sache    ac_cpp_err=$ac_c_preproc_warn_flag
3019157184Sache    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3020119610Sache  else
3021119610Sache    ac_cpp_err=
3022119610Sache  fi
302335486Sacheelse
3024119610Sache  ac_cpp_err=yes
3025119610Sachefi
3026119610Sacheif test -z "$ac_cpp_err"; then
3027136644Sache  ac_header_preproc=yes
3028119610Sacheelse
3029119610Sache  echo "$as_me: failed program was:" >&5
3030136644Sachesed 's/^/| /' conftest.$ac_ext >&5
3031136644Sache
3032136644Sache  ac_header_preproc=no
303335486Sachefi
3034119610Sacherm -f conftest.err conftest.$ac_ext
3035136644Sacheecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
3036136644Sacheecho "${ECHO_T}$ac_header_preproc" >&6
3037136644Sache
3038136644Sache# So?  What about this header?
3039157184Sachecase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3040157184Sache  yes:no: )
3041136644Sache    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3042136644Sacheecho "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3043157184Sache    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3044157184Sacheecho "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3045157184Sache    ac_header_preproc=yes
3046136644Sache    ;;
3047157184Sache  no:yes:* )
3048136644Sache    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3049136644Sacheecho "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3050157184Sache    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3051157184Sacheecho "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3052157184Sache    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3053157184Sacheecho "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3054157184Sache    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3055157184Sacheecho "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3056136644Sache    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3057136644Sacheecho "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3058157184Sache    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3059157184Sacheecho "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3060136644Sache    (
3061136644Sache      cat <<\_ASBOX
3062157184Sache## ----------------------------------- ##
3063157184Sache## Report this to bug-readline@gnu.org ##
3064157184Sache## ----------------------------------- ##
3065136644Sache_ASBOX
3066136644Sache    ) |
3067136644Sache      sed "s/^/$as_me: WARNING:     /" >&2
3068136644Sache    ;;
3069136644Sacheesac
3070136644Sacheecho "$as_me:$LINENO: checking for minix/config.h" >&5
3071136644Sacheecho $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3072136644Sacheif test "${ac_cv_header_minix_config_h+set}" = set; then
3073136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
3074136644Sacheelse
3075136644Sache  ac_cv_header_minix_config_h=$ac_header_preproc
307635486Sachefi
3077136644Sacheecho "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3078119610Sacheecho "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3079136644Sache
3080136644Sachefi
3081119610Sacheif test $ac_cv_header_minix_config_h = yes; then
308235486Sache  MINIX=yes
308335486Sacheelse
3084119610Sache  MINIX=
308535486Sachefi
308635486Sache
3087136644Sache
308835486Sacheif test "$MINIX" = yes; then
3089119610Sache
3090136644Sachecat >>confdefs.h <<\_ACEOF
309135486Sache#define _POSIX_SOURCE 1
3092136644Sache_ACEOF
309335486Sache
3094136644Sache
3095136644Sachecat >>confdefs.h <<\_ACEOF
309635486Sache#define _POSIX_1_SOURCE 2
3097136644Sache_ACEOF
309835486Sache
3099136644Sache
3100136644Sachecat >>confdefs.h <<\_ACEOF
310135486Sache#define _MINIX 1
3102136644Sache_ACEOF
310335486Sache
310435486Sachefi
310535486Sache
3106136644Sache
310735486Sache# If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
310835486Sachetest -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
310935486Sache
3110119610Sacheif test $ac_cv_c_compiler_gnu = yes; then
3111136644Sache    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3112119610Sacheecho $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3113119610Sacheif test "${ac_cv_prog_gcc_traditional+set}" = set; then
3114119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
311526497Sacheelse
311626497Sache    ac_pattern="Autoconf.*'x'"
3117119610Sache  cat >conftest.$ac_ext <<_ACEOF
3118136644Sache/* confdefs.h.  */
3119136644Sache_ACEOF
3120136644Sachecat confdefs.h >>conftest.$ac_ext
3121136644Sachecat >>conftest.$ac_ext <<_ACEOF
3122136644Sache/* end confdefs.h.  */
312326497Sache#include <sgtty.h>
312426497SacheAutoconf TIOCGETP
3125119610Sache_ACEOF
312626497Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3127136644Sache  $EGREP "$ac_pattern" >/dev/null 2>&1; then
312826497Sache  ac_cv_prog_gcc_traditional=yes
312926497Sacheelse
313026497Sache  ac_cv_prog_gcc_traditional=no
313126497Sachefi
313226497Sacherm -f conftest*
313326497Sache
3134136644Sache
313526497Sache  if test $ac_cv_prog_gcc_traditional = no; then
3136119610Sache    cat >conftest.$ac_ext <<_ACEOF
3137136644Sache/* confdefs.h.  */
3138136644Sache_ACEOF
3139136644Sachecat confdefs.h >>conftest.$ac_ext
3140136644Sachecat >>conftest.$ac_ext <<_ACEOF
3141136644Sache/* end confdefs.h.  */
314226497Sache#include <termio.h>
314326497SacheAutoconf TCGETA
3144119610Sache_ACEOF
314526497Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3146136644Sache  $EGREP "$ac_pattern" >/dev/null 2>&1; then
314726497Sache  ac_cv_prog_gcc_traditional=yes
314826497Sachefi
314926497Sacherm -f conftest*
315026497Sache
315126497Sache  fi
315226497Sachefi
3153136644Sacheecho "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3154119610Sacheecho "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
315526497Sache  if test $ac_cv_prog_gcc_traditional = yes; then
315626497Sache    CC="$CC -traditional"
315726497Sache  fi
315826497Sachefi
315926497Sache
316026497Sache# Find a good install program.  We prefer a C program (faster),
316126497Sache# so one script is as good as another.  But avoid the broken or
316226497Sache# incompatible versions:
316326497Sache# SysV /etc/install, /usr/sbin/install
316426497Sache# SunOS /usr/etc/install
316526497Sache# IRIX /sbin/install
316626497Sache# AIX /bin/install
3167119610Sache# AmigaOS /C/install, which installs bootblocks on floppy discs
316858310Sache# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
316926497Sache# AFS /usr/afsws/bin/install, which mishandles nonexistent args
317026497Sache# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3171157184Sache# OS/2's system install, which has a completely different semantic
317226497Sache# ./install, which can be erroneously created by make from ./install.sh.
3173136644Sacheecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3174136644Sacheecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
317526497Sacheif test -z "$INSTALL"; then
3176119610Sacheif test "${ac_cv_path_install+set}" = set; then
3177119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
317826497Sacheelse
3179136644Sache  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180136644Sachefor as_dir in $PATH
3181136644Sachedo
3182136644Sache  IFS=$as_save_IFS
3183136644Sache  test -z "$as_dir" && as_dir=.
3184136644Sache  # Account for people who put trailing slashes in PATH elements.
3185136644Sachecase $as_dir/ in
3186136644Sache  ./ | .// | /cC/* | \
3187136644Sache  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3188157184Sache  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3189136644Sache  /usr/ucb/* ) ;;
3190136644Sache  *)
3191136644Sache    # OSF1 and SCO ODT 3.0 have their own names for install.
3192136644Sache    # Don't use installbsd from OSF since it installs stuff as root
3193136644Sache    # by default.
3194136644Sache    for ac_prog in ginstall scoinst install; do
3195136644Sache      for ac_exec_ext in '' $ac_executable_extensions; do
3196157184Sache	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3197157184Sache	  if test $ac_prog = install &&
3198157184Sache	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3199157184Sache	    # AIX install.  It has an incompatible calling convention.
3200157184Sache	    :
3201157184Sache	  elif test $ac_prog = install &&
3202157184Sache	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3203157184Sache	    # program-specific install script used by HP pwplus--don't use.
3204157184Sache	    :
3205157184Sache	  else
3206157184Sache	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3207157184Sache	    break 3
3208157184Sache	  fi
3209157184Sache	fi
321026497Sache      done
3211136644Sache    done
3212136644Sache    ;;
3213136644Sacheesac
3214136644Sachedone
321526497Sache
3216136644Sache
321726497Sachefi
321826497Sache  if test "${ac_cv_path_install+set}" = set; then
3219119610Sache    INSTALL=$ac_cv_path_install
322026497Sache  else
322126497Sache    # As a last resort, use the slow shell script.  We don't cache a
322226497Sache    # path for INSTALL within a source directory, because that will
322326497Sache    # break other packages using the cache if that directory is
322426497Sache    # removed, or if the path is relative.
3225119610Sache    INSTALL=$ac_install_sh
322626497Sache  fi
322726497Sachefi
3228136644Sacheecho "$as_me:$LINENO: result: $INSTALL" >&5
3229119610Sacheecho "${ECHO_T}$INSTALL" >&6
323026497Sache
323126497Sache# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
323226497Sache# It thinks the first close brace ends the variable substitution.
323326497Sachetest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
323426497Sache
3235119610Sachetest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
323658310Sache
323726497Sachetest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
323826497Sache
323947558Sache# Extract the first word of "ar", so it can be a program name with args.
324047558Sacheset dummy ar; ac_word=$2
3241136644Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5
3242119610Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3243119610Sacheif test "${ac_cv_prog_AR+set}" = set; then
3244119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
324547558Sacheelse
324647558Sache  if test -n "$AR"; then
324747558Sache  ac_cv_prog_AR="$AR" # Let the user override the test.
324847558Sacheelse
3249136644Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250136644Sachefor as_dir in $PATH
3251136644Sachedo
3252136644Sache  IFS=$as_save_IFS
3253136644Sache  test -z "$as_dir" && as_dir=.
3254136644Sache  for ac_exec_ext in '' $ac_executable_extensions; do
3255136644Sache  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256136644Sache    ac_cv_prog_AR=""
3257136644Sache    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258136644Sache    break 2
3259136644Sache  fi
3260119610Sachedone
3261136644Sachedone
3262119610Sache
3263119610Sache  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
326447558Sachefi
326547558Sachefi
3266119610SacheAR=$ac_cv_prog_AR
326747558Sacheif test -n "$AR"; then
3268136644Sache  echo "$as_me:$LINENO: result: $AR" >&5
3269119610Sacheecho "${ECHO_T}$AR" >&6
327047558Sacheelse
3271136644Sache  echo "$as_me:$LINENO: result: no" >&5
3272119610Sacheecho "${ECHO_T}no" >&6
327347558Sachefi
327447558Sache
327547558Sachetest -n "$ARFLAGS" || ARFLAGS="cr"
3276119610Sacheif test -n "$ac_tool_prefix"; then
3277119610Sache  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3278119610Sacheset dummy ${ac_tool_prefix}ranlib; ac_word=$2
3279136644Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5
3280119610Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281119610Sacheif test "${ac_cv_prog_RANLIB+set}" = set; then
3282119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
328326497Sacheelse
328426497Sache  if test -n "$RANLIB"; then
328526497Sache  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
328626497Sacheelse
3287136644Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288136644Sachefor as_dir in $PATH
3289136644Sachedo
3290136644Sache  IFS=$as_save_IFS
3291136644Sache  test -z "$as_dir" && as_dir=.
3292136644Sache  for ac_exec_ext in '' $ac_executable_extensions; do
3293136644Sache  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294136644Sache    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3295136644Sache    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296136644Sache    break 2
3297136644Sache  fi
3298119610Sachedone
3299136644Sachedone
3300119610Sache
330126497Sachefi
330226497Sachefi
3303119610SacheRANLIB=$ac_cv_prog_RANLIB
330426497Sacheif test -n "$RANLIB"; then
3305136644Sache  echo "$as_me:$LINENO: result: $RANLIB" >&5
3306119610Sacheecho "${ECHO_T}$RANLIB" >&6
330726497Sacheelse
3308136644Sache  echo "$as_me:$LINENO: result: no" >&5
3309119610Sacheecho "${ECHO_T}no" >&6
331026497Sachefi
331126497Sache
3312119610Sachefi
3313119610Sacheif test -z "$ac_cv_prog_RANLIB"; then
3314119610Sache  ac_ct_RANLIB=$RANLIB
3315119610Sache  # Extract the first word of "ranlib", so it can be a program name with args.
3316119610Sacheset dummy ranlib; ac_word=$2
3317136644Sacheecho "$as_me:$LINENO: checking for $ac_word" >&5
3318119610Sacheecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319119610Sacheif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3320119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
3321119610Sacheelse
3322119610Sache  if test -n "$ac_ct_RANLIB"; then
3323119610Sache  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3324119610Sacheelse
3325136644Sacheas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326136644Sachefor as_dir in $PATH
3327136644Sachedo
3328136644Sache  IFS=$as_save_IFS
3329136644Sache  test -z "$as_dir" && as_dir=.
3330136644Sache  for ac_exec_ext in '' $ac_executable_extensions; do
3331136644Sache  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332136644Sache    ac_cv_prog_ac_ct_RANLIB="ranlib"
3333136644Sache    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334136644Sache    break 2
3335136644Sache  fi
3336119610Sachedone
3337136644Sachedone
333826497Sache
3339119610Sache  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3340119610Sachefi
3341119610Sachefi
3342119610Sacheac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3343119610Sacheif test -n "$ac_ct_RANLIB"; then
3344136644Sache  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3345119610Sacheecho "${ECHO_T}$ac_ct_RANLIB" >&6
3346119610Sacheelse
3347136644Sache  echo "$as_me:$LINENO: result: no" >&5
3348119610Sacheecho "${ECHO_T}no" >&6
3349119610Sachefi
3350119610Sache
3351119610Sache  RANLIB=$ac_ct_RANLIB
3352119610Sacheelse
3353119610Sache  RANLIB="$ac_cv_prog_RANLIB"
3354119610Sachefi
3355119610Sache
3356136644Sache
335747558SacheMAKE_SHELL=/bin/sh
335847558Sache
335947558Sache
3360136644Sacheecho "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3361119610Sacheecho $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3362119610Sacheif test "${ac_cv_c_const+set}" = set; then
3363119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
336426497Sacheelse
3365119610Sache  cat >conftest.$ac_ext <<_ACEOF
3366136644Sache/* confdefs.h.  */
3367136644Sache_ACEOF
3368136644Sachecat confdefs.h >>conftest.$ac_ext
3369136644Sachecat >>conftest.$ac_ext <<_ACEOF
3370136644Sache/* end confdefs.h.  */
3371119610Sache
3372119610Sacheint
3373119610Sachemain ()
3374119610Sache{
3375119610Sache/* FIXME: Include the comments suggested by Paul. */
3376119610Sache#ifndef __cplusplus
3377119610Sache  /* Ultrix mips cc rejects this.  */
3378119610Sache  typedef int charset[2];
3379119610Sache  const charset x;
3380119610Sache  /* SunOS 4.1.1 cc rejects this.  */
3381119610Sache  char const *const *ccp;
3382119610Sache  char **p;
3383119610Sache  /* NEC SVR4.0.2 mips cc rejects this.  */
3384119610Sache  struct point {int x, y;};
3385119610Sache  static struct point const zero = {0,0};
3386119610Sache  /* AIX XL C 1.02.0.0 rejects this.
3387119610Sache     It does not let you subtract one const X* pointer from another in
3388119610Sache     an arm of an if-expression whose if-part is not a constant
3389119610Sache     expression */
3390119610Sache  const char *g = "string";
3391119610Sache  ccp = &g + (g ? g-g : 0);
3392119610Sache  /* HPUX 7.0 cc rejects these. */
3393119610Sache  ++ccp;
3394119610Sache  p = (char**) ccp;
3395119610Sache  ccp = (char const *const *) p;
3396119610Sache  { /* SCO 3.2v4 cc rejects this.  */
3397119610Sache    char *t;
3398119610Sache    char const *s = 0 ? (char *) 0 : (char const *) 0;
3399119610Sache
3400119610Sache    *t++ = 0;
3401119610Sache  }
3402119610Sache  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3403119610Sache    int x[] = {25, 17};
3404119610Sache    const int *foo = &x[0];
3405119610Sache    ++foo;
3406119610Sache  }
3407119610Sache  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3408119610Sache    typedef const int *iptr;
3409119610Sache    iptr p = 0;
3410119610Sache    ++p;
3411119610Sache  }
3412119610Sache  { /* AIX XL C 1.02.0.0 rejects this saying
3413119610Sache       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3414119610Sache    struct s { int j; const int *ap[3]; };
3415119610Sache    struct s *b; b->j = 5;
3416119610Sache  }
3417119610Sache  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3418119610Sache    const int foo = 10;
3419119610Sache  }
3420119610Sache#endif
3421119610Sache
3422119610Sache  ;
3423119610Sache  return 0;
3424119610Sache}
3425119610Sache_ACEOF
3426119610Sacherm -f conftest.$ac_objext
3427136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428157184Sache  (eval $ac_compile) 2>conftest.er1
3429119610Sache  ac_status=$?
3430157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
3431157184Sache  rm -f conftest.er1
3432157184Sache  cat conftest.err >&5
3433136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434119610Sache  (exit $ac_status); } &&
3435157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
3436157184Sache			 || test ! -s conftest.err'
3437136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438119610Sache  (eval $ac_try) 2>&5
3439119610Sache  ac_status=$?
3440136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441157184Sache  (exit $ac_status); }; } &&
3442157184Sache	 { ac_try='test -s conftest.$ac_objext'
3443157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444157184Sache  (eval $ac_try) 2>&5
3445157184Sache  ac_status=$?
3446157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447119610Sache  (exit $ac_status); }; }; then
3448119610Sache  ac_cv_c_const=yes
3449119610Sacheelse
3450119610Sache  echo "$as_me: failed program was:" >&5
3451136644Sachesed 's/^/| /' conftest.$ac_ext >&5
3452136644Sache
3453119610Sacheac_cv_c_const=no
3454119610Sachefi
3455157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456119610Sachefi
3457136644Sacheecho "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3458119610Sacheecho "${ECHO_T}$ac_cv_c_const" >&6
3459119610Sacheif test $ac_cv_c_const = no; then
3460119610Sache
3461136644Sachecat >>confdefs.h <<\_ACEOF
3462119610Sache#define const
3463136644Sache_ACEOF
3464119610Sache
3465119610Sachefi
3466119610Sache
3467136644Sacheecho "$as_me:$LINENO: checking for function prototypes" >&5
3468119610Sacheecho $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3469119610Sacheif test "$ac_cv_prog_cc_stdc" != no; then
3470136644Sache  echo "$as_me:$LINENO: result: yes" >&5
3471119610Sacheecho "${ECHO_T}yes" >&6
3472119610Sache
3473136644Sachecat >>confdefs.h <<\_ACEOF
3474119610Sache#define PROTOTYPES 1
3475119610Sache_ACEOF
3476119610Sache
3477119610Sache
3478136644Sachecat >>confdefs.h <<\_ACEOF
3479136644Sache#define __PROTOTYPES 1
3480119610Sache_ACEOF
3481119610Sache
3482119610Sacheelse
3483136644Sache  echo "$as_me:$LINENO: result: no" >&5
3484136644Sacheecho "${ECHO_T}no" >&6
3485119610Sachefi
3486119610Sache
3487119610Sache
3488136644Sacheecho "$as_me:$LINENO: checking whether char is unsigned" >&5
3489119610Sacheecho $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
3490119610Sacheif test "${ac_cv_c_char_unsigned+set}" = set; then
3491119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
3492119610Sacheelse
3493119610Sache  cat >conftest.$ac_ext <<_ACEOF
3494136644Sache/* confdefs.h.  */
3495136644Sache_ACEOF
3496136644Sachecat confdefs.h >>conftest.$ac_ext
3497136644Sachecat >>conftest.$ac_ext <<_ACEOF
3498136644Sache/* end confdefs.h.  */
3499119610Sache$ac_includes_default
3500119610Sacheint
3501119610Sachemain ()
3502119610Sache{
3503136644Sachestatic int test_array [1 - 2 * !(((char) -1) < 0)];
3504136644Sachetest_array [0] = 0
3505136644Sache
3506119610Sache  ;
3507119610Sache  return 0;
3508119610Sache}
3509119610Sache_ACEOF
3510119610Sacherm -f conftest.$ac_objext
3511136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3512157184Sache  (eval $ac_compile) 2>conftest.er1
3513119610Sache  ac_status=$?
3514157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
3515157184Sache  rm -f conftest.er1
3516157184Sache  cat conftest.err >&5
3517136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518119610Sache  (exit $ac_status); } &&
3519157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
3520157184Sache			 || test ! -s conftest.err'
3521136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522119610Sache  (eval $ac_try) 2>&5
3523119610Sache  ac_status=$?
3524136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525157184Sache  (exit $ac_status); }; } &&
3526157184Sache	 { ac_try='test -s conftest.$ac_objext'
3527157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528157184Sache  (eval $ac_try) 2>&5
3529157184Sache  ac_status=$?
3530157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531119610Sache  (exit $ac_status); }; }; then
3532119610Sache  ac_cv_c_char_unsigned=no
3533119610Sacheelse
3534119610Sache  echo "$as_me: failed program was:" >&5
3535136644Sachesed 's/^/| /' conftest.$ac_ext >&5
3536136644Sache
3537119610Sacheac_cv_c_char_unsigned=yes
3538119610Sachefi
3539157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3540119610Sachefi
3541136644Sacheecho "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
3542119610Sacheecho "${ECHO_T}$ac_cv_c_char_unsigned" >&6
3543119610Sacheif test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3544136644Sache  cat >>confdefs.h <<\_ACEOF
3545119610Sache#define __CHAR_UNSIGNED__ 1
3546136644Sache_ACEOF
3547119610Sache
3548119610Sachefi
3549119610Sache
3550136644Sache
3551136644Sacheecho "$as_me:$LINENO: checking return type of signal handlers" >&5
3552119610Sacheecho $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3553119610Sacheif test "${ac_cv_type_signal+set}" = set; then
3554119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
3555119610Sacheelse
3556119610Sache  cat >conftest.$ac_ext <<_ACEOF
3557136644Sache/* confdefs.h.  */
3558136644Sache_ACEOF
3559136644Sachecat confdefs.h >>conftest.$ac_ext
3560136644Sachecat >>conftest.$ac_ext <<_ACEOF
3561136644Sache/* end confdefs.h.  */
356226497Sache#include <sys/types.h>
356326497Sache#include <signal.h>
356426497Sache#ifdef signal
3565119610Sache# undef signal
356626497Sache#endif
356726497Sache#ifdef __cplusplus
356826497Sacheextern "C" void (*signal (int, void (*)(int)))(int);
356926497Sache#else
357026497Sachevoid (*signal ()) ();
357126497Sache#endif
357226497Sache
3573119610Sacheint
3574119610Sachemain ()
3575119610Sache{
357626497Sacheint i;
3577119610Sache  ;
3578119610Sache  return 0;
3579119610Sache}
3580119610Sache_ACEOF
3581119610Sacherm -f conftest.$ac_objext
3582136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583157184Sache  (eval $ac_compile) 2>conftest.er1
3584119610Sache  ac_status=$?
3585157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
3586157184Sache  rm -f conftest.er1
3587157184Sache  cat conftest.err >&5
3588136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589119610Sache  (exit $ac_status); } &&
3590157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
3591157184Sache			 || test ! -s conftest.err'
3592136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593119610Sache  (eval $ac_try) 2>&5
3594119610Sache  ac_status=$?
3595136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596157184Sache  (exit $ac_status); }; } &&
3597157184Sache	 { ac_try='test -s conftest.$ac_objext'
3598157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599157184Sache  (eval $ac_try) 2>&5
3600157184Sache  ac_status=$?
3601157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602119610Sache  (exit $ac_status); }; }; then
360326497Sache  ac_cv_type_signal=void
360426497Sacheelse
3605119610Sache  echo "$as_me: failed program was:" >&5
3606136644Sachesed 's/^/| /' conftest.$ac_ext >&5
3607136644Sache
3608119610Sacheac_cv_type_signal=int
360926497Sachefi
3610157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
361126497Sachefi
3612136644Sacheecho "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3613119610Sacheecho "${ECHO_T}$ac_cv_type_signal" >&6
361426497Sache
3615136644Sachecat >>confdefs.h <<_ACEOF
361626497Sache#define RETSIGTYPE $ac_cv_type_signal
3617136644Sache_ACEOF
361826497Sache
3619136644Sache
3620136644Sache
3621136644Sacheecho "$as_me:$LINENO: checking for size_t" >&5
3622119610Sacheecho $ECHO_N "checking for size_t... $ECHO_C" >&6
3623119610Sacheif test "${ac_cv_type_size_t+set}" = set; then
3624119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
3625119610Sacheelse
3626119610Sache  cat >conftest.$ac_ext <<_ACEOF
3627136644Sache/* confdefs.h.  */
3628136644Sache_ACEOF
3629136644Sachecat confdefs.h >>conftest.$ac_ext
3630136644Sachecat >>conftest.$ac_ext <<_ACEOF
3631136644Sache/* end confdefs.h.  */
3632119610Sache$ac_includes_default
3633119610Sacheint
3634119610Sachemain ()
3635119610Sache{
3636119610Sacheif ((size_t *) 0)
3637119610Sache  return 0;
3638119610Sacheif (sizeof (size_t))
3639119610Sache  return 0;
3640119610Sache  ;
3641119610Sache  return 0;
3642119610Sache}
3643119610Sache_ACEOF
3644119610Sacherm -f conftest.$ac_objext
3645136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646157184Sache  (eval $ac_compile) 2>conftest.er1
3647119610Sache  ac_status=$?
3648157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
3649157184Sache  rm -f conftest.er1
3650157184Sache  cat conftest.err >&5
3651136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652119610Sache  (exit $ac_status); } &&
3653157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
3654157184Sache			 || test ! -s conftest.err'
3655136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656119610Sache  (eval $ac_try) 2>&5
3657119610Sache  ac_status=$?
3658136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659157184Sache  (exit $ac_status); }; } &&
3660157184Sache	 { ac_try='test -s conftest.$ac_objext'
3661157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662157184Sache  (eval $ac_try) 2>&5
3663157184Sache  ac_status=$?
3664157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665119610Sache  (exit $ac_status); }; }; then
3666119610Sache  ac_cv_type_size_t=yes
3667119610Sacheelse
3668119610Sache  echo "$as_me: failed program was:" >&5
3669136644Sachesed 's/^/| /' conftest.$ac_ext >&5
3670136644Sache
3671119610Sacheac_cv_type_size_t=no
3672119610Sachefi
3673157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3674119610Sachefi
3675136644Sacheecho "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3676119610Sacheecho "${ECHO_T}$ac_cv_type_size_t" >&6
3677119610Sacheif test $ac_cv_type_size_t = yes; then
3678119610Sache  :
3679119610Sacheelse
368026497Sache
3681136644Sachecat >>confdefs.h <<_ACEOF
3682119610Sache#define size_t unsigned
3683136644Sache_ACEOF
368426497Sache
3685119610Sachefi
3686119610Sache
3687136644Sacheecho "$as_me:$LINENO: checking for ssize_t" >&5
3688119610Sacheecho $ECHO_N "checking for ssize_t... $ECHO_C" >&6
3689119610Sacheif test "${ac_cv_type_ssize_t+set}" = set; then
3690119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
369126497Sacheelse
3692119610Sache  cat >conftest.$ac_ext <<_ACEOF
3693136644Sache/* confdefs.h.  */
3694136644Sache_ACEOF
3695136644Sachecat confdefs.h >>conftest.$ac_ext
3696136644Sachecat >>conftest.$ac_ext <<_ACEOF
3697136644Sache/* end confdefs.h.  */
3698119610Sache$ac_includes_default
3699119610Sacheint
3700119610Sachemain ()
3701119610Sache{
3702119610Sacheif ((ssize_t *) 0)
3703119610Sache  return 0;
3704119610Sacheif (sizeof (ssize_t))
3705119610Sache  return 0;
3706119610Sache  ;
3707119610Sache  return 0;
3708119610Sache}
3709119610Sache_ACEOF
3710119610Sacherm -f conftest.$ac_objext
3711136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712157184Sache  (eval $ac_compile) 2>conftest.er1
3713119610Sache  ac_status=$?
3714157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
3715157184Sache  rm -f conftest.er1
3716157184Sache  cat conftest.err >&5
3717136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718119610Sache  (exit $ac_status); } &&
3719157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
3720157184Sache			 || test ! -s conftest.err'
3721136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722119610Sache  (eval $ac_try) 2>&5
3723119610Sache  ac_status=$?
3724136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725157184Sache  (exit $ac_status); }; } &&
3726157184Sache	 { ac_try='test -s conftest.$ac_objext'
3727157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728157184Sache  (eval $ac_try) 2>&5
3729157184Sache  ac_status=$?
3730157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731119610Sache  (exit $ac_status); }; }; then
3732119610Sache  ac_cv_type_ssize_t=yes
3733119610Sacheelse
3734119610Sache  echo "$as_me: failed program was:" >&5
3735136644Sachesed 's/^/| /' conftest.$ac_ext >&5
3736136644Sache
3737119610Sacheac_cv_type_ssize_t=no
3738119610Sachefi
3739157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3740119610Sachefi
3741136644Sacheecho "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
3742119610Sacheecho "${ECHO_T}$ac_cv_type_ssize_t" >&6
3743119610Sacheif test $ac_cv_type_ssize_t = yes; then
3744119610Sache  :
3745119610Sacheelse
3746119610Sache
3747136644Sachecat >>confdefs.h <<_ACEOF
3748119610Sache#define ssize_t int
3749136644Sache_ACEOF
3750119610Sache
3751119610Sachefi
3752119610Sache
3753136644Sache
3754136644Sacheecho "$as_me:$LINENO: checking for ANSI C header files" >&5
3755136644Sacheecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3756136644Sacheif test "${ac_cv_header_stdc+set}" = set; then
3757136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
3758136644Sacheelse
3759136644Sache  cat >conftest.$ac_ext <<_ACEOF
3760136644Sache/* confdefs.h.  */
3761136644Sache_ACEOF
3762136644Sachecat confdefs.h >>conftest.$ac_ext
3763136644Sachecat >>conftest.$ac_ext <<_ACEOF
3764136644Sache/* end confdefs.h.  */
3765136644Sache#include <stdlib.h>
3766136644Sache#include <stdarg.h>
3767136644Sache#include <string.h>
3768136644Sache#include <float.h>
3769136644Sache
3770136644Sacheint
3771136644Sachemain ()
3772136644Sache{
3773136644Sache
3774136644Sache  ;
3775136644Sache  return 0;
3776136644Sache}
3777136644Sache_ACEOF
3778136644Sacherm -f conftest.$ac_objext
3779136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3780157184Sache  (eval $ac_compile) 2>conftest.er1
3781136644Sache  ac_status=$?
3782157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
3783157184Sache  rm -f conftest.er1
3784157184Sache  cat conftest.err >&5
3785136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786136644Sache  (exit $ac_status); } &&
3787157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
3788157184Sache			 || test ! -s conftest.err'
3789136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790136644Sache  (eval $ac_try) 2>&5
3791136644Sache  ac_status=$?
3792136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793157184Sache  (exit $ac_status); }; } &&
3794157184Sache	 { ac_try='test -s conftest.$ac_objext'
3795157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796157184Sache  (eval $ac_try) 2>&5
3797157184Sache  ac_status=$?
3798157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799136644Sache  (exit $ac_status); }; }; then
3800136644Sache  ac_cv_header_stdc=yes
3801136644Sacheelse
3802136644Sache  echo "$as_me: failed program was:" >&5
3803136644Sachesed 's/^/| /' conftest.$ac_ext >&5
3804136644Sache
3805136644Sacheac_cv_header_stdc=no
3806136644Sachefi
3807157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3808136644Sache
3809136644Sacheif test $ac_cv_header_stdc = yes; then
3810136644Sache  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3811136644Sache  cat >conftest.$ac_ext <<_ACEOF
3812136644Sache/* confdefs.h.  */
3813136644Sache_ACEOF
3814136644Sachecat confdefs.h >>conftest.$ac_ext
3815136644Sachecat >>conftest.$ac_ext <<_ACEOF
3816136644Sache/* end confdefs.h.  */
3817136644Sache#include <string.h>
3818136644Sache
3819136644Sache_ACEOF
3820136644Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3821136644Sache  $EGREP "memchr" >/dev/null 2>&1; then
3822136644Sache  :
3823136644Sacheelse
3824136644Sache  ac_cv_header_stdc=no
3825136644Sachefi
3826136644Sacherm -f conftest*
3827136644Sache
3828136644Sachefi
3829136644Sache
3830136644Sacheif test $ac_cv_header_stdc = yes; then
3831136644Sache  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3832136644Sache  cat >conftest.$ac_ext <<_ACEOF
3833136644Sache/* confdefs.h.  */
3834136644Sache_ACEOF
3835136644Sachecat confdefs.h >>conftest.$ac_ext
3836136644Sachecat >>conftest.$ac_ext <<_ACEOF
3837136644Sache/* end confdefs.h.  */
3838136644Sache#include <stdlib.h>
3839136644Sache
3840136644Sache_ACEOF
3841136644Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3842136644Sache  $EGREP "free" >/dev/null 2>&1; then
3843136644Sache  :
3844136644Sacheelse
3845136644Sache  ac_cv_header_stdc=no
3846136644Sachefi
3847136644Sacherm -f conftest*
3848136644Sache
3849136644Sachefi
3850136644Sache
3851136644Sacheif test $ac_cv_header_stdc = yes; then
3852136644Sache  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3853136644Sache  if test "$cross_compiling" = yes; then
3854136644Sache  :
3855136644Sacheelse
3856136644Sache  cat >conftest.$ac_ext <<_ACEOF
3857136644Sache/* confdefs.h.  */
3858136644Sache_ACEOF
3859136644Sachecat confdefs.h >>conftest.$ac_ext
3860136644Sachecat >>conftest.$ac_ext <<_ACEOF
3861136644Sache/* end confdefs.h.  */
3862136644Sache#include <ctype.h>
3863136644Sache#if ((' ' & 0x0FF) == 0x020)
3864136644Sache# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3865136644Sache# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3866136644Sache#else
3867136644Sache# define ISLOWER(c) \
3868157184Sache		   (('a' <= (c) && (c) <= 'i') \
3869157184Sache		     || ('j' <= (c) && (c) <= 'r') \
3870157184Sache		     || ('s' <= (c) && (c) <= 'z'))
3871136644Sache# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3872136644Sache#endif
3873136644Sache
3874136644Sache#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3875136644Sacheint
3876136644Sachemain ()
3877136644Sache{
3878136644Sache  int i;
3879136644Sache  for (i = 0; i < 256; i++)
3880136644Sache    if (XOR (islower (i), ISLOWER (i))
3881157184Sache	|| toupper (i) != TOUPPER (i))
3882136644Sache      exit(2);
3883136644Sache  exit (0);
3884136644Sache}
3885136644Sache_ACEOF
3886136644Sacherm -f conftest$ac_exeext
3887136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3888136644Sache  (eval $ac_link) 2>&5
3889136644Sache  ac_status=$?
3890136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891136644Sache  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3892136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893136644Sache  (eval $ac_try) 2>&5
3894136644Sache  ac_status=$?
3895136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896136644Sache  (exit $ac_status); }; }; then
3897136644Sache  :
3898136644Sacheelse
3899136644Sache  echo "$as_me: program exited with status $ac_status" >&5
3900136644Sacheecho "$as_me: failed program was:" >&5
3901136644Sachesed 's/^/| /' conftest.$ac_ext >&5
3902136644Sache
3903136644Sache( exit $ac_status )
3904136644Sacheac_cv_header_stdc=no
3905136644Sachefi
3906157184Sacherm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3907136644Sachefi
3908136644Sachefi
3909136644Sachefi
3910136644Sacheecho "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3911136644Sacheecho "${ECHO_T}$ac_cv_header_stdc" >&6
3912136644Sacheif test $ac_cv_header_stdc = yes; then
3913136644Sache
3914136644Sachecat >>confdefs.h <<\_ACEOF
3915136644Sache#define STDC_HEADERS 1
3916136644Sache_ACEOF
3917136644Sache
3918136644Sachefi
3919136644Sache
3920136644Sache
3921136644Sacheecho "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
3922119610Sacheecho $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3923119610Sacheif test "${ac_cv_header_stat_broken+set}" = set; then
3924119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
3925119610Sacheelse
3926119610Sache  cat >conftest.$ac_ext <<_ACEOF
3927136644Sache/* confdefs.h.  */
3928136644Sache_ACEOF
3929136644Sachecat confdefs.h >>conftest.$ac_ext
3930136644Sachecat >>conftest.$ac_ext <<_ACEOF
3931136644Sache/* end confdefs.h.  */
393226497Sache#include <sys/types.h>
393326497Sache#include <sys/stat.h>
393426497Sache
393526497Sache#if defined(S_ISBLK) && defined(S_IFDIR)
393626497Sache# if S_ISBLK (S_IFDIR)
393726497SacheYou lose.
393826497Sache# endif
393926497Sache#endif
394026497Sache
394126497Sache#if defined(S_ISBLK) && defined(S_IFCHR)
394226497Sache# if S_ISBLK (S_IFCHR)
394326497SacheYou lose.
394426497Sache# endif
394526497Sache#endif
394626497Sache
394726497Sache#if defined(S_ISLNK) && defined(S_IFREG)
394826497Sache# if S_ISLNK (S_IFREG)
394926497SacheYou lose.
395026497Sache# endif
395126497Sache#endif
395226497Sache
395326497Sache#if defined(S_ISSOCK) && defined(S_IFREG)
395426497Sache# if S_ISSOCK (S_IFREG)
395526497SacheYou lose.
395626497Sache# endif
395726497Sache#endif
395826497Sache
3959119610Sache_ACEOF
396026497Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3961136644Sache  $EGREP "You lose" >/dev/null 2>&1; then
396226497Sache  ac_cv_header_stat_broken=yes
396326497Sacheelse
396426497Sache  ac_cv_header_stat_broken=no
396526497Sachefi
396626497Sacherm -f conftest*
396726497Sache
396826497Sachefi
3969136644Sacheecho "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
3970119610Sacheecho "${ECHO_T}$ac_cv_header_stat_broken" >&6
3971119610Sacheif test $ac_cv_header_stat_broken = yes; then
397226497Sache
3973136644Sachecat >>confdefs.h <<\_ACEOF
397426497Sache#define STAT_MACROS_BROKEN 1
3975136644Sache_ACEOF
397626497Sache
397726497Sachefi
397826497Sache
3979136644Sache
3980136644Sache
3981136644Sache
3982136644Sache
3983136644Sache
398426497Sacheac_header_dirent=no
3985119610Sachefor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3986119610Sache  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3987136644Sacheecho "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3988119610Sacheecho $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3989119610Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
3990119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
399126497Sacheelse
3992119610Sache  cat >conftest.$ac_ext <<_ACEOF
3993136644Sache/* confdefs.h.  */
3994136644Sache_ACEOF
3995136644Sachecat confdefs.h >>conftest.$ac_ext
3996136644Sachecat >>conftest.$ac_ext <<_ACEOF
3997136644Sache/* end confdefs.h.  */
399826497Sache#include <sys/types.h>
399926497Sache#include <$ac_hdr>
4000119610Sache
4001119610Sacheint
4002119610Sachemain ()
4003119610Sache{
4004119610Sacheif ((DIR *) 0)
4005119610Sachereturn 0;
4006119610Sache  ;
4007119610Sache  return 0;
4008119610Sache}
4009119610Sache_ACEOF
4010119610Sacherm -f conftest.$ac_objext
4011136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4012157184Sache  (eval $ac_compile) 2>conftest.er1
4013119610Sache  ac_status=$?
4014157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
4015157184Sache  rm -f conftest.er1
4016157184Sache  cat conftest.err >&5
4017136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018119610Sache  (exit $ac_status); } &&
4019157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
4020157184Sache			 || test ! -s conftest.err'
4021136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022119610Sache  (eval $ac_try) 2>&5
4023119610Sache  ac_status=$?
4024136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025157184Sache  (exit $ac_status); }; } &&
4026157184Sache	 { ac_try='test -s conftest.$ac_objext'
4027157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028157184Sache  (eval $ac_try) 2>&5
4029157184Sache  ac_status=$?
4030157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031119610Sache  (exit $ac_status); }; }; then
4032119610Sache  eval "$as_ac_Header=yes"
403326497Sacheelse
4034119610Sache  echo "$as_me: failed program was:" >&5
4035136644Sachesed 's/^/| /' conftest.$ac_ext >&5
4036136644Sache
4037119610Sacheeval "$as_ac_Header=no"
403826497Sachefi
4039157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
404026497Sachefi
4041136644Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4042119610Sacheecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4043119610Sacheif test `eval echo '${'$as_ac_Header'}'` = yes; then
4044136644Sache  cat >>confdefs.h <<_ACEOF
4045119610Sache#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4046136644Sache_ACEOF
4047119610Sache
4048119610Sacheac_header_dirent=$ac_hdr; break
404926497Sachefi
4050119610Sache
405126497Sachedone
405226497Sache# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
405326497Sacheif test $ac_header_dirent = dirent.h; then
4054136644Sache  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4055136644Sacheecho $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4056136644Sacheif test "${ac_cv_search_opendir+set}" = set; then
4057119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
405826497Sacheelse
4059136644Sache  ac_func_search_save_LIBS=$LIBS
4060136644Sacheac_cv_search_opendir=no
4061119610Sachecat >conftest.$ac_ext <<_ACEOF
4062136644Sache/* confdefs.h.  */
4063136644Sache_ACEOF
4064136644Sachecat confdefs.h >>conftest.$ac_ext
4065136644Sachecat >>conftest.$ac_ext <<_ACEOF
4066136644Sache/* end confdefs.h.  */
4067119610Sache
406826497Sache/* Override any gcc2 internal prototype to avoid an error.  */
4069119610Sache#ifdef __cplusplus
4070119610Sacheextern "C"
4071119610Sache#endif
407226497Sache/* We use char because int might match the return type of a gcc2
4073119610Sache   builtin and then its argument prototype would still apply.  */
4074119610Sachechar opendir ();
4075119610Sacheint
4076119610Sachemain ()
4077119610Sache{
4078119610Sacheopendir ();
4079119610Sache  ;
4080119610Sache  return 0;
4081119610Sache}
4082119610Sache_ACEOF
4083119610Sacherm -f conftest.$ac_objext conftest$ac_exeext
4084136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4085157184Sache  (eval $ac_link) 2>conftest.er1
4086119610Sache  ac_status=$?
4087157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
4088157184Sache  rm -f conftest.er1
4089157184Sache  cat conftest.err >&5
4090136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091119610Sache  (exit $ac_status); } &&
4092157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
4093157184Sache			 || test ! -s conftest.err'
4094136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095119610Sache  (eval $ac_try) 2>&5
4096119610Sache  ac_status=$?
4097136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098157184Sache  (exit $ac_status); }; } &&
4099157184Sache	 { ac_try='test -s conftest$ac_exeext'
4100157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101157184Sache  (eval $ac_try) 2>&5
4102157184Sache  ac_status=$?
4103157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104119610Sache  (exit $ac_status); }; }; then
4105136644Sache  ac_cv_search_opendir="none required"
410626497Sacheelse
4107119610Sache  echo "$as_me: failed program was:" >&5
4108136644Sachesed 's/^/| /' conftest.$ac_ext >&5
4109136644Sache
411026497Sachefi
4111157184Sacherm -f conftest.err conftest.$ac_objext \
4112157184Sache      conftest$ac_exeext conftest.$ac_ext
4113136644Sacheif test "$ac_cv_search_opendir" = no; then
4114136644Sache  for ac_lib in dir; do
4115136644Sache    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4116136644Sache    cat >conftest.$ac_ext <<_ACEOF
4117136644Sache/* confdefs.h.  */
4118136644Sache_ACEOF
4119136644Sachecat confdefs.h >>conftest.$ac_ext
4120136644Sachecat >>conftest.$ac_ext <<_ACEOF
4121136644Sache/* end confdefs.h.  */
4122136644Sache
4123136644Sache/* Override any gcc2 internal prototype to avoid an error.  */
4124136644Sache#ifdef __cplusplus
4125136644Sacheextern "C"
4126136644Sache#endif
4127136644Sache/* We use char because int might match the return type of a gcc2
4128136644Sache   builtin and then its argument prototype would still apply.  */
4129136644Sachechar opendir ();
4130136644Sacheint
4131136644Sachemain ()
4132136644Sache{
4133136644Sacheopendir ();
4134136644Sache  ;
4135136644Sache  return 0;
4136136644Sache}
4137136644Sache_ACEOF
4138136644Sacherm -f conftest.$ac_objext conftest$ac_exeext
4139136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4140157184Sache  (eval $ac_link) 2>conftest.er1
4141136644Sache  ac_status=$?
4142157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
4143157184Sache  rm -f conftest.er1
4144157184Sache  cat conftest.err >&5
4145136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146136644Sache  (exit $ac_status); } &&
4147157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
4148157184Sache			 || test ! -s conftest.err'
4149136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150136644Sache  (eval $ac_try) 2>&5
4151136644Sache  ac_status=$?
4152136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153157184Sache  (exit $ac_status); }; } &&
4154157184Sache	 { ac_try='test -s conftest$ac_exeext'
4155157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156157184Sache  (eval $ac_try) 2>&5
4157157184Sache  ac_status=$?
4158157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159136644Sache  (exit $ac_status); }; }; then
4160136644Sache  ac_cv_search_opendir="-l$ac_lib"
4161136644Sachebreak
4162136644Sacheelse
4163136644Sache  echo "$as_me: failed program was:" >&5
4164136644Sachesed 's/^/| /' conftest.$ac_ext >&5
4165136644Sache
416626497Sachefi
4167157184Sacherm -f conftest.err conftest.$ac_objext \
4168157184Sache      conftest$ac_exeext conftest.$ac_ext
4169136644Sache  done
417026497Sachefi
4171136644SacheLIBS=$ac_func_search_save_LIBS
4172136644Sachefi
4173136644Sacheecho "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4174136644Sacheecho "${ECHO_T}$ac_cv_search_opendir" >&6
4175136644Sacheif test "$ac_cv_search_opendir" != no; then
4176136644Sache  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
417726497Sache
4178136644Sachefi
4179136644Sache
418026497Sacheelse
4181136644Sache  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4182136644Sacheecho $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4183136644Sacheif test "${ac_cv_search_opendir+set}" = set; then
4184119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
418526497Sacheelse
4186136644Sache  ac_func_search_save_LIBS=$LIBS
4187136644Sacheac_cv_search_opendir=no
4188119610Sachecat >conftest.$ac_ext <<_ACEOF
4189136644Sache/* confdefs.h.  */
4190136644Sache_ACEOF
4191136644Sachecat confdefs.h >>conftest.$ac_ext
4192136644Sachecat >>conftest.$ac_ext <<_ACEOF
4193136644Sache/* end confdefs.h.  */
4194119610Sache
419526497Sache/* Override any gcc2 internal prototype to avoid an error.  */
4196119610Sache#ifdef __cplusplus
4197119610Sacheextern "C"
4198119610Sache#endif
419926497Sache/* We use char because int might match the return type of a gcc2
4200119610Sache   builtin and then its argument prototype would still apply.  */
4201119610Sachechar opendir ();
4202119610Sacheint
4203119610Sachemain ()
4204119610Sache{
4205119610Sacheopendir ();
4206119610Sache  ;
4207119610Sache  return 0;
4208119610Sache}
4209119610Sache_ACEOF
4210119610Sacherm -f conftest.$ac_objext conftest$ac_exeext
4211136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212157184Sache  (eval $ac_link) 2>conftest.er1
4213119610Sache  ac_status=$?
4214157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
4215157184Sache  rm -f conftest.er1
4216157184Sache  cat conftest.err >&5
4217136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218119610Sache  (exit $ac_status); } &&
4219157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
4220157184Sache			 || test ! -s conftest.err'
4221136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222119610Sache  (eval $ac_try) 2>&5
4223119610Sache  ac_status=$?
4224136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225157184Sache  (exit $ac_status); }; } &&
4226157184Sache	 { ac_try='test -s conftest$ac_exeext'
4227157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228157184Sache  (eval $ac_try) 2>&5
4229157184Sache  ac_status=$?
4230157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231119610Sache  (exit $ac_status); }; }; then
4232136644Sache  ac_cv_search_opendir="none required"
423326497Sacheelse
4234119610Sache  echo "$as_me: failed program was:" >&5
4235136644Sachesed 's/^/| /' conftest.$ac_ext >&5
4236136644Sache
423726497Sachefi
4238157184Sacherm -f conftest.err conftest.$ac_objext \
4239157184Sache      conftest$ac_exeext conftest.$ac_ext
4240136644Sacheif test "$ac_cv_search_opendir" = no; then
4241136644Sache  for ac_lib in x; do
4242136644Sache    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4243136644Sache    cat >conftest.$ac_ext <<_ACEOF
4244136644Sache/* confdefs.h.  */
4245136644Sache_ACEOF
4246136644Sachecat confdefs.h >>conftest.$ac_ext
4247136644Sachecat >>conftest.$ac_ext <<_ACEOF
4248136644Sache/* end confdefs.h.  */
4249136644Sache
4250136644Sache/* Override any gcc2 internal prototype to avoid an error.  */
4251136644Sache#ifdef __cplusplus
4252136644Sacheextern "C"
4253136644Sache#endif
4254136644Sache/* We use char because int might match the return type of a gcc2
4255136644Sache   builtin and then its argument prototype would still apply.  */
4256136644Sachechar opendir ();
4257136644Sacheint
4258136644Sachemain ()
4259136644Sache{
4260136644Sacheopendir ();
4261136644Sache  ;
4262136644Sache  return 0;
4263136644Sache}
4264136644Sache_ACEOF
4265136644Sacherm -f conftest.$ac_objext conftest$ac_exeext
4266136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267157184Sache  (eval $ac_link) 2>conftest.er1
4268136644Sache  ac_status=$?
4269157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
4270157184Sache  rm -f conftest.er1
4271157184Sache  cat conftest.err >&5
4272136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273136644Sache  (exit $ac_status); } &&
4274157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
4275157184Sache			 || test ! -s conftest.err'
4276136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277136644Sache  (eval $ac_try) 2>&5
4278136644Sache  ac_status=$?
4279136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280157184Sache  (exit $ac_status); }; } &&
4281157184Sache	 { ac_try='test -s conftest$ac_exeext'
4282157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283157184Sache  (eval $ac_try) 2>&5
4284157184Sache  ac_status=$?
4285157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286136644Sache  (exit $ac_status); }; }; then
4287136644Sache  ac_cv_search_opendir="-l$ac_lib"
4288136644Sachebreak
4289136644Sacheelse
4290136644Sache  echo "$as_me: failed program was:" >&5
4291136644Sachesed 's/^/| /' conftest.$ac_ext >&5
4292136644Sache
429326497Sachefi
4294157184Sacherm -f conftest.err conftest.$ac_objext \
4295157184Sache      conftest$ac_exeext conftest.$ac_ext
4296136644Sache  done
429726497Sachefi
4298136644SacheLIBS=$ac_func_search_save_LIBS
4299136644Sachefi
4300136644Sacheecho "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4301136644Sacheecho "${ECHO_T}$ac_cv_search_opendir" >&6
4302136644Sacheif test "$ac_cv_search_opendir" != no; then
4303136644Sache  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
430426497Sache
430526497Sachefi
430626497Sache
4307136644Sachefi
4308136644Sache
4309136644Sache
4310136644Sache
4311136644Sache
4312136644Sache
4313157184Sachefor ac_func in fcntl kill lstat
4314157184Sachedo
4315157184Sacheas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4316157184Sacheecho "$as_me:$LINENO: checking for $ac_func" >&5
4317157184Sacheecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4318157184Sacheif eval "test \"\${$as_ac_var+set}\" = set"; then
4319157184Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
4320157184Sacheelse
4321157184Sache  cat >conftest.$ac_ext <<_ACEOF
4322157184Sache/* confdefs.h.  */
4323157184Sache_ACEOF
4324157184Sachecat confdefs.h >>conftest.$ac_ext
4325157184Sachecat >>conftest.$ac_ext <<_ACEOF
4326157184Sache/* end confdefs.h.  */
4327157184Sache/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4328157184Sache   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4329157184Sache#define $ac_func innocuous_$ac_func
4330136644Sache
4331157184Sache/* System header to define __stub macros and hopefully few prototypes,
4332157184Sache    which can conflict with char $ac_func (); below.
4333157184Sache    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4334157184Sache    <limits.h> exists even on freestanding compilers.  */
4335136644Sache
4336157184Sache#ifdef __STDC__
4337157184Sache# include <limits.h>
4338157184Sache#else
4339157184Sache# include <assert.h>
4340157184Sache#endif
4341136644Sache
4342157184Sache#undef $ac_func
4343136644Sache
4344157184Sache/* Override any gcc2 internal prototype to avoid an error.  */
4345157184Sache#ifdef __cplusplus
4346157184Sacheextern "C"
4347157184Sache{
4348157184Sache#endif
4349157184Sache/* We use char because int might match the return type of a gcc2
4350157184Sache   builtin and then its argument prototype would still apply.  */
4351157184Sachechar $ac_func ();
4352157184Sache/* The GNU C library defines this for functions which it implements
4353157184Sache    to always fail with ENOSYS.  Some functions are actually named
4354157184Sache    something starting with __ and the normal name is an alias.  */
4355157184Sache#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4356157184Sachechoke me
4357157184Sache#else
4358157184Sachechar (*f) () = $ac_func;
4359157184Sache#endif
4360157184Sache#ifdef __cplusplus
4361157184Sache}
4362157184Sache#endif
4363136644Sache
4364157184Sacheint
4365157184Sachemain ()
4366157184Sache{
4367157184Sachereturn f != $ac_func;
4368157184Sache  ;
4369157184Sache  return 0;
4370157184Sache}
4371157184Sache_ACEOF
4372157184Sacherm -f conftest.$ac_objext conftest$ac_exeext
4373157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374157184Sache  (eval $ac_link) 2>conftest.er1
4375157184Sache  ac_status=$?
4376157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
4377157184Sache  rm -f conftest.er1
4378157184Sache  cat conftest.err >&5
4379157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380157184Sache  (exit $ac_status); } &&
4381157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
4382157184Sache			 || test ! -s conftest.err'
4383157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384157184Sache  (eval $ac_try) 2>&5
4385157184Sache  ac_status=$?
4386157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387157184Sache  (exit $ac_status); }; } &&
4388157184Sache	 { ac_try='test -s conftest$ac_exeext'
4389157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390157184Sache  (eval $ac_try) 2>&5
4391157184Sache  ac_status=$?
4392157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393157184Sache  (exit $ac_status); }; }; then
4394157184Sache  eval "$as_ac_var=yes"
4395157184Sacheelse
4396157184Sache  echo "$as_me: failed program was:" >&5
4397157184Sachesed 's/^/| /' conftest.$ac_ext >&5
4398136644Sache
4399157184Sacheeval "$as_ac_var=no"
4400157184Sachefi
4401157184Sacherm -f conftest.err conftest.$ac_objext \
4402157184Sache      conftest$ac_exeext conftest.$ac_ext
4403157184Sachefi
4404157184Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4405157184Sacheecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4406157184Sacheif test `eval echo '${'$as_ac_var'}'` = yes; then
4407157184Sache  cat >>confdefs.h <<_ACEOF
4408157184Sache#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4409157184Sache_ACEOF
4410136644Sache
4411157184Sachefi
4412157184Sachedone
4413136644Sache
4414136644Sache
4415157184Sache
4416157184Sache
4417157184Sache
4418157184Sache
4419157184Sache
4420157184Sache
4421157184Sache
4422157184Sache
4423157184Sachefor ac_func in memmove putenv select setenv setlocale \
4424157184Sache		strcasecmp strpbrk tcgetattr vsnprintf
442526497Sachedo
4426119610Sacheas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4427136644Sacheecho "$as_me:$LINENO: checking for $ac_func" >&5
4428119610Sacheecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4429119610Sacheif eval "test \"\${$as_ac_var+set}\" = set"; then
4430119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
443126497Sacheelse
4432119610Sache  cat >conftest.$ac_ext <<_ACEOF
4433136644Sache/* confdefs.h.  */
4434136644Sache_ACEOF
4435136644Sachecat confdefs.h >>conftest.$ac_ext
4436136644Sachecat >>conftest.$ac_ext <<_ACEOF
4437136644Sache/* end confdefs.h.  */
4438157184Sache/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4439157184Sache   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4440157184Sache#define $ac_func innocuous_$ac_func
4441157184Sache
444226497Sache/* System header to define __stub macros and hopefully few prototypes,
4443136644Sache    which can conflict with char $ac_func (); below.
4444136644Sache    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445136644Sache    <limits.h> exists even on freestanding compilers.  */
4446157184Sache
4447136644Sache#ifdef __STDC__
4448136644Sache# include <limits.h>
4449136644Sache#else
4450136644Sache# include <assert.h>
4451136644Sache#endif
4452157184Sache
4453157184Sache#undef $ac_func
4454157184Sache
445526497Sache/* Override any gcc2 internal prototype to avoid an error.  */
4456119610Sache#ifdef __cplusplus
4457119610Sacheextern "C"
4458136644Sache{
4459119610Sache#endif
446026497Sache/* We use char because int might match the return type of a gcc2
4461119610Sache   builtin and then its argument prototype would still apply.  */
4462119610Sachechar $ac_func ();
446326497Sache/* The GNU C library defines this for functions which it implements
446426497Sache    to always fail with ENOSYS.  Some functions are actually named
446526497Sache    something starting with __ and the normal name is an alias.  */
446626497Sache#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
446726497Sachechoke me
446826497Sache#else
4469136644Sachechar (*f) () = $ac_func;
447026497Sache#endif
4471136644Sache#ifdef __cplusplus
4472136644Sache}
4473136644Sache#endif
447426497Sache
4475136644Sacheint
4476136644Sachemain ()
4477136644Sache{
4478136644Sachereturn f != $ac_func;
4479119610Sache  ;
4480119610Sache  return 0;
4481119610Sache}
4482119610Sache_ACEOF
4483119610Sacherm -f conftest.$ac_objext conftest$ac_exeext
4484136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4485157184Sache  (eval $ac_link) 2>conftest.er1
4486119610Sache  ac_status=$?
4487157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
4488157184Sache  rm -f conftest.er1
4489157184Sache  cat conftest.err >&5
4490136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491119610Sache  (exit $ac_status); } &&
4492157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
4493157184Sache			 || test ! -s conftest.err'
4494136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495119610Sache  (eval $ac_try) 2>&5
4496119610Sache  ac_status=$?
4497136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498157184Sache  (exit $ac_status); }; } &&
4499157184Sache	 { ac_try='test -s conftest$ac_exeext'
4500157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501157184Sache  (eval $ac_try) 2>&5
4502157184Sache  ac_status=$?
4503157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504119610Sache  (exit $ac_status); }; }; then
4505119610Sache  eval "$as_ac_var=yes"
450626497Sacheelse
4507119610Sache  echo "$as_me: failed program was:" >&5
4508136644Sachesed 's/^/| /' conftest.$ac_ext >&5
4509136644Sache
4510119610Sacheeval "$as_ac_var=no"
451126497Sachefi
4512157184Sacherm -f conftest.err conftest.$ac_objext \
4513157184Sache      conftest$ac_exeext conftest.$ac_ext
451426497Sachefi
4515136644Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4516119610Sacheecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4517119610Sacheif test `eval echo '${'$as_ac_var'}'` = yes; then
4518136644Sache  cat >>confdefs.h <<_ACEOF
4519119610Sache#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4520136644Sache_ACEOF
452126497Sache
452226497Sachefi
452326497Sachedone
452426497Sache
4525136644Sache
4526157184Sache
4527157184Sachefor ac_func in isascii isxdigit
4528157184Sachedo
4529157184Sacheas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4530157184Sacheecho "$as_me:$LINENO: checking for $ac_func" >&5
4531157184Sacheecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4532157184Sacheif eval "test \"\${$as_ac_var+set}\" = set"; then
4533157184Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
4534157184Sacheelse
4535157184Sache  cat >conftest.$ac_ext <<_ACEOF
4536157184Sache/* confdefs.h.  */
4537157184Sache_ACEOF
4538157184Sachecat confdefs.h >>conftest.$ac_ext
4539157184Sachecat >>conftest.$ac_ext <<_ACEOF
4540157184Sache/* end confdefs.h.  */
4541157184Sache/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4542157184Sache   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4543157184Sache#define $ac_func innocuous_$ac_func
4544157184Sache
4545157184Sache/* System header to define __stub macros and hopefully few prototypes,
4546157184Sache    which can conflict with char $ac_func (); below.
4547157184Sache    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4548157184Sache    <limits.h> exists even on freestanding compilers.  */
4549157184Sache
4550157184Sache#ifdef __STDC__
4551157184Sache# include <limits.h>
4552157184Sache#else
4553157184Sache# include <assert.h>
4554157184Sache#endif
4555157184Sache
4556157184Sache#undef $ac_func
4557157184Sache
4558157184Sache/* Override any gcc2 internal prototype to avoid an error.  */
4559157184Sache#ifdef __cplusplus
4560157184Sacheextern "C"
4561157184Sache{
4562157184Sache#endif
4563157184Sache/* We use char because int might match the return type of a gcc2
4564157184Sache   builtin and then its argument prototype would still apply.  */
4565157184Sachechar $ac_func ();
4566157184Sache/* The GNU C library defines this for functions which it implements
4567157184Sache    to always fail with ENOSYS.  Some functions are actually named
4568157184Sache    something starting with __ and the normal name is an alias.  */
4569157184Sache#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4570157184Sachechoke me
4571157184Sache#else
4572157184Sachechar (*f) () = $ac_func;
4573157184Sache#endif
4574157184Sache#ifdef __cplusplus
4575157184Sache}
4576157184Sache#endif
4577157184Sache
4578157184Sacheint
4579157184Sachemain ()
4580157184Sache{
4581157184Sachereturn f != $ac_func;
4582157184Sache  ;
4583157184Sache  return 0;
4584157184Sache}
4585157184Sache_ACEOF
4586157184Sacherm -f conftest.$ac_objext conftest$ac_exeext
4587157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4588157184Sache  (eval $ac_link) 2>conftest.er1
4589157184Sache  ac_status=$?
4590157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
4591157184Sache  rm -f conftest.er1
4592157184Sache  cat conftest.err >&5
4593157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594157184Sache  (exit $ac_status); } &&
4595157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
4596157184Sache			 || test ! -s conftest.err'
4597157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598157184Sache  (eval $ac_try) 2>&5
4599157184Sache  ac_status=$?
4600157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601157184Sache  (exit $ac_status); }; } &&
4602157184Sache	 { ac_try='test -s conftest$ac_exeext'
4603157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604157184Sache  (eval $ac_try) 2>&5
4605157184Sache  ac_status=$?
4606157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607157184Sache  (exit $ac_status); }; }; then
4608157184Sache  eval "$as_ac_var=yes"
4609157184Sacheelse
4610157184Sache  echo "$as_me: failed program was:" >&5
4611157184Sachesed 's/^/| /' conftest.$ac_ext >&5
4612157184Sache
4613157184Sacheeval "$as_ac_var=no"
4614157184Sachefi
4615157184Sacherm -f conftest.err conftest.$ac_objext \
4616157184Sache      conftest$ac_exeext conftest.$ac_ext
4617157184Sachefi
4618157184Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4619157184Sacheecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4620157184Sacheif test `eval echo '${'$as_ac_var'}'` = yes; then
4621157184Sache  cat >>confdefs.h <<_ACEOF
4622157184Sache#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4623157184Sache_ACEOF
4624157184Sache
4625157184Sachefi
4626157184Sachedone
4627157184Sache
4628157184Sache
4629157184Sache
4630157184Sache
4631157184Sachefor ac_func in getpwent getpwnam getpwuid
4632157184Sachedo
4633157184Sacheas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4634157184Sacheecho "$as_me:$LINENO: checking for $ac_func" >&5
4635157184Sacheecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4636157184Sacheif eval "test \"\${$as_ac_var+set}\" = set"; then
4637157184Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
4638157184Sacheelse
4639157184Sache  cat >conftest.$ac_ext <<_ACEOF
4640157184Sache/* confdefs.h.  */
4641157184Sache_ACEOF
4642157184Sachecat confdefs.h >>conftest.$ac_ext
4643157184Sachecat >>conftest.$ac_ext <<_ACEOF
4644157184Sache/* end confdefs.h.  */
4645157184Sache/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4646157184Sache   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4647157184Sache#define $ac_func innocuous_$ac_func
4648157184Sache
4649157184Sache/* System header to define __stub macros and hopefully few prototypes,
4650157184Sache    which can conflict with char $ac_func (); below.
4651157184Sache    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4652157184Sache    <limits.h> exists even on freestanding compilers.  */
4653157184Sache
4654157184Sache#ifdef __STDC__
4655157184Sache# include <limits.h>
4656157184Sache#else
4657157184Sache# include <assert.h>
4658157184Sache#endif
4659157184Sache
4660157184Sache#undef $ac_func
4661157184Sache
4662157184Sache/* Override any gcc2 internal prototype to avoid an error.  */
4663157184Sache#ifdef __cplusplus
4664157184Sacheextern "C"
4665157184Sache{
4666157184Sache#endif
4667157184Sache/* We use char because int might match the return type of a gcc2
4668157184Sache   builtin and then its argument prototype would still apply.  */
4669157184Sachechar $ac_func ();
4670157184Sache/* The GNU C library defines this for functions which it implements
4671157184Sache    to always fail with ENOSYS.  Some functions are actually named
4672157184Sache    something starting with __ and the normal name is an alias.  */
4673157184Sache#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4674157184Sachechoke me
4675157184Sache#else
4676157184Sachechar (*f) () = $ac_func;
4677157184Sache#endif
4678157184Sache#ifdef __cplusplus
4679157184Sache}
4680157184Sache#endif
4681157184Sache
4682157184Sacheint
4683157184Sachemain ()
4684157184Sache{
4685157184Sachereturn f != $ac_func;
4686157184Sache  ;
4687157184Sache  return 0;
4688157184Sache}
4689157184Sache_ACEOF
4690157184Sacherm -f conftest.$ac_objext conftest$ac_exeext
4691157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4692157184Sache  (eval $ac_link) 2>conftest.er1
4693157184Sache  ac_status=$?
4694157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
4695157184Sache  rm -f conftest.er1
4696157184Sache  cat conftest.err >&5
4697157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698157184Sache  (exit $ac_status); } &&
4699157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
4700157184Sache			 || test ! -s conftest.err'
4701157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702157184Sache  (eval $ac_try) 2>&5
4703157184Sache  ac_status=$?
4704157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705157184Sache  (exit $ac_status); }; } &&
4706157184Sache	 { ac_try='test -s conftest$ac_exeext'
4707157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708157184Sache  (eval $ac_try) 2>&5
4709157184Sache  ac_status=$?
4710157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711157184Sache  (exit $ac_status); }; }; then
4712157184Sache  eval "$as_ac_var=yes"
4713157184Sacheelse
4714157184Sache  echo "$as_me: failed program was:" >&5
4715157184Sachesed 's/^/| /' conftest.$ac_ext >&5
4716157184Sache
4717157184Sacheeval "$as_ac_var=no"
4718157184Sachefi
4719157184Sacherm -f conftest.err conftest.$ac_objext \
4720157184Sache      conftest$ac_exeext conftest.$ac_ext
4721157184Sachefi
4722157184Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4723157184Sacheecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4724157184Sacheif test `eval echo '${'$as_ac_var'}'` = yes; then
4725157184Sache  cat >>confdefs.h <<_ACEOF
4726157184Sache#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4727157184Sache_ACEOF
4728157184Sache
4729157184Sachefi
4730157184Sachedone
4731157184Sache
4732157184Sache
4733136644Sacheecho "$as_me:$LINENO: checking for working strcoll" >&5
4734119610Sacheecho $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4735119610Sacheif test "${ac_cv_func_strcoll_works+set}" = set; then
4736119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
473726497Sacheelse
473826497Sache  if test "$cross_compiling" = yes; then
473926497Sache  ac_cv_func_strcoll_works=no
474026497Sacheelse
4741119610Sache  cat >conftest.$ac_ext <<_ACEOF
4742136644Sache/* confdefs.h.  */
4743136644Sache_ACEOF
4744136644Sachecat confdefs.h >>conftest.$ac_ext
4745136644Sachecat >>conftest.$ac_ext <<_ACEOF
4746136644Sache/* end confdefs.h.  */
4747119610Sache$ac_includes_default
4748119610Sacheint
474926497Sachemain ()
475026497Sache{
4751119610Sacheexit (strcoll ("abc", "def") >= 0 ||
4752119610Sache	 strcoll ("ABC", "DEF") >= 0 ||
4753119610Sache	 strcoll ("123", "456") >= 0)
4754119610Sache  ;
4755119610Sache  return 0;
475626497Sache}
4757119610Sache_ACEOF
4758119610Sacherm -f conftest$ac_exeext
4759136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4760119610Sache  (eval $ac_link) 2>&5
4761119610Sache  ac_status=$?
4762136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763119610Sache  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4764136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765119610Sache  (eval $ac_try) 2>&5
4766119610Sache  ac_status=$?
4767136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768119610Sache  (exit $ac_status); }; }; then
476926497Sache  ac_cv_func_strcoll_works=yes
477026497Sacheelse
4771119610Sache  echo "$as_me: program exited with status $ac_status" >&5
4772119610Sacheecho "$as_me: failed program was:" >&5
4773136644Sachesed 's/^/| /' conftest.$ac_ext >&5
4774136644Sache
4775136644Sache( exit $ac_status )
4776119610Sacheac_cv_func_strcoll_works=no
477726497Sachefi
4778157184Sacherm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
477926497Sachefi
478026497Sachefi
4781136644Sacheecho "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4782119610Sacheecho "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4783119610Sacheif test $ac_cv_func_strcoll_works = yes; then
478426497Sache
4785136644Sachecat >>confdefs.h <<\_ACEOF
478626497Sache#define HAVE_STRCOLL 1
4787136644Sache_ACEOF
478826497Sache
478926497Sachefi
479026497Sache
4791136644Sache
4792136644Sache
4793136644Sache
4794136644Sache
4795136644Sache
4796136644Sache
4797136644Sache
4798136644Sache
4799136644Sache
4800136644Sache
4801136644Sache
4802136644Sache
4803136644Sache
4804136644Sache
4805136644Sache
4806157184Sachefor ac_header in fcntl.h unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \
4807157184Sache		limits.h locale.h pwd.h memory.h termcap.h termios.h termio.h
480826497Sachedo
4809119610Sacheas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4810136644Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
4811136644Sache  echo "$as_me:$LINENO: checking for $ac_header" >&5
4812119610Sacheecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4813119610Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
4814119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
4815136644Sachefi
4816136644Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4817136644Sacheecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
481826497Sacheelse
4819136644Sache  # Is the header compilable?
4820136644Sacheecho "$as_me:$LINENO: checking $ac_header usability" >&5
4821136644Sacheecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4822136644Sachecat >conftest.$ac_ext <<_ACEOF
4823136644Sache/* confdefs.h.  */
4824136644Sache_ACEOF
4825136644Sachecat confdefs.h >>conftest.$ac_ext
4826136644Sachecat >>conftest.$ac_ext <<_ACEOF
4827136644Sache/* end confdefs.h.  */
4828136644Sache$ac_includes_default
4829119610Sache#include <$ac_header>
4830119610Sache_ACEOF
4831136644Sacherm -f conftest.$ac_objext
4832136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833157184Sache  (eval $ac_compile) 2>conftest.er1
4834136644Sache  ac_status=$?
4835157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
4836157184Sache  rm -f conftest.er1
4837157184Sache  cat conftest.err >&5
4838136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839136644Sache  (exit $ac_status); } &&
4840157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
4841157184Sache			 || test ! -s conftest.err'
4842136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843136644Sache  (eval $ac_try) 2>&5
4844136644Sache  ac_status=$?
4845136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846157184Sache  (exit $ac_status); }; } &&
4847157184Sache	 { ac_try='test -s conftest.$ac_objext'
4848157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849157184Sache  (eval $ac_try) 2>&5
4850157184Sache  ac_status=$?
4851157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852136644Sache  (exit $ac_status); }; }; then
4853136644Sache  ac_header_compiler=yes
4854136644Sacheelse
4855136644Sache  echo "$as_me: failed program was:" >&5
4856136644Sachesed 's/^/| /' conftest.$ac_ext >&5
4857136644Sache
4858136644Sacheac_header_compiler=no
4859136644Sachefi
4860157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4861136644Sacheecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
4862136644Sacheecho "${ECHO_T}$ac_header_compiler" >&6
4863136644Sache
4864136644Sache# Is the header present?
4865136644Sacheecho "$as_me:$LINENO: checking $ac_header presence" >&5
4866136644Sacheecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4867136644Sachecat >conftest.$ac_ext <<_ACEOF
4868136644Sache/* confdefs.h.  */
4869136644Sache_ACEOF
4870136644Sachecat confdefs.h >>conftest.$ac_ext
4871136644Sachecat >>conftest.$ac_ext <<_ACEOF
4872136644Sache/* end confdefs.h.  */
4873136644Sache#include <$ac_header>
4874136644Sache_ACEOF
4875136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4876119610Sache  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4877119610Sache  ac_status=$?
4878136644Sache  grep -v '^ *+' conftest.er1 >conftest.err
4879119610Sache  rm -f conftest.er1
4880119610Sache  cat conftest.err >&5
4881136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882119610Sache  (exit $ac_status); } >/dev/null; then
4883119610Sache  if test -s conftest.err; then
4884119610Sache    ac_cpp_err=$ac_c_preproc_warn_flag
4885157184Sache    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4886119610Sache  else
4887119610Sache    ac_cpp_err=
4888119610Sache  fi
488926497Sacheelse
4890119610Sache  ac_cpp_err=yes
4891119610Sachefi
4892119610Sacheif test -z "$ac_cpp_err"; then
4893136644Sache  ac_header_preproc=yes
4894119610Sacheelse
4895119610Sache  echo "$as_me: failed program was:" >&5
4896136644Sachesed 's/^/| /' conftest.$ac_ext >&5
4897136644Sache
4898136644Sache  ac_header_preproc=no
489926497Sachefi
4900119610Sacherm -f conftest.err conftest.$ac_ext
4901136644Sacheecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
4902136644Sacheecho "${ECHO_T}$ac_header_preproc" >&6
4903136644Sache
4904136644Sache# So?  What about this header?
4905157184Sachecase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4906157184Sache  yes:no: )
4907136644Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4908136644Sacheecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4909157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4910157184Sacheecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4911157184Sache    ac_header_preproc=yes
4912157184Sache    ;;
4913157184Sache  no:yes:* )
4914157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4915157184Sacheecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4916157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4917157184Sacheecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4918157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4919157184Sacheecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4920157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4921157184Sacheecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4922136644Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4923136644Sacheecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4924157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4925157184Sacheecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4926136644Sache    (
4927136644Sache      cat <<\_ASBOX
4928157184Sache## ----------------------------------- ##
4929157184Sache## Report this to bug-readline@gnu.org ##
4930157184Sache## ----------------------------------- ##
4931136644Sache_ASBOX
4932136644Sache    ) |
4933136644Sache      sed "s/^/$as_me: WARNING:     /" >&2
4934136644Sache    ;;
4935157184Sacheesac
4936157184Sacheecho "$as_me:$LINENO: checking for $ac_header" >&5
4937157184Sacheecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4938157184Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
4939157184Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
4940157184Sacheelse
4941157184Sache  eval "$as_ac_Header=\$ac_header_preproc"
4942157184Sachefi
4943157184Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4944157184Sacheecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4945157184Sache
4946157184Sachefi
4947157184Sacheif test `eval echo '${'$as_ac_Header'}'` = yes; then
4948157184Sache  cat >>confdefs.h <<_ACEOF
4949157184Sache#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4950157184Sache_ACEOF
4951157184Sache
4952157184Sachefi
4953157184Sache
4954157184Sachedone
4955157184Sache
4956157184Sache
4957157184Sache
4958157184Sache
4959157184Sache
4960157184Sachefor ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h
4961157184Sachedo
4962157184Sacheas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963157184Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
4964157184Sache  echo "$as_me:$LINENO: checking for $ac_header" >&5
4965157184Sacheecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4966157184Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
4967157184Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
4968157184Sachefi
4969157184Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4970157184Sacheecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4971157184Sacheelse
4972157184Sache  # Is the header compilable?
4973157184Sacheecho "$as_me:$LINENO: checking $ac_header usability" >&5
4974157184Sacheecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4975157184Sachecat >conftest.$ac_ext <<_ACEOF
4976157184Sache/* confdefs.h.  */
4977157184Sache_ACEOF
4978157184Sachecat confdefs.h >>conftest.$ac_ext
4979157184Sachecat >>conftest.$ac_ext <<_ACEOF
4980157184Sache/* end confdefs.h.  */
4981157184Sache$ac_includes_default
4982157184Sache#include <$ac_header>
4983157184Sache_ACEOF
4984157184Sacherm -f conftest.$ac_objext
4985157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986157184Sache  (eval $ac_compile) 2>conftest.er1
4987157184Sache  ac_status=$?
4988157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
4989157184Sache  rm -f conftest.er1
4990157184Sache  cat conftest.err >&5
4991157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992157184Sache  (exit $ac_status); } &&
4993157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
4994157184Sache			 || test ! -s conftest.err'
4995157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996157184Sache  (eval $ac_try) 2>&5
4997157184Sache  ac_status=$?
4998157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999157184Sache  (exit $ac_status); }; } &&
5000157184Sache	 { ac_try='test -s conftest.$ac_objext'
5001157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002157184Sache  (eval $ac_try) 2>&5
5003157184Sache  ac_status=$?
5004157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005157184Sache  (exit $ac_status); }; }; then
5006157184Sache  ac_header_compiler=yes
5007157184Sacheelse
5008157184Sache  echo "$as_me: failed program was:" >&5
5009157184Sachesed 's/^/| /' conftest.$ac_ext >&5
5010157184Sache
5011157184Sacheac_header_compiler=no
5012157184Sachefi
5013157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5014157184Sacheecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
5015157184Sacheecho "${ECHO_T}$ac_header_compiler" >&6
5016157184Sache
5017157184Sache# Is the header present?
5018157184Sacheecho "$as_me:$LINENO: checking $ac_header presence" >&5
5019157184Sacheecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5020157184Sachecat >conftest.$ac_ext <<_ACEOF
5021157184Sache/* confdefs.h.  */
5022157184Sache_ACEOF
5023157184Sachecat confdefs.h >>conftest.$ac_ext
5024157184Sachecat >>conftest.$ac_ext <<_ACEOF
5025157184Sache/* end confdefs.h.  */
5026157184Sache#include <$ac_header>
5027157184Sache_ACEOF
5028157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5029157184Sache  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5030157184Sache  ac_status=$?
5031157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
5032157184Sache  rm -f conftest.er1
5033157184Sache  cat conftest.err >&5
5034157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035157184Sache  (exit $ac_status); } >/dev/null; then
5036157184Sache  if test -s conftest.err; then
5037157184Sache    ac_cpp_err=$ac_c_preproc_warn_flag
5038157184Sache    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5039157184Sache  else
5040157184Sache    ac_cpp_err=
5041157184Sache  fi
5042157184Sacheelse
5043157184Sache  ac_cpp_err=yes
5044157184Sachefi
5045157184Sacheif test -z "$ac_cpp_err"; then
5046157184Sache  ac_header_preproc=yes
5047157184Sacheelse
5048157184Sache  echo "$as_me: failed program was:" >&5
5049157184Sachesed 's/^/| /' conftest.$ac_ext >&5
5050157184Sache
5051157184Sache  ac_header_preproc=no
5052157184Sachefi
5053157184Sacherm -f conftest.err conftest.$ac_ext
5054157184Sacheecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
5055157184Sacheecho "${ECHO_T}$ac_header_preproc" >&6
5056157184Sache
5057157184Sache# So?  What about this header?
5058157184Sachecase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5059157184Sache  yes:no: )
5060157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5061157184Sacheecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5062157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5063157184Sacheecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5064157184Sache    ac_header_preproc=yes
5065157184Sache    ;;
5066157184Sache  no:yes:* )
5067136644Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5068136644Sacheecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5069157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5070157184Sacheecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5071157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5072157184Sacheecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5073157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5074157184Sacheecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5075136644Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5076136644Sacheecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5077157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5078157184Sacheecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5079136644Sache    (
5080136644Sache      cat <<\_ASBOX
5081157184Sache## ----------------------------------- ##
5082157184Sache## Report this to bug-readline@gnu.org ##
5083157184Sache## ----------------------------------- ##
5084136644Sache_ASBOX
5085136644Sache    ) |
5086136644Sache      sed "s/^/$as_me: WARNING:     /" >&2
5087136644Sache    ;;
5088136644Sacheesac
5089136644Sacheecho "$as_me:$LINENO: checking for $ac_header" >&5
5090136644Sacheecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5091136644Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
5092136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
5093136644Sacheelse
5094157184Sache  eval "$as_ac_Header=\$ac_header_preproc"
509526497Sachefi
5096136644Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5097119610Sacheecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5098136644Sache
5099136644Sachefi
5100119610Sacheif test `eval echo '${'$as_ac_Header'}'` = yes; then
5101136644Sache  cat >>confdefs.h <<_ACEOF
5102119610Sache#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5103136644Sache_ACEOF
5104119610Sache
510526497Sachefi
5106136644Sache
510726497Sachedone
510826497Sache
5109136644Sache
5110136644Sache
5111157184Sachefor ac_header in sys/ptem.h
5112157184Sachedo
5113157184Sacheas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5114157184Sacheecho "$as_me:$LINENO: checking for $ac_header" >&5
5115157184Sacheecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5116157184Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
5117157184Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
5118157184Sacheelse
5119157184Sache  cat >conftest.$ac_ext <<_ACEOF
5120157184Sache/* confdefs.h.  */
5121157184Sache_ACEOF
5122157184Sachecat confdefs.h >>conftest.$ac_ext
5123157184Sachecat >>conftest.$ac_ext <<_ACEOF
5124157184Sache/* end confdefs.h.  */
5125157184Sache
5126157184Sache#if HAVE_SYS_STREAM_H
5127157184Sache#  include <sys/stream.h>
5128157184Sache#endif
5129157184Sache
5130157184Sache
5131157184Sache#include <$ac_header>
5132157184Sache_ACEOF
5133157184Sacherm -f conftest.$ac_objext
5134157184Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5135157184Sache  (eval $ac_compile) 2>conftest.er1
5136157184Sache  ac_status=$?
5137157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
5138157184Sache  rm -f conftest.er1
5139157184Sache  cat conftest.err >&5
5140157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141157184Sache  (exit $ac_status); } &&
5142157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
5143157184Sache			 || test ! -s conftest.err'
5144157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145157184Sache  (eval $ac_try) 2>&5
5146157184Sache  ac_status=$?
5147157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148157184Sache  (exit $ac_status); }; } &&
5149157184Sache	 { ac_try='test -s conftest.$ac_objext'
5150157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151157184Sache  (eval $ac_try) 2>&5
5152157184Sache  ac_status=$?
5153157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154157184Sache  (exit $ac_status); }; }; then
5155157184Sache  eval "$as_ac_Header=yes"
5156157184Sacheelse
5157157184Sache  echo "$as_me: failed program was:" >&5
5158157184Sachesed 's/^/| /' conftest.$ac_ext >&5
5159157184Sache
5160157184Sacheeval "$as_ac_Header=no"
5161157184Sachefi
5162157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5163157184Sachefi
5164157184Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5165157184Sacheecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5166157184Sacheif test `eval echo '${'$as_ac_Header'}'` = yes; then
5167157184Sache  cat >>confdefs.h <<_ACEOF
5168157184Sache#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5169157184Sache_ACEOF
5170157184Sache
5171157184Sachefi
5172157184Sache
5173157184Sachedone
5174157184Sache
5175157184Sache
5176157184Sache
5177136644Sacheecho "$as_me:$LINENO: checking for type of signal functions" >&5
5178119610Sacheecho $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
5179119610Sacheif test "${bash_cv_signal_vintage+set}" = set; then
5180119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
5181119610Sacheelse
518226497Sache
5183119610Sache  cat >conftest.$ac_ext <<_ACEOF
5184136644Sache/* confdefs.h.  */
5185136644Sache_ACEOF
5186136644Sachecat confdefs.h >>conftest.$ac_ext
5187136644Sachecat >>conftest.$ac_ext <<_ACEOF
5188136644Sache/* end confdefs.h.  */
518926497Sache#include <signal.h>
5190119610Sacheint
5191119610Sachemain ()
5192119610Sache{
519326497Sache
519426497Sache    sigset_t ss;
519526497Sache    struct sigaction sa;
519626497Sache    sigemptyset(&ss); sigsuspend(&ss);
519726497Sache    sigaction(SIGINT, &sa, (struct sigaction *) 0);
519826497Sache    sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
5199119610Sache
5200119610Sache  ;
5201119610Sache  return 0;
5202119610Sache}
5203119610Sache_ACEOF
5204119610Sacherm -f conftest.$ac_objext conftest$ac_exeext
5205136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206157184Sache  (eval $ac_link) 2>conftest.er1
5207119610Sache  ac_status=$?
5208157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
5209157184Sache  rm -f conftest.er1
5210157184Sache  cat conftest.err >&5
5211136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212119610Sache  (exit $ac_status); } &&
5213157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
5214157184Sache			 || test ! -s conftest.err'
5215136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216119610Sache  (eval $ac_try) 2>&5
5217119610Sache  ac_status=$?
5218136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219157184Sache  (exit $ac_status); }; } &&
5220157184Sache	 { ac_try='test -s conftest$ac_exeext'
5221157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222157184Sache  (eval $ac_try) 2>&5
5223157184Sache  ac_status=$?
5224157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225119610Sache  (exit $ac_status); }; }; then
522626497Sache  bash_cv_signal_vintage=posix
522726497Sacheelse
5228119610Sache  echo "$as_me: failed program was:" >&5
5229136644Sachesed 's/^/| /' conftest.$ac_ext >&5
5230119610Sache
5231136644Sache
5232119610Sache    cat >conftest.$ac_ext <<_ACEOF
5233136644Sache/* confdefs.h.  */
5234136644Sache_ACEOF
5235136644Sachecat confdefs.h >>conftest.$ac_ext
5236136644Sachecat >>conftest.$ac_ext <<_ACEOF
5237136644Sache/* end confdefs.h.  */
523826497Sache#include <signal.h>
5239119610Sacheint
5240119610Sachemain ()
5241119610Sache{
524226497Sache
524326497Sache	int mask = sigmask(SIGINT);
524426497Sache	sigsetmask(mask); sigblock(mask); sigpause(mask);
5245119610Sache
5246119610Sache  ;
5247119610Sache  return 0;
5248119610Sache}
5249119610Sache_ACEOF
5250119610Sacherm -f conftest.$ac_objext conftest$ac_exeext
5251136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5252157184Sache  (eval $ac_link) 2>conftest.er1
5253119610Sache  ac_status=$?
5254157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
5255157184Sache  rm -f conftest.er1
5256157184Sache  cat conftest.err >&5
5257136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258119610Sache  (exit $ac_status); } &&
5259157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
5260157184Sache			 || test ! -s conftest.err'
5261136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262119610Sache  (eval $ac_try) 2>&5
5263119610Sache  ac_status=$?
5264136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265157184Sache  (exit $ac_status); }; } &&
5266157184Sache	 { ac_try='test -s conftest$ac_exeext'
5267157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268157184Sache  (eval $ac_try) 2>&5
5269157184Sache  ac_status=$?
5270157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271119610Sache  (exit $ac_status); }; }; then
527226497Sache  bash_cv_signal_vintage=4.2bsd
527326497Sacheelse
5274119610Sache  echo "$as_me: failed program was:" >&5
5275136644Sachesed 's/^/| /' conftest.$ac_ext >&5
5276119610Sache
5277136644Sache
5278119610Sache      cat >conftest.$ac_ext <<_ACEOF
5279136644Sache/* confdefs.h.  */
5280136644Sache_ACEOF
5281136644Sachecat confdefs.h >>conftest.$ac_ext
5282136644Sachecat >>conftest.$ac_ext <<_ACEOF
5283136644Sache/* end confdefs.h.  */
528426497Sache
528526497Sache	#include <signal.h>
528626497Sache	RETSIGTYPE foo() { }
5287119610Sacheint
5288119610Sachemain ()
5289119610Sache{
529026497Sache
529126497Sache		int mask = sigmask(SIGINT);
529226497Sache		sigset(SIGINT, foo); sigrelse(SIGINT);
529326497Sache		sighold(SIGINT); sigpause(SIGINT);
5294119610Sache
5295119610Sache  ;
5296119610Sache  return 0;
5297119610Sache}
5298119610Sache_ACEOF
5299119610Sacherm -f conftest.$ac_objext conftest$ac_exeext
5300136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5301157184Sache  (eval $ac_link) 2>conftest.er1
5302119610Sache  ac_status=$?
5303157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
5304157184Sache  rm -f conftest.er1
5305157184Sache  cat conftest.err >&5
5306136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307119610Sache  (exit $ac_status); } &&
5308157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
5309157184Sache			 || test ! -s conftest.err'
5310136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311119610Sache  (eval $ac_try) 2>&5
5312119610Sache  ac_status=$?
5313136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314157184Sache  (exit $ac_status); }; } &&
5315157184Sache	 { ac_try='test -s conftest$ac_exeext'
5316157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317157184Sache  (eval $ac_try) 2>&5
5318157184Sache  ac_status=$?
5319157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320119610Sache  (exit $ac_status); }; }; then
532126497Sache  bash_cv_signal_vintage=svr3
532226497Sacheelse
5323119610Sache  echo "$as_me: failed program was:" >&5
5324136644Sachesed 's/^/| /' conftest.$ac_ext >&5
5325136644Sache
5326119610Sachebash_cv_signal_vintage=v7
5327119610Sache
532826497Sachefi
5329157184Sacherm -f conftest.err conftest.$ac_objext \
5330157184Sache      conftest$ac_exeext conftest.$ac_ext
5331119610Sache
533226497Sachefi
5333157184Sacherm -f conftest.err conftest.$ac_objext \
5334157184Sache      conftest$ac_exeext conftest.$ac_ext
533526497Sache
533626497Sachefi
5337157184Sacherm -f conftest.err conftest.$ac_objext \
5338157184Sache      conftest$ac_exeext conftest.$ac_ext
533926497Sache
534026497Sachefi
534126497Sache
5342136644Sacheecho "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
5343119610Sacheecho "${ECHO_T}$bash_cv_signal_vintage" >&6
534426497Sacheif test "$bash_cv_signal_vintage" = posix; then
5345136644Sachecat >>confdefs.h <<\_ACEOF
534626497Sache#define HAVE_POSIX_SIGNALS 1
5347136644Sache_ACEOF
534826497Sache
534926497Sacheelif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5350136644Sachecat >>confdefs.h <<\_ACEOF
535126497Sache#define HAVE_BSD_SIGNALS 1
5352136644Sache_ACEOF
535326497Sache
535426497Sacheelif test "$bash_cv_signal_vintage" = svr3; then
5355136644Sachecat >>confdefs.h <<\_ACEOF
535626497Sache#define HAVE_USG_SIGHOLD 1
5357136644Sache_ACEOF
535826497Sache
535926497Sachefi
536026497Sache
5361136644Sache
5362136644Sache
5363136644Sacheecho "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
5364119610Sacheecho $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
5365119610Sacheif test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
5366119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
536726497Sacheelse
536826497Sache  if test "$cross_compiling" = yes; then
5369136644Sache  { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
5370119610Sacheecho "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
537135486Sache    bash_cv_must_reinstall_sighandlers=no
537235486Sache
537326497Sacheelse
5374119610Sache  cat >conftest.$ac_ext <<_ACEOF
5375136644Sache/* confdefs.h.  */
5376136644Sache_ACEOF
5377136644Sachecat confdefs.h >>conftest.$ac_ext
5378136644Sachecat >>conftest.$ac_ext <<_ACEOF
5379136644Sache/* end confdefs.h.  */
538026497Sache
538126497Sache#include <signal.h>
538226497Sache#ifdef HAVE_UNISTD_H
538326497Sache#include <unistd.h>
538426497Sache#endif
538526497Sache
538626497Sachetypedef RETSIGTYPE sigfunc();
538726497Sache
538826497Sacheint nsigint;
538926497Sache
539026497Sache#ifdef HAVE_POSIX_SIGNALS
539126497Sachesigfunc *
539226497Sacheset_signal_handler(sig, handler)
539326497Sache     int sig;
539426497Sache     sigfunc *handler;
539526497Sache{
539626497Sache  struct sigaction act, oact;
539726497Sache  act.sa_handler = handler;
539826497Sache  act.sa_flags = 0;
539926497Sache  sigemptyset (&act.sa_mask);
540026497Sache  sigemptyset (&oact.sa_mask);
540126497Sache  sigaction (sig, &act, &oact);
540226497Sache  return (oact.sa_handler);
540326497Sache}
540426497Sache#else
540526497Sache#define set_signal_handler(s, h) signal(s, h)
540626497Sache#endif
540726497Sache
540826497SacheRETSIGTYPE
540926497Sachesigint(s)
541026497Sacheint s;
541126497Sache{
541226497Sache  nsigint++;
541326497Sache}
541426497Sache
541526497Sachemain()
541626497Sache{
541726497Sache	nsigint = 0;
541826497Sache	set_signal_handler(SIGINT, sigint);
541926497Sache	kill((int)getpid(), SIGINT);
542026497Sache	kill((int)getpid(), SIGINT);
542126497Sache	exit(nsigint != 2);
542226497Sache}
542326497Sache
5424119610Sache_ACEOF
5425119610Sacherm -f conftest$ac_exeext
5426136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5427119610Sache  (eval $ac_link) 2>&5
5428119610Sache  ac_status=$?
5429136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430119610Sache  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5431136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432119610Sache  (eval $ac_try) 2>&5
5433119610Sache  ac_status=$?
5434136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435119610Sache  (exit $ac_status); }; }; then
543626497Sache  bash_cv_must_reinstall_sighandlers=no
543726497Sacheelse
5438119610Sache  echo "$as_me: program exited with status $ac_status" >&5
5439119610Sacheecho "$as_me: failed program was:" >&5
5440136644Sachesed 's/^/| /' conftest.$ac_ext >&5
5441136644Sache
5442136644Sache( exit $ac_status )
5443119610Sachebash_cv_must_reinstall_sighandlers=yes
544426497Sachefi
5445157184Sacherm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
544626497Sachefi
544726497Sachefi
544826497Sache
5449136644Sacheecho "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
5450119610Sacheecho "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
545126497Sacheif test $bash_cv_must_reinstall_sighandlers = yes; then
5452136644Sachecat >>confdefs.h <<\_ACEOF
545326497Sache#define MUST_REINSTALL_SIGHANDLERS 1
5454136644Sache_ACEOF
545526497Sache
545626497Sachefi
545726497Sache
5458136644Sache
5459136644Sache
5460136644Sacheecho "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
5461119610Sacheecho $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
5462119610Sacheif test "${bash_cv_func_sigsetjmp+set}" = set; then
5463119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
546426497Sacheelse
546526497Sache  if test "$cross_compiling" = yes; then
5466136644Sache  { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
5467119610Sacheecho "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
546835486Sache     bash_cv_func_sigsetjmp=missing
546935486Sache
547026497Sacheelse
5471119610Sache  cat >conftest.$ac_ext <<_ACEOF
5472136644Sache/* confdefs.h.  */
5473136644Sache_ACEOF
5474136644Sachecat confdefs.h >>conftest.$ac_ext
5475136644Sachecat >>conftest.$ac_ext <<_ACEOF
5476136644Sache/* end confdefs.h.  */
547726497Sache
547826497Sache#ifdef HAVE_UNISTD_H
547926497Sache#include <unistd.h>
548026497Sache#endif
548126497Sache#include <sys/types.h>
548226497Sache#include <signal.h>
548326497Sache#include <setjmp.h>
548426497Sache
548526497Sachemain()
548626497Sache{
548726497Sache#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
548826497Sacheexit (1);
548926497Sache#else
549026497Sache
549126497Sacheint code;
549226497Sachesigset_t set, oset;
549326497Sachesigjmp_buf xx;
549426497Sache
549526497Sache/* get the mask */
549626497Sachesigemptyset(&set);
549726497Sachesigemptyset(&oset);
549826497Sachesigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
549926497Sachesigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
550026497Sache
550126497Sache/* save it */
550226497Sachecode = sigsetjmp(xx, 1);
550326497Sacheif (code)
550426497Sache  exit(0);	/* could get sigmask and compare to oset here. */
550526497Sache
550626497Sache/* change it */
550726497Sachesigaddset(&set, SIGINT);
550826497Sachesigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
550926497Sache
551026497Sache/* and siglongjmp */
551126497Sachesiglongjmp(xx, 10);
551226497Sacheexit(1);
551326497Sache#endif
551426497Sache}
5515119610Sache_ACEOF
5516119610Sacherm -f conftest$ac_exeext
5517136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5518119610Sache  (eval $ac_link) 2>&5
5519119610Sache  ac_status=$?
5520136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521119610Sache  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5522136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523119610Sache  (eval $ac_try) 2>&5
5524119610Sache  ac_status=$?
5525136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526119610Sache  (exit $ac_status); }; }; then
552726497Sache  bash_cv_func_sigsetjmp=present
552826497Sacheelse
5529119610Sache  echo "$as_me: program exited with status $ac_status" >&5
5530119610Sacheecho "$as_me: failed program was:" >&5
5531136644Sachesed 's/^/| /' conftest.$ac_ext >&5
5532136644Sache
5533136644Sache( exit $ac_status )
5534119610Sachebash_cv_func_sigsetjmp=missing
553526497Sachefi
5536157184Sacherm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
553726497Sachefi
553826497Sachefi
553926497Sache
5540136644Sacheecho "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
5541119610Sacheecho "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
554226497Sacheif test $bash_cv_func_sigsetjmp = present; then
5543136644Sachecat >>confdefs.h <<\_ACEOF
554426497Sache#define HAVE_POSIX_SIGSETJMP 1
5545136644Sache_ACEOF
554626497Sache
554726497Sachefi
554826497Sache
5549136644Sacheecho "$as_me:$LINENO: checking for lstat" >&5
5550119610Sacheecho $ECHO_N "checking for lstat... $ECHO_C" >&6
5551119610Sacheif test "${bash_cv_func_lstat+set}" = set; then
5552119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
555326497Sacheelse
5554119610Sache  cat >conftest.$ac_ext <<_ACEOF
5555136644Sache/* confdefs.h.  */
5556136644Sache_ACEOF
5557136644Sachecat confdefs.h >>conftest.$ac_ext
5558136644Sachecat >>conftest.$ac_ext <<_ACEOF
5559136644Sache/* end confdefs.h.  */
556026497Sache
556126497Sache#include <sys/types.h>
556226497Sache#include <sys/stat.h>
556326497Sache
5564119610Sacheint
5565119610Sachemain ()
5566119610Sache{
5567119610Sache lstat(".",(struct stat *)0);
5568119610Sache  ;
5569119610Sache  return 0;
5570119610Sache}
5571119610Sache_ACEOF
5572119610Sacherm -f conftest.$ac_objext conftest$ac_exeext
5573136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5574157184Sache  (eval $ac_link) 2>conftest.er1
5575119610Sache  ac_status=$?
5576157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
5577157184Sache  rm -f conftest.er1
5578157184Sache  cat conftest.err >&5
5579136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580119610Sache  (exit $ac_status); } &&
5581157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
5582157184Sache			 || test ! -s conftest.err'
5583136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584119610Sache  (eval $ac_try) 2>&5
5585119610Sache  ac_status=$?
5586136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587157184Sache  (exit $ac_status); }; } &&
5588157184Sache	 { ac_try='test -s conftest$ac_exeext'
5589157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590157184Sache  (eval $ac_try) 2>&5
5591157184Sache  ac_status=$?
5592157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593119610Sache  (exit $ac_status); }; }; then
559426497Sache  bash_cv_func_lstat=yes
559526497Sacheelse
5596119610Sache  echo "$as_me: failed program was:" >&5
5597136644Sachesed 's/^/| /' conftest.$ac_ext >&5
5598136644Sache
5599119610Sachebash_cv_func_lstat=no
560026497Sachefi
5601157184Sacherm -f conftest.err conftest.$ac_objext \
5602157184Sache      conftest$ac_exeext conftest.$ac_ext
560326497Sachefi
5604136644Sacheecho "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
5605119610Sacheecho "${ECHO_T}$bash_cv_func_lstat" >&6
560626497Sacheif test $bash_cv_func_lstat = yes; then
5607136644Sache  cat >>confdefs.h <<\_ACEOF
560826497Sache#define HAVE_LSTAT 1
5609136644Sache_ACEOF
561026497Sache
561126497Sachefi
561226497Sache
5613136644Sache
5614136644Sacheecho "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
5615119610Sacheecho $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
5616119610Sacheif test "${bash_cv_func_strcoll_broken+set}" = set; then
5617119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
561826497Sacheelse
561926497Sache  if test "$cross_compiling" = yes; then
5620136644Sache  { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
5621119610Sacheecho "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
562235486Sache    bash_cv_func_strcoll_broken=no
562335486Sache
562426497Sacheelse
5625119610Sache  cat >conftest.$ac_ext <<_ACEOF
5626136644Sache/* confdefs.h.  */
5627136644Sache_ACEOF
5628136644Sachecat confdefs.h >>conftest.$ac_ext
5629136644Sachecat >>conftest.$ac_ext <<_ACEOF
5630136644Sache/* end confdefs.h.  */
563126497Sache
563226497Sache#include <stdio.h>
563326497Sache#if defined (HAVE_LOCALE_H)
563426497Sache#include <locale.h>
563526497Sache#endif
563626497Sache
563726497Sachemain(c, v)
563826497Sacheint     c;
563926497Sachechar    *v[];
564026497Sache{
564126497Sache        int     r1, r2;
564226497Sache        char    *deflocale, *defcoll;
564326497Sache
564426497Sache#ifdef HAVE_SETLOCALE
564526497Sache        deflocale = setlocale(LC_ALL, "");
564626497Sache	defcoll = setlocale(LC_COLLATE, "");
564726497Sache#endif
564826497Sache
564926497Sache#ifdef HAVE_STRCOLL
565026497Sache	/* These two values are taken from tests/glob-test. */
565126497Sache        r1 = strcoll("abd", "aXd");
565226497Sache#else
565326497Sache	r1 = 0;
565426497Sache#endif
565526497Sache        r2 = strcmp("abd", "aXd");
565626497Sache
565726497Sache	/* These two should both be greater than 0.  It is permissible for
565826497Sache	   a system to return different values, as long as the sign is the
565926497Sache	   same. */
566026497Sache
566126497Sache        /* Exit with 1 (failure) if these two values are both > 0, since
566226497Sache	   this tests whether strcoll(3) is broken with respect to strcmp(3)
566326497Sache	   in the default locale. */
566426497Sache	exit (r1 > 0 && r2 > 0);
566526497Sache}
566626497Sache
5667119610Sache_ACEOF
5668119610Sacherm -f conftest$ac_exeext
5669136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670119610Sache  (eval $ac_link) 2>&5
5671119610Sache  ac_status=$?
5672136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673119610Sache  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5674136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675119610Sache  (eval $ac_try) 2>&5
5676119610Sache  ac_status=$?
5677136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678119610Sache  (exit $ac_status); }; }; then
567926497Sache  bash_cv_func_strcoll_broken=yes
568026497Sacheelse
5681119610Sache  echo "$as_me: program exited with status $ac_status" >&5
5682119610Sacheecho "$as_me: failed program was:" >&5
5683136644Sachesed 's/^/| /' conftest.$ac_ext >&5
5684136644Sache
5685136644Sache( exit $ac_status )
5686119610Sachebash_cv_func_strcoll_broken=no
568726497Sachefi
5688157184Sacherm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
568926497Sachefi
569026497Sachefi
569126497Sache
5692136644Sacheecho "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
5693119610Sacheecho "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
569426497Sacheif test $bash_cv_func_strcoll_broken = yes; then
5695136644Sachecat >>confdefs.h <<\_ACEOF
569626497Sache#define STRCOLL_BROKEN 1
5697136644Sache_ACEOF
569826497Sache
569926497Sachefi
570026497Sache
5701136644Sache
5702136644Sacheecho "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
5703136644Sacheecho $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
5704136644Sacheif test "${bash_cv_func_ctype_nonascii+set}" = set; then
5705136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
5706136644Sacheelse
5707136644Sache  if test "$cross_compiling" = yes; then
5708136644Sache  { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
5709136644Sacheecho "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
5710136644Sache    bash_cv_func_ctype_nonascii=no
5711136644Sache
5712136644Sacheelse
5713136644Sache  cat >conftest.$ac_ext <<_ACEOF
5714136644Sache/* confdefs.h.  */
5715136644Sache_ACEOF
5716136644Sachecat confdefs.h >>conftest.$ac_ext
5717136644Sachecat >>conftest.$ac_ext <<_ACEOF
5718136644Sache/* end confdefs.h.  */
5719136644Sache
5720136644Sache#ifdef HAVE_LOCALE_H
5721136644Sache#include <locale.h>
5722136644Sache#endif
5723136644Sache#include <stdio.h>
5724136644Sache#include <ctype.h>
5725136644Sache
5726136644Sachemain(c, v)
5727136644Sacheint	c;
5728136644Sachechar	*v[];
5729136644Sache{
5730136644Sache	char	*deflocale;
5731136644Sache	unsigned char x;
5732136644Sache	int	r1, r2;
5733136644Sache
5734136644Sache#ifdef HAVE_SETLOCALE
5735136644Sache	/* We take a shot here.  If that locale is not known, try the
5736136644Sache	   system default.  We try this one because '\342' (226) is
5737136644Sache	   known to be a printable character in that locale. */
5738136644Sache	deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
5739136644Sache	if (deflocale == 0)
5740136644Sache		deflocale = setlocale(LC_ALL, "");
5741136644Sache#endif
5742136644Sache
5743136644Sache	x = '\342';
5744136644Sache	r1 = isprint(x);
5745136644Sache	x -= 128;
5746136644Sache	r2 = isprint(x);
5747136644Sache	exit (r1 == 0 || r2 == 0);
5748136644Sache}
5749136644Sache
5750136644Sache_ACEOF
5751136644Sacherm -f conftest$ac_exeext
5752136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5753136644Sache  (eval $ac_link) 2>&5
5754136644Sache  ac_status=$?
5755136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756136644Sache  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5757136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758136644Sache  (eval $ac_try) 2>&5
5759136644Sache  ac_status=$?
5760136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761136644Sache  (exit $ac_status); }; }; then
5762136644Sache  bash_cv_func_ctype_nonascii=yes
5763136644Sacheelse
5764136644Sache  echo "$as_me: program exited with status $ac_status" >&5
5765136644Sacheecho "$as_me: failed program was:" >&5
5766136644Sachesed 's/^/| /' conftest.$ac_ext >&5
5767136644Sache
5768136644Sache( exit $ac_status )
5769136644Sachebash_cv_func_ctype_nonascii=no
5770136644Sachefi
5771157184Sacherm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5772136644Sachefi
5773136644Sachefi
5774136644Sache
5775136644Sacheecho "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
5776136644Sacheecho "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
5777136644Sacheif test $bash_cv_func_ctype_nonascii = yes; then
5778136644Sachecat >>confdefs.h <<\_ACEOF
5779136644Sache#define CTYPE_NON_ASCII 1
5780136644Sache_ACEOF
5781136644Sache
5782136644Sachefi
5783136644Sache
5784136644Sache
5785136644Sacheecho "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
5786119610Sacheecho $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
5787119610Sacheif test "${bash_cv_getpw_declared+set}" = set; then
5788119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
578926497Sacheelse
5790119610Sache  cat >conftest.$ac_ext <<_ACEOF
5791136644Sache/* confdefs.h.  */
5792136644Sache_ACEOF
5793136644Sachecat confdefs.h >>conftest.$ac_ext
5794136644Sachecat >>conftest.$ac_ext <<_ACEOF
5795136644Sache/* end confdefs.h.  */
5796119610Sache
579726497Sache#include <sys/types.h>
5798119610Sache#ifdef HAVE_UNISTD_H
5799119610Sache#  include <unistd.h>
580026497Sache#endif
5801119610Sache#include <pwd.h>
5802119610Sache
5803119610Sache_ACEOF
5804119610Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5805136644Sache  $EGREP "getpwuid" >/dev/null 2>&1; then
5806119610Sache  bash_cv_getpw_declared=yes
580726497Sacheelse
5808119610Sache  bash_cv_getpw_declared=no
580926497Sachefi
581026497Sacherm -f conftest*
5811119610Sache
581226497Sachefi
5813119610Sache
5814136644Sacheecho "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
5815119610Sacheecho "${ECHO_T}$bash_cv_getpw_declared" >&6
5816119610Sacheif test $bash_cv_getpw_declared = yes; then
5817136644Sachecat >>confdefs.h <<\_ACEOF
5818119610Sache#define HAVE_GETPW_DECLS 1
5819136644Sache_ACEOF
582026497Sache
582126497Sachefi
582226497Sache
5823119610Sache
5824136644Sacheecho "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
5825119610Sacheecho $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
5826119610Sacheif test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
5827119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
5828119610Sacheelse
5829119610Sache  cat >conftest.$ac_ext <<_ACEOF
5830136644Sache/* confdefs.h.  */
5831136644Sache_ACEOF
5832136644Sachecat confdefs.h >>conftest.$ac_ext
5833136644Sachecat >>conftest.$ac_ext <<_ACEOF
5834136644Sache/* end confdefs.h.  */
5835119610Sache#include <sys/types.h>
5836119610Sache#include <termios.h>
5837119610Sache#ifdef TIOCGWINSZ
5838119610Sache  yes
5839119610Sache#endif
5840119610Sache
5841119610Sache_ACEOF
5842119610Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5843136644Sache  $EGREP "yes" >/dev/null 2>&1; then
5844119610Sache  ac_cv_sys_tiocgwinsz_in_termios_h=yes
5845119610Sacheelse
5846119610Sache  ac_cv_sys_tiocgwinsz_in_termios_h=no
5847119610Sachefi
5848119610Sacherm -f conftest*
5849119610Sache
5850119610Sachefi
5851136644Sacheecho "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5852119610Sacheecho "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
5853119610Sache
5854119610Sacheif test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5855136644Sache  echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5856119610Sacheecho $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
5857119610Sacheif test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
5858119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
5859119610Sacheelse
5860119610Sache  cat >conftest.$ac_ext <<_ACEOF
5861136644Sache/* confdefs.h.  */
5862136644Sache_ACEOF
5863136644Sachecat confdefs.h >>conftest.$ac_ext
5864136644Sachecat >>conftest.$ac_ext <<_ACEOF
5865136644Sache/* end confdefs.h.  */
5866119610Sache#include <sys/types.h>
586726497Sache#include <sys/ioctl.h>
5868119610Sache#ifdef TIOCGWINSZ
5869119610Sache  yes
5870119610Sache#endif
5871119610Sache
5872119610Sache_ACEOF
5873119610Sacheif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5874136644Sache  $EGREP "yes" >/dev/null 2>&1; then
5875119610Sache  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
587626497Sacheelse
5877119610Sache  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
587826497Sachefi
587926497Sacherm -f conftest*
5880119610Sache
588126497Sachefi
5882136644Sacheecho "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5883119610Sacheecho "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
588426497Sache
5885119610Sache  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5886119610Sache
5887136644Sachecat >>confdefs.h <<\_ACEOF
588826497Sache#define GWINSZ_IN_SYS_IOCTL 1
5889136644Sache_ACEOF
589026497Sache
5891119610Sache  fi
589226497Sachefi
589326497Sache
5894136644Sache
5895136644Sacheecho "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
5896119610Sacheecho $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
5897119610Sacheif test "${bash_cv_void_sighandler+set}" = set; then
5898119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
589926497Sacheelse
5900119610Sache  cat >conftest.$ac_ext <<_ACEOF
5901136644Sache/* confdefs.h.  */
5902136644Sache_ACEOF
5903136644Sachecat confdefs.h >>conftest.$ac_ext
5904136644Sachecat >>conftest.$ac_ext <<_ACEOF
5905136644Sache/* end confdefs.h.  */
590626497Sache#include <sys/types.h>
5907119610Sache#include <signal.h>
5908119610Sache#ifdef signal
5909119610Sache#undef signal
5910119610Sache#endif
5911119610Sache#ifdef __cplusplus
5912119610Sacheextern "C"
5913119610Sache#endif
5914119610Sachevoid (*signal ()) ();
5915119610Sacheint
5916119610Sachemain ()
5917119610Sache{
5918119610Sacheint i;
5919119610Sache  ;
5920119610Sache  return 0;
5921119610Sache}
5922119610Sache_ACEOF
5923119610Sacherm -f conftest.$ac_objext
5924136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5925157184Sache  (eval $ac_compile) 2>conftest.er1
5926119610Sache  ac_status=$?
5927157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
5928157184Sache  rm -f conftest.er1
5929157184Sache  cat conftest.err >&5
5930136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931119610Sache  (exit $ac_status); } &&
5932157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
5933157184Sache			 || test ! -s conftest.err'
5934136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935119610Sache  (eval $ac_try) 2>&5
5936119610Sache  ac_status=$?
5937136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938157184Sache  (exit $ac_status); }; } &&
5939157184Sache	 { ac_try='test -s conftest.$ac_objext'
5940157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941157184Sache  (eval $ac_try) 2>&5
5942157184Sache  ac_status=$?
5943157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944119610Sache  (exit $ac_status); }; }; then
5945119610Sache  bash_cv_void_sighandler=yes
5946119610Sacheelse
5947119610Sache  echo "$as_me: failed program was:" >&5
5948136644Sachesed 's/^/| /' conftest.$ac_ext >&5
5949136644Sache
5950119610Sachebash_cv_void_sighandler=no
5951119610Sachefi
5952157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5953119610Sachefi
5954136644Sacheecho "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
5955119610Sacheecho "${ECHO_T}$bash_cv_void_sighandler" >&6
5956119610Sacheif test $bash_cv_void_sighandler = yes; then
5957136644Sachecat >>confdefs.h <<\_ACEOF
5958119610Sache#define VOID_SIGHANDLER 1
5959136644Sache_ACEOF
5960119610Sache
5961119610Sachefi
5962119610Sache
5963136644Sacheecho "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
5964119610Sacheecho $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
5965119610Sacheif test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
5966119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
5967119610Sacheelse
5968119610Sache  cat >conftest.$ac_ext <<_ACEOF
5969136644Sache/* confdefs.h.  */
5970136644Sache_ACEOF
5971136644Sachecat confdefs.h >>conftest.$ac_ext
5972136644Sachecat >>conftest.$ac_ext <<_ACEOF
5973136644Sache/* end confdefs.h.  */
5974119610Sache#include <sys/types.h>
597526497Sache#include <sys/ioctl.h>
5976119610Sacheint
5977119610Sachemain ()
5978119610Sache{
597926497Sacheint x = TIOCSTAT;
5980119610Sache  ;
5981119610Sache  return 0;
5982119610Sache}
5983119610Sache_ACEOF
5984119610Sacherm -f conftest.$ac_objext
5985136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5986157184Sache  (eval $ac_compile) 2>conftest.er1
5987119610Sache  ac_status=$?
5988157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
5989157184Sache  rm -f conftest.er1
5990157184Sache  cat conftest.err >&5
5991136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992119610Sache  (exit $ac_status); } &&
5993157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
5994157184Sache			 || test ! -s conftest.err'
5995136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996119610Sache  (eval $ac_try) 2>&5
5997119610Sache  ac_status=$?
5998136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999157184Sache  (exit $ac_status); }; } &&
6000157184Sache	 { ac_try='test -s conftest.$ac_objext'
6001157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002157184Sache  (eval $ac_try) 2>&5
6003157184Sache  ac_status=$?
6004157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005119610Sache  (exit $ac_status); }; }; then
600626497Sache  bash_cv_tiocstat_in_ioctl=yes
600726497Sacheelse
6008119610Sache  echo "$as_me: failed program was:" >&5
6009136644Sachesed 's/^/| /' conftest.$ac_ext >&5
6010136644Sache
6011119610Sachebash_cv_tiocstat_in_ioctl=no
601226497Sachefi
6013157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
601426497Sachefi
601526497Sache
6016136644Sacheecho "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
6017119610Sacheecho "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
6018119610Sacheif test $bash_cv_tiocstat_in_ioctl = yes; then
6019136644Sachecat >>confdefs.h <<\_ACEOF
602026497Sache#define TIOCSTAT_IN_SYS_IOCTL 1
6021136644Sache_ACEOF
602226497Sache
602326497Sachefi
602426497Sache
6025136644Sacheecho "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
6026119610Sacheecho $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
6027119610Sacheif test "${bash_cv_fionread_in_ioctl+set}" = set; then
6028119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
602926497Sacheelse
6030119610Sache  cat >conftest.$ac_ext <<_ACEOF
6031136644Sache/* confdefs.h.  */
6032136644Sache_ACEOF
6033136644Sachecat confdefs.h >>conftest.$ac_ext
6034136644Sachecat >>conftest.$ac_ext <<_ACEOF
6035136644Sache/* end confdefs.h.  */
603626497Sache#include <sys/types.h>
603726497Sache#include <sys/ioctl.h>
6038119610Sacheint
6039119610Sachemain ()
6040119610Sache{
604126497Sacheint x = FIONREAD;
6042119610Sache  ;
6043119610Sache  return 0;
6044119610Sache}
6045119610Sache_ACEOF
6046119610Sacherm -f conftest.$ac_objext
6047136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048157184Sache  (eval $ac_compile) 2>conftest.er1
6049119610Sache  ac_status=$?
6050157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
6051157184Sache  rm -f conftest.er1
6052157184Sache  cat conftest.err >&5
6053136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054119610Sache  (exit $ac_status); } &&
6055157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
6056157184Sache			 || test ! -s conftest.err'
6057136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058119610Sache  (eval $ac_try) 2>&5
6059119610Sache  ac_status=$?
6060136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061157184Sache  (exit $ac_status); }; } &&
6062157184Sache	 { ac_try='test -s conftest.$ac_objext'
6063157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064157184Sache  (eval $ac_try) 2>&5
6065157184Sache  ac_status=$?
6066157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067119610Sache  (exit $ac_status); }; }; then
606826497Sache  bash_cv_fionread_in_ioctl=yes
606926497Sacheelse
6070119610Sache  echo "$as_me: failed program was:" >&5
6071136644Sachesed 's/^/| /' conftest.$ac_ext >&5
6072136644Sache
6073119610Sachebash_cv_fionread_in_ioctl=no
607426497Sachefi
6075157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
607626497Sachefi
607726497Sache
6078136644Sacheecho "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
6079119610Sacheecho "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
6080119610Sacheif test $bash_cv_fionread_in_ioctl = yes; then
6081136644Sachecat >>confdefs.h <<\_ACEOF
608226497Sache#define FIONREAD_IN_SYS_IOCTL 1
6083136644Sache_ACEOF
608426497Sache
608526497Sachefi
608626497Sache
6087136644Sacheecho "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
6088119610Sacheecho $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
6089119610Sacheif test "${bash_cv_speed_t_in_sys_types+set}" = set; then
6090119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
609126497Sacheelse
6092119610Sache  cat >conftest.$ac_ext <<_ACEOF
6093136644Sache/* confdefs.h.  */
6094136644Sache_ACEOF
6095136644Sachecat confdefs.h >>conftest.$ac_ext
6096136644Sachecat >>conftest.$ac_ext <<_ACEOF
6097136644Sache/* end confdefs.h.  */
609826497Sache#include <sys/types.h>
6099119610Sacheint
6100119610Sachemain ()
6101119610Sache{
610226497Sachespeed_t x;
6103119610Sache  ;
6104119610Sache  return 0;
6105119610Sache}
6106119610Sache_ACEOF
6107119610Sacherm -f conftest.$ac_objext
6108136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6109157184Sache  (eval $ac_compile) 2>conftest.er1
6110119610Sache  ac_status=$?
6111157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
6112157184Sache  rm -f conftest.er1
6113157184Sache  cat conftest.err >&5
6114136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115119610Sache  (exit $ac_status); } &&
6116157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
6117157184Sache			 || test ! -s conftest.err'
6118136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119119610Sache  (eval $ac_try) 2>&5
6120119610Sache  ac_status=$?
6121136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122157184Sache  (exit $ac_status); }; } &&
6123157184Sache	 { ac_try='test -s conftest.$ac_objext'
6124157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125157184Sache  (eval $ac_try) 2>&5
6126157184Sache  ac_status=$?
6127157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128119610Sache  (exit $ac_status); }; }; then
612926497Sache  bash_cv_speed_t_in_sys_types=yes
613026497Sacheelse
6131119610Sache  echo "$as_me: failed program was:" >&5
6132136644Sachesed 's/^/| /' conftest.$ac_ext >&5
6133136644Sache
6134119610Sachebash_cv_speed_t_in_sys_types=no
613526497Sachefi
6136157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
613726497Sachefi
613826497Sache
6139136644Sacheecho "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
6140119610Sacheecho "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
6141119610Sacheif test $bash_cv_speed_t_in_sys_types = yes; then
6142136644Sachecat >>confdefs.h <<\_ACEOF
614326497Sache#define SPEED_T_IN_SYS_TYPES 1
6144136644Sache_ACEOF
614526497Sache
614626497Sachefi
614726497Sache
6148136644Sacheecho "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
6149119610Sacheecho $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
6150119610Sacheif test "${bash_cv_struct_winsize_header+set}" = set; then
6151119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
615235486Sacheelse
6153119610Sache  cat >conftest.$ac_ext <<_ACEOF
6154136644Sache/* confdefs.h.  */
6155136644Sache_ACEOF
6156136644Sachecat confdefs.h >>conftest.$ac_ext
6157136644Sachecat >>conftest.$ac_ext <<_ACEOF
6158136644Sache/* end confdefs.h.  */
615935486Sache#include <sys/types.h>
616035486Sache#include <sys/ioctl.h>
6161119610Sacheint
6162119610Sachemain ()
6163119610Sache{
616435486Sachestruct winsize x;
6165119610Sache  ;
6166119610Sache  return 0;
6167119610Sache}
6168119610Sache_ACEOF
6169119610Sacherm -f conftest.$ac_objext
6170136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6171157184Sache  (eval $ac_compile) 2>conftest.er1
6172119610Sache  ac_status=$?
6173157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
6174157184Sache  rm -f conftest.er1
6175157184Sache  cat conftest.err >&5
6176136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177119610Sache  (exit $ac_status); } &&
6178157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
6179157184Sache			 || test ! -s conftest.err'
6180136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181119610Sache  (eval $ac_try) 2>&5
6182119610Sache  ac_status=$?
6183136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184157184Sache  (exit $ac_status); }; } &&
6185157184Sache	 { ac_try='test -s conftest.$ac_objext'
6186157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187157184Sache  (eval $ac_try) 2>&5
6188157184Sache  ac_status=$?
6189157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190119610Sache  (exit $ac_status); }; }; then
619135486Sache  bash_cv_struct_winsize_header=ioctl_h
619235486Sacheelse
6193119610Sache  echo "$as_me: failed program was:" >&5
6194136644Sachesed 's/^/| /' conftest.$ac_ext >&5
6195136644Sache
6196119610Sachecat >conftest.$ac_ext <<_ACEOF
6197136644Sache/* confdefs.h.  */
6198136644Sache_ACEOF
6199136644Sachecat confdefs.h >>conftest.$ac_ext
6200136644Sachecat >>conftest.$ac_ext <<_ACEOF
6201136644Sache/* end confdefs.h.  */
620235486Sache#include <sys/types.h>
620335486Sache#include <termios.h>
6204119610Sacheint
6205119610Sachemain ()
6206119610Sache{
620735486Sachestruct winsize x;
6208119610Sache  ;
6209119610Sache  return 0;
6210119610Sache}
6211119610Sache_ACEOF
6212119610Sacherm -f conftest.$ac_objext
6213136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6214157184Sache  (eval $ac_compile) 2>conftest.er1
6215119610Sache  ac_status=$?
6216157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
6217157184Sache  rm -f conftest.er1
6218157184Sache  cat conftest.err >&5
6219136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220119610Sache  (exit $ac_status); } &&
6221157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
6222157184Sache			 || test ! -s conftest.err'
6223136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224119610Sache  (eval $ac_try) 2>&5
6225119610Sache  ac_status=$?
6226136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227157184Sache  (exit $ac_status); }; } &&
6228157184Sache	 { ac_try='test -s conftest.$ac_objext'
6229157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230157184Sache  (eval $ac_try) 2>&5
6231157184Sache  ac_status=$?
6232157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233119610Sache  (exit $ac_status); }; }; then
623435486Sache  bash_cv_struct_winsize_header=termios_h
623535486Sacheelse
6236119610Sache  echo "$as_me: failed program was:" >&5
6237136644Sachesed 's/^/| /' conftest.$ac_ext >&5
6238136644Sache
6239119610Sachebash_cv_struct_winsize_header=other
624035486Sachefi
6241157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
624226497Sache
624335486Sachefi
6244157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
624535486Sachefi
624635486Sache
624735486Sacheif test $bash_cv_struct_winsize_header = ioctl_h; then
6248136644Sache  echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
6249119610Sacheecho "${ECHO_T}sys/ioctl.h" >&6
6250136644Sache  cat >>confdefs.h <<\_ACEOF
625135486Sache#define STRUCT_WINSIZE_IN_SYS_IOCTL 1
6252136644Sache_ACEOF
625335486Sache
625435486Sacheelif test $bash_cv_struct_winsize_header = termios_h; then
6255136644Sache  echo "$as_me:$LINENO: result: termios.h" >&5
6256119610Sacheecho "${ECHO_T}termios.h" >&6
6257136644Sache  cat >>confdefs.h <<\_ACEOF
625835486Sache#define STRUCT_WINSIZE_IN_TERMIOS 1
6259136644Sache_ACEOF
626035486Sache
626135486Sacheelse
6262136644Sache  echo "$as_me:$LINENO: result: not found" >&5
6263119610Sacheecho "${ECHO_T}not found" >&6
626435486Sachefi
626535486Sache
6266136644Sache
6267136644Sacheecho "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
6268136644Sacheecho $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
6269119610Sacheif test "${bash_cv_dirent_has_dino+set}" = set; then
6270119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
627126497Sacheelse
6272119610Sache  cat >conftest.$ac_ext <<_ACEOF
6273136644Sache/* confdefs.h.  */
6274136644Sache_ACEOF
6275136644Sachecat confdefs.h >>conftest.$ac_ext
6276136644Sachecat >>conftest.$ac_ext <<_ACEOF
6277136644Sache/* end confdefs.h.  */
627826497Sache
627926497Sache#include <stdio.h>
628026497Sache#include <sys/types.h>
628126497Sache#ifdef HAVE_UNISTD_H
628226497Sache# include <unistd.h>
628326497Sache#endif /* HAVE_UNISTD_H */
628426497Sache#if defined(HAVE_DIRENT_H)
628526497Sache# include <dirent.h>
628626497Sache#else
628726497Sache# define dirent direct
628826497Sache# ifdef HAVE_SYS_NDIR_H
628926497Sache#  include <sys/ndir.h>
629026497Sache# endif /* SYSNDIR */
629126497Sache# ifdef HAVE_SYS_DIR_H
629226497Sache#  include <sys/dir.h>
629326497Sache# endif /* SYSDIR */
629426497Sache# ifdef HAVE_NDIR_H
629526497Sache#  include <ndir.h>
629626497Sache# endif
629726497Sache#endif /* HAVE_DIRENT_H */
629826497Sache
6299119610Sacheint
6300119610Sachemain ()
6301119610Sache{
630226497Sache
630326497Sachestruct dirent d; int z; z = d.d_ino;
630426497Sache
6305119610Sache  ;
6306119610Sache  return 0;
6307119610Sache}
6308119610Sache_ACEOF
6309119610Sacherm -f conftest.$ac_objext
6310136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6311157184Sache  (eval $ac_compile) 2>conftest.er1
6312119610Sache  ac_status=$?
6313157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
6314157184Sache  rm -f conftest.er1
6315157184Sache  cat conftest.err >&5
6316136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317119610Sache  (exit $ac_status); } &&
6318157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
6319157184Sache			 || test ! -s conftest.err'
6320136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321119610Sache  (eval $ac_try) 2>&5
6322119610Sache  ac_status=$?
6323136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324157184Sache  (exit $ac_status); }; } &&
6325157184Sache	 { ac_try='test -s conftest.$ac_objext'
6326157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327157184Sache  (eval $ac_try) 2>&5
6328157184Sache  ac_status=$?
6329157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330119610Sache  (exit $ac_status); }; }; then
633126497Sache  bash_cv_dirent_has_dino=yes
633226497Sacheelse
6333119610Sache  echo "$as_me: failed program was:" >&5
6334136644Sachesed 's/^/| /' conftest.$ac_ext >&5
6335136644Sache
6336119610Sachebash_cv_dirent_has_dino=no
633726497Sachefi
6338157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
633926497Sachefi
634026497Sache
6341136644Sacheecho "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
6342119610Sacheecho "${ECHO_T}$bash_cv_dirent_has_dino" >&6
634326497Sacheif test $bash_cv_dirent_has_dino = yes; then
6344136644Sachecat >>confdefs.h <<\_ACEOF
6345136644Sache#define HAVE_STRUCT_DIRENT_D_INO 1
6346136644Sache_ACEOF
634726497Sache
634826497Sachefi
634926497Sache
6350136644Sache
6351136644Sacheecho "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
6352136644Sacheecho $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
6353119610Sacheif test "${bash_cv_dirent_has_d_fileno+set}" = set; then
6354119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
635526497Sacheelse
6356119610Sache  cat >conftest.$ac_ext <<_ACEOF
6357136644Sache/* confdefs.h.  */
6358136644Sache_ACEOF
6359136644Sachecat confdefs.h >>conftest.$ac_ext
6360136644Sachecat >>conftest.$ac_ext <<_ACEOF
6361136644Sache/* end confdefs.h.  */
636226497Sache
636326497Sache#include <stdio.h>
636426497Sache#include <sys/types.h>
636526497Sache#ifdef HAVE_UNISTD_H
636626497Sache# include <unistd.h>
636726497Sache#endif /* HAVE_UNISTD_H */
636826497Sache#if defined(HAVE_DIRENT_H)
636926497Sache# include <dirent.h>
637026497Sache#else
637126497Sache# define dirent direct
637226497Sache# ifdef HAVE_SYS_NDIR_H
637326497Sache#  include <sys/ndir.h>
637426497Sache# endif /* SYSNDIR */
637526497Sache# ifdef HAVE_SYS_DIR_H
637626497Sache#  include <sys/dir.h>
637726497Sache# endif /* SYSDIR */
637826497Sache# ifdef HAVE_NDIR_H
637926497Sache#  include <ndir.h>
638026497Sache# endif
638126497Sache#endif /* HAVE_DIRENT_H */
638226497Sache
6383119610Sacheint
6384119610Sachemain ()
6385119610Sache{
638626497Sache
638726497Sachestruct dirent d; int z; z = d.d_fileno;
638826497Sache
6389119610Sache  ;
6390119610Sache  return 0;
6391119610Sache}
6392119610Sache_ACEOF
6393119610Sacherm -f conftest.$ac_objext
6394136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6395157184Sache  (eval $ac_compile) 2>conftest.er1
6396119610Sache  ac_status=$?
6397157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
6398157184Sache  rm -f conftest.er1
6399157184Sache  cat conftest.err >&5
6400136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401119610Sache  (exit $ac_status); } &&
6402157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
6403157184Sache			 || test ! -s conftest.err'
6404136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405119610Sache  (eval $ac_try) 2>&5
6406119610Sache  ac_status=$?
6407136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408157184Sache  (exit $ac_status); }; } &&
6409157184Sache	 { ac_try='test -s conftest.$ac_objext'
6410157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411157184Sache  (eval $ac_try) 2>&5
6412157184Sache  ac_status=$?
6413157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414119610Sache  (exit $ac_status); }; }; then
641526497Sache  bash_cv_dirent_has_d_fileno=yes
641626497Sacheelse
6417119610Sache  echo "$as_me: failed program was:" >&5
6418136644Sachesed 's/^/| /' conftest.$ac_ext >&5
6419136644Sache
6420119610Sachebash_cv_dirent_has_d_fileno=no
642126497Sachefi
6422157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
642326497Sachefi
642426497Sache
6425136644Sacheecho "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
6426119610Sacheecho "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
642726497Sacheif test $bash_cv_dirent_has_d_fileno = yes; then
6428136644Sachecat >>confdefs.h <<\_ACEOF
6429136644Sache#define HAVE_STRUCT_DIRENT_D_FILENO 1
6430136644Sache_ACEOF
643126497Sache
643226497Sachefi
643326497Sache
6434136644Sache
643535486Sachecase "$host_os" in
643635486Sacheaix*)   prefer_curses=yes ;;
643735486Sacheesac
643835486Sache
643935486Sacheif test "X$bash_cv_termcap_lib" = "X"; then
644035486Sache_bash_needmsg=yes
644135486Sacheelse
6442136644Sacheecho "$as_me:$LINENO: checking which library has the termcap functions" >&5
6443119610Sacheecho $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
644435486Sache_bash_needmsg=
644535486Sachefi
6446119610Sacheif test "${bash_cv_termcap_lib+set}" = set; then
6447119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
644835486Sacheelse
6449136644Sache  echo "$as_me:$LINENO: checking for tgetent" >&5
6450136644Sacheecho $ECHO_N "checking for tgetent... $ECHO_C" >&6
6451136644Sacheif test "${ac_cv_func_tgetent+set}" = set; then
6452136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
6453136644Sacheelse
6454136644Sache  cat >conftest.$ac_ext <<_ACEOF
6455136644Sache/* confdefs.h.  */
6456136644Sache_ACEOF
6457136644Sachecat confdefs.h >>conftest.$ac_ext
6458136644Sachecat >>conftest.$ac_ext <<_ACEOF
6459136644Sache/* end confdefs.h.  */
6460157184Sache/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
6461157184Sache   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6462157184Sache#define tgetent innocuous_tgetent
6463157184Sache
6464136644Sache/* System header to define __stub macros and hopefully few prototypes,
6465136644Sache    which can conflict with char tgetent (); below.
6466136644Sache    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6467136644Sache    <limits.h> exists even on freestanding compilers.  */
6468157184Sache
6469136644Sache#ifdef __STDC__
6470136644Sache# include <limits.h>
6471136644Sache#else
6472136644Sache# include <assert.h>
6473136644Sache#endif
6474157184Sache
6475157184Sache#undef tgetent
6476157184Sache
6477136644Sache/* Override any gcc2 internal prototype to avoid an error.  */
6478136644Sache#ifdef __cplusplus
6479136644Sacheextern "C"
6480136644Sache{
6481136644Sache#endif
6482136644Sache/* We use char because int might match the return type of a gcc2
6483136644Sache   builtin and then its argument prototype would still apply.  */
6484136644Sachechar tgetent ();
6485136644Sache/* The GNU C library defines this for functions which it implements
6486136644Sache    to always fail with ENOSYS.  Some functions are actually named
6487136644Sache    something starting with __ and the normal name is an alias.  */
6488136644Sache#if defined (__stub_tgetent) || defined (__stub___tgetent)
6489136644Sachechoke me
6490136644Sache#else
6491136644Sachechar (*f) () = tgetent;
6492136644Sache#endif
6493136644Sache#ifdef __cplusplus
6494136644Sache}
6495136644Sache#endif
6496136644Sache
6497136644Sacheint
6498136644Sachemain ()
6499136644Sache{
6500136644Sachereturn f != tgetent;
6501136644Sache  ;
6502136644Sache  return 0;
6503136644Sache}
6504136644Sache_ACEOF
6505136644Sacherm -f conftest.$ac_objext conftest$ac_exeext
6506136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6507157184Sache  (eval $ac_link) 2>conftest.er1
6508136644Sache  ac_status=$?
6509157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
6510157184Sache  rm -f conftest.er1
6511157184Sache  cat conftest.err >&5
6512136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513136644Sache  (exit $ac_status); } &&
6514157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
6515157184Sache			 || test ! -s conftest.err'
6516136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517136644Sache  (eval $ac_try) 2>&5
6518136644Sache  ac_status=$?
6519136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520157184Sache  (exit $ac_status); }; } &&
6521157184Sache	 { ac_try='test -s conftest$ac_exeext'
6522157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523157184Sache  (eval $ac_try) 2>&5
6524157184Sache  ac_status=$?
6525157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526136644Sache  (exit $ac_status); }; }; then
6527136644Sache  ac_cv_func_tgetent=yes
6528136644Sacheelse
6529136644Sache  echo "$as_me: failed program was:" >&5
6530136644Sachesed 's/^/| /' conftest.$ac_ext >&5
6531136644Sache
6532136644Sacheac_cv_func_tgetent=no
6533136644Sachefi
6534157184Sacherm -f conftest.err conftest.$ac_objext \
6535157184Sache      conftest$ac_exeext conftest.$ac_ext
6536136644Sachefi
6537136644Sacheecho "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
6538136644Sacheecho "${ECHO_T}$ac_cv_func_tgetent" >&6
6539136644Sacheif test $ac_cv_func_tgetent = yes; then
6540136644Sache  bash_cv_termcap_lib=libc
6541136644Sacheelse
6542136644Sache  echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
6543119610Sacheecho $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
6544119610Sacheif test "${ac_cv_lib_termcap_tgetent+set}" = set; then
6545119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
654635486Sacheelse
6547119610Sache  ac_check_lib_save_LIBS=$LIBS
654835486SacheLIBS="-ltermcap  $LIBS"
6549119610Sachecat >conftest.$ac_ext <<_ACEOF
6550136644Sache/* confdefs.h.  */
6551136644Sache_ACEOF
6552136644Sachecat confdefs.h >>conftest.$ac_ext
6553136644Sachecat >>conftest.$ac_ext <<_ACEOF
6554136644Sache/* end confdefs.h.  */
6555119610Sache
655635486Sache/* Override any gcc2 internal prototype to avoid an error.  */
6557119610Sache#ifdef __cplusplus
6558119610Sacheextern "C"
6559119610Sache#endif
656035486Sache/* We use char because int might match the return type of a gcc2
6561119610Sache   builtin and then its argument prototype would still apply.  */
6562119610Sachechar tgetent ();
6563119610Sacheint
6564119610Sachemain ()
6565119610Sache{
6566119610Sachetgetent ();
6567119610Sache  ;
6568119610Sache  return 0;
6569119610Sache}
6570119610Sache_ACEOF
6571119610Sacherm -f conftest.$ac_objext conftest$ac_exeext
6572136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573157184Sache  (eval $ac_link) 2>conftest.er1
6574119610Sache  ac_status=$?
6575157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
6576157184Sache  rm -f conftest.er1
6577157184Sache  cat conftest.err >&5
6578136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579119610Sache  (exit $ac_status); } &&
6580157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
6581157184Sache			 || test ! -s conftest.err'
6582136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583119610Sache  (eval $ac_try) 2>&5
6584119610Sache  ac_status=$?
6585136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586157184Sache  (exit $ac_status); }; } &&
6587157184Sache	 { ac_try='test -s conftest$ac_exeext'
6588157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589157184Sache  (eval $ac_try) 2>&5
6590157184Sache  ac_status=$?
6591157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592119610Sache  (exit $ac_status); }; }; then
6593119610Sache  ac_cv_lib_termcap_tgetent=yes
659435486Sacheelse
6595119610Sache  echo "$as_me: failed program was:" >&5
6596136644Sachesed 's/^/| /' conftest.$ac_ext >&5
6597136644Sache
6598119610Sacheac_cv_lib_termcap_tgetent=no
659935486Sachefi
6600157184Sacherm -f conftest.err conftest.$ac_objext \
6601157184Sache      conftest$ac_exeext conftest.$ac_ext
6602119610SacheLIBS=$ac_check_lib_save_LIBS
660335486Sachefi
6604136644Sacheecho "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
6605119610Sacheecho "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
6606119610Sacheif test $ac_cv_lib_termcap_tgetent = yes; then
660735486Sache  bash_cv_termcap_lib=libtermcap
660835486Sacheelse
6609136644Sache  echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
6610119610Sacheecho $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
6611119610Sacheif test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
6612119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
661335486Sacheelse
6614119610Sache  ac_check_lib_save_LIBS=$LIBS
6615119610SacheLIBS="-ltinfo  $LIBS"
6616119610Sachecat >conftest.$ac_ext <<_ACEOF
6617136644Sache/* confdefs.h.  */
6618136644Sache_ACEOF
6619136644Sachecat confdefs.h >>conftest.$ac_ext
6620136644Sachecat >>conftest.$ac_ext <<_ACEOF
6621136644Sache/* end confdefs.h.  */
6622119610Sache
662335486Sache/* Override any gcc2 internal prototype to avoid an error.  */
6624119610Sache#ifdef __cplusplus
6625119610Sacheextern "C"
6626119610Sache#endif
662735486Sache/* We use char because int might match the return type of a gcc2
6628119610Sache   builtin and then its argument prototype would still apply.  */
6629119610Sachechar tgetent ();
6630119610Sacheint
6631119610Sachemain ()
6632119610Sache{
6633119610Sachetgetent ();
6634119610Sache  ;
6635119610Sache  return 0;
6636119610Sache}
6637119610Sache_ACEOF
6638119610Sacherm -f conftest.$ac_objext conftest$ac_exeext
6639136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6640157184Sache  (eval $ac_link) 2>conftest.er1
6641119610Sache  ac_status=$?
6642157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
6643157184Sache  rm -f conftest.er1
6644157184Sache  cat conftest.err >&5
6645136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646119610Sache  (exit $ac_status); } &&
6647157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
6648157184Sache			 || test ! -s conftest.err'
6649136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650119610Sache  (eval $ac_try) 2>&5
6651119610Sache  ac_status=$?
6652136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653157184Sache  (exit $ac_status); }; } &&
6654157184Sache	 { ac_try='test -s conftest$ac_exeext'
6655157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656157184Sache  (eval $ac_try) 2>&5
6657157184Sache  ac_status=$?
6658157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659119610Sache  (exit $ac_status); }; }; then
6660119610Sache  ac_cv_lib_tinfo_tgetent=yes
666135486Sacheelse
6662119610Sache  echo "$as_me: failed program was:" >&5
6663136644Sachesed 's/^/| /' conftest.$ac_ext >&5
6664136644Sache
6665119610Sacheac_cv_lib_tinfo_tgetent=no
666635486Sachefi
6667157184Sacherm -f conftest.err conftest.$ac_objext \
6668157184Sache      conftest$ac_exeext conftest.$ac_ext
6669119610SacheLIBS=$ac_check_lib_save_LIBS
6670119610Sachefi
6671136644Sacheecho "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
6672119610Sacheecho "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
6673119610Sacheif test $ac_cv_lib_tinfo_tgetent = yes; then
6674119610Sache  bash_cv_termcap_lib=libtinfo
6675119610Sacheelse
6676136644Sache  echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6677119610Sacheecho $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6678119610Sacheif test "${ac_cv_lib_curses_tgetent+set}" = set; then
6679119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
6680119610Sacheelse
6681119610Sache  ac_check_lib_save_LIBS=$LIBS
6682119610SacheLIBS="-lcurses  $LIBS"
6683119610Sachecat >conftest.$ac_ext <<_ACEOF
6684136644Sache/* confdefs.h.  */
6685136644Sache_ACEOF
6686136644Sachecat confdefs.h >>conftest.$ac_ext
6687136644Sachecat >>conftest.$ac_ext <<_ACEOF
6688136644Sache/* end confdefs.h.  */
668935486Sache
6690119610Sache/* Override any gcc2 internal prototype to avoid an error.  */
6691119610Sache#ifdef __cplusplus
6692119610Sacheextern "C"
6693119610Sache#endif
6694119610Sache/* We use char because int might match the return type of a gcc2
6695119610Sache   builtin and then its argument prototype would still apply.  */
6696119610Sachechar tgetent ();
6697119610Sacheint
6698119610Sachemain ()
6699119610Sache{
6700119610Sachetgetent ();
6701119610Sache  ;
6702119610Sache  return 0;
6703119610Sache}
6704119610Sache_ACEOF
6705119610Sacherm -f conftest.$ac_objext conftest$ac_exeext
6706136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6707157184Sache  (eval $ac_link) 2>conftest.er1
6708119610Sache  ac_status=$?
6709157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
6710157184Sache  rm -f conftest.er1
6711157184Sache  cat conftest.err >&5
6712136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713119610Sache  (exit $ac_status); } &&
6714157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
6715157184Sache			 || test ! -s conftest.err'
6716136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717119610Sache  (eval $ac_try) 2>&5
6718119610Sache  ac_status=$?
6719136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720157184Sache  (exit $ac_status); }; } &&
6721157184Sache	 { ac_try='test -s conftest$ac_exeext'
6722157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723157184Sache  (eval $ac_try) 2>&5
6724157184Sache  ac_status=$?
6725157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726119610Sache  (exit $ac_status); }; }; then
6727119610Sache  ac_cv_lib_curses_tgetent=yes
6728119610Sacheelse
6729119610Sache  echo "$as_me: failed program was:" >&5
6730136644Sachesed 's/^/| /' conftest.$ac_ext >&5
6731136644Sache
6732119610Sacheac_cv_lib_curses_tgetent=no
673335486Sachefi
6734157184Sacherm -f conftest.err conftest.$ac_objext \
6735157184Sache      conftest$ac_exeext conftest.$ac_ext
6736119610SacheLIBS=$ac_check_lib_save_LIBS
6737119610Sachefi
6738136644Sacheecho "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6739119610Sacheecho "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6740119610Sacheif test $ac_cv_lib_curses_tgetent = yes; then
674135486Sache  bash_cv_termcap_lib=libcurses
674235486Sacheelse
6743136644Sache  echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
6744119610Sacheecho $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
6745119610Sacheif test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
6746119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
674735486Sacheelse
6748119610Sache  ac_check_lib_save_LIBS=$LIBS
674935486SacheLIBS="-lncurses  $LIBS"
6750119610Sachecat >conftest.$ac_ext <<_ACEOF
6751136644Sache/* confdefs.h.  */
6752136644Sache_ACEOF
6753136644Sachecat confdefs.h >>conftest.$ac_ext
6754136644Sachecat >>conftest.$ac_ext <<_ACEOF
6755136644Sache/* end confdefs.h.  */
6756119610Sache
675735486Sache/* Override any gcc2 internal prototype to avoid an error.  */
6758119610Sache#ifdef __cplusplus
6759119610Sacheextern "C"
6760119610Sache#endif
676135486Sache/* We use char because int might match the return type of a gcc2
6762119610Sache   builtin and then its argument prototype would still apply.  */
6763119610Sachechar tgetent ();
6764119610Sacheint
6765119610Sachemain ()
6766119610Sache{
6767119610Sachetgetent ();
6768119610Sache  ;
6769119610Sache  return 0;
6770119610Sache}
6771119610Sache_ACEOF
6772119610Sacherm -f conftest.$ac_objext conftest$ac_exeext
6773136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6774157184Sache  (eval $ac_link) 2>conftest.er1
6775119610Sache  ac_status=$?
6776157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
6777157184Sache  rm -f conftest.er1
6778157184Sache  cat conftest.err >&5
6779136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780119610Sache  (exit $ac_status); } &&
6781157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
6782157184Sache			 || test ! -s conftest.err'
6783136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784119610Sache  (eval $ac_try) 2>&5
6785119610Sache  ac_status=$?
6786136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787157184Sache  (exit $ac_status); }; } &&
6788157184Sache	 { ac_try='test -s conftest$ac_exeext'
6789157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790157184Sache  (eval $ac_try) 2>&5
6791157184Sache  ac_status=$?
6792157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793119610Sache  (exit $ac_status); }; }; then
6794119610Sache  ac_cv_lib_ncurses_tgetent=yes
679535486Sacheelse
6796119610Sache  echo "$as_me: failed program was:" >&5
6797136644Sachesed 's/^/| /' conftest.$ac_ext >&5
6798136644Sache
6799119610Sacheac_cv_lib_ncurses_tgetent=no
680035486Sachefi
6801157184Sacherm -f conftest.err conftest.$ac_objext \
6802157184Sache      conftest$ac_exeext conftest.$ac_ext
6803119610SacheLIBS=$ac_check_lib_save_LIBS
680435486Sachefi
6805136644Sacheecho "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
6806119610Sacheecho "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
6807119610Sacheif test $ac_cv_lib_ncurses_tgetent = yes; then
680835486Sache  bash_cv_termcap_lib=libncurses
680935486Sacheelse
6810119610Sache  bash_cv_termcap_lib=gnutermcap
681135486Sachefi
681235486Sache
681335486Sachefi
681435486Sache
681535486Sachefi
681635486Sache
681735486Sachefi
681835486Sache
6819119610Sachefi
6820119610Sache
6821136644Sachefi
6822136644Sache
682335486Sacheif test "X$_bash_needmsg" = "Xyes"; then
6824136644Sacheecho "$as_me:$LINENO: checking which library has the termcap functions" >&5
6825119610Sacheecho $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
682635486Sachefi
6827136644Sacheecho "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
6828119610Sacheecho "${ECHO_T}using $bash_cv_termcap_lib" >&6
682935486Sacheif test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
683035486SacheLDFLAGS="$LDFLAGS -L./lib/termcap"
683135486SacheTERMCAP_LIB="./lib/termcap/libtermcap.a"
683235486SacheTERMCAP_DEP="./lib/termcap/libtermcap.a"
683335486Sacheelif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
683435486SacheTERMCAP_LIB=-ltermcap
683535486SacheTERMCAP_DEP=
6836119610Sacheelif test $bash_cv_termcap_lib = libtinfo; then
6837119610SacheTERMCAP_LIB=-ltinfo
6838119610SacheTERMCAP_DEP=
683935486Sacheelif test $bash_cv_termcap_lib = libncurses; then
684035486SacheTERMCAP_LIB=-lncurses
684135486SacheTERMCAP_DEP=
6842136644Sacheelif test $bash_cv_termcap_lib = libc; then
6843136644SacheTERMCAP_LIB=
6844136644SacheTERMCAP_DEP=
684535486Sacheelse
684635486SacheTERMCAP_LIB=-lcurses
684735486SacheTERMCAP_DEP=
684835486Sachefi
684935486Sache
685035486Sacheif test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
6851119610Sache	if test "$prefer_curses" = yes; then
6852119610Sache		TERMCAP_LIB=-lcurses
6853119610Sache	else
6854119610Sache		TERMCAP_LIB=-ltermcap	#default
6855119610Sache	fi
685635486Sachefi
685735486Sache
6858136644Sache
6859136644Sache
6860119610Sachefor ac_header in wctype.h
6861119610Sachedo
6862119610Sacheas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6863136644Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
6864136644Sache  echo "$as_me:$LINENO: checking for $ac_header" >&5
6865119610Sacheecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6866119610Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
6867119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
6868136644Sachefi
6869136644Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6870136644Sacheecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6871119610Sacheelse
6872136644Sache  # Is the header compilable?
6873136644Sacheecho "$as_me:$LINENO: checking $ac_header usability" >&5
6874136644Sacheecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6875136644Sachecat >conftest.$ac_ext <<_ACEOF
6876136644Sache/* confdefs.h.  */
6877136644Sache_ACEOF
6878136644Sachecat confdefs.h >>conftest.$ac_ext
6879136644Sachecat >>conftest.$ac_ext <<_ACEOF
6880136644Sache/* end confdefs.h.  */
6881136644Sache$ac_includes_default
6882119610Sache#include <$ac_header>
6883119610Sache_ACEOF
6884136644Sacherm -f conftest.$ac_objext
6885136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886157184Sache  (eval $ac_compile) 2>conftest.er1
6887136644Sache  ac_status=$?
6888157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
6889157184Sache  rm -f conftest.er1
6890157184Sache  cat conftest.err >&5
6891136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892136644Sache  (exit $ac_status); } &&
6893157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
6894157184Sache			 || test ! -s conftest.err'
6895136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896136644Sache  (eval $ac_try) 2>&5
6897136644Sache  ac_status=$?
6898136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899157184Sache  (exit $ac_status); }; } &&
6900157184Sache	 { ac_try='test -s conftest.$ac_objext'
6901157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902157184Sache  (eval $ac_try) 2>&5
6903157184Sache  ac_status=$?
6904157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905136644Sache  (exit $ac_status); }; }; then
6906136644Sache  ac_header_compiler=yes
6907136644Sacheelse
6908136644Sache  echo "$as_me: failed program was:" >&5
6909136644Sachesed 's/^/| /' conftest.$ac_ext >&5
6910136644Sache
6911136644Sacheac_header_compiler=no
6912136644Sachefi
6913157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6914136644Sacheecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
6915136644Sacheecho "${ECHO_T}$ac_header_compiler" >&6
6916136644Sache
6917136644Sache# Is the header present?
6918136644Sacheecho "$as_me:$LINENO: checking $ac_header presence" >&5
6919136644Sacheecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6920136644Sachecat >conftest.$ac_ext <<_ACEOF
6921136644Sache/* confdefs.h.  */
6922136644Sache_ACEOF
6923136644Sachecat confdefs.h >>conftest.$ac_ext
6924136644Sachecat >>conftest.$ac_ext <<_ACEOF
6925136644Sache/* end confdefs.h.  */
6926136644Sache#include <$ac_header>
6927136644Sache_ACEOF
6928136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6929119610Sache  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6930119610Sache  ac_status=$?
6931136644Sache  grep -v '^ *+' conftest.er1 >conftest.err
6932119610Sache  rm -f conftest.er1
6933119610Sache  cat conftest.err >&5
6934136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935119610Sache  (exit $ac_status); } >/dev/null; then
6936119610Sache  if test -s conftest.err; then
6937119610Sache    ac_cpp_err=$ac_c_preproc_warn_flag
6938157184Sache    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6939119610Sache  else
6940119610Sache    ac_cpp_err=
6941119610Sache  fi
6942119610Sacheelse
6943119610Sache  ac_cpp_err=yes
6944119610Sachefi
6945119610Sacheif test -z "$ac_cpp_err"; then
6946136644Sache  ac_header_preproc=yes
6947119610Sacheelse
6948119610Sache  echo "$as_me: failed program was:" >&5
6949136644Sachesed 's/^/| /' conftest.$ac_ext >&5
6950136644Sache
6951136644Sache  ac_header_preproc=no
6952119610Sachefi
6953119610Sacherm -f conftest.err conftest.$ac_ext
6954136644Sacheecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
6955136644Sacheecho "${ECHO_T}$ac_header_preproc" >&6
6956136644Sache
6957136644Sache# So?  What about this header?
6958157184Sachecase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6959157184Sache  yes:no: )
6960136644Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6961136644Sacheecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6962157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6963157184Sacheecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6964157184Sache    ac_header_preproc=yes
6965136644Sache    ;;
6966157184Sache  no:yes:* )
6967136644Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6968136644Sacheecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6969157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6970157184Sacheecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6971157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6972157184Sacheecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6973157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6974157184Sacheecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6975136644Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6976136644Sacheecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6977157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6978157184Sacheecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6979136644Sache    (
6980136644Sache      cat <<\_ASBOX
6981157184Sache## ----------------------------------- ##
6982157184Sache## Report this to bug-readline@gnu.org ##
6983157184Sache## ----------------------------------- ##
6984136644Sache_ASBOX
6985136644Sache    ) |
6986136644Sache      sed "s/^/$as_me: WARNING:     /" >&2
6987136644Sache    ;;
6988136644Sacheesac
6989136644Sacheecho "$as_me:$LINENO: checking for $ac_header" >&5
6990136644Sacheecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6991136644Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
6992136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
6993136644Sacheelse
6994157184Sache  eval "$as_ac_Header=\$ac_header_preproc"
6995119610Sachefi
6996136644Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6997119610Sacheecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6998136644Sache
6999136644Sachefi
7000119610Sacheif test `eval echo '${'$as_ac_Header'}'` = yes; then
7001136644Sache  cat >>confdefs.h <<_ACEOF
7002119610Sache#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7003136644Sache_ACEOF
7004119610Sache
7005119610Sachefi
7006136644Sache
7007119610Sachedone
7008119610Sache
7009136644Sache
7010119610Sachefor ac_header in wchar.h
7011119610Sachedo
7012119610Sacheas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7013136644Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
7014136644Sache  echo "$as_me:$LINENO: checking for $ac_header" >&5
7015119610Sacheecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7016119610Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
7017119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
7018136644Sachefi
7019136644Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7020136644Sacheecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7021119610Sacheelse
7022136644Sache  # Is the header compilable?
7023136644Sacheecho "$as_me:$LINENO: checking $ac_header usability" >&5
7024136644Sacheecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7025136644Sachecat >conftest.$ac_ext <<_ACEOF
7026136644Sache/* confdefs.h.  */
7027136644Sache_ACEOF
7028136644Sachecat confdefs.h >>conftest.$ac_ext
7029136644Sachecat >>conftest.$ac_ext <<_ACEOF
7030136644Sache/* end confdefs.h.  */
7031136644Sache$ac_includes_default
7032119610Sache#include <$ac_header>
7033119610Sache_ACEOF
7034136644Sacherm -f conftest.$ac_objext
7035136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036157184Sache  (eval $ac_compile) 2>conftest.er1
7037136644Sache  ac_status=$?
7038157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
7039157184Sache  rm -f conftest.er1
7040157184Sache  cat conftest.err >&5
7041136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042136644Sache  (exit $ac_status); } &&
7043157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
7044157184Sache			 || test ! -s conftest.err'
7045136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046136644Sache  (eval $ac_try) 2>&5
7047136644Sache  ac_status=$?
7048136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049157184Sache  (exit $ac_status); }; } &&
7050157184Sache	 { ac_try='test -s conftest.$ac_objext'
7051157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052157184Sache  (eval $ac_try) 2>&5
7053157184Sache  ac_status=$?
7054157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055136644Sache  (exit $ac_status); }; }; then
7056136644Sache  ac_header_compiler=yes
7057136644Sacheelse
7058136644Sache  echo "$as_me: failed program was:" >&5
7059136644Sachesed 's/^/| /' conftest.$ac_ext >&5
7060136644Sache
7061136644Sacheac_header_compiler=no
7062136644Sachefi
7063157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7064136644Sacheecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
7065136644Sacheecho "${ECHO_T}$ac_header_compiler" >&6
7066136644Sache
7067136644Sache# Is the header present?
7068136644Sacheecho "$as_me:$LINENO: checking $ac_header presence" >&5
7069136644Sacheecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7070136644Sachecat >conftest.$ac_ext <<_ACEOF
7071136644Sache/* confdefs.h.  */
7072136644Sache_ACEOF
7073136644Sachecat confdefs.h >>conftest.$ac_ext
7074136644Sachecat >>conftest.$ac_ext <<_ACEOF
7075136644Sache/* end confdefs.h.  */
7076136644Sache#include <$ac_header>
7077136644Sache_ACEOF
7078136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7079119610Sache  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7080119610Sache  ac_status=$?
7081136644Sache  grep -v '^ *+' conftest.er1 >conftest.err
7082119610Sache  rm -f conftest.er1
7083119610Sache  cat conftest.err >&5
7084136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085119610Sache  (exit $ac_status); } >/dev/null; then
7086119610Sache  if test -s conftest.err; then
7087119610Sache    ac_cpp_err=$ac_c_preproc_warn_flag
7088157184Sache    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7089119610Sache  else
7090119610Sache    ac_cpp_err=
7091119610Sache  fi
7092119610Sacheelse
7093119610Sache  ac_cpp_err=yes
7094119610Sachefi
7095119610Sacheif test -z "$ac_cpp_err"; then
7096136644Sache  ac_header_preproc=yes
7097119610Sacheelse
7098119610Sache  echo "$as_me: failed program was:" >&5
7099136644Sachesed 's/^/| /' conftest.$ac_ext >&5
7100136644Sache
7101136644Sache  ac_header_preproc=no
7102119610Sachefi
7103119610Sacherm -f conftest.err conftest.$ac_ext
7104136644Sacheecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
7105136644Sacheecho "${ECHO_T}$ac_header_preproc" >&6
7106136644Sache
7107136644Sache# So?  What about this header?
7108157184Sachecase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7109157184Sache  yes:no: )
7110136644Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7111136644Sacheecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7112157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7113157184Sacheecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7114157184Sache    ac_header_preproc=yes
7115136644Sache    ;;
7116157184Sache  no:yes:* )
7117136644Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7118136644Sacheecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7119157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7120157184Sacheecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7121157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7122157184Sacheecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7123157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7124157184Sacheecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7125136644Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7126136644Sacheecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7127157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7128157184Sacheecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7129136644Sache    (
7130136644Sache      cat <<\_ASBOX
7131157184Sache## ----------------------------------- ##
7132157184Sache## Report this to bug-readline@gnu.org ##
7133157184Sache## ----------------------------------- ##
7134136644Sache_ASBOX
7135136644Sache    ) |
7136136644Sache      sed "s/^/$as_me: WARNING:     /" >&2
7137136644Sache    ;;
7138136644Sacheesac
7139136644Sacheecho "$as_me:$LINENO: checking for $ac_header" >&5
7140136644Sacheecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7141136644Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
7142136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
7143136644Sacheelse
7144157184Sache  eval "$as_ac_Header=\$ac_header_preproc"
7145119610Sachefi
7146136644Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7147119610Sacheecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7148136644Sache
7149136644Sachefi
7150119610Sacheif test `eval echo '${'$as_ac_Header'}'` = yes; then
7151136644Sache  cat >>confdefs.h <<_ACEOF
7152119610Sache#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7153136644Sache_ACEOF
7154119610Sache
7155119610Sachefi
7156136644Sache
7157119610Sachedone
7158119610Sache
7159136644Sache
7160119610Sachefor ac_header in langinfo.h
7161119610Sachedo
7162119610Sacheas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7163136644Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
7164136644Sache  echo "$as_me:$LINENO: checking for $ac_header" >&5
7165119610Sacheecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7166119610Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
7167119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
7168136644Sachefi
7169136644Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7170136644Sacheecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7171119610Sacheelse
7172136644Sache  # Is the header compilable?
7173136644Sacheecho "$as_me:$LINENO: checking $ac_header usability" >&5
7174136644Sacheecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7175136644Sachecat >conftest.$ac_ext <<_ACEOF
7176136644Sache/* confdefs.h.  */
7177136644Sache_ACEOF
7178136644Sachecat confdefs.h >>conftest.$ac_ext
7179136644Sachecat >>conftest.$ac_ext <<_ACEOF
7180136644Sache/* end confdefs.h.  */
7181136644Sache$ac_includes_default
7182119610Sache#include <$ac_header>
7183119610Sache_ACEOF
7184136644Sacherm -f conftest.$ac_objext
7185136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7186157184Sache  (eval $ac_compile) 2>conftest.er1
7187136644Sache  ac_status=$?
7188157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
7189157184Sache  rm -f conftest.er1
7190157184Sache  cat conftest.err >&5
7191136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192136644Sache  (exit $ac_status); } &&
7193157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
7194157184Sache			 || test ! -s conftest.err'
7195136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196136644Sache  (eval $ac_try) 2>&5
7197136644Sache  ac_status=$?
7198136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199157184Sache  (exit $ac_status); }; } &&
7200157184Sache	 { ac_try='test -s conftest.$ac_objext'
7201157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202157184Sache  (eval $ac_try) 2>&5
7203157184Sache  ac_status=$?
7204157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205136644Sache  (exit $ac_status); }; }; then
7206136644Sache  ac_header_compiler=yes
7207136644Sacheelse
7208136644Sache  echo "$as_me: failed program was:" >&5
7209136644Sachesed 's/^/| /' conftest.$ac_ext >&5
7210136644Sache
7211136644Sacheac_header_compiler=no
7212136644Sachefi
7213157184Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7214136644Sacheecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
7215136644Sacheecho "${ECHO_T}$ac_header_compiler" >&6
7216136644Sache
7217136644Sache# Is the header present?
7218136644Sacheecho "$as_me:$LINENO: checking $ac_header presence" >&5
7219136644Sacheecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7220136644Sachecat >conftest.$ac_ext <<_ACEOF
7221136644Sache/* confdefs.h.  */
7222136644Sache_ACEOF
7223136644Sachecat confdefs.h >>conftest.$ac_ext
7224136644Sachecat >>conftest.$ac_ext <<_ACEOF
7225136644Sache/* end confdefs.h.  */
7226136644Sache#include <$ac_header>
7227136644Sache_ACEOF
7228136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7229119610Sache  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7230119610Sache  ac_status=$?
7231136644Sache  grep -v '^ *+' conftest.er1 >conftest.err
7232119610Sache  rm -f conftest.er1
7233119610Sache  cat conftest.err >&5
7234136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235119610Sache  (exit $ac_status); } >/dev/null; then
7236119610Sache  if test -s conftest.err; then
7237119610Sache    ac_cpp_err=$ac_c_preproc_warn_flag
7238157184Sache    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7239119610Sache  else
7240119610Sache    ac_cpp_err=
7241119610Sache  fi
7242119610Sacheelse
7243119610Sache  ac_cpp_err=yes
7244119610Sachefi
7245119610Sacheif test -z "$ac_cpp_err"; then
7246136644Sache  ac_header_preproc=yes
7247119610Sacheelse
7248119610Sache  echo "$as_me: failed program was:" >&5
7249136644Sachesed 's/^/| /' conftest.$ac_ext >&5
7250136644Sache
7251136644Sache  ac_header_preproc=no
7252119610Sachefi
7253119610Sacherm -f conftest.err conftest.$ac_ext
7254136644Sacheecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
7255136644Sacheecho "${ECHO_T}$ac_header_preproc" >&6
7256136644Sache
7257136644Sache# So?  What about this header?
7258157184Sachecase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7259157184Sache  yes:no: )
7260136644Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7261136644Sacheecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7262157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7263157184Sacheecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7264157184Sache    ac_header_preproc=yes
7265136644Sache    ;;
7266157184Sache  no:yes:* )
7267136644Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7268136644Sacheecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7269157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7270157184Sacheecho "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7271157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7272157184Sacheecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7273157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7274157184Sacheecho "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7275136644Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7276136644Sacheecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7277157184Sache    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7278157184Sacheecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7279136644Sache    (
7280136644Sache      cat <<\_ASBOX
7281157184Sache## ----------------------------------- ##
7282157184Sache## Report this to bug-readline@gnu.org ##
7283157184Sache## ----------------------------------- ##
7284136644Sache_ASBOX
7285136644Sache    ) |
7286136644Sache      sed "s/^/$as_me: WARNING:     /" >&2
7287136644Sache    ;;
7288136644Sacheesac
7289136644Sacheecho "$as_me:$LINENO: checking for $ac_header" >&5
7290136644Sacheecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7291136644Sacheif eval "test \"\${$as_ac_Header+set}\" = set"; then
7292136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
7293136644Sacheelse
7294157184Sache  eval "$as_ac_Header=\$ac_header_preproc"
7295119610Sachefi
7296136644Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7297119610Sacheecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7298136644Sache
7299136644Sachefi
7300119610Sacheif test `eval echo '${'$as_ac_Header'}'` = yes; then
7301136644Sache  cat >>confdefs.h <<_ACEOF
7302119610Sache#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7303136644Sache_ACEOF
7304119610Sache
7305119610Sachefi
7306136644Sache
7307119610Sachedone
7308119610Sache
7309136644Sache
7310136644Sacheecho "$as_me:$LINENO: checking for mbsrtowcs" >&5
7311119610Sacheecho $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
7312119610Sacheif test "${ac_cv_func_mbsrtowcs+set}" = set; then
7313119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
7314119610Sacheelse
7315119610Sache  cat >conftest.$ac_ext <<_ACEOF
7316136644Sache/* confdefs.h.  */
7317136644Sache_ACEOF
7318136644Sachecat confdefs.h >>conftest.$ac_ext
7319136644Sachecat >>conftest.$ac_ext <<_ACEOF
7320136644Sache/* end confdefs.h.  */
7321157184Sache/* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
7322157184Sache   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7323157184Sache#define mbsrtowcs innocuous_mbsrtowcs
7324157184Sache
7325119610Sache/* System header to define __stub macros and hopefully few prototypes,
7326136644Sache    which can conflict with char mbsrtowcs (); below.
7327136644Sache    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7328136644Sache    <limits.h> exists even on freestanding compilers.  */
7329157184Sache
7330136644Sache#ifdef __STDC__
7331136644Sache# include <limits.h>
7332136644Sache#else
7333136644Sache# include <assert.h>
7334136644Sache#endif
7335157184Sache
7336157184Sache#undef mbsrtowcs
7337157184Sache
7338119610Sache/* Override any gcc2 internal prototype to avoid an error.  */
7339119610Sache#ifdef __cplusplus
7340119610Sacheextern "C"
7341136644Sache{
7342119610Sache#endif
7343119610Sache/* We use char because int might match the return type of a gcc2
7344119610Sache   builtin and then its argument prototype would still apply.  */
7345119610Sachechar mbsrtowcs ();
7346119610Sache/* The GNU C library defines this for functions which it implements
7347119610Sache    to always fail with ENOSYS.  Some functions are actually named
7348119610Sache    something starting with __ and the normal name is an alias.  */
7349119610Sache#if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
7350119610Sachechoke me
7351119610Sache#else
7352136644Sachechar (*f) () = mbsrtowcs;
7353119610Sache#endif
7354136644Sache#ifdef __cplusplus
7355136644Sache}
7356136644Sache#endif
7357119610Sache
7358136644Sacheint
7359136644Sachemain ()
7360136644Sache{
7361136644Sachereturn f != mbsrtowcs;
7362119610Sache  ;
7363119610Sache  return 0;
7364119610Sache}
7365119610Sache_ACEOF
7366119610Sacherm -f conftest.$ac_objext conftest$ac_exeext
7367136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7368157184Sache  (eval $ac_link) 2>conftest.er1
7369119610Sache  ac_status=$?
7370157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
7371157184Sache  rm -f conftest.er1
7372157184Sache  cat conftest.err >&5
7373136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374119610Sache  (exit $ac_status); } &&
7375157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
7376157184Sache			 || test ! -s conftest.err'
7377136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378119610Sache  (eval $ac_try) 2>&5
7379119610Sache  ac_status=$?
7380136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381157184Sache  (exit $ac_status); }; } &&
7382157184Sache	 { ac_try='test -s conftest$ac_exeext'
7383157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384157184Sache  (eval $ac_try) 2>&5
7385157184Sache  ac_status=$?
7386157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387119610Sache  (exit $ac_status); }; }; then
7388119610Sache  ac_cv_func_mbsrtowcs=yes
7389119610Sacheelse
7390119610Sache  echo "$as_me: failed program was:" >&5
7391136644Sachesed 's/^/| /' conftest.$ac_ext >&5
7392136644Sache
7393119610Sacheac_cv_func_mbsrtowcs=no
7394119610Sachefi
7395157184Sacherm -f conftest.err conftest.$ac_objext \
7396157184Sache      conftest$ac_exeext conftest.$ac_ext
7397119610Sachefi
7398136644Sacheecho "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
7399119610Sacheecho "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
7400119610Sacheif test $ac_cv_func_mbsrtowcs = yes; then
7401136644Sache  cat >>confdefs.h <<\_ACEOF
7402119610Sache#define HAVE_MBSRTOWCS 1
7403136644Sache_ACEOF
7404119610Sache
7405119610Sachefi
7406119610Sache
7407165670Sacheecho "$as_me:$LINENO: checking for mbrlen" >&5
7408165670Sacheecho $ECHO_N "checking for mbrlen... $ECHO_C" >&6
7409165670Sacheif test "${ac_cv_func_mbrlen+set}" = set; then
7410119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
7411119610Sacheelse
7412119610Sache  cat >conftest.$ac_ext <<_ACEOF
7413136644Sache/* confdefs.h.  */
7414136644Sache_ACEOF
7415136644Sachecat confdefs.h >>conftest.$ac_ext
7416136644Sachecat >>conftest.$ac_ext <<_ACEOF
7417136644Sache/* end confdefs.h.  */
7418165670Sache/* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
7419157184Sache   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7420165670Sache#define mbrlen innocuous_mbrlen
7421157184Sache
7422119610Sache/* System header to define __stub macros and hopefully few prototypes,
7423165670Sache    which can conflict with char mbrlen (); below.
7424136644Sache    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7425136644Sache    <limits.h> exists even on freestanding compilers.  */
7426157184Sache
7427136644Sache#ifdef __STDC__
7428136644Sache# include <limits.h>
7429136644Sache#else
7430136644Sache# include <assert.h>
7431136644Sache#endif
7432157184Sache
7433165670Sache#undef mbrlen
7434157184Sache
7435119610Sache/* Override any gcc2 internal prototype to avoid an error.  */
7436119610Sache#ifdef __cplusplus
7437119610Sacheextern "C"
7438136644Sache{
7439119610Sache#endif
7440119610Sache/* We use char because int might match the return type of a gcc2
7441119610Sache   builtin and then its argument prototype would still apply.  */
7442165670Sachechar mbrlen ();
7443136644Sache/* The GNU C library defines this for functions which it implements
7444136644Sache    to always fail with ENOSYS.  Some functions are actually named
7445136644Sache    something starting with __ and the normal name is an alias.  */
7446165670Sache#if defined (__stub_mbrlen) || defined (__stub___mbrlen)
7447136644Sachechoke me
7448136644Sache#else
7449165670Sachechar (*f) () = mbrlen;
7450136644Sache#endif
7451136644Sache#ifdef __cplusplus
7452136644Sache}
7453136644Sache#endif
7454119610Sache
7455119610Sacheint
7456119610Sachemain ()
7457119610Sache{
7458165670Sachereturn f != mbrlen;
7459136644Sache  ;
7460136644Sache  return 0;
7461136644Sache}
7462136644Sache_ACEOF
7463136644Sacherm -f conftest.$ac_objext conftest$ac_exeext
7464136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7465157184Sache  (eval $ac_link) 2>conftest.er1
7466136644Sache  ac_status=$?
7467157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
7468157184Sache  rm -f conftest.er1
7469157184Sache  cat conftest.err >&5
7470136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471136644Sache  (exit $ac_status); } &&
7472157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
7473157184Sache			 || test ! -s conftest.err'
7474136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475136644Sache  (eval $ac_try) 2>&5
7476136644Sache  ac_status=$?
7477136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478157184Sache  (exit $ac_status); }; } &&
7479157184Sache	 { ac_try='test -s conftest$ac_exeext'
7480157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481157184Sache  (eval $ac_try) 2>&5
7482157184Sache  ac_status=$?
7483157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484136644Sache  (exit $ac_status); }; }; then
7485165670Sache  ac_cv_func_mbrlen=yes
7486136644Sacheelse
7487136644Sache  echo "$as_me: failed program was:" >&5
7488136644Sachesed 's/^/| /' conftest.$ac_ext >&5
7489136644Sache
7490165670Sacheac_cv_func_mbrlen=no
7491136644Sachefi
7492157184Sacherm -f conftest.err conftest.$ac_objext \
7493157184Sache      conftest$ac_exeext conftest.$ac_ext
7494136644Sachefi
7495165670Sacheecho "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
7496165670Sacheecho "${ECHO_T}$ac_cv_func_mbrlen" >&6
7497165670Sacheif test $ac_cv_func_mbrlen = yes; then
7498136644Sache  cat >>confdefs.h <<\_ACEOF
7499165670Sache#define HAVE_MBRLEN 1
7500136644Sache_ACEOF
7501136644Sache
7502136644Sachefi
7503136644Sache
7504165670Sache
7505165670Sacheecho "$as_me:$LINENO: checking for wcrtomb" >&5
7506165670Sacheecho $ECHO_N "checking for wcrtomb... $ECHO_C" >&6
7507165670Sacheif test "${ac_cv_func_wcrtomb+set}" = set; then
7508136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
7509136644Sacheelse
7510136644Sache  cat >conftest.$ac_ext <<_ACEOF
7511136644Sache/* confdefs.h.  */
7512136644Sache_ACEOF
7513136644Sachecat confdefs.h >>conftest.$ac_ext
7514136644Sachecat >>conftest.$ac_ext <<_ACEOF
7515136644Sache/* end confdefs.h.  */
7516165670Sache/* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
7517157184Sache   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7518165670Sache#define wcrtomb innocuous_wcrtomb
7519157184Sache
7520136644Sache/* System header to define __stub macros and hopefully few prototypes,
7521165670Sache    which can conflict with char wcrtomb (); below.
7522136644Sache    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7523136644Sache    <limits.h> exists even on freestanding compilers.  */
7524157184Sache
7525136644Sache#ifdef __STDC__
7526136644Sache# include <limits.h>
7527136644Sache#else
7528136644Sache# include <assert.h>
7529136644Sache#endif
7530157184Sache
7531165670Sache#undef wcrtomb
7532157184Sache
7533136644Sache/* Override any gcc2 internal prototype to avoid an error.  */
7534136644Sache#ifdef __cplusplus
7535136644Sacheextern "C"
7536136644Sache{
7537136644Sache#endif
7538136644Sache/* We use char because int might match the return type of a gcc2
7539136644Sache   builtin and then its argument prototype would still apply.  */
7540165670Sachechar wcrtomb ();
7541119610Sache/* The GNU C library defines this for functions which it implements
7542119610Sache    to always fail with ENOSYS.  Some functions are actually named
7543119610Sache    something starting with __ and the normal name is an alias.  */
7544165670Sache#if defined (__stub_wcrtomb) || defined (__stub___wcrtomb)
7545136644Sachechoke me
7546136644Sache#else
7547165670Sachechar (*f) () = wcrtomb;
7548136644Sache#endif
7549136644Sache#ifdef __cplusplus
7550136644Sache}
7551136644Sache#endif
7552136644Sache
7553136644Sacheint
7554136644Sachemain ()
7555136644Sache{
7556165670Sachereturn f != wcrtomb;
7557136644Sache  ;
7558136644Sache  return 0;
7559136644Sache}
7560136644Sache_ACEOF
7561136644Sacherm -f conftest.$ac_objext conftest$ac_exeext
7562136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7563157184Sache  (eval $ac_link) 2>conftest.er1
7564136644Sache  ac_status=$?
7565157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
7566157184Sache  rm -f conftest.er1
7567157184Sache  cat conftest.err >&5
7568136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569136644Sache  (exit $ac_status); } &&
7570157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
7571157184Sache			 || test ! -s conftest.err'
7572136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573136644Sache  (eval $ac_try) 2>&5
7574136644Sache  ac_status=$?
7575136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576157184Sache  (exit $ac_status); }; } &&
7577157184Sache	 { ac_try='test -s conftest$ac_exeext'
7578157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579157184Sache  (eval $ac_try) 2>&5
7580157184Sache  ac_status=$?
7581157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582136644Sache  (exit $ac_status); }; }; then
7583165670Sache  ac_cv_func_wcrtomb=yes
7584136644Sacheelse
7585136644Sache  echo "$as_me: failed program was:" >&5
7586136644Sachesed 's/^/| /' conftest.$ac_ext >&5
7587136644Sache
7588165670Sacheac_cv_func_wcrtomb=no
7589136644Sachefi
7590157184Sacherm -f conftest.err conftest.$ac_objext \
7591157184Sache      conftest$ac_exeext conftest.$ac_ext
7592136644Sachefi
7593165670Sacheecho "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
7594165670Sacheecho "${ECHO_T}$ac_cv_func_wcrtomb" >&6
7595165670Sacheif test $ac_cv_func_wcrtomb = yes; then
7596136644Sache  cat >>confdefs.h <<\_ACEOF
7597165670Sache#define HAVE_WCRTOMB 1
7598136644Sache_ACEOF
7599136644Sache
7600136644Sachefi
7601136644Sache
7602165670Sacheecho "$as_me:$LINENO: checking for wcscoll" >&5
7603165670Sacheecho $ECHO_N "checking for wcscoll... $ECHO_C" >&6
7604165670Sacheif test "${ac_cv_func_wcscoll+set}" = set; then
7605136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
7606136644Sacheelse
7607136644Sache  cat >conftest.$ac_ext <<_ACEOF
7608136644Sache/* confdefs.h.  */
7609136644Sache_ACEOF
7610136644Sachecat confdefs.h >>conftest.$ac_ext
7611136644Sachecat >>conftest.$ac_ext <<_ACEOF
7612136644Sache/* end confdefs.h.  */
7613165670Sache/* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
7614157184Sache   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7615165670Sache#define wcscoll innocuous_wcscoll
7616157184Sache
7617136644Sache/* System header to define __stub macros and hopefully few prototypes,
7618165670Sache    which can conflict with char wcscoll (); below.
7619136644Sache    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7620136644Sache    <limits.h> exists even on freestanding compilers.  */
7621157184Sache
7622136644Sache#ifdef __STDC__
7623136644Sache# include <limits.h>
7624136644Sache#else
7625136644Sache# include <assert.h>
7626136644Sache#endif
7627157184Sache
7628165670Sache#undef wcscoll
7629157184Sache
7630136644Sache/* Override any gcc2 internal prototype to avoid an error.  */
7631136644Sache#ifdef __cplusplus
7632136644Sacheextern "C"
7633136644Sache{
7634136644Sache#endif
7635136644Sache/* We use char because int might match the return type of a gcc2
7636136644Sache   builtin and then its argument prototype would still apply.  */
7637165670Sachechar wcscoll ();
7638136644Sache/* The GNU C library defines this for functions which it implements
7639136644Sache    to always fail with ENOSYS.  Some functions are actually named
7640136644Sache    something starting with __ and the normal name is an alias.  */
7641165670Sache#if defined (__stub_wcscoll) || defined (__stub___wcscoll)
7642136644Sachechoke me
7643136644Sache#else
7644165670Sachechar (*f) () = wcscoll;
7645136644Sache#endif
7646136644Sache#ifdef __cplusplus
7647136644Sache}
7648136644Sache#endif
7649136644Sache
7650136644Sacheint
7651136644Sachemain ()
7652136644Sache{
7653165670Sachereturn f != wcscoll;
7654136644Sache  ;
7655136644Sache  return 0;
7656136644Sache}
7657136644Sache_ACEOF
7658136644Sacherm -f conftest.$ac_objext conftest$ac_exeext
7659136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7660157184Sache  (eval $ac_link) 2>conftest.er1
7661136644Sache  ac_status=$?
7662157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
7663157184Sache  rm -f conftest.er1
7664157184Sache  cat conftest.err >&5
7665136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666136644Sache  (exit $ac_status); } &&
7667157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
7668157184Sache			 || test ! -s conftest.err'
7669136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670136644Sache  (eval $ac_try) 2>&5
7671136644Sache  ac_status=$?
7672136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673157184Sache  (exit $ac_status); }; } &&
7674157184Sache	 { ac_try='test -s conftest$ac_exeext'
7675157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676157184Sache  (eval $ac_try) 2>&5
7677157184Sache  ac_status=$?
7678157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679136644Sache  (exit $ac_status); }; }; then
7680165670Sache  ac_cv_func_wcscoll=yes
7681136644Sacheelse
7682136644Sache  echo "$as_me: failed program was:" >&5
7683136644Sachesed 's/^/| /' conftest.$ac_ext >&5
7684136644Sache
7685165670Sacheac_cv_func_wcscoll=no
7686136644Sachefi
7687157184Sacherm -f conftest.err conftest.$ac_objext \
7688157184Sache      conftest$ac_exeext conftest.$ac_ext
7689136644Sachefi
7690165670Sacheecho "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
7691165670Sacheecho "${ECHO_T}$ac_cv_func_wcscoll" >&6
7692165670Sacheif test $ac_cv_func_wcscoll = yes; then
7693136644Sache  cat >>confdefs.h <<\_ACEOF
7694165670Sache#define HAVE_WCSCOLL 1
7695136644Sache_ACEOF
7696136644Sache
7697136644Sachefi
7698136644Sache
7699165670Sacheecho "$as_me:$LINENO: checking for wcsdup" >&5
7700165670Sacheecho $ECHO_N "checking for wcsdup... $ECHO_C" >&6
7701165670Sacheif test "${ac_cv_func_wcsdup+set}" = set; then
7702165670Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
7703165670Sacheelse
7704165670Sache  cat >conftest.$ac_ext <<_ACEOF
7705165670Sache/* confdefs.h.  */
7706165670Sache_ACEOF
7707165670Sachecat confdefs.h >>conftest.$ac_ext
7708165670Sachecat >>conftest.$ac_ext <<_ACEOF
7709165670Sache/* end confdefs.h.  */
7710165670Sache/* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
7711165670Sache   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7712165670Sache#define wcsdup innocuous_wcsdup
7713165670Sache
7714165670Sache/* System header to define __stub macros and hopefully few prototypes,
7715165670Sache    which can conflict with char wcsdup (); below.
7716165670Sache    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7717165670Sache    <limits.h> exists even on freestanding compilers.  */
7718165670Sache
7719165670Sache#ifdef __STDC__
7720165670Sache# include <limits.h>
7721165670Sache#else
7722165670Sache# include <assert.h>
7723165670Sache#endif
7724165670Sache
7725165670Sache#undef wcsdup
7726165670Sache
7727165670Sache/* Override any gcc2 internal prototype to avoid an error.  */
7728165670Sache#ifdef __cplusplus
7729165670Sacheextern "C"
7730165670Sache{
7731165670Sache#endif
7732165670Sache/* We use char because int might match the return type of a gcc2
7733165670Sache   builtin and then its argument prototype would still apply.  */
7734165670Sachechar wcsdup ();
7735165670Sache/* The GNU C library defines this for functions which it implements
7736165670Sache    to always fail with ENOSYS.  Some functions are actually named
7737165670Sache    something starting with __ and the normal name is an alias.  */
7738165670Sache#if defined (__stub_wcsdup) || defined (__stub___wcsdup)
7739165670Sachechoke me
7740165670Sache#else
7741165670Sachechar (*f) () = wcsdup;
7742165670Sache#endif
7743165670Sache#ifdef __cplusplus
7744165670Sache}
7745165670Sache#endif
7746165670Sache
7747165670Sacheint
7748165670Sachemain ()
7749165670Sache{
7750165670Sachereturn f != wcsdup;
7751165670Sache  ;
7752165670Sache  return 0;
7753165670Sache}
7754165670Sache_ACEOF
7755165670Sacherm -f conftest.$ac_objext conftest$ac_exeext
7756165670Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7757165670Sache  (eval $ac_link) 2>conftest.er1
7758165670Sache  ac_status=$?
7759165670Sache  grep -v '^ *+' conftest.er1 >conftest.err
7760165670Sache  rm -f conftest.er1
7761165670Sache  cat conftest.err >&5
7762165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763165670Sache  (exit $ac_status); } &&
7764165670Sache	 { ac_try='test -z "$ac_c_werror_flag"
7765165670Sache			 || test ! -s conftest.err'
7766165670Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767165670Sache  (eval $ac_try) 2>&5
7768165670Sache  ac_status=$?
7769165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770165670Sache  (exit $ac_status); }; } &&
7771165670Sache	 { ac_try='test -s conftest$ac_exeext'
7772165670Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773165670Sache  (eval $ac_try) 2>&5
7774165670Sache  ac_status=$?
7775165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776165670Sache  (exit $ac_status); }; }; then
7777165670Sache  ac_cv_func_wcsdup=yes
7778165670Sacheelse
7779165670Sache  echo "$as_me: failed program was:" >&5
7780165670Sachesed 's/^/| /' conftest.$ac_ext >&5
7781165670Sache
7782165670Sacheac_cv_func_wcsdup=no
7783165670Sachefi
7784165670Sacherm -f conftest.err conftest.$ac_objext \
7785165670Sache      conftest$ac_exeext conftest.$ac_ext
7786165670Sachefi
7787165670Sacheecho "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
7788165670Sacheecho "${ECHO_T}$ac_cv_func_wcsdup" >&6
7789165670Sacheif test $ac_cv_func_wcsdup = yes; then
7790165670Sache  cat >>confdefs.h <<\_ACEOF
7791165670Sache#define HAVE_WCSDUP 1
7792165670Sache_ACEOF
7793165670Sache
7794165670Sachefi
7795165670Sache
7796136644Sacheecho "$as_me:$LINENO: checking for wcwidth" >&5
7797136644Sacheecho $ECHO_N "checking for wcwidth... $ECHO_C" >&6
7798136644Sacheif test "${ac_cv_func_wcwidth+set}" = set; then
7799136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
7800136644Sacheelse
7801136644Sache  cat >conftest.$ac_ext <<_ACEOF
7802136644Sache/* confdefs.h.  */
7803136644Sache_ACEOF
7804136644Sachecat confdefs.h >>conftest.$ac_ext
7805136644Sachecat >>conftest.$ac_ext <<_ACEOF
7806136644Sache/* end confdefs.h.  */
7807157184Sache/* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
7808157184Sache   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7809157184Sache#define wcwidth innocuous_wcwidth
7810157184Sache
7811136644Sache/* System header to define __stub macros and hopefully few prototypes,
7812136644Sache    which can conflict with char wcwidth (); below.
7813136644Sache    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7814136644Sache    <limits.h> exists even on freestanding compilers.  */
7815157184Sache
7816136644Sache#ifdef __STDC__
7817136644Sache# include <limits.h>
7818136644Sache#else
7819136644Sache# include <assert.h>
7820136644Sache#endif
7821157184Sache
7822157184Sache#undef wcwidth
7823157184Sache
7824136644Sache/* Override any gcc2 internal prototype to avoid an error.  */
7825136644Sache#ifdef __cplusplus
7826136644Sacheextern "C"
7827136644Sache{
7828136644Sache#endif
7829136644Sache/* We use char because int might match the return type of a gcc2
7830136644Sache   builtin and then its argument prototype would still apply.  */
7831136644Sachechar wcwidth ();
7832136644Sache/* The GNU C library defines this for functions which it implements
7833136644Sache    to always fail with ENOSYS.  Some functions are actually named
7834136644Sache    something starting with __ and the normal name is an alias.  */
7835119610Sache#if defined (__stub_wcwidth) || defined (__stub___wcwidth)
7836119610Sachechoke me
7837119610Sache#else
7838136644Sachechar (*f) () = wcwidth;
7839119610Sache#endif
7840136644Sache#ifdef __cplusplus
7841136644Sache}
7842136644Sache#endif
7843119610Sache
7844136644Sacheint
7845136644Sachemain ()
7846136644Sache{
7847136644Sachereturn f != wcwidth;
7848119610Sache  ;
7849119610Sache  return 0;
7850119610Sache}
7851119610Sache_ACEOF
7852119610Sacherm -f conftest.$ac_objext conftest$ac_exeext
7853136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7854157184Sache  (eval $ac_link) 2>conftest.er1
7855119610Sache  ac_status=$?
7856157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
7857157184Sache  rm -f conftest.er1
7858157184Sache  cat conftest.err >&5
7859136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860119610Sache  (exit $ac_status); } &&
7861157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
7862157184Sache			 || test ! -s conftest.err'
7863136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864119610Sache  (eval $ac_try) 2>&5
7865119610Sache  ac_status=$?
7866136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867157184Sache  (exit $ac_status); }; } &&
7868157184Sache	 { ac_try='test -s conftest$ac_exeext'
7869157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870157184Sache  (eval $ac_try) 2>&5
7871157184Sache  ac_status=$?
7872157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873119610Sache  (exit $ac_status); }; }; then
7874119610Sache  ac_cv_func_wcwidth=yes
7875119610Sacheelse
7876119610Sache  echo "$as_me: failed program was:" >&5
7877136644Sachesed 's/^/| /' conftest.$ac_ext >&5
7878136644Sache
7879119610Sacheac_cv_func_wcwidth=no
7880119610Sachefi
7881157184Sacherm -f conftest.err conftest.$ac_objext \
7882157184Sache      conftest$ac_exeext conftest.$ac_ext
7883119610Sachefi
7884136644Sacheecho "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
7885119610Sacheecho "${ECHO_T}$ac_cv_func_wcwidth" >&6
7886119610Sacheif test $ac_cv_func_wcwidth = yes; then
7887136644Sache  cat >>confdefs.h <<\_ACEOF
7888119610Sache#define HAVE_WCWIDTH 1
7889136644Sache_ACEOF
7890119610Sache
7891119610Sachefi
7892119610Sache
7893165670Sacheecho "$as_me:$LINENO: checking for wctype" >&5
7894165670Sacheecho $ECHO_N "checking for wctype... $ECHO_C" >&6
7895165670Sacheif test "${ac_cv_func_wctype+set}" = set; then
7896136644Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
7897136644Sacheelse
7898136644Sache  cat >conftest.$ac_ext <<_ACEOF
7899136644Sache/* confdefs.h.  */
7900136644Sache_ACEOF
7901136644Sachecat confdefs.h >>conftest.$ac_ext
7902136644Sachecat >>conftest.$ac_ext <<_ACEOF
7903136644Sache/* end confdefs.h.  */
7904165670Sache/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7905157184Sache   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7906165670Sache#define wctype innocuous_wctype
7907157184Sache
7908136644Sache/* System header to define __stub macros and hopefully few prototypes,
7909165670Sache    which can conflict with char wctype (); below.
7910136644Sache    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7911136644Sache    <limits.h> exists even on freestanding compilers.  */
7912157184Sache
7913136644Sache#ifdef __STDC__
7914136644Sache# include <limits.h>
7915136644Sache#else
7916136644Sache# include <assert.h>
7917136644Sache#endif
7918157184Sache
7919165670Sache#undef wctype
7920157184Sache
7921136644Sache/* Override any gcc2 internal prototype to avoid an error.  */
7922136644Sache#ifdef __cplusplus
7923136644Sacheextern "C"
7924136644Sache{
7925136644Sache#endif
7926136644Sache/* We use char because int might match the return type of a gcc2
7927136644Sache   builtin and then its argument prototype would still apply.  */
7928165670Sachechar wctype ();
7929136644Sache/* The GNU C library defines this for functions which it implements
7930136644Sache    to always fail with ENOSYS.  Some functions are actually named
7931136644Sache    something starting with __ and the normal name is an alias.  */
7932165670Sache#if defined (__stub_wctype) || defined (__stub___wctype)
7933136644Sachechoke me
7934136644Sache#else
7935165670Sachechar (*f) () = wctype;
7936136644Sache#endif
7937136644Sache#ifdef __cplusplus
7938136644Sache}
7939136644Sache#endif
7940136644Sache
7941136644Sacheint
7942136644Sachemain ()
7943136644Sache{
7944165670Sachereturn f != wctype;
7945136644Sache  ;
7946136644Sache  return 0;
7947136644Sache}
7948136644Sache_ACEOF
7949136644Sacherm -f conftest.$ac_objext conftest$ac_exeext
7950136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951157184Sache  (eval $ac_link) 2>conftest.er1
7952136644Sache  ac_status=$?
7953157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
7954157184Sache  rm -f conftest.er1
7955157184Sache  cat conftest.err >&5
7956136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957136644Sache  (exit $ac_status); } &&
7958157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
7959157184Sache			 || test ! -s conftest.err'
7960136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961136644Sache  (eval $ac_try) 2>&5
7962136644Sache  ac_status=$?
7963136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964157184Sache  (exit $ac_status); }; } &&
7965157184Sache	 { ac_try='test -s conftest$ac_exeext'
7966157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967157184Sache  (eval $ac_try) 2>&5
7968157184Sache  ac_status=$?
7969157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970136644Sache  (exit $ac_status); }; }; then
7971165670Sache  ac_cv_func_wctype=yes
7972136644Sacheelse
7973136644Sache  echo "$as_me: failed program was:" >&5
7974136644Sachesed 's/^/| /' conftest.$ac_ext >&5
7975136644Sache
7976165670Sacheac_cv_func_wctype=no
7977136644Sachefi
7978157184Sacherm -f conftest.err conftest.$ac_objext \
7979157184Sache      conftest$ac_exeext conftest.$ac_ext
7980136644Sachefi
7981165670Sacheecho "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7982165670Sacheecho "${ECHO_T}$ac_cv_func_wctype" >&6
7983165670Sacheif test $ac_cv_func_wctype = yes; then
7984136644Sache  cat >>confdefs.h <<\_ACEOF
7985165670Sache#define HAVE_WCTYPE 1
7986136644Sache_ACEOF
7987136644Sache
7988136644Sachefi
7989136644Sache
7990136644Sache
7991165670Sache
7992165670Sache  echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
7993165670Sacheecho $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
7994165670Sacheif test "${ac_cv_func_mbrtowc+set}" = set; then
7995119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
7996119610Sacheelse
7997119610Sache  cat >conftest.$ac_ext <<_ACEOF
7998136644Sache/* confdefs.h.  */
7999136644Sache_ACEOF
8000136644Sachecat confdefs.h >>conftest.$ac_ext
8001136644Sachecat >>conftest.$ac_ext <<_ACEOF
8002136644Sache/* end confdefs.h.  */
8003119610Sache#include <wchar.h>
8004119610Sacheint
8005119610Sachemain ()
8006119610Sache{
8007165670Sachembstate_t state; return ! (sizeof state && mbrtowc);
8008136644Sache  ;
8009119610Sache  return 0;
8010119610Sache}
8011119610Sache_ACEOF
8012165670Sacherm -f conftest.$ac_objext conftest$ac_exeext
8013165670Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8014165670Sache  (eval $ac_link) 2>conftest.er1
8015119610Sache  ac_status=$?
8016157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
8017157184Sache  rm -f conftest.er1
8018157184Sache  cat conftest.err >&5
8019136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020136644Sache  (exit $ac_status); } &&
8021157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
8022157184Sache			 || test ! -s conftest.err'
8023136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024119610Sache  (eval $ac_try) 2>&5
8025119610Sache  ac_status=$?
8026136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027157184Sache  (exit $ac_status); }; } &&
8028165670Sache	 { ac_try='test -s conftest$ac_exeext'
8029157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030157184Sache  (eval $ac_try) 2>&5
8031157184Sache  ac_status=$?
8032157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033119610Sache  (exit $ac_status); }; }; then
8034165670Sache  ac_cv_func_mbrtowc=yes
8035119610Sacheelse
8036136644Sache  echo "$as_me: failed program was:" >&5
8037136644Sachesed 's/^/| /' conftest.$ac_ext >&5
8038136644Sache
8039165670Sacheac_cv_func_mbrtowc=no
8040119610Sachefi
8041165670Sacherm -f conftest.err conftest.$ac_objext \
8042165670Sache      conftest$ac_exeext conftest.$ac_ext
8043119610Sachefi
8044165670Sacheecho "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
8045165670Sacheecho "${ECHO_T}$ac_cv_func_mbrtowc" >&6
8046165670Sache  if test $ac_cv_func_mbrtowc = yes; then
8047165670Sache
8048165670Sachecat >>confdefs.h <<\_ACEOF
8049165670Sache#define HAVE_MBRTOWC 1
8050165670Sache_ACEOF
8051165670Sache
8052165670Sache  fi
8053165670Sache
8054165670Sacheif test $ac_cv_func_mbrtowc = yes; then
8055136644Sache	cat >>confdefs.h <<\_ACEOF
8056119610Sache#define HAVE_MBSTATE_T 1
8057136644Sache_ACEOF
8058119610Sache
8059119610Sachefi
8060119610Sache
8061165670Sache
8062165670Sache
8063165670Sache
8064165670Sache
8065165670Sache
8066165670Sachefor ac_func in iswlower iswupper towlower towupper iswctype
8067165670Sachedo
8068165670Sacheas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8069165670Sacheecho "$as_me:$LINENO: checking for $ac_func" >&5
8070165670Sacheecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8071165670Sacheif eval "test \"\${$as_ac_var+set}\" = set"; then
8072165670Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
8073165670Sacheelse
8074165670Sache  cat >conftest.$ac_ext <<_ACEOF
8075165670Sache/* confdefs.h.  */
8076165670Sache_ACEOF
8077165670Sachecat confdefs.h >>conftest.$ac_ext
8078165670Sachecat >>conftest.$ac_ext <<_ACEOF
8079165670Sache/* end confdefs.h.  */
8080165670Sache/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8081165670Sache   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8082165670Sache#define $ac_func innocuous_$ac_func
8083165670Sache
8084165670Sache/* System header to define __stub macros and hopefully few prototypes,
8085165670Sache    which can conflict with char $ac_func (); below.
8086165670Sache    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8087165670Sache    <limits.h> exists even on freestanding compilers.  */
8088165670Sache
8089165670Sache#ifdef __STDC__
8090165670Sache# include <limits.h>
8091165670Sache#else
8092165670Sache# include <assert.h>
8093165670Sache#endif
8094165670Sache
8095165670Sache#undef $ac_func
8096165670Sache
8097165670Sache/* Override any gcc2 internal prototype to avoid an error.  */
8098165670Sache#ifdef __cplusplus
8099165670Sacheextern "C"
8100165670Sache{
8101165670Sache#endif
8102165670Sache/* We use char because int might match the return type of a gcc2
8103165670Sache   builtin and then its argument prototype would still apply.  */
8104165670Sachechar $ac_func ();
8105165670Sache/* The GNU C library defines this for functions which it implements
8106165670Sache    to always fail with ENOSYS.  Some functions are actually named
8107165670Sache    something starting with __ and the normal name is an alias.  */
8108165670Sache#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8109165670Sachechoke me
8110165670Sache#else
8111165670Sachechar (*f) () = $ac_func;
8112165670Sache#endif
8113165670Sache#ifdef __cplusplus
8114165670Sache}
8115165670Sache#endif
8116165670Sache
8117165670Sacheint
8118165670Sachemain ()
8119165670Sache{
8120165670Sachereturn f != $ac_func;
8121165670Sache  ;
8122165670Sache  return 0;
8123165670Sache}
8124165670Sache_ACEOF
8125165670Sacherm -f conftest.$ac_objext conftest$ac_exeext
8126165670Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8127165670Sache  (eval $ac_link) 2>conftest.er1
8128165670Sache  ac_status=$?
8129165670Sache  grep -v '^ *+' conftest.er1 >conftest.err
8130165670Sache  rm -f conftest.er1
8131165670Sache  cat conftest.err >&5
8132165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133165670Sache  (exit $ac_status); } &&
8134165670Sache	 { ac_try='test -z "$ac_c_werror_flag"
8135165670Sache			 || test ! -s conftest.err'
8136165670Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137165670Sache  (eval $ac_try) 2>&5
8138165670Sache  ac_status=$?
8139165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140165670Sache  (exit $ac_status); }; } &&
8141165670Sache	 { ac_try='test -s conftest$ac_exeext'
8142165670Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143165670Sache  (eval $ac_try) 2>&5
8144165670Sache  ac_status=$?
8145165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146165670Sache  (exit $ac_status); }; }; then
8147165670Sache  eval "$as_ac_var=yes"
8148165670Sacheelse
8149165670Sache  echo "$as_me: failed program was:" >&5
8150165670Sachesed 's/^/| /' conftest.$ac_ext >&5
8151165670Sache
8152165670Sacheeval "$as_ac_var=no"
8153165670Sachefi
8154165670Sacherm -f conftest.err conftest.$ac_objext \
8155165670Sache      conftest$ac_exeext conftest.$ac_ext
8156165670Sachefi
8157165670Sacheecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8158165670Sacheecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8159165670Sacheif test `eval echo '${'$as_ac_var'}'` = yes; then
8160165670Sache  cat >>confdefs.h <<_ACEOF
8161165670Sache#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8162165670Sache_ACEOF
8163165670Sache
8164165670Sachefi
8165165670Sachedone
8166165670Sache
8167165670Sache
8168136644Sacheecho "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8169119610Sacheecho $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8170119610Sacheif test "${bash_cv_langinfo_codeset+set}" = set; then
8171119610Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
8172119610Sacheelse
8173119610Sache  cat >conftest.$ac_ext <<_ACEOF
8174136644Sache/* confdefs.h.  */
8175136644Sache_ACEOF
8176136644Sachecat confdefs.h >>conftest.$ac_ext
8177136644Sachecat >>conftest.$ac_ext <<_ACEOF
8178136644Sache/* end confdefs.h.  */
8179119610Sache#include <langinfo.h>
8180119610Sacheint
8181119610Sachemain ()
8182119610Sache{
8183119610Sachechar* cs = nl_langinfo(CODESET);
8184119610Sache  ;
8185119610Sache  return 0;
8186119610Sache}
8187119610Sache_ACEOF
8188119610Sacherm -f conftest.$ac_objext conftest$ac_exeext
8189136644Sacheif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190157184Sache  (eval $ac_link) 2>conftest.er1
8191119610Sache  ac_status=$?
8192157184Sache  grep -v '^ *+' conftest.er1 >conftest.err
8193157184Sache  rm -f conftest.er1
8194157184Sache  cat conftest.err >&5
8195136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196119610Sache  (exit $ac_status); } &&
8197157184Sache	 { ac_try='test -z "$ac_c_werror_flag"
8198157184Sache			 || test ! -s conftest.err'
8199136644Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200119610Sache  (eval $ac_try) 2>&5
8201119610Sache  ac_status=$?
8202136644Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203157184Sache  (exit $ac_status); }; } &&
8204157184Sache	 { ac_try='test -s conftest$ac_exeext'
8205157184Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206157184Sache  (eval $ac_try) 2>&5
8207157184Sache  ac_status=$?
8208157184Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209119610Sache  (exit $ac_status); }; }; then
8210119610Sache  bash_cv_langinfo_codeset=yes
8211119610Sacheelse
8212119610Sache  echo "$as_me: failed program was:" >&5
8213136644Sachesed 's/^/| /' conftest.$ac_ext >&5
8214136644Sache
8215119610Sachebash_cv_langinfo_codeset=no
8216119610Sachefi
8217157184Sacherm -f conftest.err conftest.$ac_objext \
8218157184Sache      conftest$ac_exeext conftest.$ac_ext
8219119610Sachefi
8220136644Sacheecho "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
8221119610Sacheecho "${ECHO_T}$bash_cv_langinfo_codeset" >&6
8222119610Sacheif test $bash_cv_langinfo_codeset = yes; then
8223136644Sache  cat >>confdefs.h <<\_ACEOF
8224119610Sache#define HAVE_LANGINFO_CODESET 1
8225136644Sache_ACEOF
8226119610Sache
8227119610Sachefi
8228119610Sache
8229165670Sacheecho "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
8230165670Sacheecho $ECHO_N "checking for wchar_t in wchar.h... $ECHO_C" >&6
8231165670Sacheif test "${bash_cv_type_wchar_t+set}" = set; then
8232165670Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
8233165670Sacheelse
8234165670Sache  cat >conftest.$ac_ext <<_ACEOF
8235165670Sache/* confdefs.h.  */
8236165670Sache_ACEOF
8237165670Sachecat confdefs.h >>conftest.$ac_ext
8238165670Sachecat >>conftest.$ac_ext <<_ACEOF
8239165670Sache/* end confdefs.h.  */
8240165670Sache#include <wchar.h>
8241136644Sache
8242165670Sacheint
8243165670Sachemain ()
8244165670Sache{
8245136644Sache
8246165670Sache        wchar_t foo;
8247165670Sache        foo = 0;
8248165670Sache
8249165670Sache  ;
8250165670Sache  return 0;
8251165670Sache}
8252165670Sache_ACEOF
8253165670Sacherm -f conftest.$ac_objext
8254165670Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8255165670Sache  (eval $ac_compile) 2>conftest.er1
8256165670Sache  ac_status=$?
8257165670Sache  grep -v '^ *+' conftest.er1 >conftest.err
8258165670Sache  rm -f conftest.er1
8259165670Sache  cat conftest.err >&5
8260165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261165670Sache  (exit $ac_status); } &&
8262165670Sache	 { ac_try='test -z "$ac_c_werror_flag"
8263165670Sache			 || test ! -s conftest.err'
8264165670Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265165670Sache  (eval $ac_try) 2>&5
8266165670Sache  ac_status=$?
8267165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268165670Sache  (exit $ac_status); }; } &&
8269165670Sache	 { ac_try='test -s conftest.$ac_objext'
8270165670Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271165670Sache  (eval $ac_try) 2>&5
8272165670Sache  ac_status=$?
8273165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274165670Sache  (exit $ac_status); }; }; then
8275165670Sache  bash_cv_type_wchar_t=yes
8276165670Sacheelse
8277165670Sache  echo "$as_me: failed program was:" >&5
8278165670Sachesed 's/^/| /' conftest.$ac_ext >&5
8279165670Sache
8280165670Sachebash_cv_type_wchar_t=no
8281165670Sachefi
8282165670Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8283165670Sachefi
8284165670Sacheecho "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
8285165670Sacheecho "${ECHO_T}$bash_cv_type_wchar_t" >&6
8286165670Sacheif test $bash_cv_type_wchar_t = yes; then
8287165670Sache
8288165670Sachecat >>confdefs.h <<\_ACEOF
8289165670Sache#define HAVE_WCHAR_T 1
8290165670Sache_ACEOF
8291165670Sache
8292165670Sachefi
8293165670Sache
8294165670Sacheecho "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
8295165670Sacheecho $ECHO_N "checking for wctype_t in wctype.h... $ECHO_C" >&6
8296165670Sacheif test "${bash_cv_type_wctype_t+set}" = set; then
8297165670Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
8298165670Sacheelse
8299165670Sache  cat >conftest.$ac_ext <<_ACEOF
8300165670Sache/* confdefs.h.  */
8301165670Sache_ACEOF
8302165670Sachecat confdefs.h >>conftest.$ac_ext
8303165670Sachecat >>conftest.$ac_ext <<_ACEOF
8304165670Sache/* end confdefs.h.  */
8305165670Sache#include <wctype.h>
8306165670Sacheint
8307165670Sachemain ()
8308165670Sache{
8309165670Sache
8310165670Sache        wctype_t foo;
8311165670Sache        foo = 0;
8312165670Sache
8313165670Sache  ;
8314165670Sache  return 0;
8315165670Sache}
8316165670Sache_ACEOF
8317165670Sacherm -f conftest.$ac_objext
8318165670Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8319165670Sache  (eval $ac_compile) 2>conftest.er1
8320165670Sache  ac_status=$?
8321165670Sache  grep -v '^ *+' conftest.er1 >conftest.err
8322165670Sache  rm -f conftest.er1
8323165670Sache  cat conftest.err >&5
8324165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325165670Sache  (exit $ac_status); } &&
8326165670Sache	 { ac_try='test -z "$ac_c_werror_flag"
8327165670Sache			 || test ! -s conftest.err'
8328165670Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329165670Sache  (eval $ac_try) 2>&5
8330165670Sache  ac_status=$?
8331165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332165670Sache  (exit $ac_status); }; } &&
8333165670Sache	 { ac_try='test -s conftest.$ac_objext'
8334165670Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335165670Sache  (eval $ac_try) 2>&5
8336165670Sache  ac_status=$?
8337165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338165670Sache  (exit $ac_status); }; }; then
8339165670Sache  bash_cv_type_wctype_t=yes
8340165670Sacheelse
8341165670Sache  echo "$as_me: failed program was:" >&5
8342165670Sachesed 's/^/| /' conftest.$ac_ext >&5
8343165670Sache
8344165670Sachebash_cv_type_wctype_t=no
8345165670Sachefi
8346165670Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8347165670Sachefi
8348165670Sacheecho "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
8349165670Sacheecho "${ECHO_T}$bash_cv_type_wctype_t" >&6
8350165670Sacheif test $bash_cv_type_wctype_t = yes; then
8351165670Sache
8352165670Sachecat >>confdefs.h <<\_ACEOF
8353165670Sache#define HAVE_WCTYPE_T 1
8354165670Sache_ACEOF
8355165670Sache
8356165670Sachefi
8357165670Sache
8358165670Sacheecho "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
8359165670Sacheecho $ECHO_N "checking for wint_t in wctype.h... $ECHO_C" >&6
8360165670Sacheif test "${bash_cv_type_wint_t+set}" = set; then
8361165670Sache  echo $ECHO_N "(cached) $ECHO_C" >&6
8362165670Sacheelse
8363165670Sache  cat >conftest.$ac_ext <<_ACEOF
8364165670Sache/* confdefs.h.  */
8365165670Sache_ACEOF
8366165670Sachecat confdefs.h >>conftest.$ac_ext
8367165670Sachecat >>conftest.$ac_ext <<_ACEOF
8368165670Sache/* end confdefs.h.  */
8369165670Sache#include <wctype.h>
8370165670Sacheint
8371165670Sachemain ()
8372165670Sache{
8373165670Sache
8374165670Sache        wint_t foo;
8375165670Sache        foo = 0;
8376165670Sache
8377165670Sache  ;
8378165670Sache  return 0;
8379165670Sache}
8380165670Sache_ACEOF
8381165670Sacherm -f conftest.$ac_objext
8382165670Sacheif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8383165670Sache  (eval $ac_compile) 2>conftest.er1
8384165670Sache  ac_status=$?
8385165670Sache  grep -v '^ *+' conftest.er1 >conftest.err
8386165670Sache  rm -f conftest.er1
8387165670Sache  cat conftest.err >&5
8388165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389165670Sache  (exit $ac_status); } &&
8390165670Sache	 { ac_try='test -z "$ac_c_werror_flag"
8391165670Sache			 || test ! -s conftest.err'
8392165670Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393165670Sache  (eval $ac_try) 2>&5
8394165670Sache  ac_status=$?
8395165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396165670Sache  (exit $ac_status); }; } &&
8397165670Sache	 { ac_try='test -s conftest.$ac_objext'
8398165670Sache  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399165670Sache  (eval $ac_try) 2>&5
8400165670Sache  ac_status=$?
8401165670Sache  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402165670Sache  (exit $ac_status); }; }; then
8403165670Sache  bash_cv_type_wint_t=yes
8404165670Sacheelse
8405165670Sache  echo "$as_me: failed program was:" >&5
8406165670Sachesed 's/^/| /' conftest.$ac_ext >&5
8407165670Sache
8408165670Sachebash_cv_type_wint_t=no
8409165670Sachefi
8410165670Sacherm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8411165670Sachefi
8412165670Sacheecho "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
8413165670Sacheecho "${ECHO_T}$bash_cv_type_wint_t" >&6
8414165670Sacheif test $bash_cv_type_wint_t = yes; then
8415165670Sache
8416165670Sachecat >>confdefs.h <<\_ACEOF
8417165670Sache#define HAVE_WINT_T 1
8418165670Sache_ACEOF
8419165670Sache
8420165670Sachefi
8421165670Sache
8422165670Sache
8423165670Sache
842426497Sachecase "$host_cpu" in
842526497Sache*cray*)	LOCAL_CFLAGS=-DCRAY ;;
842675406Sache*s390*) LOCAL_CFLAGS=-fsigned-char ;;
842726497Sacheesac
842826497Sache
842926497Sachecase "$host_os" in
843026497Sacheisc*)	LOCAL_CFLAGS=-Disc386 ;;
843126497Sacheesac
843226497Sache
843347558Sache# shared library configuration section
843447558Sache#
843547558Sache# Shared object configuration section.  These values are generated by
843647558Sache# ${srcdir}/support/shobj-conf
843747558Sache#
843847558Sacheif test -f ${srcdir}/support/shobj-conf; then
8439136644Sache        echo "$as_me:$LINENO: checking configuration for building shared libraries" >&5
8440119610Sacheecho $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6
8441157184Sache        eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
844258310Sache
8443157184Sache#	case "$SHLIB_LIBS" in
8444157184Sache#	*curses*|*termcap*|*termlib*)	;;
8445157184Sache#	*)			SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;;
8446157184Sache#	esac
8447136644Sache
8448136644Sache
8449136644Sache
8450136644Sache
8451136644Sache
8452136644Sache
8453136644Sache
8454136644Sache
8455136644Sache
8456136644Sache
8457136644Sache
8458157184Sache
8459157184Sache
8460157184Sache
8461157184Sache
8462157184Sache
8463136644Sache        echo "$as_me:$LINENO: result: $SHLIB_STATUS" >&5
8464119610Sacheecho "${ECHO_T}$SHLIB_STATUS" >&6
8465119610Sache
8466119610Sache	# SHLIB_STATUS is either `supported' or `unsupported'.  If it's
8467119610Sache	# `unsupported', turn off any default shared library building
8468119610Sache	if test "$SHLIB_STATUS" = 'unsupported'; then
8469119610Sache		opt_shared_libs=no
8470119610Sache	fi
8471119610Sache
847258310Sache	# shared library versioning
847358310Sache	# quoted for m4 so I can use character classes
847458310Sache	SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
847558310Sache	SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
8476119610Sache
8477136644Sache
847847558Sachefi
847947558Sache
8480119610Sacheif test "$opt_static_libs" = "yes"; then
8481119610Sache	STATIC_TARGET=static
8482119610Sache	STATIC_INSTALL_TARGET=install-static
8483119610Sachefi
8484119610Sacheif test "$opt_shared_libs" = "yes"; then
8485119610Sache	SHARED_TARGET=shared
8486119610Sache	SHARED_INSTALL_TARGET=install-shared
8487119610Sachefi
8488119610Sache
8489136644Sache
8490136644Sache
8491136644Sache
8492136644Sache
8493136644Sache
849458310Sachecase "$host_os" in
849558310Sachemsdosdjgpp*)	BUILD_DIR=`pwd.exe` ;;	# to prevent //d/path/file
849658310Sache*)		BUILD_DIR=`pwd` ;;
849758310Sacheesac
849826497Sache
8499157184Sachecase "$BUILD_DIR" in
8500157184Sache*\ *)	BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
8501157184Sache*)	;;
8502157184Sacheesac
8503136644Sache
8504136644Sache
8505136644Sache
8506136644Sache
8507136644Sache
8508136644Sache
8509136644Sache
8510136644Sache
8511136644Sache
8512136644Sache
8513136644Sache
8514136644Sache
8515136644Sache
8516136644Sache
8517136644Sache
8518136644Sache
8519136644Sache
8520157184Sache
8521157184Sache
8522136644Sache                                        ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile"
8523136644Sache          ac_config_commands="$ac_config_commands default"
8524119610Sachecat >confcache <<\_ACEOF
852526497Sache# This file is a shell script that caches the results of configure
852626497Sache# tests run on this system so they can be shared between configure
8527119610Sache# scripts and configure runs, see configure's option --config-cache.
8528119610Sache# It is not useful on other systems.  If it contains results you don't
8529119610Sache# want to keep, you may remove or edit it.
853026497Sache#
8531119610Sache# config.status only pays attention to the cache file if you give it
8532119610Sache# the --recheck option to rerun configure.
853326497Sache#
8534136644Sache# `ac_cv_env_foo' variables (set or unset) will be overridden when
8535119610Sache# loading this file, other *unset* `ac_cv_foo' will be assigned the
8536119610Sache# following values.
8537119610Sache
8538119610Sache_ACEOF
8539119610Sache
854026497Sache# The following way of writing the cache mishandles newlines in values,
854126497Sache# but we know of no workaround that is simple, portable, and efficient.
854226497Sache# So, don't put newlines in cache variables' values.
854326497Sache# Ultrix sh set writes to stderr and can't be redirected directly,
854426497Sache# and sets the high bit in the cache file unless we assign to the vars.
8545119610Sache{
8546119610Sache  (set) 2>&1 |
8547119610Sache    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8548119610Sache    *ac_space=\ *)
8549119610Sache      # `set' does not quote correctly, so add quotes (double-quote
8550119610Sache      # substitution turns \\\\ into \\, and sed turns \\ into \).
8551119610Sache      sed -n \
8552157184Sache	"s/'/'\\\\''/g;
8553157184Sache	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8554119610Sache      ;;
8555119610Sache    *)
8556119610Sache      # `set' quotes correctly as required by POSIX, so do not add quotes.
8557119610Sache      sed -n \
8558157184Sache	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8559119610Sache      ;;
8560119610Sache    esac;
8561119610Sache} |
8562119610Sache  sed '
8563119610Sache     t clear
8564119610Sache     : clear
8565119610Sache     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8566119610Sache     t end
8567119610Sache     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8568119610Sache     : end' >>confcache
8569136644Sacheif diff $cache_file confcache >/dev/null 2>&1; then :; else
857026497Sache  if test -w $cache_file; then
8571119610Sache    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8572119610Sache    cat confcache >$cache_file
857326497Sache  else
857426497Sache    echo "not updating unwritable cache $cache_file"
857526497Sache  fi
857626497Sachefi
857726497Sacherm -f confcache
857826497Sache
857926497Sachetest "x$prefix" = xNONE && prefix=$ac_default_prefix
858026497Sache# Let make expand exec_prefix.
858126497Sachetest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
858226497Sache
8583119610Sache# VPATH may cause trouble with some makes, so we remove $(srcdir),
8584119610Sache# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8585119610Sache# trailing colons and then remove the whole line if VPATH becomes empty
8586119610Sache# (actually we leave an empty line to preserve line numbers).
858726497Sacheif test "x$srcdir" = x.; then
8588157184Sache  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
8589119610Saches/:*\$(srcdir):*/:/;
8590119610Saches/:*\${srcdir}:*/:/;
8591119610Saches/:*@srcdir@:*/:/;
8592157184Saches/^\([^=]*=[	 ]*\):*/\1/;
8593119610Saches/:*$//;
8594157184Saches/^[^=]*=[	 ]*$//;
8595119610Sache}'
859626497Sachefi
859726497Sache
859826497SacheDEFS=-DHAVE_CONFIG_H
859926497Sache
8600136644Sacheac_libobjs=
8601136644Sacheac_ltlibobjs=
8602136644Sachefor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8603136644Sache  # 1. Remove the extension, and $U if already installed.
8604136644Sache  ac_i=`echo "$ac_i" |
8605157184Sache	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8606136644Sache  # 2. Add them.
8607136644Sache  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8608136644Sache  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8609136644Sachedone
8610136644SacheLIBOBJS=$ac_libobjs
8611136644Sache
8612136644SacheLTLIBOBJS=$ac_ltlibobjs
8613136644Sache
8614136644Sache
8615136644Sache
861626497Sache: ${CONFIG_STATUS=./config.status}
8617119610Sacheac_clean_files_save=$ac_clean_files
8618119610Sacheac_clean_files="$ac_clean_files $CONFIG_STATUS"
8619136644Sache{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8620119610Sacheecho "$as_me: creating $CONFIG_STATUS" >&6;}
8621119610Sachecat >$CONFIG_STATUS <<_ACEOF
8622119610Sache#! $SHELL
8623136644Sache# Generated by $as_me.
862426497Sache# Run this file to recreate the current configuration.
862526497Sache# Compiler output produced by configure, useful for debugging
8626119610Sache# configure, is in config.log if it exists.
862726497Sache
8628119610Sachedebug=false
8629136644Sacheac_cs_recheck=false
8630136644Sacheac_cs_silent=false
8631119610SacheSHELL=\${CONFIG_SHELL-$SHELL}
8632119610Sache_ACEOF
8633119610Sache
8634119610Sachecat >>$CONFIG_STATUS <<\_ACEOF
8635136644Sache## --------------------- ##
8636136644Sache## M4sh Initialization.  ##
8637136644Sache## --------------------- ##
8638136644Sache
8639119610Sache# Be Bourne compatible
8640119610Sacheif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8641119610Sache  emulate sh
8642119610Sache  NULLCMD=:
8643136644Sache  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8644136644Sache  # is contrary to our usage.  Disable this feature.
8645136644Sache  alias -g '${1+"$@"}'='"$@"'
8646119610Sacheelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8647119610Sache  set -o posix
8648119610Sachefi
8649157184SacheDUALCASE=1; export DUALCASE # for MKS sh
8650119610Sache
8651136644Sache# Support unset when possible.
8652157184Sacheif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8653136644Sache  as_unset=unset
8654136644Sacheelse
8655136644Sache  as_unset=false
8656136644Sachefi
8657136644Sache
8658136644Sache
8659136644Sache# Work around bugs in pre-3.0 UWIN ksh.
8660136644Sache$as_unset ENV MAIL MAILPATH
8661136644SachePS1='$ '
8662136644SachePS2='> '
8663136644SachePS4='+ '
8664136644Sache
8665136644Sache# NLS nuisances.
8666136644Sachefor as_var in \
8667136644Sache  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8668136644Sache  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8669136644Sache  LC_TELEPHONE LC_TIME
8670136644Sachedo
8671157184Sache  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8672136644Sache    eval $as_var=C; export $as_var
8673136644Sache  else
8674136644Sache    $as_unset $as_var
8675136644Sache  fi
8676136644Sachedone
8677136644Sache
8678136644Sache# Required to use basename.
8679136644Sacheif expr a : '\(a\)' >/dev/null 2>&1; then
8680136644Sache  as_expr=expr
8681136644Sacheelse
8682136644Sache  as_expr=false
8683136644Sachefi
8684136644Sache
8685136644Sacheif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8686136644Sache  as_basename=basename
8687136644Sacheelse
8688136644Sache  as_basename=false
8689136644Sachefi
8690136644Sache
8691136644Sache
8692119610Sache# Name of the executable.
8693136644Sacheas_me=`$as_basename "$0" ||
8694136644Sache$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8695136644Sache	 X"$0" : 'X\(//\)$' \| \
8696136644Sache	 X"$0" : 'X\(/\)$' \| \
8697136644Sache	 .     : '\(.\)' 2>/dev/null ||
8698136644Sacheecho X/"$0" |
8699136644Sache    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8700136644Sache  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
8701136644Sache  	  /^X\/\(\/\).*/{ s//\1/; q; }
8702136644Sache  	  s/.*/./; q'`
8703119610Sache
8704136644Sache
8705136644Sache# PATH needs CR, and LINENO needs CR and PATH.
8706136644Sache# Avoid depending upon Character Ranges.
8707136644Sacheas_cr_letters='abcdefghijklmnopqrstuvwxyz'
8708136644Sacheas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8709136644Sacheas_cr_Letters=$as_cr_letters$as_cr_LETTERS
8710136644Sacheas_cr_digits='0123456789'
8711136644Sacheas_cr_alnum=$as_cr_Letters$as_cr_digits
8712136644Sache
8713136644Sache# The user is always right.
8714136644Sacheif test "${PATH_SEPARATOR+set}" != set; then
8715136644Sache  echo "#! /bin/sh" >conf$$.sh
8716136644Sache  echo  "exit 0"   >>conf$$.sh
8717136644Sache  chmod +x conf$$.sh
8718136644Sache  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8719136644Sache    PATH_SEPARATOR=';'
8720136644Sache  else
8721136644Sache    PATH_SEPARATOR=:
8722136644Sache  fi
8723136644Sache  rm -f conf$$.sh
8724136644Sachefi
8725136644Sache
8726136644Sache
8727136644Sache  as_lineno_1=$LINENO
8728136644Sache  as_lineno_2=$LINENO
8729136644Sache  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8730136644Sache  test "x$as_lineno_1" != "x$as_lineno_2" &&
8731136644Sache  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8732136644Sache  # Find who we are.  Look in the path if we contain no path at all
8733136644Sache  # relative or not.
8734136644Sache  case $0 in
8735136644Sache    *[\\/]* ) as_myself=$0 ;;
8736136644Sache    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737136644Sachefor as_dir in $PATH
8738136644Sachedo
8739136644Sache  IFS=$as_save_IFS
8740136644Sache  test -z "$as_dir" && as_dir=.
8741136644Sache  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8742136644Sachedone
8743136644Sache
8744136644Sache       ;;
8745136644Sache  esac
8746136644Sache  # We did not find ourselves, most probably we were run as `sh COMMAND'
8747136644Sache  # in which case we are not to be found in the path.
8748136644Sache  if test "x$as_myself" = x; then
8749136644Sache    as_myself=$0
8750136644Sache  fi
8751136644Sache  if test ! -f "$as_myself"; then
8752136644Sache    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8753136644Sacheecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8754136644Sache   { (exit 1); exit 1; }; }
8755136644Sache  fi
8756136644Sache  case $CONFIG_SHELL in
8757136644Sache  '')
8758136644Sache    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759136644Sachefor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8760136644Sachedo
8761136644Sache  IFS=$as_save_IFS
8762136644Sache  test -z "$as_dir" && as_dir=.
8763136644Sache  for as_base in sh bash ksh sh5; do
8764136644Sache	 case $as_dir in
8765136644Sache	 /*)
8766136644Sache	   if ("$as_dir/$as_base" -c '
8767136644Sache  as_lineno_1=$LINENO
8768136644Sache  as_lineno_2=$LINENO
8769136644Sache  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8770136644Sache  test "x$as_lineno_1" != "x$as_lineno_2" &&
8771136644Sache  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8772136644Sache	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8773136644Sache	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8774136644Sache	     CONFIG_SHELL=$as_dir/$as_base
8775136644Sache	     export CONFIG_SHELL
8776136644Sache	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8777136644Sache	   fi;;
8778136644Sache	 esac
8779136644Sache       done
8780136644Sachedone
8781136644Sache;;
8782136644Sache  esac
8783136644Sache
8784136644Sache  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8785136644Sache  # uniformly replaced by the line number.  The first 'sed' inserts a
8786136644Sache  # line-number line before each line; the second 'sed' does the real
8787136644Sache  # work.  The second script uses 'N' to pair each line-number line
8788136644Sache  # with the numbered line, and appends trailing '-' during
8789136644Sache  # substitution so that $LINENO is not a special case at line end.
8790136644Sache  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8791136644Sache  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8792136644Sache  sed '=' <$as_myself |
8793136644Sache    sed '
8794136644Sache      N
8795136644Sache      s,$,-,
8796136644Sache      : loop
8797136644Sache      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8798136644Sache      t loop
8799136644Sache      s,-$,,
8800136644Sache      s,^['$as_cr_digits']*\n,,
8801136644Sache    ' >$as_me.lineno &&
8802136644Sache  chmod +x $as_me.lineno ||
8803136644Sache    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8804136644Sacheecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8805136644Sache   { (exit 1); exit 1; }; }
8806136644Sache
8807136644Sache  # Don't try to exec as it changes $[0], causing all sort of problems
8808136644Sache  # (the dirname of $[0] is not the place where we might find the
8809136644Sache  # original and so on.  Autoconf is especially sensible to this).
8810136644Sache  . ./$as_me.lineno
8811136644Sache  # Exit status is that of the last command.
8812136644Sache  exit
8813136644Sache}
8814136644Sache
8815136644Sache
8816136644Sachecase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8817136644Sache  *c*,-n*) ECHO_N= ECHO_C='
8818136644Sache' ECHO_T='	' ;;
8819136644Sache  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8820136644Sache  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8821136644Sacheesac
8822136644Sache
8823119610Sacheif expr a : '\(a\)' >/dev/null 2>&1; then
8824119610Sache  as_expr=expr
8825119610Sacheelse
8826119610Sache  as_expr=false
8827119610Sachefi
8828119610Sache
8829119610Sacherm -f conf$$ conf$$.exe conf$$.file
8830119610Sacheecho >conf$$.file
8831119610Sacheif ln -s conf$$.file conf$$ 2>/dev/null; then
8832119610Sache  # We could just check for DJGPP; but this test a) works b) is more generic
8833119610Sache  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8834119610Sache  if test -f conf$$.exe; then
8835119610Sache    # Don't use ln at all; we don't have any links
8836119610Sache    as_ln_s='cp -p'
8837119610Sache  else
8838119610Sache    as_ln_s='ln -s'
8839119610Sache  fi
8840119610Sacheelif ln conf$$.file conf$$ 2>/dev/null; then
8841119610Sache  as_ln_s=ln
8842119610Sacheelse
8843119610Sache  as_ln_s='cp -p'
8844119610Sachefi
8845119610Sacherm -f conf$$ conf$$.exe conf$$.file
8846119610Sache
8847136644Sacheif mkdir -p . 2>/dev/null; then
8848136644Sache  as_mkdir_p=:
8849119610Sacheelse
8850157184Sache  test -d ./-p && rmdir ./-p
8851136644Sache  as_mkdir_p=false
8852119610Sachefi
8853119610Sache
8854136644Sacheas_executable_p="test -f"
8855119610Sache
8856136644Sache# Sed expression to map a string onto a valid CPP name.
8857157184Sacheas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8858136644Sache
8859136644Sache# Sed expression to map a string onto a valid variable name.
8860157184Sacheas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8861136644Sache
8862136644Sache
8863119610Sache# IFS
8864119610Sache# We need space, tab and new line, in precisely that order.
8865119610Sacheas_nl='
8866119610Sache'
8867119610SacheIFS=" 	$as_nl"
8868119610Sache
8869119610Sache# CDPATH.
8870136644Sache$as_unset CDPATH
8871119610Sache
8872119610Sacheexec 6>&1
8873119610Sache
8874136644Sache# Open the log real soon, to keep \$[0] and so on meaningful, and to
8875136644Sache# report actual input values of CONFIG_FILES etc. instead of their
8876136644Sache# values after options handling.  Logging --version etc. is OK.
8877136644Sacheexec 5>>config.log
8878136644Sache{
8879136644Sache  echo
8880136644Sache  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8881136644Sache## Running $as_me. ##
8882136644Sache_ASBOX
8883136644Sache} >&5
8884136644Sachecat >&5 <<_CSEOF
8885136644Sache
8886165670SacheThis file was extended by readline $as_me 5.2, which was
8887157184Sachegenerated by GNU Autoconf 2.59.  Invocation command line was
8888136644Sache
8889136644Sache  CONFIG_FILES    = $CONFIG_FILES
8890136644Sache  CONFIG_HEADERS  = $CONFIG_HEADERS
8891136644Sache  CONFIG_LINKS    = $CONFIG_LINKS
8892136644Sache  CONFIG_COMMANDS = $CONFIG_COMMANDS
8893136644Sache  $ $0 $@
8894136644Sache
8895136644Sache_CSEOF
8896136644Sacheecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8897136644Sacheecho >&5
8898119610Sache_ACEOF
8899119610Sache
8900119610Sache# Files that config.status was made for.
8901119610Sacheif test -n "$ac_config_files"; then
8902119610Sache  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8903119610Sachefi
8904119610Sache
8905119610Sacheif test -n "$ac_config_headers"; then
8906119610Sache  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8907119610Sachefi
8908119610Sache
8909119610Sacheif test -n "$ac_config_links"; then
8910119610Sache  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8911119610Sachefi
8912119610Sache
8913119610Sacheif test -n "$ac_config_commands"; then
8914119610Sache  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8915119610Sachefi
8916119610Sache
8917136644Sachecat >>$CONFIG_STATUS <<\_ACEOF
8918119610Sache
8919119610Sacheac_cs_usage="\
8920119610Sache\`$as_me' instantiates files from templates according to the
8921119610Sachecurrent configuration.
8922119610Sache
8923119610SacheUsage: $0 [OPTIONS] [FILE]...
8924119610Sache
8925119610Sache  -h, --help       print this help, then exit
8926119610Sache  -V, --version    print version number, then exit
8927136644Sache  -q, --quiet      do not print progress messages
8928119610Sache  -d, --debug      don't remove temporary files
8929119610Sache      --recheck    update $as_me by reconfiguring in the same conditions
8930119610Sache  --file=FILE[:TEMPLATE]
8931157184Sache		   instantiate the configuration file FILE
8932119610Sache  --header=FILE[:TEMPLATE]
8933157184Sache		   instantiate the configuration header FILE
8934119610Sache
8935119610SacheConfiguration files:
8936119610Sache$config_files
8937119610Sache
8938119610SacheConfiguration headers:
8939119610Sache$config_headers
8940119610Sache
8941119610SacheConfiguration commands:
8942119610Sache$config_commands
8943119610Sache
8944119610SacheReport bugs to <bug-autoconf@gnu.org>."
8945136644Sache_ACEOF
8946119610Sache
8947136644Sachecat >>$CONFIG_STATUS <<_ACEOF
8948119610Sacheac_cs_version="\\
8949165670Sachereadline config.status 5.2
8950157184Sacheconfigured by $0, generated by GNU Autoconf 2.59,
8951119610Sache  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8952119610Sache
8953157184SacheCopyright (C) 2003 Free Software Foundation, Inc.
8954119610SacheThis config.status script is free software; the Free Software Foundation
8955119610Sachegives unlimited permission to copy, distribute and modify it."
8956119610Sachesrcdir=$srcdir
8957119610SacheINSTALL="$INSTALL"
8958136644Sache_ACEOF
8959119610Sache
8960136644Sachecat >>$CONFIG_STATUS <<\_ACEOF
8961119610Sache# If no file are specified by the user, then we need to provide default
8962119610Sache# value.  By we need to know if files were specified by the user.
8963119610Sacheac_need_defaults=:
8964119610Sachewhile test $# != 0
896526497Sachedo
8966119610Sache  case $1 in
8967119610Sache  --*=*)
8968119610Sache    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8969119610Sache    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8970136644Sache    ac_shift=:
8971119610Sache    ;;
8972136644Sache  -*)
8973136644Sache    ac_option=$1
8974136644Sache    ac_optarg=$2
8975136644Sache    ac_shift=shift
8976136644Sache    ;;
8977119610Sache  *) # This is not an option, so the user has probably given explicit
8978119610Sache     # arguments.
8979136644Sache     ac_option=$1
8980119610Sache     ac_need_defaults=false;;
8981119610Sache  esac
8982119610Sache
8983136644Sache  case $ac_option in
8984119610Sache  # Handling of the options.
8985136644Sache_ACEOF
8986136644Sachecat >>$CONFIG_STATUS <<\_ACEOF
898726497Sache  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8988136644Sache    ac_cs_recheck=: ;;
8989119610Sache  --version | --vers* | -V )
8990119610Sache    echo "$ac_cs_version"; exit 0 ;;
8991119610Sache  --he | --h)
8992119610Sache    # Conflict between --help and --header
8993136644Sache    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8994119610SacheTry \`$0 --help' for more information." >&5
8995119610Sacheecho "$as_me: error: ambiguous option: $1
8996119610SacheTry \`$0 --help' for more information." >&2;}
8997119610Sache   { (exit 1); exit 1; }; };;
8998119610Sache  --help | --hel | -h )
8999119610Sache    echo "$ac_cs_usage"; exit 0 ;;
9000119610Sache  --debug | --d* | -d )
9001119610Sache    debug=: ;;
9002119610Sache  --file | --fil | --fi | --f )
9003136644Sache    $ac_shift
9004136644Sache    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9005119610Sache    ac_need_defaults=false;;
9006119610Sache  --header | --heade | --head | --hea )
9007136644Sache    $ac_shift
9008136644Sache    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9009119610Sache    ac_need_defaults=false;;
9010136644Sache  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9011136644Sache  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9012136644Sache    ac_cs_silent=: ;;
9013119610Sache
9014119610Sache  # This is an error.
9015136644Sache  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9016119610SacheTry \`$0 --help' for more information." >&5
9017119610Sacheecho "$as_me: error: unrecognized option: $1
9018119610SacheTry \`$0 --help' for more information." >&2;}
9019119610Sache   { (exit 1); exit 1; }; } ;;
9020119610Sache
9021119610Sache  *) ac_config_targets="$ac_config_targets $1" ;;
9022119610Sache
902326497Sache  esac
9024119610Sache  shift
902526497Sachedone
902626497Sache
9027136644Sacheac_configure_extra_args=
902826497Sache
9029136644Sacheif $ac_cs_silent; then
9030136644Sache  exec 6>/dev/null
9031136644Sache  ac_configure_extra_args="$ac_configure_extra_args --silent"
9032136644Sachefi
9033119610Sache
9034136644Sache_ACEOF
9035136644Sachecat >>$CONFIG_STATUS <<_ACEOF
9036136644Sacheif \$ac_cs_recheck; then
9037136644Sache  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9038136644Sache  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9039136644Sachefi
9040119610Sache
9041119610Sache_ACEOF
904226497Sache
9043136644Sache
9044136644Sache
9045136644Sache
9046136644Sache
9047136644Sachecat >>$CONFIG_STATUS <<\_ACEOF
9048119610Sachefor ac_config_target in $ac_config_targets
9049119610Sachedo
9050119610Sache  case "$ac_config_target" in
9051119610Sache  # Handling of arguments.
9052119610Sache  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9053119610Sache  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9054119610Sache  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
9055119610Sache  "shlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;;
9056119610Sache  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9057119610Sache  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9058136644Sache  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9059119610Sacheecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
9060119610Sache   { (exit 1); exit 1; }; };;
9061119610Sache  esac
9062119610Sachedone
906326497Sache
9064119610Sache# If the user did not use the arguments to specify the items to instantiate,
9065119610Sache# then the envvar interface is used.  Set only those that are not.
9066119610Sache# We use the long form for the default assignment because of an extremely
9067119610Sache# bizarre bug on SunOS 4.1.3.
9068119610Sacheif $ac_need_defaults; then
9069119610Sache  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9070119610Sache  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9071119610Sache  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9072119610Sachefi
9073119610Sache
9074136644Sache# Have a temporary directory for convenience.  Make it in the build tree
9075136644Sache# simply because there is no reason to put it here, and in addition,
9076136644Sache# creating and moving files from /tmp can sometimes cause problems.
9077119610Sache# Create a temporary directory, and hook for its removal unless debugging.
9078119610Sache$debug ||
9079119610Sache{
9080119610Sache  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9081119610Sache  trap '{ (exit 1); exit 1; }' 1 2 13 15
9082119610Sache}
9083119610Sache
9084119610Sache# Create a (secure) tmp directory for tmp files.
9085136644Sache
9086119610Sache{
9087136644Sache  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9088119610Sache  test -n "$tmp" && test -d "$tmp"
9089119610Sache}  ||
9090119610Sache{
9091136644Sache  tmp=./confstat$$-$RANDOM
9092119610Sache  (umask 077 && mkdir $tmp)
9093119610Sache} ||
9094119610Sache{
9095136644Sache   echo "$me: cannot create a temporary directory in ." >&2
9096119610Sache   { (exit 1); exit 1; }
9097119610Sache}
9098119610Sache
9099136644Sache_ACEOF
9100119610Sache
9101136644Sachecat >>$CONFIG_STATUS <<_ACEOF
9102119610Sache
9103119610Sache#
9104119610Sache# CONFIG_FILES section.
9105119610Sache#
9106119610Sache
9107119610Sache# No need to generate the scripts if there are no CONFIG_FILES.
9108119610Sache# This happens for instance when ./config.status config.h
9109119610Sacheif test -n "\$CONFIG_FILES"; then
9110119610Sache  # Protect against being on the right side of a sed subst in config.status.
9111119610Sache  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9112119610Sache   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9113119610Saches,@SHELL@,$SHELL,;t t
9114136644Saches,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9115136644Saches,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9116136644Saches,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9117136644Saches,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9118136644Saches,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9119136644Saches,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9120119610Saches,@exec_prefix@,$exec_prefix,;t t
9121119610Saches,@prefix@,$prefix,;t t
9122119610Saches,@program_transform_name@,$program_transform_name,;t t
9123119610Saches,@bindir@,$bindir,;t t
9124119610Saches,@sbindir@,$sbindir,;t t
9125119610Saches,@libexecdir@,$libexecdir,;t t
9126119610Saches,@datadir@,$datadir,;t t
9127119610Saches,@sysconfdir@,$sysconfdir,;t t
9128119610Saches,@sharedstatedir@,$sharedstatedir,;t t
9129119610Saches,@localstatedir@,$localstatedir,;t t
9130119610Saches,@libdir@,$libdir,;t t
9131119610Saches,@includedir@,$includedir,;t t
9132119610Saches,@oldincludedir@,$oldincludedir,;t t
9133119610Saches,@infodir@,$infodir,;t t
9134119610Saches,@mandir@,$mandir,;t t
9135119610Saches,@build_alias@,$build_alias,;t t
9136119610Saches,@host_alias@,$host_alias,;t t
9137119610Saches,@target_alias@,$target_alias,;t t
9138136644Saches,@DEFS@,$DEFS,;t t
9139119610Saches,@ECHO_C@,$ECHO_C,;t t
9140119610Saches,@ECHO_N@,$ECHO_N,;t t
9141119610Saches,@ECHO_T@,$ECHO_T,;t t
9142119610Saches,@LIBS@,$LIBS,;t t
9143119610Saches,@build@,$build,;t t
9144119610Saches,@build_cpu@,$build_cpu,;t t
9145119610Saches,@build_vendor@,$build_vendor,;t t
9146119610Saches,@build_os@,$build_os,;t t
9147119610Saches,@host@,$host,;t t
9148119610Saches,@host_cpu@,$host_cpu,;t t
9149119610Saches,@host_vendor@,$host_vendor,;t t
9150119610Saches,@host_os@,$host_os,;t t
9151157184Saches,@CROSS_COMPILE@,$CROSS_COMPILE,;t t
9152119610Saches,@SET_MAKE@,$SET_MAKE,;t t
9153119610Saches,@CC@,$CC,;t t
9154119610Saches,@CFLAGS@,$CFLAGS,;t t
9155119610Saches,@LDFLAGS@,$LDFLAGS,;t t
9156119610Saches,@CPPFLAGS@,$CPPFLAGS,;t t
9157119610Saches,@ac_ct_CC@,$ac_ct_CC,;t t
9158119610Saches,@EXEEXT@,$EXEEXT,;t t
9159119610Saches,@OBJEXT@,$OBJEXT,;t t
9160119610Saches,@CPP@,$CPP,;t t
9161136644Saches,@EGREP@,$EGREP,;t t
9162119610Saches,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9163119610Saches,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9164119610Saches,@INSTALL_DATA@,$INSTALL_DATA,;t t
9165119610Saches,@AR@,$AR,;t t
9166119610Saches,@RANLIB@,$RANLIB,;t t
9167119610Saches,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9168119610Saches,@MAKE_SHELL@,$MAKE_SHELL,;t t
9169119610Saches,@SHOBJ_CC@,$SHOBJ_CC,;t t
9170119610Saches,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
9171119610Saches,@SHOBJ_LD@,$SHOBJ_LD,;t t
9172119610Saches,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
9173119610Saches,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
9174119610Saches,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
9175119610Saches,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
9176119610Saches,@SHLIB_STATUS@,$SHLIB_STATUS,;t t
9177119610Saches,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t
9178157184Saches,@SHLIB_DOT@,$SHLIB_DOT,;t t
9179157184Saches,@SHLIB_LIBPREF@,$SHLIB_LIBPREF,;t t
9180119610Saches,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t
9181119610Saches,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t
9182157184Saches,@SHLIB_DLLVERSION@,$SHLIB_DLLVERSION,;t t
9183119610Saches,@SHLIB_LIBS@,$SHLIB_LIBS,;t t
9184119610Saches,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t
9185119610Saches,@SHLIB_MINOR@,$SHLIB_MINOR,;t t
9186119610Saches,@STATIC_TARGET@,$STATIC_TARGET,;t t
9187119610Saches,@SHARED_TARGET@,$SHARED_TARGET,;t t
9188119610Saches,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t
9189119610Saches,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t
9190157184Saches,@PURIFY@,$PURIFY,;t t
9191119610Saches,@BUILD_DIR@,$BUILD_DIR,;t t
9192119610Saches,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
9193119610Saches,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
9194119610Saches,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
9195119610Saches,@ARFLAGS@,$ARFLAGS,;t t
9196119610Saches,@LIBVERSION@,$LIBVERSION,;t t
9197119610Saches,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
9198136644Saches,@LIBOBJS@,$LIBOBJS,;t t
9199136644Saches,@LTLIBOBJS@,$LTLIBOBJS,;t t
920026497SacheCEOF
9201119610Sache
9202136644Sache_ACEOF
920326497Sache
9204136644Sache  cat >>$CONFIG_STATUS <<\_ACEOF
9205119610Sache  # Split the substitutions into bite-sized pieces for seds with
9206119610Sache  # small command number limits, like on Digital OSF/1 and HP-UX.
9207119610Sache  ac_max_sed_lines=48
9208119610Sache  ac_sed_frag=1 # Number of current file.
9209119610Sache  ac_beg=1 # First line for current file.
9210119610Sache  ac_end=$ac_max_sed_lines # Line after last line for current file.
9211119610Sache  ac_more_lines=:
9212119610Sache  ac_sed_cmds=
9213119610Sache  while $ac_more_lines; do
9214119610Sache    if test $ac_beg -gt 1; then
9215119610Sache      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
921626497Sache    else
9217119610Sache      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
921826497Sache    fi
9219119610Sache    if test ! -s $tmp/subs.frag; then
9220119610Sache      ac_more_lines=false
9221119610Sache    else
9222119610Sache      # The purpose of the label and of the branching condition is to
9223119610Sache      # speed up the sed processing (if there are no `@' at all, there
9224119610Sache      # is no need to browse any of the substitutions).
9225119610Sache      # These are the two extra sed commands mentioned above.
9226119610Sache      (echo ':t
9227119610Sache  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9228119610Sache      if test -z "$ac_sed_cmds"; then
9229157184Sache	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9230119610Sache      else
9231157184Sache	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9232119610Sache      fi
9233119610Sache      ac_sed_frag=`expr $ac_sed_frag + 1`
9234119610Sache      ac_beg=$ac_end
9235119610Sache      ac_end=`expr $ac_end + $ac_max_sed_lines`
9236119610Sache    fi
9237119610Sache  done
9238119610Sache  if test -z "$ac_sed_cmds"; then
9239119610Sache    ac_sed_cmds=cat
924026497Sache  fi
9241119610Sachefi # test -n "$CONFIG_FILES"
924226497Sache
9243136644Sache_ACEOF
9244136644Sachecat >>$CONFIG_STATUS <<\_ACEOF
9245119610Sachefor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
924626497Sache  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9247119610Sache  case $ac_file in
9248119610Sache  - | *:- | *:-:* ) # input from stdin
9249157184Sache	cat >$tmp/stdin
9250157184Sache	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9251157184Sache	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9252119610Sache  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9253157184Sache	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9254119610Sache  * )   ac_file_in=$ac_file.in ;;
925526497Sache  esac
925626497Sache
9257119610Sache  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9258136644Sache  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9259136644Sache$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9260157184Sache	 X"$ac_file" : 'X\(//\)[^/]' \| \
9261157184Sache	 X"$ac_file" : 'X\(//\)$' \| \
9262157184Sache	 X"$ac_file" : 'X\(/\)' \| \
9263157184Sache	 .     : '\(.\)' 2>/dev/null ||
9264119610Sacheecho X"$ac_file" |
9265119610Sache    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9266119610Sache  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9267119610Sache  	  /^X\(\/\/\)$/{ s//\1/; q; }
9268119610Sache  	  /^X\(\/\).*/{ s//\1/; q; }
9269119610Sache  	  s/.*/./; q'`
9270136644Sache  { if $as_mkdir_p; then
9271136644Sache    mkdir -p "$ac_dir"
927226497Sache  else
9273136644Sache    as_dir="$ac_dir"
9274136644Sache    as_dirs=
9275136644Sache    while test ! -d "$as_dir"; do
9276136644Sache      as_dirs="$as_dir $as_dirs"
9277136644Sache      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9278136644Sache$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9279157184Sache	 X"$as_dir" : 'X\(//\)[^/]' \| \
9280157184Sache	 X"$as_dir" : 'X\(//\)$' \| \
9281157184Sache	 X"$as_dir" : 'X\(/\)' \| \
9282157184Sache	 .     : '\(.\)' 2>/dev/null ||
9283136644Sacheecho X"$as_dir" |
9284136644Sache    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9285136644Sache  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9286136644Sache  	  /^X\(\/\/\)$/{ s//\1/; q; }
9287136644Sache  	  /^X\(\/\).*/{ s//\1/; q; }
9288136644Sache  	  s/.*/./; q'`
9289136644Sache    done
9290136644Sache    test ! -n "$as_dirs" || mkdir $as_dirs
9291136644Sache  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9292136644Sacheecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9293136644Sache   { (exit 1); exit 1; }; }; }
929426497Sache
9295136644Sache  ac_builddir=.
9296136644Sache
9297136644Sacheif test "$ac_dir" != .; then
9298136644Sache  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9299136644Sache  # A "../" for each directory in $ac_dir_suffix.
9300136644Sache  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9301136644Sacheelse
9302136644Sache  ac_dir_suffix= ac_top_builddir=
9303136644Sachefi
9304136644Sache
9305136644Sachecase $srcdir in
9306136644Sache  .)  # No --srcdir option.  We are building in place.
9307136644Sache    ac_srcdir=.
9308136644Sache    if test -z "$ac_top_builddir"; then
9309136644Sache       ac_top_srcdir=.
9310136644Sache    else
9311136644Sache       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9312136644Sache    fi ;;
9313136644Sache  [\\/]* | ?:[\\/]* )  # Absolute path.
9314136644Sache    ac_srcdir=$srcdir$ac_dir_suffix;
9315136644Sache    ac_top_srcdir=$srcdir ;;
931626497Sache  *) # Relative path.
9317136644Sache    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9318136644Sache    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9319136644Sacheesac
932026497Sache
9321157184Sache# Do not use `cd foo && pwd` to compute absolute paths, because
9322157184Sache# the directories may not exist.
9323157184Sachecase `pwd` in
9324157184Sache.) ac_abs_builddir="$ac_dir";;
9325157184Sache*)
9326157184Sache  case "$ac_dir" in
9327157184Sache  .) ac_abs_builddir=`pwd`;;
9328157184Sache  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9329157184Sache  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9330157184Sache  esac;;
9331157184Sacheesac
9332157184Sachecase $ac_abs_builddir in
9333157184Sache.) ac_abs_top_builddir=${ac_top_builddir}.;;
9334157184Sache*)
9335157184Sache  case ${ac_top_builddir}. in
9336157184Sache  .) ac_abs_top_builddir=$ac_abs_builddir;;
9337157184Sache  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9338157184Sache  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9339157184Sache  esac;;
9340157184Sacheesac
9341157184Sachecase $ac_abs_builddir in
9342157184Sache.) ac_abs_srcdir=$ac_srcdir;;
9343157184Sache*)
9344157184Sache  case $ac_srcdir in
9345157184Sache  .) ac_abs_srcdir=$ac_abs_builddir;;
9346157184Sache  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9347157184Sache  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9348157184Sache  esac;;
9349157184Sacheesac
9350157184Sachecase $ac_abs_builddir in
9351157184Sache.) ac_abs_top_srcdir=$ac_top_srcdir;;
9352157184Sache*)
9353157184Sache  case $ac_top_srcdir in
9354157184Sache  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9355157184Sache  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9356157184Sache  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9357157184Sache  esac;;
9358157184Sacheesac
9359136644Sache
9360157184Sache
9361119610Sache  case $INSTALL in
9362119610Sache  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9363136644Sache  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
936426497Sache  esac
936526497Sache
9366119610Sache  if test x"$ac_file" != x-; then
9367136644Sache    { echo "$as_me:$LINENO: creating $ac_file" >&5
9368119610Sacheecho "$as_me: creating $ac_file" >&6;}
9369119610Sache    rm -f "$ac_file"
9370119610Sache  fi
9371119610Sache  # Let's still pretend it is `configure' which instantiates (i.e., don't
9372119610Sache  # use $as_me), people would be surprised to read:
9373136644Sache  #    /* config.h.  Generated by config.status.  */
9374136644Sache  if test x"$ac_file" = x-; then
9375136644Sache    configure_input=
9376136644Sache  else
9377136644Sache    configure_input="$ac_file.  "
9378136644Sache  fi
9379136644Sache  configure_input=$configure_input"Generated from `echo $ac_file_in |
9380157184Sache				     sed 's,.*/,,'` by configure."
938126497Sache
9382119610Sache  # First look for the input files in the build tree, otherwise in the
9383119610Sache  # src tree.
9384119610Sache  ac_file_inputs=`IFS=:
9385119610Sache    for f in $ac_file_in; do
9386119610Sache      case $f in
9387119610Sache      -) echo $tmp/stdin ;;
9388119610Sache      [\\/$]*)
9389157184Sache	 # Absolute (can't be DOS-style, as IFS=:)
9390157184Sache	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9391119610Sacheecho "$as_me: error: cannot find input file: $f" >&2;}
9392119610Sache   { (exit 1); exit 1; }; }
9393157184Sache	 echo "$f";;
9394119610Sache      *) # Relative
9395157184Sache	 if test -f "$f"; then
9396157184Sache	   # Build tree
9397157184Sache	   echo "$f"
9398157184Sache	 elif test -f "$srcdir/$f"; then
9399157184Sache	   # Source tree
9400157184Sache	   echo "$srcdir/$f"
9401157184Sache	 else
9402157184Sache	   # /dev/null tree
9403157184Sache	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9404119610Sacheecho "$as_me: error: cannot find input file: $f" >&2;}
9405119610Sache   { (exit 1); exit 1; }; }
9406157184Sache	 fi;;
9407119610Sache      esac
9408119610Sache    done` || { (exit 1); exit 1; }
9409136644Sache_ACEOF
9410136644Sachecat >>$CONFIG_STATUS <<_ACEOF
9411119610Sache  sed "$ac_vpsub
9412119610Sache$extrasub
9413136644Sache_ACEOF
9414136644Sachecat >>$CONFIG_STATUS <<\_ACEOF
9415119610Sache:t
9416119610Sache/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9417119610Saches,@configure_input@,$configure_input,;t t
9418119610Saches,@srcdir@,$ac_srcdir,;t t
9419136644Saches,@abs_srcdir@,$ac_abs_srcdir,;t t
9420119610Saches,@top_srcdir@,$ac_top_srcdir,;t t
9421136644Saches,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9422136644Saches,@builddir@,$ac_builddir,;t t
9423136644Saches,@abs_builddir@,$ac_abs_builddir,;t t
9424136644Saches,@top_builddir@,$ac_top_builddir,;t t
9425136644Saches,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9426119610Saches,@INSTALL@,$ac_INSTALL,;t t
9427119610Sache" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9428119610Sache  rm -f $tmp/stdin
9429119610Sache  if test x"$ac_file" != x-; then
9430119610Sache    mv $tmp/out $ac_file
9431119610Sache  else
9432119610Sache    cat $tmp/out
9433119610Sache    rm -f $tmp/out
9434119610Sache  fi
943526497Sache
9436119610Sachedone
9437136644Sache_ACEOF
9438136644Sachecat >>$CONFIG_STATUS <<\_ACEOF
9439119610Sache
9440119610Sache#
9441119610Sache# CONFIG_HEADER section.
9442119610Sache#
9443119610Sache
944426497Sache# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
944526497Sache# NAME is the cpp macro being defined and VALUE is the value it is being given.
944626497Sache#
944726497Sache# ac_d sets the value in "#define NAME VALUE" lines.
9448157184Sacheac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
9449157184Sacheac_dB='[	 ].*$,\1#\2'
9450119610Sacheac_dC=' '
9451119610Sacheac_dD=',;t'
9452119610Sache# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9453157184Sacheac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
9454119610Sacheac_uB='$,\1#\2define\3'
945526497Sacheac_uC=' '
9456119610Sacheac_uD=',;t'
945726497Sache
9458119610Sachefor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
945926497Sache  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9460119610Sache  case $ac_file in
9461119610Sache  - | *:- | *:-:* ) # input from stdin
9462157184Sache	cat >$tmp/stdin
9463157184Sache	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9464157184Sache	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9465119610Sache  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9466157184Sache	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9467119610Sache  * )   ac_file_in=$ac_file.in ;;
946826497Sache  esac
946926497Sache
9470136644Sache  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9471119610Sacheecho "$as_me: creating $ac_file" >&6;}
947226497Sache
9473119610Sache  # First look for the input files in the build tree, otherwise in the
9474119610Sache  # src tree.
9475119610Sache  ac_file_inputs=`IFS=:
9476119610Sache    for f in $ac_file_in; do
9477119610Sache      case $f in
9478119610Sache      -) echo $tmp/stdin ;;
9479119610Sache      [\\/$]*)
9480157184Sache	 # Absolute (can't be DOS-style, as IFS=:)
9481157184Sache	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9482119610Sacheecho "$as_me: error: cannot find input file: $f" >&2;}
9483119610Sache   { (exit 1); exit 1; }; }
9484157184Sache	 # Do quote $f, to prevent DOS paths from being IFS'd.
9485157184Sache	 echo "$f";;
9486119610Sache      *) # Relative
9487157184Sache	 if test -f "$f"; then
9488157184Sache	   # Build tree
9489157184Sache	   echo "$f"
9490157184Sache	 elif test -f "$srcdir/$f"; then
9491157184Sache	   # Source tree
9492157184Sache	   echo "$srcdir/$f"
9493157184Sache	 else
9494157184Sache	   # /dev/null tree
9495157184Sache	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9496119610Sacheecho "$as_me: error: cannot find input file: $f" >&2;}
9497119610Sache   { (exit 1); exit 1; }; }
9498157184Sache	 fi;;
9499119610Sache      esac
9500119610Sache    done` || { (exit 1); exit 1; }
9501119610Sache  # Remove the trailing spaces.
9502157184Sache  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
950326497Sache
9504136644Sache_ACEOF
950526497Sache
9506119610Sache# Transform confdefs.h into two sed scripts, `conftest.defines' and
9507119610Sache# `conftest.undefs', that substitutes the proper values into
9508119610Sache# config.h.in to produce config.h.  The first handles `#define'
9509119610Sache# templates, and the second `#undef' templates.
9510119610Sache# And first: Protect against being on the right side of a sed subst in
9511119610Sache# config.status.  Protect against being in an unquoted here document
9512119610Sache# in config.status.
9513119610Sacherm -f conftest.defines conftest.undefs
9514119610Sache# Using a here document instead of a string reduces the quoting nightmare.
9515119610Sache# Putting comments in sed scripts is not portable.
9516119610Sache#
9517119610Sache# `end' is used to avoid that the second main sed command (meant for
9518119610Sache# 0-ary CPP macros) applies to n-ary macro definitions.
9519119610Sache# See the Autoconf documentation for `clear'.
9520136644Sachecat >confdef2sed.sed <<\_ACEOF
9521119610Saches/[\\&,]/\\&/g
9522119610Saches,[\\$`],\\&,g
9523119610Sachet clear
9524119610Sache: clear
9525157184Saches,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9526119610Sachet end
9527157184Saches,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9528119610Sache: end
9529136644Sache_ACEOF
9530119610Sache# If some macros were called several times there might be several times
9531119610Sache# the same #defines, which is useless.  Nevertheless, we may not want to
9532119610Sache# sort them, since we want the *last* AC-DEFINE to be honored.
9533119610Sacheuniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9534119610Sachesed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9535119610Sacherm -f confdef2sed.sed
953626497Sache
953726497Sache# This sed command replaces #undef with comments.  This is necessary, for
953826497Sache# example, in the case of _POSIX_SOURCE, which is predefined and required
953926497Sache# on some systems where configure will not decide to define it.
9540136644Sachecat >>conftest.undefs <<\_ACEOF
9541157184Saches,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9542136644Sache_ACEOF
954326497Sache
9544119610Sache# Break up conftest.defines because some shells have a limit on the size
9545119610Sache# of here documents, and old seds have small limits too (100 cmds).
9546119610Sacheecho '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9547157184Sacheecho '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9548119610Sacheecho '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9549119610Sacheecho '  :' >>$CONFIG_STATUS
9550119610Sacherm -f conftest.tail
9551119610Sachewhile grep . conftest.defines >/dev/null
9552119610Sachedo
9553119610Sache  # Write a limited-size here document to $tmp/defines.sed.
9554119610Sache  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9555119610Sache  # Speed up: don't consider the non `#define' lines.
9556157184Sache  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
9557119610Sache  # Work around the forget-to-reset-the-flag bug.
9558119610Sache  echo 't clr' >>$CONFIG_STATUS
9559119610Sache  echo ': clr' >>$CONFIG_STATUS
9560119610Sache  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9561119610Sache  echo 'CEOF
9562119610Sache  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9563119610Sache  rm -f $tmp/in
9564119610Sache  mv $tmp/out $tmp/in
9565119610Sache' >>$CONFIG_STATUS
9566119610Sache  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9567119610Sache  rm -f conftest.defines
9568119610Sache  mv conftest.tail conftest.defines
9569119610Sachedone
9570119610Sacherm -f conftest.defines
9571136644Sacheecho '  fi # grep' >>$CONFIG_STATUS
9572119610Sacheecho >>$CONFIG_STATUS
957326497Sache
9574119610Sache# Break up conftest.undefs because some shells have a limit on the size
9575119610Sache# of here documents, and old seds have small limits too (100 cmds).
9576119610Sacheecho '  # Handle all the #undef templates' >>$CONFIG_STATUS
957726497Sacherm -f conftest.tail
9578119610Sachewhile grep . conftest.undefs >/dev/null
957926497Sachedo
9580119610Sache  # Write a limited-size here document to $tmp/undefs.sed.
9581119610Sache  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9582119610Sache  # Speed up: don't consider the non `#undef'
9583157184Sache  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
9584119610Sache  # Work around the forget-to-reset-the-flag bug.
9585119610Sache  echo 't clr' >>$CONFIG_STATUS
9586119610Sache  echo ': clr' >>$CONFIG_STATUS
9587119610Sache  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
958826497Sache  echo 'CEOF
9589119610Sache  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9590119610Sache  rm -f $tmp/in
9591119610Sache  mv $tmp/out $tmp/in
9592119610Sache' >>$CONFIG_STATUS
9593119610Sache  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9594119610Sache  rm -f conftest.undefs
9595119610Sache  mv conftest.tail conftest.undefs
959626497Sachedone
9597119610Sacherm -f conftest.undefs
959826497Sache
9599136644Sachecat >>$CONFIG_STATUS <<\_ACEOF
9600119610Sache  # Let's still pretend it is `configure' which instantiates (i.e., don't
9601119610Sache  # use $as_me), people would be surprised to read:
9602136644Sache  #    /* config.h.  Generated by config.status.  */
9603119610Sache  if test x"$ac_file" = x-; then
9604136644Sache    echo "/* Generated by configure.  */" >$tmp/config.h
960526497Sache  else
9606136644Sache    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9607119610Sache  fi
9608119610Sache  cat $tmp/in >>$tmp/config.h
9609119610Sache  rm -f $tmp/in
9610119610Sache  if test x"$ac_file" != x-; then
9611136644Sache    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9612136644Sache      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9613119610Sacheecho "$as_me: $ac_file is unchanged" >&6;}
9614119610Sache    else
9615136644Sache      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9616136644Sache$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9617157184Sache	 X"$ac_file" : 'X\(//\)[^/]' \| \
9618157184Sache	 X"$ac_file" : 'X\(//\)$' \| \
9619157184Sache	 X"$ac_file" : 'X\(/\)' \| \
9620157184Sache	 .     : '\(.\)' 2>/dev/null ||
9621119610Sacheecho X"$ac_file" |
9622119610Sache    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9623119610Sache  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9624119610Sache  	  /^X\(\/\/\)$/{ s//\1/; q; }
9625119610Sache  	  /^X\(\/\).*/{ s//\1/; q; }
9626119610Sache  	  s/.*/./; q'`
9627136644Sache      { if $as_mkdir_p; then
9628136644Sache    mkdir -p "$ac_dir"
9629136644Sache  else
9630136644Sache    as_dir="$ac_dir"
9631136644Sache    as_dirs=
9632136644Sache    while test ! -d "$as_dir"; do
9633136644Sache      as_dirs="$as_dir $as_dirs"
9634136644Sache      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9635136644Sache$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9636157184Sache	 X"$as_dir" : 'X\(//\)[^/]' \| \
9637157184Sache	 X"$as_dir" : 'X\(//\)$' \| \
9638157184Sache	 X"$as_dir" : 'X\(/\)' \| \
9639157184Sache	 .     : '\(.\)' 2>/dev/null ||
9640136644Sacheecho X"$as_dir" |
9641136644Sache    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9642136644Sache  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9643136644Sache  	  /^X\(\/\/\)$/{ s//\1/; q; }
9644136644Sache  	  /^X\(\/\).*/{ s//\1/; q; }
9645136644Sache  	  s/.*/./; q'`
9646136644Sache    done
9647136644Sache    test ! -n "$as_dirs" || mkdir $as_dirs
9648136644Sache  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9649136644Sacheecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9650136644Sache   { (exit 1); exit 1; }; }; }
9651119610Sache
9652119610Sache      rm -f $ac_file
9653119610Sache      mv $tmp/config.h $ac_file
965426497Sache    fi
9655119610Sache  else
9656119610Sache    cat $tmp/config.h
9657119610Sache    rm -f $tmp/config.h
965826497Sache  fi
9659119610Sachedone
9660136644Sache_ACEOF
9661136644Sachecat >>$CONFIG_STATUS <<\_ACEOF
966226497Sache
9663119610Sache#
9664119610Sache# CONFIG_COMMANDS section.
9665119610Sache#
9666119610Sachefor ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9667119610Sache  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9668119610Sache  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9669136644Sache  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9670136644Sache$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9671157184Sache	 X"$ac_dest" : 'X\(//\)[^/]' \| \
9672157184Sache	 X"$ac_dest" : 'X\(//\)$' \| \
9673157184Sache	 X"$ac_dest" : 'X\(/\)' \| \
9674157184Sache	 .     : '\(.\)' 2>/dev/null ||
9675136644Sacheecho X"$ac_dest" |
9676136644Sache    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9677136644Sache  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9678136644Sache  	  /^X\(\/\/\)$/{ s//\1/; q; }
9679136644Sache  	  /^X\(\/\).*/{ s//\1/; q; }
9680136644Sache  	  s/.*/./; q'`
9681157184Sache  { if $as_mkdir_p; then
9682157184Sache    mkdir -p "$ac_dir"
9683157184Sache  else
9684157184Sache    as_dir="$ac_dir"
9685157184Sache    as_dirs=
9686157184Sache    while test ! -d "$as_dir"; do
9687157184Sache      as_dirs="$as_dir $as_dirs"
9688157184Sache      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9689157184Sache$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9690157184Sache	 X"$as_dir" : 'X\(//\)[^/]' \| \
9691157184Sache	 X"$as_dir" : 'X\(//\)$' \| \
9692157184Sache	 X"$as_dir" : 'X\(/\)' \| \
9693157184Sache	 .     : '\(.\)' 2>/dev/null ||
9694157184Sacheecho X"$as_dir" |
9695157184Sache    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9696157184Sache  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9697157184Sache  	  /^X\(\/\/\)$/{ s//\1/; q; }
9698157184Sache  	  /^X\(\/\).*/{ s//\1/; q; }
9699157184Sache  	  s/.*/./; q'`
9700157184Sache    done
9701157184Sache    test ! -n "$as_dirs" || mkdir $as_dirs
9702157184Sache  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9703157184Sacheecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9704157184Sache   { (exit 1); exit 1; }; }; }
9705157184Sache
9706136644Sache  ac_builddir=.
970726497Sache
9708136644Sacheif test "$ac_dir" != .; then
9709136644Sache  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9710136644Sache  # A "../" for each directory in $ac_dir_suffix.
9711136644Sache  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9712136644Sacheelse
9713136644Sache  ac_dir_suffix= ac_top_builddir=
9714136644Sachefi
9715136644Sache
9716136644Sachecase $srcdir in
9717136644Sache  .)  # No --srcdir option.  We are building in place.
9718136644Sache    ac_srcdir=.
9719136644Sache    if test -z "$ac_top_builddir"; then
9720136644Sache       ac_top_srcdir=.
9721136644Sache    else
9722136644Sache       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9723136644Sache    fi ;;
9724136644Sache  [\\/]* | ?:[\\/]* )  # Absolute path.
9725136644Sache    ac_srcdir=$srcdir$ac_dir_suffix;
9726136644Sache    ac_top_srcdir=$srcdir ;;
9727136644Sache  *) # Relative path.
9728136644Sache    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9729136644Sache    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9730136644Sacheesac
9731136644Sache
9732157184Sache# Do not use `cd foo && pwd` to compute absolute paths, because
9733157184Sache# the directories may not exist.
9734157184Sachecase `pwd` in
9735157184Sache.) ac_abs_builddir="$ac_dir";;
9736157184Sache*)
9737157184Sache  case "$ac_dir" in
9738157184Sache  .) ac_abs_builddir=`pwd`;;
9739157184Sache  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9740157184Sache  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9741157184Sache  esac;;
9742157184Sacheesac
9743157184Sachecase $ac_abs_builddir in
9744157184Sache.) ac_abs_top_builddir=${ac_top_builddir}.;;
9745157184Sache*)
9746157184Sache  case ${ac_top_builddir}. in
9747157184Sache  .) ac_abs_top_builddir=$ac_abs_builddir;;
9748157184Sache  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9749157184Sache  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9750157184Sache  esac;;
9751157184Sacheesac
9752157184Sachecase $ac_abs_builddir in
9753157184Sache.) ac_abs_srcdir=$ac_srcdir;;
9754157184Sache*)
9755157184Sache  case $ac_srcdir in
9756157184Sache  .) ac_abs_srcdir=$ac_abs_builddir;;
9757157184Sache  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9758157184Sache  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9759157184Sache  esac;;
9760157184Sacheesac
9761157184Sachecase $ac_abs_builddir in
9762157184Sache.) ac_abs_top_srcdir=$ac_top_srcdir;;
9763157184Sache*)
9764157184Sache  case $ac_top_srcdir in
9765157184Sache  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9766157184Sache  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9767157184Sache  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9768157184Sache  esac;;
9769157184Sacheesac
9770136644Sache
9771157184Sache
9772136644Sache  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9773136644Sacheecho "$as_me: executing $ac_dest commands" >&6;}
9774119610Sache  case $ac_dest in
9775119610Sache    default )
977626497Sache# Makefile uses this timestamp file to record whether config.h is up to date.
977726497Sacheecho > stamp-h
9778119610Sache ;;
9779119610Sache  esac
9780119610Sachedone
9781136644Sache_ACEOF
978226497Sache
9783136644Sachecat >>$CONFIG_STATUS <<\_ACEOF
9784119610Sache
9785119610Sache{ (exit 0); exit 0; }
9786136644Sache_ACEOF
978726497Sachechmod +x $CONFIG_STATUS
9788119610Sacheac_clean_files=$ac_clean_files_save
978926497Sache
9790136644Sache
9791119610Sache# configure is writing to config.log, and then calls config.status.
9792119610Sache# config.status does its own redirection, appending to config.log.
9793119610Sache# Unfortunately, on DOS this fails, as config.log is still kept open
9794119610Sache# by configure, so config.status won't be able to write to it; its
9795119610Sache# output is simply discarded.  So we exec the FD to /dev/null,
9796119610Sache# effectively closing config.log, so it can be properly (re)opened and
9797119610Sache# appended to by config.status.  When coming back to configure, we
9798119610Sache# need to make the FD available again.
9799119610Sacheif test "$no_create" != yes; then
9800119610Sache  ac_cs_success=:
9801136644Sache  ac_config_status_args=
9802136644Sache  test "$silent" = yes &&
9803136644Sache    ac_config_status_args="$ac_config_status_args --quiet"
9804119610Sache  exec 5>/dev/null
9805136644Sache  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9806119610Sache  exec 5>>config.log
9807119610Sache  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9808119610Sache  # would make configure fail if this is the last instruction.
9809119610Sache  $ac_cs_success || { (exit 1); exit 1; }
9810119610Sachefi
9811119610Sache
9812