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