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