1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139  emulate sh
140  NULLCMD=:
141  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142  # is contrary to our usage.  Disable this feature.
143  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144  setopt NO_GLOB_SUBST
145else
146  case \`(set -o) 2>/dev/null\` in #(
147  *posix*) :
148    set -o posix ;; #(
149  *) :
150     ;;
151esac
152fi
153"
154  as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168  exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176  if (eval "$as_required") 2>/dev/null; then :
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187do
188  IFS=$as_save_IFS
189  test -z "$as_dir" && as_dir=.
190  as_found=:
191  case $as_dir in #(
192	 /*)
193	   for as_base in sh bash ksh sh5; do
194	     # Try only shells that exist, to save several forks.
195	     as_shell=$as_dir/$as_base
196	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198  CONFIG_SHELL=$as_shell as_have_required=yes
199		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  break 2
201fi
202fi
203	   done;;
204       esac
205  as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209  CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214      if test "x$CONFIG_SHELL" != x; then :
215  # We cannot yet assume a decent shell, so we have to provide a
216	# neutralization value for shells without unset; and this also
217	# works around shells that cannot unset nonexistent variables.
218	# Preserve -v and -x to the replacement shell.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	case $- in # ((((
224	  *v*x* | *x*v* ) as_opts=-vx ;;
225	  *v* ) as_opts=-v ;;
226	  *x* ) as_opts=-x ;;
227	  * ) as_opts= ;;
228	esac
229	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230fi
231
232    if test x$as_have_required = xno; then :
233  $as_echo "$0: This script requires a shell more modern than all"
234  $as_echo "$0: the shells that I found on your system."
235  if test x${ZSH_VERSION+set} = xset ; then
236    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238  else
239    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one."
243  fi
244  exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
253
254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262  { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271  return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279  set +e
280  as_fn_set_status $1
281  exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290  case $as_dir in #(
291  -*) as_dir=./$as_dir;;
292  esac
293  test -d "$as_dir" || eval $as_mkdir_p || {
294    as_dirs=
295    while :; do
296      case $as_dir in #(
297      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298      *) as_qdir=$as_dir;;
299      esac
300      as_dirs="'$as_qdir' $as_dirs"
301      as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303	 X"$as_dir" : 'X\(//\)[^/]' \| \
304	 X"$as_dir" : 'X\(//\)$' \| \
305	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)[^/].*/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\).*/{
320	    s//\1/
321	    q
322	  }
323	  s/.*/./; q'`
324      test -d "$as_dir" && break
325    done
326    test -z "$as_dirs" || eval "mkdir $as_dirs"
327  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338  eval 'as_fn_append ()
339  {
340    eval $1+=\$2
341  }'
342else
343  as_fn_append ()
344  {
345    eval $1=\$$1\$2
346  }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355  eval 'as_fn_arith ()
356  {
357    as_val=$(( $* ))
358  }'
359else
360  as_fn_arith ()
361  {
362    as_val=`expr "$@" || test $? -eq 1`
363  }
364fi # as_fn_arith
365
366
367# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ----------------------------------------
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371# script with STATUS, using 1 if that was 0.
372as_fn_error ()
373{
374  as_status=$1; test $as_status -eq 0 && as_status=1
375  if test "$4"; then
376    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378  fi
379  $as_echo "$as_me: error: $2" >&2
380  as_fn_exit $as_status
381} # as_fn_error
382
383if expr a : '\(a\)' >/dev/null 2>&1 &&
384   test "X`expr 00001 : '.*\(...\)'`" = X001; then
385  as_expr=expr
386else
387  as_expr=false
388fi
389
390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391  as_basename=basename
392else
393  as_basename=false
394fi
395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397  as_dirname=dirname
398else
399  as_dirname=false
400fi
401
402as_me=`$as_basename -- "$0" ||
403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404	 X"$0" : 'X\(//\)$' \| \
405	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" |
407    sed '/^.*\/\([^/][^/]*\)\/*$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\/\)$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\).*/{
416	    s//\1/
417	    q
418	  }
419	  s/.*/./; q'`
420
421# Avoid depending upon Character Ranges.
422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429  as_lineno_1=$LINENO as_lineno_1a=$LINENO
430  as_lineno_2=$LINENO as_lineno_2a=$LINENO
431  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434  sed -n '
435    p
436    /[$]LINENO/=
437  ' <$as_myself |
438    sed '
439      s/[$]LINENO.*/&-/
440      t lineno
441      b
442      :lineno
443      N
444      :loop
445      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446      t loop
447      s/-\n.*//
448    ' >$as_me.lineno &&
449  chmod +x "$as_me.lineno" ||
450    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452  # Don't try to exec as it changes $[0], causing all sort of problems
453  # (the dirname of $[0] is not the place where we might find the
454  # original and so on.  Autoconf is especially sensitive to this).
455  . "./$as_me.lineno"
456  # Exit status is that of the last command.
457  exit
458}
459
460ECHO_C= ECHO_N= ECHO_T=
461case `echo -n x` in #(((((
462-n*)
463  case `echo 'xy\c'` in
464  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
465  xy)  ECHO_C='\c';;
466  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467       ECHO_T='	';;
468  esac;;
469*)
470  ECHO_N='-n';;
471esac
472
473rm -f conf$$ conf$$.exe conf$$.file
474if test -d conf$$.dir; then
475  rm -f conf$$.dir/conf$$.file
476else
477  rm -f conf$$.dir
478  mkdir conf$$.dir 2>/dev/null
479fi
480if (echo >conf$$.file) 2>/dev/null; then
481  if ln -s conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s='ln -s'
483    # ... but there are two gotchas:
484    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486    # In both cases, we have to default to `cp -p'.
487    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488      as_ln_s='cp -p'
489  elif ln conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s=ln
491  else
492    as_ln_s='cp -p'
493  fi
494else
495  as_ln_s='cp -p'
496fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null
499
500if mkdir -p . 2>/dev/null; then
501  as_mkdir_p='mkdir -p "$as_dir"'
502else
503  test -d ./-p && rmdir ./-p
504  as_mkdir_p=false
505fi
506
507if test -x / >/dev/null 2>&1; then
508  as_test_x='test -x'
509else
510  if ls -dL / >/dev/null 2>&1; then
511    as_ls_L_option=L
512  else
513    as_ls_L_option=
514  fi
515  as_test_x='
516    eval sh -c '\''
517      if test -d "$1"; then
518	test -d "$1/.";
519      else
520	case $1 in #(
521	-*)set "./$1";;
522	esac;
523	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524	???[sx]*):;;*)false;;esac;fi
525    '\'' sh
526  '
527fi
528as_executable_p=$as_test_x
529
530# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533# Sed expression to map a string onto a valid variable name.
534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537test -n "$DJDIR" || exec 7<&0 </dev/null
538exec 6>&1
539
540# Name of the host.
541# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542# so uname gets run too.
543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545#
546# Initializations.
547#
548ac_default_prefix=/usr/local
549ac_clean_files=
550ac_config_libobj_dir=.
551LIBOBJS=
552cross_compiling=no
553subdirs=
554MFLAGS=
555MAKEFLAGS=
556
557# Identity of this package.
558PACKAGE_NAME=
559PACKAGE_TARNAME=
560PACKAGE_VERSION=
561PACKAGE_STRING=
562PACKAGE_BUGREPORT=
563PACKAGE_URL=
564
565ac_unique_file="Src/zsh.h"
566# Factoring default headers for most tests.
567ac_includes_default="\
568#include <stdio.h>
569#ifdef HAVE_SYS_TYPES_H
570# include <sys/types.h>
571#endif
572#ifdef HAVE_SYS_STAT_H
573# include <sys/stat.h>
574#endif
575#ifdef STDC_HEADERS
576# include <stdlib.h>
577# include <stddef.h>
578#else
579# ifdef HAVE_STDLIB_H
580#  include <stdlib.h>
581# endif
582#endif
583#ifdef HAVE_STRING_H
584# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585#  include <memory.h>
586# endif
587# include <string.h>
588#endif
589#ifdef HAVE_STRINGS_H
590# include <strings.h>
591#endif
592#ifdef HAVE_INTTYPES_H
593# include <inttypes.h>
594#endif
595#ifdef HAVE_STDINT_H
596# include <stdint.h>
597#endif
598#ifdef HAVE_UNISTD_H
599# include <unistd.h>
600#endif"
601
602ac_header_list=
603ac_subst_vars='LTLIBOBJS
604LIBOBJS
605EXTRAZSHOBJS
606MOD_IMPORT_FUNCTION
607MOD_IMPORT_VARIABLE
608MOD_EXPORT
609LINKMODS
610L
611IMPOPT
612EXPOPT
613EXTRA_LDFLAGS
614E
615DLLDFLAGS
616DLCFLAGS
617DLLD
618DL_EXT
619D
620UNINSTLIB
621INSTLIB
622SHORTBOOTNAMES
623RLIMITS_INC_H
624ZSH_TERM_H
625CURSES_KEYS_H
626ZSH_CURSES_H
627ERRNO_H
628SIGNAL_H
629PCRECONF
630ANSI2KNR
631TEXI2HTML
632TEXI2PDF
633PDFETEX
634YODL_OPTIONS
635YODL
636LN_S
637LN
638AWK
639INSTALL_DATA
640INSTALL_SCRIPT
641INSTALL_PROGRAM
642SET_MAKE
643ALLOCA
644U
645EGREP
646GREP
647CPP
648LIBLDFLAGS
649EXELDFLAGS
650OBJEXT
651EXEEXT
652ac_ct_CC
653CPPFLAGS
654LDFLAGS
655CFLAGS
656CC
657sitescriptdir
658scriptdir
659FUNCTIONS_SUBDIRS
660sitefndir
661fndir
662additionalfpath
663runhelp
664runhelpdir
665zlogout
666zlogin
667zprofile
668zshrc
669zshenv
670tzsh
671host_os
672host_vendor
673host_cpu
674host
675build_os
676build_vendor
677build_cpu
678build
679target_alias
680host_alias
681build_alias
682LIBS
683ECHO_T
684ECHO_N
685ECHO_C
686DEFS
687mandir
688localedir
689libdir
690psdir
691pdfdir
692dvidir
693htmldir
694infodir
695docdir
696oldincludedir
697includedir
698localstatedir
699sharedstatedir
700sysconfdir
701datadir
702datarootdir
703libexecdir
704sbindir
705bindir
706program_transform_name
707prefix
708exec_prefix
709PACKAGE_URL
710PACKAGE_BUGREPORT
711PACKAGE_STRING
712PACKAGE_VERSION
713PACKAGE_TARNAME
714PACKAGE_NAME
715PATH_SEPARATOR
716SHELL'
717ac_subst_files='CLEAN_MK
718CONFIG_MK
719DEFS_MK
720VERSION_MK'
721ac_user_opts='
722enable_option_checking
723enable_cppflags
724enable_cflags
725enable_ldflags
726enable_libs
727enable_zsh_debug
728enable_zsh_mem
729enable_zsh_mem_debug
730enable_zsh_mem_warning
731enable_zsh_secure_free
732enable_zsh_heap_debug
733enable_zsh_hash_debug
734enable_etcdir
735enable_zshenv
736enable_zshrc
737enable_zprofile
738enable_zlogin
739enable_zlogout
740enable_dynamic
741enable_restricted_r
742enable_locale
743enable_ansi2knr
744enable_runhelpdir
745enable_fndir
746enable_site_fndir
747enable_function_subdirs
748enable_additional_fpath
749enable_scriptdir
750enable_site_scriptdir
751enable_custom_patchlevel
752enable_maildir_support
753enable_max_function_depth
754enable_readnullcmd
755enable_pcre
756enable_cap
757enable_gdbm
758enable_largefile
759with_term_lib
760with_tcsetpgrp
761enable_multibyte
762enable_libc_musl
763enable_dynamic_nss
764'
765      ac_precious_vars='build_alias
766host_alias
767target_alias
768CC
769CFLAGS
770LDFLAGS
771LIBS
772CPPFLAGS
773CPP'
774
775
776# Initialize some variables set by options.
777ac_init_help=
778ac_init_version=false
779ac_unrecognized_opts=
780ac_unrecognized_sep=
781# The variables have the same names as the options, with
782# dashes changed to underlines.
783cache_file=/dev/null
784exec_prefix=NONE
785no_create=
786no_recursion=
787prefix=NONE
788program_prefix=NONE
789program_suffix=NONE
790program_transform_name=s,x,x,
791silent=
792site=
793srcdir=
794verbose=
795x_includes=NONE
796x_libraries=NONE
797
798# Installation directory options.
799# These are left unexpanded so users can "make install exec_prefix=/foo"
800# and all the variables that are supposed to be based on exec_prefix
801# by default will actually change.
802# Use braces instead of parens because sh, perl, etc. also accept them.
803# (The list follows the same order as the GNU Coding Standards.)
804bindir='${exec_prefix}/bin'
805sbindir='${exec_prefix}/sbin'
806libexecdir='${exec_prefix}/libexec'
807datarootdir='${prefix}/share'
808datadir='${datarootdir}'
809sysconfdir='${prefix}/etc'
810sharedstatedir='${prefix}/com'
811localstatedir='${prefix}/var'
812includedir='${prefix}/include'
813oldincludedir='/usr/include'
814docdir='${datarootdir}/doc/${PACKAGE}'
815infodir='${datarootdir}/info'
816htmldir='${docdir}'
817dvidir='${docdir}'
818pdfdir='${docdir}'
819psdir='${docdir}'
820libdir='${exec_prefix}/lib'
821localedir='${datarootdir}/locale'
822mandir='${datarootdir}/man'
823
824ac_prev=
825ac_dashdash=
826for ac_option
827do
828  # If the previous option needs an argument, assign it.
829  if test -n "$ac_prev"; then
830    eval $ac_prev=\$ac_option
831    ac_prev=
832    continue
833  fi
834
835  case $ac_option in
836  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837  *=)   ac_optarg= ;;
838  *)    ac_optarg=yes ;;
839  esac
840
841  # Accept the important Cygnus configure options, so we can diagnose typos.
842
843  case $ac_dashdash$ac_option in
844  --)
845    ac_dashdash=yes ;;
846
847  -bindir | --bindir | --bindi | --bind | --bin | --bi)
848    ac_prev=bindir ;;
849  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850    bindir=$ac_optarg ;;
851
852  -build | --build | --buil | --bui | --bu)
853    ac_prev=build_alias ;;
854  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855    build_alias=$ac_optarg ;;
856
857  -cache-file | --cache-file | --cache-fil | --cache-fi \
858  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859    ac_prev=cache_file ;;
860  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862    cache_file=$ac_optarg ;;
863
864  --config-cache | -C)
865    cache_file=config.cache ;;
866
867  -datadir | --datadir | --datadi | --datad)
868    ac_prev=datadir ;;
869  -datadir=* | --datadir=* | --datadi=* | --datad=*)
870    datadir=$ac_optarg ;;
871
872  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873  | --dataroo | --dataro | --datar)
874    ac_prev=datarootdir ;;
875  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877    datarootdir=$ac_optarg ;;
878
879  -disable-* | --disable-*)
880    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881    # Reject names that are not valid shell variable names.
882    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883      as_fn_error $? "invalid feature name: $ac_useropt"
884    ac_useropt_orig=$ac_useropt
885    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886    case $ac_user_opts in
887      *"
888"enable_$ac_useropt"
889"*) ;;
890      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891	 ac_unrecognized_sep=', ';;
892    esac
893    eval enable_$ac_useropt=no ;;
894
895  -docdir | --docdir | --docdi | --doc | --do)
896    ac_prev=docdir ;;
897  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898    docdir=$ac_optarg ;;
899
900  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901    ac_prev=dvidir ;;
902  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903    dvidir=$ac_optarg ;;
904
905  -enable-* | --enable-*)
906    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907    # Reject names that are not valid shell variable names.
908    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909      as_fn_error $? "invalid feature name: $ac_useropt"
910    ac_useropt_orig=$ac_useropt
911    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912    case $ac_user_opts in
913      *"
914"enable_$ac_useropt"
915"*) ;;
916      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917	 ac_unrecognized_sep=', ';;
918    esac
919    eval enable_$ac_useropt=\$ac_optarg ;;
920
921  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923  | --exec | --exe | --ex)
924    ac_prev=exec_prefix ;;
925  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927  | --exec=* | --exe=* | --ex=*)
928    exec_prefix=$ac_optarg ;;
929
930  -gas | --gas | --ga | --g)
931    # Obsolete; use --with-gas.
932    with_gas=yes ;;
933
934  -help | --help | --hel | --he | -h)
935    ac_init_help=long ;;
936  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937    ac_init_help=recursive ;;
938  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939    ac_init_help=short ;;
940
941  -host | --host | --hos | --ho)
942    ac_prev=host_alias ;;
943  -host=* | --host=* | --hos=* | --ho=*)
944    host_alias=$ac_optarg ;;
945
946  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947    ac_prev=htmldir ;;
948  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949  | --ht=*)
950    htmldir=$ac_optarg ;;
951
952  -includedir | --includedir | --includedi | --included | --include \
953  | --includ | --inclu | --incl | --inc)
954    ac_prev=includedir ;;
955  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956  | --includ=* | --inclu=* | --incl=* | --inc=*)
957    includedir=$ac_optarg ;;
958
959  -infodir | --infodir | --infodi | --infod | --info | --inf)
960    ac_prev=infodir ;;
961  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962    infodir=$ac_optarg ;;
963
964  -libdir | --libdir | --libdi | --libd)
965    ac_prev=libdir ;;
966  -libdir=* | --libdir=* | --libdi=* | --libd=*)
967    libdir=$ac_optarg ;;
968
969  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970  | --libexe | --libex | --libe)
971    ac_prev=libexecdir ;;
972  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973  | --libexe=* | --libex=* | --libe=*)
974    libexecdir=$ac_optarg ;;
975
976  -localedir | --localedir | --localedi | --localed | --locale)
977    ac_prev=localedir ;;
978  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979    localedir=$ac_optarg ;;
980
981  -localstatedir | --localstatedir | --localstatedi | --localstated \
982  | --localstate | --localstat | --localsta | --localst | --locals)
983    ac_prev=localstatedir ;;
984  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986    localstatedir=$ac_optarg ;;
987
988  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989    ac_prev=mandir ;;
990  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991    mandir=$ac_optarg ;;
992
993  -nfp | --nfp | --nf)
994    # Obsolete; use --without-fp.
995    with_fp=no ;;
996
997  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998  | --no-cr | --no-c | -n)
999    no_create=yes ;;
1000
1001  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003    no_recursion=yes ;;
1004
1005  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007  | --oldin | --oldi | --old | --ol | --o)
1008    ac_prev=oldincludedir ;;
1009  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012    oldincludedir=$ac_optarg ;;
1013
1014  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015    ac_prev=prefix ;;
1016  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017    prefix=$ac_optarg ;;
1018
1019  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020  | --program-pre | --program-pr | --program-p)
1021    ac_prev=program_prefix ;;
1022  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024    program_prefix=$ac_optarg ;;
1025
1026  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027  | --program-suf | --program-su | --program-s)
1028    ac_prev=program_suffix ;;
1029  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031    program_suffix=$ac_optarg ;;
1032
1033  -program-transform-name | --program-transform-name \
1034  | --program-transform-nam | --program-transform-na \
1035  | --program-transform-n | --program-transform- \
1036  | --program-transform | --program-transfor \
1037  | --program-transfo | --program-transf \
1038  | --program-trans | --program-tran \
1039  | --progr-tra | --program-tr | --program-t)
1040    ac_prev=program_transform_name ;;
1041  -program-transform-name=* | --program-transform-name=* \
1042  | --program-transform-nam=* | --program-transform-na=* \
1043  | --program-transform-n=* | --program-transform-=* \
1044  | --program-transform=* | --program-transfor=* \
1045  | --program-transfo=* | --program-transf=* \
1046  | --program-trans=* | --program-tran=* \
1047  | --progr-tra=* | --program-tr=* | --program-t=*)
1048    program_transform_name=$ac_optarg ;;
1049
1050  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051    ac_prev=pdfdir ;;
1052  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053    pdfdir=$ac_optarg ;;
1054
1055  -psdir | --psdir | --psdi | --psd | --ps)
1056    ac_prev=psdir ;;
1057  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058    psdir=$ac_optarg ;;
1059
1060  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061  | -silent | --silent | --silen | --sile | --sil)
1062    silent=yes ;;
1063
1064  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065    ac_prev=sbindir ;;
1066  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067  | --sbi=* | --sb=*)
1068    sbindir=$ac_optarg ;;
1069
1070  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072  | --sharedst | --shareds | --shared | --share | --shar \
1073  | --sha | --sh)
1074    ac_prev=sharedstatedir ;;
1075  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078  | --sha=* | --sh=*)
1079    sharedstatedir=$ac_optarg ;;
1080
1081  -site | --site | --sit)
1082    ac_prev=site ;;
1083  -site=* | --site=* | --sit=*)
1084    site=$ac_optarg ;;
1085
1086  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087    ac_prev=srcdir ;;
1088  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089    srcdir=$ac_optarg ;;
1090
1091  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092  | --syscon | --sysco | --sysc | --sys | --sy)
1093    ac_prev=sysconfdir ;;
1094  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096    sysconfdir=$ac_optarg ;;
1097
1098  -target | --target | --targe | --targ | --tar | --ta | --t)
1099    ac_prev=target_alias ;;
1100  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101    target_alias=$ac_optarg ;;
1102
1103  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104    verbose=yes ;;
1105
1106  -version | --version | --versio | --versi | --vers | -V)
1107    ac_init_version=: ;;
1108
1109  -with-* | --with-*)
1110    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111    # Reject names that are not valid shell variable names.
1112    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113      as_fn_error $? "invalid package name: $ac_useropt"
1114    ac_useropt_orig=$ac_useropt
1115    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116    case $ac_user_opts in
1117      *"
1118"with_$ac_useropt"
1119"*) ;;
1120      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121	 ac_unrecognized_sep=', ';;
1122    esac
1123    eval with_$ac_useropt=\$ac_optarg ;;
1124
1125  -without-* | --without-*)
1126    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127    # Reject names that are not valid shell variable names.
1128    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129      as_fn_error $? "invalid package name: $ac_useropt"
1130    ac_useropt_orig=$ac_useropt
1131    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132    case $ac_user_opts in
1133      *"
1134"with_$ac_useropt"
1135"*) ;;
1136      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137	 ac_unrecognized_sep=', ';;
1138    esac
1139    eval with_$ac_useropt=no ;;
1140
1141  --x)
1142    # Obsolete; use --with-x.
1143    with_x=yes ;;
1144
1145  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146  | --x-incl | --x-inc | --x-in | --x-i)
1147    ac_prev=x_includes ;;
1148  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150    x_includes=$ac_optarg ;;
1151
1152  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154    ac_prev=x_libraries ;;
1155  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157    x_libraries=$ac_optarg ;;
1158
1159  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160Try \`$0 --help' for more information"
1161    ;;
1162
1163  *=*)
1164    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165    # Reject names that are not valid shell variable names.
1166    case $ac_envvar in #(
1167      '' | [0-9]* | *[!_$as_cr_alnum]* )
1168      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1169    esac
1170    eval $ac_envvar=\$ac_optarg
1171    export $ac_envvar ;;
1172
1173  *)
1174    # FIXME: should be removed in autoconf 3.0.
1175    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179    ;;
1180
1181  esac
1182done
1183
1184if test -n "$ac_prev"; then
1185  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186  as_fn_error $? "missing argument to $ac_option"
1187fi
1188
1189if test -n "$ac_unrecognized_opts"; then
1190  case $enable_option_checking in
1191    no) ;;
1192    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194  esac
1195fi
1196
1197# Check all directory arguments for consistency.
1198for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199		datadir sysconfdir sharedstatedir localstatedir includedir \
1200		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201		libdir localedir mandir
1202do
1203  eval ac_val=\$$ac_var
1204  # Remove trailing slashes.
1205  case $ac_val in
1206    */ )
1207      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208      eval $ac_var=\$ac_val;;
1209  esac
1210  # Be sure to have absolute directory names.
1211  case $ac_val in
1212    [\\/$]* | ?:[\\/]* )  continue;;
1213    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214  esac
1215  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1216done
1217
1218# There might be people who depend on the old broken behavior: `$host'
1219# used to hold the argument of --host etc.
1220# FIXME: To remove some day.
1221build=$build_alias
1222host=$host_alias
1223target=$target_alias
1224
1225# FIXME: To remove some day.
1226if test "x$host_alias" != x; then
1227  if test "x$build_alias" = x; then
1228    cross_compiling=maybe
1229    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1230    If a cross compiler is detected then cross compile mode will be used" >&2
1231  elif test "x$build_alias" != "x$host_alias"; then
1232    cross_compiling=yes
1233  fi
1234fi
1235
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
1240
1241
1242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245  as_fn_error $? "working directory cannot be determined"
1246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247  as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252  ac_srcdir_defaulted=yes
1253  # Try the directory containing this script, then the parent directory.
1254  ac_confdir=`$as_dirname -- "$as_myself" ||
1255$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256	 X"$as_myself" : 'X\(//\)[^/]' \| \
1257	 X"$as_myself" : 'X\(//\)$' \| \
1258	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259$as_echo X"$as_myself" |
1260    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261	    s//\1/
1262	    q
1263	  }
1264	  /^X\(\/\/\)[^/].*/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\/\)$/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\).*/{
1273	    s//\1/
1274	    q
1275	  }
1276	  s/.*/./; q'`
1277  srcdir=$ac_confdir
1278  if test ! -r "$srcdir/$ac_unique_file"; then
1279    srcdir=..
1280  fi
1281else
1282  ac_srcdir_defaulted=no
1283fi
1284if test ! -r "$srcdir/$ac_unique_file"; then
1285  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287fi
1288ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289ac_abs_confdir=`(
1290	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291	pwd)`
1292# When building in place, set srcdir=.
1293if test "$ac_abs_confdir" = "$ac_pwd"; then
1294  srcdir=.
1295fi
1296# Remove unnecessary trailing slashes from srcdir.
1297# Double slashes in file names in object file debugging info
1298# mess up M-x gdb in Emacs.
1299case $srcdir in
1300*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301esac
1302for ac_var in $ac_precious_vars; do
1303  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304  eval ac_env_${ac_var}_value=\$${ac_var}
1305  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307done
1308
1309#
1310# Report the --help message.
1311#
1312if test "$ac_init_help" = "long"; then
1313  # Omit some internal or obsolete options to make the list less imposing.
1314  # This message is too long to be a string in the A/UX 3.1 sh.
1315  cat <<_ACEOF
1316\`configure' configures this package to adapt to many kinds of systems.
1317
1318Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321VAR=VALUE.  See below for descriptions of some of the useful variables.
1322
1323Defaults for the options are specified in brackets.
1324
1325Configuration:
1326  -h, --help              display this help and exit
1327      --help=short        display options specific to this package
1328      --help=recursive    display the short help of all the included packages
1329  -V, --version           display version information and exit
1330  -q, --quiet, --silent   do not print \`checking ...' messages
1331      --cache-file=FILE   cache test results in FILE [disabled]
1332  -C, --config-cache      alias for \`--cache-file=config.cache'
1333  -n, --no-create         do not create output files
1334      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1335
1336Installation directories:
1337  --prefix=PREFIX         install architecture-independent files in PREFIX
1338                          [$ac_default_prefix]
1339  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1340                          [PREFIX]
1341
1342By default, \`make install' will install all the files in
1343\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1344an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345for instance \`--prefix=\$HOME'.
1346
1347For better control, use the options below.
1348
1349Fine tuning of the installation directories:
1350  --bindir=DIR            user executables [EPREFIX/bin]
1351  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1352  --libexecdir=DIR        program executables [EPREFIX/libexec]
1353  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1354  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1355  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1356  --libdir=DIR            object code libraries [EPREFIX/lib]
1357  --includedir=DIR        C header files [PREFIX/include]
1358  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1359  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1360  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1361  --infodir=DIR           info documentation [DATAROOTDIR/info]
1362  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1363  --mandir=DIR            man documentation [DATAROOTDIR/man]
1364  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1365  --htmldir=DIR           html documentation [DOCDIR]
1366  --dvidir=DIR            dvi documentation [DOCDIR]
1367  --pdfdir=DIR            pdf documentation [DOCDIR]
1368  --psdir=DIR             ps documentation [DOCDIR]
1369_ACEOF
1370
1371  cat <<\_ACEOF
1372
1373Program names:
1374  --program-prefix=PREFIX            prepend PREFIX to installed program names
1375  --program-suffix=SUFFIX            append SUFFIX to installed program names
1376  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1377
1378System types:
1379  --build=BUILD     configure for building on BUILD [guessed]
1380  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385
1386  cat <<\_ACEOF
1387
1388Optional Features:
1389  --disable-option-checking  ignore unrecognized --enable/--with options
1390  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1392  --enable-cppflags=...   specify C preprocessor flags
1393  --enable-cflags=...     specify C compiler flags
1394  --enable-ldflags=...    specify linker flags
1395  --enable-libs=...       specify link libraries
1396  --enable-zsh-debug      compile with debug code and debugger symbols
1397  --enable-zsh-mem        compile with zsh memory allocation routines
1398  --enable-zsh-mem-debug  debug zsh memory allocation routines
1399  --enable-zsh-mem-warning
1400                          print warnings for errors in memory allocation
1401  --enable-zsh-secure-free
1402                          turn on error checking for free()
1403  --enable-zsh-heap-debug turn on error checking for heap allocation
1404  --enable-zsh-hash-debug turn on debugging of internal hash tables
1405  --enable-etcdir=DIR     the default directory for global zsh scripts
1406  --enable-zshenv=FILE    the full pathname of the global zshenv script
1407  --enable-zshrc=FILE     the full pathname of the global zshrc script
1408  --enable-zprofile=FILE  the full pathname of the global zprofile script
1409  --enable-zlogin=FILE    the full pathname of the global zlogin script
1410  --enable-zlogout=FILE   the full pathname of the global zlogout script
1411  --disable-dynamic       turn off dynamically loaded binary modules
1412  --disable-restricted-r  turn off r* invocation for restricted shell
1413  --disable-locale        turn off locale features
1414  --enable-ansi2knr       translate source to K&R C before compiling
1415  --enable-runhelpdir=DIR the directory in which to install run-help files
1416  --enable-fndir=DIR      the directory in which to install functions
1417  --enable-site-fndir=DIR same for site functions (not version specific)
1418  --enable-function-subdirs
1419                          install functions in subdirectories
1420  --enable-additional-fpath=DIR
1421                          add directories to default function path
1422  --enable-scriptdir=DIR  the directory in which to install scripts
1423  --enable-site-scriptdir=DIR
1424                          same for site scripts (not version specific)
1425  --enable-custom-patchlevel
1426                          set a custom ZSH_PATCHLEVEL value
1427  --enable-maildir-support
1428                          enable maildir support in MAIL and MAILPATH
1429  --enable-max-function-depth=MAX
1430                          limit function depth to MAX, default 1000
1431  --enable-readnullcmd=PAGER
1432                          pager used when READNULLCMD is not set
1433  --enable-pcre           enable the search for the pcre library (may create
1434                          run-time library dependencies)
1435  --enable-cap            enable the search for POSIX capabilities (may
1436                          require additional headers to be added by hand)
1437  --disable-gdbm          turn off search for gdbm library
1438  --disable-largefile     omit support for large files
1439  --enable-multibyte      support multibyte characters
1440  --enable-libc-musl      compile with musl as the C library
1441  --disable-dynamic-nss   do not call functions that will require dynamic NSS
1442                          modules
1443
1444Optional Packages:
1445  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1446  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1447  --with-term-lib=LIBS    search space-separated LIBS for terminal handling
1448  --with-tcsetpgrp        assumes that tcsetpgrp() exists and works correctly
1449
1450Some influential environment variables:
1451  CC          C compiler command
1452  CFLAGS      C compiler flags
1453  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1454              nonstandard directory <lib dir>
1455  LIBS        libraries to pass to the linker, e.g. -l<library>
1456  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457              you have headers in a nonstandard directory <include dir>
1458  CPP         C preprocessor
1459
1460Use these variables to override the choices made by `configure' or to help
1461it to find libraries and programs with nonstandard names/locations.
1462
1463Report bugs to the package provider.
1464_ACEOF
1465ac_status=$?
1466fi
1467
1468if test "$ac_init_help" = "recursive"; then
1469  # If there are subdirs, report their specific --help.
1470  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471    test -d "$ac_dir" ||
1472      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473      continue
1474    ac_builddir=.
1475
1476case "$ac_dir" in
1477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478*)
1479  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480  # A ".." for each directory in $ac_dir_suffix.
1481  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482  case $ac_top_builddir_sub in
1483  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485  esac ;;
1486esac
1487ac_abs_top_builddir=$ac_pwd
1488ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489# for backward compatibility:
1490ac_top_builddir=$ac_top_build_prefix
1491
1492case $srcdir in
1493  .)  # We are building in place.
1494    ac_srcdir=.
1495    ac_top_srcdir=$ac_top_builddir_sub
1496    ac_abs_top_srcdir=$ac_pwd ;;
1497  [\\/]* | ?:[\\/]* )  # Absolute name.
1498    ac_srcdir=$srcdir$ac_dir_suffix;
1499    ac_top_srcdir=$srcdir
1500    ac_abs_top_srcdir=$srcdir ;;
1501  *) # Relative name.
1502    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503    ac_top_srcdir=$ac_top_build_prefix$srcdir
1504    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505esac
1506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508    cd "$ac_dir" || { ac_status=$?; continue; }
1509    # Check for guested configure.
1510    if test -f "$ac_srcdir/configure.gnu"; then
1511      echo &&
1512      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513    elif test -f "$ac_srcdir/configure"; then
1514      echo &&
1515      $SHELL "$ac_srcdir/configure" --help=recursive
1516    else
1517      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518    fi || ac_status=$?
1519    cd "$ac_pwd" || { ac_status=$?; break; }
1520  done
1521fi
1522
1523test -n "$ac_init_help" && exit $ac_status
1524if $ac_init_version; then
1525  cat <<\_ACEOF
1526configure
1527generated by GNU Autoconf 2.68
1528
1529Copyright (C) 2010 Free Software Foundation, Inc.
1530This configure script is free software; the Free Software Foundation
1531gives unlimited permission to copy, distribute and modify it.
1532_ACEOF
1533  exit
1534fi
1535
1536## ------------------------ ##
1537## Autoconf initialization. ##
1538## ------------------------ ##
1539
1540# ac_fn_c_try_compile LINENO
1541# --------------------------
1542# Try to compile conftest.$ac_ext, and return whether this succeeded.
1543ac_fn_c_try_compile ()
1544{
1545  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546  rm -f conftest.$ac_objext
1547  if { { ac_try="$ac_compile"
1548case "(($ac_try" in
1549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550  *) ac_try_echo=$ac_try;;
1551esac
1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553$as_echo "$ac_try_echo"; } >&5
1554  (eval "$ac_compile") 2>conftest.err
1555  ac_status=$?
1556  if test -s conftest.err; then
1557    grep -v '^ *+' conftest.err >conftest.er1
1558    cat conftest.er1 >&5
1559    mv -f conftest.er1 conftest.err
1560  fi
1561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562  test $ac_status = 0; } && {
1563	 test -z "$ac_c_werror_flag" ||
1564	 test ! -s conftest.err
1565       } && test -s conftest.$ac_objext; then :
1566  ac_retval=0
1567else
1568  $as_echo "$as_me: failed program was:" >&5
1569sed 's/^/| /' conftest.$ac_ext >&5
1570
1571	ac_retval=1
1572fi
1573  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574  as_fn_set_status $ac_retval
1575
1576} # ac_fn_c_try_compile
1577
1578# ac_fn_c_try_cpp LINENO
1579# ----------------------
1580# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1581ac_fn_c_try_cpp ()
1582{
1583  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584  if { { ac_try="$ac_cpp conftest.$ac_ext"
1585case "(($ac_try" in
1586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587  *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1592  ac_status=$?
1593  if test -s conftest.err; then
1594    grep -v '^ *+' conftest.err >conftest.er1
1595    cat conftest.er1 >&5
1596    mv -f conftest.er1 conftest.err
1597  fi
1598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599  test $ac_status = 0; } > conftest.i && {
1600	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1601	 test ! -s conftest.err
1602       }; then :
1603  ac_retval=0
1604else
1605  $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608    ac_retval=1
1609fi
1610  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611  as_fn_set_status $ac_retval
1612
1613} # ac_fn_c_try_cpp
1614
1615# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1616# -------------------------------------------
1617# Tests whether TYPE exists after having included INCLUDES, setting cache
1618# variable VAR accordingly.
1619ac_fn_c_check_type ()
1620{
1621  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623$as_echo_n "checking for $2... " >&6; }
1624if eval \${$3+:} false; then :
1625  $as_echo_n "(cached) " >&6
1626else
1627  eval "$3=no"
1628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629/* end confdefs.h.  */
1630$4
1631int
1632main ()
1633{
1634if (sizeof ($2))
1635	 return 0;
1636  ;
1637  return 0;
1638}
1639_ACEOF
1640if ac_fn_c_try_compile "$LINENO"; then :
1641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642/* end confdefs.h.  */
1643$4
1644int
1645main ()
1646{
1647if (sizeof (($2)))
1648	    return 0;
1649  ;
1650  return 0;
1651}
1652_ACEOF
1653if ac_fn_c_try_compile "$LINENO"; then :
1654
1655else
1656  eval "$3=yes"
1657fi
1658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659fi
1660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661fi
1662eval ac_res=\$$3
1663	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664$as_echo "$ac_res" >&6; }
1665  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666
1667} # ac_fn_c_check_type
1668
1669# ac_fn_c_try_run LINENO
1670# ----------------------
1671# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1672# that executables *can* be run.
1673ac_fn_c_try_run ()
1674{
1675  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676  if { { ac_try="$ac_link"
1677case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683  (eval "$ac_link") 2>&5
1684  ac_status=$?
1685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1687  { { case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_try") 2>&5
1694  ac_status=$?
1695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696  test $ac_status = 0; }; }; then :
1697  ac_retval=0
1698else
1699  $as_echo "$as_me: program exited with status $ac_status" >&5
1700       $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703       ac_retval=$ac_status
1704fi
1705  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707  as_fn_set_status $ac_retval
1708
1709} # ac_fn_c_try_run
1710
1711# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1712# -------------------------------------------------------
1713# Tests whether HEADER exists and can be compiled using the include files in
1714# INCLUDES, setting the cache variable VAR accordingly.
1715ac_fn_c_check_header_compile ()
1716{
1717  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719$as_echo_n "checking for $2... " >&6; }
1720if eval \${$3+:} false; then :
1721  $as_echo_n "(cached) " >&6
1722else
1723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724/* end confdefs.h.  */
1725$4
1726#include <$2>
1727_ACEOF
1728if ac_fn_c_try_compile "$LINENO"; then :
1729  eval "$3=yes"
1730else
1731  eval "$3=no"
1732fi
1733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734fi
1735eval ac_res=\$$3
1736	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737$as_echo "$ac_res" >&6; }
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739
1740} # ac_fn_c_check_header_compile
1741
1742# ac_fn_c_try_link LINENO
1743# -----------------------
1744# Try to link conftest.$ac_ext, and return whether this succeeded.
1745ac_fn_c_try_link ()
1746{
1747  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748  rm -f conftest.$ac_objext conftest$ac_exeext
1749  if { { ac_try="$ac_link"
1750case "(($ac_try" in
1751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752  *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756  (eval "$ac_link") 2>conftest.err
1757  ac_status=$?
1758  if test -s conftest.err; then
1759    grep -v '^ *+' conftest.err >conftest.er1
1760    cat conftest.er1 >&5
1761    mv -f conftest.er1 conftest.err
1762  fi
1763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764  test $ac_status = 0; } && {
1765	 test -z "$ac_c_werror_flag" ||
1766	 test ! -s conftest.err
1767       } && test -s conftest$ac_exeext && {
1768	 test "$cross_compiling" = yes ||
1769	 $as_test_x conftest$ac_exeext
1770       }; then :
1771  ac_retval=0
1772else
1773  $as_echo "$as_me: failed program was:" >&5
1774sed 's/^/| /' conftest.$ac_ext >&5
1775
1776	ac_retval=1
1777fi
1778  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1779  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1780  # interfere with the next link command; also delete a directory that is
1781  # left behind by Apple's compiler.  We do this before executing the actions.
1782  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784  as_fn_set_status $ac_retval
1785
1786} # ac_fn_c_try_link
1787
1788# ac_fn_c_check_func LINENO FUNC VAR
1789# ----------------------------------
1790# Tests whether FUNC exists, setting the cache variable VAR accordingly
1791ac_fn_c_check_func ()
1792{
1793  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
1796if eval \${$3+:} false; then :
1797  $as_echo_n "(cached) " >&6
1798else
1799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h.  */
1801/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1803#define $2 innocuous_$2
1804
1805/* System header to define __stub macros and hopefully few prototypes,
1806    which can conflict with char $2 (); below.
1807    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1808    <limits.h> exists even on freestanding compilers.  */
1809
1810#ifdef __STDC__
1811# include <limits.h>
1812#else
1813# include <assert.h>
1814#endif
1815
1816#undef $2
1817
1818/* Override any GCC internal prototype to avoid an error.
1819   Use char because int might match the return type of a GCC
1820   builtin and then its argument prototype would still apply.  */
1821#ifdef __cplusplus
1822extern "C"
1823#endif
1824char $2 ();
1825/* The GNU C library defines this for functions which it implements
1826    to always fail with ENOSYS.  Some functions are actually named
1827    something starting with __ and the normal name is an alias.  */
1828#if defined __stub_$2 || defined __stub___$2
1829choke me
1830#endif
1831
1832int
1833main ()
1834{
1835return $2 ();
1836  ;
1837  return 0;
1838}
1839_ACEOF
1840if ac_fn_c_try_link "$LINENO"; then :
1841  eval "$3=yes"
1842else
1843  eval "$3=no"
1844fi
1845rm -f core conftest.err conftest.$ac_objext \
1846    conftest$ac_exeext conftest.$ac_ext
1847fi
1848eval ac_res=\$$3
1849	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850$as_echo "$ac_res" >&6; }
1851  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852
1853} # ac_fn_c_check_func
1854
1855# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1856# -------------------------------------------------------
1857# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1858# the include files in INCLUDES and setting the cache variable VAR
1859# accordingly.
1860ac_fn_c_check_header_mongrel ()
1861{
1862  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863  if eval \${$3+:} false; then :
1864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
1866if eval \${$3+:} false; then :
1867  $as_echo_n "(cached) " >&6
1868fi
1869eval ac_res=\$$3
1870	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872else
1873  # Is the header compilable?
1874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1875$as_echo_n "checking $2 usability... " >&6; }
1876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h.  */
1878$4
1879#include <$2>
1880_ACEOF
1881if ac_fn_c_try_compile "$LINENO"; then :
1882  ac_header_compiler=yes
1883else
1884  ac_header_compiler=no
1885fi
1886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1888$as_echo "$ac_header_compiler" >&6; }
1889
1890# Is the header present?
1891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1892$as_echo_n "checking $2 presence... " >&6; }
1893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h.  */
1895#include <$2>
1896_ACEOF
1897if ac_fn_c_try_cpp "$LINENO"; then :
1898  ac_header_preproc=yes
1899else
1900  ac_header_preproc=no
1901fi
1902rm -f conftest.err conftest.i conftest.$ac_ext
1903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1904$as_echo "$ac_header_preproc" >&6; }
1905
1906# So?  What about this header?
1907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1908  yes:no: )
1909    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1910$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1911    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1913    ;;
1914  no:yes:* )
1915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1916$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1917    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1918$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1920$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1921    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1922$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1923    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925    ;;
1926esac
1927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928$as_echo_n "checking for $2... " >&6; }
1929if eval \${$3+:} false; then :
1930  $as_echo_n "(cached) " >&6
1931else
1932  eval "$3=\$ac_header_compiler"
1933fi
1934eval ac_res=\$$3
1935	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937fi
1938  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940} # ac_fn_c_check_header_mongrel
1941
1942# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1943# ---------------------------------------------
1944# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1945# accordingly.
1946ac_fn_c_check_decl ()
1947{
1948  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949  as_decl_name=`echo $2|sed 's/ *(.*//'`
1950  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1952$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1953if eval \${$3+:} false; then :
1954  $as_echo_n "(cached) " >&6
1955else
1956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957/* end confdefs.h.  */
1958$4
1959int
1960main ()
1961{
1962#ifndef $as_decl_name
1963#ifdef __cplusplus
1964  (void) $as_decl_use;
1965#else
1966  (void) $as_decl_name;
1967#endif
1968#endif
1969
1970  ;
1971  return 0;
1972}
1973_ACEOF
1974if ac_fn_c_try_compile "$LINENO"; then :
1975  eval "$3=yes"
1976else
1977  eval "$3=no"
1978fi
1979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980fi
1981eval ac_res=\$$3
1982	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983$as_echo "$ac_res" >&6; }
1984  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986} # ac_fn_c_check_decl
1987
1988# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1989# ----------------------------------------------------
1990# Tries to find if the field MEMBER exists in type AGGR, after including
1991# INCLUDES, setting cache variable VAR accordingly.
1992ac_fn_c_check_member ()
1993{
1994  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1996$as_echo_n "checking for $2.$3... " >&6; }
1997if eval \${$4+:} false; then :
1998  $as_echo_n "(cached) " >&6
1999else
2000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001/* end confdefs.h.  */
2002$5
2003int
2004main ()
2005{
2006static $2 ac_aggr;
2007if (ac_aggr.$3)
2008return 0;
2009  ;
2010  return 0;
2011}
2012_ACEOF
2013if ac_fn_c_try_compile "$LINENO"; then :
2014  eval "$4=yes"
2015else
2016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h.  */
2018$5
2019int
2020main ()
2021{
2022static $2 ac_aggr;
2023if (sizeof ac_aggr.$3)
2024return 0;
2025  ;
2026  return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030  eval "$4=yes"
2031else
2032  eval "$4=no"
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
2038eval ac_res=\$$4
2039	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040$as_echo "$ac_res" >&6; }
2041  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043} # ac_fn_c_check_member
2044cat >config.log <<_ACEOF
2045This file contains any messages produced by compilers while
2046running configure, to aid debugging if configure makes a mistake.
2047
2048It was created by $as_me, which was
2049generated by GNU Autoconf 2.68.  Invocation command line was
2050
2051  $ $0 $@
2052
2053_ACEOF
2054exec 5>>config.log
2055{
2056cat <<_ASUNAME
2057## --------- ##
2058## Platform. ##
2059## --------- ##
2060
2061hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2062uname -m = `(uname -m) 2>/dev/null || echo unknown`
2063uname -r = `(uname -r) 2>/dev/null || echo unknown`
2064uname -s = `(uname -s) 2>/dev/null || echo unknown`
2065uname -v = `(uname -v) 2>/dev/null || echo unknown`
2066
2067/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2068/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2069
2070/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2071/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2072/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2073/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2074/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2075/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2076/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2077
2078_ASUNAME
2079
2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083  IFS=$as_save_IFS
2084  test -z "$as_dir" && as_dir=.
2085    $as_echo "PATH: $as_dir"
2086  done
2087IFS=$as_save_IFS
2088
2089} >&5
2090
2091cat >&5 <<_ACEOF
2092
2093
2094## ----------- ##
2095## Core tests. ##
2096## ----------- ##
2097
2098_ACEOF
2099
2100
2101# Keep a trace of the command line.
2102# Strip out --no-create and --no-recursion so they do not pile up.
2103# Strip out --silent because we don't want to record it for future runs.
2104# Also quote any args containing shell meta-characters.
2105# Make two passes to allow for proper duplicate-argument suppression.
2106ac_configure_args=
2107ac_configure_args0=
2108ac_configure_args1=
2109ac_must_keep_next=false
2110for ac_pass in 1 2
2111do
2112  for ac_arg
2113  do
2114    case $ac_arg in
2115    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2116    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2117    | -silent | --silent | --silen | --sile | --sil)
2118      continue ;;
2119    *\'*)
2120      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2121    esac
2122    case $ac_pass in
2123    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2124    2)
2125      as_fn_append ac_configure_args1 " '$ac_arg'"
2126      if test $ac_must_keep_next = true; then
2127	ac_must_keep_next=false # Got value, back to normal.
2128      else
2129	case $ac_arg in
2130	  *=* | --config-cache | -C | -disable-* | --disable-* \
2131	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2132	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2133	  | -with-* | --with-* | -without-* | --without-* | --x)
2134	    case "$ac_configure_args0 " in
2135	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2136	    esac
2137	    ;;
2138	  -* ) ac_must_keep_next=true ;;
2139	esac
2140      fi
2141      as_fn_append ac_configure_args " '$ac_arg'"
2142      ;;
2143    esac
2144  done
2145done
2146{ ac_configure_args0=; unset ac_configure_args0;}
2147{ ac_configure_args1=; unset ac_configure_args1;}
2148
2149# When interrupted or exit'd, cleanup temporary files, and complete
2150# config.log.  We remove comments because anyway the quotes in there
2151# would cause problems or look ugly.
2152# WARNING: Use '\'' to represent an apostrophe within the trap.
2153# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2154trap 'exit_status=$?
2155  # Save into config.log some information that might help in debugging.
2156  {
2157    echo
2158
2159    $as_echo "## ---------------- ##
2160## Cache variables. ##
2161## ---------------- ##"
2162    echo
2163    # The following way of writing the cache mishandles newlines in values,
2164(
2165  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2166    eval ac_val=\$$ac_var
2167    case $ac_val in #(
2168    *${as_nl}*)
2169      case $ac_var in #(
2170      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2171$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2172      esac
2173      case $ac_var in #(
2174      _ | IFS | as_nl) ;; #(
2175      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2176      *) { eval $ac_var=; unset $ac_var;} ;;
2177      esac ;;
2178    esac
2179  done
2180  (set) 2>&1 |
2181    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2182    *${as_nl}ac_space=\ *)
2183      sed -n \
2184	"s/'\''/'\''\\\\'\'''\''/g;
2185	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2186      ;; #(
2187    *)
2188      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2189      ;;
2190    esac |
2191    sort
2192)
2193    echo
2194
2195    $as_echo "## ----------------- ##
2196## Output variables. ##
2197## ----------------- ##"
2198    echo
2199    for ac_var in $ac_subst_vars
2200    do
2201      eval ac_val=\$$ac_var
2202      case $ac_val in
2203      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204      esac
2205      $as_echo "$ac_var='\''$ac_val'\''"
2206    done | sort
2207    echo
2208
2209    if test -n "$ac_subst_files"; then
2210      $as_echo "## ------------------- ##
2211## File substitutions. ##
2212## ------------------- ##"
2213      echo
2214      for ac_var in $ac_subst_files
2215      do
2216	eval ac_val=\$$ac_var
2217	case $ac_val in
2218	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219	esac
2220	$as_echo "$ac_var='\''$ac_val'\''"
2221      done | sort
2222      echo
2223    fi
2224
2225    if test -s confdefs.h; then
2226      $as_echo "## ----------- ##
2227## confdefs.h. ##
2228## ----------- ##"
2229      echo
2230      cat confdefs.h
2231      echo
2232    fi
2233    test "$ac_signal" != 0 &&
2234      $as_echo "$as_me: caught signal $ac_signal"
2235    $as_echo "$as_me: exit $exit_status"
2236  } >&5
2237  rm -f core *.core core.conftest.* &&
2238    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2239    exit $exit_status
2240' 0
2241for ac_signal in 1 2 13 15; do
2242  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2243done
2244ac_signal=0
2245
2246# confdefs.h avoids OS command line length limits that DEFS can exceed.
2247rm -f -r conftest* confdefs.h
2248
2249$as_echo "/* confdefs.h */" > confdefs.h
2250
2251# Predefined preprocessor variables.
2252
2253cat >>confdefs.h <<_ACEOF
2254#define PACKAGE_NAME "$PACKAGE_NAME"
2255_ACEOF
2256
2257cat >>confdefs.h <<_ACEOF
2258#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2259_ACEOF
2260
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_VERSION "$PACKAGE_VERSION"
2263_ACEOF
2264
2265cat >>confdefs.h <<_ACEOF
2266#define PACKAGE_STRING "$PACKAGE_STRING"
2267_ACEOF
2268
2269cat >>confdefs.h <<_ACEOF
2270#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2271_ACEOF
2272
2273cat >>confdefs.h <<_ACEOF
2274#define PACKAGE_URL "$PACKAGE_URL"
2275_ACEOF
2276
2277
2278# Let the site file select an alternate cache file if it wants to.
2279# Prefer an explicitly selected file to automatically selected ones.
2280ac_site_file1=NONE
2281ac_site_file2=NONE
2282if test -n "$CONFIG_SITE"; then
2283  # We do not want a PATH search for config.site.
2284  case $CONFIG_SITE in #((
2285    -*)  ac_site_file1=./$CONFIG_SITE;;
2286    */*) ac_site_file1=$CONFIG_SITE;;
2287    *)   ac_site_file1=./$CONFIG_SITE;;
2288  esac
2289elif test "x$prefix" != xNONE; then
2290  ac_site_file1=$prefix/share/config.site
2291  ac_site_file2=$prefix/etc/config.site
2292else
2293  ac_site_file1=$ac_default_prefix/share/config.site
2294  ac_site_file2=$ac_default_prefix/etc/config.site
2295fi
2296for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2297do
2298  test "x$ac_site_file" = xNONE && continue
2299  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2300    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2301$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2302    sed 's/^/| /' "$ac_site_file" >&5
2303    . "$ac_site_file" \
2304      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306as_fn_error $? "failed to load site script $ac_site_file
2307See \`config.log' for more details" "$LINENO" 5; }
2308  fi
2309done
2310
2311if test -r "$cache_file"; then
2312  # Some versions of bash will fail to source /dev/null (special files
2313  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2314  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2315    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2316$as_echo "$as_me: loading cache $cache_file" >&6;}
2317    case $cache_file in
2318      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2319      *)                      . "./$cache_file";;
2320    esac
2321  fi
2322else
2323  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2324$as_echo "$as_me: creating cache $cache_file" >&6;}
2325  >$cache_file
2326fi
2327
2328as_fn_append ac_header_list " stdlib.h"
2329as_fn_append ac_header_list " unistd.h"
2330as_fn_append ac_header_list " sys/param.h"
2331# Check that the precious variables saved in the cache have kept the same
2332# value.
2333ac_cache_corrupted=false
2334for ac_var in $ac_precious_vars; do
2335  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2336  eval ac_new_set=\$ac_env_${ac_var}_set
2337  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2338  eval ac_new_val=\$ac_env_${ac_var}_value
2339  case $ac_old_set,$ac_new_set in
2340    set,)
2341      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2342$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2343      ac_cache_corrupted=: ;;
2344    ,set)
2345      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2346$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2347      ac_cache_corrupted=: ;;
2348    ,);;
2349    *)
2350      if test "x$ac_old_val" != "x$ac_new_val"; then
2351	# differences in whitespace do not lead to failure.
2352	ac_old_val_w=`echo x $ac_old_val`
2353	ac_new_val_w=`echo x $ac_new_val`
2354	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2355	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2356$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2357	  ac_cache_corrupted=:
2358	else
2359	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2360$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2361	  eval $ac_var=\$ac_old_val
2362	fi
2363	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2364$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2365	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2366$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2367      fi;;
2368  esac
2369  # Pass precious variables to config.status.
2370  if test "$ac_new_set" = set; then
2371    case $ac_new_val in
2372    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2373    *) ac_arg=$ac_var=$ac_new_val ;;
2374    esac
2375    case " $ac_configure_args " in
2376      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2377      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2378    esac
2379  fi
2380done
2381if $ac_cache_corrupted; then
2382  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2384  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2385$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2386  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2387fi
2388## -------------------- ##
2389## Main body of script. ##
2390## -------------------- ##
2391
2392ac_ext=c
2393ac_cpp='$CPP $CPPFLAGS'
2394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397
2398
2399
2400ac_config_headers="$ac_config_headers config.h"
2401
2402
2403. ${srcdir}/Config/version.mk
2404echo "configuring for zsh $VERSION"
2405
2406ac_aux_dir=
2407for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2408  if test -f "$ac_dir/install-sh"; then
2409    ac_aux_dir=$ac_dir
2410    ac_install_sh="$ac_aux_dir/install-sh -c"
2411    break
2412  elif test -f "$ac_dir/install.sh"; then
2413    ac_aux_dir=$ac_dir
2414    ac_install_sh="$ac_aux_dir/install.sh -c"
2415    break
2416  elif test -f "$ac_dir/shtool"; then
2417    ac_aux_dir=$ac_dir
2418    ac_install_sh="$ac_aux_dir/shtool install -c"
2419    break
2420  fi
2421done
2422if test -z "$ac_aux_dir"; then
2423  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2424fi
2425
2426# These three variables are undocumented and unsupported,
2427# and are intended to be withdrawn in a future Autoconf release.
2428# They can cause serious problems if a builder's source tree is in a directory
2429# whose full name contains unusual characters.
2430ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2431ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2432ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2433
2434
2435# Make sure we can run config.sub.
2436$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2437  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2438
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2440$as_echo_n "checking build system type... " >&6; }
2441if ${ac_cv_build+:} false; then :
2442  $as_echo_n "(cached) " >&6
2443else
2444  ac_build_alias=$build_alias
2445test "x$ac_build_alias" = x &&
2446  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2447test "x$ac_build_alias" = x &&
2448  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2449ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2450  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2451
2452fi
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2454$as_echo "$ac_cv_build" >&6; }
2455case $ac_cv_build in
2456*-*-*) ;;
2457*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2458esac
2459build=$ac_cv_build
2460ac_save_IFS=$IFS; IFS='-'
2461set x $ac_cv_build
2462shift
2463build_cpu=$1
2464build_vendor=$2
2465shift; shift
2466# Remember, the first character of IFS is used to create $*,
2467# except with old shells:
2468build_os=$*
2469IFS=$ac_save_IFS
2470case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2471
2472
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2474$as_echo_n "checking host system type... " >&6; }
2475if ${ac_cv_host+:} false; then :
2476  $as_echo_n "(cached) " >&6
2477else
2478  if test "x$host_alias" = x; then
2479  ac_cv_host=$ac_cv_build
2480else
2481  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2482    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2483fi
2484
2485fi
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2487$as_echo "$ac_cv_host" >&6; }
2488case $ac_cv_host in
2489*-*-*) ;;
2490*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2491esac
2492host=$ac_cv_host
2493ac_save_IFS=$IFS; IFS='-'
2494set x $ac_cv_host
2495shift
2496host_cpu=$1
2497host_vendor=$2
2498shift; shift
2499# Remember, the first character of IFS is used to create $*,
2500# except with old shells:
2501host_os=$*
2502IFS=$ac_save_IFS
2503case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2504
2505
2506
2507cat >>confdefs.h <<_ACEOF
2508#define MACHTYPE "$host_cpu"
2509_ACEOF
2510
2511
2512cat >>confdefs.h <<_ACEOF
2513#define VENDOR "$host_vendor"
2514_ACEOF
2515
2516
2517cat >>confdefs.h <<_ACEOF
2518#define OSTYPE "$host_os"
2519_ACEOF
2520
2521
2522test "$program_prefix" != NONE &&
2523  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2524# Use a double $ so make ignores it.
2525test "$program_suffix" != NONE &&
2526  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2527# Double any \ or $.
2528# By default was `s,x,x', remove it if useless.
2529ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2530program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2531
2532
2533# Un-double any \ or $ (doubled by AC_ARG_PROGRAM).
2534cat <<\EOF_SED > conftestsed
2535s,\\\\,\\,g; s,\$\$,$,g
2536EOF_SED
2537zsh_transform_name=`echo "${program_transform_name}" | sed -f conftestsed`
2538rm -f conftestsed
2539tzsh_name=`echo zsh | sed -e "${zsh_transform_name}"`
2540# Double any \ or $ in the transformed name that results.
2541cat <<\EOF_SED >> conftestsed
2542s,\\,\\\\,g; s,\$,$$,g
2543EOF_SED
2544tzsh=`echo ${tzsh_name} | sed -f conftestsed`
2545rm -f conftestsed
2546
2547
2548# Check whether --enable-cppflags was given.
2549if test "${enable_cppflags+set}" = set; then :
2550  enableval=$enable_cppflags; if test "$enableval" = "yes"
2551	then CPPFLAGS="$CPPFLAGS"
2552	else CPPFLAGS="$enable_cppflags"
2553	fi
2554fi
2555
2556    # Check whether --enable-cflags was given.
2557if test "${enable_cflags+set}" = set; then :
2558  enableval=$enable_cflags; if test "$enableval" = "yes"
2559	then CFLAGS="$CFLAGS"
2560	else CFLAGS="$enable_cflags"
2561	fi
2562fi
2563
2564    # Check whether --enable-ldflags was given.
2565if test "${enable_ldflags+set}" = set; then :
2566  enableval=$enable_ldflags; if test "$enableval" = "yes"
2567	then LDFLAGS="$LDFLAGS"
2568	else LDFLAGS="$enable_ldflags"
2569	fi
2570fi
2571
2572    # Check whether --enable-libs was given.
2573if test "${enable_libs+set}" = set; then :
2574  enableval=$enable_libs; if test "$enableval" = "yes"
2575	then LIBS="$LIBS"
2576	else LIBS="$enable_libs"
2577	fi
2578fi
2579
2580
2581
2582# Check whether --enable-zsh-debug was given.
2583if test "${enable_zsh_debug+set}" = set; then :
2584  enableval=$enable_zsh_debug; if test x$enableval = xyes; then
2585  $as_echo "#define DEBUG 1" >>confdefs.h
2586
2587fi
2588fi
2589
2590
2591
2592# Check whether --enable-zsh-mem was given.
2593if test "${enable_zsh_mem+set}" = set; then :
2594  enableval=$enable_zsh_mem; if test x$enableval = xyes; then
2595  $as_echo "#define ZSH_MEM 1" >>confdefs.h
2596
2597fi
2598fi
2599
2600
2601
2602# Check whether --enable-zsh-mem-debug was given.
2603if test "${enable_zsh_mem_debug+set}" = set; then :
2604  enableval=$enable_zsh_mem_debug; if test x$enableval = xyes; then
2605  $as_echo "#define ZSH_MEM_DEBUG 1" >>confdefs.h
2606
2607fi
2608fi
2609
2610
2611
2612# Check whether --enable-zsh-mem-warning was given.
2613if test "${enable_zsh_mem_warning+set}" = set; then :
2614  enableval=$enable_zsh_mem_warning; if test x$enableval = xyes; then
2615  $as_echo "#define ZSH_MEM_WARNING 1" >>confdefs.h
2616
2617fi
2618fi
2619
2620
2621
2622# Check whether --enable-zsh-secure-free was given.
2623if test "${enable_zsh_secure_free+set}" = set; then :
2624  enableval=$enable_zsh_secure_free; if test x$enableval = xyes; then
2625  $as_echo "#define ZSH_SECURE_FREE 1" >>confdefs.h
2626
2627fi
2628fi
2629
2630
2631
2632# Check whether --enable-zsh-heap-debug was given.
2633if test "${enable_zsh_heap_debug+set}" = set; then :
2634  enableval=$enable_zsh_heap_debug; if test x$enableval = xyes; then
2635  $as_echo "#define ZSH_HEAP_DEBUG 1" >>confdefs.h
2636
2637fi
2638fi
2639
2640
2641
2642# Check whether --enable-zsh-hash-debug was given.
2643if test "${enable_zsh_hash_debug+set}" = set; then :
2644  enableval=$enable_zsh_hash_debug; if test x$enableval = xyes; then
2645  $as_echo "#define ZSH_HASH_DEBUG 1" >>confdefs.h
2646
2647fi
2648fi
2649
2650
2651# Check whether --enable-etcdir was given.
2652if test "${enable_etcdir+set}" = set; then :
2653  enableval=$enable_etcdir; etcdir="$enableval"
2654else
2655  etcdir=/etc
2656fi
2657
2658
2659# Check whether --enable-zshenv was given.
2660if test "${enable_zshenv+set}" = set; then :
2661  enableval=$enable_zshenv; zshenv="$enableval"
2662else
2663  if test "x$etcdir" = xno; then
2664  zshenv=no
2665else
2666  zshenv="$etcdir/zshenv"
2667fi
2668fi
2669
2670
2671if test "x$zshenv" != xno; then
2672  cat >>confdefs.h <<_ACEOF
2673#define GLOBAL_ZSHENV "$zshenv"
2674_ACEOF
2675
2676fi
2677
2678# Check whether --enable-zshrc was given.
2679if test "${enable_zshrc+set}" = set; then :
2680  enableval=$enable_zshrc; zshrc="$enableval"
2681else
2682  if test "x$etcdir" = xno; then
2683  zshrc=no
2684else
2685  zshrc="$etcdir/zshrc"
2686fi
2687fi
2688
2689
2690if test "x$zshrc" != xno; then
2691  cat >>confdefs.h <<_ACEOF
2692#define GLOBAL_ZSHRC "$zshrc"
2693_ACEOF
2694
2695fi
2696
2697# Check whether --enable-zprofile was given.
2698if test "${enable_zprofile+set}" = set; then :
2699  enableval=$enable_zprofile; zprofile="$enableval"
2700else
2701  if test "x$etcdir" = xno; then
2702  zprofile=no
2703else
2704  zprofile="$etcdir/zprofile"
2705fi
2706fi
2707
2708
2709if test "x$zprofile" != xno; then
2710  cat >>confdefs.h <<_ACEOF
2711#define GLOBAL_ZPROFILE "$zprofile"
2712_ACEOF
2713
2714fi
2715
2716# Check whether --enable-zlogin was given.
2717if test "${enable_zlogin+set}" = set; then :
2718  enableval=$enable_zlogin; zlogin="$enableval"
2719else
2720  if test "x$etcdir" = xno; then
2721  zlogin=no
2722else
2723  zlogin="$etcdir/zlogin"
2724fi
2725fi
2726
2727
2728if test "x$zlogin" != xno; then
2729  cat >>confdefs.h <<_ACEOF
2730#define GLOBAL_ZLOGIN "$zlogin"
2731_ACEOF
2732
2733fi
2734
2735# Check whether --enable-zlogout was given.
2736if test "${enable_zlogout+set}" = set; then :
2737  enableval=$enable_zlogout; zlogout="$enableval"
2738else
2739  if test "x$etcdir" = xno; then
2740  zlogout=no
2741else
2742  zlogout="$etcdir/zlogout"
2743fi
2744fi
2745
2746
2747if test "x$zlogout" != xno; then
2748  cat >>confdefs.h <<_ACEOF
2749#define GLOBAL_ZLOGOUT "$zlogout"
2750_ACEOF
2751
2752fi
2753
2754
2755# Check whether --enable-dynamic was given.
2756if test "${enable_dynamic+set}" = set; then :
2757  enableval=$enable_dynamic; dynamic="$enableval"
2758else
2759  dynamic=yes
2760fi
2761
2762
2763
2764# Check whether --enable-restricted-r was given.
2765if test "${enable_restricted_r+set}" = set; then :
2766  enableval=$enable_restricted_r; if test x$enableval = xyes; then
2767  $as_echo "#define RESTRICTED_R 1" >>confdefs.h
2768
2769fi
2770else
2771  $as_echo "#define RESTRICTED_R 1" >>confdefs.h
2772
2773
2774fi
2775
2776
2777
2778# Check whether --enable-locale was given.
2779if test "${enable_locale+set}" = set; then :
2780  enableval=$enable_locale; if test x$enableval = xyes; then
2781  $as_echo "#define CONFIG_LOCALE 1" >>confdefs.h
2782
2783fi
2784else
2785  $as_echo "#define CONFIG_LOCALE 1" >>confdefs.h
2786
2787
2788fi
2789
2790
2791# Check whether --enable-ansi2knr was given.
2792if test "${enable_ansi2knr+set}" = set; then :
2793  enableval=$enable_ansi2knr; ansi2knr="$enableval"
2794else
2795  ansi2knr=default
2796fi
2797
2798
2799# Check whether --enable-runhelpdir was given.
2800if test "${enable_runhelpdir+set}" = set; then :
2801  enableval=$enable_runhelpdir; if test x"$enableval" = xno; then
2802  runhelpdir=
2803else
2804  runhelpdir="$enableval"
2805fi
2806else
2807  runhelpdir=yes
2808fi
2809
2810if test x"$runhelpdir" = xyes; then
2811  runhelpdir=${datadir}/${tzsh_name}/'${VERSION}'/help
2812fi
2813if test x"$runhelpdir" = x; then
2814  runhelp=
2815else
2816  runhelp=runhelp
2817fi
2818
2819# Check whether --enable-fndir was given.
2820if test "${enable_fndir+set}" = set; then :
2821  enableval=$enable_fndir; if test x$enableval = xyes; then
2822  fndir=${datadir}/${tzsh_name}/'${VERSION}'/functions
2823else
2824  fndir="$enableval"
2825fi
2826else
2827  fndir=${datadir}/${tzsh_name}/'${VERSION}'/functions
2828fi
2829
2830
2831# Check whether --enable-site-fndir was given.
2832if test "${enable_site_fndir+set}" = set; then :
2833  enableval=$enable_site_fndir; if test x$enableval = xyes; then
2834  sitefndir=${datadir}/${tzsh_name}/site-functions
2835else
2836  sitefndir="$enableval"
2837fi
2838else
2839  sitefndir=${datadir}/${tzsh_name}/site-functions
2840fi
2841
2842
2843
2844# Check whether --enable-function-subdirs was given.
2845if test "${enable_function_subdirs+set}" = set; then :
2846  enableval=$enable_function_subdirs;
2847fi
2848
2849
2850if test "x${enable_function_subdirs}" != x &&
2851  test "x${enable_function_subdirs}" != xno; then
2852  FUNCTIONS_SUBDIRS=yes
2853else
2854  FUNCTIONS_SUBDIRS=no
2855fi
2856
2857# Check whether --enable-additional-fpath was given.
2858if test "${enable_additional_fpath+set}" = set; then :
2859  enableval=$enable_additional_fpath; if test x$enableval = xyes; then
2860  additionalfpath=""
2861else
2862  additionalfpath="${enableval}"
2863fi
2864else
2865  additionalfpath=""
2866fi
2867
2868
2869
2870
2871# Check whether --enable-scriptdir was given.
2872if test "${enable_scriptdir+set}" = set; then :
2873  enableval=$enable_scriptdir; if test x$enableval = xyes; then
2874  scriptdir=${datadir}/${tzsh_name}/'${VERSION}'/scripts
2875else
2876  scriptdir="$enableval"
2877fi
2878else
2879  scriptdir=${datadir}/${tzsh_name}/'${VERSION}'/scripts
2880fi
2881
2882
2883# Check whether --enable-site-scriptdir was given.
2884if test "${enable_site_scriptdir+set}" = set; then :
2885  enableval=$enable_site_scriptdir; if test x$enableval = xyes; then
2886  sitescriptdir=${datadir}/${tzsh_name}/scripts
2887else
2888  sitescriptdir="$enableval"
2889fi
2890else
2891  sitescriptdir=${datadir}/${tzsh_name}/scripts
2892fi
2893
2894
2895
2896if test x$htmldir = x'${docdir}' || test x$htmldir = x; then
2897  htmldir='$(datadir)/$(tzsh)/htmldoc'
2898fi
2899
2900
2901# Check whether --enable-custom-patchlevel was given.
2902if test "${enable_custom_patchlevel+set}" = set; then :
2903  enableval=$enable_custom_patchlevel; if test x$enableval != x && test x$enableval != xno; then
2904  cat >>confdefs.h <<_ACEOF
2905#define CUSTOM_PATCHLEVEL "$enableval"
2906_ACEOF
2907
2908fi
2909fi
2910
2911
2912
2913# Check whether --enable-maildir-support was given.
2914if test "${enable_maildir_support+set}" = set; then :
2915  enableval=$enable_maildir_support; if test x$enableval = xyes; then
2916  $as_echo "#define MAILDIR_SUPPORT 1" >>confdefs.h
2917
2918fi
2919fi
2920
2921
2922
2923# Check whether --enable-max-function-depth was given.
2924if test "${enable_max_function_depth+set}" = set; then :
2925  enableval=$enable_max_function_depth; if test x$enableval = xyes; then
2926  $as_echo "#define MAX_FUNCTION_DEPTH 1000" >>confdefs.h
2927
2928elif test x$enableval != xno; then
2929  cat >>confdefs.h <<_ACEOF
2930#define MAX_FUNCTION_DEPTH $enableval
2931_ACEOF
2932
2933fi
2934else
2935  $as_echo "#define MAX_FUNCTION_DEPTH 1000" >>confdefs.h
2936
2937
2938fi
2939
2940
2941
2942# Check whether --enable-readnullcmd was given.
2943if test "${enable_readnullcmd+set}" = set; then :
2944  enableval=$enable_readnullcmd; if test x$enableval = xyes; then
2945  $as_echo "#define DEFAULT_READNULLCMD \"more\"" >>confdefs.h
2946
2947elif test x$enableval != xno; then
2948  cat >>confdefs.h <<_ACEOF
2949#define DEFAULT_READNULLCMD "$enableval"
2950_ACEOF
2951
2952fi
2953else
2954  $as_echo "#define DEFAULT_READNULLCMD \"more\"" >>confdefs.h
2955
2956
2957fi
2958
2959
2960# Check whether --enable-pcre was given.
2961if test "${enable_pcre+set}" = set; then :
2962  enableval=$enable_pcre;
2963fi
2964
2965
2966# Check whether --enable-cap was given.
2967if test "${enable_cap+set}" = set; then :
2968  enableval=$enable_cap;
2969fi
2970
2971
2972# Check whether --enable-gdbm was given.
2973if test "${enable_gdbm+set}" = set; then :
2974  enableval=$enable_gdbm; gdbm="$enableval"
2975else
2976  gdbm=yes
2977fi
2978
2979
2980test -z "${CFLAGS+set}"  && CFLAGS=  auto_cflags=1
2981test -z "${LDFLAGS+set}" && LDFLAGS= auto_ldflags=1
2982
2983ac_ext=c
2984ac_cpp='$CPP $CPPFLAGS'
2985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988if test -n "$ac_tool_prefix"; then
2989  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2990set dummy ${ac_tool_prefix}gcc; ac_word=$2
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992$as_echo_n "checking for $ac_word... " >&6; }
2993if ${ac_cv_prog_CC+:} false; then :
2994  $as_echo_n "(cached) " >&6
2995else
2996  if test -n "$CC"; then
2997  ac_cv_prog_CC="$CC" # Let the user override the test.
2998else
2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002  IFS=$as_save_IFS
3003  test -z "$as_dir" && as_dir=.
3004    for ac_exec_ext in '' $ac_executable_extensions; do
3005  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008    break 2
3009  fi
3010done
3011  done
3012IFS=$as_save_IFS
3013
3014fi
3015fi
3016CC=$ac_cv_prog_CC
3017if test -n "$CC"; then
3018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019$as_echo "$CC" >&6; }
3020else
3021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022$as_echo "no" >&6; }
3023fi
3024
3025
3026fi
3027if test -z "$ac_cv_prog_CC"; then
3028  ac_ct_CC=$CC
3029  # Extract the first word of "gcc", so it can be a program name with args.
3030set dummy gcc; ac_word=$2
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032$as_echo_n "checking for $ac_word... " >&6; }
3033if ${ac_cv_prog_ac_ct_CC+:} false; then :
3034  $as_echo_n "(cached) " >&6
3035else
3036  if test -n "$ac_ct_CC"; then
3037  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3038else
3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040for as_dir in $PATH
3041do
3042  IFS=$as_save_IFS
3043  test -z "$as_dir" && as_dir=.
3044    for ac_exec_ext in '' $ac_executable_extensions; do
3045  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046    ac_cv_prog_ac_ct_CC="gcc"
3047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048    break 2
3049  fi
3050done
3051  done
3052IFS=$as_save_IFS
3053
3054fi
3055fi
3056ac_ct_CC=$ac_cv_prog_ac_ct_CC
3057if test -n "$ac_ct_CC"; then
3058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3059$as_echo "$ac_ct_CC" >&6; }
3060else
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062$as_echo "no" >&6; }
3063fi
3064
3065  if test "x$ac_ct_CC" = x; then
3066    CC=""
3067  else
3068    case $cross_compiling:$ac_tool_warned in
3069yes:)
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3072ac_tool_warned=yes ;;
3073esac
3074    CC=$ac_ct_CC
3075  fi
3076else
3077  CC="$ac_cv_prog_CC"
3078fi
3079
3080if test -z "$CC"; then
3081          if test -n "$ac_tool_prefix"; then
3082    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3083set dummy ${ac_tool_prefix}cc; ac_word=$2
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085$as_echo_n "checking for $ac_word... " >&6; }
3086if ${ac_cv_prog_CC+:} false; then :
3087  $as_echo_n "(cached) " >&6
3088else
3089  if test -n "$CC"; then
3090  ac_cv_prog_CC="$CC" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095  IFS=$as_save_IFS
3096  test -z "$as_dir" && as_dir=.
3097    for ac_exec_ext in '' $ac_executable_extensions; do
3098  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099    ac_cv_prog_CC="${ac_tool_prefix}cc"
3100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101    break 2
3102  fi
3103done
3104  done
3105IFS=$as_save_IFS
3106
3107fi
3108fi
3109CC=$ac_cv_prog_CC
3110if test -n "$CC"; then
3111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112$as_echo "$CC" >&6; }
3113else
3114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115$as_echo "no" >&6; }
3116fi
3117
3118
3119  fi
3120fi
3121if test -z "$CC"; then
3122  # Extract the first word of "cc", so it can be a program name with args.
3123set dummy cc; ac_word=$2
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125$as_echo_n "checking for $ac_word... " >&6; }
3126if ${ac_cv_prog_CC+:} false; then :
3127  $as_echo_n "(cached) " >&6
3128else
3129  if test -n "$CC"; then
3130  ac_cv_prog_CC="$CC" # Let the user override the test.
3131else
3132  ac_prog_rejected=no
3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134for as_dir in $PATH
3135do
3136  IFS=$as_save_IFS
3137  test -z "$as_dir" && as_dir=.
3138    for ac_exec_ext in '' $ac_executable_extensions; do
3139  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3141       ac_prog_rejected=yes
3142       continue
3143     fi
3144    ac_cv_prog_CC="cc"
3145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146    break 2
3147  fi
3148done
3149  done
3150IFS=$as_save_IFS
3151
3152if test $ac_prog_rejected = yes; then
3153  # We found a bogon in the path, so make sure we never use it.
3154  set dummy $ac_cv_prog_CC
3155  shift
3156  if test $# != 0; then
3157    # We chose a different compiler from the bogus one.
3158    # However, it has the same basename, so the bogon will be chosen
3159    # first if we set CC to just the basename; use the full file name.
3160    shift
3161    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3162  fi
3163fi
3164fi
3165fi
3166CC=$ac_cv_prog_CC
3167if test -n "$CC"; then
3168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169$as_echo "$CC" >&6; }
3170else
3171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
3173fi
3174
3175
3176fi
3177if test -z "$CC"; then
3178  if test -n "$ac_tool_prefix"; then
3179  for ac_prog in cl.exe
3180  do
3181    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184$as_echo_n "checking for $ac_word... " >&6; }
3185if ${ac_cv_prog_CC+:} false; then :
3186  $as_echo_n "(cached) " >&6
3187else
3188  if test -n "$CC"; then
3189  ac_cv_prog_CC="$CC" # Let the user override the test.
3190else
3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192for as_dir in $PATH
3193do
3194  IFS=$as_save_IFS
3195  test -z "$as_dir" && as_dir=.
3196    for ac_exec_ext in '' $ac_executable_extensions; do
3197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200    break 2
3201  fi
3202done
3203  done
3204IFS=$as_save_IFS
3205
3206fi
3207fi
3208CC=$ac_cv_prog_CC
3209if test -n "$CC"; then
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211$as_echo "$CC" >&6; }
3212else
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214$as_echo "no" >&6; }
3215fi
3216
3217
3218    test -n "$CC" && break
3219  done
3220fi
3221if test -z "$CC"; then
3222  ac_ct_CC=$CC
3223  for ac_prog in cl.exe
3224do
3225  # Extract the first word of "$ac_prog", so it can be a program name with args.
3226set dummy $ac_prog; ac_word=$2
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228$as_echo_n "checking for $ac_word... " >&6; }
3229if ${ac_cv_prog_ac_ct_CC+:} false; then :
3230  $as_echo_n "(cached) " >&6
3231else
3232  if test -n "$ac_ct_CC"; then
3233  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234else
3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236for as_dir in $PATH
3237do
3238  IFS=$as_save_IFS
3239  test -z "$as_dir" && as_dir=.
3240    for ac_exec_ext in '' $ac_executable_extensions; do
3241  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242    ac_cv_prog_ac_ct_CC="$ac_prog"
3243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244    break 2
3245  fi
3246done
3247  done
3248IFS=$as_save_IFS
3249
3250fi
3251fi
3252ac_ct_CC=$ac_cv_prog_ac_ct_CC
3253if test -n "$ac_ct_CC"; then
3254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3255$as_echo "$ac_ct_CC" >&6; }
3256else
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258$as_echo "no" >&6; }
3259fi
3260
3261
3262  test -n "$ac_ct_CC" && break
3263done
3264
3265  if test "x$ac_ct_CC" = x; then
3266    CC=""
3267  else
3268    case $cross_compiling:$ac_tool_warned in
3269yes:)
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3272ac_tool_warned=yes ;;
3273esac
3274    CC=$ac_ct_CC
3275  fi
3276fi
3277
3278fi
3279
3280
3281test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283as_fn_error $? "no acceptable C compiler found in \$PATH
3284See \`config.log' for more details" "$LINENO" 5; }
3285
3286# Provide some information about the compiler.
3287$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3288set X $ac_compile
3289ac_compiler=$2
3290for ac_option in --version -v -V -qversion; do
3291  { { ac_try="$ac_compiler $ac_option >&5"
3292case "(($ac_try" in
3293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294  *) ac_try_echo=$ac_try;;
3295esac
3296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297$as_echo "$ac_try_echo"; } >&5
3298  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3299  ac_status=$?
3300  if test -s conftest.err; then
3301    sed '10a\
3302... rest of stderr output deleted ...
3303         10q' conftest.err >conftest.er1
3304    cat conftest.er1 >&5
3305  fi
3306  rm -f conftest.er1 conftest.err
3307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3308  test $ac_status = 0; }
3309done
3310
3311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312/* end confdefs.h.  */
3313
3314int
3315main ()
3316{
3317
3318  ;
3319  return 0;
3320}
3321_ACEOF
3322ac_clean_files_save=$ac_clean_files
3323ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3324# Try to create an executable without -o first, disregard a.out.
3325# It will help us diagnose broken compilers, and finding out an intuition
3326# of exeext.
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3328$as_echo_n "checking whether the C compiler works... " >&6; }
3329ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3330
3331# The possible output files:
3332ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3333
3334ac_rmfiles=
3335for ac_file in $ac_files
3336do
3337  case $ac_file in
3338    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3339    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3340  esac
3341done
3342rm -f $ac_rmfiles
3343
3344if { { ac_try="$ac_link_default"
3345case "(($ac_try" in
3346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347  *) ac_try_echo=$ac_try;;
3348esac
3349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350$as_echo "$ac_try_echo"; } >&5
3351  (eval "$ac_link_default") 2>&5
3352  ac_status=$?
3353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354  test $ac_status = 0; }; then :
3355  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3356# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3357# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3358# so that the user can short-circuit this test for compilers unknown to
3359# Autoconf.
3360for ac_file in $ac_files ''
3361do
3362  test -f "$ac_file" || continue
3363  case $ac_file in
3364    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3365	;;
3366    [ab].out )
3367	# We found the default executable, but exeext='' is most
3368	# certainly right.
3369	break;;
3370    *.* )
3371	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3372	then :; else
3373	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3374	fi
3375	# We set ac_cv_exeext here because the later test for it is not
3376	# safe: cross compilers may not add the suffix if given an `-o'
3377	# argument, so we may need to know it at that point already.
3378	# Even if this section looks crufty: it has the advantage of
3379	# actually working.
3380	break;;
3381    * )
3382	break;;
3383  esac
3384done
3385test "$ac_cv_exeext" = no && ac_cv_exeext=
3386
3387else
3388  ac_file=''
3389fi
3390if test -z "$ac_file"; then :
3391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392$as_echo "no" >&6; }
3393$as_echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398as_fn_error 77 "C compiler cannot create executables
3399See \`config.log' for more details" "$LINENO" 5; }
3400else
3401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3402$as_echo "yes" >&6; }
3403fi
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3405$as_echo_n "checking for C compiler default output file name... " >&6; }
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3407$as_echo "$ac_file" >&6; }
3408ac_exeext=$ac_cv_exeext
3409
3410rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3411ac_clean_files=$ac_clean_files_save
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3413$as_echo_n "checking for suffix of executables... " >&6; }
3414if { { ac_try="$ac_link"
3415case "(($ac_try" in
3416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417  *) ac_try_echo=$ac_try;;
3418esac
3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420$as_echo "$ac_try_echo"; } >&5
3421  (eval "$ac_link") 2>&5
3422  ac_status=$?
3423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424  test $ac_status = 0; }; then :
3425  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3426# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3427# work properly (i.e., refer to `conftest.exe'), while it won't with
3428# `rm'.
3429for ac_file in conftest.exe conftest conftest.*; do
3430  test -f "$ac_file" || continue
3431  case $ac_file in
3432    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3433    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3434	  break;;
3435    * ) break;;
3436  esac
3437done
3438else
3439  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3442See \`config.log' for more details" "$LINENO" 5; }
3443fi
3444rm -f conftest conftest$ac_cv_exeext
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3446$as_echo "$ac_cv_exeext" >&6; }
3447
3448rm -f conftest.$ac_ext
3449EXEEXT=$ac_cv_exeext
3450ac_exeext=$EXEEXT
3451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452/* end confdefs.h.  */
3453#include <stdio.h>
3454int
3455main ()
3456{
3457FILE *f = fopen ("conftest.out", "w");
3458 return ferror (f) || fclose (f) != 0;
3459
3460  ;
3461  return 0;
3462}
3463_ACEOF
3464ac_clean_files="$ac_clean_files conftest.out"
3465# Check that the compiler produces executables we can run.  If not, either
3466# the compiler is broken, or we cross compile.
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3468$as_echo_n "checking whether we are cross compiling... " >&6; }
3469if test "$cross_compiling" != yes; then
3470  { { ac_try="$ac_link"
3471case "(($ac_try" in
3472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473  *) ac_try_echo=$ac_try;;
3474esac
3475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476$as_echo "$ac_try_echo"; } >&5
3477  (eval "$ac_link") 2>&5
3478  ac_status=$?
3479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480  test $ac_status = 0; }
3481  if { ac_try='./conftest$ac_cv_exeext'
3482  { { case "(($ac_try" in
3483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484  *) ac_try_echo=$ac_try;;
3485esac
3486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487$as_echo "$ac_try_echo"; } >&5
3488  (eval "$ac_try") 2>&5
3489  ac_status=$?
3490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491  test $ac_status = 0; }; }; then
3492    cross_compiling=no
3493  else
3494    if test "$cross_compiling" = maybe; then
3495	cross_compiling=yes
3496    else
3497	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499as_fn_error $? "cannot run C compiled programs.
3500If you meant to cross compile, use \`--host'.
3501See \`config.log' for more details" "$LINENO" 5; }
3502    fi
3503  fi
3504fi
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3506$as_echo "$cross_compiling" >&6; }
3507
3508rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3509ac_clean_files=$ac_clean_files_save
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3511$as_echo_n "checking for suffix of object files... " >&6; }
3512if ${ac_cv_objext+:} false; then :
3513  $as_echo_n "(cached) " >&6
3514else
3515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516/* end confdefs.h.  */
3517
3518int
3519main ()
3520{
3521
3522  ;
3523  return 0;
3524}
3525_ACEOF
3526rm -f conftest.o conftest.obj
3527if { { ac_try="$ac_compile"
3528case "(($ac_try" in
3529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530  *) ac_try_echo=$ac_try;;
3531esac
3532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533$as_echo "$ac_try_echo"; } >&5
3534  (eval "$ac_compile") 2>&5
3535  ac_status=$?
3536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537  test $ac_status = 0; }; then :
3538  for ac_file in conftest.o conftest.obj conftest.*; do
3539  test -f "$ac_file" || continue;
3540  case $ac_file in
3541    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3542    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3543       break;;
3544  esac
3545done
3546else
3547  $as_echo "$as_me: failed program was:" >&5
3548sed 's/^/| /' conftest.$ac_ext >&5
3549
3550{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552as_fn_error $? "cannot compute suffix of object files: cannot compile
3553See \`config.log' for more details" "$LINENO" 5; }
3554fi
3555rm -f conftest.$ac_cv_objext conftest.$ac_ext
3556fi
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3558$as_echo "$ac_cv_objext" >&6; }
3559OBJEXT=$ac_cv_objext
3560ac_objext=$OBJEXT
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3562$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3563if ${ac_cv_c_compiler_gnu+:} false; then :
3564  $as_echo_n "(cached) " >&6
3565else
3566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567/* end confdefs.h.  */
3568
3569int
3570main ()
3571{
3572#ifndef __GNUC__
3573       choke me
3574#endif
3575
3576  ;
3577  return 0;
3578}
3579_ACEOF
3580if ac_fn_c_try_compile "$LINENO"; then :
3581  ac_compiler_gnu=yes
3582else
3583  ac_compiler_gnu=no
3584fi
3585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586ac_cv_c_compiler_gnu=$ac_compiler_gnu
3587
3588fi
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3590$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3591if test $ac_compiler_gnu = yes; then
3592  GCC=yes
3593else
3594  GCC=
3595fi
3596ac_test_CFLAGS=${CFLAGS+set}
3597ac_save_CFLAGS=$CFLAGS
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3599$as_echo_n "checking whether $CC accepts -g... " >&6; }
3600if ${ac_cv_prog_cc_g+:} false; then :
3601  $as_echo_n "(cached) " >&6
3602else
3603  ac_save_c_werror_flag=$ac_c_werror_flag
3604   ac_c_werror_flag=yes
3605   ac_cv_prog_cc_g=no
3606   CFLAGS="-g"
3607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h.  */
3609
3610int
3611main ()
3612{
3613
3614  ;
3615  return 0;
3616}
3617_ACEOF
3618if ac_fn_c_try_compile "$LINENO"; then :
3619  ac_cv_prog_cc_g=yes
3620else
3621  CFLAGS=""
3622      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623/* end confdefs.h.  */
3624
3625int
3626main ()
3627{
3628
3629  ;
3630  return 0;
3631}
3632_ACEOF
3633if ac_fn_c_try_compile "$LINENO"; then :
3634
3635else
3636  ac_c_werror_flag=$ac_save_c_werror_flag
3637	 CFLAGS="-g"
3638	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639/* end confdefs.h.  */
3640
3641int
3642main ()
3643{
3644
3645  ;
3646  return 0;
3647}
3648_ACEOF
3649if ac_fn_c_try_compile "$LINENO"; then :
3650  ac_cv_prog_cc_g=yes
3651fi
3652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653fi
3654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655fi
3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657   ac_c_werror_flag=$ac_save_c_werror_flag
3658fi
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3660$as_echo "$ac_cv_prog_cc_g" >&6; }
3661if test "$ac_test_CFLAGS" = set; then
3662  CFLAGS=$ac_save_CFLAGS
3663elif test $ac_cv_prog_cc_g = yes; then
3664  if test "$GCC" = yes; then
3665    CFLAGS="-g -O2"
3666  else
3667    CFLAGS="-g"
3668  fi
3669else
3670  if test "$GCC" = yes; then
3671    CFLAGS="-O2"
3672  else
3673    CFLAGS=
3674  fi
3675fi
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3677$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3678if ${ac_cv_prog_cc_c89+:} false; then :
3679  $as_echo_n "(cached) " >&6
3680else
3681  ac_cv_prog_cc_c89=no
3682ac_save_CC=$CC
3683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684/* end confdefs.h.  */
3685#include <stdarg.h>
3686#include <stdio.h>
3687#include <sys/types.h>
3688#include <sys/stat.h>
3689/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3690struct buf { int x; };
3691FILE * (*rcsopen) (struct buf *, struct stat *, int);
3692static char *e (p, i)
3693     char **p;
3694     int i;
3695{
3696  return p[i];
3697}
3698static char *f (char * (*g) (char **, int), char **p, ...)
3699{
3700  char *s;
3701  va_list v;
3702  va_start (v,p);
3703  s = g (p, va_arg (v,int));
3704  va_end (v);
3705  return s;
3706}
3707
3708/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3709   function prototypes and stuff, but not '\xHH' hex character constants.
3710   These don't provoke an error unfortunately, instead are silently treated
3711   as 'x'.  The following induces an error, until -std is added to get
3712   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3713   array size at least.  It's necessary to write '\x00'==0 to get something
3714   that's true only with -std.  */
3715int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3716
3717/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3718   inside strings and character constants.  */
3719#define FOO(x) 'x'
3720int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3721
3722int test (int i, double x);
3723struct s1 {int (*f) (int a);};
3724struct s2 {int (*f) (double a);};
3725int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3726int argc;
3727char **argv;
3728int
3729main ()
3730{
3731return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3732  ;
3733  return 0;
3734}
3735_ACEOF
3736for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3737	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3738do
3739  CC="$ac_save_CC $ac_arg"
3740  if ac_fn_c_try_compile "$LINENO"; then :
3741  ac_cv_prog_cc_c89=$ac_arg
3742fi
3743rm -f core conftest.err conftest.$ac_objext
3744  test "x$ac_cv_prog_cc_c89" != "xno" && break
3745done
3746rm -f conftest.$ac_ext
3747CC=$ac_save_CC
3748
3749fi
3750# AC_CACHE_VAL
3751case "x$ac_cv_prog_cc_c89" in
3752  x)
3753    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3754$as_echo "none needed" >&6; } ;;
3755  xno)
3756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3757$as_echo "unsupported" >&6; } ;;
3758  *)
3759    CC="$CC $ac_cv_prog_cc_c89"
3760    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3761$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3762esac
3763if test "x$ac_cv_prog_cc_c89" != xno; then :
3764
3765fi
3766
3767ac_ext=c
3768ac_cpp='$CPP $CPPFLAGS'
3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772
3773
3774
3775if test "$host" = mips-sni-sysv4 && test -n "$GCC"; then
3776  :
3777else
3778
3779# Check whether --enable-largefile was given.
3780if test "${enable_largefile+set}" = set; then :
3781  enableval=$enable_largefile;
3782fi
3783
3784if test "$enable_largefile" != no; then
3785
3786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3787$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3788if ${ac_cv_sys_largefile_CC+:} false; then :
3789  $as_echo_n "(cached) " >&6
3790else
3791  ac_cv_sys_largefile_CC=no
3792     if test "$GCC" != yes; then
3793       ac_save_CC=$CC
3794       while :; do
3795	 # IRIX 6.2 and later do not support large files by default,
3796	 # so use the C compiler's -n32 option if that helps.
3797	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798/* end confdefs.h.  */
3799#include <sys/types.h>
3800 /* Check that off_t can represent 2**63 - 1 correctly.
3801    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3802    since some C++ compilers masquerading as C compilers
3803    incorrectly reject 9223372036854775807.  */
3804#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3805  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3806		       && LARGE_OFF_T % 2147483647 == 1)
3807		      ? 1 : -1];
3808int
3809main ()
3810{
3811
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816	 if ac_fn_c_try_compile "$LINENO"; then :
3817  break
3818fi
3819rm -f core conftest.err conftest.$ac_objext
3820	 CC="$CC -n32"
3821	 if ac_fn_c_try_compile "$LINENO"; then :
3822  ac_cv_sys_largefile_CC=' -n32'; break
3823fi
3824rm -f core conftest.err conftest.$ac_objext
3825	 break
3826       done
3827       CC=$ac_save_CC
3828       rm -f conftest.$ac_ext
3829    fi
3830fi
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3832$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3833  if test "$ac_cv_sys_largefile_CC" != no; then
3834    CC=$CC$ac_cv_sys_largefile_CC
3835  fi
3836
3837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3838$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3839if ${ac_cv_sys_file_offset_bits+:} false; then :
3840  $as_echo_n "(cached) " >&6
3841else
3842  while :; do
3843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844/* end confdefs.h.  */
3845#include <sys/types.h>
3846 /* Check that off_t can represent 2**63 - 1 correctly.
3847    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3848    since some C++ compilers masquerading as C compilers
3849    incorrectly reject 9223372036854775807.  */
3850#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3851  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3852		       && LARGE_OFF_T % 2147483647 == 1)
3853		      ? 1 : -1];
3854int
3855main ()
3856{
3857
3858  ;
3859  return 0;
3860}
3861_ACEOF
3862if ac_fn_c_try_compile "$LINENO"; then :
3863  ac_cv_sys_file_offset_bits=no; break
3864fi
3865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867/* end confdefs.h.  */
3868#define _FILE_OFFSET_BITS 64
3869#include <sys/types.h>
3870 /* Check that off_t can represent 2**63 - 1 correctly.
3871    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3872    since some C++ compilers masquerading as C compilers
3873    incorrectly reject 9223372036854775807.  */
3874#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3875  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3876		       && LARGE_OFF_T % 2147483647 == 1)
3877		      ? 1 : -1];
3878int
3879main ()
3880{
3881
3882  ;
3883  return 0;
3884}
3885_ACEOF
3886if ac_fn_c_try_compile "$LINENO"; then :
3887  ac_cv_sys_file_offset_bits=64; break
3888fi
3889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890  ac_cv_sys_file_offset_bits=unknown
3891  break
3892done
3893fi
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3895$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3896case $ac_cv_sys_file_offset_bits in #(
3897  no | unknown) ;;
3898  *)
3899cat >>confdefs.h <<_ACEOF
3900#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3901_ACEOF
3902;;
3903esac
3904rm -rf conftest*
3905  if test $ac_cv_sys_file_offset_bits = unknown; then
3906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3907$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3908if ${ac_cv_sys_large_files+:} false; then :
3909  $as_echo_n "(cached) " >&6
3910else
3911  while :; do
3912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h.  */
3914#include <sys/types.h>
3915 /* Check that off_t can represent 2**63 - 1 correctly.
3916    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3917    since some C++ compilers masquerading as C compilers
3918    incorrectly reject 9223372036854775807.  */
3919#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3920  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3921		       && LARGE_OFF_T % 2147483647 == 1)
3922		      ? 1 : -1];
3923int
3924main ()
3925{
3926
3927  ;
3928  return 0;
3929}
3930_ACEOF
3931if ac_fn_c_try_compile "$LINENO"; then :
3932  ac_cv_sys_large_files=no; break
3933fi
3934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936/* end confdefs.h.  */
3937#define _LARGE_FILES 1
3938#include <sys/types.h>
3939 /* Check that off_t can represent 2**63 - 1 correctly.
3940    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3941    since some C++ compilers masquerading as C compilers
3942    incorrectly reject 9223372036854775807.  */
3943#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3944  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3945		       && LARGE_OFF_T % 2147483647 == 1)
3946		      ? 1 : -1];
3947int
3948main ()
3949{
3950
3951  ;
3952  return 0;
3953}
3954_ACEOF
3955if ac_fn_c_try_compile "$LINENO"; then :
3956  ac_cv_sys_large_files=1; break
3957fi
3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959  ac_cv_sys_large_files=unknown
3960  break
3961done
3962fi
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3964$as_echo "$ac_cv_sys_large_files" >&6; }
3965case $ac_cv_sys_large_files in #(
3966  no | unknown) ;;
3967  *)
3968cat >>confdefs.h <<_ACEOF
3969#define _LARGE_FILES $ac_cv_sys_large_files
3970_ACEOF
3971;;
3972esac
3973rm -rf conftest*
3974  fi
3975fi
3976
3977fi
3978
3979if test -n "$auto_cflags" && test ."$ansi2knr" != .yes; then
3980  if test "${enable_zsh_debug}" = yes; then
3981    if test -n "$GCC"; then
3982      CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -ggdb"
3983    else
3984      CFLAGS="$CFLAGS -g"
3985    fi
3986  else
3987    if test -n "$GCC"; then
3988      CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -O2"
3989    else
3990      CFLAGS="$CFLAGS -O"
3991    fi
3992  fi
3993fi
3994if test -n "$auto_ldflags"; then
3995  case "${enable_zsh_debug}$host_os" in
3996    yesaix*|yeshpux*|yesnetbsd*|yesopenbsd*) ;;  # "ld -g" is not valid on these systems
3997    darwin*) LDFLAGS=-Wl,-x ;;
3998    yes*)    LDFLAGS=-g ;;
3999    *)       LDFLAGS=-s ;;
4000  esac
4001fi
4002
4003case "$host_os" in
4004  sco*) CFLAGS="-D__sco $CFLAGS" ;;
4005esac
4006
4007sed=':1
4008     s/ -s / /g
4009     t1
4010     s/^ *//
4011     s/ *$//'
4012
4013case " $LDFLAGS " in
4014  *" -s "*) strip_exeldflags=true strip_libldflags=true
4015    LDFLAGS=`echo " $LDFLAGS " | sed "$sed"` ;;
4016  *) strip_exeldflags=false strip_libldflags=false ;;
4017esac
4018
4019case " ${EXELDFLAGS+$EXELDFLAGS }" in
4020  " ") ;;
4021  *" -s "*) strip_exeldflags=true
4022    EXELDFLAGS=`echo " $EXELDFLAGS " | sed "$sed"` ;;
4023  *) strip_exeldflags=false ;;
4024esac
4025
4026case " ${LIBLDFLAGS+$LIBLDFLAGS }" in
4027  " ") ;;
4028  *" -s "*) strip_libldflags=true
4029    LIBLDFLAGS=`echo " $LIBLDFLAGS " | sed "$sed"` ;;
4030  *) strip_libldflags=false ;;
4031esac
4032
4033
4034ac_ext=c
4035ac_cpp='$CPP $CPPFLAGS'
4036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4040$as_echo_n "checking how to run the C preprocessor... " >&6; }
4041# On Suns, sometimes $CPP names a directory.
4042if test -n "$CPP" && test -d "$CPP"; then
4043  CPP=
4044fi
4045if test -z "$CPP"; then
4046  if ${ac_cv_prog_CPP+:} false; then :
4047  $as_echo_n "(cached) " >&6
4048else
4049      # Double quotes because CPP needs to be expanded
4050    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4051    do
4052      ac_preproc_ok=false
4053for ac_c_preproc_warn_flag in '' yes
4054do
4055  # Use a header file that comes with gcc, so configuring glibc
4056  # with a fresh cross-compiler works.
4057  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4058  # <limits.h> exists even on freestanding compilers.
4059  # On the NeXT, cc -E runs the code through the compiler's parser,
4060  # not just through cpp. "Syntax error" is here to catch this case.
4061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062/* end confdefs.h.  */
4063#ifdef __STDC__
4064# include <limits.h>
4065#else
4066# include <assert.h>
4067#endif
4068		     Syntax error
4069_ACEOF
4070if ac_fn_c_try_cpp "$LINENO"; then :
4071
4072else
4073  # Broken: fails on valid input.
4074continue
4075fi
4076rm -f conftest.err conftest.i conftest.$ac_ext
4077
4078  # OK, works on sane cases.  Now check whether nonexistent headers
4079  # can be detected and how.
4080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081/* end confdefs.h.  */
4082#include <ac_nonexistent.h>
4083_ACEOF
4084if ac_fn_c_try_cpp "$LINENO"; then :
4085  # Broken: success on invalid input.
4086continue
4087else
4088  # Passes both tests.
4089ac_preproc_ok=:
4090break
4091fi
4092rm -f conftest.err conftest.i conftest.$ac_ext
4093
4094done
4095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4096rm -f conftest.i conftest.err conftest.$ac_ext
4097if $ac_preproc_ok; then :
4098  break
4099fi
4100
4101    done
4102    ac_cv_prog_CPP=$CPP
4103
4104fi
4105  CPP=$ac_cv_prog_CPP
4106else
4107  ac_cv_prog_CPP=$CPP
4108fi
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4110$as_echo "$CPP" >&6; }
4111ac_preproc_ok=false
4112for ac_c_preproc_warn_flag in '' yes
4113do
4114  # Use a header file that comes with gcc, so configuring glibc
4115  # with a fresh cross-compiler works.
4116  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4117  # <limits.h> exists even on freestanding compilers.
4118  # On the NeXT, cc -E runs the code through the compiler's parser,
4119  # not just through cpp. "Syntax error" is here to catch this case.
4120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121/* end confdefs.h.  */
4122#ifdef __STDC__
4123# include <limits.h>
4124#else
4125# include <assert.h>
4126#endif
4127		     Syntax error
4128_ACEOF
4129if ac_fn_c_try_cpp "$LINENO"; then :
4130
4131else
4132  # Broken: fails on valid input.
4133continue
4134fi
4135rm -f conftest.err conftest.i conftest.$ac_ext
4136
4137  # OK, works on sane cases.  Now check whether nonexistent headers
4138  # can be detected and how.
4139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h.  */
4141#include <ac_nonexistent.h>
4142_ACEOF
4143if ac_fn_c_try_cpp "$LINENO"; then :
4144  # Broken: success on invalid input.
4145continue
4146else
4147  # Passes both tests.
4148ac_preproc_ok=:
4149break
4150fi
4151rm -f conftest.err conftest.i conftest.$ac_ext
4152
4153done
4154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4155rm -f conftest.i conftest.err conftest.$ac_ext
4156if $ac_preproc_ok; then :
4157
4158else
4159  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4161as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4162See \`config.log' for more details" "$LINENO" 5; }
4163fi
4164
4165ac_ext=c
4166ac_cpp='$CPP $CPPFLAGS'
4167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4172$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4173if ${ac_cv_path_GREP+:} false; then :
4174  $as_echo_n "(cached) " >&6
4175else
4176  if test -z "$GREP"; then
4177  ac_path_GREP_found=false
4178  # Loop through the user's path and test for each of PROGNAME-LIST
4179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4181do
4182  IFS=$as_save_IFS
4183  test -z "$as_dir" && as_dir=.
4184    for ac_prog in grep ggrep; do
4185    for ac_exec_ext in '' $ac_executable_extensions; do
4186      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4187      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4188# Check for GNU ac_path_GREP and select it if it is found.
4189  # Check for GNU $ac_path_GREP
4190case `"$ac_path_GREP" --version 2>&1` in
4191*GNU*)
4192  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4193*)
4194  ac_count=0
4195  $as_echo_n 0123456789 >"conftest.in"
4196  while :
4197  do
4198    cat "conftest.in" "conftest.in" >"conftest.tmp"
4199    mv "conftest.tmp" "conftest.in"
4200    cp "conftest.in" "conftest.nl"
4201    $as_echo 'GREP' >> "conftest.nl"
4202    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4203    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4204    as_fn_arith $ac_count + 1 && ac_count=$as_val
4205    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4206      # Best one so far, save it but keep looking for a better one
4207      ac_cv_path_GREP="$ac_path_GREP"
4208      ac_path_GREP_max=$ac_count
4209    fi
4210    # 10*(2^10) chars as input seems more than enough
4211    test $ac_count -gt 10 && break
4212  done
4213  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4214esac
4215
4216      $ac_path_GREP_found && break 3
4217    done
4218  done
4219  done
4220IFS=$as_save_IFS
4221  if test -z "$ac_cv_path_GREP"; then
4222    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4223  fi
4224else
4225  ac_cv_path_GREP=$GREP
4226fi
4227
4228fi
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4230$as_echo "$ac_cv_path_GREP" >&6; }
4231 GREP="$ac_cv_path_GREP"
4232
4233
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4235$as_echo_n "checking for egrep... " >&6; }
4236if ${ac_cv_path_EGREP+:} false; then :
4237  $as_echo_n "(cached) " >&6
4238else
4239  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4240   then ac_cv_path_EGREP="$GREP -E"
4241   else
4242     if test -z "$EGREP"; then
4243  ac_path_EGREP_found=false
4244  # Loop through the user's path and test for each of PROGNAME-LIST
4245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247do
4248  IFS=$as_save_IFS
4249  test -z "$as_dir" && as_dir=.
4250    for ac_prog in egrep; do
4251    for ac_exec_ext in '' $ac_executable_extensions; do
4252      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4253      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4254# Check for GNU ac_path_EGREP and select it if it is found.
4255  # Check for GNU $ac_path_EGREP
4256case `"$ac_path_EGREP" --version 2>&1` in
4257*GNU*)
4258  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4259*)
4260  ac_count=0
4261  $as_echo_n 0123456789 >"conftest.in"
4262  while :
4263  do
4264    cat "conftest.in" "conftest.in" >"conftest.tmp"
4265    mv "conftest.tmp" "conftest.in"
4266    cp "conftest.in" "conftest.nl"
4267    $as_echo 'EGREP' >> "conftest.nl"
4268    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4269    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4270    as_fn_arith $ac_count + 1 && ac_count=$as_val
4271    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4272      # Best one so far, save it but keep looking for a better one
4273      ac_cv_path_EGREP="$ac_path_EGREP"
4274      ac_path_EGREP_max=$ac_count
4275    fi
4276    # 10*(2^10) chars as input seems more than enough
4277    test $ac_count -gt 10 && break
4278  done
4279  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280esac
4281
4282      $ac_path_EGREP_found && break 3
4283    done
4284  done
4285  done
4286IFS=$as_save_IFS
4287  if test -z "$ac_cv_path_EGREP"; then
4288    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4289  fi
4290else
4291  ac_cv_path_EGREP=$EGREP
4292fi
4293
4294   fi
4295fi
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4297$as_echo "$ac_cv_path_EGREP" >&6; }
4298 EGREP="$ac_cv_path_EGREP"
4299
4300
4301if test $ac_cv_c_compiler_gnu = yes; then
4302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4303$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4304if ${ac_cv_prog_gcc_traditional+:} false; then :
4305  $as_echo_n "(cached) " >&6
4306else
4307    ac_pattern="Autoconf.*'x'"
4308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309/* end confdefs.h.  */
4310#include <sgtty.h>
4311Autoconf TIOCGETP
4312_ACEOF
4313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4314  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4315  ac_cv_prog_gcc_traditional=yes
4316else
4317  ac_cv_prog_gcc_traditional=no
4318fi
4319rm -f conftest*
4320
4321
4322  if test $ac_cv_prog_gcc_traditional = no; then
4323    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324/* end confdefs.h.  */
4325#include <termio.h>
4326Autoconf TCGETA
4327_ACEOF
4328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4330  ac_cv_prog_gcc_traditional=yes
4331fi
4332rm -f conftest*
4333
4334  fi
4335fi
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4337$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4338  if test $ac_cv_prog_gcc_traditional = yes; then
4339    CC="$CC -traditional"
4340  fi
4341fi
4342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4343$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4344if ${ac_cv_c_const+:} false; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h.  */
4349
4350int
4351main ()
4352{
4353/* FIXME: Include the comments suggested by Paul. */
4354#ifndef __cplusplus
4355  /* Ultrix mips cc rejects this.  */
4356  typedef int charset[2];
4357  const charset cs;
4358  /* SunOS 4.1.1 cc rejects this.  */
4359  char const *const *pcpcc;
4360  char **ppc;
4361  /* NEC SVR4.0.2 mips cc rejects this.  */
4362  struct point {int x, y;};
4363  static struct point const zero = {0,0};
4364  /* AIX XL C 1.02.0.0 rejects this.
4365     It does not let you subtract one const X* pointer from another in
4366     an arm of an if-expression whose if-part is not a constant
4367     expression */
4368  const char *g = "string";
4369  pcpcc = &g + (g ? g-g : 0);
4370  /* HPUX 7.0 cc rejects these. */
4371  ++pcpcc;
4372  ppc = (char**) pcpcc;
4373  pcpcc = (char const *const *) ppc;
4374  { /* SCO 3.2v4 cc rejects this.  */
4375    char *t;
4376    char const *s = 0 ? (char *) 0 : (char const *) 0;
4377
4378    *t++ = 0;
4379    if (s) return 0;
4380  }
4381  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4382    int x[] = {25, 17};
4383    const int *foo = &x[0];
4384    ++foo;
4385  }
4386  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4387    typedef const int *iptr;
4388    iptr p = 0;
4389    ++p;
4390  }
4391  { /* AIX XL C 1.02.0.0 rejects this saying
4392       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4393    struct s { int j; const int *ap[3]; };
4394    struct s *b; b->j = 5;
4395  }
4396  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4397    const int foo = 10;
4398    if (!foo) return 0;
4399  }
4400  return !cs[0] && !zero.x;
4401#endif
4402
4403  ;
4404  return 0;
4405}
4406_ACEOF
4407if ac_fn_c_try_compile "$LINENO"; then :
4408  ac_cv_c_const=yes
4409else
4410  ac_cv_c_const=no
4411fi
4412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413fi
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4415$as_echo "$ac_cv_c_const" >&6; }
4416if test $ac_cv_c_const = no; then
4417
4418$as_echo "#define const /**/" >>confdefs.h
4419
4420fi
4421
4422case "$host_os" in
4423  darwin[0-9].*) CPP="$CPP -traditional-cpp" ;;
4424esac
4425
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4427$as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4428if ${fp_cv_prog_cc_stdc+:} false; then :
4429  $as_echo_n "(cached) " >&6
4430else
4431  fp_cv_prog_cc_stdc=no
4432ac_save_CFLAGS="$CFLAGS"
4433# Don't try gcc -ansi; that turns off useful extensions and
4434# breaks some systems' header files.
4435# AIX			-qlanglvl=ansi
4436# Ultrix and OSF/1	-std1
4437# HP-UX			-Ae  or  -Aa -D_HPUX_SOURCE
4438# SVR4			-Xc
4439#  For HP-UX, we try -Ae first; this turns on ANSI but also extensions,
4440#  as well as defining _HPUX_SOURCE, and we can then use long long.
4441#  We keep the old version for backward compatibility.
4442for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" -Xc
4443do
4444  CFLAGS="$ac_save_CFLAGS $ac_arg"
4445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446/* end confdefs.h.  */
4447#ifndef __STDC__
4448choke me
4449#endif
4450
4451int
4452main ()
4453{
4454int test (int i, double x);
4455struct s1 {int (*f) (int a);};
4456struct s2 {int (*f) (double a);};
4457  ;
4458  return 0;
4459}
4460_ACEOF
4461if ac_fn_c_try_compile "$LINENO"; then :
4462  fp_cv_prog_cc_stdc="$ac_arg"; break
4463fi
4464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465done
4466CFLAGS="$ac_save_CFLAGS"
4467
4468fi
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fp_cv_prog_cc_stdc" >&5
4470$as_echo "$fp_cv_prog_cc_stdc" >&6; }
4471case "x$fp_cv_prog_cc_stdc" in
4472  x|xno) ;;
4473  *) CC="$CC $fp_cv_prog_cc_stdc" ;;
4474esac
4475
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use prototypes" >&5
4477$as_echo_n "checking whether to use prototypes... " >&6; }
4478if test ."$ansi2knr" = .yes || test ."$ansi2knr" = .no; then
4479  msg="(overridden) "
4480else
4481  msg=
4482  if test ."$fp_cv_prog_cc_stdc" = .no; then
4483    ansi2knr=yes
4484  else
4485    ansi2knr=no
4486  fi
4487fi
4488
4489if test "$ansi2knr" = yes; then
4490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msg}no" >&5
4491$as_echo "${msg}no" >&6; }
4492  U=_
4493else
4494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msg}yes" >&5
4495$as_echo "${msg}yes" >&6; }
4496  $as_echo "#define PROTOTYPES 1" >>confdefs.h
4497
4498  U=
4499fi
4500
4501
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4503$as_echo_n "checking for ANSI C header files... " >&6; }
4504if ${ac_cv_header_stdc+:} false; then :
4505  $as_echo_n "(cached) " >&6
4506else
4507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508/* end confdefs.h.  */
4509#include <stdlib.h>
4510#include <stdarg.h>
4511#include <string.h>
4512#include <float.h>
4513
4514int
4515main ()
4516{
4517
4518  ;
4519  return 0;
4520}
4521_ACEOF
4522if ac_fn_c_try_compile "$LINENO"; then :
4523  ac_cv_header_stdc=yes
4524else
4525  ac_cv_header_stdc=no
4526fi
4527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528
4529if test $ac_cv_header_stdc = yes; then
4530  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532/* end confdefs.h.  */
4533#include <string.h>
4534
4535_ACEOF
4536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537  $EGREP "memchr" >/dev/null 2>&1; then :
4538
4539else
4540  ac_cv_header_stdc=no
4541fi
4542rm -f conftest*
4543
4544fi
4545
4546if test $ac_cv_header_stdc = yes; then
4547  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h.  */
4550#include <stdlib.h>
4551
4552_ACEOF
4553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4554  $EGREP "free" >/dev/null 2>&1; then :
4555
4556else
4557  ac_cv_header_stdc=no
4558fi
4559rm -f conftest*
4560
4561fi
4562
4563if test $ac_cv_header_stdc = yes; then
4564  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4565  if test "$cross_compiling" = yes; then :
4566  :
4567else
4568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569/* end confdefs.h.  */
4570#include <ctype.h>
4571#include <stdlib.h>
4572#if ((' ' & 0x0FF) == 0x020)
4573# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4574# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4575#else
4576# define ISLOWER(c) \
4577		   (('a' <= (c) && (c) <= 'i') \
4578		     || ('j' <= (c) && (c) <= 'r') \
4579		     || ('s' <= (c) && (c) <= 'z'))
4580# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4581#endif
4582
4583#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4584int
4585main ()
4586{
4587  int i;
4588  for (i = 0; i < 256; i++)
4589    if (XOR (islower (i), ISLOWER (i))
4590	|| toupper (i) != TOUPPER (i))
4591      return 2;
4592  return 0;
4593}
4594_ACEOF
4595if ac_fn_c_try_run "$LINENO"; then :
4596
4597else
4598  ac_cv_header_stdc=no
4599fi
4600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4601  conftest.$ac_objext conftest.beam conftest.$ac_ext
4602fi
4603
4604fi
4605fi
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4607$as_echo "$ac_cv_header_stdc" >&6; }
4608if test $ac_cv_header_stdc = yes; then
4609
4610$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4611
4612fi
4613
4614# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4615for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4616		  inttypes.h stdint.h unistd.h
4617do :
4618  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4619ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4620"
4621if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4622  cat >>confdefs.h <<_ACEOF
4623#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4624_ACEOF
4625
4626fi
4627
4628done
4629
4630
4631ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4632if test "x$ac_cv_type_size_t" = xyes; then :
4633
4634else
4635
4636cat >>confdefs.h <<_ACEOF
4637#define size_t unsigned int
4638_ACEOF
4639
4640fi
4641
4642# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4643# for constant arguments.  Useless!
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4645$as_echo_n "checking for working alloca.h... " >&6; }
4646if ${ac_cv_working_alloca_h+:} false; then :
4647  $as_echo_n "(cached) " >&6
4648else
4649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650/* end confdefs.h.  */
4651#include <alloca.h>
4652int
4653main ()
4654{
4655char *p = (char *) alloca (2 * sizeof (int));
4656			  if (p) return 0;
4657  ;
4658  return 0;
4659}
4660_ACEOF
4661if ac_fn_c_try_link "$LINENO"; then :
4662  ac_cv_working_alloca_h=yes
4663else
4664  ac_cv_working_alloca_h=no
4665fi
4666rm -f core conftest.err conftest.$ac_objext \
4667    conftest$ac_exeext conftest.$ac_ext
4668fi
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4670$as_echo "$ac_cv_working_alloca_h" >&6; }
4671if test $ac_cv_working_alloca_h = yes; then
4672
4673$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4674
4675fi
4676
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4678$as_echo_n "checking for alloca... " >&6; }
4679if ${ac_cv_func_alloca_works+:} false; then :
4680  $as_echo_n "(cached) " >&6
4681else
4682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683/* end confdefs.h.  */
4684#ifdef __GNUC__
4685# define alloca __builtin_alloca
4686#else
4687# ifdef _MSC_VER
4688#  include <malloc.h>
4689#  define alloca _alloca
4690# else
4691#  ifdef HAVE_ALLOCA_H
4692#   include <alloca.h>
4693#  else
4694#   ifdef _AIX
4695 #pragma alloca
4696#   else
4697#    ifndef alloca /* predefined by HP cc +Olibcalls */
4698void *alloca (size_t);
4699#    endif
4700#   endif
4701#  endif
4702# endif
4703#endif
4704
4705int
4706main ()
4707{
4708char *p = (char *) alloca (1);
4709				    if (p) return 0;
4710  ;
4711  return 0;
4712}
4713_ACEOF
4714if ac_fn_c_try_link "$LINENO"; then :
4715  ac_cv_func_alloca_works=yes
4716else
4717  ac_cv_func_alloca_works=no
4718fi
4719rm -f core conftest.err conftest.$ac_objext \
4720    conftest$ac_exeext conftest.$ac_ext
4721fi
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4723$as_echo "$ac_cv_func_alloca_works" >&6; }
4724
4725if test $ac_cv_func_alloca_works = yes; then
4726
4727$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4728
4729else
4730  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4731# that cause trouble.  Some versions do not even contain alloca or
4732# contain a buggy version.  If you still want to use their alloca,
4733# use ar to extract alloca.o from them instead of compiling alloca.c.
4734
4735ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4736
4737$as_echo "#define C_ALLOCA 1" >>confdefs.h
4738
4739
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4741$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4742if ${ac_cv_os_cray+:} false; then :
4743  $as_echo_n "(cached) " >&6
4744else
4745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746/* end confdefs.h.  */
4747#if defined CRAY && ! defined CRAY2
4748webecray
4749#else
4750wenotbecray
4751#endif
4752
4753_ACEOF
4754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4755  $EGREP "webecray" >/dev/null 2>&1; then :
4756  ac_cv_os_cray=yes
4757else
4758  ac_cv_os_cray=no
4759fi
4760rm -f conftest*
4761
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4764$as_echo "$ac_cv_os_cray" >&6; }
4765if test $ac_cv_os_cray = yes; then
4766  for ac_func in _getb67 GETB67 getb67; do
4767    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4768ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4769if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4770
4771cat >>confdefs.h <<_ACEOF
4772#define CRAY_STACKSEG_END $ac_func
4773_ACEOF
4774
4775    break
4776fi
4777
4778  done
4779fi
4780
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4782$as_echo_n "checking stack direction for C alloca... " >&6; }
4783if ${ac_cv_c_stack_direction+:} false; then :
4784  $as_echo_n "(cached) " >&6
4785else
4786  if test "$cross_compiling" = yes; then :
4787  ac_cv_c_stack_direction=0
4788else
4789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790/* end confdefs.h.  */
4791$ac_includes_default
4792int
4793find_stack_direction ()
4794{
4795  static char *addr = 0;
4796  auto char dummy;
4797  if (addr == 0)
4798    {
4799      addr = &dummy;
4800      return find_stack_direction ();
4801    }
4802  else
4803    return (&dummy > addr) ? 1 : -1;
4804}
4805
4806int
4807main ()
4808{
4809  return find_stack_direction () < 0;
4810}
4811_ACEOF
4812if ac_fn_c_try_run "$LINENO"; then :
4813  ac_cv_c_stack_direction=1
4814else
4815  ac_cv_c_stack_direction=-1
4816fi
4817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4818  conftest.$ac_objext conftest.beam conftest.$ac_ext
4819fi
4820
4821fi
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4823$as_echo "$ac_cv_c_stack_direction" >&6; }
4824cat >>confdefs.h <<_ACEOF
4825#define STACK_DIRECTION $ac_cv_c_stack_direction
4826_ACEOF
4827
4828
4829fi
4830
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports union initialisation" >&5
4832$as_echo_n "checking if the compiler supports union initialisation... " >&6; }
4833if ${zsh_cv_c_have_union_init+:} false; then :
4834  $as_echo_n "(cached) " >&6
4835else
4836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837/* end confdefs.h.  */
4838union{void *p;long l;}u={0};
4839int
4840main ()
4841{
4842u.l=1;
4843  ;
4844  return 0;
4845}
4846_ACEOF
4847if ac_fn_c_try_compile "$LINENO"; then :
4848  zsh_cv_c_have_union_init=yes
4849else
4850  zsh_cv_c_have_union_init=no
4851fi
4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_c_have_union_init" >&5
4855$as_echo "$zsh_cv_c_have_union_init" >&6; }
4856
4857if test x$zsh_cv_c_have_union_init = xyes; then
4858  $as_echo "#define HAVE_UNION_INIT 1" >>confdefs.h
4859
4860fi
4861
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if signed to unsigned casting is broken" >&5
4863$as_echo_n "checking if signed to unsigned casting is broken... " >&6; }
4864if ${zsh_cv_c_broken_signed_to_unsigned_casting+:} false; then :
4865  $as_echo_n "(cached) " >&6
4866else
4867  if test "$cross_compiling" = yes; then :
4868  zsh_cv_c_broken_signed_to_unsigned_casting=no
4869else
4870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871/* end confdefs.h.  */
4872main(){return((int)(unsigned char)((char) -1) == 255);}
4873_ACEOF
4874if ac_fn_c_try_run "$LINENO"; then :
4875  zsh_cv_c_broken_signed_to_unsigned_casting=yes
4876else
4877  zsh_cv_c_broken_signed_to_unsigned_casting=no
4878fi
4879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4880  conftest.$ac_objext conftest.beam conftest.$ac_ext
4881fi
4882
4883fi
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_c_broken_signed_to_unsigned_casting" >&5
4885$as_echo "$zsh_cv_c_broken_signed_to_unsigned_casting" >&6; }
4886
4887if test x$zsh_cv_c_broken_signed_to_unsigned_casting = xyes; then
4888  $as_echo "#define BROKEN_SIGNED_TO_UNSIGNED_CASTING 1" >>confdefs.h
4889
4890fi
4891
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports variable-length arrays" >&5
4893$as_echo_n "checking if the compiler supports variable-length arrays... " >&6; }
4894if ${zsh_cv_c_variable_length_arrays+:} false; then :
4895  $as_echo_n "(cached) " >&6
4896else
4897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898/* end confdefs.h.  */
4899int foo(), n;
4900int
4901main ()
4902{
4903int i[foo()], a[n+1];
4904  ;
4905  return 0;
4906}
4907_ACEOF
4908if ac_fn_c_try_compile "$LINENO"; then :
4909  zsh_cv_c_variable_length_arrays=yes
4910else
4911  zsh_cv_c_variable_length_arrays=no
4912fi
4913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914fi
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_c_variable_length_arrays" >&5
4916$as_echo "$zsh_cv_c_variable_length_arrays" >&6; }
4917
4918if test x$zsh_cv_c_variable_length_arrays = xyes; then
4919  $as_echo "#define HAVE_VARIABLE_LENGTH_ARRAYS 1" >>confdefs.h
4920
4921fi
4922
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4924$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4925set x ${MAKE-make}
4926ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4927if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4928  $as_echo_n "(cached) " >&6
4929else
4930  cat >conftest.make <<\_ACEOF
4931SHELL = /bin/sh
4932all:
4933	@echo '@@@%%%=$(MAKE)=@@@%%%'
4934_ACEOF
4935# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4936case `${MAKE-make} -f conftest.make 2>/dev/null` in
4937  *@@@%%%=?*=@@@%%%*)
4938    eval ac_cv_prog_make_${ac_make}_set=yes;;
4939  *)
4940    eval ac_cv_prog_make_${ac_make}_set=no;;
4941esac
4942rm -f conftest.make
4943fi
4944if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4946$as_echo "yes" >&6; }
4947  SET_MAKE=
4948else
4949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950$as_echo "no" >&6; }
4951  SET_MAKE="MAKE=${MAKE-make}"
4952fi
4953            # Find a good install program.  We prefer a C program (faster),
4954# so one script is as good as another.  But avoid the broken or
4955# incompatible versions:
4956# SysV /etc/install, /usr/sbin/install
4957# SunOS /usr/etc/install
4958# IRIX /sbin/install
4959# AIX /bin/install
4960# AmigaOS /C/install, which installs bootblocks on floppy discs
4961# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4962# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4963# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4964# OS/2's system install, which has a completely different semantic
4965# ./install, which can be erroneously created by make from ./install.sh.
4966# Reject install programs that cannot install multiple files.
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4968$as_echo_n "checking for a BSD-compatible install... " >&6; }
4969if test -z "$INSTALL"; then
4970if ${ac_cv_path_install+:} false; then :
4971  $as_echo_n "(cached) " >&6
4972else
4973  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974for as_dir in $PATH
4975do
4976  IFS=$as_save_IFS
4977  test -z "$as_dir" && as_dir=.
4978    # Account for people who put trailing slashes in PATH elements.
4979case $as_dir/ in #((
4980  ./ | .// | /[cC]/* | \
4981  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4982  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4983  /usr/ucb/* ) ;;
4984  *)
4985    # OSF1 and SCO ODT 3.0 have their own names for install.
4986    # Don't use installbsd from OSF since it installs stuff as root
4987    # by default.
4988    for ac_prog in ginstall scoinst install; do
4989      for ac_exec_ext in '' $ac_executable_extensions; do
4990	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4991	  if test $ac_prog = install &&
4992	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4993	    # AIX install.  It has an incompatible calling convention.
4994	    :
4995	  elif test $ac_prog = install &&
4996	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4997	    # program-specific install script used by HP pwplus--don't use.
4998	    :
4999	  else
5000	    rm -rf conftest.one conftest.two conftest.dir
5001	    echo one > conftest.one
5002	    echo two > conftest.two
5003	    mkdir conftest.dir
5004	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5005	      test -s conftest.one && test -s conftest.two &&
5006	      test -s conftest.dir/conftest.one &&
5007	      test -s conftest.dir/conftest.two
5008	    then
5009	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5010	      break 3
5011	    fi
5012	  fi
5013	fi
5014      done
5015    done
5016    ;;
5017esac
5018
5019  done
5020IFS=$as_save_IFS
5021
5022rm -rf conftest.one conftest.two conftest.dir
5023
5024fi
5025  if test "${ac_cv_path_install+set}" = set; then
5026    INSTALL=$ac_cv_path_install
5027  else
5028    # As a last resort, use the slow shell script.  Don't cache a
5029    # value for INSTALL within a source directory, because that will
5030    # break other packages using the cache if that directory is
5031    # removed, or if the value is a relative name.
5032    INSTALL=$ac_install_sh
5033  fi
5034fi
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5036$as_echo "$INSTALL" >&6; }
5037
5038# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5039# It thinks the first close brace ends the variable substitution.
5040test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5041
5042test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5043
5044test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5045             for ac_prog in gawk mawk nawk awk
5046do
5047  # Extract the first word of "$ac_prog", so it can be a program name with args.
5048set dummy $ac_prog; ac_word=$2
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050$as_echo_n "checking for $ac_word... " >&6; }
5051if ${ac_cv_prog_AWK+:} false; then :
5052  $as_echo_n "(cached) " >&6
5053else
5054  if test -n "$AWK"; then
5055  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5056else
5057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058for as_dir in $PATH
5059do
5060  IFS=$as_save_IFS
5061  test -z "$as_dir" && as_dir=.
5062    for ac_exec_ext in '' $ac_executable_extensions; do
5063  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064    ac_cv_prog_AWK="$ac_prog"
5065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066    break 2
5067  fi
5068done
5069  done
5070IFS=$as_save_IFS
5071
5072fi
5073fi
5074AWK=$ac_cv_prog_AWK
5075if test -n "$AWK"; then
5076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5077$as_echo "$AWK" >&6; }
5078else
5079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080$as_echo "no" >&6; }
5081fi
5082
5083
5084  test -n "$AWK" && break
5085done
5086                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
5087$as_echo_n "checking whether ln works... " >&6; }
5088if ${ac_cv_prog_LN+:} false; then :
5089  $as_echo_n "(cached) " >&6
5090else
5091  rm -f conftestdata conftestlink
5092echo > conftestdata
5093if ln conftestdata conftestlink 2>/dev/null
5094then
5095  rm -f conftestdata conftestlink
5096  ac_cv_prog_LN="ln"
5097else
5098  rm -f conftestdata
5099  ac_cv_prog_LN="cp"
5100fi
5101fi
5102LN="$ac_cv_prog_LN"
5103if test "$ac_cv_prog_LN" = "ln"; then
5104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5105$as_echo "yes" >&6; }
5106else
5107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108$as_echo "no" >&6; }
5109fi
5110                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5111$as_echo_n "checking whether ln -s works... " >&6; }
5112LN_S=$as_ln_s
5113if test "$LN_S" = "ln -s"; then
5114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5115$as_echo "yes" >&6; }
5116else
5117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5118$as_echo "no, using $LN_S" >&6; }
5119fi
5120                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5121$as_echo_n "checking for egrep... " >&6; }
5122if ${ac_cv_path_EGREP+:} false; then :
5123  $as_echo_n "(cached) " >&6
5124else
5125  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5126   then ac_cv_path_EGREP="$GREP -E"
5127   else
5128     if test -z "$EGREP"; then
5129  ac_path_EGREP_found=false
5130  # Loop through the user's path and test for each of PROGNAME-LIST
5131  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5133do
5134  IFS=$as_save_IFS
5135  test -z "$as_dir" && as_dir=.
5136    for ac_prog in egrep; do
5137    for ac_exec_ext in '' $ac_executable_extensions; do
5138      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5139      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5140# Check for GNU ac_path_EGREP and select it if it is found.
5141  # Check for GNU $ac_path_EGREP
5142case `"$ac_path_EGREP" --version 2>&1` in
5143*GNU*)
5144  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5145*)
5146  ac_count=0
5147  $as_echo_n 0123456789 >"conftest.in"
5148  while :
5149  do
5150    cat "conftest.in" "conftest.in" >"conftest.tmp"
5151    mv "conftest.tmp" "conftest.in"
5152    cp "conftest.in" "conftest.nl"
5153    $as_echo 'EGREP' >> "conftest.nl"
5154    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5155    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5156    as_fn_arith $ac_count + 1 && ac_count=$as_val
5157    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5158      # Best one so far, save it but keep looking for a better one
5159      ac_cv_path_EGREP="$ac_path_EGREP"
5160      ac_path_EGREP_max=$ac_count
5161    fi
5162    # 10*(2^10) chars as input seems more than enough
5163    test $ac_count -gt 10 && break
5164  done
5165  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5166esac
5167
5168      $ac_path_EGREP_found && break 3
5169    done
5170  done
5171  done
5172IFS=$as_save_IFS
5173  if test -z "$ac_cv_path_EGREP"; then
5174    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5175  fi
5176else
5177  ac_cv_path_EGREP=$EGREP
5178fi
5179
5180   fi
5181fi
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5183$as_echo "$ac_cv_path_EGREP" >&6; }
5184 EGREP="$ac_cv_path_EGREP"
5185
5186               for ac_prog in yodl
5187do
5188  # Extract the first word of "$ac_prog", so it can be a program name with args.
5189set dummy $ac_prog; ac_word=$2
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191$as_echo_n "checking for $ac_word... " >&6; }
5192if ${ac_cv_prog_YODL+:} false; then :
5193  $as_echo_n "(cached) " >&6
5194else
5195  if test -n "$YODL"; then
5196  ac_cv_prog_YODL="$YODL" # Let the user override the test.
5197else
5198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201  IFS=$as_save_IFS
5202  test -z "$as_dir" && as_dir=.
5203    for ac_exec_ext in '' $ac_executable_extensions; do
5204  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205    ac_cv_prog_YODL="$ac_prog"
5206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207    break 2
5208  fi
5209done
5210  done
5211IFS=$as_save_IFS
5212
5213fi
5214fi
5215YODL=$ac_cv_prog_YODL
5216if test -n "$YODL"; then
5217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YODL" >&5
5218$as_echo "$YODL" >&6; }
5219else
5220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221$as_echo "no" >&6; }
5222fi
5223
5224
5225  test -n "$YODL" && break
5226done
5227test -n "$YODL" || YODL=": yodl"
5228
5229
5230YODL_OPTIONS=''
5231if test "x$ac_cv_prog_YODL" = xyodl; then
5232    case `yodl --version` in
5233      *"version 2."*) YODL_OPTIONS='-k' ;;
5234      *"version 3."*) YODL_OPTIONS='-k -L' ;;
5235    esac
5236fi
5237
5238
5239for ac_prog in pdfetex
5240do
5241  # Extract the first word of "$ac_prog", so it can be a program name with args.
5242set dummy $ac_prog; ac_word=$2
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244$as_echo_n "checking for $ac_word... " >&6; }
5245if ${ac_cv_prog_PDFETEX+:} false; then :
5246  $as_echo_n "(cached) " >&6
5247else
5248  if test -n "$PDFETEX"; then
5249  ac_cv_prog_PDFETEX="$PDFETEX" # Let the user override the test.
5250else
5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254  IFS=$as_save_IFS
5255  test -z "$as_dir" && as_dir=.
5256    for ac_exec_ext in '' $ac_executable_extensions; do
5257  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258    ac_cv_prog_PDFETEX="$ac_prog"
5259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260    break 2
5261  fi
5262done
5263  done
5264IFS=$as_save_IFS
5265
5266fi
5267fi
5268PDFETEX=$ac_cv_prog_PDFETEX
5269if test -n "$PDFETEX"; then
5270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFETEX" >&5
5271$as_echo "$PDFETEX" >&6; }
5272else
5273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274$as_echo "no" >&6; }
5275fi
5276
5277
5278  test -n "$PDFETEX" && break
5279done
5280test -n "$PDFETEX" || PDFETEX=": pdfetex"
5281
5282for ac_prog in texi2pdf
5283do
5284  # Extract the first word of "$ac_prog", so it can be a program name with args.
5285set dummy $ac_prog; ac_word=$2
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287$as_echo_n "checking for $ac_word... " >&6; }
5288if ${ac_cv_prog_TEXI2PDF+:} false; then :
5289  $as_echo_n "(cached) " >&6
5290else
5291  if test -n "$TEXI2PDF"; then
5292  ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
5293else
5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH
5296do
5297  IFS=$as_save_IFS
5298  test -z "$as_dir" && as_dir=.
5299    for ac_exec_ext in '' $ac_executable_extensions; do
5300  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301    ac_cv_prog_TEXI2PDF="$ac_prog"
5302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303    break 2
5304  fi
5305done
5306  done
5307IFS=$as_save_IFS
5308
5309fi
5310fi
5311TEXI2PDF=$ac_cv_prog_TEXI2PDF
5312if test -n "$TEXI2PDF"; then
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5
5314$as_echo "$TEXI2PDF" >&6; }
5315else
5316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317$as_echo "no" >&6; }
5318fi
5319
5320
5321  test -n "$TEXI2PDF" && break
5322done
5323
5324for ac_prog in texi2html
5325do
5326  # Extract the first word of "$ac_prog", so it can be a program name with args.
5327set dummy $ac_prog; ac_word=$2
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329$as_echo_n "checking for $ac_word... " >&6; }
5330if ${ac_cv_prog_TEXI2HTML+:} false; then :
5331  $as_echo_n "(cached) " >&6
5332else
5333  if test -n "$TEXI2HTML"; then
5334  ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
5335else
5336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337for as_dir in $PATH
5338do
5339  IFS=$as_save_IFS
5340  test -z "$as_dir" && as_dir=.
5341    for ac_exec_ext in '' $ac_executable_extensions; do
5342  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343    ac_cv_prog_TEXI2HTML="$ac_prog"
5344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345    break 2
5346  fi
5347done
5348  done
5349IFS=$as_save_IFS
5350
5351fi
5352fi
5353TEXI2HTML=$ac_cv_prog_TEXI2HTML
5354if test -n "$TEXI2HTML"; then
5355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2HTML" >&5
5356$as_echo "$TEXI2HTML" >&6; }
5357else
5358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359$as_echo "no" >&6; }
5360fi
5361
5362
5363  test -n "$TEXI2HTML" && break
5364done
5365
5366for ac_prog in ansi2knr
5367do
5368  # Extract the first word of "$ac_prog", so it can be a program name with args.
5369set dummy $ac_prog; ac_word=$2
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371$as_echo_n "checking for $ac_word... " >&6; }
5372if ${ac_cv_prog_ANSI2KNR+:} false; then :
5373  $as_echo_n "(cached) " >&6
5374else
5375  if test -n "$ANSI2KNR"; then
5376  ac_cv_prog_ANSI2KNR="$ANSI2KNR" # Let the user override the test.
5377else
5378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379for as_dir in $PATH
5380do
5381  IFS=$as_save_IFS
5382  test -z "$as_dir" && as_dir=.
5383    for ac_exec_ext in '' $ac_executable_extensions; do
5384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385    ac_cv_prog_ANSI2KNR="$ac_prog"
5386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387    break 2
5388  fi
5389done
5390  done
5391IFS=$as_save_IFS
5392
5393fi
5394fi
5395ANSI2KNR=$ac_cv_prog_ANSI2KNR
5396if test -n "$ANSI2KNR"; then
5397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANSI2KNR" >&5
5398$as_echo "$ANSI2KNR" >&6; }
5399else
5400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401$as_echo "no" >&6; }
5402fi
5403
5404
5405  test -n "$ANSI2KNR" && break
5406done
5407test -n "$ANSI2KNR" || ANSI2KNR=": ansi2knr"
5408
5409
5410if test x"$ansi2knr" = xyes && test x"$ANSI2KNR" = x": ansi2knr"; then
5411    echo "----------"
5412    echo "configure fatal error:"
5413    echo "ansi2knr was specified (--enable-ansi2knr) but the program could not be found."
5414    echo "Either remove the configure option if it is not required or build the ansi2knr"
5415    echo "program before reconfiguring Zsh.  The source code for ansi2knr is also"
5416    echo "available in the GPL directory on Zsh distribution sites."
5417    exit 1
5418fi
5419
5420ac_header_dirent=no
5421for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5422  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5424$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5425if eval \${$as_ac_Header+:} false; then :
5426  $as_echo_n "(cached) " >&6
5427else
5428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429/* end confdefs.h.  */
5430#include <sys/types.h>
5431#include <$ac_hdr>
5432
5433int
5434main ()
5435{
5436if ((DIR *) 0)
5437return 0;
5438  ;
5439  return 0;
5440}
5441_ACEOF
5442if ac_fn_c_try_compile "$LINENO"; then :
5443  eval "$as_ac_Header=yes"
5444else
5445  eval "$as_ac_Header=no"
5446fi
5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448fi
5449eval ac_res=\$$as_ac_Header
5450	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5451$as_echo "$ac_res" >&6; }
5452if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5453  cat >>confdefs.h <<_ACEOF
5454#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5455_ACEOF
5456
5457ac_header_dirent=$ac_hdr; break
5458fi
5459
5460done
5461# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5462if test $ac_header_dirent = dirent.h; then
5463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5464$as_echo_n "checking for library containing opendir... " >&6; }
5465if ${ac_cv_search_opendir+:} false; then :
5466  $as_echo_n "(cached) " >&6
5467else
5468  ac_func_search_save_LIBS=$LIBS
5469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h.  */
5471
5472/* Override any GCC internal prototype to avoid an error.
5473   Use char because int might match the return type of a GCC
5474   builtin and then its argument prototype would still apply.  */
5475#ifdef __cplusplus
5476extern "C"
5477#endif
5478char opendir ();
5479int
5480main ()
5481{
5482return opendir ();
5483  ;
5484  return 0;
5485}
5486_ACEOF
5487for ac_lib in '' dir; do
5488  if test -z "$ac_lib"; then
5489    ac_res="none required"
5490  else
5491    ac_res=-l$ac_lib
5492    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5493  fi
5494  if ac_fn_c_try_link "$LINENO"; then :
5495  ac_cv_search_opendir=$ac_res
5496fi
5497rm -f core conftest.err conftest.$ac_objext \
5498    conftest$ac_exeext
5499  if ${ac_cv_search_opendir+:} false; then :
5500  break
5501fi
5502done
5503if ${ac_cv_search_opendir+:} false; then :
5504
5505else
5506  ac_cv_search_opendir=no
5507fi
5508rm conftest.$ac_ext
5509LIBS=$ac_func_search_save_LIBS
5510fi
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5512$as_echo "$ac_cv_search_opendir" >&6; }
5513ac_res=$ac_cv_search_opendir
5514if test "$ac_res" != no; then :
5515  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5516
5517fi
5518
5519else
5520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5521$as_echo_n "checking for library containing opendir... " >&6; }
5522if ${ac_cv_search_opendir+:} false; then :
5523  $as_echo_n "(cached) " >&6
5524else
5525  ac_func_search_save_LIBS=$LIBS
5526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527/* end confdefs.h.  */
5528
5529/* Override any GCC internal prototype to avoid an error.
5530   Use char because int might match the return type of a GCC
5531   builtin and then its argument prototype would still apply.  */
5532#ifdef __cplusplus
5533extern "C"
5534#endif
5535char opendir ();
5536int
5537main ()
5538{
5539return opendir ();
5540  ;
5541  return 0;
5542}
5543_ACEOF
5544for ac_lib in '' x; do
5545  if test -z "$ac_lib"; then
5546    ac_res="none required"
5547  else
5548    ac_res=-l$ac_lib
5549    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5550  fi
5551  if ac_fn_c_try_link "$LINENO"; then :
5552  ac_cv_search_opendir=$ac_res
5553fi
5554rm -f core conftest.err conftest.$ac_objext \
5555    conftest$ac_exeext
5556  if ${ac_cv_search_opendir+:} false; then :
5557  break
5558fi
5559done
5560if ${ac_cv_search_opendir+:} false; then :
5561
5562else
5563  ac_cv_search_opendir=no
5564fi
5565rm conftest.$ac_ext
5566LIBS=$ac_func_search_save_LIBS
5567fi
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5569$as_echo "$ac_cv_search_opendir" >&6; }
5570ac_res=$ac_cv_search_opendir
5571if test "$ac_res" != no; then :
5572  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5573
5574fi
5575
5576fi
5577
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5579$as_echo_n "checking for ANSI C header files... " >&6; }
5580if ${ac_cv_header_stdc+:} false; then :
5581  $as_echo_n "(cached) " >&6
5582else
5583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584/* end confdefs.h.  */
5585#include <stdlib.h>
5586#include <stdarg.h>
5587#include <string.h>
5588#include <float.h>
5589
5590int
5591main ()
5592{
5593
5594  ;
5595  return 0;
5596}
5597_ACEOF
5598if ac_fn_c_try_compile "$LINENO"; then :
5599  ac_cv_header_stdc=yes
5600else
5601  ac_cv_header_stdc=no
5602fi
5603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5604
5605if test $ac_cv_header_stdc = yes; then
5606  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608/* end confdefs.h.  */
5609#include <string.h>
5610
5611_ACEOF
5612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5613  $EGREP "memchr" >/dev/null 2>&1; then :
5614
5615else
5616  ac_cv_header_stdc=no
5617fi
5618rm -f conftest*
5619
5620fi
5621
5622if test $ac_cv_header_stdc = yes; then
5623  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h.  */
5626#include <stdlib.h>
5627
5628_ACEOF
5629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630  $EGREP "free" >/dev/null 2>&1; then :
5631
5632else
5633  ac_cv_header_stdc=no
5634fi
5635rm -f conftest*
5636
5637fi
5638
5639if test $ac_cv_header_stdc = yes; then
5640  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5641  if test "$cross_compiling" = yes; then :
5642  :
5643else
5644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645/* end confdefs.h.  */
5646#include <ctype.h>
5647#include <stdlib.h>
5648#if ((' ' & 0x0FF) == 0x020)
5649# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5650# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5651#else
5652# define ISLOWER(c) \
5653		   (('a' <= (c) && (c) <= 'i') \
5654		     || ('j' <= (c) && (c) <= 'r') \
5655		     || ('s' <= (c) && (c) <= 'z'))
5656# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5657#endif
5658
5659#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5660int
5661main ()
5662{
5663  int i;
5664  for (i = 0; i < 256; i++)
5665    if (XOR (islower (i), ISLOWER (i))
5666	|| toupper (i) != TOUPPER (i))
5667      return 2;
5668  return 0;
5669}
5670_ACEOF
5671if ac_fn_c_try_run "$LINENO"; then :
5672
5673else
5674  ac_cv_header_stdc=no
5675fi
5676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5677  conftest.$ac_objext conftest.beam conftest.$ac_ext
5678fi
5679
5680fi
5681fi
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5683$as_echo "$ac_cv_header_stdc" >&6; }
5684if test $ac_cv_header_stdc = yes; then
5685
5686$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5687
5688fi
5689
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5691$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5692if ${ac_cv_header_time+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696/* end confdefs.h.  */
5697#include <sys/types.h>
5698#include <sys/time.h>
5699#include <time.h>
5700
5701int
5702main ()
5703{
5704if ((struct tm *) 0)
5705return 0;
5706  ;
5707  return 0;
5708}
5709_ACEOF
5710if ac_fn_c_try_compile "$LINENO"; then :
5711  ac_cv_header_time=yes
5712else
5713  ac_cv_header_time=no
5714fi
5715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716fi
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5718$as_echo "$ac_cv_header_time" >&6; }
5719if test $ac_cv_header_time = yes; then
5720
5721$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5722
5723fi
5724
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5726$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5727if ${ac_cv_header_stat_broken+:} false; then :
5728  $as_echo_n "(cached) " >&6
5729else
5730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731/* end confdefs.h.  */
5732#include <sys/types.h>
5733#include <sys/stat.h>
5734
5735#if defined S_ISBLK && defined S_IFDIR
5736extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5737#endif
5738
5739#if defined S_ISBLK && defined S_IFCHR
5740extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5741#endif
5742
5743#if defined S_ISLNK && defined S_IFREG
5744extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5745#endif
5746
5747#if defined S_ISSOCK && defined S_IFREG
5748extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5749#endif
5750
5751_ACEOF
5752if ac_fn_c_try_compile "$LINENO"; then :
5753  ac_cv_header_stat_broken=no
5754else
5755  ac_cv_header_stat_broken=yes
5756fi
5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758fi
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5760$as_echo "$ac_cv_header_stat_broken" >&6; }
5761if test $ac_cv_header_stat_broken = yes; then
5762
5763$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5764
5765fi
5766
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5768$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5769if ${ac_cv_header_sys_wait_h+:} false; then :
5770  $as_echo_n "(cached) " >&6
5771else
5772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h.  */
5774#include <sys/types.h>
5775#include <sys/wait.h>
5776#ifndef WEXITSTATUS
5777# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5778#endif
5779#ifndef WIFEXITED
5780# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5781#endif
5782
5783int
5784main ()
5785{
5786  int s;
5787  wait (&s);
5788  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5789  ;
5790  return 0;
5791}
5792_ACEOF
5793if ac_fn_c_try_compile "$LINENO"; then :
5794  ac_cv_header_sys_wait_h=yes
5795else
5796  ac_cv_header_sys_wait_h=no
5797fi
5798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799fi
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5801$as_echo "$ac_cv_header_sys_wait_h" >&6; }
5802if test $ac_cv_header_sys_wait_h = yes; then
5803
5804$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5805
5806fi
5807
5808
5809oldcflags="$CFLAGS"
5810if test x$enable_pcre = xyes; then
5811# Extract the first word of "pcre-config", so it can be a program name with args.
5812set dummy pcre-config; ac_word=$2
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814$as_echo_n "checking for $ac_word... " >&6; }
5815if ${ac_cv_prog_PCRECONF+:} false; then :
5816  $as_echo_n "(cached) " >&6
5817else
5818  if test -n "$PCRECONF"; then
5819  ac_cv_prog_PCRECONF="$PCRECONF" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824  IFS=$as_save_IFS
5825  test -z "$as_dir" && as_dir=.
5826    for ac_exec_ext in '' $ac_executable_extensions; do
5827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828    ac_cv_prog_PCRECONF="pcre-config"
5829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830    break 2
5831  fi
5832done
5833  done
5834IFS=$as_save_IFS
5835
5836fi
5837fi
5838PCRECONF=$ac_cv_prog_PCRECONF
5839if test -n "$PCRECONF"; then
5840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRECONF" >&5
5841$as_echo "$PCRECONF" >&6; }
5842else
5843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844$as_echo "no" >&6; }
5845fi
5846
5847
5848if test "x$ac_cv_prog_PCRECONF" = xpcre-config; then
5849  CPPFLAGS="$CPPFLAGS `pcre-config --cflags`"
5850fi
5851fi
5852
5853for ac_header in sys/time.h sys/times.h sys/select.h termcap.h termio.h \
5854		 termios.h sys/param.h sys/filio.h string.h memory.h \
5855		 limits.h fcntl.h libc.h sys/utsname.h sys/resource.h \
5856		 locale.h errno.h stdio.h stdarg.h varargs.h stdlib.h \
5857		 unistd.h sys/capability.h \
5858		 utmp.h utmpx.h sys/types.h pwd.h grp.h poll.h sys/mman.h \
5859		 netinet/in_systm.h pcre.h langinfo.h wchar.h stddef.h \
5860		 sys/stropts.h iconv.h ncurses.h ncursesw/ncurses.h \
5861		 ncurses/ncurses.h
5862do :
5863  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5864ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5865if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5866  cat >>confdefs.h <<_ACEOF
5867#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5868_ACEOF
5869
5870fi
5871
5872done
5873
5874if test x$dynamic = xyes; then
5875  for ac_header in dlfcn.h
5876do :
5877  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5878if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5879  cat >>confdefs.h <<_ACEOF
5880#define HAVE_DLFCN_H 1
5881_ACEOF
5882
5883fi
5884
5885done
5886
5887  for ac_header in dl.h
5888do :
5889  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
5890if test "x$ac_cv_header_dl_h" = xyes; then :
5891  cat >>confdefs.h <<_ACEOF
5892#define HAVE_DL_H 1
5893_ACEOF
5894
5895fi
5896
5897done
5898
5899fi
5900
5901
5902if test x$ac_cv_header_sys_time_h = xyes && test x$ac_cv_header_sys_select_h = xyes; then
5903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicts in sys/time.h and sys/select.h" >&5
5904$as_echo_n "checking for conflicts in sys/time.h and sys/select.h... " >&6; }
5905if ${zsh_cv_header_time_h_select_h_conflicts+:} false; then :
5906  $as_echo_n "(cached) " >&6
5907else
5908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909/* end confdefs.h.  */
5910#include <sys/time.h>
5911#include <sys/select.h>
5912int
5913main ()
5914{
5915int i;
5916  ;
5917  return 0;
5918}
5919_ACEOF
5920if ac_fn_c_try_compile "$LINENO"; then :
5921  zsh_cv_header_time_h_select_h_conflicts=no
5922else
5923  zsh_cv_header_time_h_select_h_conflicts=yes
5924fi
5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926fi
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_time_h_select_h_conflicts" >&5
5928$as_echo "$zsh_cv_header_time_h_select_h_conflicts" >&6; }
5929  if test x$zsh_cv_header_time_h_select_h_conflicts = xyes; then
5930    $as_echo "#define TIME_H_SELECT_H_CONFLICTS 1" >>confdefs.h
5931
5932  fi
5933fi
5934
5935
5936if test x$ac_cv_header_termios_h = xyes; then
5937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking TIOCGWINSZ in termios.h" >&5
5938$as_echo_n "checking TIOCGWINSZ in termios.h... " >&6; }
5939if ${zsh_cv_header_termios_h_tiocgwinsz+:} false; then :
5940  $as_echo_n "(cached) " >&6
5941else
5942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943/* end confdefs.h.  */
5944
5945#ifdef HAVE_SYS_TYPES_H
5946# include <sys/types.h>
5947#endif
5948#include <termios.h>
5949int
5950main ()
5951{
5952int x = TIOCGWINSZ;
5953  ;
5954  return 0;
5955}
5956_ACEOF
5957if ac_fn_c_try_link "$LINENO"; then :
5958  zsh_cv_header_termios_h_tiocgwinsz=yes
5959else
5960  zsh_cv_header_termios_h_tiocgwinsz=no
5961fi
5962rm -f core conftest.err conftest.$ac_objext \
5963    conftest$ac_exeext conftest.$ac_ext
5964fi
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_termios_h_tiocgwinsz" >&5
5966$as_echo "$zsh_cv_header_termios_h_tiocgwinsz" >&6; }
5967else
5968  zsh_cv_header_termios_h_tiocgwinsz=no
5969fi
5970if test x$zsh_cv_header_termios_h_tiocgwinsz = xno; then
5971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking TIOCGWINSZ in sys/ioctl.h" >&5
5972$as_echo_n "checking TIOCGWINSZ in sys/ioctl.h... " >&6; }
5973if ${zsh_cv_header_sys_ioctl_h_tiocgwinsz+:} false; then :
5974  $as_echo_n "(cached) " >&6
5975else
5976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977/* end confdefs.h.  */
5978
5979#ifdef HAVE_SYS_TYPES_H
5980# include <sys/types.h>
5981#endif
5982#include <sys/ioctl.h>
5983int
5984main ()
5985{
5986int x = TIOCGWINSZ;
5987  ;
5988  return 0;
5989}
5990_ACEOF
5991if ac_fn_c_try_link "$LINENO"; then :
5992  zsh_cv_header_sys_ioctl_h_tiocgwinsz=yes
5993else
5994  zsh_cv_header_sys_ioctl_h_tiocgwinsz=no
5995fi
5996rm -f core conftest.err conftest.$ac_objext \
5997    conftest$ac_exeext conftest.$ac_ext
5998fi
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_sys_ioctl_h_tiocgwinsz" >&5
6000$as_echo "$zsh_cv_header_sys_ioctl_h_tiocgwinsz" >&6; }
6001  if test x$zsh_cv_header_sys_ioctl_h_tiocgwinsz = xyes; then
6002    $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
6003
6004  fi
6005fi
6006
6007
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for streams headers including struct winsize" >&5
6009$as_echo_n "checking for streams headers including struct winsize... " >&6; }
6010if ${ac_cv_winsize_in_ptem+:} false; then :
6011  $as_echo_n "(cached) " >&6
6012else
6013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014/* end confdefs.h.  */
6015#include <sys/stream.h>
6016#include <sys/ptem.h>
6017int
6018main ()
6019{
6020struct winsize wsz
6021  ;
6022  return 0;
6023}
6024_ACEOF
6025if ac_fn_c_try_compile "$LINENO"; then :
6026  ac_cv_winsize_in_ptem=yes
6027else
6028  ac_cv_winsize_in_ptem=no
6029fi
6030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031fi
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_winsize_in_ptem" >&5
6033$as_echo "$ac_cv_winsize_in_ptem" >&6; }
6034if test x$ac_cv_winsize_in_ptem = xyes; then
6035  $as_echo "#define WINSIZE_IN_PTEM 1" >>confdefs.h
6036
6037fi
6038
6039
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lc" >&5
6041$as_echo_n "checking for printf in -lc... " >&6; }
6042if ${ac_cv_lib_c_printf+:} false; then :
6043  $as_echo_n "(cached) " >&6
6044else
6045  ac_check_lib_save_LIBS=$LIBS
6046LIBS="-lc  $LIBS"
6047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048/* end confdefs.h.  */
6049
6050/* Override any GCC internal prototype to avoid an error.
6051   Use char because int might match the return type of a GCC
6052   builtin and then its argument prototype would still apply.  */
6053#ifdef __cplusplus
6054extern "C"
6055#endif
6056char printf ();
6057int
6058main ()
6059{
6060return printf ();
6061  ;
6062  return 0;
6063}
6064_ACEOF
6065if ac_fn_c_try_link "$LINENO"; then :
6066  ac_cv_lib_c_printf=yes
6067else
6068  ac_cv_lib_c_printf=no
6069fi
6070rm -f core conftest.err conftest.$ac_objext \
6071    conftest$ac_exeext conftest.$ac_ext
6072LIBS=$ac_check_lib_save_LIBS
6073fi
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_printf" >&5
6075$as_echo "$ac_cv_lib_c_printf" >&6; }
6076if test "x$ac_cv_lib_c_printf" = xyes; then :
6077  LIBS="$LIBS -lc"
6078fi
6079
6080
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6082$as_echo_n "checking for pow in -lm... " >&6; }
6083if ${ac_cv_lib_m_pow+:} false; then :
6084  $as_echo_n "(cached) " >&6
6085else
6086  ac_check_lib_save_LIBS=$LIBS
6087LIBS="-lm  $LIBS"
6088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089/* end confdefs.h.  */
6090
6091/* Override any GCC internal prototype to avoid an error.
6092   Use char because int might match the return type of a GCC
6093   builtin and then its argument prototype would still apply.  */
6094#ifdef __cplusplus
6095extern "C"
6096#endif
6097char pow ();
6098int
6099main ()
6100{
6101return pow ();
6102  ;
6103  return 0;
6104}
6105_ACEOF
6106if ac_fn_c_try_link "$LINENO"; then :
6107  ac_cv_lib_m_pow=yes
6108else
6109  ac_cv_lib_m_pow=no
6110fi
6111rm -f core conftest.err conftest.$ac_objext \
6112    conftest$ac_exeext conftest.$ac_ext
6113LIBS=$ac_check_lib_save_LIBS
6114fi
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6116$as_echo "$ac_cv_lib_m_pow" >&6; }
6117if test "x$ac_cv_lib_m_pow" = xyes; then :
6118  cat >>confdefs.h <<_ACEOF
6119#define HAVE_LIBM 1
6120_ACEOF
6121
6122  LIBS="-lm $LIBS"
6123
6124fi
6125
6126
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
6128$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
6129if ${ac_cv_lib_rt_clock_gettime+:} false; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132  ac_check_lib_save_LIBS=$LIBS
6133LIBS="-lrt  $LIBS"
6134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135/* end confdefs.h.  */
6136
6137/* Override any GCC internal prototype to avoid an error.
6138   Use char because int might match the return type of a GCC
6139   builtin and then its argument prototype would still apply.  */
6140#ifdef __cplusplus
6141extern "C"
6142#endif
6143char clock_gettime ();
6144int
6145main ()
6146{
6147return clock_gettime ();
6148  ;
6149  return 0;
6150}
6151_ACEOF
6152if ac_fn_c_try_link "$LINENO"; then :
6153  ac_cv_lib_rt_clock_gettime=yes
6154else
6155  ac_cv_lib_rt_clock_gettime=no
6156fi
6157rm -f core conftest.err conftest.$ac_objext \
6158    conftest$ac_exeext conftest.$ac_ext
6159LIBS=$ac_check_lib_save_LIBS
6160fi
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
6162$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
6163if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
6164  cat >>confdefs.h <<_ACEOF
6165#define HAVE_LIBRT 1
6166_ACEOF
6167
6168  LIBS="-lrt $LIBS"
6169
6170fi
6171
6172
6173if test x$ac_cv_header_ncurses_h = xyes || test x$ac_cv_header_ncurses_ncurses_h = xyes || test x$ac_cv_header_ncursesw_ncurses_h = xyes; then
6174  ncursesw_test=ncursesw
6175  ncurses_test=ncurses
6176else
6177  ncursesw_test=
6178  ncurses_test=
6179fi
6180
6181
6182# Check whether --with-term-lib was given.
6183if test "${with_term_lib+set}" = set; then :
6184  withval=$with_term_lib; if test "x$withval" != xno && test "x$withval" != x ; then
6185  termcap_curses_order="$withval"
6186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tigetstr" >&5
6187$as_echo_n "checking for library containing tigetstr... " >&6; }
6188if ${ac_cv_search_tigetstr+:} false; then :
6189  $as_echo_n "(cached) " >&6
6190else
6191  ac_func_search_save_LIBS=$LIBS
6192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193/* end confdefs.h.  */
6194
6195/* Override any GCC internal prototype to avoid an error.
6196   Use char because int might match the return type of a GCC
6197   builtin and then its argument prototype would still apply.  */
6198#ifdef __cplusplus
6199extern "C"
6200#endif
6201char tigetstr ();
6202int
6203main ()
6204{
6205return tigetstr ();
6206  ;
6207  return 0;
6208}
6209_ACEOF
6210for ac_lib in '' $termcap_curses_order; do
6211  if test -z "$ac_lib"; then
6212    ac_res="none required"
6213  else
6214    ac_res=-l$ac_lib
6215    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6216  fi
6217  if ac_fn_c_try_link "$LINENO"; then :
6218  ac_cv_search_tigetstr=$ac_res
6219fi
6220rm -f core conftest.err conftest.$ac_objext \
6221    conftest$ac_exeext
6222  if ${ac_cv_search_tigetstr+:} false; then :
6223  break
6224fi
6225done
6226if ${ac_cv_search_tigetstr+:} false; then :
6227
6228else
6229  ac_cv_search_tigetstr=no
6230fi
6231rm conftest.$ac_ext
6232LIBS=$ac_func_search_save_LIBS
6233fi
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tigetstr" >&5
6235$as_echo "$ac_cv_search_tigetstr" >&6; }
6236ac_res=$ac_cv_search_tigetstr
6237if test "$ac_res" != no; then :
6238  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6239
6240fi
6241
6242else
6243  termcap_curses_order="$ncursesw_test tinfo termcap $ncurses_test curses"
6244fi
6245else
6246  case "$host_os" in
6247  solaris*)
6248   termcap_curses_order="$ncursesw_test $ncurses_test curses termcap" ;;
6249  hpux10.*|hpux11.*)
6250   DL_EXT="${DL_EXT=sl}"
6251   termcap_curses_order="Hcurses $ncursesw_test $ncurses_test curses termcap" ;;
6252  *)
6253   termcap_curses_order="$ncursesw_test tinfo termcap $ncurses_test curses" ;;
6254esac
6255fi
6256
6257
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _XOPEN_SOURCE_EXTENDED should not be defined" >&5
6259$as_echo_n "checking if _XOPEN_SOURCE_EXTENDED should not be defined... " >&6; }
6260if ${zsh_cv_no_xopen+:} false; then :
6261  $as_echo_n "(cached) " >&6
6262else
6263  case "$host_os" in
6264  *openbsd*|*freebsd5*|*freebsd6.[012]*|*aix*)
6265  zsh_cv_no_xopen=yes
6266  ;;
6267  *)
6268  zsh_cv_no_xopen=no
6269  ;;
6270esac
6271fi
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_no_xopen" >&5
6273$as_echo "$zsh_cv_no_xopen" >&6; }
6274if test x$zsh_cv_no_xopen = xyes; then
6275  $as_echo "#define ZSH_NO_XOPEN 1" >>confdefs.h
6276
6277fi
6278
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tigetflag" >&5
6280$as_echo_n "checking for library containing tigetflag... " >&6; }
6281if ${ac_cv_search_tigetflag+:} false; then :
6282  $as_echo_n "(cached) " >&6
6283else
6284  ac_func_search_save_LIBS=$LIBS
6285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286/* end confdefs.h.  */
6287
6288/* Override any GCC internal prototype to avoid an error.
6289   Use char because int might match the return type of a GCC
6290   builtin and then its argument prototype would still apply.  */
6291#ifdef __cplusplus
6292extern "C"
6293#endif
6294char tigetflag ();
6295int
6296main ()
6297{
6298return tigetflag ();
6299  ;
6300  return 0;
6301}
6302_ACEOF
6303for ac_lib in '' $termcap_curses_order; do
6304  if test -z "$ac_lib"; then
6305    ac_res="none required"
6306  else
6307    ac_res=-l$ac_lib
6308    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6309  fi
6310  if ac_fn_c_try_link "$LINENO"; then :
6311  ac_cv_search_tigetflag=$ac_res
6312fi
6313rm -f core conftest.err conftest.$ac_objext \
6314    conftest$ac_exeext
6315  if ${ac_cv_search_tigetflag+:} false; then :
6316  break
6317fi
6318done
6319if ${ac_cv_search_tigetflag+:} false; then :
6320
6321else
6322  ac_cv_search_tigetflag=no
6323fi
6324rm conftest.$ac_ext
6325LIBS=$ac_func_search_save_LIBS
6326fi
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tigetflag" >&5
6328$as_echo "$ac_cv_search_tigetflag" >&6; }
6329ac_res=$ac_cv_search_tigetflag
6330if test "$ac_res" != no; then :
6331  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6332
6333fi
6334
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
6336$as_echo_n "checking for library containing tgetent... " >&6; }
6337if ${ac_cv_search_tgetent+:} false; then :
6338  $as_echo_n "(cached) " >&6
6339else
6340  ac_func_search_save_LIBS=$LIBS
6341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342/* end confdefs.h.  */
6343
6344/* Override any GCC internal prototype to avoid an error.
6345   Use char because int might match the return type of a GCC
6346   builtin and then its argument prototype would still apply.  */
6347#ifdef __cplusplus
6348extern "C"
6349#endif
6350char tgetent ();
6351int
6352main ()
6353{
6354return tgetent ();
6355  ;
6356  return 0;
6357}
6358_ACEOF
6359for ac_lib in '' $termcap_curses_order; do
6360  if test -z "$ac_lib"; then
6361    ac_res="none required"
6362  else
6363    ac_res=-l$ac_lib
6364    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6365  fi
6366  if ac_fn_c_try_link "$LINENO"; then :
6367  ac_cv_search_tgetent=$ac_res
6368fi
6369rm -f core conftest.err conftest.$ac_objext \
6370    conftest$ac_exeext
6371  if ${ac_cv_search_tgetent+:} false; then :
6372  break
6373fi
6374done
6375if ${ac_cv_search_tgetent+:} false; then :
6376
6377else
6378  ac_cv_search_tgetent=no
6379fi
6380rm conftest.$ac_ext
6381LIBS=$ac_func_search_save_LIBS
6382fi
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
6384$as_echo "$ac_cv_search_tgetent" >&6; }
6385ac_res=$ac_cv_search_tgetent
6386if test "$ac_res" != no; then :
6387  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6388  true
6389else
6390  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6392as_fn_error 255 "\"No terminal handling library was found on your system.
6393This is probably a library called 'curses' or 'ncurses'.  You may
6394need to install a package called 'curses-devel' or 'ncurses-devel' on your
6395system.\"
6396See \`config.log' for more details" "$LINENO" 5; }
6397fi
6398
6399for ac_header in curses.h
6400do :
6401  ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
6402if test "x$ac_cv_header_curses_h" = xyes; then :
6403  cat >>confdefs.h <<_ACEOF
6404#define HAVE_CURSES_H 1
6405_ACEOF
6406
6407else
6408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris 8 curses.h mistake" >&5
6409$as_echo_n "checking for Solaris 8 curses.h mistake... " >&6; }
6410if ${ac_cv_header_curses_solaris+:} false; then :
6411  $as_echo_n "(cached) " >&6
6412else
6413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414/* end confdefs.h.  */
6415#include <curses.h>
6416int
6417main ()
6418{
6419
6420  ;
6421  return 0;
6422}
6423_ACEOF
6424if ac_fn_c_try_compile "$LINENO"; then :
6425  ac_cv_header_curses_h=yes
6426ac_cv_header_curses_solaris=yes
6427else
6428  ac_cv_header_curses_h=no
6429ac_cv_header_curses_solaris=no
6430fi
6431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432fi
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_curses_solaris" >&5
6434$as_echo "$ac_cv_header_curses_solaris" >&6; }
6435if test x$ac_cv_header_curses_solaris = xyes; then
6436$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h
6437
6438fi
6439fi
6440
6441done
6442
6443
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to ignore ncurses" >&5
6445$as_echo_n "checking if we need to ignore ncurses... " >&6; }
6446if ${zsh_cv_ignore_ncurses+:} false; then :
6447  $as_echo_n "(cached) " >&6
6448else
6449  case $LIBS in
6450  *-lncurses*)
6451  zsh_cv_ignore_ncurses=no
6452  ;;
6453  *)
6454  zsh_cv_ignore_ncurses=yes
6455  ;;
6456esac
6457fi
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_ignore_ncurses" >&5
6459$as_echo "$zsh_cv_ignore_ncurses" >&6; }
6460
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
6462$as_echo_n "checking for library containing getpwnam... " >&6; }
6463if ${ac_cv_search_getpwnam+:} false; then :
6464  $as_echo_n "(cached) " >&6
6465else
6466  ac_func_search_save_LIBS=$LIBS
6467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468/* end confdefs.h.  */
6469
6470/* Override any GCC internal prototype to avoid an error.
6471   Use char because int might match the return type of a GCC
6472   builtin and then its argument prototype would still apply.  */
6473#ifdef __cplusplus
6474extern "C"
6475#endif
6476char getpwnam ();
6477int
6478main ()
6479{
6480return getpwnam ();
6481  ;
6482  return 0;
6483}
6484_ACEOF
6485for ac_lib in '' nsl; do
6486  if test -z "$ac_lib"; then
6487    ac_res="none required"
6488  else
6489    ac_res=-l$ac_lib
6490    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6491  fi
6492  if ac_fn_c_try_link "$LINENO"; then :
6493  ac_cv_search_getpwnam=$ac_res
6494fi
6495rm -f core conftest.err conftest.$ac_objext \
6496    conftest$ac_exeext
6497  if ${ac_cv_search_getpwnam+:} false; then :
6498  break
6499fi
6500done
6501if ${ac_cv_search_getpwnam+:} false; then :
6502
6503else
6504  ac_cv_search_getpwnam=no
6505fi
6506rm conftest.$ac_ext
6507LIBS=$ac_func_search_save_LIBS
6508fi
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
6510$as_echo "$ac_cv_search_getpwnam" >&6; }
6511ac_res=$ac_cv_search_getpwnam
6512if test "$ac_res" != no; then :
6513  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6514
6515fi
6516
6517
6518if test `echo $host_os | sed 's/^\(unicos\).*/\1/'` = unicos; then
6519  LIBS="-lcraylm -lkrb -lnisdb -lnsl -lrpcsvc $LIBS"
6520fi
6521
6522if test "x$dynamic" = xyes; then
6523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6524$as_echo_n "checking for dlopen in -ldl... " >&6; }
6525if ${ac_cv_lib_dl_dlopen+:} false; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  ac_check_lib_save_LIBS=$LIBS
6529LIBS="-ldl  $LIBS"
6530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531/* end confdefs.h.  */
6532
6533/* Override any GCC internal prototype to avoid an error.
6534   Use char because int might match the return type of a GCC
6535   builtin and then its argument prototype would still apply.  */
6536#ifdef __cplusplus
6537extern "C"
6538#endif
6539char dlopen ();
6540int
6541main ()
6542{
6543return dlopen ();
6544  ;
6545  return 0;
6546}
6547_ACEOF
6548if ac_fn_c_try_link "$LINENO"; then :
6549  ac_cv_lib_dl_dlopen=yes
6550else
6551  ac_cv_lib_dl_dlopen=no
6552fi
6553rm -f core conftest.err conftest.$ac_objext \
6554    conftest$ac_exeext conftest.$ac_ext
6555LIBS=$ac_check_lib_save_LIBS
6556fi
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6558$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6559if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6560  cat >>confdefs.h <<_ACEOF
6561#define HAVE_LIBDL 1
6562_ACEOF
6563
6564  LIBS="-ldl $LIBS"
6565
6566fi
6567
6568fi
6569
6570if test x$enable_cap = xyes; then
6571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
6572$as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
6573if ${ac_cv_lib_cap_cap_get_proc+:} false; then :
6574  $as_echo_n "(cached) " >&6
6575else
6576  ac_check_lib_save_LIBS=$LIBS
6577LIBS="-lcap  $LIBS"
6578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579/* end confdefs.h.  */
6580
6581/* Override any GCC internal prototype to avoid an error.
6582   Use char because int might match the return type of a GCC
6583   builtin and then its argument prototype would still apply.  */
6584#ifdef __cplusplus
6585extern "C"
6586#endif
6587char cap_get_proc ();
6588int
6589main ()
6590{
6591return cap_get_proc ();
6592  ;
6593  return 0;
6594}
6595_ACEOF
6596if ac_fn_c_try_link "$LINENO"; then :
6597  ac_cv_lib_cap_cap_get_proc=yes
6598else
6599  ac_cv_lib_cap_cap_get_proc=no
6600fi
6601rm -f core conftest.err conftest.$ac_objext \
6602    conftest$ac_exeext conftest.$ac_ext
6603LIBS=$ac_check_lib_save_LIBS
6604fi
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_get_proc" >&5
6606$as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
6607if test "x$ac_cv_lib_cap_cap_get_proc" = xyes; then :
6608  cat >>confdefs.h <<_ACEOF
6609#define HAVE_LIBCAP 1
6610_ACEOF
6611
6612  LIBS="-lcap $LIBS"
6613
6614fi
6615
6616fi
6617
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
6619$as_echo_n "checking for socket in -lsocket... " >&6; }
6620if ${ac_cv_lib_socket_socket+:} false; then :
6621  $as_echo_n "(cached) " >&6
6622else
6623  ac_check_lib_save_LIBS=$LIBS
6624LIBS="-lsocket  $LIBS"
6625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626/* end confdefs.h.  */
6627
6628/* Override any GCC internal prototype to avoid an error.
6629   Use char because int might match the return type of a GCC
6630   builtin and then its argument prototype would still apply.  */
6631#ifdef __cplusplus
6632extern "C"
6633#endif
6634char socket ();
6635int
6636main ()
6637{
6638return socket ();
6639  ;
6640  return 0;
6641}
6642_ACEOF
6643if ac_fn_c_try_link "$LINENO"; then :
6644  ac_cv_lib_socket_socket=yes
6645else
6646  ac_cv_lib_socket_socket=no
6647fi
6648rm -f core conftest.err conftest.$ac_objext \
6649    conftest$ac_exeext conftest.$ac_ext
6650LIBS=$ac_check_lib_save_LIBS
6651fi
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
6653$as_echo "$ac_cv_lib_socket_socket" >&6; }
6654if test "x$ac_cv_lib_socket_socket" = xyes; then :
6655  cat >>confdefs.h <<_ACEOF
6656#define HAVE_LIBSOCKET 1
6657_ACEOF
6658
6659  LIBS="-lsocket $LIBS"
6660
6661fi
6662
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname2" >&5
6664$as_echo_n "checking for library containing gethostbyname2... " >&6; }
6665if ${ac_cv_search_gethostbyname2+:} false; then :
6666  $as_echo_n "(cached) " >&6
6667else
6668  ac_func_search_save_LIBS=$LIBS
6669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h.  */
6671
6672/* Override any GCC internal prototype to avoid an error.
6673   Use char because int might match the return type of a GCC
6674   builtin and then its argument prototype would still apply.  */
6675#ifdef __cplusplus
6676extern "C"
6677#endif
6678char gethostbyname2 ();
6679int
6680main ()
6681{
6682return gethostbyname2 ();
6683  ;
6684  return 0;
6685}
6686_ACEOF
6687for ac_lib in '' bind; do
6688  if test -z "$ac_lib"; then
6689    ac_res="none required"
6690  else
6691    ac_res=-l$ac_lib
6692    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6693  fi
6694  if ac_fn_c_try_link "$LINENO"; then :
6695  ac_cv_search_gethostbyname2=$ac_res
6696fi
6697rm -f core conftest.err conftest.$ac_objext \
6698    conftest$ac_exeext
6699  if ${ac_cv_search_gethostbyname2+:} false; then :
6700  break
6701fi
6702done
6703if ${ac_cv_search_gethostbyname2+:} false; then :
6704
6705else
6706  ac_cv_search_gethostbyname2=no
6707fi
6708rm conftest.$ac_ext
6709LIBS=$ac_func_search_save_LIBS
6710fi
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname2" >&5
6712$as_echo "$ac_cv_search_gethostbyname2" >&6; }
6713ac_res=$ac_cv_search_gethostbyname2
6714if test "$ac_res" != no; then :
6715  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6716
6717fi
6718
6719
6720case $LIBS in
6721  *-lbind*)
6722  for ac_header in bind/netdb.h
6723do :
6724  ac_fn_c_check_header_mongrel "$LINENO" "bind/netdb.h" "ac_cv_header_bind_netdb_h" "$ac_includes_default"
6725if test "x$ac_cv_header_bind_netdb_h" = xyes; then :
6726  cat >>confdefs.h <<_ACEOF
6727#define HAVE_BIND_NETDB_H 1
6728_ACEOF
6729
6730fi
6731
6732done
6733
6734  ;;
6735esac
6736
6737
6738if test "x$ac_cv_header_iconv_h" = "xyes"; then
6739  ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
6740if test "x$ac_cv_func_iconv" = xyes; then :
6741  ac_found_iconv=yes
6742else
6743  ac_found_iconv=no
6744fi
6745
6746  if test "x$ac_found_iconv" = "xno"; then
6747    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
6748$as_echo_n "checking for iconv in -liconv... " >&6; }
6749if ${ac_cv_lib_iconv_iconv+:} false; then :
6750  $as_echo_n "(cached) " >&6
6751else
6752  ac_check_lib_save_LIBS=$LIBS
6753LIBS="-liconv  $LIBS"
6754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755/* end confdefs.h.  */
6756
6757/* Override any GCC internal prototype to avoid an error.
6758   Use char because int might match the return type of a GCC
6759   builtin and then its argument prototype would still apply.  */
6760#ifdef __cplusplus
6761extern "C"
6762#endif
6763char iconv ();
6764int
6765main ()
6766{
6767return iconv ();
6768  ;
6769  return 0;
6770}
6771_ACEOF
6772if ac_fn_c_try_link "$LINENO"; then :
6773  ac_cv_lib_iconv_iconv=yes
6774else
6775  ac_cv_lib_iconv_iconv=no
6776fi
6777rm -f core conftest.err conftest.$ac_objext \
6778    conftest$ac_exeext conftest.$ac_ext
6779LIBS=$ac_check_lib_save_LIBS
6780fi
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv" >&5
6782$as_echo "$ac_cv_lib_iconv_iconv" >&6; }
6783if test "x$ac_cv_lib_iconv_iconv" = xyes; then :
6784  ac_found_iconv=yes
6785fi
6786
6787    if test "x$ac_found_iconv" = "xno"; then
6788      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -liconv" >&5
6789$as_echo_n "checking for libiconv in -liconv... " >&6; }
6790if ${ac_cv_lib_iconv_libiconv+:} false; then :
6791  $as_echo_n "(cached) " >&6
6792else
6793  ac_check_lib_save_LIBS=$LIBS
6794LIBS="-liconv  $LIBS"
6795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796/* end confdefs.h.  */
6797
6798/* Override any GCC internal prototype to avoid an error.
6799   Use char because int might match the return type of a GCC
6800   builtin and then its argument prototype would still apply.  */
6801#ifdef __cplusplus
6802extern "C"
6803#endif
6804char libiconv ();
6805int
6806main ()
6807{
6808return libiconv ();
6809  ;
6810  return 0;
6811}
6812_ACEOF
6813if ac_fn_c_try_link "$LINENO"; then :
6814  ac_cv_lib_iconv_libiconv=yes
6815else
6816  ac_cv_lib_iconv_libiconv=no
6817fi
6818rm -f core conftest.err conftest.$ac_objext \
6819    conftest$ac_exeext conftest.$ac_ext
6820LIBS=$ac_check_lib_save_LIBS
6821fi
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv" >&5
6823$as_echo "$ac_cv_lib_iconv_libiconv" >&6; }
6824if test "x$ac_cv_lib_iconv_libiconv" = xyes; then :
6825  ac_found_iconv=yes
6826fi
6827
6828    fi
6829    if test "x$ac_found_iconv" != "xno"; then
6830      LIBS="-liconv $LIBS"
6831    fi
6832  else
6833        ac_fn_c_check_decl "$LINENO" "_libiconv_version" "ac_cv_have_decl__libiconv_version" " #include <iconv.h>
6834"
6835if test "x$ac_cv_have_decl__libiconv_version" = xyes; then :
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -liconv" >&5
6837$as_echo_n "checking for libiconv in -liconv... " >&6; }
6838if ${ac_cv_lib_iconv_libiconv+:} false; then :
6839  $as_echo_n "(cached) " >&6
6840else
6841  ac_check_lib_save_LIBS=$LIBS
6842LIBS="-liconv  $LIBS"
6843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844/* end confdefs.h.  */
6845
6846/* Override any GCC internal prototype to avoid an error.
6847   Use char because int might match the return type of a GCC
6848   builtin and then its argument prototype would still apply.  */
6849#ifdef __cplusplus
6850extern "C"
6851#endif
6852char libiconv ();
6853int
6854main ()
6855{
6856return libiconv ();
6857  ;
6858  return 0;
6859}
6860_ACEOF
6861if ac_fn_c_try_link "$LINENO"; then :
6862  ac_cv_lib_iconv_libiconv=yes
6863else
6864  ac_cv_lib_iconv_libiconv=no
6865fi
6866rm -f core conftest.err conftest.$ac_objext \
6867    conftest$ac_exeext conftest.$ac_ext
6868LIBS=$ac_check_lib_save_LIBS
6869fi
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv" >&5
6871$as_echo "$ac_cv_lib_iconv_libiconv" >&6; }
6872if test "x$ac_cv_lib_iconv_libiconv" = xyes; then :
6873  LIBS="-liconv $LIBS"
6874fi
6875
6876fi
6877
6878  fi
6879fi
6880
6881if test "x$ac_found_iconv" = xyes; then
6882
6883$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6884
6885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886/* end confdefs.h.  */
6887#include <iconv.h>
6888int
6889main ()
6890{
6891int myversion = _libiconv_version
6892  ;
6893  return 0;
6894}
6895_ACEOF
6896if ac_fn_c_try_link "$LINENO"; then :
6897  $as_echo "#define ICONV_FROM_LIBICONV 1" >>confdefs.h
6898
6899fi
6900rm -f core conftest.err conftest.$ac_objext \
6901    conftest$ac_exeext conftest.$ac_ext
6902fi
6903
6904if test "x$ac_found_iconv" = "xyes"; then
6905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6906$as_echo_n "checking for iconv declaration... " >&6; }
6907if ${ac_cv_iconv_const+:} false; then :
6908  $as_echo_n "(cached) " >&6
6909else
6910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911/* end confdefs.h.  */
6912#include <stdlib.h>
6913        #include <iconv.h>
6914int
6915main ()
6916{
6917#ifdef __cplusplus
6918          "C"
6919          #endif
6920          #if defined(__STDC__) || defined(__cplusplus)
6921          size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6922          #else
6923          size_t iconv();
6924          #endif
6925  ;
6926  return 0;
6927}
6928_ACEOF
6929if ac_fn_c_try_compile "$LINENO"; then :
6930  ac_cv_iconv_const=
6931else
6932  ac_cv_iconv_const=const
6933fi
6934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935fi
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_iconv_const" >&5
6937$as_echo "$ac_cv_iconv_const" >&6; }
6938
6939cat >>confdefs.h <<_ACEOF
6940#define ICONV_CONST $ac_cv_iconv_const
6941_ACEOF
6942
6943fi
6944
6945if test x$enable_pcre = xyes; then
6946  LIBS="`pcre-config --libs` $LIBS"
6947fi
6948
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if an include file defines ospeed" >&5
6950$as_echo_n "checking if an include file defines ospeed... " >&6; }
6951if ${zsh_cv_decl_ospeed_include_defines+:} false; then :
6952  $as_echo_n "(cached) " >&6
6953else
6954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955/* end confdefs.h.  */
6956#include <sys/types.h>
6957#if HAVE_TERMIOS_H
6958#include <termios.h>
6959#endif
6960#if HAVE_TERMCAP_H
6961#include <termcap.h>
6962#endif
6963int
6964main ()
6965{
6966ospeed = 0;
6967  ;
6968  return 0;
6969}
6970_ACEOF
6971if ac_fn_c_try_link "$LINENO"; then :
6972  zsh_cv_decl_ospeed_include_defines=yes
6973else
6974  zsh_cv_decl_ospeed_include_defines=no
6975fi
6976rm -f core conftest.err conftest.$ac_objext \
6977    conftest$ac_exeext conftest.$ac_ext
6978fi
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_decl_ospeed_include_defines" >&5
6980$as_echo "$zsh_cv_decl_ospeed_include_defines" >&6; }
6981
6982if test x$zsh_cv_decl_ospeed_include_defines = xno; then
6983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you must define ospeed" >&5
6984$as_echo_n "checking if you must define ospeed... " >&6; }
6985if ${zsh_cv_decl_ospeed_must_define+:} false; then :
6986  $as_echo_n "(cached) " >&6
6987else
6988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989/* end confdefs.h.  */
6990
6991int
6992main ()
6993{
6994extern short ospeed; ospeed = 0;
6995  ;
6996  return 0;
6997}
6998_ACEOF
6999if ac_fn_c_try_link "$LINENO"; then :
7000  zsh_cv_decl_ospeed_must_define=yes
7001else
7002  zsh_cv_decl_ospeed_must_define=no
7003fi
7004rm -f core conftest.err conftest.$ac_objext \
7005    conftest$ac_exeext conftest.$ac_ext
7006fi
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_decl_ospeed_must_define" >&5
7008$as_echo "$zsh_cv_decl_ospeed_must_define" >&6; }
7009fi
7010
7011
7012
7013if test x$zsh_cv_decl_ospeed_include_defines = xyes; then
7014  $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
7015
7016elif test x$zsh_cv_decl_ospeed_must_define = xyes; then
7017  $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
7018
7019  $as_echo "#define MUST_DEFINE_OSPEED 1" >>confdefs.h
7020
7021fi
7022
7023if test x$gdbm != xno; then
7024  for ac_header in gdbm.h
7025do :
7026  ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
7027if test "x$ac_cv_header_gdbm_h" = xyes; then :
7028  cat >>confdefs.h <<_ACEOF
7029#define HAVE_GDBM_H 1
7030_ACEOF
7031
7032fi
7033
7034done
7035
7036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
7037$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
7038if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
7039  $as_echo_n "(cached) " >&6
7040else
7041  ac_check_lib_save_LIBS=$LIBS
7042LIBS="-lgdbm  $LIBS"
7043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044/* end confdefs.h.  */
7045
7046/* Override any GCC internal prototype to avoid an error.
7047   Use char because int might match the return type of a GCC
7048   builtin and then its argument prototype would still apply.  */
7049#ifdef __cplusplus
7050extern "C"
7051#endif
7052char gdbm_open ();
7053int
7054main ()
7055{
7056return gdbm_open ();
7057  ;
7058  return 0;
7059}
7060_ACEOF
7061if ac_fn_c_try_link "$LINENO"; then :
7062  ac_cv_lib_gdbm_gdbm_open=yes
7063else
7064  ac_cv_lib_gdbm_gdbm_open=no
7065fi
7066rm -f core conftest.err conftest.$ac_objext \
7067    conftest$ac_exeext conftest.$ac_ext
7068LIBS=$ac_check_lib_save_LIBS
7069fi
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
7071$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
7072if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
7073  cat >>confdefs.h <<_ACEOF
7074#define HAVE_LIBGDBM 1
7075_ACEOF
7076
7077  LIBS="-lgdbm $LIBS"
7078
7079fi
7080
7081fi
7082
7083for ac_header in sys/xattr.h
7084do :
7085  ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
7086if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
7087  cat >>confdefs.h <<_ACEOF
7088#define HAVE_SYS_XATTR_H 1
7089_ACEOF
7090
7091fi
7092
7093done
7094
7095
7096
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7098$as_echo_n "checking return type of signal handlers... " >&6; }
7099if ${ac_cv_type_signal+:} false; then :
7100  $as_echo_n "(cached) " >&6
7101else
7102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103/* end confdefs.h.  */
7104#include <sys/types.h>
7105#include <signal.h>
7106
7107int
7108main ()
7109{
7110return *(signal (0, 0)) (0) == 1;
7111  ;
7112  return 0;
7113}
7114_ACEOF
7115if ac_fn_c_try_compile "$LINENO"; then :
7116  ac_cv_type_signal=int
7117else
7118  ac_cv_type_signal=void
7119fi
7120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121fi
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7123$as_echo "$ac_cv_type_signal" >&6; }
7124
7125cat >>confdefs.h <<_ACEOF
7126#define RETSIGTYPE $ac_cv_type_signal
7127_ACEOF
7128
7129
7130ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7131if test "x$ac_cv_type_pid_t" = xyes; then :
7132
7133else
7134
7135cat >>confdefs.h <<_ACEOF
7136#define pid_t int
7137_ACEOF
7138
7139fi
7140
7141ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7142if test "x$ac_cv_type_off_t" = xyes; then :
7143
7144else
7145
7146cat >>confdefs.h <<_ACEOF
7147#define off_t long int
7148_ACEOF
7149
7150fi
7151
7152ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
7153if test "x$ac_cv_type_ino_t" = xyes; then :
7154
7155else
7156
7157cat >>confdefs.h <<_ACEOF
7158#define ino_t unsigned long
7159_ACEOF
7160
7161fi
7162
7163ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7164if test "x$ac_cv_type_mode_t" = xyes; then :
7165
7166else
7167
7168cat >>confdefs.h <<_ACEOF
7169#define mode_t int
7170_ACEOF
7171
7172fi
7173
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7175$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7176if ${ac_cv_type_uid_t+:} false; then :
7177  $as_echo_n "(cached) " >&6
7178else
7179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h.  */
7181#include <sys/types.h>
7182
7183_ACEOF
7184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7185  $EGREP "uid_t" >/dev/null 2>&1; then :
7186  ac_cv_type_uid_t=yes
7187else
7188  ac_cv_type_uid_t=no
7189fi
7190rm -f conftest*
7191
7192fi
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7194$as_echo "$ac_cv_type_uid_t" >&6; }
7195if test $ac_cv_type_uid_t = no; then
7196
7197$as_echo "#define uid_t int" >>confdefs.h
7198
7199
7200$as_echo "#define gid_t int" >>confdefs.h
7201
7202fi
7203
7204ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7205if test "x$ac_cv_type_size_t" = xyes; then :
7206
7207else
7208
7209cat >>confdefs.h <<_ACEOF
7210#define size_t unsigned int
7211_ACEOF
7212
7213fi
7214
7215
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if long is 64 bits" >&5
7217$as_echo_n "checking if long is 64 bits... " >&6; }
7218if ${zsh_cv_long_is_64_bit+:} false; then :
7219  $as_echo_n "(cached) " >&6
7220else
7221  if test "$cross_compiling" = yes; then :
7222  zsh_cv_long_is_64_bit=no
7223else
7224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225/* end confdefs.h.  */
7226int main() { return sizeof(long) < 8; }
7227_ACEOF
7228if ac_fn_c_try_run "$LINENO"; then :
7229  zsh_cv_long_is_64_bit=yes
7230else
7231  zsh_cv_long_is_64_bit=no
7232fi
7233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7234  conftest.$ac_objext conftest.beam conftest.$ac_ext
7235fi
7236
7237fi
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_long_is_64_bit" >&5
7239$as_echo "$zsh_cv_long_is_64_bit" >&6; }
7240
7241
7242
7243
7244
7245
7246
7247if test x$zsh_cv_long_is_64_bit = xyes; then
7248  $as_echo "#define LONG_IS_64_BIT 1" >>confdefs.h
7249
7250else
7251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if off_t is 64 bit" >&5
7252$as_echo_n "checking if off_t is 64 bit... " >&6; }
7253if ${zsh_cv_off_t_is_64_bit+:} false; then :
7254  $as_echo_n "(cached) " >&6
7255else
7256  if test "$cross_compiling" = yes; then :
7257  zsh_cv_off_t_is_64_bit=no
7258else
7259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260/* end confdefs.h.  */
7261
7262#include <sys/types.h>
7263
7264main() { return sizeof(off_t) < 8; }
7265
7266_ACEOF
7267if ac_fn_c_try_run "$LINENO"; then :
7268  zsh_cv_off_t_is_64_bit=yes
7269else
7270  zsh_cv_off_t_is_64_bit=no
7271fi
7272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7273  conftest.$ac_objext conftest.beam conftest.$ac_ext
7274fi
7275
7276fi
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_off_t_is_64_bit" >&5
7278$as_echo "$zsh_cv_off_t_is_64_bit" >&6; }
7279  if test x$zsh_cv_off_t_is_64_bit = xyes; then
7280    $as_echo "#define OFF_T_IS_64_BIT 1" >>confdefs.h
7281
7282  fi
7283
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ino_t is 64 bit" >&5
7285$as_echo_n "checking if ino_t is 64 bit... " >&6; }
7286if ${zsh_cv_ino_t_is_64_bit+:} false; then :
7287  $as_echo_n "(cached) " >&6
7288else
7289  if test "$cross_compiling" = yes; then :
7290  zsh_cv_ino_t_is_64_bit=no
7291else
7292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293/* end confdefs.h.  */
7294
7295#include <sys/types.h>
7296
7297main() { return sizeof(ino_t) < 8; }
7298
7299_ACEOF
7300if ac_fn_c_try_run "$LINENO"; then :
7301  zsh_cv_ino_t_is_64_bit=yes
7302else
7303  zsh_cv_ino_t_is_64_bit=no
7304fi
7305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7306  conftest.$ac_objext conftest.beam conftest.$ac_ext
7307fi
7308
7309fi
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_ino_t_is_64_bit" >&5
7311$as_echo "$zsh_cv_ino_t_is_64_bit" >&6; }
7312  if test x$zsh_cv_ino_t_is_64_bit = xyes; then
7313    $as_echo "#define INO_T_IS_64_BIT 1" >>confdefs.h
7314
7315  fi
7316
7317  if test x$enable_largefile != xno -o x$zsh_cv_off_t_is_64_bit = xyes \
7318  -o $zsh_cv_ino_t_is_64_bit = yes; then
7319    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler has a 64 bit type" >&5
7320$as_echo_n "checking if compiler has a 64 bit type... " >&6; }
7321if ${zsh_cv_64_bit_type+:} false; then :
7322  $as_echo_n "(cached) " >&6
7323else
7324  if test "$cross_compiling" = yes; then :
7325  if test x != x ; then
7326    zsh_cv_64_bit_type="long long"
7327  else
7328    zsh_cv_64_bit_type=no
7329  fi
7330else
7331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332/* end confdefs.h.  */
7333
7334#ifdef HAVE_SYS_TYPES_H
7335#include <sys/types.h>
7336#endif
7337
7338main()
7339{
7340  long long foo = 0;
7341  int bar = (int) foo;
7342  return sizeof(long long) != 8;
7343}
7344
7345_ACEOF
7346if ac_fn_c_try_run "$LINENO"; then :
7347  zsh_cv_64_bit_type="long long"
7348else
7349  zsh_cv_64_bit_type=no
7350fi
7351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7352  conftest.$ac_objext conftest.beam conftest.$ac_ext
7353fi
7354
7355
7356     if test "$zsh_cv_64_bit_type" = no; then
7357       if test "$cross_compiling" = yes; then :
7358  if test x != x ; then
7359    zsh_cv_64_bit_type="quad_t"
7360  else
7361    zsh_cv_64_bit_type=no
7362  fi
7363else
7364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366
7367#ifdef HAVE_SYS_TYPES_H
7368#include <sys/types.h>
7369#endif
7370
7371main()
7372{
7373  quad_t foo = 0;
7374  int bar = (int) foo;
7375  return sizeof(quad_t) != 8;
7376}
7377
7378_ACEOF
7379if ac_fn_c_try_run "$LINENO"; then :
7380  zsh_cv_64_bit_type="quad_t"
7381else
7382  zsh_cv_64_bit_type=no
7383fi
7384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7385  conftest.$ac_objext conftest.beam conftest.$ac_ext
7386fi
7387
7388
7389     fi
7390     if test "$zsh_cv_64_bit_type" = no; then
7391       if test "$cross_compiling" = yes; then :
7392  if test x != x ; then
7393    zsh_cv_64_bit_type="__int64_t"
7394  else
7395    zsh_cv_64_bit_type=no
7396  fi
7397else
7398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399/* end confdefs.h.  */
7400
7401#ifdef HAVE_SYS_TYPES_H
7402#include <sys/types.h>
7403#endif
7404
7405main()
7406{
7407  __int64_t foo = 0;
7408  int bar = (int) foo;
7409  return sizeof(__int64_t) != 8;
7410}
7411
7412_ACEOF
7413if ac_fn_c_try_run "$LINENO"; then :
7414  zsh_cv_64_bit_type="__int64_t"
7415else
7416  zsh_cv_64_bit_type=no
7417fi
7418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7419  conftest.$ac_objext conftest.beam conftest.$ac_ext
7420fi
7421
7422
7423     fi
7424                    if test "$zsh_cv_64_bit_type" = no &&
7425        test "$zsh_cv_off_t_is_64_bit" = yes; then
7426       if test "$cross_compiling" = yes; then :
7427  if test x != x ; then
7428    zsh_cv_64_bit_type="off_t"
7429  else
7430    zsh_cv_64_bit_type=no
7431  fi
7432else
7433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h.  */
7435
7436#ifdef HAVE_SYS_TYPES_H
7437#include <sys/types.h>
7438#endif
7439
7440main()
7441{
7442  off_t foo = 0;
7443  int bar = (int) foo;
7444  return sizeof(off_t) != 8;
7445}
7446
7447_ACEOF
7448if ac_fn_c_try_run "$LINENO"; then :
7449  zsh_cv_64_bit_type="off_t"
7450else
7451  zsh_cv_64_bit_type=no
7452fi
7453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7454  conftest.$ac_objext conftest.beam conftest.$ac_ext
7455fi
7456
7457
7458     fi
7459fi
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_64_bit_type" >&5
7461$as_echo "$zsh_cv_64_bit_type" >&6; }
7462    if test "$zsh_cv_64_bit_type" != no; then
7463      cat >>confdefs.h <<_ACEOF
7464#define ZSH_64_BIT_TYPE $zsh_cv_64_bit_type
7465_ACEOF
7466
7467
7468                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a corresponding unsigned 64 bit type" >&5
7469$as_echo_n "checking for a corresponding unsigned 64 bit type... " >&6; }
7470if ${zsh_cv_64_bit_utype+:} false; then :
7471  $as_echo_n "(cached) " >&6
7472else
7473  if test "$cross_compiling" = yes; then :
7474  if test xforce != x ; then
7475    zsh_cv_64_bit_utype="unsigned $zsh_cv_64_bit_type"
7476  else
7477    zsh_cv_64_bit_utype=no
7478  fi
7479else
7480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h.  */
7482
7483#ifdef HAVE_SYS_TYPES_H
7484#include <sys/types.h>
7485#endif
7486
7487main()
7488{
7489  unsigned $zsh_cv_64_bit_type foo = 0;
7490  int bar = (int) foo;
7491  return sizeof(unsigned $zsh_cv_64_bit_type) != 8;
7492}
7493
7494_ACEOF
7495if ac_fn_c_try_run "$LINENO"; then :
7496  zsh_cv_64_bit_utype="unsigned $zsh_cv_64_bit_type"
7497else
7498  zsh_cv_64_bit_utype=no
7499fi
7500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7501  conftest.$ac_objext conftest.beam conftest.$ac_ext
7502fi
7503
7504
7505       if test "$zsh_cv_64_bit_utype" = no; then
7506         if test "$cross_compiling" = yes; then :
7507  if test x != x ; then
7508    zsh_cv_64_bit_utype="__uint64_t"
7509  else
7510    zsh_cv_64_bit_utype=no
7511  fi
7512else
7513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514/* end confdefs.h.  */
7515
7516#ifdef HAVE_SYS_TYPES_H
7517#include <sys/types.h>
7518#endif
7519
7520main()
7521{
7522  __uint64_t foo = 0;
7523  int bar = (int) foo;
7524  return sizeof(__uint64_t) != 8;
7525}
7526
7527_ACEOF
7528if ac_fn_c_try_run "$LINENO"; then :
7529  zsh_cv_64_bit_utype="__uint64_t"
7530else
7531  zsh_cv_64_bit_utype=no
7532fi
7533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7534  conftest.$ac_objext conftest.beam conftest.$ac_ext
7535fi
7536
7537
7538       fi
7539fi
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_64_bit_utype" >&5
7541$as_echo "$zsh_cv_64_bit_utype" >&6; }
7542      if test "$zsh_cv_64_bit_utype" != no; then
7543        cat >>confdefs.h <<_ACEOF
7544#define ZSH_64_BIT_UTYPE $zsh_cv_64_bit_utype
7545_ACEOF
7546
7547      fi
7548    fi
7549  fi
7550fi
7551
7552if test "$zsh_cv_64_bit_type" = "long long"; then
7553    $as_echo "#define ZLONG_IS_LONG_LONG 1" >>confdefs.h
7554
7555fi
7556
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld printf support" >&5
7558$as_echo_n "checking for %lld printf support... " >&6; }
7559if ${zsh_cv_printf_has_lld+:} false; then :
7560  $as_echo_n "(cached) " >&6
7561else
7562  if test "$cross_compiling" = yes; then :
7563  zsh_cv_printf_has_lld=no
7564else
7565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566/* end confdefs.h.  */
7567#include <stdio.h>
7568#include <string.h>
7569int main(int argc, char **argv)
7570{
7571   long long foo = ((long long)0xdead << 40) | 0xf00d;
7572   char buf[80];
7573   sprintf(buf, "before%lldafter", foo);
7574   if (!strcmp(buf, "before62677660341432333after")) {
7575      return 0;
7576   }
7577   return 1;
7578}
7579
7580_ACEOF
7581if ac_fn_c_try_run "$LINENO"; then :
7582  zsh_cv_printf_has_lld=yes
7583else
7584  zsh_cv_printf_has_lld=no
7585fi
7586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7587  conftest.$ac_objext conftest.beam conftest.$ac_ext
7588fi
7589
7590fi
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_printf_has_lld" >&5
7592$as_echo "$zsh_cv_printf_has_lld" >&6; }
7593
7594if test x$zsh_cv_printf_has_lld = xyes; then
7595  $as_echo "#define PRINTF_HAS_LLD 1" >>confdefs.h
7596
7597fi
7598
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset_t" >&5
7600$as_echo_n "checking for sigset_t... " >&6; }
7601if ${zsh_cv_type_sigset_t+:} false; then :
7602  $as_echo_n "(cached) " >&6
7603else
7604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h.  */
7606#define _POSIX_C_SOURCE 200809L
7607#include <sys/types.h>
7608#include <signal.h>
7609int
7610main ()
7611{
7612sigset_t tempsigset;
7613  ;
7614  return 0;
7615}
7616_ACEOF
7617if ac_fn_c_try_compile "$LINENO"; then :
7618  zsh_cv_type_sigset_t=yes
7619else
7620  zsh_cv_type_sigset_t=no
7621fi
7622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623fi
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_sigset_t" >&5
7625$as_echo "$zsh_cv_type_sigset_t" >&6; }
7626
7627if test x$zsh_cv_type_sigset_t = xno; then
7628  $as_echo "#define sigset_t unsigned int" >>confdefs.h
7629
7630fi
7631
7632ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "$ac_includes_default"
7633if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
7634
7635cat >>confdefs.h <<_ACEOF
7636#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
7637_ACEOF
7638
7639
7640fi
7641ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "$ac_includes_default"
7642if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
7643
7644cat >>confdefs.h <<_ACEOF
7645#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
7646_ACEOF
7647
7648
7649fi
7650ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
7651if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
7652
7653cat >>confdefs.h <<_ACEOF
7654#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
7655_ACEOF
7656
7657
7658fi
7659ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
7660if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
7661
7662cat >>confdefs.h <<_ACEOF
7663#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
7664_ACEOF
7665
7666
7667fi
7668ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "$ac_includes_default"
7669if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes; then :
7670
7671cat >>confdefs.h <<_ACEOF
7672#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1
7673_ACEOF
7674
7675
7676fi
7677ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
7678if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
7679
7680cat >>confdefs.h <<_ACEOF
7681#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
7682_ACEOF
7683
7684
7685fi
7686ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "$ac_includes_default"
7687if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
7688
7689cat >>confdefs.h <<_ACEOF
7690#define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
7691_ACEOF
7692
7693
7694fi
7695ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec.tv_nsec" "ac_cv_member_struct_stat_st_ctimespec_tv_nsec" "$ac_includes_default"
7696if test "x$ac_cv_member_struct_stat_st_ctimespec_tv_nsec" = xyes; then :
7697
7698cat >>confdefs.h <<_ACEOF
7699#define HAVE_STRUCT_STAT_ST_CTIMESPEC_TV_NSEC 1
7700_ACEOF
7701
7702
7703fi
7704ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "$ac_includes_default"
7705if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
7706
7707cat >>confdefs.h <<_ACEOF
7708#define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
7709_ACEOF
7710
7711
7712fi
7713
7714
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timezone" >&5
7716$as_echo_n "checking for struct timezone... " >&6; }
7717if ${zsh_cv_type_exists_struct_timezone+:} false; then :
7718  $as_echo_n "(cached) " >&6
7719else
7720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721/* end confdefs.h.  */
7722
7723#define _GNU_SOURCE 1
7724#ifdef HAVE_SYS_TIME_H
7725# include <sys/time.h>
7726#endif
7727
7728int
7729main ()
7730{
7731struct timezone testvar;
7732  ;
7733  return 0;
7734}
7735_ACEOF
7736if ac_fn_c_try_compile "$LINENO"; then :
7737  zsh_cv_type_exists_struct_timezone=yes
7738else
7739  zsh_cv_type_exists_struct_timezone=no
7740fi
7741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742
7743fi
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_exists_struct_timezone" >&5
7745$as_echo "$zsh_cv_type_exists_struct_timezone" >&6; }
7746
7747if test $zsh_cv_type_exists_struct_timezone = yes; then
7748  $as_echo "#define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h
7749
7750fi
7751
7752
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utmp" >&5
7754$as_echo_n "checking for struct utmp... " >&6; }
7755if ${zsh_cv_type_exists_struct_utmp+:} false; then :
7756  $as_echo_n "(cached) " >&6
7757else
7758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759/* end confdefs.h.  */
7760
7761#ifdef HAVE_SYS_TYPES_H
7762# include <sys/types.h>
7763#endif
7764#ifdef HAVE_UTMP_H
7765# include <utmp.h>
7766#endif
7767
7768int
7769main ()
7770{
7771struct utmp testvar;
7772  ;
7773  return 0;
7774}
7775_ACEOF
7776if ac_fn_c_try_compile "$LINENO"; then :
7777  zsh_cv_type_exists_struct_utmp=yes
7778else
7779  zsh_cv_type_exists_struct_utmp=no
7780fi
7781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782
7783fi
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_exists_struct_utmp" >&5
7785$as_echo "$zsh_cv_type_exists_struct_utmp" >&6; }
7786
7787if test $zsh_cv_type_exists_struct_utmp = yes; then
7788  $as_echo "#define HAVE_STRUCT_UTMP 1" >>confdefs.h
7789
7790fi
7791
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utmpx" >&5
7793$as_echo_n "checking for struct utmpx... " >&6; }
7794if ${zsh_cv_type_exists_struct_utmpx+:} false; then :
7795  $as_echo_n "(cached) " >&6
7796else
7797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798/* end confdefs.h.  */
7799
7800#ifdef HAVE_SYS_TYPES_H
7801# include <sys/types.h>
7802#endif
7803#ifdef HAVE_UTMPX_H
7804# include <utmpx.h>
7805#endif
7806
7807int
7808main ()
7809{
7810struct utmpx testvar;
7811  ;
7812  return 0;
7813}
7814_ACEOF
7815if ac_fn_c_try_compile "$LINENO"; then :
7816  zsh_cv_type_exists_struct_utmpx=yes
7817else
7818  zsh_cv_type_exists_struct_utmpx=no
7819fi
7820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821
7822fi
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_exists_struct_utmpx" >&5
7824$as_echo "$zsh_cv_type_exists_struct_utmpx" >&6; }
7825
7826if test $zsh_cv_type_exists_struct_utmpx = yes; then
7827  $as_echo "#define HAVE_STRUCT_UTMPX 1" >>confdefs.h
7828
7829fi
7830
7831
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in struct utmp" >&5
7833$as_echo_n "checking for ut_host in struct utmp... " >&6; }
7834if ${zsh_cv_struct_member_struct_utmp_ut_host+:} false; then :
7835  $as_echo_n "(cached) " >&6
7836else
7837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838/* end confdefs.h.  */
7839
7840#ifdef HAVE_SYS_TYPES_H
7841# include <sys/types.h>
7842#endif
7843#ifdef HAVE_UTMP_H
7844# include <utmp.h>
7845#endif
7846
7847int
7848main ()
7849{
7850struct utmp testvar; testvar.ut_host;
7851  ;
7852  return 0;
7853}
7854_ACEOF
7855if ac_fn_c_try_compile "$LINENO"; then :
7856  zsh_cv_struct_member_struct_utmp_ut_host=yes
7857else
7858  zsh_cv_struct_member_struct_utmp_ut_host=no
7859fi
7860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861
7862fi
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_utmp_ut_host" >&5
7864$as_echo "$zsh_cv_struct_member_struct_utmp_ut_host" >&6; }
7865
7866if test $zsh_cv_struct_member_struct_utmp_ut_host = yes; then
7867  $as_echo "#define HAVE_STRUCT_UTMP_UT_HOST 1" >>confdefs.h
7868
7869fi
7870
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in struct utmpx" >&5
7872$as_echo_n "checking for ut_host in struct utmpx... " >&6; }
7873if ${zsh_cv_struct_member_struct_utmpx_ut_host+:} false; then :
7874  $as_echo_n "(cached) " >&6
7875else
7876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877/* end confdefs.h.  */
7878
7879#ifdef HAVE_SYS_TYPES_H
7880# include <sys/types.h>
7881#endif
7882#ifdef HAVE_UTMPX_H
7883# include <utmpx.h>
7884#endif
7885
7886int
7887main ()
7888{
7889struct utmpx testvar; testvar.ut_host;
7890  ;
7891  return 0;
7892}
7893_ACEOF
7894if ac_fn_c_try_compile "$LINENO"; then :
7895  zsh_cv_struct_member_struct_utmpx_ut_host=yes
7896else
7897  zsh_cv_struct_member_struct_utmpx_ut_host=no
7898fi
7899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900
7901fi
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_utmpx_ut_host" >&5
7903$as_echo "$zsh_cv_struct_member_struct_utmpx_ut_host" >&6; }
7904
7905if test $zsh_cv_struct_member_struct_utmpx_ut_host = yes; then
7906  $as_echo "#define HAVE_STRUCT_UTMPX_UT_HOST 1" >>confdefs.h
7907
7908fi
7909
7910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7911$as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7912if ${zsh_cv_struct_member_struct_utmpx_ut_xtime+:} false; then :
7913  $as_echo_n "(cached) " >&6
7914else
7915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916/* end confdefs.h.  */
7917
7918#ifdef HAVE_SYS_TYPES_H
7919# include <sys/types.h>
7920#endif
7921#ifdef HAVE_UTMPX_H
7922# include <utmpx.h>
7923#endif
7924
7925int
7926main ()
7927{
7928struct utmpx testvar; testvar.ut_xtime;
7929  ;
7930  return 0;
7931}
7932_ACEOF
7933if ac_fn_c_try_compile "$LINENO"; then :
7934  zsh_cv_struct_member_struct_utmpx_ut_xtime=yes
7935else
7936  zsh_cv_struct_member_struct_utmpx_ut_xtime=no
7937fi
7938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939
7940fi
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_utmpx_ut_xtime" >&5
7942$as_echo "$zsh_cv_struct_member_struct_utmpx_ut_xtime" >&6; }
7943
7944if test $zsh_cv_struct_member_struct_utmpx_ut_xtime = yes; then
7945  $as_echo "#define HAVE_STRUCT_UTMPX_UT_XTIME 1" >>confdefs.h
7946
7947fi
7948
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv in struct utmpx" >&5
7950$as_echo_n "checking for ut_tv in struct utmpx... " >&6; }
7951if ${zsh_cv_struct_member_struct_utmpx_ut_tv+:} false; then :
7952  $as_echo_n "(cached) " >&6
7953else
7954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955/* end confdefs.h.  */
7956
7957#ifdef HAVE_SYS_TYPES_H
7958# include <sys/types.h>
7959#endif
7960#ifdef HAVE_UTMPX_H
7961# include <utmpx.h>
7962#endif
7963
7964int
7965main ()
7966{
7967struct utmpx testvar; testvar.ut_tv;
7968  ;
7969  return 0;
7970}
7971_ACEOF
7972if ac_fn_c_try_compile "$LINENO"; then :
7973  zsh_cv_struct_member_struct_utmpx_ut_tv=yes
7974else
7975  zsh_cv_struct_member_struct_utmpx_ut_tv=no
7976fi
7977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978
7979fi
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_utmpx_ut_tv" >&5
7981$as_echo "$zsh_cv_struct_member_struct_utmpx_ut_tv" >&6; }
7982
7983if test $zsh_cv_struct_member_struct_utmpx_ut_tv = yes; then
7984  $as_echo "#define HAVE_STRUCT_UTMPX_UT_TV 1" >>confdefs.h
7985
7986fi
7987
7988
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino in struct dirent" >&5
7990$as_echo_n "checking for d_ino in struct dirent... " >&6; }
7991if ${zsh_cv_struct_member_struct_dirent_d_ino+:} false; then :
7992  $as_echo_n "(cached) " >&6
7993else
7994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995/* end confdefs.h.  */
7996
7997#ifdef HAVE_SYS_TYPES_H
7998# include <sys/types.h>
7999#endif
8000#ifdef HAVE_DIRENT_H
8001# include <dirent.h>
8002#endif
8003
8004int
8005main ()
8006{
8007struct dirent testvar; testvar.d_ino;
8008  ;
8009  return 0;
8010}
8011_ACEOF
8012if ac_fn_c_try_compile "$LINENO"; then :
8013  zsh_cv_struct_member_struct_dirent_d_ino=yes
8014else
8015  zsh_cv_struct_member_struct_dirent_d_ino=no
8016fi
8017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8018
8019fi
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_dirent_d_ino" >&5
8021$as_echo "$zsh_cv_struct_member_struct_dirent_d_ino" >&6; }
8022
8023if test $zsh_cv_struct_member_struct_dirent_d_ino = yes; then
8024  $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
8025
8026fi
8027
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_stat in struct dirent" >&5
8029$as_echo_n "checking for d_stat in struct dirent... " >&6; }
8030if ${zsh_cv_struct_member_struct_dirent_d_stat+:} false; then :
8031  $as_echo_n "(cached) " >&6
8032else
8033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034/* end confdefs.h.  */
8035
8036#ifdef HAVE_SYS_TYPES_H
8037# include <sys/types.h>
8038#endif
8039#ifdef HAVE_DIRENT_H
8040# include <dirent.h>
8041#endif
8042
8043int
8044main ()
8045{
8046struct dirent testvar; testvar.d_stat;
8047  ;
8048  return 0;
8049}
8050_ACEOF
8051if ac_fn_c_try_compile "$LINENO"; then :
8052  zsh_cv_struct_member_struct_dirent_d_stat=yes
8053else
8054  zsh_cv_struct_member_struct_dirent_d_stat=no
8055fi
8056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057
8058fi
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_dirent_d_stat" >&5
8060$as_echo "$zsh_cv_struct_member_struct_dirent_d_stat" >&6; }
8061
8062if test $zsh_cv_struct_member_struct_dirent_d_stat = yes; then
8063  $as_echo "#define HAVE_STRUCT_DIRENT_D_STAT 1" >>confdefs.h
8064
8065fi
8066
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino in struct direct" >&5
8068$as_echo_n "checking for d_ino in struct direct... " >&6; }
8069if ${zsh_cv_struct_member_struct_direct_d_ino+:} false; then :
8070  $as_echo_n "(cached) " >&6
8071else
8072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073/* end confdefs.h.  */
8074
8075#ifdef HAVE_SYS_TYPES_H
8076# include <sys/types.h>
8077#endif
8078#ifdef HAVE_SYS_NDIR_H
8079# include <sys/ndir.h>
8080#endif
8081#ifdef HAVE_SYS_DIR_H
8082# include <sys/dir.h>
8083#endif
8084#ifdef HAVE_NDIR_H
8085# include <ndir.h>
8086#endif
8087
8088int
8089main ()
8090{
8091struct direct testvar; testvar.d_ino;
8092  ;
8093  return 0;
8094}
8095_ACEOF
8096if ac_fn_c_try_compile "$LINENO"; then :
8097  zsh_cv_struct_member_struct_direct_d_ino=yes
8098else
8099  zsh_cv_struct_member_struct_direct_d_ino=no
8100fi
8101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102
8103fi
8104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_direct_d_ino" >&5
8105$as_echo "$zsh_cv_struct_member_struct_direct_d_ino" >&6; }
8106
8107if test $zsh_cv_struct_member_struct_direct_d_ino = yes; then
8108  $as_echo "#define HAVE_STRUCT_DIRECT_D_INO 1" >>confdefs.h
8109
8110fi
8111
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_stat in struct direct" >&5
8113$as_echo_n "checking for d_stat in struct direct... " >&6; }
8114if ${zsh_cv_struct_member_struct_direct_d_stat+:} false; then :
8115  $as_echo_n "(cached) " >&6
8116else
8117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118/* end confdefs.h.  */
8119
8120#ifdef HAVE_SYS_TYPES_H
8121# include <sys/types.h>
8122#endif
8123#ifdef HAVE_SYS_NDIR_H
8124# include <sys/ndir.h>
8125#endif
8126#ifdef HAVE_SYS_DIR_H
8127# include <sys/dir.h>
8128#endif
8129#ifdef HAVE_NDIR_H
8130# include <ndir.h>
8131#endif
8132
8133int
8134main ()
8135{
8136struct direct testvar; testvar.d_stat;
8137  ;
8138  return 0;
8139}
8140_ACEOF
8141if ac_fn_c_try_compile "$LINENO"; then :
8142  zsh_cv_struct_member_struct_direct_d_stat=yes
8143else
8144  zsh_cv_struct_member_struct_direct_d_stat=no
8145fi
8146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147
8148fi
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_direct_d_stat" >&5
8150$as_echo "$zsh_cv_struct_member_struct_direct_d_stat" >&6; }
8151
8152if test $zsh_cv_struct_member_struct_direct_d_stat = yes; then
8153  $as_echo "#define HAVE_STRUCT_DIRECT_D_STAT 1" >>confdefs.h
8154
8155fi
8156
8157
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin6_scope_id in struct sockaddr_in6" >&5
8159$as_echo_n "checking for sin6_scope_id in struct sockaddr_in6... " >&6; }
8160if ${zsh_cv_struct_member_struct_sockaddr_in6_sin6_scope_id+:} false; then :
8161  $as_echo_n "(cached) " >&6
8162else
8163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164/* end confdefs.h.  */
8165
8166#ifdef HAVE_SYS_TYPES_H
8167# include <sys/types.h>
8168#endif
8169#include <netinet/in.h>
8170
8171int
8172main ()
8173{
8174struct sockaddr_in6 testvar; testvar.sin6_scope_id;
8175  ;
8176  return 0;
8177}
8178_ACEOF
8179if ac_fn_c_try_compile "$LINENO"; then :
8180  zsh_cv_struct_member_struct_sockaddr_in6_sin6_scope_id=yes
8181else
8182  zsh_cv_struct_member_struct_sockaddr_in6_sin6_scope_id=no
8183fi
8184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185
8186fi
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_sockaddr_in6_sin6_scope_id" >&5
8188$as_echo "$zsh_cv_struct_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
8189
8190if test $zsh_cv_struct_member_struct_sockaddr_in6_sin6_scope_id = yes; then
8191  $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
8192
8193fi
8194
8195
8196
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need our own h_errno" >&5
8198$as_echo_n "checking if we need our own h_errno... " >&6; }
8199if ${zsh_cv_decl_h_errno_use_local+:} false; then :
8200  $as_echo_n "(cached) " >&6
8201else
8202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203/* end confdefs.h.  */
8204
8205int
8206main ()
8207{
8208extern int h_errno; h_errno = 0;
8209  ;
8210  return 0;
8211}
8212_ACEOF
8213if ac_fn_c_try_link "$LINENO"; then :
8214  zsh_cv_decl_h_errno_use_local=no
8215else
8216  zsh_cv_decl_h_errno_use_local=yes
8217fi
8218rm -f core conftest.err conftest.$ac_objext \
8219    conftest$ac_exeext conftest.$ac_ext
8220fi
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_decl_h_errno_use_local" >&5
8222$as_echo "$zsh_cv_decl_h_errno_use_local" >&6; }
8223
8224if test x$zsh_cv_decl_h_errno_use_local = xyes; then
8225  $as_echo "#define USE_LOCAL_H_ERRNO 1" >>confdefs.h
8226
8227fi
8228
8229
8230
8231for ac_func in strftime strptime mktime timelocal \
8232	       difftime gettimeofday clock_gettime \
8233	       select poll \
8234	       readlink faccessx fchdir ftruncate \
8235	       fstat lstat lchown fchown fchmod \
8236	       fseeko ftello \
8237	       mkfifo _mktemp mkstemp \
8238	       waitpid wait3 \
8239	       sigaction sigblock sighold sigrelse sigsetmask sigprocmask \
8240	       killpg setpgid setpgrp tcsetpgrp tcgetattr nice \
8241	       gethostname gethostbyname2 getipnodebyname \
8242	       inet_aton inet_pton inet_ntop \
8243	       getlogin getpwent getpwnam getpwuid getgrgid getgrnam \
8244	       initgroups nis_list \
8245	       setuid seteuid setreuid setresuid setsid \
8246	       memcpy memmove strstr strerror strtoul \
8247	       getrlimit getrusage \
8248	       setlocale \
8249	       uname \
8250	       signgam tgamma \
8251	       putenv getenv setenv unsetenv xw\
8252	       brk sbrk \
8253	       pathconf sysconf \
8254	       tgetent tigetflag tigetnum tigetstr setupterm initscr \
8255	       getcchar setcchar waddwstr wget_wch win_wch use_default_colors \
8256	       pcre_compile pcre_study pcre_exec \
8257	       nl_langinfo \
8258	       erand48 open_memstream \
8259	       wctomb iconv \
8260	       grantpt unlockpt ptsname \
8261	       htons ntohs \
8262	       regcomp regexec regerror regfree \
8263	       gdbm_open getxattr \
8264	       realpath canonicalize_file_name \
8265	       symlink getcwd \
8266	       cygwin_conv_path
8267do :
8268  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8269ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8270if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8271  cat >>confdefs.h <<_ACEOF
8272#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8273_ACEOF
8274
8275fi
8276done
8277
8278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8279$as_echo_n "checking for working strcoll... " >&6; }
8280if ${ac_cv_func_strcoll_works+:} false; then :
8281  $as_echo_n "(cached) " >&6
8282else
8283  if test "$cross_compiling" = yes; then :
8284  ac_cv_func_strcoll_works=no
8285else
8286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287/* end confdefs.h.  */
8288$ac_includes_default
8289int
8290main ()
8291{
8292return (strcoll ("abc", "def") >= 0 ||
8293	 strcoll ("ABC", "DEF") >= 0 ||
8294	 strcoll ("123", "456") >= 0)
8295  ;
8296  return 0;
8297}
8298_ACEOF
8299if ac_fn_c_try_run "$LINENO"; then :
8300  ac_cv_func_strcoll_works=yes
8301else
8302  ac_cv_func_strcoll_works=no
8303fi
8304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8305  conftest.$ac_objext conftest.beam conftest.$ac_ext
8306fi
8307
8308fi
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
8310$as_echo "$ac_cv_func_strcoll_works" >&6; }
8311if test $ac_cv_func_strcoll_works = yes; then
8312
8313$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
8314
8315fi
8316
8317
8318if test x$enable_cap = xyes; then
8319  for ac_func in cap_get_proc
8320do :
8321  ac_fn_c_check_func "$LINENO" "cap_get_proc" "ac_cv_func_cap_get_proc"
8322if test "x$ac_cv_func_cap_get_proc" = xyes; then :
8323  cat >>confdefs.h <<_ACEOF
8324#define HAVE_CAP_GET_PROC 1
8325_ACEOF
8326
8327fi
8328done
8329
8330fi
8331
8332
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if tgetent accepts NULL" >&5
8334$as_echo_n "checking if tgetent accepts NULL... " >&6; }
8335if ${zsh_cv_func_tgetent_accepts_null+:} false; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338  if test "$cross_compiling" = yes; then :
8339  zsh_cv_func_tgetent_accepts_null=no
8340else
8341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342/* end confdefs.h.  */
8343
8344main()
8345{
8346    char buf[4096];
8347    int r1 = tgetent(buf, "vt100");
8348    int r2 = tgetent((char*)0,"vt100");
8349    if (r1 >= 0 && r1 == r2) {
8350        char tbuf[1024], *u;
8351        u = tbuf;
8352    	tgetstr("cl", &u);
8353	creat("conftest.tgetent", 0640);
8354    }
8355    exit((r1 != r2) || r2 == -1);
8356}
8357
8358_ACEOF
8359if ac_fn_c_try_run "$LINENO"; then :
8360  if test -f conftest.tgetent; then
8361    zsh_cv_func_tgetent_accepts_null=yes
8362  else
8363    zsh_cv_func_tgetent_accepts_null=no
8364  fi
8365else
8366  zsh_cv_func_tgetent_accepts_null=no
8367fi
8368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8369  conftest.$ac_objext conftest.beam conftest.$ac_ext
8370fi
8371
8372fi
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_func_tgetent_accepts_null" >&5
8374$as_echo "$zsh_cv_func_tgetent_accepts_null" >&6; }
8375if test x$zsh_cv_func_tgetent_accepts_null = xyes; then
8376  $as_echo "#define TGETENT_ACCEPTS_NULL 1" >>confdefs.h
8377
8378fi
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if tgetent returns 0 on success" >&5
8380$as_echo_n "checking if tgetent returns 0 on success... " >&6; }
8381if ${zsh_cv_func_tgetent_zero_success+:} false; then :
8382  $as_echo_n "(cached) " >&6
8383else
8384  if test "$cross_compiling" = yes; then :
8385  zsh_cv_func_tgetent_zero_success=no
8386else
8387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388/* end confdefs.h.  */
8389
8390main()
8391{
8392    char buf[4096];
8393    int r1 = tgetent(buf, "!@#$%^&*");
8394    int r2 = tgetent(buf, "vt100");
8395    if (r1 < 0 && r2 == 0) {
8396        char tbuf[1024], *u;
8397        u = tbuf;
8398    	tgetstr("cl", &u);
8399	creat("conftest.tgetent0", 0640);
8400    }
8401    exit(r1 == r2);
8402}
8403
8404_ACEOF
8405if ac_fn_c_try_run "$LINENO"; then :
8406  if test -f conftest.tgetent0; then
8407    zsh_cv_func_tgetent_zero_success=yes
8408  else
8409    zsh_cv_func_tgetent_zero_success=no
8410  fi
8411else
8412  zsh_cv_func_tgetent_zero_success=no
8413fi
8414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8415  conftest.$ac_objext conftest.beam conftest.$ac_ext
8416fi
8417
8418fi
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_func_tgetent_zero_success" >&5
8420$as_echo "$zsh_cv_func_tgetent_zero_success" >&6; }
8421
8422if test x$zsh_cv_func_tgetent_zero_success = xyes; then
8423  $as_echo "#define TGETENT_SUCCESS 0" >>confdefs.h
8424
8425else
8426  $as_echo "#define TGETENT_SUCCESS 1" >>confdefs.h
8427
8428fi
8429
8430
8431
8432
8433  for ac_header in $ac_header_list
8434do :
8435  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8436ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8437"
8438if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8439  cat >>confdefs.h <<_ACEOF
8440#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8441_ACEOF
8442
8443fi
8444
8445done
8446
8447
8448
8449
8450
8451
8452
8453
8454for ac_func in getpagesize
8455do :
8456  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8457if test "x$ac_cv_func_getpagesize" = xyes; then :
8458  cat >>confdefs.h <<_ACEOF
8459#define HAVE_GETPAGESIZE 1
8460_ACEOF
8461
8462fi
8463done
8464
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8466$as_echo_n "checking for working mmap... " >&6; }
8467if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8468  $as_echo_n "(cached) " >&6
8469else
8470  if test "$cross_compiling" = yes; then :
8471  ac_cv_func_mmap_fixed_mapped=no
8472else
8473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474/* end confdefs.h.  */
8475$ac_includes_default
8476/* malloc might have been renamed as rpl_malloc. */
8477#undef malloc
8478
8479/* Thanks to Mike Haertel and Jim Avera for this test.
8480   Here is a matrix of mmap possibilities:
8481	mmap private not fixed
8482	mmap private fixed at somewhere currently unmapped
8483	mmap private fixed at somewhere already mapped
8484	mmap shared not fixed
8485	mmap shared fixed at somewhere currently unmapped
8486	mmap shared fixed at somewhere already mapped
8487   For private mappings, we should verify that changes cannot be read()
8488   back from the file, nor mmap's back from the file at a different
8489   address.  (There have been systems where private was not correctly
8490   implemented like the infamous i386 svr4.0, and systems where the
8491   VM page cache was not coherent with the file system buffer cache
8492   like early versions of FreeBSD and possibly contemporary NetBSD.)
8493   For shared mappings, we should conversely verify that changes get
8494   propagated back to all the places they're supposed to be.
8495
8496   Grep wants private fixed already mapped.
8497   The main things grep needs to know about mmap are:
8498   * does it exist and is it safe to write into the mmap'd area
8499   * how to use it (BSD variants)  */
8500
8501#include <fcntl.h>
8502#include <sys/mman.h>
8503
8504#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8505char *malloc ();
8506#endif
8507
8508/* This mess was copied from the GNU getpagesize.h.  */
8509#ifndef HAVE_GETPAGESIZE
8510# ifdef _SC_PAGESIZE
8511#  define getpagesize() sysconf(_SC_PAGESIZE)
8512# else /* no _SC_PAGESIZE */
8513#  ifdef HAVE_SYS_PARAM_H
8514#   include <sys/param.h>
8515#   ifdef EXEC_PAGESIZE
8516#    define getpagesize() EXEC_PAGESIZE
8517#   else /* no EXEC_PAGESIZE */
8518#    ifdef NBPG
8519#     define getpagesize() NBPG * CLSIZE
8520#     ifndef CLSIZE
8521#      define CLSIZE 1
8522#     endif /* no CLSIZE */
8523#    else /* no NBPG */
8524#     ifdef NBPC
8525#      define getpagesize() NBPC
8526#     else /* no NBPC */
8527#      ifdef PAGESIZE
8528#       define getpagesize() PAGESIZE
8529#      endif /* PAGESIZE */
8530#     endif /* no NBPC */
8531#    endif /* no NBPG */
8532#   endif /* no EXEC_PAGESIZE */
8533#  else /* no HAVE_SYS_PARAM_H */
8534#   define getpagesize() 8192	/* punt totally */
8535#  endif /* no HAVE_SYS_PARAM_H */
8536# endif /* no _SC_PAGESIZE */
8537
8538#endif /* no HAVE_GETPAGESIZE */
8539
8540int
8541main ()
8542{
8543  char *data, *data2, *data3;
8544  const char *cdata2;
8545  int i, pagesize;
8546  int fd, fd2;
8547
8548  pagesize = getpagesize ();
8549
8550  /* First, make a file with some known garbage in it. */
8551  data = (char *) malloc (pagesize);
8552  if (!data)
8553    return 1;
8554  for (i = 0; i < pagesize; ++i)
8555    *(data + i) = rand ();
8556  umask (0);
8557  fd = creat ("conftest.mmap", 0600);
8558  if (fd < 0)
8559    return 2;
8560  if (write (fd, data, pagesize) != pagesize)
8561    return 3;
8562  close (fd);
8563
8564  /* Next, check that the tail of a page is zero-filled.  File must have
8565     non-zero length, otherwise we risk SIGBUS for entire page.  */
8566  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8567  if (fd2 < 0)
8568    return 4;
8569  cdata2 = "";
8570  if (write (fd2, cdata2, 1) != 1)
8571    return 5;
8572  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8573  if (data2 == MAP_FAILED)
8574    return 6;
8575  for (i = 0; i < pagesize; ++i)
8576    if (*(data2 + i))
8577      return 7;
8578  close (fd2);
8579  if (munmap (data2, pagesize))
8580    return 8;
8581
8582  /* Next, try to mmap the file at a fixed address which already has
8583     something else allocated at it.  If we can, also make sure that
8584     we see the same garbage.  */
8585  fd = open ("conftest.mmap", O_RDWR);
8586  if (fd < 0)
8587    return 9;
8588  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8589		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
8590    return 10;
8591  for (i = 0; i < pagesize; ++i)
8592    if (*(data + i) != *(data2 + i))
8593      return 11;
8594
8595  /* Finally, make sure that changes to the mapped area do not
8596     percolate back to the file as seen by read().  (This is a bug on
8597     some variants of i386 svr4.0.)  */
8598  for (i = 0; i < pagesize; ++i)
8599    *(data2 + i) = *(data2 + i) + 1;
8600  data3 = (char *) malloc (pagesize);
8601  if (!data3)
8602    return 12;
8603  if (read (fd, data3, pagesize) != pagesize)
8604    return 13;
8605  for (i = 0; i < pagesize; ++i)
8606    if (*(data + i) != *(data3 + i))
8607      return 14;
8608  close (fd);
8609  return 0;
8610}
8611_ACEOF
8612if ac_fn_c_try_run "$LINENO"; then :
8613  ac_cv_func_mmap_fixed_mapped=yes
8614else
8615  ac_cv_func_mmap_fixed_mapped=no
8616fi
8617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8618  conftest.$ac_objext conftest.beam conftest.$ac_ext
8619fi
8620
8621fi
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8623$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8624if test $ac_cv_func_mmap_fixed_mapped = yes; then
8625
8626$as_echo "#define HAVE_MMAP 1" >>confdefs.h
8627
8628fi
8629rm -f conftest.mmap conftest.txt
8630
8631if test x$ac_cv_func_mmap_fixed_mapped = xyes; then
8632  for ac_func in munmap msync
8633do :
8634  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8635ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8636if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8637  cat >>confdefs.h <<_ACEOF
8638#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8639_ACEOF
8640
8641fi
8642done
8643
8644fi
8645
8646if test x$ac_cv_func_setpgrp = xyes; then
8647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
8648$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
8649if ${ac_cv_func_getpgrp_void+:} false; then :
8650  $as_echo_n "(cached) " >&6
8651else
8652  # Use it with a single arg.
8653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654/* end confdefs.h.  */
8655$ac_includes_default
8656int
8657main ()
8658{
8659getpgrp (0);
8660  ;
8661  return 0;
8662}
8663_ACEOF
8664if ac_fn_c_try_compile "$LINENO"; then :
8665  ac_cv_func_getpgrp_void=no
8666else
8667  ac_cv_func_getpgrp_void=yes
8668fi
8669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670
8671fi
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
8673$as_echo "$ac_cv_func_getpgrp_void" >&6; }
8674if test $ac_cv_func_getpgrp_void = yes; then
8675
8676$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
8677
8678fi
8679
8680else
8681          ac_cv_func_getpgrp_void=yes
8682  $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
8683
8684fi
8685
8686if test x$dynamic = xyes; then
8687  for ac_func in dlopen dlerror dlsym dlclose load loadquery loadbind unload \
8688		shl_load shl_unload shl_findsym
8689do :
8690  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8691ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8692if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8693  cat >>confdefs.h <<_ACEOF
8694#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8695_ACEOF
8696
8697fi
8698done
8699
8700fi
8701
8702
8703if test x$ac_cv_func_getxattr = xyes && test x$ac_cv_header_sys_xattr_h = xyes
8704then
8705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getxattr etc. are Linux-like" >&5
8706$as_echo_n "checking if getxattr etc. are Linux-like... " >&6; }
8707if ${zsh_cv_getxattr_linux+:} false; then :
8708  $as_echo_n "(cached) " >&6
8709else
8710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711/* end confdefs.h.  */
8712#include <sys/types.h>
8713#include <sys/xattr.h>
8714int
8715main ()
8716{
8717
8718  (void)listxattr("", 0, 0);
8719  (void)getxattr("", "", 0, 0);
8720  (void)setxattr("", "", "", 0, 0);
8721  (void)removexattr("", "");
8722
8723  ;
8724  return 0;
8725}
8726_ACEOF
8727if ac_fn_c_try_compile "$LINENO"; then :
8728  zsh_cv_getxattr_linux=yes
8729else
8730  zsh_cv_getxattr_linux=no
8731fi
8732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733fi
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_getxattr_linux" >&5
8735$as_echo "$zsh_cv_getxattr_linux" >&6; }
8736
8737  if test x$zsh_cv_getxattr_linux != xyes; then
8738    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getxattr etc. are MAC-like" >&5
8739$as_echo_n "checking if getxattr etc. are MAC-like... " >&6; }
8740if ${zsh_cv_getxattr_mac+:} false; then :
8741  $as_echo_n "(cached) " >&6
8742else
8743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744/* end confdefs.h.  */
8745#include <sys/types.h>
8746#include <sys/xattr.h>
8747int
8748main ()
8749{
8750(void)listxattr("", 0, 0, 0);
8751    (void)getxattr("", "", 0, 0, 0, 0);
8752    (void)setxattr("", "", "", 0, 0, 0);
8753    (void)removexattr("", "", 0);
8754  ;
8755  return 0;
8756}
8757_ACEOF
8758if ac_fn_c_try_compile "$LINENO"; then :
8759  zsh_cv_getxattr_mac=yes
8760else
8761  zsh_cv_getxattr_mac=no
8762fi
8763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764fi
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_getxattr_mac" >&5
8766$as_echo "$zsh_cv_getxattr_mac" >&6; }
8767
8768    if test x$zsh_cv_getxattr_mac = xyes; then
8769      $as_echo "#define XATTR_EXTRA_ARGS 1" >>confdefs.h
8770
8771    fi
8772  fi
8773fi
8774
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getxattr etc. are usable" >&5
8776$as_echo_n "checking if getxattr etc. are usable... " >&6; }
8777if ${zsh_cv_use_xattr+:} false; then :
8778  $as_echo_n "(cached) " >&6
8779else
8780  if test x$zsh_cv_getxattr_linux = xyes || test x$zsh_cv_getxattr_mac = xyes
8781then
8782zsh_cv_use_xattr=yes
8783else
8784zsh_cv_use_xattr=no
8785fi
8786fi
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_use_xattr" >&5
8788$as_echo "$zsh_cv_use_xattr" >&6; }
8789
8790
8791
8792
8793
8794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what style of signals to use" >&5
8795$as_echo_n "checking what style of signals to use... " >&6; }
8796if test x$ac_cv_func_sigaction = xyes && test x$ac_cv_func_sigprocmask = xyes; then
8797  signals_style=POSIX_SIGNALS
8798  $as_echo "#define POSIX_SIGNALS 1" >>confdefs.h
8799
8800elif test x$ac_cv_func_sigblock = xyes && test x$ac_cv_func_sigsetmask = xyes; then
8801  signals_style=BSD_SIGNALS
8802  $as_echo "#define BSD_SIGNALS 1" >>confdefs.h
8803
8804elif test x$ac_cv_func_sighold = xyes && test x$ac_cv_func_sigrelse = xyes; then
8805  signals_style=SYSV_SIGNALS
8806  $as_echo "#define SYSV_SIGNALS 1" >>confdefs.h
8807
8808else
8809  signals_style=NO_SIGNAL_BLOCKING
8810  $as_echo "#define NO_SIGNAL_BLOCKING 1" >>confdefs.h
8811
8812fi
8813cat >>confdefs.h <<_ACEOF
8814#define $signals_style 1
8815_ACEOF
8816
8817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $signals_style" >&5
8818$as_echo "$signals_style" >&6; }
8819
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where signal.h is located" >&5
8821$as_echo_n "checking where signal.h is located... " >&6; }
8822if ${zsh_cv_path_signal_h+:} false; then :
8823  $as_echo_n "(cached) " >&6
8824else
8825  echo "#include <signal.h>" > nametmp.c
8826sigfile_list="`$CPP $CPPFLAGS nametmp.c |
8827sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
8828       -e 's/^#[ 	].*\"\(.*\)\"/\1/p' |
8829sed 's/\\\\\\\\/\//g' |
8830$AWK '{ if ($1 ~ /sig/) files[$1] = $1 }
8831  END { for (var in files) print var }'`"
8832rm -f nametmp.c
8833if test -z "$sigfile_list"; then
8834      sigfile_list="/usr/include/sys/iso/signal_iso.h
8835/usr/include/bsd/sys/signal.h
8836/usr/include/signum.h
8837/usr/include/asm/signum.h
8838/usr/include/asm/signal.h
8839/usr/include/linux/signal.h
8840/usr/include/sys/signal.h
8841/usr/include/bits/signum.h
8842/dev/null"
8843fi
8844for SIGNAL_H in $sigfile_list
8845do
8846        nsigs=`test -f $SIGNAL_H && \
8847  grep '#[ 	]*define[ 	][ 	]*SIG[0-9A-Z]*[ 	]*[0-9][0-9]*' $SIGNAL_H | \
8848  wc -l | sed 's/ 	//g'`
8849  test "x$nsigs" != x && test "$nsigs" -ge 7 && break
8850done
8851if test x$SIGNAL_H = x"/dev/null"; then
8852  as_fn_error $? "SIGNAL MACROS NOT FOUND:  please report to developers" "$LINENO" 5
8853fi
8854zsh_cv_path_signal_h=$SIGNAL_H
8855
8856fi
8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_signal_h" >&5
8858$as_echo "$zsh_cv_path_signal_h" >&6; }
8859SIGNAL_H=$zsh_cv_path_signal_h
8860
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where error names are located" >&5
8862$as_echo_n "checking where error names are located... " >&6; }
8863if ${zsh_cv_path_errno_h+:} false; then :
8864  $as_echo_n "(cached) " >&6
8865else
8866  echo "#include <errno.h>" > nametmp.c
8867errfile_list="`$CPP $CPPFLAGS nametmp.c |
8868sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
8869       -e 's/^#[ 	0-9].*\"\(.*\)\"/\1/p' |
8870sed 's/\\\\\\\\/\//g' |
8871$AWK '{ if ($1 ~ /err/) files[$1] = $1 }
8872  END { for (var in files) print var }'`"
8873rm -f nametmp.c
8874for ERRNO_TRY_H in $errfile_list /dev/null
8875do
8876              nerrs=`test -f $ERRNO_TRY_H && \
8877  $EGREP '#[ 	]*define[ 	][ 	]*E[0-9A-Z]*[ 	]*(_HURD_ERRNO )?\(?[_A-Z0-9]' $ERRNO_TRY_H | \
8878  wc -l | sed 's/ 	//g'`
8879  if test "x$nerrs" != x && test "$nerrs" -ge 1
8880  then
8881    ERRNO_H="$ERRNO_H $ERRNO_TRY_H"
8882  fi
8883done
8884if test x"$ERRNO_H" = x; then
8885  as_fn_error $? "ERROR MACROS NOT FOUND:  please report to developers" "$LINENO" 5
8886fi
8887zsh_cv_path_errno_h="$ERRNO_H"
8888
8889fi
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_errno_h" >&5
8891$as_echo "$zsh_cv_path_errno_h" >&6; }
8892ERRNO_H="$zsh_cv_path_errno_h"
8893
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking location of curses header" >&5
8895$as_echo_n "checking location of curses header... " >&6; }
8896if ${zsh_cv_path_curses_header+:} false; then :
8897  $as_echo_n "(cached) " >&6
8898else
8899  if test x$zsh_cv_ignore_ncurses = xyes; then
8900  if test x$ac_cv_header_curses_h = xyes; then
8901    zsh_cv_path_curses_header=curses.h
8902  else
8903    zsh_cv_path_curses_header=none
8904  fi
8905elif test x$ac_cv_header_ncursesw_ncurses_h = xyes; then
8906  zsh_cv_path_curses_header=ncursesw/ncurses.h
8907elif test x$ac_cv_header_ncurses_ncurses_h = xyes; then
8908  zsh_cv_path_curses_header=ncurses/ncurses.h
8909elif test x$ac_cv_header_ncurses_h = xyes; then
8910  zsh_cv_path_curses_header=ncurses.h
8911elif test x$ac_cv_header_curses_h = xyes; then
8912  zsh_cv_path_curses_header=curses.h
8913else
8914  zsh_cv_path_curses_header=none
8915fi
8916fi
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_curses_header" >&5
8918$as_echo "$zsh_cv_path_curses_header" >&6; }
8919
8920if test x$zsh_cv_path_curses_header != xnone; then
8921  $as_echo "#define ZSH_HAVE_CURSES_H 1" >>confdefs.h
8922
8923  ZSH_CURSES_H=$zsh_cv_path_curses_header
8924else
8925  ZSH_CURSES_H=
8926fi
8927
8928
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where curses key definitions are located" >&5
8930$as_echo_n "checking where curses key definitions are located... " >&6; }
8931if ${zsh_cv_path_curses_keys_h+:} false; then :
8932  $as_echo_n "(cached) " >&6
8933else
8934  if test x$zsh_cv_path_curses_header = xnone; then
8935  echo >nametmp.c
8936else
8937  echo "#include <$zsh_cv_path_curses_header>" >nametmp.c
8938fi
8939
8940curses_list="`$CPP $CPPFLAGS nametmp.c |
8941sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
8942       -e 's/^#[ 	0-9].*\"\(.*\)\"/\1/p' |
8943sed 's/\\\\\\\\/\//g' |
8944$AWK '{ if ($1 ~ /\.h/) files[$1] = $1 }
8945  END { for (var in files) print var }'`"
8946rm -f nametmp.c
8947for CURSES_TRY_H in $curses_list /dev/null
8948do
8949  nkeys=`test -f $CURSES_TRY_H && \
8950  $EGREP '#[ 	]*define[ 	][ 	]*KEY_' $CURSES_TRY_H | \
8951  wc -l | sed 's/ 	//g'`
8952  if test "x$nkeys" != x && test "$nkeys" -ge 10
8953  then
8954    CURSES_KEYS_H=$CURSES_TRY_H
8955    break
8956  fi
8957done
8958zsh_cv_path_curses_keys_h="$CURSES_KEYS_H"
8959
8960fi
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_curses_keys_h" >&5
8962$as_echo "$zsh_cv_path_curses_keys_h" >&6; }
8963CURSES_KEYS_H="$zsh_cv_path_curses_keys_h"
8964
8965for ac_header in ncursesw/term.h
8966do :
8967  ac_fn_c_check_header_compile "$LINENO" "ncursesw/term.h" "ac_cv_header_ncursesw_term_h" "#include <ncursesw/ncurses.h>
8968"
8969if test "x$ac_cv_header_ncursesw_term_h" = xyes; then :
8970  cat >>confdefs.h <<_ACEOF
8971#define HAVE_NCURSESW_TERM_H 1
8972_ACEOF
8973 true
8974else
8975  true
8976fi
8977
8978done
8979
8980for ac_header in ncurses/term.h
8981do :
8982  ac_fn_c_check_header_compile "$LINENO" "ncurses/term.h" "ac_cv_header_ncurses_term_h" "#include <ncurses/ncurses.h>
8983"
8984if test "x$ac_cv_header_ncurses_term_h" = xyes; then :
8985  cat >>confdefs.h <<_ACEOF
8986#define HAVE_NCURSES_TERM_H 1
8987_ACEOF
8988 true
8989else
8990  true
8991fi
8992
8993done
8994
8995for ac_header in term.h
8996do :
8997  ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#include <curses.h>
8998"
8999if test "x$ac_cv_header_term_h" = xyes; then :
9000  cat >>confdefs.h <<_ACEOF
9001#define HAVE_TERM_H 1
9002_ACEOF
9003 true
9004else
9005  true
9006fi
9007
9008done
9009
9010
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where term.h is located" >&5
9012$as_echo_n "checking where term.h is located... " >&6; }
9013if ${zsh_cv_path_term_header+:} false; then :
9014  $as_echo_n "(cached) " >&6
9015else
9016  case x$zsh_cv_path_curses_header in
9017  xncursesw/*)
9018  if test x$ac_cv_header_ncursesw_term_h = xyes; then
9019    zsh_cv_path_term_header=ncursesw/term.h
9020  fi
9021  ;;
9022  xncurses/*)
9023  if test x$ac_cv_header_ncurses_term_h = xyes; then
9024    zsh_cv_path_term_header=ncurses/term.h
9025  fi
9026  ;;
9027esac
9028if test x$zsh_cv_path_term_header = x; then
9029  if test x$ac_cv_header_term_h = xyes; then
9030    zsh_cv_path_term_header=term.h
9031  else
9032    zsh_cv_path_term_header=none
9033  fi
9034fi
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_term_header" >&5
9037$as_echo "$zsh_cv_path_term_header" >&6; }
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048if test x$zsh_cv_path_term_header != xnone; then
9049  $as_echo "#define ZSH_HAVE_TERM_H 1" >>confdefs.h
9050
9051  ZSH_TERM_H=$zsh_cv_path_term_header
9052  if test x$zsh_cv_path_curses_header != xnone; then
9053    term_includes="#include <$zsh_cv_path_curses_header>
9054#include <$zsh_cv_path_term_header>"
9055  else
9056    term_includes="#include <$zsh_cv_path_term_header>"
9057  fi
9058
9059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if boolcodes is available" >&5
9060$as_echo_n "checking if boolcodes is available... " >&6; }
9061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062/* end confdefs.h.  */
9063$term_includes
9064int
9065main ()
9066{
9067char **test = boolcodes; puts(*test);
9068  ;
9069  return 0;
9070}
9071_ACEOF
9072if ac_fn_c_try_link "$LINENO"; then :
9073  $as_echo "#define HAVE_BOOLCODES 1" >>confdefs.h
9074 boolcodes=yes
9075else
9076  boolcodes=no
9077fi
9078rm -f core conftest.err conftest.$ac_objext \
9079    conftest$ac_exeext conftest.$ac_ext
9080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boolcodes" >&5
9081$as_echo "$boolcodes" >&6; }
9082
9083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numcodes is available" >&5
9084$as_echo_n "checking if numcodes is available... " >&6; }
9085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h.  */
9087$term_includes
9088int
9089main ()
9090{
9091char **test = numcodes; puts(*test);
9092  ;
9093  return 0;
9094}
9095_ACEOF
9096if ac_fn_c_try_link "$LINENO"; then :
9097  $as_echo "#define HAVE_NUMCODES 1" >>confdefs.h
9098 numcodes=yes
9099else
9100  numcodes=no
9101fi
9102rm -f core conftest.err conftest.$ac_objext \
9103    conftest$ac_exeext conftest.$ac_ext
9104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $numcodes" >&5
9105$as_echo "$numcodes" >&6; }
9106
9107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcodes is available" >&5
9108$as_echo_n "checking if strcodes is available... " >&6; }
9109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110/* end confdefs.h.  */
9111$term_includes
9112int
9113main ()
9114{
9115char **test = strcodes; puts(*test);
9116  ;
9117  return 0;
9118}
9119_ACEOF
9120if ac_fn_c_try_link "$LINENO"; then :
9121  $as_echo "#define HAVE_STRCODES 1" >>confdefs.h
9122 strcodes=yes
9123else
9124  strcodes=no
9125fi
9126rm -f core conftest.err conftest.$ac_objext \
9127    conftest$ac_exeext conftest.$ac_ext
9128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $strcodes" >&5
9129$as_echo "$strcodes" >&6; }
9130
9131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if boolnames is available" >&5
9132$as_echo_n "checking if boolnames is available... " >&6; }
9133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134/* end confdefs.h.  */
9135$term_includes
9136int
9137main ()
9138{
9139char **test = boolnames; puts(*test);
9140  ;
9141  return 0;
9142}
9143_ACEOF
9144if ac_fn_c_try_link "$LINENO"; then :
9145  $as_echo "#define HAVE_BOOLNAMES 1" >>confdefs.h
9146 boolnames=yes
9147else
9148  boolnames=no
9149fi
9150rm -f core conftest.err conftest.$ac_objext \
9151    conftest$ac_exeext conftest.$ac_ext
9152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boolnames" >&5
9153$as_echo "$boolnames" >&6; }
9154
9155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numnames is available" >&5
9156$as_echo_n "checking if numnames is available... " >&6; }
9157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158/* end confdefs.h.  */
9159$term_includes
9160int
9161main ()
9162{
9163char **test = numnames; puts(*test);
9164  ;
9165  return 0;
9166}
9167_ACEOF
9168if ac_fn_c_try_link "$LINENO"; then :
9169  $as_echo "#define HAVE_NUMNAMES 1" >>confdefs.h
9170 numnames=yes
9171else
9172  numnames=no
9173fi
9174rm -f core conftest.err conftest.$ac_objext \
9175    conftest$ac_exeext conftest.$ac_ext
9176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $numnames" >&5
9177$as_echo "$numnames" >&6; }
9178
9179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnames is available" >&5
9180$as_echo_n "checking if strnames is available... " >&6; }
9181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182/* end confdefs.h.  */
9183$term_includes
9184int
9185main ()
9186{
9187char **test = strnames; puts(*test);
9188  ;
9189  return 0;
9190}
9191_ACEOF
9192if ac_fn_c_try_link "$LINENO"; then :
9193  $as_echo "#define HAVE_STRNAMES 1" >>confdefs.h
9194 strnames=yes
9195else
9196  strnames=no
9197fi
9198rm -f core conftest.err conftest.$ac_objext \
9199    conftest$ac_exeext conftest.$ac_ext
9200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $strnames" >&5
9201$as_echo "$strnames" >&6; }
9202
9203      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tgoto prototype is missing" >&5
9204$as_echo_n "checking if tgoto prototype is missing... " >&6; }
9205  tgoto_includes="$term_includes
9206/* guaranteed to clash with any valid tgoto prototype */
9207extern void tgoto(int **stuff, float **more_stuff);"
9208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209/* end confdefs.h.  */
9210$tgoto_includes
9211int
9212main ()
9213{
9214int *stuff; float *more_stuff; tgoto(&stuff, &more_stuff);
9215  ;
9216  return 0;
9217}
9218_ACEOF
9219if ac_fn_c_try_link "$LINENO"; then :
9220  $as_echo "#define TGOTO_PROTO_MISSING 1" >>confdefs.h
9221 tgotoprotomissing=yes
9222else
9223  tgotoprotomissing=no
9224fi
9225rm -f core conftest.err conftest.$ac_objext \
9226    conftest$ac_exeext conftest.$ac_ext
9227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tgotoprotomissing" >&5
9228$as_echo "$tgotoprotomissing" >&6; }
9229else
9230  ZSH_TERM_H=
9231fi
9232
9233
9234
9235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where the RLIMIT macros are located" >&5
9236$as_echo_n "checking where the RLIMIT macros are located... " >&6; }
9237if ${zsh_cv_path_rlimit_h+:} false; then :
9238  $as_echo_n "(cached) " >&6
9239else
9240  echo "#include <sys/resource.h>" >restmp.c
9241resourcefile_list="`$CPP $CPPFLAGS restmp.c |
9242sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
9243       -e 's/^#[ 	].*\"\(.*\)\"/\1/p' |
9244sed 's/\\\\\\\\/\//g' |
9245$AWK '{ if ($1 ~ /resource/) files[$1] = $1 }
9246  END { for (var in files) print var }'`"
9247rm -f restmp.c
9248if test -z "$resourcefile_list"; then
9249    resourcefile_list="/usr/include/bsd/sys/resource.h
9250/usr/include/asm/resource.h
9251/usr/include/linux/resource.h
9252/usr/include/sys/resource.h
9253/usr/include/bits/resource.h
9254/usr/include/resourcebits.h"
9255fi
9256for RESOURCE_H in $resourcefile_list /dev/null;
9257do
9258  test -f $RESOURCE_H && \
9259  grep '#[ 	]*define[ 	][ 	]*RLIMIT_[A-Z]*[ 	]*[0-9A-Z][0-9]*' $RESOURCE_H > /dev/null && \
9260  break
9261done
9262zsh_cv_path_rlimit_h=$RESOURCE_H
9263if test x$RESOURCE_H = x"/dev/null" && test x$ac_cv_func_getrlimit = xyes; then
9264  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: RLIMIT MACROS NOT FOUND:  please report to developers" >&5
9265$as_echo "$as_me: WARNING: RLIMIT MACROS NOT FOUND:  please report to developers" >&2;}
9266fi
9267fi
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_rlimit_h" >&5
9269$as_echo "$zsh_cv_path_rlimit_h" >&6; }
9270RLIMITS_INC_H=$zsh_cv_path_rlimit_h
9271if test "$RLIMITS_INC_H" = "/dev/null"; then
9272  RLIMITS_INC_H=''
9273fi
9274
9275
9276
9277
9278
9279DEFAULT_RLIM_T=long
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if rlim_t is longer than a long" >&5
9281$as_echo_n "checking if rlim_t is longer than a long... " >&6; }
9282if ${zsh_cv_rlim_t_is_longer+:} false; then :
9283  $as_echo_n "(cached) " >&6
9284else
9285  if test "$cross_compiling" = yes; then :
9286  zsh_cv_rlim_t_is_longer=yes
9287else
9288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289/* end confdefs.h.  */
9290
9291#ifdef HAVE_SYS_TIME_H
9292#include <sys/time.h>
9293#endif
9294#include <sys/resource.h>
9295main(){struct rlimit r;exit(sizeof(r.rlim_cur) <= sizeof(long));}
9296_ACEOF
9297if ac_fn_c_try_run "$LINENO"; then :
9298  zsh_cv_rlim_t_is_longer=yes
9299else
9300  zsh_cv_rlim_t_is_longer=no
9301fi
9302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9303  conftest.$ac_objext conftest.beam conftest.$ac_ext
9304fi
9305
9306fi
9307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_rlim_t_is_longer" >&5
9308$as_echo "$zsh_cv_rlim_t_is_longer" >&6; }
9309if test x$zsh_cv_rlim_t_is_longer = xyes; then
9310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if rlim_t is a quad" >&5
9311$as_echo_n "checking if rlim_t is a quad... " >&6; }
9312if ${zsh_cv_rlim_t_is_quad_t+:} false; then :
9313  $as_echo_n "(cached) " >&6
9314else
9315  if test "$cross_compiling" = yes; then :
9316  zsh_cv_rlim_t_is_quad_t=no
9317else
9318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319/* end confdefs.h.  */
9320
9321#ifdef HAVE_SYS_TIME_H
9322#include <sys/time.h>
9323#endif
9324#include <stdio.h>
9325#include <sys/resource.h>
9326main() {
9327  struct rlimit r;
9328  char buf[20];
9329  r.rlim_cur = 0;
9330  sprintf(buf, "%qd", r.rlim_cur);
9331  exit(strcmp(buf, "0"));
9332}
9333_ACEOF
9334if ac_fn_c_try_run "$LINENO"; then :
9335  zsh_cv_rlim_t_is_quad_t=yes
9336else
9337  zsh_cv_rlim_t_is_quad_t=no
9338fi
9339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9340  conftest.$ac_objext conftest.beam conftest.$ac_ext
9341fi
9342
9343fi
9344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_rlim_t_is_quad_t" >&5
9345$as_echo "$zsh_cv_rlim_t_is_quad_t" >&6; }
9346  if test x$zsh_cv_rlim_t_is_quad_t = xyes; then
9347    $as_echo "#define RLIM_T_IS_QUAD_T 1" >>confdefs.h
9348
9349    DEFAULT_RLIM_T=quad_t
9350  else
9351    $as_echo "#define RLIM_T_IS_LONG_LONG 1" >>confdefs.h
9352
9353    DEFAULT_RLIM_T='long long'
9354  fi
9355else
9356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rlim_t is unsigned" >&5
9357$as_echo_n "checking if the rlim_t is unsigned... " >&6; }
9358if ${zsh_cv_type_rlim_t_is_unsigned+:} false; then :
9359  $as_echo_n "(cached) " >&6
9360else
9361  if test "$cross_compiling" = yes; then :
9362  zsh_cv_type_rlim_t_is_unsigned=no
9363else
9364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365/* end confdefs.h.  */
9366
9367#ifdef HAVE_SYS_TIME_H
9368#include <sys/time.h>
9369#endif
9370#include <sys/resource.h>
9371  main(){struct rlimit r;r.rlim_cur=-1;exit(r.rlim_cur<0);}
9372_ACEOF
9373if ac_fn_c_try_run "$LINENO"; then :
9374  zsh_cv_type_rlim_t_is_unsigned=yes
9375else
9376  zsh_cv_type_rlim_t_is_unsigned=no
9377fi
9378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9379  conftest.$ac_objext conftest.beam conftest.$ac_ext
9380fi
9381
9382fi
9383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_rlim_t_is_unsigned" >&5
9384$as_echo "$zsh_cv_type_rlim_t_is_unsigned" >&6; }
9385  if test x$zsh_cv_type_rlim_t_is_unsigned = xyes; then
9386    $as_echo "#define RLIM_T_IS_UNSIGNED 1" >>confdefs.h
9387
9388    DEFAULT_RLIM_T="unsigned $DEFAULT_RLIM_T"
9389  fi
9390fi
9391
9392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
9393$as_echo_n "checking for rlim_t... " >&6; }
9394if ${zsh_cv_type_rlim_t+:} false; then :
9395  $as_echo_n "(cached) " >&6
9396else
9397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398/* end confdefs.h.  */
9399
9400#include <sys/types.h>
9401#ifdef HAVE_SYS_TIME_H
9402#include <sys/time.h>
9403#endif
9404#include <sys/resource.h>
9405int
9406main ()
9407{
9408rlim_t l;
9409  ;
9410  return 0;
9411}
9412_ACEOF
9413if ac_fn_c_try_compile "$LINENO"; then :
9414  zsh_cv_type_rlim_t=yes
9415else
9416  zsh_cv_type_rlim_t=no
9417fi
9418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419fi
9420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_rlim_t" >&5
9421$as_echo "$zsh_cv_type_rlim_t" >&6; }
9422if test x$zsh_cv_type_rlim_t = xno; then
9423  cat >>confdefs.h <<_ACEOF
9424#define rlim_t $DEFAULT_RLIM_T
9425_ACEOF
9426
9427fi
9428
9429
9430
9431
9432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_AIO_MEM" >&5
9433$as_echo_n "checking for limit RLIMIT_AIO_MEM... " >&6; }
9434if ${zsh_cv_have_RLIMIT_AIO_MEM+:} false; then :
9435  $as_echo_n "(cached) " >&6
9436else
9437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438/* end confdefs.h.  */
9439
9440#include <sys/types.h>
9441#ifdef HAVE_SYS_TIME_H
9442#include <sys/time.h>
9443#endif
9444#include <sys/resource.h>
9445int
9446main ()
9447{
9448RLIMIT_AIO_MEM
9449  ;
9450  return 0;
9451}
9452_ACEOF
9453if ac_fn_c_try_compile "$LINENO"; then :
9454  zsh_cv_have_RLIMIT_AIO_MEM=yes
9455else
9456  zsh_cv_have_RLIMIT_AIO_MEM=no
9457fi
9458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9459fi
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_AIO_MEM" >&5
9461$as_echo "$zsh_cv_have_RLIMIT_AIO_MEM" >&6; }
9462
9463if test $zsh_cv_have_RLIMIT_AIO_MEM = yes; then
9464  $as_echo "#define HAVE_RLIMIT_AIO_MEM 1" >>confdefs.h
9465
9466fi
9467
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_AIO_OPS" >&5
9469$as_echo_n "checking for limit RLIMIT_AIO_OPS... " >&6; }
9470if ${zsh_cv_have_RLIMIT_AIO_OPS+:} false; then :
9471  $as_echo_n "(cached) " >&6
9472else
9473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474/* end confdefs.h.  */
9475
9476#include <sys/types.h>
9477#ifdef HAVE_SYS_TIME_H
9478#include <sys/time.h>
9479#endif
9480#include <sys/resource.h>
9481int
9482main ()
9483{
9484RLIMIT_AIO_OPS
9485  ;
9486  return 0;
9487}
9488_ACEOF
9489if ac_fn_c_try_compile "$LINENO"; then :
9490  zsh_cv_have_RLIMIT_AIO_OPS=yes
9491else
9492  zsh_cv_have_RLIMIT_AIO_OPS=no
9493fi
9494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9495fi
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_AIO_OPS" >&5
9497$as_echo "$zsh_cv_have_RLIMIT_AIO_OPS" >&6; }
9498
9499if test $zsh_cv_have_RLIMIT_AIO_OPS = yes; then
9500  $as_echo "#define HAVE_RLIMIT_AIO_OPS 1" >>confdefs.h
9501
9502fi
9503
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_AS" >&5
9505$as_echo_n "checking for limit RLIMIT_AS... " >&6; }
9506if ${zsh_cv_have_RLIMIT_AS+:} false; then :
9507  $as_echo_n "(cached) " >&6
9508else
9509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510/* end confdefs.h.  */
9511
9512#include <sys/types.h>
9513#ifdef HAVE_SYS_TIME_H
9514#include <sys/time.h>
9515#endif
9516#include <sys/resource.h>
9517int
9518main ()
9519{
9520RLIMIT_AS
9521  ;
9522  return 0;
9523}
9524_ACEOF
9525if ac_fn_c_try_compile "$LINENO"; then :
9526  zsh_cv_have_RLIMIT_AS=yes
9527else
9528  zsh_cv_have_RLIMIT_AS=no
9529fi
9530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9531fi
9532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_AS" >&5
9533$as_echo "$zsh_cv_have_RLIMIT_AS" >&6; }
9534
9535if test $zsh_cv_have_RLIMIT_AS = yes; then
9536  $as_echo "#define HAVE_RLIMIT_AS 1" >>confdefs.h
9537
9538fi
9539
9540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_LOCKS" >&5
9541$as_echo_n "checking for limit RLIMIT_LOCKS... " >&6; }
9542if ${zsh_cv_have_RLIMIT_LOCKS+:} false; then :
9543  $as_echo_n "(cached) " >&6
9544else
9545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9546/* end confdefs.h.  */
9547
9548#include <sys/types.h>
9549#ifdef HAVE_SYS_TIME_H
9550#include <sys/time.h>
9551#endif
9552#include <sys/resource.h>
9553int
9554main ()
9555{
9556RLIMIT_LOCKS
9557  ;
9558  return 0;
9559}
9560_ACEOF
9561if ac_fn_c_try_compile "$LINENO"; then :
9562  zsh_cv_have_RLIMIT_LOCKS=yes
9563else
9564  zsh_cv_have_RLIMIT_LOCKS=no
9565fi
9566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567fi
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_LOCKS" >&5
9569$as_echo "$zsh_cv_have_RLIMIT_LOCKS" >&6; }
9570
9571if test $zsh_cv_have_RLIMIT_LOCKS = yes; then
9572  $as_echo "#define HAVE_RLIMIT_LOCKS 1" >>confdefs.h
9573
9574fi
9575
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_MEMLOCK" >&5
9577$as_echo_n "checking for limit RLIMIT_MEMLOCK... " >&6; }
9578if ${zsh_cv_have_RLIMIT_MEMLOCK+:} false; then :
9579  $as_echo_n "(cached) " >&6
9580else
9581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582/* end confdefs.h.  */
9583
9584#include <sys/types.h>
9585#ifdef HAVE_SYS_TIME_H
9586#include <sys/time.h>
9587#endif
9588#include <sys/resource.h>
9589int
9590main ()
9591{
9592RLIMIT_MEMLOCK
9593  ;
9594  return 0;
9595}
9596_ACEOF
9597if ac_fn_c_try_compile "$LINENO"; then :
9598  zsh_cv_have_RLIMIT_MEMLOCK=yes
9599else
9600  zsh_cv_have_RLIMIT_MEMLOCK=no
9601fi
9602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603fi
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_MEMLOCK" >&5
9605$as_echo "$zsh_cv_have_RLIMIT_MEMLOCK" >&6; }
9606
9607if test $zsh_cv_have_RLIMIT_MEMLOCK = yes; then
9608  $as_echo "#define HAVE_RLIMIT_MEMLOCK 1" >>confdefs.h
9609
9610fi
9611
9612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_NPROC" >&5
9613$as_echo_n "checking for limit RLIMIT_NPROC... " >&6; }
9614if ${zsh_cv_have_RLIMIT_NPROC+:} false; then :
9615  $as_echo_n "(cached) " >&6
9616else
9617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618/* end confdefs.h.  */
9619
9620#include <sys/types.h>
9621#ifdef HAVE_SYS_TIME_H
9622#include <sys/time.h>
9623#endif
9624#include <sys/resource.h>
9625int
9626main ()
9627{
9628RLIMIT_NPROC
9629  ;
9630  return 0;
9631}
9632_ACEOF
9633if ac_fn_c_try_compile "$LINENO"; then :
9634  zsh_cv_have_RLIMIT_NPROC=yes
9635else
9636  zsh_cv_have_RLIMIT_NPROC=no
9637fi
9638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639fi
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_NPROC" >&5
9641$as_echo "$zsh_cv_have_RLIMIT_NPROC" >&6; }
9642
9643if test $zsh_cv_have_RLIMIT_NPROC = yes; then
9644  $as_echo "#define HAVE_RLIMIT_NPROC 1" >>confdefs.h
9645
9646fi
9647
9648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_NTHR" >&5
9649$as_echo_n "checking for limit RLIMIT_NTHR... " >&6; }
9650if ${zsh_cv_have_RLIMIT_NTHR+:} false; then :
9651  $as_echo_n "(cached) " >&6
9652else
9653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654/* end confdefs.h.  */
9655
9656#include <sys/types.h>
9657#ifdef HAVE_SYS_TIME_H
9658#include <sys/time.h>
9659#endif
9660#include <sys/resource.h>
9661int
9662main ()
9663{
9664RLIMIT_NTHR
9665  ;
9666  return 0;
9667}
9668_ACEOF
9669if ac_fn_c_try_compile "$LINENO"; then :
9670  zsh_cv_have_RLIMIT_NTHR=yes
9671else
9672  zsh_cv_have_RLIMIT_NTHR=no
9673fi
9674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9675fi
9676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_NTHR" >&5
9677$as_echo "$zsh_cv_have_RLIMIT_NTHR" >&6; }
9678
9679if test $zsh_cv_have_RLIMIT_NTHR = yes; then
9680  $as_echo "#define HAVE_RLIMIT_NTHR 1" >>confdefs.h
9681
9682fi
9683
9684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_NOFILE" >&5
9685$as_echo_n "checking for limit RLIMIT_NOFILE... " >&6; }
9686if ${zsh_cv_have_RLIMIT_NOFILE+:} false; then :
9687  $as_echo_n "(cached) " >&6
9688else
9689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690/* end confdefs.h.  */
9691
9692#include <sys/types.h>
9693#ifdef HAVE_SYS_TIME_H
9694#include <sys/time.h>
9695#endif
9696#include <sys/resource.h>
9697int
9698main ()
9699{
9700RLIMIT_NOFILE
9701  ;
9702  return 0;
9703}
9704_ACEOF
9705if ac_fn_c_try_compile "$LINENO"; then :
9706  zsh_cv_have_RLIMIT_NOFILE=yes
9707else
9708  zsh_cv_have_RLIMIT_NOFILE=no
9709fi
9710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9711fi
9712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_NOFILE" >&5
9713$as_echo "$zsh_cv_have_RLIMIT_NOFILE" >&6; }
9714
9715if test $zsh_cv_have_RLIMIT_NOFILE = yes; then
9716  $as_echo "#define HAVE_RLIMIT_NOFILE 1" >>confdefs.h
9717
9718fi
9719
9720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_PTHREAD" >&5
9721$as_echo_n "checking for limit RLIMIT_PTHREAD... " >&6; }
9722if ${zsh_cv_have_RLIMIT_PTHREAD+:} false; then :
9723  $as_echo_n "(cached) " >&6
9724else
9725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726/* end confdefs.h.  */
9727
9728#include <sys/types.h>
9729#ifdef HAVE_SYS_TIME_H
9730#include <sys/time.h>
9731#endif
9732#include <sys/resource.h>
9733int
9734main ()
9735{
9736RLIMIT_PTHREAD
9737  ;
9738  return 0;
9739}
9740_ACEOF
9741if ac_fn_c_try_compile "$LINENO"; then :
9742  zsh_cv_have_RLIMIT_PTHREAD=yes
9743else
9744  zsh_cv_have_RLIMIT_PTHREAD=no
9745fi
9746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747fi
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_PTHREAD" >&5
9749$as_echo "$zsh_cv_have_RLIMIT_PTHREAD" >&6; }
9750
9751if test $zsh_cv_have_RLIMIT_PTHREAD = yes; then
9752  $as_echo "#define HAVE_RLIMIT_PTHREAD 1" >>confdefs.h
9753
9754fi
9755
9756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_RSS" >&5
9757$as_echo_n "checking for limit RLIMIT_RSS... " >&6; }
9758if ${zsh_cv_have_RLIMIT_RSS+:} false; then :
9759  $as_echo_n "(cached) " >&6
9760else
9761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762/* end confdefs.h.  */
9763
9764#include <sys/types.h>
9765#ifdef HAVE_SYS_TIME_H
9766#include <sys/time.h>
9767#endif
9768#include <sys/resource.h>
9769int
9770main ()
9771{
9772RLIMIT_RSS
9773  ;
9774  return 0;
9775}
9776_ACEOF
9777if ac_fn_c_try_compile "$LINENO"; then :
9778  zsh_cv_have_RLIMIT_RSS=yes
9779else
9780  zsh_cv_have_RLIMIT_RSS=no
9781fi
9782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9783fi
9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_RSS" >&5
9785$as_echo "$zsh_cv_have_RLIMIT_RSS" >&6; }
9786
9787if test $zsh_cv_have_RLIMIT_RSS = yes; then
9788  $as_echo "#define HAVE_RLIMIT_RSS 1" >>confdefs.h
9789
9790fi
9791
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_SBSIZE" >&5
9793$as_echo_n "checking for limit RLIMIT_SBSIZE... " >&6; }
9794if ${zsh_cv_have_RLIMIT_SBSIZE+:} false; then :
9795  $as_echo_n "(cached) " >&6
9796else
9797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798/* end confdefs.h.  */
9799
9800#include <sys/types.h>
9801#ifdef HAVE_SYS_TIME_H
9802#include <sys/time.h>
9803#endif
9804#include <sys/resource.h>
9805int
9806main ()
9807{
9808RLIMIT_SBSIZE
9809  ;
9810  return 0;
9811}
9812_ACEOF
9813if ac_fn_c_try_compile "$LINENO"; then :
9814  zsh_cv_have_RLIMIT_SBSIZE=yes
9815else
9816  zsh_cv_have_RLIMIT_SBSIZE=no
9817fi
9818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9819fi
9820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_SBSIZE" >&5
9821$as_echo "$zsh_cv_have_RLIMIT_SBSIZE" >&6; }
9822
9823if test $zsh_cv_have_RLIMIT_SBSIZE = yes; then
9824  $as_echo "#define HAVE_RLIMIT_SBSIZE 1" >>confdefs.h
9825
9826fi
9827
9828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_TCACHE" >&5
9829$as_echo_n "checking for limit RLIMIT_TCACHE... " >&6; }
9830if ${zsh_cv_have_RLIMIT_TCACHE+:} false; then :
9831  $as_echo_n "(cached) " >&6
9832else
9833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834/* end confdefs.h.  */
9835
9836#include <sys/types.h>
9837#ifdef HAVE_SYS_TIME_H
9838#include <sys/time.h>
9839#endif
9840#include <sys/resource.h>
9841int
9842main ()
9843{
9844RLIMIT_TCACHE
9845  ;
9846  return 0;
9847}
9848_ACEOF
9849if ac_fn_c_try_compile "$LINENO"; then :
9850  zsh_cv_have_RLIMIT_TCACHE=yes
9851else
9852  zsh_cv_have_RLIMIT_TCACHE=no
9853fi
9854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9855fi
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_TCACHE" >&5
9857$as_echo "$zsh_cv_have_RLIMIT_TCACHE" >&6; }
9858
9859if test $zsh_cv_have_RLIMIT_TCACHE = yes; then
9860  $as_echo "#define HAVE_RLIMIT_TCACHE 1" >>confdefs.h
9861
9862fi
9863
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_VMEM" >&5
9865$as_echo_n "checking for limit RLIMIT_VMEM... " >&6; }
9866if ${zsh_cv_have_RLIMIT_VMEM+:} false; then :
9867  $as_echo_n "(cached) " >&6
9868else
9869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870/* end confdefs.h.  */
9871
9872#include <sys/types.h>
9873#ifdef HAVE_SYS_TIME_H
9874#include <sys/time.h>
9875#endif
9876#include <sys/resource.h>
9877int
9878main ()
9879{
9880RLIMIT_VMEM
9881  ;
9882  return 0;
9883}
9884_ACEOF
9885if ac_fn_c_try_compile "$LINENO"; then :
9886  zsh_cv_have_RLIMIT_VMEM=yes
9887else
9888  zsh_cv_have_RLIMIT_VMEM=no
9889fi
9890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9891fi
9892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_VMEM" >&5
9893$as_echo "$zsh_cv_have_RLIMIT_VMEM" >&6; }
9894
9895if test $zsh_cv_have_RLIMIT_VMEM = yes; then
9896  $as_echo "#define HAVE_RLIMIT_VMEM 1" >>confdefs.h
9897
9898fi
9899
9900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_SIGPENDING" >&5
9901$as_echo_n "checking for limit RLIMIT_SIGPENDING... " >&6; }
9902if ${zsh_cv_have_RLIMIT_SIGPENDING+:} false; then :
9903  $as_echo_n "(cached) " >&6
9904else
9905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906/* end confdefs.h.  */
9907
9908#include <sys/types.h>
9909#ifdef HAVE_SYS_TIME_H
9910#include <sys/time.h>
9911#endif
9912#include <sys/resource.h>
9913int
9914main ()
9915{
9916RLIMIT_SIGPENDING
9917  ;
9918  return 0;
9919}
9920_ACEOF
9921if ac_fn_c_try_compile "$LINENO"; then :
9922  zsh_cv_have_RLIMIT_SIGPENDING=yes
9923else
9924  zsh_cv_have_RLIMIT_SIGPENDING=no
9925fi
9926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9927fi
9928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_SIGPENDING" >&5
9929$as_echo "$zsh_cv_have_RLIMIT_SIGPENDING" >&6; }
9930
9931if test $zsh_cv_have_RLIMIT_SIGPENDING = yes; then
9932  $as_echo "#define HAVE_RLIMIT_SIGPENDING 1" >>confdefs.h
9933
9934fi
9935
9936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_MSGQUEUE" >&5
9937$as_echo_n "checking for limit RLIMIT_MSGQUEUE... " >&6; }
9938if ${zsh_cv_have_RLIMIT_MSGQUEUE+:} false; then :
9939  $as_echo_n "(cached) " >&6
9940else
9941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942/* end confdefs.h.  */
9943
9944#include <sys/types.h>
9945#ifdef HAVE_SYS_TIME_H
9946#include <sys/time.h>
9947#endif
9948#include <sys/resource.h>
9949int
9950main ()
9951{
9952RLIMIT_MSGQUEUE
9953  ;
9954  return 0;
9955}
9956_ACEOF
9957if ac_fn_c_try_compile "$LINENO"; then :
9958  zsh_cv_have_RLIMIT_MSGQUEUE=yes
9959else
9960  zsh_cv_have_RLIMIT_MSGQUEUE=no
9961fi
9962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9963fi
9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_MSGQUEUE" >&5
9965$as_echo "$zsh_cv_have_RLIMIT_MSGQUEUE" >&6; }
9966
9967if test $zsh_cv_have_RLIMIT_MSGQUEUE = yes; then
9968  $as_echo "#define HAVE_RLIMIT_MSGQUEUE 1" >>confdefs.h
9969
9970fi
9971
9972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_NICE" >&5
9973$as_echo_n "checking for limit RLIMIT_NICE... " >&6; }
9974if ${zsh_cv_have_RLIMIT_NICE+:} false; then :
9975  $as_echo_n "(cached) " >&6
9976else
9977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978/* end confdefs.h.  */
9979
9980#include <sys/types.h>
9981#ifdef HAVE_SYS_TIME_H
9982#include <sys/time.h>
9983#endif
9984#include <sys/resource.h>
9985int
9986main ()
9987{
9988RLIMIT_NICE
9989  ;
9990  return 0;
9991}
9992_ACEOF
9993if ac_fn_c_try_compile "$LINENO"; then :
9994  zsh_cv_have_RLIMIT_NICE=yes
9995else
9996  zsh_cv_have_RLIMIT_NICE=no
9997fi
9998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9999fi
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_NICE" >&5
10001$as_echo "$zsh_cv_have_RLIMIT_NICE" >&6; }
10002
10003if test $zsh_cv_have_RLIMIT_NICE = yes; then
10004  $as_echo "#define HAVE_RLIMIT_NICE 1" >>confdefs.h
10005
10006fi
10007
10008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_RTPRIO" >&5
10009$as_echo_n "checking for limit RLIMIT_RTPRIO... " >&6; }
10010if ${zsh_cv_have_RLIMIT_RTPRIO+:} false; then :
10011  $as_echo_n "(cached) " >&6
10012else
10013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014/* end confdefs.h.  */
10015
10016#include <sys/types.h>
10017#ifdef HAVE_SYS_TIME_H
10018#include <sys/time.h>
10019#endif
10020#include <sys/resource.h>
10021int
10022main ()
10023{
10024RLIMIT_RTPRIO
10025  ;
10026  return 0;
10027}
10028_ACEOF
10029if ac_fn_c_try_compile "$LINENO"; then :
10030  zsh_cv_have_RLIMIT_RTPRIO=yes
10031else
10032  zsh_cv_have_RLIMIT_RTPRIO=no
10033fi
10034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10035fi
10036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_RTPRIO" >&5
10037$as_echo "$zsh_cv_have_RLIMIT_RTPRIO" >&6; }
10038
10039if test $zsh_cv_have_RLIMIT_RTPRIO = yes; then
10040  $as_echo "#define HAVE_RLIMIT_RTPRIO 1" >>confdefs.h
10041
10042fi
10043
10044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_POSIXLOCKS" >&5
10045$as_echo_n "checking for limit RLIMIT_POSIXLOCKS... " >&6; }
10046if ${zsh_cv_have_RLIMIT_POSIXLOCKS+:} false; then :
10047  $as_echo_n "(cached) " >&6
10048else
10049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050/* end confdefs.h.  */
10051
10052#include <sys/types.h>
10053#ifdef HAVE_SYS_TIME_H
10054#include <sys/time.h>
10055#endif
10056#include <sys/resource.h>
10057int
10058main ()
10059{
10060RLIMIT_POSIXLOCKS
10061  ;
10062  return 0;
10063}
10064_ACEOF
10065if ac_fn_c_try_compile "$LINENO"; then :
10066  zsh_cv_have_RLIMIT_POSIXLOCKS=yes
10067else
10068  zsh_cv_have_RLIMIT_POSIXLOCKS=no
10069fi
10070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071fi
10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_POSIXLOCKS" >&5
10073$as_echo "$zsh_cv_have_RLIMIT_POSIXLOCKS" >&6; }
10074
10075if test $zsh_cv_have_RLIMIT_POSIXLOCKS = yes; then
10076  $as_echo "#define HAVE_RLIMIT_POSIXLOCKS 1" >>confdefs.h
10077
10078fi
10079
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_NPTS" >&5
10081$as_echo_n "checking for limit RLIMIT_NPTS... " >&6; }
10082if ${zsh_cv_have_RLIMIT_NPTS+:} false; then :
10083  $as_echo_n "(cached) " >&6
10084else
10085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086/* end confdefs.h.  */
10087
10088#include <sys/types.h>
10089#ifdef HAVE_SYS_TIME_H
10090#include <sys/time.h>
10091#endif
10092#include <sys/resource.h>
10093int
10094main ()
10095{
10096RLIMIT_NPTS
10097  ;
10098  return 0;
10099}
10100_ACEOF
10101if ac_fn_c_try_compile "$LINENO"; then :
10102  zsh_cv_have_RLIMIT_NPTS=yes
10103else
10104  zsh_cv_have_RLIMIT_NPTS=no
10105fi
10106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10107fi
10108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_NPTS" >&5
10109$as_echo "$zsh_cv_have_RLIMIT_NPTS" >&6; }
10110
10111if test $zsh_cv_have_RLIMIT_NPTS = yes; then
10112  $as_echo "#define HAVE_RLIMIT_NPTS 1" >>confdefs.h
10113
10114fi
10115
10116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_SWAP" >&5
10117$as_echo_n "checking for limit RLIMIT_SWAP... " >&6; }
10118if ${zsh_cv_have_RLIMIT_SWAP+:} false; then :
10119  $as_echo_n "(cached) " >&6
10120else
10121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122/* end confdefs.h.  */
10123
10124#include <sys/types.h>
10125#ifdef HAVE_SYS_TIME_H
10126#include <sys/time.h>
10127#endif
10128#include <sys/resource.h>
10129int
10130main ()
10131{
10132RLIMIT_SWAP
10133  ;
10134  return 0;
10135}
10136_ACEOF
10137if ac_fn_c_try_compile "$LINENO"; then :
10138  zsh_cv_have_RLIMIT_SWAP=yes
10139else
10140  zsh_cv_have_RLIMIT_SWAP=no
10141fi
10142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10143fi
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_SWAP" >&5
10145$as_echo "$zsh_cv_have_RLIMIT_SWAP" >&6; }
10146
10147if test $zsh_cv_have_RLIMIT_SWAP = yes; then
10148  $as_echo "#define HAVE_RLIMIT_SWAP 1" >>confdefs.h
10149
10150fi
10151
10152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_KQUEUES" >&5
10153$as_echo_n "checking for limit RLIMIT_KQUEUES... " >&6; }
10154if ${zsh_cv_have_RLIMIT_KQUEUES+:} false; then :
10155  $as_echo_n "(cached) " >&6
10156else
10157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158/* end confdefs.h.  */
10159
10160#include <sys/types.h>
10161#ifdef HAVE_SYS_TIME_H
10162#include <sys/time.h>
10163#endif
10164#include <sys/resource.h>
10165int
10166main ()
10167{
10168RLIMIT_KQUEUES
10169  ;
10170  return 0;
10171}
10172_ACEOF
10173if ac_fn_c_try_compile "$LINENO"; then :
10174  zsh_cv_have_RLIMIT_KQUEUES=yes
10175else
10176  zsh_cv_have_RLIMIT_KQUEUES=no
10177fi
10178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10179fi
10180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_KQUEUES" >&5
10181$as_echo "$zsh_cv_have_RLIMIT_KQUEUES" >&6; }
10182
10183if test $zsh_cv_have_RLIMIT_KQUEUES = yes; then
10184  $as_echo "#define HAVE_RLIMIT_KQUEUES 1" >>confdefs.h
10185
10186fi
10187
10188
10189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RLIMIT_VMEM and RLIMIT_RSS are the same" >&5
10190$as_echo_n "checking if RLIMIT_VMEM and RLIMIT_RSS are the same... " >&6; }
10191if ${zsh_cv_rlimit_vmem_is_rss+:} false; then :
10192  $as_echo_n "(cached) " >&6
10193else
10194  if test "$cross_compiling" = yes; then :
10195  zsh_cv_rlimit_vmem_is_rss=no
10196else
10197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198/* end confdefs.h.  */
10199
10200#include <sys/types.h>
10201#ifdef HAVE_SYS_TIME_H
10202#include <sys/time.h>
10203#endif
10204#include <sys/resource.h>
10205int main()
10206{
10207int ret = 1;
10208#if defined(HAVE_RLIMIT_VMEM) && defined(HAVE_RLIMIT_RSS)
10209if (RLIMIT_RSS == RLIMIT_VMEM) ret = 0;
10210#endif
10211return ret;
10212}
10213_ACEOF
10214if ac_fn_c_try_run "$LINENO"; then :
10215  zsh_cv_rlimit_vmem_is_rss=yes
10216else
10217  zsh_cv_rlimit_vmem_is_rss=no
10218fi
10219rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10220  conftest.$ac_objext conftest.beam conftest.$ac_ext
10221fi
10222
10223fi
10224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_rlimit_vmem_is_rss" >&5
10225$as_echo "$zsh_cv_rlimit_vmem_is_rss" >&6; }
10226
10227if test x$zsh_cv_rlimit_vmem_is_rss = xyes; then
10228  $as_echo "#define RLIMIT_VMEM_IS_RSS 1" >>confdefs.h
10229
10230fi
10231
10232
10233
10234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RLIMIT_VMEM and RLIMIT_AS are the same" >&5
10235$as_echo_n "checking if RLIMIT_VMEM and RLIMIT_AS are the same... " >&6; }
10236if ${zsh_cv_rlimit_vmem_is_as+:} false; then :
10237  $as_echo_n "(cached) " >&6
10238else
10239  if test "$cross_compiling" = yes; then :
10240  zsh_cv_rlimit_vmem_is_as=no
10241else
10242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243/* end confdefs.h.  */
10244
10245#include <sys/types.h>
10246#ifdef HAVE_SYS_TIME_H
10247#include <sys/time.h>
10248#endif
10249#include <sys/resource.h>
10250int main()
10251{
10252int ret = 1;
10253#if defined(HAVE_RLIMIT_VMEM) && defined(HAVE_RLIMIT_AS)
10254if (RLIMIT_AS == RLIMIT_VMEM) ret = 0;
10255#endif
10256return ret;
10257}
10258_ACEOF
10259if ac_fn_c_try_run "$LINENO"; then :
10260  zsh_cv_rlimit_vmem_is_as=yes
10261else
10262  zsh_cv_rlimit_vmem_is_as=no
10263fi
10264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10265  conftest.$ac_objext conftest.beam conftest.$ac_ext
10266fi
10267
10268fi
10269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_rlimit_vmem_is_as" >&5
10270$as_echo "$zsh_cv_rlimit_vmem_is_as" >&6; }
10271
10272if test x$zsh_cv_rlimit_vmem_is_as = xyes; then
10273  $as_echo "#define RLIMIT_VMEM_IS_AS 1" >>confdefs.h
10274
10275fi
10276
10277
10278
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RLIMIT_RSS and RLIMIT_AS are the same" >&5
10280$as_echo_n "checking if RLIMIT_RSS and RLIMIT_AS are the same... " >&6; }
10281if ${zsh_cv_rlimit_rss_is_as+:} false; then :
10282  $as_echo_n "(cached) " >&6
10283else
10284  if test "$cross_compiling" = yes; then :
10285  zsh_cv_rlimit_rss_is_as=no
10286else
10287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288/* end confdefs.h.  */
10289
10290#include <sys/types.h>
10291#ifdef HAVE_SYS_TIME_H
10292#include <sys/time.h>
10293#endif
10294#include <sys/resource.h>
10295int main()
10296{
10297int ret = 1;
10298#if defined(HAVE_RLIMIT_RSS) && defined(HAVE_RLIMIT_AS)
10299if (RLIMIT_AS == RLIMIT_RSS) ret = 0;
10300#endif
10301return ret;
10302}
10303_ACEOF
10304if ac_fn_c_try_run "$LINENO"; then :
10305  zsh_cv_rlimit_rss_is_as=yes
10306else
10307  zsh_cv_rlimit_rss_is_as=no
10308fi
10309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10310  conftest.$ac_objext conftest.beam conftest.$ac_ext
10311fi
10312
10313fi
10314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_rlimit_rss_is_as" >&5
10315$as_echo "$zsh_cv_rlimit_rss_is_as" >&6; }
10316
10317if test x$zsh_cv_rlimit_rss_is_as = xyes; then
10318  $as_echo "#define RLIMIT_RSS_IS_AS 1" >>confdefs.h
10319
10320fi
10321
10322
10323if test x$ac_cv_func_getrusage = xyes; then
10324  ac_fn_c_check_member "$LINENO" "struct rusage" "ru_maxrss" "ac_cv_member_struct_rusage_ru_maxrss" "#include <sys/types.h>
10325#ifdef HAVE_SYS_TIME_H
10326#include <sys/time.h>
10327#endif
10328#include <sys/resource.h>
10329"
10330if test "x$ac_cv_member_struct_rusage_ru_maxrss" = xyes; then :
10331
10332cat >>confdefs.h <<_ACEOF
10333#define HAVE_STRUCT_RUSAGE_RU_MAXRSS 1
10334_ACEOF
10335
10336
10337fi
10338ac_fn_c_check_member "$LINENO" "struct rusage" "ru_ixrss" "ac_cv_member_struct_rusage_ru_ixrss" "#include <sys/types.h>
10339#ifdef HAVE_SYS_TIME_H
10340#include <sys/time.h>
10341#endif
10342#include <sys/resource.h>
10343"
10344if test "x$ac_cv_member_struct_rusage_ru_ixrss" = xyes; then :
10345
10346cat >>confdefs.h <<_ACEOF
10347#define HAVE_STRUCT_RUSAGE_RU_IXRSS 1
10348_ACEOF
10349
10350
10351fi
10352ac_fn_c_check_member "$LINENO" "struct rusage" "ru_idrss" "ac_cv_member_struct_rusage_ru_idrss" "#include <sys/types.h>
10353#ifdef HAVE_SYS_TIME_H
10354#include <sys/time.h>
10355#endif
10356#include <sys/resource.h>
10357"
10358if test "x$ac_cv_member_struct_rusage_ru_idrss" = xyes; then :
10359
10360cat >>confdefs.h <<_ACEOF
10361#define HAVE_STRUCT_RUSAGE_RU_IDRSS 1
10362_ACEOF
10363
10364
10365fi
10366ac_fn_c_check_member "$LINENO" "struct rusage" "ru_isrss" "ac_cv_member_struct_rusage_ru_isrss" "#include <sys/types.h>
10367#ifdef HAVE_SYS_TIME_H
10368#include <sys/time.h>
10369#endif
10370#include <sys/resource.h>
10371"
10372if test "x$ac_cv_member_struct_rusage_ru_isrss" = xyes; then :
10373
10374cat >>confdefs.h <<_ACEOF
10375#define HAVE_STRUCT_RUSAGE_RU_ISRSS 1
10376_ACEOF
10377
10378
10379fi
10380ac_fn_c_check_member "$LINENO" "struct rusage" "ru_minflt" "ac_cv_member_struct_rusage_ru_minflt" "#include <sys/types.h>
10381#ifdef HAVE_SYS_TIME_H
10382#include <sys/time.h>
10383#endif
10384#include <sys/resource.h>
10385"
10386if test "x$ac_cv_member_struct_rusage_ru_minflt" = xyes; then :
10387
10388cat >>confdefs.h <<_ACEOF
10389#define HAVE_STRUCT_RUSAGE_RU_MINFLT 1
10390_ACEOF
10391
10392
10393fi
10394ac_fn_c_check_member "$LINENO" "struct rusage" "ru_majflt" "ac_cv_member_struct_rusage_ru_majflt" "#include <sys/types.h>
10395#ifdef HAVE_SYS_TIME_H
10396#include <sys/time.h>
10397#endif
10398#include <sys/resource.h>
10399"
10400if test "x$ac_cv_member_struct_rusage_ru_majflt" = xyes; then :
10401
10402cat >>confdefs.h <<_ACEOF
10403#define HAVE_STRUCT_RUSAGE_RU_MAJFLT 1
10404_ACEOF
10405
10406
10407fi
10408ac_fn_c_check_member "$LINENO" "struct rusage" "ru_nswap" "ac_cv_member_struct_rusage_ru_nswap" "#include <sys/types.h>
10409#ifdef HAVE_SYS_TIME_H
10410#include <sys/time.h>
10411#endif
10412#include <sys/resource.h>
10413"
10414if test "x$ac_cv_member_struct_rusage_ru_nswap" = xyes; then :
10415
10416cat >>confdefs.h <<_ACEOF
10417#define HAVE_STRUCT_RUSAGE_RU_NSWAP 1
10418_ACEOF
10419
10420
10421fi
10422ac_fn_c_check_member "$LINENO" "struct rusage" "ru_inblock" "ac_cv_member_struct_rusage_ru_inblock" "#include <sys/types.h>
10423#ifdef HAVE_SYS_TIME_H
10424#include <sys/time.h>
10425#endif
10426#include <sys/resource.h>
10427"
10428if test "x$ac_cv_member_struct_rusage_ru_inblock" = xyes; then :
10429
10430cat >>confdefs.h <<_ACEOF
10431#define HAVE_STRUCT_RUSAGE_RU_INBLOCK 1
10432_ACEOF
10433
10434
10435fi
10436ac_fn_c_check_member "$LINENO" "struct rusage" "ru_oublock" "ac_cv_member_struct_rusage_ru_oublock" "#include <sys/types.h>
10437#ifdef HAVE_SYS_TIME_H
10438#include <sys/time.h>
10439#endif
10440#include <sys/resource.h>
10441"
10442if test "x$ac_cv_member_struct_rusage_ru_oublock" = xyes; then :
10443
10444cat >>confdefs.h <<_ACEOF
10445#define HAVE_STRUCT_RUSAGE_RU_OUBLOCK 1
10446_ACEOF
10447
10448
10449fi
10450ac_fn_c_check_member "$LINENO" "struct rusage" "ru_msgsnd" "ac_cv_member_struct_rusage_ru_msgsnd" "#include <sys/types.h>
10451#ifdef HAVE_SYS_TIME_H
10452#include <sys/time.h>
10453#endif
10454#include <sys/resource.h>
10455"
10456if test "x$ac_cv_member_struct_rusage_ru_msgsnd" = xyes; then :
10457
10458cat >>confdefs.h <<_ACEOF
10459#define HAVE_STRUCT_RUSAGE_RU_MSGSND 1
10460_ACEOF
10461
10462
10463fi
10464ac_fn_c_check_member "$LINENO" "struct rusage" "ru_msgrcv" "ac_cv_member_struct_rusage_ru_msgrcv" "#include <sys/types.h>
10465#ifdef HAVE_SYS_TIME_H
10466#include <sys/time.h>
10467#endif
10468#include <sys/resource.h>
10469"
10470if test "x$ac_cv_member_struct_rusage_ru_msgrcv" = xyes; then :
10471
10472cat >>confdefs.h <<_ACEOF
10473#define HAVE_STRUCT_RUSAGE_RU_MSGRCV 1
10474_ACEOF
10475
10476
10477fi
10478ac_fn_c_check_member "$LINENO" "struct rusage" "ru_nsignals" "ac_cv_member_struct_rusage_ru_nsignals" "#include <sys/types.h>
10479#ifdef HAVE_SYS_TIME_H
10480#include <sys/time.h>
10481#endif
10482#include <sys/resource.h>
10483"
10484if test "x$ac_cv_member_struct_rusage_ru_nsignals" = xyes; then :
10485
10486cat >>confdefs.h <<_ACEOF
10487#define HAVE_STRUCT_RUSAGE_RU_NSIGNALS 1
10488_ACEOF
10489
10490
10491fi
10492ac_fn_c_check_member "$LINENO" "struct rusage" "ru_nvcsw" "ac_cv_member_struct_rusage_ru_nvcsw" "#include <sys/types.h>
10493#ifdef HAVE_SYS_TIME_H
10494#include <sys/time.h>
10495#endif
10496#include <sys/resource.h>
10497"
10498if test "x$ac_cv_member_struct_rusage_ru_nvcsw" = xyes; then :
10499
10500cat >>confdefs.h <<_ACEOF
10501#define HAVE_STRUCT_RUSAGE_RU_NVCSW 1
10502_ACEOF
10503
10504
10505fi
10506ac_fn_c_check_member "$LINENO" "struct rusage" "ru_nivcsw" "ac_cv_member_struct_rusage_ru_nivcsw" "#include <sys/types.h>
10507#ifdef HAVE_SYS_TIME_H
10508#include <sys/time.h>
10509#endif
10510#include <sys/resource.h>
10511"
10512if test "x$ac_cv_member_struct_rusage_ru_nivcsw" = xyes; then :
10513
10514cat >>confdefs.h <<_ACEOF
10515#define HAVE_STRUCT_RUSAGE_RU_NIVCSW 1
10516_ACEOF
10517
10518
10519fi
10520
10521fi
10522
10523
10524if ${zsh_cv_cs_path+:} false; then :
10525  $as_echo_n "(cached) " >&6
10526else
10527  if getconf _CS_PATH >/dev/null 2>&1; then
10528  zsh_cv_cs_path=`getconf _CS_PATH`
10529elif getconf CS_PATH >/dev/null 2>&1; then
10530  zsh_cv_cs_path=`getconf CS_PATH`
10531else
10532  zsh_cv_cs_path="/bin:/usr/bin"
10533fi
10534fi
10535
10536
10537cat >>confdefs.h <<_ACEOF
10538#define DEFAULT_PATH "$zsh_cv_cs_path"
10539_ACEOF
10540
10541
10542
10543
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/fd filesystem" >&5
10545$as_echo_n "checking for /dev/fd filesystem... " >&6; }
10546if ${zsh_cv_sys_path_dev_fd+:} false; then :
10547  $as_echo_n "(cached) " >&6
10548else
10549  if test "$host_os" = cygwin; then
10550zsh_cv_sys_path_dev_fd=no
10551else
10552for zsh_cv_sys_path_dev_fd in /proc/self/fd /dev/fd no; do
10553   test x`echo ok|(exec 3<&0; cat $zsh_cv_sys_path_dev_fd/3 2>/dev/null;)` = xok && break
10554 done
10555fi
10556fi
10557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_path_dev_fd" >&5
10558$as_echo "$zsh_cv_sys_path_dev_fd" >&6; }
10559if test x$zsh_cv_sys_path_dev_fd != xno; then
10560  cat >>confdefs.h <<_ACEOF
10561#define PATH_DEV_FD "$zsh_cv_sys_path_dev_fd"
10562_ACEOF
10563
10564fi
10565
10566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFS superroot directory" >&5
10567$as_echo_n "checking for RFS superroot directory... " >&6; }
10568if ${zsh_cv_sys_superroot+:} false; then :
10569  $as_echo_n "(cached) " >&6
10570else
10571  test -d /../.LOCALROOT && zsh_cv_sys_superroot=yes || zsh_cv_sys_superroot=no
10572fi
10573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_superroot" >&5
10574$as_echo "$zsh_cv_sys_superroot" >&6; }
10575
10576if test x$zsh_cv_sys_superroot = xyes; then
10577  $as_echo "#define HAVE_SUPERROOT 1" >>confdefs.h
10578
10579fi
10580
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should use the native getcwd" >&5
10582$as_echo_n "checking whether we should use the native getcwd... " >&6; }
10583if ${zsh_cv_use_getcwd+:} false; then :
10584  $as_echo_n "(cached) " >&6
10585else
10586  case "${host_cpu}-${host_vendor}-${host_os}" in
10587    *QNX*) zsh_cv_use_getcwd=yes ;;
10588    *) zsh_cv_use_getcwd=no ;;
10589 esac
10590fi
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_use_getcwd" >&5
10592$as_echo "$zsh_cv_use_getcwd" >&6; }
10593
10594if test x$zsh_cv_use_getcwd = xyes; then
10595  $as_echo "#define USE_GETCWD 1" >>confdefs.h
10596
10597fi
10598
10599
10600if test x$ac_cv_func_getcwd = xyes; then
10601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd calls malloc to allocate memory" >&5
10602$as_echo_n "checking whether getcwd calls malloc to allocate memory... " >&6; }
10603if ${zsh_cv_getcwd_malloc+:} false; then :
10604  $as_echo_n "(cached) " >&6
10605else
10606  if test "$cross_compiling" = yes; then :
10607  zsh_cv_getcwd_malloc=no
10608else
10609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610/* end confdefs.h.  */
10611
10612#include <unistd.h>
10613#include <string.h>
10614int main() {
10615    char buf[1024], *ptr1, *ptr2;
10616    ptr1 = getcwd(buf, 1024);
10617    ptr2 = getcwd(NULL, 0);
10618    if (ptr1 && ptr2 && !strcmp(ptr1, ptr2)) {
10619      return 0;
10620    }
10621    return 1;
10622}
10623
10624_ACEOF
10625if ac_fn_c_try_run "$LINENO"; then :
10626  zsh_cv_getcwd_malloc=yes
10627else
10628  zsh_cv_getcwd_malloc=no
10629fi
10630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10631  conftest.$ac_objext conftest.beam conftest.$ac_ext
10632fi
10633
10634fi
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_getcwd_malloc" >&5
10636$as_echo "$zsh_cv_getcwd_malloc" >&6; }
10637  if test x$zsh_cv_getcwd_malloc = xyes; then
10638    $as_echo "#define GETCWD_CALLS_MALLOC 1" >>confdefs.h
10639
10640  fi
10641fi
10642
10643
10644ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
10645if test "x$ac_cv_func_setproctitle" = xyes; then :
10646  $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
10647
10648else
10649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
10650$as_echo_n "checking for library containing setproctitle... " >&6; }
10651if ${ac_cv_search_setproctitle+:} false; then :
10652  $as_echo_n "(cached) " >&6
10653else
10654  ac_func_search_save_LIBS=$LIBS
10655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656/* end confdefs.h.  */
10657
10658/* Override any GCC internal prototype to avoid an error.
10659   Use char because int might match the return type of a GCC
10660   builtin and then its argument prototype would still apply.  */
10661#ifdef __cplusplus
10662extern "C"
10663#endif
10664char setproctitle ();
10665int
10666main ()
10667{
10668return setproctitle ();
10669  ;
10670  return 0;
10671}
10672_ACEOF
10673for ac_lib in '' util; do
10674  if test -z "$ac_lib"; then
10675    ac_res="none required"
10676  else
10677    ac_res=-l$ac_lib
10678    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10679  fi
10680  if ac_fn_c_try_link "$LINENO"; then :
10681  ac_cv_search_setproctitle=$ac_res
10682fi
10683rm -f core conftest.err conftest.$ac_objext \
10684    conftest$ac_exeext
10685  if ${ac_cv_search_setproctitle+:} false; then :
10686  break
10687fi
10688done
10689if ${ac_cv_search_setproctitle+:} false; then :
10690
10691else
10692  ac_cv_search_setproctitle=no
10693fi
10694rm conftest.$ac_ext
10695LIBS=$ac_func_search_save_LIBS
10696fi
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
10698$as_echo "$ac_cv_search_setproctitle" >&6; }
10699ac_res=$ac_cv_search_setproctitle
10700if test "$ac_res" != no; then :
10701  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10702  $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
10703
10704fi
10705
10706fi
10707
10708
10709
10710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NIS" >&5
10711$as_echo_n "checking for NIS... " >&6; }
10712if ${zsh_cv_sys_nis+:} false; then :
10713  $as_echo_n "(cached) " >&6
10714else
10715  test -f /usr/bin/ypcat && /usr/bin/ypcat passwd.byname > /dev/null 2>&1 && \
10716zsh_cv_sys_nis=yes || zsh_cv_sys_nis=no
10717fi
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_nis" >&5
10719$as_echo "$zsh_cv_sys_nis" >&6; }
10720if test x$zsh_cv_sys_nis = xyes; then
10721  $as_echo "#define HAVE_NIS 1" >>confdefs.h
10722
10723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing yp_all" >&5
10724$as_echo_n "checking for library containing yp_all... " >&6; }
10725if ${ac_cv_search_yp_all+:} false; then :
10726  $as_echo_n "(cached) " >&6
10727else
10728  ac_func_search_save_LIBS=$LIBS
10729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730/* end confdefs.h.  */
10731
10732/* Override any GCC internal prototype to avoid an error.
10733   Use char because int might match the return type of a GCC
10734   builtin and then its argument prototype would still apply.  */
10735#ifdef __cplusplus
10736extern "C"
10737#endif
10738char yp_all ();
10739int
10740main ()
10741{
10742return yp_all ();
10743  ;
10744  return 0;
10745}
10746_ACEOF
10747for ac_lib in '' nsl; do
10748  if test -z "$ac_lib"; then
10749    ac_res="none required"
10750  else
10751    ac_res=-l$ac_lib
10752    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10753  fi
10754  if ac_fn_c_try_link "$LINENO"; then :
10755  ac_cv_search_yp_all=$ac_res
10756fi
10757rm -f core conftest.err conftest.$ac_objext \
10758    conftest$ac_exeext
10759  if ${ac_cv_search_yp_all+:} false; then :
10760  break
10761fi
10762done
10763if ${ac_cv_search_yp_all+:} false; then :
10764
10765else
10766  ac_cv_search_yp_all=no
10767fi
10768rm conftest.$ac_ext
10769LIBS=$ac_func_search_save_LIBS
10770fi
10771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yp_all" >&5
10772$as_echo "$ac_cv_search_yp_all" >&6; }
10773ac_res=$ac_cv_search_yp_all
10774if test "$ac_res" != no; then :
10775  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10776
10777fi
10778
10779fi
10780
10781
10782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NIS+" >&5
10783$as_echo_n "checking for NIS+... " >&6; }
10784if ${zsh_cv_sys_nis_plus+:} false; then :
10785  $as_echo_n "(cached) " >&6
10786else
10787  test x$ac_cv_func_nis_list = xyes && test -f /usr/bin/nisls && \
10788 /usr/bin/nisls > /dev/null 2>&1 && \
10789zsh_cv_sys_nis_plus=yes || zsh_cv_sys_nis_plus=no
10790fi
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_nis_plus" >&5
10792$as_echo "$zsh_cv_sys_nis_plus" >&6; }
10793if test x$zsh_cv_sys_nis_plus = xyes; then
10794  $as_echo "#define HAVE_NIS_PLUS 1" >>confdefs.h
10795
10796fi
10797
10798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file" >&5
10799$as_echo_n "checking for utmp file... " >&6; }
10800if ${zsh_cv_path_utmp+:} false; then :
10801  $as_echo_n "(cached) " >&6
10802else
10803  for dir in /etc /usr/etc /var/adm /usr/adm /var/run /var/log ./conftest; do
10804  zsh_cv_path_utmp=${dir}/utmp
10805  test -f $zsh_cv_path_utmp && break
10806  zsh_cv_path_utmp=no
10807done
10808
10809fi
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_utmp" >&5
10811$as_echo "$zsh_cv_path_utmp" >&6; }
10812
10813if test $zsh_cv_path_utmp != no; then
10814  cat >>confdefs.h <<_ACEOF
10815#define PATH_UTMP_FILE "$zsh_cv_path_utmp"
10816_ACEOF
10817
10818fi
10819
10820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wtmp file" >&5
10821$as_echo_n "checking for wtmp file... " >&6; }
10822if ${zsh_cv_path_wtmp+:} false; then :
10823  $as_echo_n "(cached) " >&6
10824else
10825  for dir in /etc /usr/etc /var/adm /usr/adm /var/run /var/log ./conftest; do
10826  zsh_cv_path_wtmp=${dir}/wtmp
10827  test -f $zsh_cv_path_wtmp && break
10828  zsh_cv_path_wtmp=no
10829done
10830
10831fi
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_wtmp" >&5
10833$as_echo "$zsh_cv_path_wtmp" >&6; }
10834
10835if test $zsh_cv_path_wtmp != no; then
10836  cat >>confdefs.h <<_ACEOF
10837#define PATH_WTMP_FILE "$zsh_cv_path_wtmp"
10838_ACEOF
10839
10840fi
10841
10842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmpx file" >&5
10843$as_echo_n "checking for utmpx file... " >&6; }
10844if ${zsh_cv_path_utmpx+:} false; then :
10845  $as_echo_n "(cached) " >&6
10846else
10847  for dir in /etc /usr/etc /var/adm /usr/adm /var/run /var/log ./conftest; do
10848  zsh_cv_path_utmpx=${dir}/utmpx
10849  test -f $zsh_cv_path_utmpx && break
10850  zsh_cv_path_utmpx=no
10851done
10852
10853fi
10854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_utmpx" >&5
10855$as_echo "$zsh_cv_path_utmpx" >&6; }
10856
10857if test $zsh_cv_path_utmpx != no; then
10858  cat >>confdefs.h <<_ACEOF
10859#define PATH_UTMPX_FILE "$zsh_cv_path_utmpx"
10860_ACEOF
10861
10862fi
10863
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wtmpx file" >&5
10865$as_echo_n "checking for wtmpx file... " >&6; }
10866if ${zsh_cv_path_wtmpx+:} false; then :
10867  $as_echo_n "(cached) " >&6
10868else
10869  for dir in /etc /usr/etc /var/adm /usr/adm /var/run /var/log ./conftest; do
10870  zsh_cv_path_wtmpx=${dir}/wtmpx
10871  test -f $zsh_cv_path_wtmpx && break
10872  zsh_cv_path_wtmpx=no
10873done
10874
10875fi
10876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_wtmpx" >&5
10877$as_echo "$zsh_cv_path_wtmpx" >&6; }
10878
10879if test $zsh_cv_path_wtmpx != no; then
10880  cat >>confdefs.h <<_ACEOF
10881#define PATH_WTMPX_FILE "$zsh_cv_path_wtmpx"
10882_ACEOF
10883
10884fi
10885
10886
10887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for brk() prototype in <unistd.h>" >&5
10888$as_echo_n "checking for brk() prototype in <unistd.h>... " >&6; }
10889if ${zsh_cv_header_unistd_h_brk_proto+:} false; then :
10890  $as_echo_n "(cached) " >&6
10891else
10892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893/* end confdefs.h.  */
10894#include <unistd.h>
10895double brk();
10896int
10897main ()
10898{
10899int i;
10900  ;
10901  return 0;
10902}
10903_ACEOF
10904if ac_fn_c_try_compile "$LINENO"; then :
10905  zsh_cv_header_unistd_h_brk_proto=no
10906else
10907  zsh_cv_header_unistd_h_brk_proto=yes
10908fi
10909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10910fi
10911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_unistd_h_brk_proto" >&5
10912$as_echo "$zsh_cv_header_unistd_h_brk_proto" >&6; }
10913
10914if test x$zsh_cv_header_unistd_h_brk_proto = xyes; then
10915  $as_echo "#define HAVE_BRK_PROTO 1" >>confdefs.h
10916
10917fi
10918
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sbrk() prototype in <unistd.h>" >&5
10920$as_echo_n "checking for sbrk() prototype in <unistd.h>... " >&6; }
10921if ${zsh_cv_header_unistd_h_sbrk_proto+:} false; then :
10922  $as_echo_n "(cached) " >&6
10923else
10924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925/* end confdefs.h.  */
10926#include <unistd.h>
10927double sbrk();
10928int
10929main ()
10930{
10931int i;
10932  ;
10933  return 0;
10934}
10935_ACEOF
10936if ac_fn_c_try_compile "$LINENO"; then :
10937  zsh_cv_header_unistd_h_sbrk_proto=no
10938else
10939  zsh_cv_header_unistd_h_sbrk_proto=yes
10940fi
10941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10942fi
10943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_unistd_h_sbrk_proto" >&5
10944$as_echo "$zsh_cv_header_unistd_h_sbrk_proto" >&6; }
10945
10946if test x$zsh_cv_header_unistd_h_sbrk_proto = xyes; then
10947  $as_echo "#define HAVE_SBRK_PROTO 1" >>confdefs.h
10948
10949fi
10950
10951
10952if test "$ac_cv_prog_cc_stdc" != no; then
10953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mknod prototype in <sys/stat.h>" >&5
10954$as_echo_n "checking for mknod prototype in <sys/stat.h>... " >&6; }
10955if ${zsh_cv_header_sys_stat_h_mknod_proto+:} false; then :
10956  $as_echo_n "(cached) " >&6
10957else
10958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959/* end confdefs.h.  */
10960#include <sys/stat.h>
10961   int mknod(double x);
10962int
10963main ()
10964{
10965int i;
10966  ;
10967  return 0;
10968}
10969_ACEOF
10970if ac_fn_c_try_compile "$LINENO"; then :
10971  zsh_cv_header_sys_stat_h_mknod_proto=no
10972else
10973  zsh_cv_header_sys_stat_h_mknod_proto=yes
10974fi
10975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976fi
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_sys_stat_h_mknod_proto" >&5
10978$as_echo "$zsh_cv_header_sys_stat_h_mknod_proto" >&6; }
10979  if test x$zsh_cv_header_sys_stat_h_mknod_proto = xyes; then
10980    $as_echo "#define HAVE_MKNOD_PROTO 1" >>confdefs.h
10981
10982  fi
10983fi
10984
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl prototype in <unistd.h> or <termios.h>" >&5
10986$as_echo_n "checking for ioctl prototype in <unistd.h> or <termios.h>... " >&6; }
10987if ${zsh_cv_header_unistd_h_termios_h_ioctl_proto+:} false; then :
10988  $as_echo_n "(cached) " >&6
10989else
10990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991/* end confdefs.h.  */
10992
10993#ifdef HAVE_UNISTD_H
10994# include <unistd.h>
10995#endif
10996#ifdef HAVE_TERMIOS_H
10997# include <termios.h>
10998#endif
10999double ioctl();
11000int
11001main ()
11002{
11003int i;
11004  ;
11005  return 0;
11006}
11007_ACEOF
11008if ac_fn_c_try_compile "$LINENO"; then :
11009  zsh_cv_header_unistd_h_termios_h_ioctl_proto=no
11010else
11011  zsh_cv_header_unistd_h_termios_h_ioctl_proto=yes
11012fi
11013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11014fi
11015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_unistd_h_termios_h_ioctl_proto" >&5
11016$as_echo "$zsh_cv_header_unistd_h_termios_h_ioctl_proto" >&6; }
11017
11018if test x$zsh_cv_header_unistd_h_termios_h_ioctl_proto = xno; then
11019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl prototype in <sys/ioctl.h>" >&5
11020$as_echo_n "checking for ioctl prototype in <sys/ioctl.h>... " >&6; }
11021if ${zsh_cv_header_sys_ioctl_h_ioctl_proto+:} false; then :
11022  $as_echo_n "(cached) " >&6
11023else
11024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025/* end confdefs.h.  */
11026#include <sys/ioctl.h>
11027  double ioctl();
11028int
11029main ()
11030{
11031int i;
11032  ;
11033  return 0;
11034}
11035_ACEOF
11036if ac_fn_c_try_compile "$LINENO"; then :
11037  zsh_cv_header_sys_ioctl_h_ioctl_proto=no
11038else
11039  zsh_cv_header_sys_ioctl_h_ioctl_proto=yes
11040fi
11041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11042fi
11043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_sys_ioctl_h_ioctl_proto" >&5
11044$as_echo "$zsh_cv_header_sys_ioctl_h_ioctl_proto" >&6; }
11045else
11046  zsh_cv_header_sys_ioctl_h_ioctl_proto=no
11047fi
11048
11049
11050if test x$zsh_cv_header_unistd_h_termios_h_ioctl_proto = xyes || \
11051   test x$zsh_cv_header_sys_ioctl_h_ioctl_proto = xyes; then
11052  $as_echo "#define HAVE_IOCTL_PROTO 1" >>confdefs.h
11053
11054fi
11055
11056if test x$zsh_cv_header_sys_ioctl_h_ioctl_proto = xyes; then
11057  $as_echo "#define IOCTL_IN_SYS_IOCTL 1" >>confdefs.h
11058
11059fi
11060
11061
11062if test x$ac_cv_header_sys_select_h != xyes; then
11063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select() in <sys/socket.h>" >&5
11064$as_echo_n "checking for select() in <sys/socket.h>... " >&6; }
11065if ${zsh_cv_header_socket_h_select_proto+:} false; then :
11066  $as_echo_n "(cached) " >&6
11067else
11068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069/* end confdefs.h.  */
11070#include <sys/socket.h>
11071int
11072main ()
11073{
11074fd_set fd;
11075  ;
11076  return 0;
11077}
11078_ACEOF
11079if ac_fn_c_try_compile "$LINENO"; then :
11080  zsh_cv_header_socket_h_select_proto=yes
11081else
11082  zsh_cv_header_socket_h_select_proto=no
11083fi
11084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11085fi
11086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_socket_h_select_proto" >&5
11087$as_echo "$zsh_cv_header_socket_h_select_proto" >&6; }
11088  if test x$zsh_cv_header_socket_h_select_proto = xyes; then
11089    $as_echo "#define SELECT_IN_SYS_SOCKET_H 1" >>confdefs.h
11090
11091  fi
11092fi
11093
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if named FIFOs work" >&5
11095$as_echo_n "checking if named FIFOs work... " >&6; }
11096if ${zsh_cv_sys_fifo+:} false; then :
11097  $as_echo_n "(cached) " >&6
11098else
11099  if test "$host_os" = cygwin; then
11100zsh_cv_sys_fifo=yes
11101else
11102if test "$cross_compiling" = yes; then :
11103  zsh_cv_sys_fifo=yes
11104else
11105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106/* end confdefs.h.  */
11107
11108#include <fcntl.h>
11109#include <signal.h>
11110main()
11111{
11112    char c;
11113    int fd;
11114    int pid, ret;
11115    unlink("/tmp/fifo$$");
11116#ifdef HAVE_MKFIFO
11117    if(mkfifo("/tmp/fifo$$", 0600) < 0)
11118#else
11119    if(mknod("/tmp/fifo$$", 0010600, 0) < 0)
11120#endif
11121	exit(1);
11122    pid = fork();
11123    if(pid < 0)
11124	exit(1);
11125    if(pid) {
11126	fd = open("/tmp/fifo$$", O_RDONLY);
11127	exit(fd < 0 || read(fd, &c, 1) != 1 || c != 'x');
11128    }
11129    fd = open("/tmp/fifo$$", O_WRONLY);
11130    ret = (fd < 0 || write(fd, "x", 1) < 1);
11131    unlink("/tmp/fifo$$");
11132    exit(ret);
11133}
11134
11135_ACEOF
11136if ac_fn_c_try_run "$LINENO"; then :
11137  zsh_cv_sys_fifo=yes
11138else
11139  zsh_cv_sys_fifo=no
11140fi
11141rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11142  conftest.$ac_objext conftest.beam conftest.$ac_ext
11143fi
11144
11145fi
11146fi
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_fifo" >&5
11148$as_echo "$zsh_cv_sys_fifo" >&6; }
11149
11150if test x$zsh_cv_sys_fifo = xyes; then
11151  $as_echo "#define HAVE_FIFOS 1" >>confdefs.h
11152
11153fi
11154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo in /bin/sh interprets escape sequences" >&5
11155$as_echo_n "checking if echo in /bin/sh interprets escape sequences... " >&6; }
11156if ${zsh_cv_prog_sh_echo_escape+:} false; then :
11157  $as_echo_n "(cached) " >&6
11158else
11159  if test "`/bin/sh -c \"echo '\\n'\"`" = "\\n"; then
11160  zsh_cv_prog_sh_echo_escape=no
11161else
11162  zsh_cv_prog_sh_echo_escape=yes
11163fi
11164fi
11165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_prog_sh_echo_escape" >&5
11166$as_echo "$zsh_cv_prog_sh_echo_escape" >&6; }
11167
11168if test x$zsh_cv_prog_sh_echo_escape = xno; then
11169  $as_echo "#define SH_USE_BSD_ECHO 1" >>confdefs.h
11170
11171fi
11172
11173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if link() works" >&5
11174$as_echo_n "checking if link() works... " >&6; }
11175if ${zsh_cv_sys_link+:} false; then :
11176  $as_echo_n "(cached) " >&6
11177else
11178  if test "$cross_compiling" = yes; then :
11179  zsh_cv_sys_link=yes
11180else
11181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182/* end confdefs.h.  */
11183
11184#include <unistd.h>
11185#include <fcntl.h>
11186main()
11187{
11188    int ret;
11189    char *tmpfile, *newfile;
11190    tmpfile="/tmp/zsh.linktest$$";
11191    newfile="/tmp/zsh.linktest2$$";
11192    unlink(tmpfile);
11193    unlink(newfile);
11194    if(creat(tmpfile, 0644) < 0)
11195	exit(1);
11196    ret = link(tmpfile, newfile);
11197    unlink(tmpfile);
11198    unlink(newfile);
11199    exit(ret<0);
11200}
11201
11202_ACEOF
11203if ac_fn_c_try_run "$LINENO"; then :
11204  zsh_cv_sys_link=yes
11205else
11206  zsh_cv_sys_link=no
11207fi
11208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11209  conftest.$ac_objext conftest.beam conftest.$ac_ext
11210fi
11211
11212fi
11213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_link" >&5
11214$as_echo "$zsh_cv_sys_link" >&6; }
11215
11216if test x$zsh_cv_sys_link = xyes; then
11217  $as_echo "#define HAVE_LINK 1" >>confdefs.h
11218
11219fi
11220
11221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if kill(pid, 0) returns ESRCH correctly" >&5
11222$as_echo_n "checking if kill(pid, 0) returns ESRCH correctly... " >&6; }
11223if ${zsh_cv_sys_killesrch+:} false; then :
11224  $as_echo_n "(cached) " >&6
11225else
11226  if test "$cross_compiling" = yes; then :
11227  zsh_cv_sys_killesrch=yes
11228else
11229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230/* end confdefs.h.  */
11231
11232#include <unistd.h>
11233#include <signal.h>
11234#include <errno.h>
11235main()
11236{
11237    int pid = (getpid() + 10000) & 0xffffff;
11238    while (pid && (kill(pid, 0) == 0 || errno != ESRCH)) pid >>= 1;
11239    exit(errno!=ESRCH);
11240}
11241
11242_ACEOF
11243if ac_fn_c_try_run "$LINENO"; then :
11244  zsh_cv_sys_killesrch=yes
11245else
11246  zsh_cv_sys_killesrch=no
11247fi
11248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11249  conftest.$ac_objext conftest.beam conftest.$ac_ext
11250fi
11251
11252fi
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_killesrch" >&5
11254$as_echo "$zsh_cv_sys_killesrch" >&6; }
11255
11256if test x$zsh_cv_sys_killesrch = xno; then
11257  $as_echo "#define BROKEN_KILL_ESRCH 1" >>confdefs.h
11258
11259fi
11260
11261
11262if test x$signals_style = xPOSIX_SIGNALS; then
11263    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX sigsuspend() works" >&5
11264$as_echo_n "checking if POSIX sigsuspend() works... " >&6; }
11265if ${zsh_cv_sys_sigsuspend+:} false; then :
11266  $as_echo_n "(cached) " >&6
11267else
11268  if test "$cross_compiling" = yes; then :
11269  zsh_cv_sys_sigsuspend=yes
11270else
11271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272/* end confdefs.h.  */
11273
11274#include <signal.h>
11275#include <unistd.h>
11276int child=0;
11277void handler(sig)
11278    int sig;
11279{if(sig==SIGCHLD) child=1;}
11280main() {
11281    struct sigaction act;
11282    sigset_t set;
11283    int pid, ret;
11284    act.sa_handler = &handler;
11285    sigfillset(&act.sa_mask);
11286    act.sa_flags = 0;
11287    sigaction(SIGCHLD, &act, 0);
11288    sigfillset(&set);
11289    sigprocmask(SIG_SETMASK, &set, 0);
11290    pid=fork();
11291    if(pid==0) return 0;
11292    if(pid>0) {
11293    sigemptyset(&set);
11294        ret=sigsuspend(&set);
11295        exit(child==0);
11296    }
11297}
11298
11299_ACEOF
11300if ac_fn_c_try_run "$LINENO"; then :
11301  zsh_cv_sys_sigsuspend=yes
11302else
11303  zsh_cv_sys_sigsuspend=no
11304fi
11305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11306  conftest.$ac_objext conftest.beam conftest.$ac_ext
11307fi
11308
11309fi
11310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_sigsuspend" >&5
11311$as_echo "$zsh_cv_sys_sigsuspend" >&6; }
11312    if test x$zsh_cv_sys_sigsuspend = xno; then
11313      $as_echo "#define BROKEN_POSIX_SIGSUSPEND 1" >>confdefs.h
11314
11315    fi
11316fi
11317
11318
11319
11320# Check whether --with-tcsetpgrp was given.
11321if test "${with_tcsetpgrp+set}" = set; then :
11322  withval=$with_tcsetpgrp;
11323case "x$withval" in
11324    xyes) zsh_working_tcsetpgrp=yes;;
11325    xno)  zsh_working_tcsetpgrp=no;;
11326    *)    as_fn_error $? "please use --with-tcsetpgrp=yes or --with-tcsetpgrp=no" "$LINENO" 5;;
11327esac
11328else
11329  zsh_working_tcsetpgrp=check
11330fi
11331
11332if test "x$ac_cv_func_tcsetpgrp" = xyes; then
11333case "x$zsh_working_tcsetpgrp" in
11334  xcheck)
11335    trap "" TTOU > /dev/null 2>&1 || :
11336    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tcsetpgrp() actually works" >&5
11337$as_echo_n "checking if tcsetpgrp() actually works... " >&6; }
11338if ${zsh_cv_sys_tcsetpgrp+:} false; then :
11339  $as_echo_n "(cached) " >&6
11340else
11341  if test "$cross_compiling" = yes; then :
11342  zsh_cv_sys_tcsetpgrp=yes
11343else
11344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345/* end confdefs.h.  */
11346
11347#include <sys/types.h>
11348#include <unistd.h>
11349#include <fcntl.h>
11350main() {
11351    int fd;
11352    int ret;
11353    fd=open("/dev/tty", O_RDWR);
11354    if (fd < 0) exit(2);
11355    ret=tcsetpgrp(fd, tcgetpgrp(fd));
11356    if (ret < 0) exit(1);
11357    exit(0);
11358}
11359
11360_ACEOF
11361if ac_fn_c_try_run "$LINENO"; then :
11362  zsh_cv_sys_tcsetpgrp=yes
11363else
11364
11365case $? in
11366    1) zsh_cv_sys_tcsetpgrp=no;;
11367    2) zsh_cv_sys_tcsetpgrp=notty;;
11368    *) zsh_cv_sys_tcsetpgrp=error;;
11369esac
11370
11371fi
11372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11373  conftest.$ac_objext conftest.beam conftest.$ac_ext
11374fi
11375
11376fi
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_tcsetpgrp" >&5
11378$as_echo "$zsh_cv_sys_tcsetpgrp" >&6; }
11379    case "x$zsh_cv_sys_tcsetpgrp" in
11380      xno)    $as_echo "#define BROKEN_TCSETPGRP 1" >>confdefs.h
11381;;
11382      xyes)   :;;
11383      xnotty) as_fn_error $? "no controlling tty
11384Try running configure with --with-tcsetpgrp or --without-tcsetpgrp" "$LINENO" 5;;
11385      *)      as_fn_error $? "unexpected return status" "$LINENO" 5;;
11386    esac
11387    trap - TTOU > /dev/null 2>&1 || :
11388    ;;
11389  xyes) :;;
11390  xno)  $as_echo "#define BROKEN_TCSETPGRP 1" >>confdefs.h
11391;;
11392  *)    as_fn_error $? "unexpected value zsh_working_tcsetpgrp=$zsh_working_tcsetpgrp" "$LINENO" 5;;
11393esac
11394fi
11395
11396
11397if test x$ac_cv_func_getpwnam = xyes; then
11398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwnam() is faked" >&5
11399$as_echo_n "checking if getpwnam() is faked... " >&6; }
11400if ${zsh_cv_sys_getpwnam_faked+:} false; then :
11401  $as_echo_n "(cached) " >&6
11402else
11403  if test "$cross_compiling" = yes; then :
11404  zsh_cv_sys_getpwnam_faked=no
11405else
11406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407/* end confdefs.h.  */
11408
11409#include <pwd.h>
11410main() {
11411    struct passwd *pw1, *pw2;
11412    char buf[1024], name[1024];
11413    sprintf(buf, "%d:%d", getpid(), rand());
11414    pw1=getpwnam(buf);
11415    if (pw1) strcpy(name, pw1->pw_name);
11416    sprintf(buf, "%d:%d", rand(), getpid());
11417    pw2=getpwnam(buf);
11418    exit(pw1!=0 && pw2!=0 && !strcmp(name, pw2->pw_name));
11419}
11420
11421_ACEOF
11422if ac_fn_c_try_run "$LINENO"; then :
11423  zsh_cv_sys_getpwnam_faked=no
11424else
11425  zsh_cv_sys_getpwnam_faked=yes
11426fi
11427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11428  conftest.$ac_objext conftest.beam conftest.$ac_ext
11429fi
11430
11431fi
11432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_getpwnam_faked" >&5
11433$as_echo "$zsh_cv_sys_getpwnam_faked" >&6; }
11434    if test x$zsh_cv_sys_getpwnam_faked = xyes; then
11435      $as_echo "#define GETPWNAM_FAKED 1" >>confdefs.h
11436
11437    fi
11438fi
11439
11440
11441
11442
11443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking base type of the third argument to accept" >&5
11444$as_echo_n "checking base type of the third argument to accept... " >&6; }
11445if ${zsh_cv_type_socklen_t+:} false; then :
11446  $as_echo_n "(cached) " >&6
11447else
11448  zsh_cv_type_socklen_t=
11449    for zsh_type in socklen_t int "unsigned long" size_t ; do
11450      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451/* end confdefs.h.  */
11452#include <sys/types.h>
11453         #include <sys/socket.h>
11454int
11455main ()
11456{
11457extern int accept (int, struct sockaddr *, $zsh_type *);
11458  ;
11459  return 0;
11460}
11461_ACEOF
11462if ac_fn_c_try_compile "$LINENO"; then :
11463  zsh_cv_type_socklen_t="$zsh_type"; break
11464fi
11465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466    done
11467    if test -z "$zsh_cv_type_socklen_t"; then
11468      zsh_cv_type_socklen_t=int
11469    fi
11470
11471fi
11472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_socklen_t" >&5
11473$as_echo "$zsh_cv_type_socklen_t" >&6; }
11474
11475cat >>confdefs.h <<_ACEOF
11476#define ZSOCKLEN_T $zsh_cv_type_socklen_t
11477_ACEOF
11478
11479
11480
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system has /dev/ptmx" >&5
11482$as_echo_n "checking if your system has /dev/ptmx... " >&6; }
11483if ${ac_cv_have_dev_ptmx+:} false; then :
11484  $as_echo_n "(cached) " >&6
11485else
11486  if test -w /dev/ptmx; then
11487  ac_cv_have_dev_ptmx=yes
11488else
11489  ac_cv_have_dev_ptmx=no
11490fi
11491fi
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dev_ptmx" >&5
11493$as_echo "$ac_cv_have_dev_ptmx" >&6; }
11494
11495
11496if test x$ac_cv_have_dev_ptmx = xyes && \
11497   test x$ac_cv_func_grantpt = xyes && \
11498   test x$ac_cv_func_unlockpt = xyes && \
11499   test x$ac_cv_func_ptsname = xyes; then
11500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if /dev/ptmx is usable" >&5
11501$as_echo_n "checking if /dev/ptmx is usable... " >&6; }
11502if ${ac_cv_use_dev_ptmx+:} false; then :
11503  $as_echo_n "(cached) " >&6
11504else
11505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506/* end confdefs.h.  */
11507#ifdef __linux
11508#define _GNU_SOURCE 1
11509#endif
11510#include <stdlib.h>
11511int ptsname();
11512int
11513main ()
11514{
11515
11516  ;
11517  return 0;
11518}
11519_ACEOF
11520if ac_fn_c_try_compile "$LINENO"; then :
11521  ac_cv_use_dev_ptmx=no
11522else
11523  ac_cv_use_dev_ptmx=yes
11524fi
11525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11526fi
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_dev_ptmx" >&5
11528$as_echo "$ac_cv_use_dev_ptmx" >&6; }
11529   if test x$ac_cv_use_dev_ptmx = xyes; then
11530     $as_echo "#define USE_DEV_PTMX 1" >>confdefs.h
11531
11532   fi
11533fi
11534
11535# Check whether --enable-multibyte was given.
11536if test "${enable_multibyte+set}" = set; then :
11537  enableval=$enable_multibyte; zsh_cv_c_unicode_support=$enableval
11538else
11539  if ${zsh_cv_c_unicode_support+:} false; then :
11540  $as_echo_n "(cached) " >&6
11541else
11542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for functions supporting multibyte characters" >&5
11543$as_echo "$as_me: checking for functions supporting multibyte characters" >&6;}
11544  zfuncs_absent=
11545   for zfunc in iswalnum iswcntrl iswdigit iswgraph iswlower iswprint \
11546iswpunct iswspace iswupper iswxdigit mbrlen mbrtowc towupper towlower \
11547wcschr wcscpy wcslen wcsncmp wcsncpy wcrtomb wcwidth wmemchr wmemcmp \
11548wmemcpy wmemmove wmemset; do
11549     as_ac_var=`$as_echo "ac_cv_func_$zfunc" | $as_tr_sh`
11550ac_fn_c_check_func "$LINENO" "$zfunc" "$as_ac_var"
11551if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11552  :
11553else
11554  zfuncs_absent="$zfuncs_absent $zfunc"
11555fi
11556
11557    done
11558    if test x"$zfuncs_absent" = x; then
11559      { $as_echo "$as_me:${as_lineno-$LINENO}: all functions found, multibyte support enabled" >&5
11560$as_echo "$as_me: all functions found, multibyte support enabled" >&6;}
11561      zsh_cv_c_unicode_support=yes
11562    else
11563      { $as_echo "$as_me:${as_lineno-$LINENO}: missing functions, multibyte support disabled" >&5
11564$as_echo "$as_me: missing functions, multibyte support disabled" >&6;}
11565      zsh_cv_c_unicode_support=no
11566    fi
11567
11568fi
11569
11570
11571fi
11572
11573
11574
11575if test x$zsh_cv_c_unicode_support = xyes; then
11576  $as_echo "#define MULTIBYTE_SUPPORT 1" >>confdefs.h
11577
11578
11579                                locale_prog='char *my_locales[] = {
11580  "en_US.UTF-8", "en_GB.UTF-8", "en.UTF-8", '
11581  locale_prog="$locale_prog"`locale -a 2>/dev/null | \
11582    sed -e 's/utf8/UTF-8/' | grep UTF-8 | \
11583    while read line; do echo " \"$line\","; done;`
11584  locale_prog="$locale_prog 0 };
11585  #define _XOPEN_SOURCE
11586  #include <stdlib.h>
11587  #include <locale.h>
11588  #include <wchar.h>
11589
11590  int main() {
11591    char **localep;
11592    char comb_acute_mb[] = { (char)0xcc, (char)0x81 };
11593    wchar_t wc;
11594
11595    for (localep = my_locales; *localep; localep++)
11596      if (setlocale(LC_ALL, *localep) &&
11597          mbtowc(&wc, comb_acute_mb, 2) == 2)
11598	  break;
11599    if (!*localep)
11600      return 1;
11601    if (wcwidth(wc) == 0)
11602      return 1;
11603    return 0;
11604  }
11605  "
11606
11607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wcwidth() function is broken" >&5
11608$as_echo_n "checking if the wcwidth() function is broken... " >&6; }
11609if ${zsh_cv_c_broken_wcwidth+:} false; then :
11610  $as_echo_n "(cached) " >&6
11611else
11612  if test "$cross_compiling" = yes; then :
11613  zsh_cv_c_broken_wcwidth=no
11614else
11615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616/* end confdefs.h.  */
11617$locale_prog
11618_ACEOF
11619if ac_fn_c_try_run "$LINENO"; then :
11620  zsh_cv_c_broken_wcwidth=yes
11621else
11622  zsh_cv_c_broken_wcwidth=no
11623fi
11624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11625  conftest.$ac_objext conftest.beam conftest.$ac_ext
11626fi
11627
11628fi
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_c_broken_wcwidth" >&5
11630$as_echo "$zsh_cv_c_broken_wcwidth" >&6; }
11631  if test x$zsh_cv_c_broken_wcwidth = xyes; then
11632    $as_echo "#define BROKEN_WCWIDTH 1" >>confdefs.h
11633
11634  fi
11635fi
11636
11637
11638# Check whether --enable-libc-musl was given.
11639if test "${enable_libc_musl+set}" = set; then :
11640  enableval=$enable_libc_musl; if test x$enableval = xyes; then
11641  $as_echo "#define LIBC_MUSL 1" >>confdefs.h
11642
11643fi
11644fi
11645
11646
11647# Check whether --enable-dynamic-nss was given.
11648if test "${enable_dynamic_nss+set}" = set; then :
11649  enableval=$enable_dynamic_nss; zsh_cv_c_dynamic_nss=$enableval
11650fi
11651
11652
11653
11654if test x$zsh_cv_c_dynamic_nss = xno; then
11655  $as_echo "#define DISABLE_DYNAMIC_NSS 1" >>confdefs.h
11656
11657fi
11658
11659
11660L=N
11661INSTLIB="install.bin-\$(L)"
11662UNINSTLIB="uninstall.bin-\$(L)"
11663LINKMODS=NOLINKMODS
11664MOD_EXPORT=
11665MOD_IMPORT_VARIABLE=
11666MOD_IMPORT_FUNCTION=
11667aixdynamic=no
11668hpuxdynamic=no
11669if test "$ac_cv_func_load"      = yes &&
11670   test "$ac_cv_func_unload"    = yes &&
11671   test "$ac_cv_func_loadbind"  = yes &&
11672   test "$ac_cv_func_loadquery" = yes; then
11673    if test "x$dynamic" = xyes; then
11674    aixdynamic=yes
11675  fi
11676elif test "$ac_cv_func_dlopen"  != yes ||
11677     test "$ac_cv_func_dlsym"   != yes ||
11678     test "$ac_cv_func_dlerror" != yes; then
11679  if test "$ac_cv_func_shl_load" != yes ||
11680     test "$ac_cv_func_shl_unload" != yes ||
11681     test "$ac_cv_func_shl_findsym" != yes; then
11682    dynamic=no
11683  elif test "x$dynamic" = xyes; then
11684    hpuxdynamic=yes
11685    DL_EXT="${DL_EXT=sl}"
11686                    $as_echo "#define HPUX10DYNAMIC 1" >>confdefs.h
11687  fi
11688fi
11689
11690test -n "$GCC" && LDARG=-Wl,
11691
11692
11693
11694if test "x$aixdynamic" = xyes; then
11695  DL_EXT="${DL_EXT=so}"
11696  DLLD="${DLLD=$CC}"
11697  zsh_cv_func_dlsym_needs_underscore=no
11698  if test -n "$GCC"; then
11699    DLLDFLAGS=${DLLDFLAGS=-shared}
11700  else
11701    DLLDFLAGS=${DLLDFLAGS=-bM:SRE}
11702  fi
11703  DLLDFLAGS=${DLLDFLAGS=}
11704  EXTRA_LDFLAGS=${EXTRA_LDFLAGS=}
11705  EXPOPT=${LDARG}-bE:
11706  IMPOPT=${LDARG}-bI:
11707  zsh_cv_sys_dynamic_clash_ok="${zsh_cv_sys_dynamic_clash_ok=yes}"
11708  zsh_cv_sys_dynamic_rtld_global="${zsh_cv_sys_dynamic_rtld_global=yes}"
11709  zsh_cv_sys_dynamic_execsyms="${zsh_cv_sys_dynamic_execsyms=yes}"
11710  zsh_cv_sys_dynamic_strip_exe="${zsh_cv_sys_dynamic_strip_exe=yes}"
11711  zsh_cv_sys_dynamic_strip_lib="${zsh_cv_sys_dynamic_strip_lib=yes}"
11712  zsh_cv_shared_environ="${zsh_cv_shared_environ=yes}"
11713elif test "$host_os" = cygwin; then
11714  DL_EXT="${DL_EXT=dll}"
11715##DLLD="${DLLD=dllwrap}"
11716  DLLD="${DLLD=$CC}"
11717##DLLDFLAGS="${DLLDFLAGS=--export-all-symbols}"
11718  DLLDFLAGS=${DLLDFLAGS=-shared -Wl,--export-all-symbols}
11719  zsh_cv_func_dlsym_needs_underscore=no
11720  DLLDFLAGS=${DLLDFLAGS=}
11721  EXTRA_LDFLAGS=${EXTRA_LDFLAGS=}
11722  zsh_cv_sys_dynamic_clash_ok="${zsh_cv_sys_dynamic_clash_ok=no}"
11723  zsh_cv_sys_dynamic_rtld_global="${zsh_cv_sys_dynamic_rtld_global=yes}"
11724  zsh_cv_sys_dynamic_execsyms="${zsh_cv_sys_dynamic_execsyms=no}"
11725  zsh_cv_sys_dynamic_strip_exe="${zsh_cv_sys_dynamic_strip_exe=yes}"
11726  zsh_cv_sys_dynamic_strip_lib="${zsh_cv_sys_dynamic_strip_lib=yes}"
11727  #
11728  # THAT SUCKS! and must be changed
11729  #
11730  zsh_cv_shared_environ="${zsh_cv_shared_environ=yes}"
11731  LINKMODS=LINKMODS
11732  MOD_EXPORT="__attribute__((__dllexport__))"
11733  MOD_IMPORT_VARIABLE="__attribute__((__dllimport__))"
11734  MOD_IMPORT_FUNCTION=
11735elif test "x$dynamic" = xyes; then
11736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system uses ELF binaries" >&5
11737$as_echo_n "checking if your system uses ELF binaries... " >&6; }
11738if ${zsh_cv_sys_elf+:} false; then :
11739  $as_echo_n "(cached) " >&6
11740else
11741  if test "$cross_compiling" = yes; then :
11742  zsh_cv_sys_elf=yes
11743else
11744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745/* end confdefs.h.  */
11746/* Test for whether ELF binaries are produced */
11747#include <fcntl.h>
11748#include <stdlib.h>
11749main(argc, argv)
11750int argc;
11751char *argv[];
11752{
11753	char b[4];
11754	int i = open(argv[0],O_RDONLY);
11755	if(i == -1)
11756		exit(1); /* fail */
11757	if(read(i,b,4)==4 && b[0]==127 && b[1]=='E' && b[2]=='L' && b[3]=='F')
11758		exit(0); /* succeed (yes, it's ELF) */
11759	else
11760		exit(1); /* fail */
11761}
11762_ACEOF
11763if ac_fn_c_try_run "$LINENO"; then :
11764  zsh_cv_sys_elf=yes
11765else
11766  zsh_cv_sys_elf=no
11767fi
11768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11769  conftest.$ac_objext conftest.beam conftest.$ac_ext
11770fi
11771
11772fi
11773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_elf" >&5
11774$as_echo "$zsh_cv_sys_elf" >&6; }
11775
11776  # We use [0-9]* in case statements, so need to change quoting
11777
11778
11779  DL_EXT="${DL_EXT=so}"
11780  if test x$zsh_cv_sys_elf = xyes; then
11781    case "$host" in
11782      mips-sni-sysv4*)
11783        # Forcibly set ld to native compiler to avoid obscure GCC problems
11784	DLLD="${DLLD=/usr/ccs/bin/cc}"
11785	DLLDARG="${LDARG}"
11786      ;;
11787      * )
11788	DLLD="${DLLD=$CC}"
11789	DLLDARG="${LDARG}"
11790      ;;
11791    esac
11792  else
11793    case "$host" in
11794      *openbsd*)
11795	case "$host_os" in
11796	  openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11797	    DLLD="${DLLD=ld}"
11798	  ;;
11799	  *)
11800	    DLLD="${DLLD=$CC}"
11801	  ;;
11802	esac
11803	DLLDARG="${LDARG}"
11804      ;;
11805      *darwin*)
11806        DLLD="${DLLD=$CC}"
11807        DLLDARG=""
11808      ;;
11809      *interix*)
11810        DLLD="${DLLD=$CC}"
11811        DLLDARG=""
11812      ;;
11813      * )
11814	DLLD="${DLLD=ld}"
11815	DLLDARG=""
11816      ;;
11817    esac
11818  fi
11819  if test -n "$GCC"; then
11820    case "$host_os" in
11821      hpux*)   DLLDFLAGS="${DLLDFLAGS=-shared}" ;;
11822      darwin*) DLCFLAGS="${DLCFLAGS=-fno-common}" ;;
11823      interix*) DLCFLAGS="${DLCFLAGS=}" ;;
11824      *)       DLCFLAGS="${DLCFLAGS=-fPIC}" ;;
11825    esac
11826  else
11827    case "$host_os" in
11828      hpux*)
11829        DLCFLAGS="${DLCFLAGS=+z}"
11830        DLLDFLAGS="${DLLDFLAGS=-b}"
11831      ;;
11832      sunos*)                DLCFLAGS="${DLCFLAGS=-pic}" ;;
11833      solaris*|sysv4*|esix*) DLCFLAGS="${DLCFLAGS=-KPIC}" ;;
11834    esac
11835  fi
11836  case "$host_os" in
11837    osf*) DLLDFLAGS="${DLLDFLAGS=-shared -expect_unresolved '*'}" ;;
11838    *freebsd*|*netbsd*|linux*|irix*|gnu*|interix*|dragonfly*) DLLDFLAGS="${DLLDFLAGS=-shared}" ;;
11839    sunos*)       DLLDFLAGS="${DLLDFLAGS=-assert nodefinitions}" ;;
11840    sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G $ldflags}" ;;
11841    aix*)         DLLDFLAGS="${DLLDFLAGS=-G -bexpall -lc}" ;;
11842    solaris*|sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G}" ;;
11843    darwin*)      DLLDFLAGS="${DLLDFLAGS=-bundle -flat_namespace -undefined suppress}" ;;
11844    beos*|haiku*) DLLDFLAGS="${DLLDFLAGS=-nostart}" ;;
11845    openbsd*)
11846      if test x$zsh_cv_sys_elf = xyes; then
11847	DLLDFLAGS="${DLLDFLAGS=-shared -fPIC}"
11848      else
11849	case "$host_os" in
11850	  openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11851	   DLLDFLAGS="${DLLDFLAGS=-Bshareable}"
11852	  ;;
11853	  *)
11854	    DLLDFLAGS="${DLLDFLAGS=-shared -fPIC}"
11855	  ;;
11856	esac
11857      fi
11858    ;;
11859  esac
11860  case "$host" in
11861    *-hpux*)  EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-Wl,-E}" ;;
11862    *openbsd*)
11863       if test x$zsh_cv_sys_elf = xyes; then
11864	 EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-Wl,-E}"
11865       fi
11866    ;;
11867    mips-sni-sysv4)
11868      #
11869      # unfortunately, we have different compilers
11870      # that need different flags
11871      #
11872      if test -n "$GCC"; then
11873        sni_cc_version=GCC
11874      else
11875        sni_cc_version=`$CC -V 2>&1 | head -1`
11876      fi
11877      case "$sni_cc_version" in
11878        *CDS*|GCC )
11879         EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-Wl,-Blargedynsym}"
11880       ;;
11881       * )
11882         EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-LD-Blargedynsym}"
11883       ;;
11884      esac
11885    ;;
11886    *-beos*)
11887      # gcc on BeOS doesn't like -rdynamic...
11888      EXTRA_LDFLAGS="${EXTRA_LDFLAGS= }"
11889      # also, dlopen() at least in Zeta respects $LIBRARY_PATH, so needs %A added to it.
11890      export LIBRARY_PATH="$LIBRARY_PATH:%A/"
11891    ;;
11892    *-haiku*)
11893      #
11894    ;;
11895  esac
11896
11897  # Done with our shell code, so restore autotools quoting
11898
11899
11900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use -rdynamic" >&5
11901$as_echo_n "checking if we can use -rdynamic... " >&6; }
11902if ${zsh_cv_rdynamic_available+:} false; then :
11903  $as_echo_n "(cached) " >&6
11904else
11905  old_LDFLAGS="$LDFLAGS"
11906LDFLAGS="$LDFLAGS -rdynamic"
11907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908/* end confdefs.h.  */
11909
11910int
11911main ()
11912{
11913
11914  ;
11915  return 0;
11916}
11917_ACEOF
11918if ac_fn_c_try_link "$LINENO"; then :
11919  zsh_cv_rdynamic_available=yes
11920EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-rdynamic}"
11921else
11922  zsh_cvs_rdynamic_available=no
11923fi
11924rm -f core conftest.err conftest.$ac_objext \
11925    conftest$ac_exeext conftest.$ac_ext
11926LDFLAGS="$old_LDFLAGS"
11927fi
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_rdynamic_available" >&5
11929$as_echo "$zsh_cv_rdynamic_available" >&6; }
11930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your dlsym() needs a leading underscore" >&5
11931$as_echo_n "checking if your dlsym() needs a leading underscore... " >&6; }
11932if ${zsh_cv_func_dlsym_needs_underscore+:} false; then :
11933  $as_echo_n "(cached) " >&6
11934else
11935  echo failed >conftestval && cat >conftest.c <<EOM
11936fred () { }
11937EOM
11938    { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest.c 1>&5'
11939  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11940  (eval $ac_try) 2>&5
11941  ac_status=$?
11942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11943  test $ac_status = 0; }; } &&
11944    { ac_try='$DLLD $LDFLAGS $DLLDFLAGS -o conftest.$DL_EXT conftest.o 1>&5'
11945  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11946  (eval $ac_try) 2>&5
11947  ac_status=$?
11948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11949  test $ac_status = 0; }; } &&
11950    if test "$cross_compiling" = yes; then :
11951  zsh_cv_func_dlsym_needs_underscore=no
11952else
11953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954/* end confdefs.h.  */
11955
11956#include <stdio.h>
11957#ifdef HPUX10DYNAMIC
11958#include <dl.h>
11959#define RTLD_LAZY BIND_DEFERRED
11960#define RTLD_GLOBAL DYNAMIC_PATH
11961
11962char *zsh_gl_sym_addr ;
11963
11964#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
11965#define dlclose(handle) shl_unload((shl_t)(handle))
11966#define dlsym(handle,name) (zsh_gl_sym_addr=0,shl_findsym((shl_t *)&(handle),name,TYPE_UNDEFINED,&zsh_gl_sym_addr), (void *)zsh_gl_sym_addr)
11967#define dlerror() 0
11968#else
11969#ifdef HAVE_DLFCN_H
11970#include <dlfcn.h>
11971#else
11972#include <sys/types.h>
11973#include <nlist.h>
11974#include <link.h>
11975#endif
11976#endif
11977#ifndef RTLD_LAZY
11978#define RTLD_LAZY 1
11979#endif
11980
11981extern int fred() ;
11982
11983main()
11984{
11985    void * handle ;
11986    void * symbol ;
11987    FILE *f=fopen("conftestval", "w");
11988    if (!f) exit(1);
11989    handle = dlopen("./conftest.$DL_EXT", RTLD_LAZY) ;
11990    if (handle == NULL) {
11991        fprintf (f, "dlopen failed") ;
11992            exit(1);
11993    }
11994    symbol = dlsym(handle, "fred") ;
11995    if (symbol == NULL) {
11996                /* try putting a leading underscore */
11997        symbol = dlsym(handle, "_fred") ;
11998        if (symbol == NULL) {
11999            fprintf (f, "dlsym failed") ;
12000                exit(1);
12001                }
12002        fprintf (f, "yes") ;
12003    }
12004    else
12005        fprintf (f, "no") ;
12006    exit(0);
12007}
12008_ACEOF
12009if ac_fn_c_try_run "$LINENO"; then :
12010  zsh_cv_func_dlsym_needs_underscore=`cat conftestval`
12011else
12012  zsh_cv_func_dlsym_needs_underscore=failed
12013    dynamic=no
12014fi
12015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12016  conftest.$ac_objext conftest.beam conftest.$ac_ext
12017fi
12018
12019fi
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_func_dlsym_needs_underscore" >&5
12021$as_echo "$zsh_cv_func_dlsym_needs_underscore" >&6; }
12022  if test "x$zsh_cv_func_dlsym_needs_underscore" = xyes; then
12023    $as_echo "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h
12024
12025  elif test "x$zsh_cv_func_dlsym_needs_underscore" != xno; then
12026        unset zsh_cv_func_dlsym_needs_underscore
12027  fi
12028fi
12029
12030if test "x$dynamic" = xyes; then
12031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is available in shared libraries" >&5
12032$as_echo_n "checking if environ is available in shared libraries... " >&6; }
12033if ${zsh_cv_shared_environ+:} false; then :
12034  $as_echo_n "(cached) " >&6
12035else
12036  if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
12037    us=_
12038else
12039    us=
12040fi
12041echo '
12042void *zsh_getaddr1()
12043{
12044#ifdef __CYGWIN__
12045	__attribute__((__dllimport__))
12046#endif
12047	extern char ** environ;
12048	return &environ;
12049};
12050' > conftest1.c
12051sed 's/zsh_getaddr1/zsh_getaddr2/' < conftest1.c > conftest2.c
12052if { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
12053  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12054  (eval $ac_try) 2>&5
12055  ac_status=$?
12056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12057  test $ac_status = 0; }; } &&
12058{ ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS 1>&5'
12059  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12060  (eval $ac_try) 2>&5
12061  ac_status=$?
12062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12063  test $ac_status = 0; }; } &&
12064{ ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&5'
12065  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12066  (eval $ac_try) 2>&5
12067  ac_status=$?
12068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12069  test $ac_status = 0; }; } &&
12070{ ac_try='$DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&5'
12071  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12072  (eval $ac_try) 2>&5
12073  ac_status=$?
12074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12075  test $ac_status = 0; }; }; then
12076    if test "$cross_compiling" = yes; then :
12077  zsh_cv_shared_environ=no
12078
12079else
12080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081/* end confdefs.h.  */
12082
12083#ifdef HPUX10DYNAMIC
12084#include <dl.h>
12085#define RTLD_LAZY BIND_DEFERRED
12086#define RTLD_GLOBAL DYNAMIC_PATH
12087
12088char *zsh_gl_sym_addr ;
12089
12090#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
12091#define dlclose(handle) shl_unload((shl_t)(handle))
12092#define dlsym(handle,name) (zsh_gl_sym_addr=0,shl_findsym((shl_t *)&(handle),name,TYPE_UNDEFINED,&zsh_gl_sym_addr), (void *)zsh_gl_sym_addr)
12093#define dlerror() 0
12094#else
12095#ifdef HAVE_DLFCN_H
12096#include <dlfcn.h>
12097#else
12098#include <sys/types.h>
12099#include <nlist.h>
12100#include <link.h>
12101#endif
12102#endif
12103#ifndef RTLD_LAZY
12104#define RTLD_LAZY 1
12105#endif
12106#ifndef RTLD_GLOBAL
12107#define RTLD_GLOBAL 0
12108#endif
12109
12110main()
12111{
12112    void *handle1, *handle2;
12113    void *(*zsh_getaddr1)(), *(*zsh_getaddr2)();
12114    void *sym1, *sym2;
12115    handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12116    if(!handle1) exit(1);
12117    handle2 = dlopen("./conftest2.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12118    if(!handle2) exit(1);
12119    zsh_getaddr1 = (void *(*)()) dlsym(handle1, "${us}zsh_getaddr1");
12120    zsh_getaddr2 = (void *(*)()) dlsym(handle2, "${us}zsh_getaddr2");
12121    sym1 = zsh_getaddr1();
12122    sym2 = zsh_getaddr2();
12123    if(!sym1 || !sym2) exit(1);
12124    if(sym1 != sym2) exit(1);
12125    dlclose(handle1);
12126    handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12127    if(!handle1) exit(1);
12128    zsh_getaddr1 = (void *(*)()) dlsym(handle1, "${us}zsh_getaddr1");
12129    sym1 = zsh_getaddr1();
12130    if(!sym1) exit(1);
12131    if(sym1 != sym2) exit(1);
12132    exit(0);
12133}
12134
12135_ACEOF
12136if ac_fn_c_try_run "$LINENO"; then :
12137  zsh_cv_shared_environ=yes
12138else
12139  zsh_cv_shared_environ=no
12140fi
12141rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12142  conftest.$ac_objext conftest.beam conftest.$ac_ext
12143fi
12144
12145else
12146    zsh_cv_shared_environ=no
12147fi
12148
12149fi
12150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_shared_environ" >&5
12151$as_echo "$zsh_cv_shared_environ" >&6; }
12152
12153  test "$zsh_cv_shared_environ" = yes || dynamic=no
12154  if test "$ac_cv_func_tgetent" = yes; then
12155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tgetent is available in shared libraries" >&5
12156$as_echo_n "checking if tgetent is available in shared libraries... " >&6; }
12157if ${zsh_cv_shared_tgetent+:} false; then :
12158  $as_echo_n "(cached) " >&6
12159else
12160  if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
12161    us=_
12162else
12163    us=
12164fi
12165echo '
12166void *zsh_getaddr1()
12167{
12168#ifdef __CYGWIN__
12169	__attribute__((__dllimport__))
12170#endif
12171	extern int  tgetent ( );
12172	return tgetent;
12173};
12174' > conftest1.c
12175sed 's/zsh_getaddr1/zsh_getaddr2/' < conftest1.c > conftest2.c
12176if { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
12177  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12178  (eval $ac_try) 2>&5
12179  ac_status=$?
12180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12181  test $ac_status = 0; }; } &&
12182{ ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS 1>&5'
12183  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12184  (eval $ac_try) 2>&5
12185  ac_status=$?
12186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12187  test $ac_status = 0; }; } &&
12188{ ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&5'
12189  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12190  (eval $ac_try) 2>&5
12191  ac_status=$?
12192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12193  test $ac_status = 0; }; } &&
12194{ ac_try='$DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&5'
12195  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12196  (eval $ac_try) 2>&5
12197  ac_status=$?
12198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12199  test $ac_status = 0; }; }; then
12200    if test "$cross_compiling" = yes; then :
12201  zsh_cv_shared_tgetent=no
12202
12203else
12204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205/* end confdefs.h.  */
12206
12207#ifdef HPUX10DYNAMIC
12208#include <dl.h>
12209#define RTLD_LAZY BIND_DEFERRED
12210#define RTLD_GLOBAL DYNAMIC_PATH
12211
12212char *zsh_gl_sym_addr ;
12213
12214#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
12215#define dlclose(handle) shl_unload((shl_t)(handle))
12216#define dlsym(handle,name) (zsh_gl_sym_addr=0,shl_findsym((shl_t *)&(handle),name,TYPE_UNDEFINED,&zsh_gl_sym_addr), (void *)zsh_gl_sym_addr)
12217#define dlerror() 0
12218#else
12219#ifdef HAVE_DLFCN_H
12220#include <dlfcn.h>
12221#else
12222#include <sys/types.h>
12223#include <nlist.h>
12224#include <link.h>
12225#endif
12226#endif
12227#ifndef RTLD_LAZY
12228#define RTLD_LAZY 1
12229#endif
12230#ifndef RTLD_GLOBAL
12231#define RTLD_GLOBAL 0
12232#endif
12233
12234main()
12235{
12236    void *handle1, *handle2;
12237    void *(*zsh_getaddr1)(), *(*zsh_getaddr2)();
12238    void *sym1, *sym2;
12239    handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12240    if(!handle1) exit(1);
12241    handle2 = dlopen("./conftest2.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12242    if(!handle2) exit(1);
12243    zsh_getaddr1 = (void *(*)()) dlsym(handle1, "${us}zsh_getaddr1");
12244    zsh_getaddr2 = (void *(*)()) dlsym(handle2, "${us}zsh_getaddr2");
12245    sym1 = zsh_getaddr1();
12246    sym2 = zsh_getaddr2();
12247    if(!sym1 || !sym2) exit(1);
12248    if(sym1 != sym2) exit(1);
12249    dlclose(handle1);
12250    handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12251    if(!handle1) exit(1);
12252    zsh_getaddr1 = (void *(*)()) dlsym(handle1, "${us}zsh_getaddr1");
12253    sym1 = zsh_getaddr1();
12254    if(!sym1) exit(1);
12255    if(sym1 != sym2) exit(1);
12256    exit(0);
12257}
12258
12259_ACEOF
12260if ac_fn_c_try_run "$LINENO"; then :
12261  zsh_cv_shared_tgetent=yes
12262else
12263  zsh_cv_shared_tgetent=no
12264fi
12265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12266  conftest.$ac_objext conftest.beam conftest.$ac_ext
12267fi
12268
12269else
12270    zsh_cv_shared_tgetent=no
12271fi
12272
12273fi
12274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_shared_tgetent" >&5
12275$as_echo "$zsh_cv_shared_tgetent" >&6; }
12276
12277  fi
12278  if test "$ac_cv_func_tigetstr" = yes; then
12279    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tigetstr is available in shared libraries" >&5
12280$as_echo_n "checking if tigetstr is available in shared libraries... " >&6; }
12281if ${zsh_cv_shared_tigetstr+:} false; then :
12282  $as_echo_n "(cached) " >&6
12283else
12284  if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
12285    us=_
12286else
12287    us=
12288fi
12289echo '
12290void *zsh_getaddr1()
12291{
12292#ifdef __CYGWIN__
12293	__attribute__((__dllimport__))
12294#endif
12295	extern int  tigetstr ( );
12296	return tigetstr;
12297};
12298' > conftest1.c
12299sed 's/zsh_getaddr1/zsh_getaddr2/' < conftest1.c > conftest2.c
12300if { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
12301  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12302  (eval $ac_try) 2>&5
12303  ac_status=$?
12304  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12305  test $ac_status = 0; }; } &&
12306{ ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS 1>&5'
12307  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12308  (eval $ac_try) 2>&5
12309  ac_status=$?
12310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12311  test $ac_status = 0; }; } &&
12312{ ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&5'
12313  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12314  (eval $ac_try) 2>&5
12315  ac_status=$?
12316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12317  test $ac_status = 0; }; } &&
12318{ ac_try='$DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&5'
12319  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12320  (eval $ac_try) 2>&5
12321  ac_status=$?
12322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12323  test $ac_status = 0; }; }; then
12324    if test "$cross_compiling" = yes; then :
12325  zsh_cv_shared_tigetstr=no
12326
12327else
12328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329/* end confdefs.h.  */
12330
12331#ifdef HPUX10DYNAMIC
12332#include <dl.h>
12333#define RTLD_LAZY BIND_DEFERRED
12334#define RTLD_GLOBAL DYNAMIC_PATH
12335
12336char *zsh_gl_sym_addr ;
12337
12338#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
12339#define dlclose(handle) shl_unload((shl_t)(handle))
12340#define dlsym(handle,name) (zsh_gl_sym_addr=0,shl_findsym((shl_t *)&(handle),name,TYPE_UNDEFINED,&zsh_gl_sym_addr), (void *)zsh_gl_sym_addr)
12341#define dlerror() 0
12342#else
12343#ifdef HAVE_DLFCN_H
12344#include <dlfcn.h>
12345#else
12346#include <sys/types.h>
12347#include <nlist.h>
12348#include <link.h>
12349#endif
12350#endif
12351#ifndef RTLD_LAZY
12352#define RTLD_LAZY 1
12353#endif
12354#ifndef RTLD_GLOBAL
12355#define RTLD_GLOBAL 0
12356#endif
12357
12358main()
12359{
12360    void *handle1, *handle2;
12361    void *(*zsh_getaddr1)(), *(*zsh_getaddr2)();
12362    void *sym1, *sym2;
12363    handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12364    if(!handle1) exit(1);
12365    handle2 = dlopen("./conftest2.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12366    if(!handle2) exit(1);
12367    zsh_getaddr1 = (void *(*)()) dlsym(handle1, "${us}zsh_getaddr1");
12368    zsh_getaddr2 = (void *(*)()) dlsym(handle2, "${us}zsh_getaddr2");
12369    sym1 = zsh_getaddr1();
12370    sym2 = zsh_getaddr2();
12371    if(!sym1 || !sym2) exit(1);
12372    if(sym1 != sym2) exit(1);
12373    dlclose(handle1);
12374    handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12375    if(!handle1) exit(1);
12376    zsh_getaddr1 = (void *(*)()) dlsym(handle1, "${us}zsh_getaddr1");
12377    sym1 = zsh_getaddr1();
12378    if(!sym1) exit(1);
12379    if(sym1 != sym2) exit(1);
12380    exit(0);
12381}
12382
12383_ACEOF
12384if ac_fn_c_try_run "$LINENO"; then :
12385  zsh_cv_shared_tigetstr=yes
12386else
12387  zsh_cv_shared_tigetstr=no
12388fi
12389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12390  conftest.$ac_objext conftest.beam conftest.$ac_ext
12391fi
12392
12393else
12394    zsh_cv_shared_tigetstr=no
12395fi
12396
12397fi
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_shared_tigetstr" >&5
12399$as_echo "$zsh_cv_shared_tigetstr" >&6; }
12400
12401  fi
12402fi
12403
12404if test "x$dynamic" = xyes; then
12405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if name clashes in shared objects are OK" >&5
12406$as_echo_n "checking if name clashes in shared objects are OK... " >&6; }
12407if ${zsh_cv_sys_dynamic_clash_ok+:} false; then :
12408  $as_echo_n "(cached) " >&6
12409else
12410  if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
12411    us=_
12412else
12413    us=
12414fi
12415echo 'int fred () { return 42; }' > conftest1.c
12416echo 'int fred () { return 69; }' > conftest2.c
12417if { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
12418  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12419  (eval $ac_try) 2>&5
12420  ac_status=$?
12421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12422  test $ac_status = 0; }; } &&
12423{ ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS 1>&5'
12424  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12425  (eval $ac_try) 2>&5
12426  ac_status=$?
12427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12428  test $ac_status = 0; }; } &&
12429{ ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&5'
12430  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12431  (eval $ac_try) 2>&5
12432  ac_status=$?
12433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12434  test $ac_status = 0; }; } &&
12435{ ac_try='$DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&5'
12436  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12437  (eval $ac_try) 2>&5
12438  ac_status=$?
12439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12440  test $ac_status = 0; }; }; then
12441    if test "$cross_compiling" = yes; then :
12442  zsh_cv_sys_dynamic_clash_ok=no
12443
12444else
12445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446/* end confdefs.h.  */
12447
12448#ifdef HPUX10DYNAMIC
12449#include <dl.h>
12450#define RTLD_LAZY BIND_DEFERRED
12451#define RTLD_GLOBAL DYNAMIC_PATH
12452
12453char *zsh_gl_sym_addr ;
12454
12455#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
12456#define dlclose(handle) shl_unload((shl_t)(handle))
12457#define dlsym(handle,name) (zsh_gl_sym_addr=0,shl_findsym((shl_t *)&(handle),name,TYPE_UNDEFINED,&zsh_gl_sym_addr), (void *)zsh_gl_sym_addr)
12458#define dlerror() 0
12459#else
12460#ifdef HAVE_DLFCN_H
12461#include <dlfcn.h>
12462#else
12463#include <sys/types.h>
12464#include <nlist.h>
12465#include <link.h>
12466#endif
12467#endif
12468#ifndef RTLD_LAZY
12469#define RTLD_LAZY 1
12470#endif
12471#ifndef RTLD_GLOBAL
12472#define RTLD_GLOBAL 0
12473#endif
12474
12475
12476main()
12477{
12478    void *handle1, *handle2;
12479    int (*fred1)(), (*fred2)();
12480    handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12481    if(!handle1) exit(1);
12482    handle2 = dlopen("./conftest2.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12483    if(!handle2) exit(1);
12484    fred1 = (int (*)()) dlsym(handle1, "${us}fred");
12485    fred2 = (int (*)()) dlsym(handle2, "${us}fred");
12486    if(!fred1 || !fred2) exit(1);
12487    exit((*fred1)() != 42 || (*fred2)() != 69);
12488}
12489
12490_ACEOF
12491if ac_fn_c_try_run "$LINENO"; then :
12492  zsh_cv_sys_dynamic_clash_ok=yes
12493else
12494  zsh_cv_sys_dynamic_clash_ok=no
12495fi
12496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12497  conftest.$ac_objext conftest.beam conftest.$ac_ext
12498fi
12499
12500else
12501    zsh_cv_sys_dynamic_clash_ok=no
12502fi
12503
12504fi
12505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_dynamic_clash_ok" >&5
12506$as_echo "$zsh_cv_sys_dynamic_clash_ok" >&6; }
12507if test "$zsh_cv_sys_dynamic_clash_ok" = yes; then
12508    $as_echo "#define DYNAMIC_NAME_CLASH_OK 1" >>confdefs.h
12509
12510fi
12511
12512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working RTLD_GLOBAL" >&5
12513$as_echo_n "checking for working RTLD_GLOBAL... " >&6; }
12514if ${zsh_cv_sys_dynamic_rtld_global+:} false; then :
12515  $as_echo_n "(cached) " >&6
12516else
12517  if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
12518    us=_
12519else
12520    us=
12521fi
12522echo 'int fred () { return 42; }' > conftest1.c
12523echo 'extern int fred(); int barney () { return fred() + 27; }' > conftest2.c
12524if { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
12525  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12526  (eval $ac_try) 2>&5
12527  ac_status=$?
12528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12529  test $ac_status = 0; }; } &&
12530{ ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS 1>&5'
12531  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12532  (eval $ac_try) 2>&5
12533  ac_status=$?
12534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12535  test $ac_status = 0; }; } &&
12536{ ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&5'
12537  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12538  (eval $ac_try) 2>&5
12539  ac_status=$?
12540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12541  test $ac_status = 0; }; } &&
12542{ ac_try='$DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&5'
12543  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12544  (eval $ac_try) 2>&5
12545  ac_status=$?
12546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12547  test $ac_status = 0; }; }; then
12548    if test "$cross_compiling" = yes; then :
12549  zsh_cv_sys_dynamic_rtld_global=no
12550
12551else
12552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553/* end confdefs.h.  */
12554
12555#ifdef HPUX10DYNAMIC
12556#include <dl.h>
12557#define RTLD_LAZY BIND_DEFERRED
12558#define RTLD_GLOBAL DYNAMIC_PATH
12559
12560char *zsh_gl_sym_addr ;
12561
12562#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
12563#define dlclose(handle) shl_unload((shl_t)(handle))
12564#define dlsym(handle,name) (zsh_gl_sym_addr=0,shl_findsym((shl_t *)&(handle),name,TYPE_UNDEFINED,&zsh_gl_sym_addr), (void *)zsh_gl_sym_addr)
12565#define dlerror() 0
12566#else
12567#ifdef HAVE_DLFCN_H
12568#include <dlfcn.h>
12569#else
12570#include <sys/types.h>
12571#include <nlist.h>
12572#include <link.h>
12573#endif
12574#endif
12575#ifndef RTLD_LAZY
12576#define RTLD_LAZY 1
12577#endif
12578#ifndef RTLD_GLOBAL
12579#define RTLD_GLOBAL 0
12580#endif
12581
12582main()
12583{
12584    void *handle;
12585    int (*barneysym)();
12586    handle = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12587    if(!handle) exit(1);
12588    handle = dlopen("./conftest2.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12589    if(!handle) exit(1);
12590    barneysym = (int (*)()) dlsym(handle, "${us}barney");
12591    if(!barneysym) exit(1);
12592    exit((*barneysym)() != 69);
12593}
12594
12595_ACEOF
12596if ac_fn_c_try_run "$LINENO"; then :
12597  zsh_cv_sys_dynamic_rtld_global=yes
12598else
12599  zsh_cv_sys_dynamic_rtld_global=no
12600fi
12601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12602  conftest.$ac_objext conftest.beam conftest.$ac_ext
12603fi
12604
12605else
12606    zsh_cv_sys_dynamic_rtld_global=no
12607fi
12608
12609fi
12610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_dynamic_rtld_global" >&5
12611$as_echo "$zsh_cv_sys_dynamic_rtld_global" >&6; }
12612
12613  RTLD_GLOBAL_OK=$zsh_cv_sys_dynamic_rtld_global
12614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbols in the executable are available" >&5
12615$as_echo_n "checking whether symbols in the executable are available... " >&6; }
12616if ${zsh_cv_sys_dynamic_execsyms+:} false; then :
12617  $as_echo_n "(cached) " >&6
12618else
12619  if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
12620    us=_
12621else
12622    us=
12623fi
12624echo 'extern int fred(); int barney () { return fred() + 27; }' > conftest1.c
12625if { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
12626  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12627  (eval $ac_try) 2>&5
12628  ac_status=$?
12629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12630  test $ac_status = 0; }; } &&
12631{ ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS 1>&5'
12632  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12633  (eval $ac_try) 2>&5
12634  ac_status=$?
12635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12636  test $ac_status = 0; }; }; then
12637    save_ldflags=$LDFLAGS
12638    LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
12639    if test "$cross_compiling" = yes; then :
12640  zsh_cv_sys_dynamic_execsyms=no
12641
12642else
12643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644/* end confdefs.h.  */
12645
12646#ifdef HPUX10DYNAMIC
12647#include <dl.h>
12648#define RTLD_LAZY BIND_DEFERRED
12649#define RTLD_GLOBAL DYNAMIC_PATH
12650
12651char *zsh_gl_sym_addr ;
12652
12653#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
12654#define dlclose(handle) shl_unload((shl_t)(handle))
12655#define dlsym(handle,name) (zsh_gl_sym_addr=0,shl_findsym((shl_t *)&(handle),name,TYPE_UNDEFINED,&zsh_gl_sym_addr), (void *)zsh_gl_sym_addr)
12656#define dlerror() 0
12657#else
12658#ifdef HAVE_DLFCN_H
12659#include <dlfcn.h>
12660#else
12661#include <sys/types.h>
12662#include <nlist.h>
12663#include <link.h>
12664#endif
12665#endif
12666#ifndef RTLD_LAZY
12667#define RTLD_LAZY 1
12668#endif
12669#ifndef RTLD_GLOBAL
12670#define RTLD_GLOBAL 0
12671#endif
12672
12673main()
12674{
12675    void *handle;
12676    int (*barneysym)();
12677    handle = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12678    if(!handle) exit(1);
12679    barneysym = (int (*)()) dlsym(handle, "${us}barney");
12680    if(!barneysym) exit(1);
12681    exit((*barneysym)() != 69);
12682}
12683
12684int fred () { return 42; }
12685
12686_ACEOF
12687if ac_fn_c_try_run "$LINENO"; then :
12688  zsh_cv_sys_dynamic_execsyms=yes
12689else
12690  zsh_cv_sys_dynamic_execsyms=no
12691fi
12692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12693  conftest.$ac_objext conftest.beam conftest.$ac_ext
12694fi
12695
12696    LDFLAGS=$save_ldflags
12697else
12698    zsh_cv_sys_dynamic_execsyms=no
12699fi
12700
12701fi
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_dynamic_execsyms" >&5
12703$as_echo "$zsh_cv_sys_dynamic_execsyms" >&6; }
12704
12705  if test "$zsh_cv_sys_dynamic_execsyms" != yes; then
12706    L=L
12707  fi
12708
12709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether executables can be stripped" >&5
12710$as_echo_n "checking whether executables can be stripped... " >&6; }
12711if ${zsh_cv_sys_dynamic_strip_exe+:} false; then :
12712  $as_echo_n "(cached) " >&6
12713else
12714  if test "$zsh_cv_sys_dynamic_execsyms" != yes; then
12715    zsh_cv_sys_dynamic_strip_exe=yes
12716elif
12717    if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
12718	us=_
12719    else
12720	us=
12721    fi
12722    echo 'extern int fred(); int barney() { return fred() + 27; }' > conftest1.c
12723    { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
12724  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12725  (eval $ac_try) 2>&5
12726  ac_status=$?
12727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12728  test $ac_status = 0; }; } &&
12729    { ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS 1>&5'
12730  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12731  (eval $ac_try) 2>&5
12732  ac_status=$?
12733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12734  test $ac_status = 0; }; }; then
12735    save_ldflags=$LDFLAGS
12736    LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS -s"
12737    if test "$cross_compiling" = yes; then :
12738  zsh_cv_sys_dynamic_strip_exe=no
12739
12740else
12741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12742/* end confdefs.h.  */
12743
12744#ifdef HPUX10DYNAMIC
12745#include <dl.h>
12746#define RTLD_LAZY BIND_DEFERRED
12747#define RTLD_GLOBAL DYNAMIC_PATH
12748
12749char *zsh_gl_sym_addr ;
12750
12751#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
12752#define dlclose(handle) shl_unload((shl_t)(handle))
12753#define dlsym(handle,name) (zsh_gl_sym_addr=0,shl_findsym((shl_t *)&(handle),name,TYPE_UNDEFINED,&zsh_gl_sym_addr), (void *)zsh_gl_sym_addr)
12754#define dlerror() 0
12755#else
12756#ifdef HAVE_DLFCN_H
12757#include <dlfcn.h>
12758#else
12759#include <sys/types.h>
12760#include <nlist.h>
12761#include <link.h>
12762#endif
12763#endif
12764#ifndef RTLD_LAZY
12765#define RTLD_LAZY 1
12766#endif
12767#ifndef RTLD_GLOBAL
12768#define RTLD_GLOBAL 0
12769#endif
12770
12771main()
12772{
12773    void *handle;
12774    int (*barneysym)();
12775    handle = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12776    if(!handle) exit(1);
12777    barneysym = (int (*)()) dlsym(handle, "${us}barney");
12778    if(!barneysym) exit(1);
12779    exit((*barneysym)() != 69);
12780}
12781
12782int fred () { return 42; }
12783
12784_ACEOF
12785if ac_fn_c_try_run "$LINENO"; then :
12786  zsh_cv_sys_dynamic_strip_exe=yes
12787else
12788  zsh_cv_sys_dynamic_strip_exe=no
12789fi
12790rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12791  conftest.$ac_objext conftest.beam conftest.$ac_ext
12792fi
12793
12794    LDFLAGS=$save_ldflags
12795else
12796    zsh_cv_sys_dynamic_strip_exe=no
12797fi
12798
12799fi
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_dynamic_strip_exe" >&5
12801$as_echo "$zsh_cv_sys_dynamic_strip_exe" >&6; }
12802
12803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libraries can be stripped" >&5
12804$as_echo_n "checking whether libraries can be stripped... " >&6; }
12805if ${zsh_cv_sys_dynamic_strip_lib+:} false; then :
12806  $as_echo_n "(cached) " >&6
12807else
12808  if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
12809    us=_
12810else
12811    us=
12812fi
12813echo 'int fred () { return 42; }' > conftest1.c
12814if { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
12815  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12816  (eval $ac_try) 2>&5
12817  ac_status=$?
12818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12819  test $ac_status = 0; }; } &&
12820{ ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS -s conftest1.o $LIBS 1>&5'
12821  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12822  (eval $ac_try) 2>&5
12823  ac_status=$?
12824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12825  test $ac_status = 0; }; }; then
12826    if test "$cross_compiling" = yes; then :
12827  zsh_cv_sys_dynamic_strip_lib=no
12828
12829else
12830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831/* end confdefs.h.  */
12832
12833#ifdef HPUX10DYNAMIC
12834#include <dl.h>
12835#define RTLD_LAZY BIND_DEFERRED
12836#define RTLD_GLOBAL DYNAMIC_PATH
12837
12838char *zsh_gl_sym_addr ;
12839
12840#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
12841#define dlclose(handle) shl_unload((shl_t)(handle))
12842#define dlsym(handle,name) (zsh_gl_sym_addr=0,shl_findsym((shl_t *)&(handle),name,TYPE_UNDEFINED,&zsh_gl_sym_addr), (void *)zsh_gl_sym_addr)
12843#define dlerror() 0
12844#else
12845#ifdef HAVE_DLFCN_H
12846#include <dlfcn.h>
12847#else
12848#include <sys/types.h>
12849#include <nlist.h>
12850#include <link.h>
12851#endif
12852#endif
12853#ifndef RTLD_LAZY
12854#define RTLD_LAZY 1
12855#endif
12856#ifndef RTLD_GLOBAL
12857#define RTLD_GLOBAL 0
12858#endif
12859
12860main()
12861{
12862    void *handle;
12863    int (*fredsym)();
12864    handle = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
12865    if(!handle) exit(1);
12866    fredsym = (int (*)()) dlsym(handle, "${us}fred");
12867    if(!fredsym) exit(1);
12868    exit((*fredsym)() != 42);
12869}
12870
12871_ACEOF
12872if ac_fn_c_try_run "$LINENO"; then :
12873  zsh_cv_sys_dynamic_strip_lib=yes
12874else
12875  zsh_cv_sys_dynamic_strip_lib=no
12876fi
12877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12878  conftest.$ac_objext conftest.beam conftest.$ac_ext
12879fi
12880
12881else
12882    zsh_cv_sys_dynamic_strip_lib=no
12883fi
12884
12885fi
12886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_dynamic_strip_lib" >&5
12887$as_echo "$zsh_cv_sys_dynamic_strip_lib" >&6; }
12888
12889  if $strip_exeldflags && test "$zsh_cv_sys_dynamic_strip_exe" = yes; then
12890    EXELDFLAGS="$EXELDFLAGS -s"
12891  fi
12892  if $strip_libldflags && test "$zsh_cv_sys_dynamic_strip_lib" = yes; then
12893    LIBLDFLAGS="$LIBLDFLAGS -s"
12894  fi
12895  if test "$host_os" = cygwin; then
12896    INSTLIB="install.cygwin-lib"
12897    UNINSTLIB="uninstall.cygwin-lib"
12898  fi
12899else
12900  $strip_exeldflags && EXELDFLAGS="$EXELDFLAGS -s"
12901  $strip_libldflags && LIBLDFLAGS="$LIBLDFLAGS -s"
12902  RTLD_GLOBAL_OK=no
12903fi
12904
12905
12906if test "x$dynamic" = xyes; then
12907  D=D
12908  $as_echo "#define DYNAMIC 1" >>confdefs.h
12909else
12910  D=N
12911fi
12912
12913
12914if test "x$aixdynamic" = xyes; then
12915  E=E
12916  $as_echo "#define AIXDYNAMIC 1" >>confdefs.h
12917else
12918  E=N
12919fi
12920
12921if test "x$zsh_cv_sys_dynamic_clash_ok" = xyes; then
12922  SHORTBOOTNAMES=yes
12923else
12924  SHORTBOOTNAMES=no
12925fi
12926
12927
12928
12929if test "$host_os" = cygwin; then
12930  EXTRAZSHOBJS="$EXTRAZSHOBJS zsh.res.o"
12931fi
12932
12933
12934cat >>confdefs.h <<_ACEOF
12935#define DL_EXT "$DL_EXT"
12936_ACEOF
12937
12938# Generate config.modules.  We look for *.mdd files in first and second
12939# level subdirectories.  Any existing line not containing 'auto=y' will be
12940# retained, provided the .mdd file itself was found.
12941CONFIG_MODULES=./config.modules
12942cat <<EOM > ${CONFIG_MODULES}.sh
12943srcdir="$srcdir"
12944dynamic="$dynamic"
12945CONFIG_MODULES="${CONFIG_MODULES}"
12946EOM
12947cat <<\EOM >> ${CONFIG_MODULES}.sh
12948echo "creating ${CONFIG_MODULES}"
12949userlist=" "
12950if test -f ${CONFIG_MODULES}; then
12951  userlist="`sed -e '/^#/d' -e '/auto=y/d' -e 's/ .*/ /' -e 's/^name=/ /' \
12952        ${CONFIG_MODULES}`"
12953  mv ${CONFIG_MODULES} ${CONFIG_MODULES}.old
12954else
12955  # Save testing for existence each time.
12956  echo > ${CONFIG_MODULES}.old
12957fi
12958(echo "# Edit this file to change the way modules are loaded."
12959echo "# The format is strict; do not break lines or add extra spaces."
12960echo "# Run \`make prep' if you change anything here after compiling"
12961echo "# (there is no need if you change this just after the first time"
12962echo "# you run \`configure')."
12963echo "#"
12964echo "# Values of \`link' are \`static', \`dynamic' or \`no' to compile the"
12965echo "# module into the shell, link it in at run time, or not use it at all."
12966echo "# In the final case, no attempt will be made to compile it."
12967echo "# Use \`static' or \`no' if you do not have dynamic loading."
12968echo "#"
12969echo "# Values of \`load' are \`yes' or \`no'; if yes, any builtins etc."
12970echo "# provided by the module will be autoloaded by the main shell"
12971echo "# (so long as \`link' is not set to \`no')."
12972echo "#"
12973echo "# Values of \`auto' are \`yes' or \`no'. configure sets the value to"
12974echo "# \`yes'.  If you set it by hand to \`no', the line will be retained"
12975echo "# when the file is regenerated in future."
12976echo "#"
12977echo "# Note that the \`functions' entry extends to the end of the line."
12978echo "# It should not be quoted; it is used verbatim to find files to install."
12979echo "#"
12980echo "# You will need to run \`config.status --recheck' if you add a new"
12981echo "# module."
12982echo "#"
12983echo "# You should not change the values for the pseudo-module zsh/main,"
12984echo "# which is the main shell (apart from the functions entry)."
12985EOM
12986for modfile in `cd ${srcdir}; echo */*.mdd */*/*.mdd`; do
12987  name=
12988  link=
12989  load=
12990  functions=
12991  result=
12992  . ${srcdir}/$modfile
12993  if test x$name != x && test x"$link" != x; then
12994    case "$link" in
12995      *\ *) eval "link=\`$link\`"
12996	    ;;
12997    esac
12998    case "${load}" in
12999      y*) load=" load=yes"
13000	  ;;
13001      *) load=" load=no"
13002	 ;;
13003    esac
13004    if test "x$functions" != x; then
13005      # N.B. no additional quotes
13006      f=" functions=$functions"
13007    else
13008      f=
13009    fi
13010    case "$link" in
13011      static) result="name=$name modfile=$modfile link=static auto=yes${load}$f"
13012	      ;;
13013      dynamic) if test x$dynamic != xno; then
13014		  result="name=$name modfile=$modfile link=dynamic\
13015 auto=yes${load}$f"
13016	       else
13017		 result="name=$name modfile=$modfile link=no\
13018 auto=yes load=no$f"
13019	       fi
13020	       ;;
13021      either) if test x$dynamic != xno; then
13022		result="name=$name modfile=$modfile link=dynamic\
13023 auto=yes${load}$f"
13024	      else
13025		result="name=$name modfile=$modfile link=static\
13026 auto=yes${load}$f"
13027	      fi
13028	      ;;
13029       *) result="name=$name modfile=$modfile link=no auto=yes load=no$f"
13030	  ;;
13031    esac
13032cat <<EOM >> ${CONFIG_MODULES}.sh
13033case "\$userlist" in
13034  *" $name "*) grep "^name=$name " \${CONFIG_MODULES}.old;;
13035  *) echo "$result";;
13036esac
13037EOM
13038  fi
13039done
13040cat <<\EOM >> ${CONFIG_MODULES}.sh
13041) >${CONFIG_MODULES}
13042rm -f ${CONFIG_MODULES}.old
13043EOM
13044
13045
13046
13047CLEAN_MK="${srcdir}/Config/clean.mk"
13048CONFIG_MK="${srcdir}/Config/config.mk"
13049DEFS_MK="Config/defs.mk"
13050VERSION_MK="${srcdir}/Config/version.mk"
13051
13052
13053ac_config_files="$ac_config_files Config/defs.mk Makefile Doc/Makefile Etc/Makefile Src/Makefile Test/Makefile"
13054
13055ac_config_commands="$ac_config_commands config.modules"
13056
13057ac_config_commands="$ac_config_commands stamp-h"
13058
13059
13060cat >confcache <<\_ACEOF
13061# This file is a shell script that caches the results of configure
13062# tests run on this system so they can be shared between configure
13063# scripts and configure runs, see configure's option --config-cache.
13064# It is not useful on other systems.  If it contains results you don't
13065# want to keep, you may remove or edit it.
13066#
13067# config.status only pays attention to the cache file if you give it
13068# the --recheck option to rerun configure.
13069#
13070# `ac_cv_env_foo' variables (set or unset) will be overridden when
13071# loading this file, other *unset* `ac_cv_foo' will be assigned the
13072# following values.
13073
13074_ACEOF
13075
13076# The following way of writing the cache mishandles newlines in values,
13077# but we know of no workaround that is simple, portable, and efficient.
13078# So, we kill variables containing newlines.
13079# Ultrix sh set writes to stderr and can't be redirected directly,
13080# and sets the high bit in the cache file unless we assign to the vars.
13081(
13082  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13083    eval ac_val=\$$ac_var
13084    case $ac_val in #(
13085    *${as_nl}*)
13086      case $ac_var in #(
13087      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13088$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13089      esac
13090      case $ac_var in #(
13091      _ | IFS | as_nl) ;; #(
13092      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13093      *) { eval $ac_var=; unset $ac_var;} ;;
13094      esac ;;
13095    esac
13096  done
13097
13098  (set) 2>&1 |
13099    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13100    *${as_nl}ac_space=\ *)
13101      # `set' does not quote correctly, so add quotes: double-quote
13102      # substitution turns \\\\ into \\, and sed turns \\ into \.
13103      sed -n \
13104	"s/'/'\\\\''/g;
13105	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13106      ;; #(
13107    *)
13108      # `set' quotes correctly as required by POSIX, so do not add quotes.
13109      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13110      ;;
13111    esac |
13112    sort
13113) |
13114  sed '
13115     /^ac_cv_env_/b end
13116     t clear
13117     :clear
13118     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13119     t end
13120     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13121     :end' >>confcache
13122if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13123  if test -w "$cache_file"; then
13124    if test "x$cache_file" != "x/dev/null"; then
13125      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13126$as_echo "$as_me: updating cache $cache_file" >&6;}
13127      if test ! -f "$cache_file" || test -h "$cache_file"; then
13128	cat confcache >"$cache_file"
13129      else
13130        case $cache_file in #(
13131        */* | ?:*)
13132	  mv -f confcache "$cache_file"$$ &&
13133	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13134        *)
13135	  mv -f confcache "$cache_file" ;;
13136	esac
13137      fi
13138    fi
13139  else
13140    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13141$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13142  fi
13143fi
13144rm -f confcache
13145
13146test "x$prefix" = xNONE && prefix=$ac_default_prefix
13147# Let make expand exec_prefix.
13148test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13149
13150DEFS=-DHAVE_CONFIG_H
13151
13152ac_libobjs=
13153ac_ltlibobjs=
13154U=
13155for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13156  # 1. Remove the extension, and $U if already installed.
13157  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13158  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13159  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13160  #    will be set to the directory where LIBOBJS objects are built.
13161  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13162  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13163done
13164LIBOBJS=$ac_libobjs
13165
13166LTLIBOBJS=$ac_ltlibobjs
13167
13168
13169
13170: "${CONFIG_STATUS=./config.status}"
13171ac_write_fail=0
13172ac_clean_files_save=$ac_clean_files
13173ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13175$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13176as_write_fail=0
13177cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13178#! $SHELL
13179# Generated by $as_me.
13180# Run this file to recreate the current configuration.
13181# Compiler output produced by configure, useful for debugging
13182# configure, is in config.log if it exists.
13183
13184debug=false
13185ac_cs_recheck=false
13186ac_cs_silent=false
13187
13188SHELL=\${CONFIG_SHELL-$SHELL}
13189export SHELL
13190_ASEOF
13191cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13192## -------------------- ##
13193## M4sh Initialization. ##
13194## -------------------- ##
13195
13196# Be more Bourne compatible
13197DUALCASE=1; export DUALCASE # for MKS sh
13198if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13199  emulate sh
13200  NULLCMD=:
13201  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13202  # is contrary to our usage.  Disable this feature.
13203  alias -g '${1+"$@"}'='"$@"'
13204  setopt NO_GLOB_SUBST
13205else
13206  case `(set -o) 2>/dev/null` in #(
13207  *posix*) :
13208    set -o posix ;; #(
13209  *) :
13210     ;;
13211esac
13212fi
13213
13214
13215as_nl='
13216'
13217export as_nl
13218# Printing a long string crashes Solaris 7 /usr/bin/printf.
13219as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13220as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13221as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13222# Prefer a ksh shell builtin over an external printf program on Solaris,
13223# but without wasting forks for bash or zsh.
13224if test -z "$BASH_VERSION$ZSH_VERSION" \
13225    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13226  as_echo='print -r --'
13227  as_echo_n='print -rn --'
13228elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13229  as_echo='printf %s\n'
13230  as_echo_n='printf %s'
13231else
13232  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13233    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13234    as_echo_n='/usr/ucb/echo -n'
13235  else
13236    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13237    as_echo_n_body='eval
13238      arg=$1;
13239      case $arg in #(
13240      *"$as_nl"*)
13241	expr "X$arg" : "X\\(.*\\)$as_nl";
13242	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13243      esac;
13244      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13245    '
13246    export as_echo_n_body
13247    as_echo_n='sh -c $as_echo_n_body as_echo'
13248  fi
13249  export as_echo_body
13250  as_echo='sh -c $as_echo_body as_echo'
13251fi
13252
13253# The user is always right.
13254if test "${PATH_SEPARATOR+set}" != set; then
13255  PATH_SEPARATOR=:
13256  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13257    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13258      PATH_SEPARATOR=';'
13259  }
13260fi
13261
13262
13263# IFS
13264# We need space, tab and new line, in precisely that order.  Quoting is
13265# there to prevent editors from complaining about space-tab.
13266# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13267# splitting by setting IFS to empty value.)
13268IFS=" ""	$as_nl"
13269
13270# Find who we are.  Look in the path if we contain no directory separator.
13271as_myself=
13272case $0 in #((
13273  *[\\/]* ) as_myself=$0 ;;
13274  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275for as_dir in $PATH
13276do
13277  IFS=$as_save_IFS
13278  test -z "$as_dir" && as_dir=.
13279    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13280  done
13281IFS=$as_save_IFS
13282
13283     ;;
13284esac
13285# We did not find ourselves, most probably we were run as `sh COMMAND'
13286# in which case we are not to be found in the path.
13287if test "x$as_myself" = x; then
13288  as_myself=$0
13289fi
13290if test ! -f "$as_myself"; then
13291  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13292  exit 1
13293fi
13294
13295# Unset variables that we do not need and which cause bugs (e.g. in
13296# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13297# suppresses any "Segmentation fault" message there.  '((' could
13298# trigger a bug in pdksh 5.2.14.
13299for as_var in BASH_ENV ENV MAIL MAILPATH
13300do eval test x\${$as_var+set} = xset \
13301  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13302done
13303PS1='$ '
13304PS2='> '
13305PS4='+ '
13306
13307# NLS nuisances.
13308LC_ALL=C
13309export LC_ALL
13310LANGUAGE=C
13311export LANGUAGE
13312
13313# CDPATH.
13314(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13315
13316
13317# as_fn_error STATUS ERROR [LINENO LOG_FD]
13318# ----------------------------------------
13319# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13320# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13321# script with STATUS, using 1 if that was 0.
13322as_fn_error ()
13323{
13324  as_status=$1; test $as_status -eq 0 && as_status=1
13325  if test "$4"; then
13326    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13327    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13328  fi
13329  $as_echo "$as_me: error: $2" >&2
13330  as_fn_exit $as_status
13331} # as_fn_error
13332
13333
13334# as_fn_set_status STATUS
13335# -----------------------
13336# Set $? to STATUS, without forking.
13337as_fn_set_status ()
13338{
13339  return $1
13340} # as_fn_set_status
13341
13342# as_fn_exit STATUS
13343# -----------------
13344# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13345as_fn_exit ()
13346{
13347  set +e
13348  as_fn_set_status $1
13349  exit $1
13350} # as_fn_exit
13351
13352# as_fn_unset VAR
13353# ---------------
13354# Portably unset VAR.
13355as_fn_unset ()
13356{
13357  { eval $1=; unset $1;}
13358}
13359as_unset=as_fn_unset
13360# as_fn_append VAR VALUE
13361# ----------------------
13362# Append the text in VALUE to the end of the definition contained in VAR. Take
13363# advantage of any shell optimizations that allow amortized linear growth over
13364# repeated appends, instead of the typical quadratic growth present in naive
13365# implementations.
13366if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13367  eval 'as_fn_append ()
13368  {
13369    eval $1+=\$2
13370  }'
13371else
13372  as_fn_append ()
13373  {
13374    eval $1=\$$1\$2
13375  }
13376fi # as_fn_append
13377
13378# as_fn_arith ARG...
13379# ------------------
13380# Perform arithmetic evaluation on the ARGs, and store the result in the
13381# global $as_val. Take advantage of shells that can avoid forks. The arguments
13382# must be portable across $(()) and expr.
13383if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13384  eval 'as_fn_arith ()
13385  {
13386    as_val=$(( $* ))
13387  }'
13388else
13389  as_fn_arith ()
13390  {
13391    as_val=`expr "$@" || test $? -eq 1`
13392  }
13393fi # as_fn_arith
13394
13395
13396if expr a : '\(a\)' >/dev/null 2>&1 &&
13397   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13398  as_expr=expr
13399else
13400  as_expr=false
13401fi
13402
13403if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13404  as_basename=basename
13405else
13406  as_basename=false
13407fi
13408
13409if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13410  as_dirname=dirname
13411else
13412  as_dirname=false
13413fi
13414
13415as_me=`$as_basename -- "$0" ||
13416$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13417	 X"$0" : 'X\(//\)$' \| \
13418	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13419$as_echo X/"$0" |
13420    sed '/^.*\/\([^/][^/]*\)\/*$/{
13421	    s//\1/
13422	    q
13423	  }
13424	  /^X\/\(\/\/\)$/{
13425	    s//\1/
13426	    q
13427	  }
13428	  /^X\/\(\/\).*/{
13429	    s//\1/
13430	    q
13431	  }
13432	  s/.*/./; q'`
13433
13434# Avoid depending upon Character Ranges.
13435as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13436as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13437as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13438as_cr_digits='0123456789'
13439as_cr_alnum=$as_cr_Letters$as_cr_digits
13440
13441ECHO_C= ECHO_N= ECHO_T=
13442case `echo -n x` in #(((((
13443-n*)
13444  case `echo 'xy\c'` in
13445  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13446  xy)  ECHO_C='\c';;
13447  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13448       ECHO_T='	';;
13449  esac;;
13450*)
13451  ECHO_N='-n';;
13452esac
13453
13454rm -f conf$$ conf$$.exe conf$$.file
13455if test -d conf$$.dir; then
13456  rm -f conf$$.dir/conf$$.file
13457else
13458  rm -f conf$$.dir
13459  mkdir conf$$.dir 2>/dev/null
13460fi
13461if (echo >conf$$.file) 2>/dev/null; then
13462  if ln -s conf$$.file conf$$ 2>/dev/null; then
13463    as_ln_s='ln -s'
13464    # ... but there are two gotchas:
13465    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13466    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13467    # In both cases, we have to default to `cp -p'.
13468    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13469      as_ln_s='cp -p'
13470  elif ln conf$$.file conf$$ 2>/dev/null; then
13471    as_ln_s=ln
13472  else
13473    as_ln_s='cp -p'
13474  fi
13475else
13476  as_ln_s='cp -p'
13477fi
13478rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13479rmdir conf$$.dir 2>/dev/null
13480
13481
13482# as_fn_mkdir_p
13483# -------------
13484# Create "$as_dir" as a directory, including parents if necessary.
13485as_fn_mkdir_p ()
13486{
13487
13488  case $as_dir in #(
13489  -*) as_dir=./$as_dir;;
13490  esac
13491  test -d "$as_dir" || eval $as_mkdir_p || {
13492    as_dirs=
13493    while :; do
13494      case $as_dir in #(
13495      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13496      *) as_qdir=$as_dir;;
13497      esac
13498      as_dirs="'$as_qdir' $as_dirs"
13499      as_dir=`$as_dirname -- "$as_dir" ||
13500$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13501	 X"$as_dir" : 'X\(//\)[^/]' \| \
13502	 X"$as_dir" : 'X\(//\)$' \| \
13503	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13504$as_echo X"$as_dir" |
13505    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13506	    s//\1/
13507	    q
13508	  }
13509	  /^X\(\/\/\)[^/].*/{
13510	    s//\1/
13511	    q
13512	  }
13513	  /^X\(\/\/\)$/{
13514	    s//\1/
13515	    q
13516	  }
13517	  /^X\(\/\).*/{
13518	    s//\1/
13519	    q
13520	  }
13521	  s/.*/./; q'`
13522      test -d "$as_dir" && break
13523    done
13524    test -z "$as_dirs" || eval "mkdir $as_dirs"
13525  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13526
13527
13528} # as_fn_mkdir_p
13529if mkdir -p . 2>/dev/null; then
13530  as_mkdir_p='mkdir -p "$as_dir"'
13531else
13532  test -d ./-p && rmdir ./-p
13533  as_mkdir_p=false
13534fi
13535
13536if test -x / >/dev/null 2>&1; then
13537  as_test_x='test -x'
13538else
13539  if ls -dL / >/dev/null 2>&1; then
13540    as_ls_L_option=L
13541  else
13542    as_ls_L_option=
13543  fi
13544  as_test_x='
13545    eval sh -c '\''
13546      if test -d "$1"; then
13547	test -d "$1/.";
13548      else
13549	case $1 in #(
13550	-*)set "./$1";;
13551	esac;
13552	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13553	???[sx]*):;;*)false;;esac;fi
13554    '\'' sh
13555  '
13556fi
13557as_executable_p=$as_test_x
13558
13559# Sed expression to map a string onto a valid CPP name.
13560as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13561
13562# Sed expression to map a string onto a valid variable name.
13563as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13564
13565
13566exec 6>&1
13567## ----------------------------------- ##
13568## Main body of $CONFIG_STATUS script. ##
13569## ----------------------------------- ##
13570_ASEOF
13571test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13572
13573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13574# Save the log message, to keep $0 and so on meaningful, and to
13575# report actual input values of CONFIG_FILES etc. instead of their
13576# values after options handling.
13577ac_log="
13578This file was extended by $as_me, which was
13579generated by GNU Autoconf 2.68.  Invocation command line was
13580
13581  CONFIG_FILES    = $CONFIG_FILES
13582  CONFIG_HEADERS  = $CONFIG_HEADERS
13583  CONFIG_LINKS    = $CONFIG_LINKS
13584  CONFIG_COMMANDS = $CONFIG_COMMANDS
13585  $ $0 $@
13586
13587on `(hostname || uname -n) 2>/dev/null | sed 1q`
13588"
13589
13590_ACEOF
13591
13592case $ac_config_files in *"
13593"*) set x $ac_config_files; shift; ac_config_files=$*;;
13594esac
13595
13596case $ac_config_headers in *"
13597"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13598esac
13599
13600
13601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13602# Files that config.status was made for.
13603config_files="$ac_config_files"
13604config_headers="$ac_config_headers"
13605config_commands="$ac_config_commands"
13606
13607_ACEOF
13608
13609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13610ac_cs_usage="\
13611\`$as_me' instantiates files and other configuration actions
13612from templates according to the current configuration.  Unless the files
13613and actions are specified as TAGs, all are instantiated by default.
13614
13615Usage: $0 [OPTION]... [TAG]...
13616
13617  -h, --help       print this help, then exit
13618  -V, --version    print version number and configuration settings, then exit
13619      --config     print configuration, then exit
13620  -q, --quiet, --silent
13621                   do not print progress messages
13622  -d, --debug      don't remove temporary files
13623      --recheck    update $as_me by reconfiguring in the same conditions
13624      --file=FILE[:TEMPLATE]
13625                   instantiate the configuration file FILE
13626      --header=FILE[:TEMPLATE]
13627                   instantiate the configuration header FILE
13628
13629Configuration files:
13630$config_files
13631
13632Configuration headers:
13633$config_headers
13634
13635Configuration commands:
13636$config_commands
13637
13638Report bugs to the package provider."
13639
13640_ACEOF
13641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13642ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13643ac_cs_version="\\
13644config.status
13645configured by $0, generated by GNU Autoconf 2.68,
13646  with options \\"\$ac_cs_config\\"
13647
13648Copyright (C) 2010 Free Software Foundation, Inc.
13649This config.status script is free software; the Free Software Foundation
13650gives unlimited permission to copy, distribute and modify it."
13651
13652ac_pwd='$ac_pwd'
13653srcdir='$srcdir'
13654INSTALL='$INSTALL'
13655AWK='$AWK'
13656test -n "\$AWK" || AWK=awk
13657_ACEOF
13658
13659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13660# The default lists apply if the user does not specify any file.
13661ac_need_defaults=:
13662while test $# != 0
13663do
13664  case $1 in
13665  --*=?*)
13666    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13667    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13668    ac_shift=:
13669    ;;
13670  --*=)
13671    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13672    ac_optarg=
13673    ac_shift=:
13674    ;;
13675  *)
13676    ac_option=$1
13677    ac_optarg=$2
13678    ac_shift=shift
13679    ;;
13680  esac
13681
13682  case $ac_option in
13683  # Handling of the options.
13684  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13685    ac_cs_recheck=: ;;
13686  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13687    $as_echo "$ac_cs_version"; exit ;;
13688  --config | --confi | --conf | --con | --co | --c )
13689    $as_echo "$ac_cs_config"; exit ;;
13690  --debug | --debu | --deb | --de | --d | -d )
13691    debug=: ;;
13692  --file | --fil | --fi | --f )
13693    $ac_shift
13694    case $ac_optarg in
13695    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13696    '') as_fn_error $? "missing file argument" ;;
13697    esac
13698    as_fn_append CONFIG_FILES " '$ac_optarg'"
13699    ac_need_defaults=false;;
13700  --header | --heade | --head | --hea )
13701    $ac_shift
13702    case $ac_optarg in
13703    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13704    esac
13705    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13706    ac_need_defaults=false;;
13707  --he | --h)
13708    # Conflict between --help and --header
13709    as_fn_error $? "ambiguous option: \`$1'
13710Try \`$0 --help' for more information.";;
13711  --help | --hel | -h )
13712    $as_echo "$ac_cs_usage"; exit ;;
13713  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13714  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13715    ac_cs_silent=: ;;
13716
13717  # This is an error.
13718  -*) as_fn_error $? "unrecognized option: \`$1'
13719Try \`$0 --help' for more information." ;;
13720
13721  *) as_fn_append ac_config_targets " $1"
13722     ac_need_defaults=false ;;
13723
13724  esac
13725  shift
13726done
13727
13728ac_configure_extra_args=
13729
13730if $ac_cs_silent; then
13731  exec 6>/dev/null
13732  ac_configure_extra_args="$ac_configure_extra_args --silent"
13733fi
13734
13735_ACEOF
13736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13737if \$ac_cs_recheck; then
13738  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13739  shift
13740  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13741  CONFIG_SHELL='$SHELL'
13742  export CONFIG_SHELL
13743  exec "\$@"
13744fi
13745
13746_ACEOF
13747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13748exec 5>>config.log
13749{
13750  echo
13751  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13752## Running $as_me. ##
13753_ASBOX
13754  $as_echo "$ac_log"
13755} >&5
13756
13757_ACEOF
13758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13759_ACEOF
13760
13761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13762
13763# Handling of arguments.
13764for ac_config_target in $ac_config_targets
13765do
13766  case $ac_config_target in
13767    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13768    "Config/defs.mk") CONFIG_FILES="$CONFIG_FILES Config/defs.mk" ;;
13769    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13770    "Doc/Makefile") CONFIG_FILES="$CONFIG_FILES Doc/Makefile" ;;
13771    "Etc/Makefile") CONFIG_FILES="$CONFIG_FILES Etc/Makefile" ;;
13772    "Src/Makefile") CONFIG_FILES="$CONFIG_FILES Src/Makefile" ;;
13773    "Test/Makefile") CONFIG_FILES="$CONFIG_FILES Test/Makefile" ;;
13774    "config.modules") CONFIG_COMMANDS="$CONFIG_COMMANDS config.modules" ;;
13775    "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13776
13777  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13778  esac
13779done
13780
13781
13782# If the user did not use the arguments to specify the items to instantiate,
13783# then the envvar interface is used.  Set only those that are not.
13784# We use the long form for the default assignment because of an extremely
13785# bizarre bug on SunOS 4.1.3.
13786if $ac_need_defaults; then
13787  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13788  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13789  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13790fi
13791
13792# Have a temporary directory for convenience.  Make it in the build tree
13793# simply because there is no reason against having it here, and in addition,
13794# creating and moving files from /tmp can sometimes cause problems.
13795# Hook for its removal unless debugging.
13796# Note that there is a small window in which the directory will not be cleaned:
13797# after its creation but before its name has been assigned to `$tmp'.
13798$debug ||
13799{
13800  tmp= ac_tmp=
13801  trap 'exit_status=$?
13802  : "${ac_tmp:=$tmp}"
13803  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13804' 0
13805  trap 'as_fn_exit 1' 1 2 13 15
13806}
13807# Create a (secure) tmp directory for tmp files.
13808
13809{
13810  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13811  test -d "$tmp"
13812}  ||
13813{
13814  tmp=./conf$$-$RANDOM
13815  (umask 077 && mkdir "$tmp")
13816} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13817ac_tmp=$tmp
13818
13819# Set up the scripts for CONFIG_FILES section.
13820# No need to generate them if there are no CONFIG_FILES.
13821# This happens for instance with `./config.status config.h'.
13822if test -n "$CONFIG_FILES"; then
13823
13824if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13825  ac_cs_awk_getline=:
13826  ac_cs_awk_pipe_init=
13827  ac_cs_awk_read_file='
13828      while ((getline aline < (F[key])) > 0)
13829	print(aline)
13830      close(F[key])'
13831  ac_cs_awk_pipe_fini=
13832else
13833  ac_cs_awk_getline=false
13834  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13835  ac_cs_awk_read_file='
13836      print "|#_!!_#|"
13837      print "cat " F[key] " &&"
13838      '$ac_cs_awk_pipe_init
13839  # The final `:' finishes the AND list.
13840  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
13841fi
13842ac_cr=`echo X | tr X '\015'`
13843# On cygwin, bash can eat \r inside `` if the user requested igncr.
13844# But we know of no other shell where ac_cr would be empty at this
13845# point, so we can use a bashism as a fallback.
13846if test "x$ac_cr" = x; then
13847  eval ac_cr=\$\'\\r\'
13848fi
13849ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13850if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13851  ac_cs_awk_cr='\\r'
13852else
13853  ac_cs_awk_cr=$ac_cr
13854fi
13855
13856echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13857_ACEOF
13858
13859# Create commands to substitute file output variables.
13860{
13861  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
13862  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
13863  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
13864  echo "_ACAWK" &&
13865  echo "_ACEOF"
13866} >conf$$files.sh &&
13867. ./conf$$files.sh ||
13868  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13869rm -f conf$$files.sh
13870
13871{
13872  echo "cat >conf$$subs.awk <<_ACEOF" &&
13873  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13874  echo "_ACEOF"
13875} >conf$$subs.sh ||
13876  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13877ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13878ac_delim='%!_!# '
13879for ac_last_try in false false false false false :; do
13880  . ./conf$$subs.sh ||
13881    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13882
13883  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13884  if test $ac_delim_n = $ac_delim_num; then
13885    break
13886  elif $ac_last_try; then
13887    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13888  else
13889    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13890  fi
13891done
13892rm -f conf$$subs.sh
13893
13894cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13895cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13896_ACEOF
13897sed -n '
13898h
13899s/^/S["/; s/!.*/"]=/
13900p
13901g
13902s/^[^!]*!//
13903:repl
13904t repl
13905s/'"$ac_delim"'$//
13906t delim
13907:nl
13908h
13909s/\(.\{148\}\)..*/\1/
13910t more1
13911s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13912p
13913n
13914b repl
13915:more1
13916s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13917p
13918g
13919s/.\{148\}//
13920t nl
13921:delim
13922h
13923s/\(.\{148\}\)..*/\1/
13924t more2
13925s/["\\]/\\&/g; s/^/"/; s/$/"/
13926p
13927b
13928:more2
13929s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13930p
13931g
13932s/.\{148\}//
13933t delim
13934' <conf$$subs.awk | sed '
13935/^[^""]/{
13936  N
13937  s/\n//
13938}
13939' >>$CONFIG_STATUS || ac_write_fail=1
13940rm -f conf$$subs.awk
13941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13942_ACAWK
13943cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13944  for (key in S) S_is_set[key] = 1
13945  FS = ""
13946  \$ac_cs_awk_pipe_init
13947}
13948{
13949  line = $ 0
13950  nfields = split(line, field, "@")
13951  substed = 0
13952  len = length(field[1])
13953  for (i = 2; i < nfields; i++) {
13954    key = field[i]
13955    keylen = length(key)
13956    if (S_is_set[key]) {
13957      value = S[key]
13958      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13959      len += length(value) + length(field[++i])
13960      substed = 1
13961    } else
13962      len += 1 + keylen
13963  }
13964  if (nfields == 3 && !substed) {
13965    key = field[2]
13966    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
13967      \$ac_cs_awk_read_file
13968      next
13969    }
13970  }
13971  print line
13972}
13973\$ac_cs_awk_pipe_fini
13974_ACAWK
13975_ACEOF
13976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13977if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13978  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13979else
13980  cat
13981fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13982  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13983_ACEOF
13984
13985# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13986# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13987# trailing colons and then remove the whole line if VPATH becomes empty
13988# (actually we leave an empty line to preserve line numbers).
13989if test "x$srcdir" = x.; then
13990  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13991h
13992s///
13993s/^/:/
13994s/[	 ]*$/:/
13995s/:\$(srcdir):/:/g
13996s/:\${srcdir}:/:/g
13997s/:@srcdir@:/:/g
13998s/^:*//
13999s/:*$//
14000x
14001s/\(=[	 ]*\).*/\1/
14002G
14003s/\n//
14004s/^[^=]*=[	 ]*$//
14005}'
14006fi
14007
14008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14009fi # test -n "$CONFIG_FILES"
14010
14011# Set up the scripts for CONFIG_HEADERS section.
14012# No need to generate them if there are no CONFIG_HEADERS.
14013# This happens for instance with `./config.status Makefile'.
14014if test -n "$CONFIG_HEADERS"; then
14015cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14016BEGIN {
14017_ACEOF
14018
14019# Transform confdefs.h into an awk script `defines.awk', embedded as
14020# here-document in config.status, that substitutes the proper values into
14021# config.h.in to produce config.h.
14022
14023# Create a delimiter string that does not exist in confdefs.h, to ease
14024# handling of long lines.
14025ac_delim='%!_!# '
14026for ac_last_try in false false :; do
14027  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14028  if test -z "$ac_tt"; then
14029    break
14030  elif $ac_last_try; then
14031    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14032  else
14033    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14034  fi
14035done
14036
14037# For the awk script, D is an array of macro values keyed by name,
14038# likewise P contains macro parameters if any.  Preserve backslash
14039# newline sequences.
14040
14041ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14042sed -n '
14043s/.\{148\}/&'"$ac_delim"'/g
14044t rset
14045:rset
14046s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14047t def
14048d
14049:def
14050s/\\$//
14051t bsnl
14052s/["\\]/\\&/g
14053s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14054D["\1"]=" \3"/p
14055s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14056d
14057:bsnl
14058s/["\\]/\\&/g
14059s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14060D["\1"]=" \3\\\\\\n"\\/p
14061t cont
14062s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14063t cont
14064d
14065:cont
14066n
14067s/.\{148\}/&'"$ac_delim"'/g
14068t clear
14069:clear
14070s/\\$//
14071t bsnlc
14072s/["\\]/\\&/g; s/^/"/; s/$/"/p
14073d
14074:bsnlc
14075s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14076b cont
14077' <confdefs.h | sed '
14078s/'"$ac_delim"'/"\\\
14079"/g' >>$CONFIG_STATUS || ac_write_fail=1
14080
14081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14082  for (key in D) D_is_set[key] = 1
14083  FS = ""
14084}
14085/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14086  line = \$ 0
14087  split(line, arg, " ")
14088  if (arg[1] == "#") {
14089    defundef = arg[2]
14090    mac1 = arg[3]
14091  } else {
14092    defundef = substr(arg[1], 2)
14093    mac1 = arg[2]
14094  }
14095  split(mac1, mac2, "(") #)
14096  macro = mac2[1]
14097  prefix = substr(line, 1, index(line, defundef) - 1)
14098  if (D_is_set[macro]) {
14099    # Preserve the white space surrounding the "#".
14100    print prefix "define", macro P[macro] D[macro]
14101    next
14102  } else {
14103    # Replace #undef with comments.  This is necessary, for example,
14104    # in the case of _POSIX_SOURCE, which is predefined and required
14105    # on some systems where configure will not decide to define it.
14106    if (defundef == "undef") {
14107      print "/*", prefix defundef, macro, "*/"
14108      next
14109    }
14110  }
14111}
14112{ print }
14113_ACAWK
14114_ACEOF
14115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14116  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14117fi # test -n "$CONFIG_HEADERS"
14118
14119
14120eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14121shift
14122for ac_tag
14123do
14124  case $ac_tag in
14125  :[FHLC]) ac_mode=$ac_tag; continue;;
14126  esac
14127  case $ac_mode$ac_tag in
14128  :[FHL]*:*);;
14129  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14130  :[FH]-) ac_tag=-:-;;
14131  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14132  esac
14133  ac_save_IFS=$IFS
14134  IFS=:
14135  set x $ac_tag
14136  IFS=$ac_save_IFS
14137  shift
14138  ac_file=$1
14139  shift
14140
14141  case $ac_mode in
14142  :L) ac_source=$1;;
14143  :[FH])
14144    ac_file_inputs=
14145    for ac_f
14146    do
14147      case $ac_f in
14148      -) ac_f="$ac_tmp/stdin";;
14149      *) # Look for the file first in the build tree, then in the source tree
14150	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14151	 # because $ac_f cannot contain `:'.
14152	 test -f "$ac_f" ||
14153	   case $ac_f in
14154	   [\\/$]*) false;;
14155	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14156	   esac ||
14157	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14158      esac
14159      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14160      as_fn_append ac_file_inputs " '$ac_f'"
14161    done
14162
14163    # Let's still pretend it is `configure' which instantiates (i.e., don't
14164    # use $as_me), people would be surprised to read:
14165    #    /* config.h.  Generated by config.status.  */
14166    configure_input='Generated from '`
14167	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14168	`' by configure.'
14169    if test x"$ac_file" != x-; then
14170      configure_input="$ac_file.  $configure_input"
14171      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14172$as_echo "$as_me: creating $ac_file" >&6;}
14173    fi
14174    # Neutralize special characters interpreted by sed in replacement strings.
14175    case $configure_input in #(
14176    *\&* | *\|* | *\\* )
14177       ac_sed_conf_input=`$as_echo "$configure_input" |
14178       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14179    *) ac_sed_conf_input=$configure_input;;
14180    esac
14181
14182    case $ac_tag in
14183    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14184      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14185    esac
14186    ;;
14187  esac
14188
14189  ac_dir=`$as_dirname -- "$ac_file" ||
14190$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14191	 X"$ac_file" : 'X\(//\)[^/]' \| \
14192	 X"$ac_file" : 'X\(//\)$' \| \
14193	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14194$as_echo X"$ac_file" |
14195    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14196	    s//\1/
14197	    q
14198	  }
14199	  /^X\(\/\/\)[^/].*/{
14200	    s//\1/
14201	    q
14202	  }
14203	  /^X\(\/\/\)$/{
14204	    s//\1/
14205	    q
14206	  }
14207	  /^X\(\/\).*/{
14208	    s//\1/
14209	    q
14210	  }
14211	  s/.*/./; q'`
14212  as_dir="$ac_dir"; as_fn_mkdir_p
14213  ac_builddir=.
14214
14215case "$ac_dir" in
14216.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14217*)
14218  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14219  # A ".." for each directory in $ac_dir_suffix.
14220  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14221  case $ac_top_builddir_sub in
14222  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14223  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14224  esac ;;
14225esac
14226ac_abs_top_builddir=$ac_pwd
14227ac_abs_builddir=$ac_pwd$ac_dir_suffix
14228# for backward compatibility:
14229ac_top_builddir=$ac_top_build_prefix
14230
14231case $srcdir in
14232  .)  # We are building in place.
14233    ac_srcdir=.
14234    ac_top_srcdir=$ac_top_builddir_sub
14235    ac_abs_top_srcdir=$ac_pwd ;;
14236  [\\/]* | ?:[\\/]* )  # Absolute name.
14237    ac_srcdir=$srcdir$ac_dir_suffix;
14238    ac_top_srcdir=$srcdir
14239    ac_abs_top_srcdir=$srcdir ;;
14240  *) # Relative name.
14241    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14242    ac_top_srcdir=$ac_top_build_prefix$srcdir
14243    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14244esac
14245ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14246
14247
14248  case $ac_mode in
14249  :F)
14250  #
14251  # CONFIG_FILE
14252  #
14253
14254  case $INSTALL in
14255  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14256  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14257  esac
14258_ACEOF
14259
14260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14261# If the template does not know about datarootdir, expand it.
14262# FIXME: This hack should be removed a few years after 2.60.
14263ac_datarootdir_hack=; ac_datarootdir_seen=
14264ac_sed_dataroot='
14265/datarootdir/ {
14266  p
14267  q
14268}
14269/@datadir@/p
14270/@docdir@/p
14271/@infodir@/p
14272/@localedir@/p
14273/@mandir@/p'
14274case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14275*datarootdir*) ac_datarootdir_seen=yes;;
14276*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14277  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14278$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14279_ACEOF
14280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14281  ac_datarootdir_hack='
14282  s&@datadir@&$datadir&g
14283  s&@docdir@&$docdir&g
14284  s&@infodir@&$infodir&g
14285  s&@localedir@&$localedir&g
14286  s&@mandir@&$mandir&g
14287  s&\\\${datarootdir}&$datarootdir&g' ;;
14288esac
14289_ACEOF
14290
14291# Neutralize VPATH when `$srcdir' = `.'.
14292# Shell code in configure.ac might set extrasub.
14293# FIXME: do we really want to maintain this feature?
14294cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14295ac_sed_extra="$ac_vpsub
14296$extrasub
14297_ACEOF
14298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14299:t
14300/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14301s|@configure_input@|$ac_sed_conf_input|;t t
14302s&@top_builddir@&$ac_top_builddir_sub&;t t
14303s&@top_build_prefix@&$ac_top_build_prefix&;t t
14304s&@srcdir@&$ac_srcdir&;t t
14305s&@abs_srcdir@&$ac_abs_srcdir&;t t
14306s&@top_srcdir@&$ac_top_srcdir&;t t
14307s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14308s&@builddir@&$ac_builddir&;t t
14309s&@abs_builddir@&$ac_abs_builddir&;t t
14310s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14311s&@INSTALL@&$ac_INSTALL&;t t
14312$ac_datarootdir_hack
14313"
14314eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14315if $ac_cs_awk_getline; then
14316  $AWK -f "$ac_tmp/subs.awk"
14317else
14318  $AWK -f "$ac_tmp/subs.awk" | $SHELL
14319fi \
14320  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14321
14322test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14323  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14324  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14325      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14326  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14327which seems to be undefined.  Please make sure it is defined" >&5
14328$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14329which seems to be undefined.  Please make sure it is defined" >&2;}
14330
14331  rm -f "$ac_tmp/stdin"
14332  case $ac_file in
14333  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14334  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14335  esac \
14336  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14337 ;;
14338  :H)
14339  #
14340  # CONFIG_HEADER
14341  #
14342  if test x"$ac_file" != x-; then
14343    {
14344      $as_echo "/* $configure_input  */" \
14345      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14346    } >"$ac_tmp/config.h" \
14347      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14348    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14349      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14350$as_echo "$as_me: $ac_file is unchanged" >&6;}
14351    else
14352      rm -f "$ac_file"
14353      mv "$ac_tmp/config.h" "$ac_file" \
14354	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14355    fi
14356  else
14357    $as_echo "/* $configure_input  */" \
14358      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14359      || as_fn_error $? "could not create -" "$LINENO" 5
14360  fi
14361 ;;
14362
14363  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14364$as_echo "$as_me: executing $ac_file commands" >&6;}
14365 ;;
14366  esac
14367
14368
14369  case $ac_file$ac_mode in
14370    "config.modules":C) . ./config.modules.sh ;;
14371    "stamp-h":C) echo >stamp-h ;;
14372
14373  esac
14374done # for ac_tag
14375
14376
14377as_fn_exit 0
14378_ACEOF
14379ac_clean_files=$ac_clean_files_save
14380
14381test $ac_write_fail = 0 ||
14382  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14383
14384
14385# configure is writing to config.log, and then calls config.status.
14386# config.status does its own redirection, appending to config.log.
14387# Unfortunately, on DOS this fails, as config.log is still kept open
14388# by configure, so config.status won't be able to write to it; its
14389# output is simply discarded.  So we exec the FD to /dev/null,
14390# effectively closing config.log, so it can be properly (re)opened and
14391# appended to by config.status.  When coming back to configure, we
14392# need to make the FD available again.
14393if test "$no_create" != yes; then
14394  ac_cs_success=:
14395  ac_config_status_args=
14396  test "$silent" = yes &&
14397    ac_config_status_args="$ac_config_status_args --quiet"
14398  exec 5>/dev/null
14399  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14400  exec 5>>config.log
14401  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14402  # would make configure fail if this is the last instruction.
14403  $ac_cs_success || as_fn_exit 1
14404fi
14405if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14406  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14407$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14408fi
14409
14410
14411eval "zshbin1=${bindir}"
14412eval "zshbin2=${zshbin1}"
14413eval "zshman=${mandir}"
14414eval "zshinfo=${infodir}"
14415eval "zshfndir=${fndir}"
14416
14417echo "
14418zsh configuration
14419-----------------
14420zsh version               : ${VERSION}
14421host operating system     : ${host_cpu}-${host_vendor}-${host_os}
14422source code location      : ${srcdir}
14423compiler                  : ${CC}
14424preprocessor flags        : ${CPPFLAGS}
14425executable compiler flags : ${CFLAGS}"
14426if test "x$dynamic" = xyes; then
14427  echo "\
14428module compiler flags     : ${CFLAGS} ${DLCFLAGS}"
14429fi
14430echo "\
14431executable linker flags   : ${LDFLAGS} ${EXELDFLAGS} ${EXTRA_LDFLAGS}"
14432if test "x$dynamic" = xyes; then
14433  echo "\
14434module linker flags       : ${LDFLAGS} ${LIBLDFLAGS} ${DLLDFLAGS}"
14435fi
14436echo "\
14437library flags             : ${LIBS}
14438installation basename     : ${tzsh_name}
14439binary install path       : ${zshbin2}
14440man page install path     : ${zshman}
14441info install path         : ${zshinfo}"
14442if test "$zshfndir" != no; then
14443  echo "functions install path    : ${zshfndir}"
14444fi
14445if test "x$additionalfpath" != x; then
14446  echo "additional fpath entries  : ${additionalfpath}"
14447fi
14448echo "See config.modules for installed modules and functions.
14449"
14450
14451case x$LIBS in
14452  *-lgdbm*)
14453  echo "WARNING: zsh will be linked against libgdbm.
14454This means the binary is covered by the GNU General Public License.
14455This does not affect the source code.
14456Run configure with --disable-gdbm if required."
14457  ;;
14458esac
14459
14460exit 0
14461