1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71.
4#
5#
6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7# Inc.
8#
9#
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## -------------------- ##
13## M4sh Initialization. ##
14## -------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18as_nop=:
19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else $as_nop
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37
38# Reset variables that may have inherited troublesome values from
39# the environment.
40
41# IFS needs to be set, to space, tab, and newline, in precisely that order.
42# (If _AS_PATH_WALK were called with IFS unset, it would have the
43# side effect of setting IFS to empty, thus disabling word splitting.)
44# Quoting is to prevent editors from complaining about space-tab.
45as_nl='
46'
47export as_nl
48IFS=" ""	$as_nl"
49
50PS1='$ '
51PS2='> '
52PS4='+ '
53
54# Ensure predictable behavior from utilities with locale-dependent output.
55LC_ALL=C
56export LC_ALL
57LANGUAGE=C
58export LANGUAGE
59
60# We cannot yet rely on "unset" to work, but we need these variables
61# to be unset--not just set to an empty or harmless value--now, to
62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
63# also avoids known problems related to "unset" and subshell syntax
64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66do eval test \${$as_var+y} \
67  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68done
69
70# Ensure that fds 0, 1, and 2 are open.
71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
74
75# The user is always right.
76if ${PATH_SEPARATOR+false} :; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# Find who we are.  Look in the path if we contain no directory separator.
86as_myself=
87case $0 in #((
88  *[\\/]* ) as_myself=$0 ;;
89  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90for as_dir in $PATH
91do
92  IFS=$as_save_IFS
93  case $as_dir in #(((
94    '') as_dir=./ ;;
95    */) ;;
96    *) as_dir=$as_dir/ ;;
97  esac
98    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114
115# Use a proper internal environment variable to ensure we don't fall
116  # into an infinite loop, continuously re-executing ourselves.
117  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118    _as_can_reexec=no; export _as_can_reexec;
119    # We cannot yet assume a decent shell, so we have to provide a
120# neutralization value for shells without unset; and this also
121# works around shells that cannot unset nonexistent variables.
122# Preserve -v and -x to the replacement shell.
123BASH_ENV=/dev/null
124ENV=/dev/null
125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126case $- in # ((((
127  *v*x* | *x*v* ) as_opts=-vx ;;
128  *v* ) as_opts=-v ;;
129  *x* ) as_opts=-x ;;
130  * ) as_opts= ;;
131esac
132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133# Admittedly, this is quite paranoid, since all the known shells bail
134# out after a failed `exec'.
135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136exit 255
137  fi
138  # We don't want this to propagate to other subprocesses.
139          { _as_can_reexec=; unset _as_can_reexec;}
140if test "x$CONFIG_SHELL" = x; then
141  as_bourne_compatible="as_nop=:
142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143then :
144  emulate sh
145  NULLCMD=:
146  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147  # is contrary to our usage.  Disable this feature.
148  alias -g '\${1+\"\$@\"}'='\"\$@\"'
149  setopt NO_GLOB_SUBST
150else \$as_nop
151  case \`(set -o) 2>/dev/null\` in #(
152  *posix*) :
153    set -o posix ;; #(
154  *) :
155     ;;
156esac
157fi
158"
159  as_required="as_fn_return () { (exit \$1); }
160as_fn_success () { as_fn_return 0; }
161as_fn_failure () { as_fn_return 1; }
162as_fn_ret_success () { return 0; }
163as_fn_ret_failure () { return 1; }
164
165exitcode=0
166as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171then :
172
173else \$as_nop
174  exitcode=1; echo positional parameters were not saved.
175fi
176test x\$exitcode = x0 || exit 1
177blah=\$(echo \$(echo blah))
178test x\"\$blah\" = xblah || exit 1
179test -x / || exit 1"
180  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184test \$(( 1 + 1 )) = 2 || exit 1"
185  if (eval "$as_required") 2>/dev/null
186then :
187  as_have_required=yes
188else $as_nop
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192then :
193
194else $as_nop
195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196as_found=false
197for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198do
199  IFS=$as_save_IFS
200  case $as_dir in #(((
201    '') as_dir=./ ;;
202    */) ;;
203    *) as_dir=$as_dir/ ;;
204  esac
205  as_found=:
206  case $as_dir in #(
207	 /*)
208	   for as_base in sh bash ksh sh5; do
209	     # Try only shells that exist, to save several forks.
210	     as_shell=$as_dir$as_base
211	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213then :
214  CONFIG_SHELL=$as_shell as_have_required=yes
215		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216then :
217  break 2
218fi
219fi
220	   done;;
221       esac
222  as_found=false
223done
224IFS=$as_save_IFS
225if $as_found
226then :
227
228else $as_nop
229  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231then :
232  CONFIG_SHELL=$SHELL as_have_required=yes
233fi
234fi
235
236
237      if test "x$CONFIG_SHELL" != x
238then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno
261then :
262  printf "%s\n" "$0: This script requires a shell more modern than all"
263  printf "%s\n" "$0: the shells that I found on your system."
264  if test ${ZSH_VERSION+y} ; then
265    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267  else
268    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
269$0: including any error possibly output before this
270$0: message. Then install a modern shell, or manually run
271$0: the script under such a shell if you do have one."
272  fi
273  exit 1
274fi
275fi
276fi
277SHELL=${CONFIG_SHELL-/bin/sh}
278export SHELL
279# Unset more variables known to interfere with behavior of common tools.
280CLICOLOR_FORCE= GREP_OPTIONS=
281unset CLICOLOR_FORCE GREP_OPTIONS
282
283## --------------------- ##
284## M4sh Shell Functions. ##
285## --------------------- ##
286# as_fn_unset VAR
287# ---------------
288# Portably unset VAR.
289as_fn_unset ()
290{
291  { eval $1=; unset $1;}
292}
293as_unset=as_fn_unset
294
295
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_fn_set_status ()
300{
301  return $1
302} # as_fn_set_status
303
304# as_fn_exit STATUS
305# -----------------
306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307as_fn_exit ()
308{
309  set +e
310  as_fn_set_status $1
311  exit $1
312} # as_fn_exit
313# as_fn_nop
314# ---------
315# Do nothing but, unlike ":", preserve the value of $?.
316as_fn_nop ()
317{
318  return $?
319}
320as_nop=as_fn_nop
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
327
328  case $as_dir in #(
329  -*) as_dir=./$as_dir;;
330  esac
331  test -d "$as_dir" || eval $as_mkdir_p || {
332    as_dirs=
333    while :; do
334      case $as_dir in #(
335      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336      *) as_qdir=$as_dir;;
337      esac
338      as_dirs="'$as_qdir' $as_dirs"
339      as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341	 X"$as_dir" : 'X\(//\)[^/]' \| \
342	 X"$as_dir" : 'X\(//\)$' \| \
343	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344printf "%s\n" X"$as_dir" |
345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346	    s//\1/
347	    q
348	  }
349	  /^X\(\/\/\)[^/].*/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\).*/{
358	    s//\1/
359	    q
360	  }
361	  s/.*/./; q'`
362      test -d "$as_dir" && break
363    done
364    test -z "$as_dirs" || eval "mkdir $as_dirs"
365  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368} # as_fn_mkdir_p
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375  test -f "$1" && test -x "$1"
376} # as_fn_executable_p
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else $as_nop
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else $as_nop
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414# as_fn_nop
415# ---------
416# Do nothing but, unlike ":", preserve the value of $?.
417as_fn_nop ()
418{
419  return $?
420}
421as_nop=as_fn_nop
422
423# as_fn_error STATUS ERROR [LINENO LOG_FD]
424# ----------------------------------------
425# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427# script with STATUS, using 1 if that was 0.
428as_fn_error ()
429{
430  as_status=$1; test $as_status -eq 0 && as_status=1
431  if test "$4"; then
432    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434  fi
435  printf "%s\n" "$as_me: error: $2" >&2
436  as_fn_exit $as_status
437} # as_fn_error
438
439if expr a : '\(a\)' >/dev/null 2>&1 &&
440   test "X`expr 00001 : '.*\(...\)'`" = X001; then
441  as_expr=expr
442else
443  as_expr=false
444fi
445
446if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447  as_basename=basename
448else
449  as_basename=false
450fi
451
452if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453  as_dirname=dirname
454else
455  as_dirname=false
456fi
457
458as_me=`$as_basename -- "$0" ||
459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460	 X"$0" : 'X\(//\)$' \| \
461	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462printf "%s\n" X/"$0" |
463    sed '/^.*\/\([^/][^/]*\)\/*$/{
464	    s//\1/
465	    q
466	  }
467	  /^X\/\(\/\/\)$/{
468	    s//\1/
469	    q
470	  }
471	  /^X\/\(\/\).*/{
472	    s//\1/
473	    q
474	  }
475	  s/.*/./; q'`
476
477# Avoid depending upon Character Ranges.
478as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481as_cr_digits='0123456789'
482as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485  as_lineno_1=$LINENO as_lineno_1a=$LINENO
486  as_lineno_2=$LINENO as_lineno_2a=$LINENO
487  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
490  sed -n '
491    p
492    /[$]LINENO/=
493  ' <$as_myself |
494    sed '
495      s/[$]LINENO.*/&-/
496      t lineno
497      b
498      :lineno
499      N
500      :loop
501      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502      t loop
503      s/-\n.*//
504    ' >$as_me.lineno &&
505  chmod +x "$as_me.lineno" ||
506    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509  # already done that, so ensure we don't try to do so again and fall
510  # in an infinite loop.  This has already happened in practice.
511  _as_can_reexec=no; export _as_can_reexec
512  # Don't try to exec as it changes $[0], causing all sort of problems
513  # (the dirname of $[0] is not the place where we might find the
514  # original and so on.  Autoconf is especially sensitive to this).
515  . "./$as_me.lineno"
516  # Exit status is that of the last command.
517  exit
518}
519
520
521# Determine whether it's possible to make 'echo' print without a newline.
522# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523# for compatibility with existing Makefiles.
524ECHO_C= ECHO_N= ECHO_T=
525case `echo -n x` in #(((((
526-n*)
527  case `echo 'xy\c'` in
528  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
529  xy)  ECHO_C='\c';;
530  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
531       ECHO_T='	';;
532  esac;;
533*)
534  ECHO_N='-n';;
535esac
536
537# For backward compatibility with old third-party macros, we provide
538# the shell variables $as_echo and $as_echo_n.  New code should use
539# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540as_echo='printf %s\n'
541as_echo_n='printf %s'
542
543
544rm -f conf$$ conf$$.exe conf$$.file
545if test -d conf$$.dir; then
546  rm -f conf$$.dir/conf$$.file
547else
548  rm -f conf$$.dir
549  mkdir conf$$.dir 2>/dev/null
550fi
551if (echo >conf$$.file) 2>/dev/null; then
552  if ln -s conf$$.file conf$$ 2>/dev/null; then
553    as_ln_s='ln -s'
554    # ... but there are two gotchas:
555    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557    # In both cases, we have to default to `cp -pR'.
558    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559      as_ln_s='cp -pR'
560  elif ln conf$$.file conf$$ 2>/dev/null; then
561    as_ln_s=ln
562  else
563    as_ln_s='cp -pR'
564  fi
565else
566  as_ln_s='cp -pR'
567fi
568rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569rmdir conf$$.dir 2>/dev/null
570
571if mkdir -p . 2>/dev/null; then
572  as_mkdir_p='mkdir -p "$as_dir"'
573else
574  test -d ./-p && rmdir ./-p
575  as_mkdir_p=false
576fi
577
578as_test_x='test -x'
579as_executable_p=as_fn_executable_p
580
581# Sed expression to map a string onto a valid CPP name.
582as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583
584# Sed expression to map a string onto a valid variable name.
585as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
586
587
588test -n "$DJDIR" || exec 7<&0 </dev/null
589exec 6>&1
590
591# Name of the host.
592# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593# so uname gets run too.
594ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
595
596#
597# Initializations.
598#
599ac_default_prefix=/usr/local
600ac_clean_files=
601ac_config_libobj_dir=.
602LIBOBJS=
603cross_compiling=no
604subdirs=
605MFLAGS=
606MAKEFLAGS=
607
608# Identity of this package.
609PACKAGE_NAME=''
610PACKAGE_TARNAME=''
611PACKAGE_VERSION=''
612PACKAGE_STRING=''
613PACKAGE_BUGREPORT=''
614PACKAGE_URL=''
615
616ac_unique_file="Src/zsh.h"
617# Factoring default headers for most tests.
618ac_includes_default="\
619#include <stddef.h>
620#ifdef HAVE_STDIO_H
621# include <stdio.h>
622#endif
623#ifdef HAVE_STDLIB_H
624# include <stdlib.h>
625#endif
626#ifdef HAVE_STRING_H
627# include <string.h>
628#endif
629#ifdef HAVE_INTTYPES_H
630# include <inttypes.h>
631#endif
632#ifdef HAVE_STDINT_H
633# include <stdint.h>
634#endif
635#ifdef HAVE_STRINGS_H
636# include <strings.h>
637#endif
638#ifdef HAVE_SYS_TYPES_H
639# include <sys/types.h>
640#endif
641#ifdef HAVE_SYS_STAT_H
642# include <sys/stat.h>
643#endif
644#ifdef HAVE_UNISTD_H
645# include <unistd.h>
646#endif"
647
648ac_header_c_list=
649ac_func_c_list=
650ac_subst_vars='LTLIBOBJS
651LIBOBJS
652EXTRAZSHOBJS
653MOD_IMPORT_FUNCTION
654MOD_IMPORT_VARIABLE
655MOD_EXPORT
656LINKMODS
657L
658IMPOPT
659EXPOPT
660EXTRA_LDFLAGS
661E
662DLLDFLAGS
663DLCFLAGS
664DLLD
665DL_EXT
666D
667UNINSTLIB
668INSTLIB
669SHORTBOOTNAMES
670RLIMITS_INC_H
671ZSH_TERM_H
672CURSES_KEYS_H
673ZSH_CURSES_H
674ERRNO_H
675SIGNAL_H
676PCRECONF
677ANSI2KNR
678PAPERSIZE
679TEXI2HTML
680TEXI2PDF
681TEXI2DVI
682YODL_OPTIONS
683YODL
684EGREP
685GREP
686LN_S
687LN
688AWK
689INSTALL_DATA
690INSTALL_SCRIPT
691INSTALL_PROGRAM
692SET_MAKE
693ALLOCA
694U
695CPP
696LIBLDFLAGS
697EXELDFLAGS
698OBJEXT
699EXEEXT
700ac_ct_CC
701CPPFLAGS
702LDFLAGS
703CFLAGS
704CC
705sitescriptdir
706scriptdir
707FUNCTIONS_SUBDIRS
708fixed_sitefndir
709sitefndir
710fndir
711additionalfpath
712runhelp
713runhelpdir
714zlogout
715zlogin
716zprofile
717zshrc
718zshenv
719tzsh
720host_os
721host_vendor
722host_cpu
723host
724build_os
725build_vendor
726build_cpu
727build
728target_alias
729host_alias
730build_alias
731LIBS
732ECHO_T
733ECHO_N
734ECHO_C
735DEFS
736mandir
737localedir
738libdir
739psdir
740pdfdir
741dvidir
742htmldir
743infodir
744docdir
745oldincludedir
746includedir
747runstatedir
748localstatedir
749sharedstatedir
750sysconfdir
751datadir
752datarootdir
753libexecdir
754sbindir
755bindir
756program_transform_name
757prefix
758exec_prefix
759PACKAGE_URL
760PACKAGE_BUGREPORT
761PACKAGE_STRING
762PACKAGE_VERSION
763PACKAGE_TARNAME
764PACKAGE_NAME
765PATH_SEPARATOR
766SHELL'
767ac_subst_files='CLEAN_MK
768CONFIG_MK
769DEFS_MK
770VERSION_MK'
771ac_user_opts='
772enable_option_checking
773enable_cppflags
774enable_cflags
775enable_ldflags
776enable_libs
777enable_zsh_debug
778enable_zsh_mem
779enable_zsh_mem_debug
780enable_zsh_mem_warning
781enable_zsh_secure_free
782enable_zsh_heap_debug
783enable_zsh_valgrind
784enable_zsh_hash_debug
785enable_stack_allocation
786enable_etcdir
787enable_zshenv
788enable_zshrc
789enable_zprofile
790enable_zlogin
791enable_zlogout
792enable_dynamic
793enable_restricted_r
794enable_locale
795enable_ansi2knr
796enable_runhelpdir
797enable_fndir
798enable_site_fndir
799enable_function_subdirs
800enable_additional_fpath
801enable_scriptdir
802enable_site_scriptdir
803enable_custom_patchlevel
804enable_maildir_support
805enable_max_function_depth
806enable_readnullcmd
807enable_pcre
808enable_cap
809enable_gdbm
810enable_largefile
811with_term_lib
812with_tcsetpgrp
813enable_multibyte
814enable_unicode9
815enable_libc_musl
816enable_dynamic_nss
817'
818      ac_precious_vars='build_alias
819host_alias
820target_alias
821CC
822CFLAGS
823LDFLAGS
824LIBS
825CPPFLAGS
826CPP'
827
828
829# Initialize some variables set by options.
830ac_init_help=
831ac_init_version=false
832ac_unrecognized_opts=
833ac_unrecognized_sep=
834# The variables have the same names as the options, with
835# dashes changed to underlines.
836cache_file=/dev/null
837exec_prefix=NONE
838no_create=
839no_recursion=
840prefix=NONE
841program_prefix=NONE
842program_suffix=NONE
843program_transform_name=s,x,x,
844silent=
845site=
846srcdir=
847verbose=
848x_includes=NONE
849x_libraries=NONE
850
851# Installation directory options.
852# These are left unexpanded so users can "make install exec_prefix=/foo"
853# and all the variables that are supposed to be based on exec_prefix
854# by default will actually change.
855# Use braces instead of parens because sh, perl, etc. also accept them.
856# (The list follows the same order as the GNU Coding Standards.)
857bindir='${exec_prefix}/bin'
858sbindir='${exec_prefix}/sbin'
859libexecdir='${exec_prefix}/libexec'
860datarootdir='${prefix}/share'
861datadir='${datarootdir}'
862sysconfdir='${prefix}/etc'
863sharedstatedir='${prefix}/com'
864localstatedir='${prefix}/var'
865runstatedir='${localstatedir}/run'
866includedir='${prefix}/include'
867oldincludedir='/usr/include'
868docdir='${datarootdir}/doc/${PACKAGE}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
877
878ac_prev=
879ac_dashdash=
880for ac_option
881do
882  # If the previous option needs an argument, assign it.
883  if test -n "$ac_prev"; then
884    eval $ac_prev=\$ac_option
885    ac_prev=
886    continue
887  fi
888
889  case $ac_option in
890  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891  *=)   ac_optarg= ;;
892  *)    ac_optarg=yes ;;
893  esac
894
895  case $ac_dashdash$ac_option in
896  --)
897    ac_dashdash=yes ;;
898
899  -bindir | --bindir | --bindi | --bind | --bin | --bi)
900    ac_prev=bindir ;;
901  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902    bindir=$ac_optarg ;;
903
904  -build | --build | --buil | --bui | --bu)
905    ac_prev=build_alias ;;
906  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907    build_alias=$ac_optarg ;;
908
909  -cache-file | --cache-file | --cache-fil | --cache-fi \
910  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911    ac_prev=cache_file ;;
912  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914    cache_file=$ac_optarg ;;
915
916  --config-cache | -C)
917    cache_file=config.cache ;;
918
919  -datadir | --datadir | --datadi | --datad)
920    ac_prev=datadir ;;
921  -datadir=* | --datadir=* | --datadi=* | --datad=*)
922    datadir=$ac_optarg ;;
923
924  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925  | --dataroo | --dataro | --datar)
926    ac_prev=datarootdir ;;
927  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929    datarootdir=$ac_optarg ;;
930
931  -disable-* | --disable-*)
932    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933    # Reject names that are not valid shell variable names.
934    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935      as_fn_error $? "invalid feature name: \`$ac_useropt'"
936    ac_useropt_orig=$ac_useropt
937    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
938    case $ac_user_opts in
939      *"
940"enable_$ac_useropt"
941"*) ;;
942      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943	 ac_unrecognized_sep=', ';;
944    esac
945    eval enable_$ac_useropt=no ;;
946
947  -docdir | --docdir | --docdi | --doc | --do)
948    ac_prev=docdir ;;
949  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950    docdir=$ac_optarg ;;
951
952  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953    ac_prev=dvidir ;;
954  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955    dvidir=$ac_optarg ;;
956
957  -enable-* | --enable-*)
958    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959    # Reject names that are not valid shell variable names.
960    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961      as_fn_error $? "invalid feature name: \`$ac_useropt'"
962    ac_useropt_orig=$ac_useropt
963    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
964    case $ac_user_opts in
965      *"
966"enable_$ac_useropt"
967"*) ;;
968      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969	 ac_unrecognized_sep=', ';;
970    esac
971    eval enable_$ac_useropt=\$ac_optarg ;;
972
973  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975  | --exec | --exe | --ex)
976    ac_prev=exec_prefix ;;
977  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979  | --exec=* | --exe=* | --ex=*)
980    exec_prefix=$ac_optarg ;;
981
982  -gas | --gas | --ga | --g)
983    # Obsolete; use --with-gas.
984    with_gas=yes ;;
985
986  -help | --help | --hel | --he | -h)
987    ac_init_help=long ;;
988  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989    ac_init_help=recursive ;;
990  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991    ac_init_help=short ;;
992
993  -host | --host | --hos | --ho)
994    ac_prev=host_alias ;;
995  -host=* | --host=* | --hos=* | --ho=*)
996    host_alias=$ac_optarg ;;
997
998  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999    ac_prev=htmldir ;;
1000  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001  | --ht=*)
1002    htmldir=$ac_optarg ;;
1003
1004  -includedir | --includedir | --includedi | --included | --include \
1005  | --includ | --inclu | --incl | --inc)
1006    ac_prev=includedir ;;
1007  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008  | --includ=* | --inclu=* | --incl=* | --inc=*)
1009    includedir=$ac_optarg ;;
1010
1011  -infodir | --infodir | --infodi | --infod | --info | --inf)
1012    ac_prev=infodir ;;
1013  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014    infodir=$ac_optarg ;;
1015
1016  -libdir | --libdir | --libdi | --libd)
1017    ac_prev=libdir ;;
1018  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019    libdir=$ac_optarg ;;
1020
1021  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022  | --libexe | --libex | --libe)
1023    ac_prev=libexecdir ;;
1024  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025  | --libexe=* | --libex=* | --libe=*)
1026    libexecdir=$ac_optarg ;;
1027
1028  -localedir | --localedir | --localedi | --localed | --locale)
1029    ac_prev=localedir ;;
1030  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031    localedir=$ac_optarg ;;
1032
1033  -localstatedir | --localstatedir | --localstatedi | --localstated \
1034  | --localstate | --localstat | --localsta | --localst | --locals)
1035    ac_prev=localstatedir ;;
1036  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038    localstatedir=$ac_optarg ;;
1039
1040  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041    ac_prev=mandir ;;
1042  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043    mandir=$ac_optarg ;;
1044
1045  -nfp | --nfp | --nf)
1046    # Obsolete; use --without-fp.
1047    with_fp=no ;;
1048
1049  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050  | --no-cr | --no-c | -n)
1051    no_create=yes ;;
1052
1053  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055    no_recursion=yes ;;
1056
1057  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059  | --oldin | --oldi | --old | --ol | --o)
1060    ac_prev=oldincludedir ;;
1061  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064    oldincludedir=$ac_optarg ;;
1065
1066  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067    ac_prev=prefix ;;
1068  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069    prefix=$ac_optarg ;;
1070
1071  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072  | --program-pre | --program-pr | --program-p)
1073    ac_prev=program_prefix ;;
1074  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076    program_prefix=$ac_optarg ;;
1077
1078  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079  | --program-suf | --program-su | --program-s)
1080    ac_prev=program_suffix ;;
1081  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083    program_suffix=$ac_optarg ;;
1084
1085  -program-transform-name | --program-transform-name \
1086  | --program-transform-nam | --program-transform-na \
1087  | --program-transform-n | --program-transform- \
1088  | --program-transform | --program-transfor \
1089  | --program-transfo | --program-transf \
1090  | --program-trans | --program-tran \
1091  | --progr-tra | --program-tr | --program-t)
1092    ac_prev=program_transform_name ;;
1093  -program-transform-name=* | --program-transform-name=* \
1094  | --program-transform-nam=* | --program-transform-na=* \
1095  | --program-transform-n=* | --program-transform-=* \
1096  | --program-transform=* | --program-transfor=* \
1097  | --program-transfo=* | --program-transf=* \
1098  | --program-trans=* | --program-tran=* \
1099  | --progr-tra=* | --program-tr=* | --program-t=*)
1100    program_transform_name=$ac_optarg ;;
1101
1102  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103    ac_prev=pdfdir ;;
1104  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105    pdfdir=$ac_optarg ;;
1106
1107  -psdir | --psdir | --psdi | --psd | --ps)
1108    ac_prev=psdir ;;
1109  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110    psdir=$ac_optarg ;;
1111
1112  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113  | -silent | --silent | --silen | --sile | --sil)
1114    silent=yes ;;
1115
1116  -runstatedir | --runstatedir | --runstatedi | --runstated \
1117  | --runstate | --runstat | --runsta | --runst | --runs \
1118  | --run | --ru | --r)
1119    ac_prev=runstatedir ;;
1120  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1121  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1122  | --run=* | --ru=* | --r=*)
1123    runstatedir=$ac_optarg ;;
1124
1125  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126    ac_prev=sbindir ;;
1127  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128  | --sbi=* | --sb=*)
1129    sbindir=$ac_optarg ;;
1130
1131  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133  | --sharedst | --shareds | --shared | --share | --shar \
1134  | --sha | --sh)
1135    ac_prev=sharedstatedir ;;
1136  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139  | --sha=* | --sh=*)
1140    sharedstatedir=$ac_optarg ;;
1141
1142  -site | --site | --sit)
1143    ac_prev=site ;;
1144  -site=* | --site=* | --sit=*)
1145    site=$ac_optarg ;;
1146
1147  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148    ac_prev=srcdir ;;
1149  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150    srcdir=$ac_optarg ;;
1151
1152  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153  | --syscon | --sysco | --sysc | --sys | --sy)
1154    ac_prev=sysconfdir ;;
1155  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157    sysconfdir=$ac_optarg ;;
1158
1159  -target | --target | --targe | --targ | --tar | --ta | --t)
1160    ac_prev=target_alias ;;
1161  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162    target_alias=$ac_optarg ;;
1163
1164  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165    verbose=yes ;;
1166
1167  -version | --version | --versio | --versi | --vers | -V)
1168    ac_init_version=: ;;
1169
1170  -with-* | --with-*)
1171    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172    # Reject names that are not valid shell variable names.
1173    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174      as_fn_error $? "invalid package name: \`$ac_useropt'"
1175    ac_useropt_orig=$ac_useropt
1176    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1177    case $ac_user_opts in
1178      *"
1179"with_$ac_useropt"
1180"*) ;;
1181      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182	 ac_unrecognized_sep=', ';;
1183    esac
1184    eval with_$ac_useropt=\$ac_optarg ;;
1185
1186  -without-* | --without-*)
1187    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188    # Reject names that are not valid shell variable names.
1189    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190      as_fn_error $? "invalid package name: \`$ac_useropt'"
1191    ac_useropt_orig=$ac_useropt
1192    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1193    case $ac_user_opts in
1194      *"
1195"with_$ac_useropt"
1196"*) ;;
1197      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198	 ac_unrecognized_sep=', ';;
1199    esac
1200    eval with_$ac_useropt=no ;;
1201
1202  --x)
1203    # Obsolete; use --with-x.
1204    with_x=yes ;;
1205
1206  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207  | --x-incl | --x-inc | --x-in | --x-i)
1208    ac_prev=x_includes ;;
1209  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211    x_includes=$ac_optarg ;;
1212
1213  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215    ac_prev=x_libraries ;;
1216  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218    x_libraries=$ac_optarg ;;
1219
1220  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221Try \`$0 --help' for more information"
1222    ;;
1223
1224  *=*)
1225    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226    # Reject names that are not valid shell variable names.
1227    case $ac_envvar in #(
1228      '' | [0-9]* | *[!_$as_cr_alnum]* )
1229      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230    esac
1231    eval $ac_envvar=\$ac_optarg
1232    export $ac_envvar ;;
1233
1234  *)
1235    # FIXME: should be removed in autoconf 3.0.
1236    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1237    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1239    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240    ;;
1241
1242  esac
1243done
1244
1245if test -n "$ac_prev"; then
1246  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247  as_fn_error $? "missing argument to $ac_option"
1248fi
1249
1250if test -n "$ac_unrecognized_opts"; then
1251  case $enable_option_checking in
1252    no) ;;
1253    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255  esac
1256fi
1257
1258# Check all directory arguments for consistency.
1259for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260		datadir sysconfdir sharedstatedir localstatedir includedir \
1261		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262		libdir localedir mandir runstatedir
1263do
1264  eval ac_val=\$$ac_var
1265  # Remove trailing slashes.
1266  case $ac_val in
1267    */ )
1268      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269      eval $ac_var=\$ac_val;;
1270  esac
1271  # Be sure to have absolute directory names.
1272  case $ac_val in
1273    [\\/$]* | ?:[\\/]* )  continue;;
1274    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275  esac
1276  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277done
1278
1279# There might be people who depend on the old broken behavior: `$host'
1280# used to hold the argument of --host etc.
1281# FIXME: To remove some day.
1282build=$build_alias
1283host=$host_alias
1284target=$target_alias
1285
1286# FIXME: To remove some day.
1287if test "x$host_alias" != x; then
1288  if test "x$build_alias" = x; then
1289    cross_compiling=maybe
1290  elif test "x$build_alias" != "x$host_alias"; then
1291    cross_compiling=yes
1292  fi
1293fi
1294
1295ac_tool_prefix=
1296test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298test "$silent" = yes && exec 6>/dev/null
1299
1300
1301ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302ac_ls_di=`ls -di .` &&
1303ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304  as_fn_error $? "working directory cannot be determined"
1305test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306  as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309# Find the source files, if location was not specified.
1310if test -z "$srcdir"; then
1311  ac_srcdir_defaulted=yes
1312  # Try the directory containing this script, then the parent directory.
1313  ac_confdir=`$as_dirname -- "$as_myself" ||
1314$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315	 X"$as_myself" : 'X\(//\)[^/]' \| \
1316	 X"$as_myself" : 'X\(//\)$' \| \
1317	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318printf "%s\n" X"$as_myself" |
1319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320	    s//\1/
1321	    q
1322	  }
1323	  /^X\(\/\/\)[^/].*/{
1324	    s//\1/
1325	    q
1326	  }
1327	  /^X\(\/\/\)$/{
1328	    s//\1/
1329	    q
1330	  }
1331	  /^X\(\/\).*/{
1332	    s//\1/
1333	    q
1334	  }
1335	  s/.*/./; q'`
1336  srcdir=$ac_confdir
1337  if test ! -r "$srcdir/$ac_unique_file"; then
1338    srcdir=..
1339  fi
1340else
1341  ac_srcdir_defaulted=no
1342fi
1343if test ! -r "$srcdir/$ac_unique_file"; then
1344  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346fi
1347ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348ac_abs_confdir=`(
1349	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350	pwd)`
1351# When building in place, set srcdir=.
1352if test "$ac_abs_confdir" = "$ac_pwd"; then
1353  srcdir=.
1354fi
1355# Remove unnecessary trailing slashes from srcdir.
1356# Double slashes in file names in object file debugging info
1357# mess up M-x gdb in Emacs.
1358case $srcdir in
1359*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360esac
1361for ac_var in $ac_precious_vars; do
1362  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363  eval ac_env_${ac_var}_value=\$${ac_var}
1364  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366done
1367
1368#
1369# Report the --help message.
1370#
1371if test "$ac_init_help" = "long"; then
1372  # Omit some internal or obsolete options to make the list less imposing.
1373  # This message is too long to be a string in the A/UX 3.1 sh.
1374  cat <<_ACEOF
1375\`configure' configures this package to adapt to many kinds of systems.
1376
1377Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380VAR=VALUE.  See below for descriptions of some of the useful variables.
1381
1382Defaults for the options are specified in brackets.
1383
1384Configuration:
1385  -h, --help              display this help and exit
1386      --help=short        display options specific to this package
1387      --help=recursive    display the short help of all the included packages
1388  -V, --version           display version information and exit
1389  -q, --quiet, --silent   do not print \`checking ...' messages
1390      --cache-file=FILE   cache test results in FILE [disabled]
1391  -C, --config-cache      alias for \`--cache-file=config.cache'
1392  -n, --no-create         do not create output files
1393      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1394
1395Installation directories:
1396  --prefix=PREFIX         install architecture-independent files in PREFIX
1397                          [$ac_default_prefix]
1398  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1399                          [PREFIX]
1400
1401By default, \`make install' will install all the files in
1402\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1403an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404for instance \`--prefix=\$HOME'.
1405
1406For better control, use the options below.
1407
1408Fine tuning of the installation directories:
1409  --bindir=DIR            user executables [EPREFIX/bin]
1410  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1411  --libexecdir=DIR        program executables [EPREFIX/libexec]
1412  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1413  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1414  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1415  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1416  --libdir=DIR            object code libraries [EPREFIX/lib]
1417  --includedir=DIR        C header files [PREFIX/include]
1418  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1419  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1420  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1421  --infodir=DIR           info documentation [DATAROOTDIR/info]
1422  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1423  --mandir=DIR            man documentation [DATAROOTDIR/man]
1424  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1425  --htmldir=DIR           html documentation [DOCDIR]
1426  --dvidir=DIR            dvi documentation [DOCDIR]
1427  --pdfdir=DIR            pdf documentation [DOCDIR]
1428  --psdir=DIR             ps documentation [DOCDIR]
1429_ACEOF
1430
1431  cat <<\_ACEOF
1432
1433Program names:
1434  --program-prefix=PREFIX            prepend PREFIX to installed program names
1435  --program-suffix=SUFFIX            append SUFFIX to installed program names
1436  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1437
1438System types:
1439  --build=BUILD     configure for building on BUILD [guessed]
1440  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1441_ACEOF
1442fi
1443
1444if test -n "$ac_init_help"; then
1445
1446  cat <<\_ACEOF
1447
1448Optional Features:
1449  --disable-option-checking  ignore unrecognized --enable/--with options
1450  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1451  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1452  --enable-cppflags=...   specify C preprocessor flags
1453  --enable-cflags=...     specify C compiler flags
1454  --enable-ldflags=...    specify linker flags
1455  --enable-libs=...       specify link libraries
1456  --enable-zsh-debug      compile with debug code and debugger symbols
1457  --enable-zsh-mem        compile with zsh memory allocation routines
1458  --enable-zsh-mem-debug  debug zsh memory allocation routines
1459  --enable-zsh-mem-warning
1460                          print warnings for errors in memory allocation
1461  --enable-zsh-secure-free
1462                          turn on error checking for free()
1463  --enable-zsh-heap-debug turn on error checking for heap allocation
1464  --enable-zsh-valgrind   turn on support for valgrind debugging of heap
1465                          memory
1466  --enable-zsh-hash-debug turn on debugging of internal hash tables
1467  --enable-stack-allocation
1468                          allocate stack memory e.g. with `alloca'
1469  --enable-etcdir=DIR     the default directory for global zsh scripts
1470  --enable-zshenv=FILE    the full pathname of the global zshenv script
1471  --enable-zshrc=FILE     the full pathname of the global zshrc script
1472  --enable-zprofile=FILE  the full pathname of the global zprofile script
1473  --enable-zlogin=FILE    the full pathname of the global zlogin script
1474  --enable-zlogout=FILE   the full pathname of the global zlogout script
1475  --disable-dynamic       turn off dynamically loaded binary modules
1476  --disable-restricted-r  turn off r* invocation for restricted shell
1477  --disable-locale        turn off locale features
1478  --enable-ansi2knr       translate source to K&R C before compiling
1479  --enable-runhelpdir=DIR the directory in which to install run-help files
1480  --enable-fndir=DIR      the directory in which to install functions
1481  --enable-site-fndir=DIR same for site functions (not version specific)
1482  --enable-function-subdirs
1483                          install functions in subdirectories
1484  --enable-additional-fpath=DIR
1485                          add directories to default function path
1486  --enable-scriptdir=DIR  the directory in which to install scripts
1487  --enable-site-scriptdir=DIR
1488                          same for site scripts (not version specific)
1489  --enable-custom-patchlevel
1490                          set a custom ZSH_PATCHLEVEL value
1491  --enable-maildir-support
1492                          enable maildir support in MAIL and MAILPATH
1493  --enable-max-function-depth=MAX
1494                          limit function depth to MAX, default 500
1495  --enable-readnullcmd=PAGER
1496                          pager used when READNULLCMD is not set
1497  --enable-pcre           enable the search for the pcre library (may create
1498                          run-time library dependencies)
1499  --enable-cap            enable the search for POSIX capabilities (may
1500                          require additional headers to be added by hand)
1501  --disable-gdbm          turn off search for gdbm library
1502  --disable-largefile     omit support for large files
1503  --enable-multibyte      support multibyte characters
1504  --enable-unicode9       compile with unicode9 character widths
1505  --enable-libc-musl      compile with musl as the C library
1506  --disable-dynamic-nss   do not call functions that will require dynamic NSS
1507                          modules
1508
1509Optional Packages:
1510  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1511  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1512  --with-term-lib=LIBS    search space-separated LIBS for terminal handling
1513  --with-tcsetpgrp        assumes that tcsetpgrp() exists and works correctly
1514
1515Some influential environment variables:
1516  CC          C compiler command
1517  CFLAGS      C compiler flags
1518  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1519              nonstandard directory <lib dir>
1520  LIBS        libraries to pass to the linker, e.g. -l<library>
1521  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522              you have headers in a nonstandard directory <include dir>
1523  CPP         C preprocessor
1524
1525Use these variables to override the choices made by `configure' or to help
1526it to find libraries and programs with nonstandard names/locations.
1527
1528Report bugs to the package provider.
1529_ACEOF
1530ac_status=$?
1531fi
1532
1533if test "$ac_init_help" = "recursive"; then
1534  # If there are subdirs, report their specific --help.
1535  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536    test -d "$ac_dir" ||
1537      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538      continue
1539    ac_builddir=.
1540
1541case "$ac_dir" in
1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543*)
1544  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1545  # A ".." for each directory in $ac_dir_suffix.
1546  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547  case $ac_top_builddir_sub in
1548  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550  esac ;;
1551esac
1552ac_abs_top_builddir=$ac_pwd
1553ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554# for backward compatibility:
1555ac_top_builddir=$ac_top_build_prefix
1556
1557case $srcdir in
1558  .)  # We are building in place.
1559    ac_srcdir=.
1560    ac_top_srcdir=$ac_top_builddir_sub
1561    ac_abs_top_srcdir=$ac_pwd ;;
1562  [\\/]* | ?:[\\/]* )  # Absolute name.
1563    ac_srcdir=$srcdir$ac_dir_suffix;
1564    ac_top_srcdir=$srcdir
1565    ac_abs_top_srcdir=$srcdir ;;
1566  *) # Relative name.
1567    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568    ac_top_srcdir=$ac_top_build_prefix$srcdir
1569    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570esac
1571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573    cd "$ac_dir" || { ac_status=$?; continue; }
1574    # Check for configure.gnu first; this name is used for a wrapper for
1575    # Metaconfig's "Configure" on case-insensitive file systems.
1576    if test -f "$ac_srcdir/configure.gnu"; then
1577      echo &&
1578      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579    elif test -f "$ac_srcdir/configure"; then
1580      echo &&
1581      $SHELL "$ac_srcdir/configure" --help=recursive
1582    else
1583      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584    fi || ac_status=$?
1585    cd "$ac_pwd" || { ac_status=$?; break; }
1586  done
1587fi
1588
1589test -n "$ac_init_help" && exit $ac_status
1590if $ac_init_version; then
1591  cat <<\_ACEOF
1592configure
1593generated by GNU Autoconf 2.71
1594
1595Copyright (C) 2021 Free Software Foundation, Inc.
1596This configure script is free software; the Free Software Foundation
1597gives unlimited permission to copy, distribute and modify it.
1598_ACEOF
1599  exit
1600fi
1601
1602## ------------------------ ##
1603## Autoconf initialization. ##
1604## ------------------------ ##
1605
1606# ac_fn_c_try_compile LINENO
1607# --------------------------
1608# Try to compile conftest.$ac_ext, and return whether this succeeded.
1609ac_fn_c_try_compile ()
1610{
1611  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612  rm -f conftest.$ac_objext conftest.beam
1613  if { { ac_try="$ac_compile"
1614case "(($ac_try" in
1615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616  *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619printf "%s\n" "$ac_try_echo"; } >&5
1620  (eval "$ac_compile") 2>conftest.err
1621  ac_status=$?
1622  if test -s conftest.err; then
1623    grep -v '^ *+' conftest.err >conftest.er1
1624    cat conftest.er1 >&5
1625    mv -f conftest.er1 conftest.err
1626  fi
1627  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628  test $ac_status = 0; } && {
1629	 test -z "$ac_c_werror_flag" ||
1630	 test ! -s conftest.err
1631       } && test -s conftest.$ac_objext
1632then :
1633  ac_retval=0
1634else $as_nop
1635  printf "%s\n" "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638	ac_retval=1
1639fi
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641  as_fn_set_status $ac_retval
1642
1643} # ac_fn_c_try_compile
1644
1645# ac_fn_c_try_cpp LINENO
1646# ----------------------
1647# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648ac_fn_c_try_cpp ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  if { { ac_try="$ac_cpp conftest.$ac_ext"
1652case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657printf "%s\n" "$ac_try_echo"; } >&5
1658  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659  ac_status=$?
1660  if test -s conftest.err; then
1661    grep -v '^ *+' conftest.err >conftest.er1
1662    cat conftest.er1 >&5
1663    mv -f conftest.er1 conftest.err
1664  fi
1665  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666  test $ac_status = 0; } > conftest.i && {
1667	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668	 test ! -s conftest.err
1669       }
1670then :
1671  ac_retval=0
1672else $as_nop
1673  printf "%s\n" "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676    ac_retval=1
1677fi
1678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679  as_fn_set_status $ac_retval
1680
1681} # ac_fn_c_try_cpp
1682
1683# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1684# -------------------------------------------
1685# Tests whether TYPE exists after having included INCLUDES, setting cache
1686# variable VAR accordingly.
1687ac_fn_c_check_type ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691printf %s "checking for $2... " >&6; }
1692if eval test \${$3+y}
1693then :
1694  printf %s "(cached) " >&6
1695else $as_nop
1696  eval "$3=no"
1697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698/* end confdefs.h.  */
1699$4
1700int
1701main (void)
1702{
1703if (sizeof ($2))
1704	 return 0;
1705  ;
1706  return 0;
1707}
1708_ACEOF
1709if ac_fn_c_try_compile "$LINENO"
1710then :
1711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712/* end confdefs.h.  */
1713$4
1714int
1715main (void)
1716{
1717if (sizeof (($2)))
1718	    return 0;
1719  ;
1720  return 0;
1721}
1722_ACEOF
1723if ac_fn_c_try_compile "$LINENO"
1724then :
1725
1726else $as_nop
1727  eval "$3=yes"
1728fi
1729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1730fi
1731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1732fi
1733eval ac_res=\$$3
1734	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735printf "%s\n" "$ac_res" >&6; }
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
1738} # ac_fn_c_check_type
1739
1740# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1741# -------------------------------------------------------
1742# Tests whether HEADER exists and can be compiled using the include files in
1743# INCLUDES, setting the cache variable VAR accordingly.
1744ac_fn_c_check_header_compile ()
1745{
1746  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748printf %s "checking for $2... " >&6; }
1749if eval test \${$3+y}
1750then :
1751  printf %s "(cached) " >&6
1752else $as_nop
1753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h.  */
1755$4
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"
1759then :
1760  eval "$3=yes"
1761else $as_nop
1762  eval "$3=no"
1763fi
1764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1765fi
1766eval ac_res=\$$3
1767	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768printf "%s\n" "$ac_res" >&6; }
1769  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771} # ac_fn_c_check_header_compile
1772
1773# ac_fn_c_try_link LINENO
1774# -----------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded.
1776ac_fn_c_try_link ()
1777{
1778  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1780  if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783  *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786printf "%s\n" "$ac_try_echo"; } >&5
1787  (eval "$ac_link") 2>conftest.err
1788  ac_status=$?
1789  if test -s conftest.err; then
1790    grep -v '^ *+' conftest.err >conftest.er1
1791    cat conftest.er1 >&5
1792    mv -f conftest.er1 conftest.err
1793  fi
1794  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795  test $ac_status = 0; } && {
1796	 test -z "$ac_c_werror_flag" ||
1797	 test ! -s conftest.err
1798       } && test -s conftest$ac_exeext && {
1799	 test "$cross_compiling" = yes ||
1800	 test -x conftest$ac_exeext
1801       }
1802then :
1803  ac_retval=0
1804else $as_nop
1805  printf "%s\n" "$as_me: failed program was:" >&5
1806sed 's/^/| /' conftest.$ac_ext >&5
1807
1808	ac_retval=1
1809fi
1810  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1811  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1812  # interfere with the next link command; also delete a directory that is
1813  # left behind by Apple's compiler.  We do this before executing the actions.
1814  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816  as_fn_set_status $ac_retval
1817
1818} # ac_fn_c_try_link
1819
1820# ac_fn_c_try_run LINENO
1821# ----------------------
1822# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1823# executables *can* be run.
1824ac_fn_c_try_run ()
1825{
1826  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827  if { { ac_try="$ac_link"
1828case "(($ac_try" in
1829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830  *) ac_try_echo=$ac_try;;
1831esac
1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833printf "%s\n" "$ac_try_echo"; } >&5
1834  (eval "$ac_link") 2>&5
1835  ac_status=$?
1836  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1838  { { case "(($ac_try" in
1839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840  *) ac_try_echo=$ac_try;;
1841esac
1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843printf "%s\n" "$ac_try_echo"; } >&5
1844  (eval "$ac_try") 2>&5
1845  ac_status=$?
1846  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847  test $ac_status = 0; }; }
1848then :
1849  ac_retval=0
1850else $as_nop
1851  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1852       printf "%s\n" "$as_me: failed program was:" >&5
1853sed 's/^/| /' conftest.$ac_ext >&5
1854
1855       ac_retval=$ac_status
1856fi
1857  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859  as_fn_set_status $ac_retval
1860
1861} # ac_fn_c_try_run
1862
1863# ac_fn_c_check_func LINENO FUNC VAR
1864# ----------------------------------
1865# Tests whether FUNC exists, setting the cache variable VAR accordingly
1866ac_fn_c_check_func ()
1867{
1868  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870printf %s "checking for $2... " >&6; }
1871if eval test \${$3+y}
1872then :
1873  printf %s "(cached) " >&6
1874else $as_nop
1875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h.  */
1877/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1878   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1879#define $2 innocuous_$2
1880
1881/* System header to define __stub macros and hopefully few prototypes,
1882   which can conflict with char $2 (); below.  */
1883
1884#include <limits.h>
1885#undef $2
1886
1887/* Override any GCC internal prototype to avoid an error.
1888   Use char because int might match the return type of a GCC
1889   builtin and then its argument prototype would still apply.  */
1890#ifdef __cplusplus
1891extern "C"
1892#endif
1893char $2 ();
1894/* The GNU C library defines this for functions which it implements
1895    to always fail with ENOSYS.  Some functions are actually named
1896    something starting with __ and the normal name is an alias.  */
1897#if defined __stub_$2 || defined __stub___$2
1898choke me
1899#endif
1900
1901int
1902main (void)
1903{
1904return $2 ();
1905  ;
1906  return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_link "$LINENO"
1910then :
1911  eval "$3=yes"
1912else $as_nop
1913  eval "$3=no"
1914fi
1915rm -f core conftest.err conftest.$ac_objext conftest.beam \
1916    conftest$ac_exeext conftest.$ac_ext
1917fi
1918eval ac_res=\$$3
1919	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920printf "%s\n" "$ac_res" >&6; }
1921  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923} # ac_fn_c_check_func
1924
1925# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1926# ------------------------------------------------------------------
1927# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1928# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1929ac_fn_check_decl ()
1930{
1931  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932  as_decl_name=`echo $2|sed 's/ *(.*//'`
1933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1934printf %s "checking whether $as_decl_name is declared... " >&6; }
1935if eval test \${$3+y}
1936then :
1937  printf %s "(cached) " >&6
1938else $as_nop
1939  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1940  eval ac_save_FLAGS=\$$6
1941  as_fn_append $6 " $5"
1942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944$4
1945int
1946main (void)
1947{
1948#ifndef $as_decl_name
1949#ifdef __cplusplus
1950  (void) $as_decl_use;
1951#else
1952  (void) $as_decl_name;
1953#endif
1954#endif
1955
1956  ;
1957  return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"
1961then :
1962  eval "$3=yes"
1963else $as_nop
1964  eval "$3=no"
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1967  eval $6=\$ac_save_FLAGS
1968
1969fi
1970eval ac_res=\$$3
1971	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972printf "%s\n" "$ac_res" >&6; }
1973  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975} # ac_fn_check_decl
1976
1977# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1978# ----------------------------------------------------
1979# Tries to find if the field MEMBER exists in type AGGR, after including
1980# INCLUDES, setting cache variable VAR accordingly.
1981ac_fn_c_check_member ()
1982{
1983  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1985printf %s "checking for $2.$3... " >&6; }
1986if eval test \${$4+y}
1987then :
1988  printf %s "(cached) " >&6
1989else $as_nop
1990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991/* end confdefs.h.  */
1992$5
1993int
1994main (void)
1995{
1996static $2 ac_aggr;
1997if (ac_aggr.$3)
1998return 0;
1999  ;
2000  return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_compile "$LINENO"
2004then :
2005  eval "$4=yes"
2006else $as_nop
2007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h.  */
2009$5
2010int
2011main (void)
2012{
2013static $2 ac_aggr;
2014if (sizeof ac_aggr.$3)
2015return 0;
2016  ;
2017  return 0;
2018}
2019_ACEOF
2020if ac_fn_c_try_compile "$LINENO"
2021then :
2022  eval "$4=yes"
2023else $as_nop
2024  eval "$4=no"
2025fi
2026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2027fi
2028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2029fi
2030eval ac_res=\$$4
2031	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032printf "%s\n" "$ac_res" >&6; }
2033  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034
2035} # ac_fn_c_check_member
2036ac_configure_args_raw=
2037for ac_arg
2038do
2039  case $ac_arg in
2040  *\'*)
2041    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2042  esac
2043  as_fn_append ac_configure_args_raw " '$ac_arg'"
2044done
2045
2046case $ac_configure_args_raw in
2047  *$as_nl*)
2048    ac_safe_unquote= ;;
2049  *)
2050    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2051    ac_unsafe_a="$ac_unsafe_z#~"
2052    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2053    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2054esac
2055
2056cat >config.log <<_ACEOF
2057This file contains any messages produced by compilers while
2058running configure, to aid debugging if configure makes a mistake.
2059
2060It was created by $as_me, which was
2061generated by GNU Autoconf 2.71.  Invocation command line was
2062
2063  $ $0$ac_configure_args_raw
2064
2065_ACEOF
2066exec 5>>config.log
2067{
2068cat <<_ASUNAME
2069## --------- ##
2070## Platform. ##
2071## --------- ##
2072
2073hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2074uname -m = `(uname -m) 2>/dev/null || echo unknown`
2075uname -r = `(uname -r) 2>/dev/null || echo unknown`
2076uname -s = `(uname -s) 2>/dev/null || echo unknown`
2077uname -v = `(uname -v) 2>/dev/null || echo unknown`
2078
2079/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2080/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2081
2082/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2083/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2084/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2085/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2086/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2087/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2088/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2089
2090_ASUNAME
2091
2092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093for as_dir in $PATH
2094do
2095  IFS=$as_save_IFS
2096  case $as_dir in #(((
2097    '') as_dir=./ ;;
2098    */) ;;
2099    *) as_dir=$as_dir/ ;;
2100  esac
2101    printf "%s\n" "PATH: $as_dir"
2102  done
2103IFS=$as_save_IFS
2104
2105} >&5
2106
2107cat >&5 <<_ACEOF
2108
2109
2110## ----------- ##
2111## Core tests. ##
2112## ----------- ##
2113
2114_ACEOF
2115
2116
2117# Keep a trace of the command line.
2118# Strip out --no-create and --no-recursion so they do not pile up.
2119# Strip out --silent because we don't want to record it for future runs.
2120# Also quote any args containing shell meta-characters.
2121# Make two passes to allow for proper duplicate-argument suppression.
2122ac_configure_args=
2123ac_configure_args0=
2124ac_configure_args1=
2125ac_must_keep_next=false
2126for ac_pass in 1 2
2127do
2128  for ac_arg
2129  do
2130    case $ac_arg in
2131    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2132    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2133    | -silent | --silent | --silen | --sile | --sil)
2134      continue ;;
2135    *\'*)
2136      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2137    esac
2138    case $ac_pass in
2139    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2140    2)
2141      as_fn_append ac_configure_args1 " '$ac_arg'"
2142      if test $ac_must_keep_next = true; then
2143	ac_must_keep_next=false # Got value, back to normal.
2144      else
2145	case $ac_arg in
2146	  *=* | --config-cache | -C | -disable-* | --disable-* \
2147	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2148	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2149	  | -with-* | --with-* | -without-* | --without-* | --x)
2150	    case "$ac_configure_args0 " in
2151	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2152	    esac
2153	    ;;
2154	  -* ) ac_must_keep_next=true ;;
2155	esac
2156      fi
2157      as_fn_append ac_configure_args " '$ac_arg'"
2158      ;;
2159    esac
2160  done
2161done
2162{ ac_configure_args0=; unset ac_configure_args0;}
2163{ ac_configure_args1=; unset ac_configure_args1;}
2164
2165# When interrupted or exit'd, cleanup temporary files, and complete
2166# config.log.  We remove comments because anyway the quotes in there
2167# would cause problems or look ugly.
2168# WARNING: Use '\'' to represent an apostrophe within the trap.
2169# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2170trap 'exit_status=$?
2171  # Sanitize IFS.
2172  IFS=" ""	$as_nl"
2173  # Save into config.log some information that might help in debugging.
2174  {
2175    echo
2176
2177    printf "%s\n" "## ---------------- ##
2178## Cache variables. ##
2179## ---------------- ##"
2180    echo
2181    # The following way of writing the cache mishandles newlines in values,
2182(
2183  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2184    eval ac_val=\$$ac_var
2185    case $ac_val in #(
2186    *${as_nl}*)
2187      case $ac_var in #(
2188      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2189printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2190      esac
2191      case $ac_var in #(
2192      _ | IFS | as_nl) ;; #(
2193      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2194      *) { eval $ac_var=; unset $ac_var;} ;;
2195      esac ;;
2196    esac
2197  done
2198  (set) 2>&1 |
2199    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2200    *${as_nl}ac_space=\ *)
2201      sed -n \
2202	"s/'\''/'\''\\\\'\'''\''/g;
2203	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2204      ;; #(
2205    *)
2206      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2207      ;;
2208    esac |
2209    sort
2210)
2211    echo
2212
2213    printf "%s\n" "## ----------------- ##
2214## Output variables. ##
2215## ----------------- ##"
2216    echo
2217    for ac_var in $ac_subst_vars
2218    do
2219      eval ac_val=\$$ac_var
2220      case $ac_val in
2221      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2222      esac
2223      printf "%s\n" "$ac_var='\''$ac_val'\''"
2224    done | sort
2225    echo
2226
2227    if test -n "$ac_subst_files"; then
2228      printf "%s\n" "## ------------------- ##
2229## File substitutions. ##
2230## ------------------- ##"
2231      echo
2232      for ac_var in $ac_subst_files
2233      do
2234	eval ac_val=\$$ac_var
2235	case $ac_val in
2236	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2237	esac
2238	printf "%s\n" "$ac_var='\''$ac_val'\''"
2239      done | sort
2240      echo
2241    fi
2242
2243    if test -s confdefs.h; then
2244      printf "%s\n" "## ----------- ##
2245## confdefs.h. ##
2246## ----------- ##"
2247      echo
2248      cat confdefs.h
2249      echo
2250    fi
2251    test "$ac_signal" != 0 &&
2252      printf "%s\n" "$as_me: caught signal $ac_signal"
2253    printf "%s\n" "$as_me: exit $exit_status"
2254  } >&5
2255  rm -f core *.core core.conftest.* &&
2256    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2257    exit $exit_status
2258' 0
2259for ac_signal in 1 2 13 15; do
2260  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2261done
2262ac_signal=0
2263
2264# confdefs.h avoids OS command line length limits that DEFS can exceed.
2265rm -f -r conftest* confdefs.h
2266
2267printf "%s\n" "/* confdefs.h */" > confdefs.h
2268
2269# Predefined preprocessor variables.
2270
2271printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2272
2273printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2274
2275printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2276
2277printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2278
2279printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2280
2281printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2282
2283
2284# Let the site file select an alternate cache file if it wants to.
2285# Prefer an explicitly selected file to automatically selected ones.
2286if test -n "$CONFIG_SITE"; then
2287  ac_site_files="$CONFIG_SITE"
2288elif test "x$prefix" != xNONE; then
2289  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2290else
2291  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2292fi
2293
2294for ac_site_file in $ac_site_files
2295do
2296  case $ac_site_file in #(
2297  */*) :
2298     ;; #(
2299  *) :
2300    ac_site_file=./$ac_site_file ;;
2301esac
2302  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2303    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2304printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2305    sed 's/^/| /' "$ac_site_file" >&5
2306    . "$ac_site_file" \
2307      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2309as_fn_error $? "failed to load site script $ac_site_file
2310See \`config.log' for more details" "$LINENO" 5; }
2311  fi
2312done
2313
2314if test -r "$cache_file"; then
2315  # Some versions of bash will fail to source /dev/null (special files
2316  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2317  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2318    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2319printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2320    case $cache_file in
2321      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2322      *)                      . "./$cache_file";;
2323    esac
2324  fi
2325else
2326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2327printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2328  >$cache_file
2329fi
2330
2331# Test code for whether the C compiler supports C89 (global declarations)
2332ac_c_conftest_c89_globals='
2333/* Does the compiler advertise C89 conformance?
2334   Do not test the value of __STDC__, because some compilers set it to 0
2335   while being otherwise adequately conformant. */
2336#if !defined __STDC__
2337# error "Compiler does not advertise C89 conformance"
2338#endif
2339
2340#include <stddef.h>
2341#include <stdarg.h>
2342struct stat;
2343/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2344struct buf { int x; };
2345struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2346static char *e (p, i)
2347     char **p;
2348     int i;
2349{
2350  return p[i];
2351}
2352static char *f (char * (*g) (char **, int), char **p, ...)
2353{
2354  char *s;
2355  va_list v;
2356  va_start (v,p);
2357  s = g (p, va_arg (v,int));
2358  va_end (v);
2359  return s;
2360}
2361
2362/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2363   function prototypes and stuff, but not \xHH hex character constants.
2364   These do not provoke an error unfortunately, instead are silently treated
2365   as an "x".  The following induces an error, until -std is added to get
2366   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2367   array size at least.  It is necessary to write \x00 == 0 to get something
2368   that is true only with -std.  */
2369int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2370
2371/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2372   inside strings and character constants.  */
2373#define FOO(x) '\''x'\''
2374int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2375
2376int test (int i, double x);
2377struct s1 {int (*f) (int a);};
2378struct s2 {int (*f) (double a);};
2379int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2380               int, int);'
2381
2382# Test code for whether the C compiler supports C89 (body of main).
2383ac_c_conftest_c89_main='
2384ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2385'
2386
2387# Test code for whether the C compiler supports C99 (global declarations)
2388ac_c_conftest_c99_globals='
2389// Does the compiler advertise C99 conformance?
2390#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2391# error "Compiler does not advertise C99 conformance"
2392#endif
2393
2394#include <stdbool.h>
2395extern int puts (const char *);
2396extern int printf (const char *, ...);
2397extern int dprintf (int, const char *, ...);
2398extern void *malloc (size_t);
2399
2400// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2401// dprintf is used instead of fprintf to avoid needing to declare
2402// FILE and stderr.
2403#define debug(...) dprintf (2, __VA_ARGS__)
2404#define showlist(...) puts (#__VA_ARGS__)
2405#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2406static void
2407test_varargs_macros (void)
2408{
2409  int x = 1234;
2410  int y = 5678;
2411  debug ("Flag");
2412  debug ("X = %d\n", x);
2413  showlist (The first, second, and third items.);
2414  report (x>y, "x is %d but y is %d", x, y);
2415}
2416
2417// Check long long types.
2418#define BIG64 18446744073709551615ull
2419#define BIG32 4294967295ul
2420#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2421#if !BIG_OK
2422  #error "your preprocessor is broken"
2423#endif
2424#if BIG_OK
2425#else
2426  #error "your preprocessor is broken"
2427#endif
2428static long long int bignum = -9223372036854775807LL;
2429static unsigned long long int ubignum = BIG64;
2430
2431struct incomplete_array
2432{
2433  int datasize;
2434  double data[];
2435};
2436
2437struct named_init {
2438  int number;
2439  const wchar_t *name;
2440  double average;
2441};
2442
2443typedef const char *ccp;
2444
2445static inline int
2446test_restrict (ccp restrict text)
2447{
2448  // See if C++-style comments work.
2449  // Iterate through items via the restricted pointer.
2450  // Also check for declarations in for loops.
2451  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2452    continue;
2453  return 0;
2454}
2455
2456// Check varargs and va_copy.
2457static bool
2458test_varargs (const char *format, ...)
2459{
2460  va_list args;
2461  va_start (args, format);
2462  va_list args_copy;
2463  va_copy (args_copy, args);
2464
2465  const char *str = "";
2466  int number = 0;
2467  float fnumber = 0;
2468
2469  while (*format)
2470    {
2471      switch (*format++)
2472	{
2473	case '\''s'\'': // string
2474	  str = va_arg (args_copy, const char *);
2475	  break;
2476	case '\''d'\'': // int
2477	  number = va_arg (args_copy, int);
2478	  break;
2479	case '\''f'\'': // float
2480	  fnumber = va_arg (args_copy, double);
2481	  break;
2482	default:
2483	  break;
2484	}
2485    }
2486  va_end (args_copy);
2487  va_end (args);
2488
2489  return *str && number && fnumber;
2490}
2491'
2492
2493# Test code for whether the C compiler supports C99 (body of main).
2494ac_c_conftest_c99_main='
2495  // Check bool.
2496  _Bool success = false;
2497  success |= (argc != 0);
2498
2499  // Check restrict.
2500  if (test_restrict ("String literal") == 0)
2501    success = true;
2502  char *restrict newvar = "Another string";
2503
2504  // Check varargs.
2505  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2506  test_varargs_macros ();
2507
2508  // Check flexible array members.
2509  struct incomplete_array *ia =
2510    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2511  ia->datasize = 10;
2512  for (int i = 0; i < ia->datasize; ++i)
2513    ia->data[i] = i * 1.234;
2514
2515  // Check named initializers.
2516  struct named_init ni = {
2517    .number = 34,
2518    .name = L"Test wide string",
2519    .average = 543.34343,
2520  };
2521
2522  ni.number = 58;
2523
2524  int dynamic_array[ni.number];
2525  dynamic_array[0] = argv[0][0];
2526  dynamic_array[ni.number - 1] = 543;
2527
2528  // work around unused variable warnings
2529  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2530	 || dynamic_array[ni.number - 1] != 543);
2531'
2532
2533# Test code for whether the C compiler supports C11 (global declarations)
2534ac_c_conftest_c11_globals='
2535// Does the compiler advertise C11 conformance?
2536#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2537# error "Compiler does not advertise C11 conformance"
2538#endif
2539
2540// Check _Alignas.
2541char _Alignas (double) aligned_as_double;
2542char _Alignas (0) no_special_alignment;
2543extern char aligned_as_int;
2544char _Alignas (0) _Alignas (int) aligned_as_int;
2545
2546// Check _Alignof.
2547enum
2548{
2549  int_alignment = _Alignof (int),
2550  int_array_alignment = _Alignof (int[100]),
2551  char_alignment = _Alignof (char)
2552};
2553_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2554
2555// Check _Noreturn.
2556int _Noreturn does_not_return (void) { for (;;) continue; }
2557
2558// Check _Static_assert.
2559struct test_static_assert
2560{
2561  int x;
2562  _Static_assert (sizeof (int) <= sizeof (long int),
2563                  "_Static_assert does not work in struct");
2564  long int y;
2565};
2566
2567// Check UTF-8 literals.
2568#define u8 syntax error!
2569char const utf8_literal[] = u8"happens to be ASCII" "another string";
2570
2571// Check duplicate typedefs.
2572typedef long *long_ptr;
2573typedef long int *long_ptr;
2574typedef long_ptr long_ptr;
2575
2576// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2577struct anonymous
2578{
2579  union {
2580    struct { int i; int j; };
2581    struct { int k; long int l; } w;
2582  };
2583  int m;
2584} v1;
2585'
2586
2587# Test code for whether the C compiler supports C11 (body of main).
2588ac_c_conftest_c11_main='
2589  _Static_assert ((offsetof (struct anonymous, i)
2590		   == offsetof (struct anonymous, w.k)),
2591		  "Anonymous union alignment botch");
2592  v1.i = 2;
2593  v1.w.k = 5;
2594  ok |= v1.i != 5;
2595'
2596
2597# Test code for whether the C compiler supports C11 (complete).
2598ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2599${ac_c_conftest_c99_globals}
2600${ac_c_conftest_c11_globals}
2601
2602int
2603main (int argc, char **argv)
2604{
2605  int ok = 0;
2606  ${ac_c_conftest_c89_main}
2607  ${ac_c_conftest_c99_main}
2608  ${ac_c_conftest_c11_main}
2609  return ok;
2610}
2611"
2612
2613# Test code for whether the C compiler supports C99 (complete).
2614ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2615${ac_c_conftest_c99_globals}
2616
2617int
2618main (int argc, char **argv)
2619{
2620  int ok = 0;
2621  ${ac_c_conftest_c89_main}
2622  ${ac_c_conftest_c99_main}
2623  return ok;
2624}
2625"
2626
2627# Test code for whether the C compiler supports C89 (complete).
2628ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2629
2630int
2631main (int argc, char **argv)
2632{
2633  int ok = 0;
2634  ${ac_c_conftest_c89_main}
2635  return ok;
2636}
2637"
2638
2639as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2640as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2641as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2642as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2643as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2644as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2645as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2646as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2647as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2648as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2649as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2650as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2651
2652# Auxiliary files required by this configure script.
2653ac_aux_files="install-sh config.guess config.sub"
2654
2655# Locations in which to look for auxiliary files.
2656ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2657
2658# Search for a directory containing all of the required auxiliary files,
2659# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2660# If we don't find one directory that contains all the files we need,
2661# we report the set of missing files from the *first* directory in
2662# $ac_aux_dir_candidates and give up.
2663ac_missing_aux_files=""
2664ac_first_candidate=:
2665printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667as_found=false
2668for as_dir in $ac_aux_dir_candidates
2669do
2670  IFS=$as_save_IFS
2671  case $as_dir in #(((
2672    '') as_dir=./ ;;
2673    */) ;;
2674    *) as_dir=$as_dir/ ;;
2675  esac
2676  as_found=:
2677
2678  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2679  ac_aux_dir_found=yes
2680  ac_install_sh=
2681  for ac_aux in $ac_aux_files
2682  do
2683    # As a special case, if "install-sh" is required, that requirement
2684    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2685    # and $ac_install_sh is set appropriately for whichever one is found.
2686    if test x"$ac_aux" = x"install-sh"
2687    then
2688      if test -f "${as_dir}install-sh"; then
2689        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2690        ac_install_sh="${as_dir}install-sh -c"
2691      elif test -f "${as_dir}install.sh"; then
2692        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2693        ac_install_sh="${as_dir}install.sh -c"
2694      elif test -f "${as_dir}shtool"; then
2695        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2696        ac_install_sh="${as_dir}shtool install -c"
2697      else
2698        ac_aux_dir_found=no
2699        if $ac_first_candidate; then
2700          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2701        else
2702          break
2703        fi
2704      fi
2705    else
2706      if test -f "${as_dir}${ac_aux}"; then
2707        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2708      else
2709        ac_aux_dir_found=no
2710        if $ac_first_candidate; then
2711          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2712        else
2713          break
2714        fi
2715      fi
2716    fi
2717  done
2718  if test "$ac_aux_dir_found" = yes; then
2719    ac_aux_dir="$as_dir"
2720    break
2721  fi
2722  ac_first_candidate=false
2723
2724  as_found=false
2725done
2726IFS=$as_save_IFS
2727if $as_found
2728then :
2729
2730else $as_nop
2731  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2732fi
2733
2734
2735# These three variables are undocumented and unsupported,
2736# and are intended to be withdrawn in a future Autoconf release.
2737# They can cause serious problems if a builder's source tree is in a directory
2738# whose full name contains unusual characters.
2739if test -f "${ac_aux_dir}config.guess"; then
2740  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2741fi
2742if test -f "${ac_aux_dir}config.sub"; then
2743  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2744fi
2745if test -f "$ac_aux_dir/configure"; then
2746  ac_configure="$SHELL ${ac_aux_dir}configure"
2747fi
2748
2749# Check that the precious variables saved in the cache have kept the same
2750# value.
2751ac_cache_corrupted=false
2752for ac_var in $ac_precious_vars; do
2753  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2754  eval ac_new_set=\$ac_env_${ac_var}_set
2755  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2756  eval ac_new_val=\$ac_env_${ac_var}_value
2757  case $ac_old_set,$ac_new_set in
2758    set,)
2759      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2760printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2761      ac_cache_corrupted=: ;;
2762    ,set)
2763      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2764printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2765      ac_cache_corrupted=: ;;
2766    ,);;
2767    *)
2768      if test "x$ac_old_val" != "x$ac_new_val"; then
2769	# differences in whitespace do not lead to failure.
2770	ac_old_val_w=`echo x $ac_old_val`
2771	ac_new_val_w=`echo x $ac_new_val`
2772	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2773	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2774printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2775	  ac_cache_corrupted=:
2776	else
2777	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2778printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2779	  eval $ac_var=\$ac_old_val
2780	fi
2781	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2782printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2783	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2784printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2785      fi;;
2786  esac
2787  # Pass precious variables to config.status.
2788  if test "$ac_new_set" = set; then
2789    case $ac_new_val in
2790    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2791    *) ac_arg=$ac_var=$ac_new_val ;;
2792    esac
2793    case " $ac_configure_args " in
2794      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2795      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2796    esac
2797  fi
2798done
2799if $ac_cache_corrupted; then
2800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2801printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2803printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2804  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2805	    and start over" "$LINENO" 5
2806fi
2807## -------------------- ##
2808## Main body of script. ##
2809## -------------------- ##
2810
2811ac_ext=c
2812ac_cpp='$CPP $CPPFLAGS'
2813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816
2817
2818
2819
2820ac_config_headers="$ac_config_headers config.h"
2821
2822
2823. ${srcdir}/Config/version.mk
2824echo "configuring for zsh $VERSION"
2825
2826
2827
2828
2829  # Make sure we can run config.sub.
2830$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2831  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2832
2833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2834printf %s "checking build system type... " >&6; }
2835if test ${ac_cv_build+y}
2836then :
2837  printf %s "(cached) " >&6
2838else $as_nop
2839  ac_build_alias=$build_alias
2840test "x$ac_build_alias" = x &&
2841  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2842test "x$ac_build_alias" = x &&
2843  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2844ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2845  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2846
2847fi
2848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2849printf "%s\n" "$ac_cv_build" >&6; }
2850case $ac_cv_build in
2851*-*-*) ;;
2852*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2853esac
2854build=$ac_cv_build
2855ac_save_IFS=$IFS; IFS='-'
2856set x $ac_cv_build
2857shift
2858build_cpu=$1
2859build_vendor=$2
2860shift; shift
2861# Remember, the first character of IFS is used to create $*,
2862# except with old shells:
2863build_os=$*
2864IFS=$ac_save_IFS
2865case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2866
2867
2868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2869printf %s "checking host system type... " >&6; }
2870if test ${ac_cv_host+y}
2871then :
2872  printf %s "(cached) " >&6
2873else $as_nop
2874  if test "x$host_alias" = x; then
2875  ac_cv_host=$ac_cv_build
2876else
2877  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2878    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2879fi
2880
2881fi
2882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2883printf "%s\n" "$ac_cv_host" >&6; }
2884case $ac_cv_host in
2885*-*-*) ;;
2886*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2887esac
2888host=$ac_cv_host
2889ac_save_IFS=$IFS; IFS='-'
2890set x $ac_cv_host
2891shift
2892host_cpu=$1
2893host_vendor=$2
2894shift; shift
2895# Remember, the first character of IFS is used to create $*,
2896# except with old shells:
2897host_os=$*
2898IFS=$ac_save_IFS
2899case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2900
2901
2902
2903printf "%s\n" "#define MACHTYPE \"$host_cpu\"" >>confdefs.h
2904
2905
2906printf "%s\n" "#define VENDOR \"$host_vendor\"" >>confdefs.h
2907
2908
2909printf "%s\n" "#define OSTYPE \"$host_os\"" >>confdefs.h
2910
2911
2912test "$program_prefix" != NONE &&
2913  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2914# Use a double $ so make ignores it.
2915test "$program_suffix" != NONE &&
2916  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2917# Double any \ or $.
2918# By default was `s,x,x', remove it if useless.
2919ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2920program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2921
2922
2923# Un-double any \ or $ (doubled by AC_ARG_PROGRAM).
2924cat <<\EOF_SED > conftestsed
2925s,\\\\,\\,g; s,\$\$,$,g
2926EOF_SED
2927zsh_transform_name=`echo "${program_transform_name}" | sed -f conftestsed`
2928rm -f conftestsed
2929tzsh_name=`echo zsh | sed -e "${zsh_transform_name}"`
2930# Double any \ or $ in the transformed name that results.
2931cat <<\EOF_SED >> conftestsed
2932s,\\,\\\\,g; s,\$,$$,g
2933EOF_SED
2934tzsh=`echo ${tzsh_name} | sed -f conftestsed`
2935rm -f conftestsed
2936
2937
2938# Check whether --enable-cppflags was given.
2939if test ${enable_cppflags+y}
2940then :
2941  enableval=$enable_cppflags; if test "$enableval" = "yes"
2942	then CPPFLAGS="$CPPFLAGS"
2943	else CPPFLAGS="$enable_cppflags"
2944	fi
2945fi
2946
2947    # Check whether --enable-cflags was given.
2948if test ${enable_cflags+y}
2949then :
2950  enableval=$enable_cflags; if test "$enableval" = "yes"
2951	then CFLAGS="$CFLAGS"
2952	else CFLAGS="$enable_cflags"
2953	fi
2954fi
2955
2956    # Check whether --enable-ldflags was given.
2957if test ${enable_ldflags+y}
2958then :
2959  enableval=$enable_ldflags; if test "$enableval" = "yes"
2960	then LDFLAGS="$LDFLAGS"
2961	else LDFLAGS="$enable_ldflags"
2962	fi
2963fi
2964
2965    # Check whether --enable-libs was given.
2966if test ${enable_libs+y}
2967then :
2968  enableval=$enable_libs; if test "$enableval" = "yes"
2969	then LIBS="$LIBS"
2970	else LIBS="$enable_libs"
2971	fi
2972fi
2973
2974
2975
2976# Check whether --enable-zsh-debug was given.
2977if test ${enable_zsh_debug+y}
2978then :
2979  enableval=$enable_zsh_debug; if test x$enableval = xyes; then
2980  printf "%s\n" "#define DEBUG 1" >>confdefs.h
2981
2982fi
2983fi
2984
2985
2986
2987# Check whether --enable-zsh-mem was given.
2988if test ${enable_zsh_mem+y}
2989then :
2990  enableval=$enable_zsh_mem; if test x$enableval = xyes; then
2991  printf "%s\n" "#define ZSH_MEM 1" >>confdefs.h
2992
2993fi
2994fi
2995
2996
2997
2998# Check whether --enable-zsh-mem-debug was given.
2999if test ${enable_zsh_mem_debug+y}
3000then :
3001  enableval=$enable_zsh_mem_debug; if test x$enableval = xyes; then
3002  printf "%s\n" "#define ZSH_MEM_DEBUG 1" >>confdefs.h
3003
3004fi
3005fi
3006
3007
3008
3009# Check whether --enable-zsh-mem-warning was given.
3010if test ${enable_zsh_mem_warning+y}
3011then :
3012  enableval=$enable_zsh_mem_warning; if test x$enableval = xyes; then
3013  printf "%s\n" "#define ZSH_MEM_WARNING 1" >>confdefs.h
3014
3015fi
3016fi
3017
3018
3019
3020# Check whether --enable-zsh-secure-free was given.
3021if test ${enable_zsh_secure_free+y}
3022then :
3023  enableval=$enable_zsh_secure_free; if test x$enableval = xyes; then
3024  printf "%s\n" "#define ZSH_SECURE_FREE 1" >>confdefs.h
3025
3026fi
3027fi
3028
3029
3030
3031# Check whether --enable-zsh-heap-debug was given.
3032if test ${enable_zsh_heap_debug+y}
3033then :
3034  enableval=$enable_zsh_heap_debug; if test x$enableval = xyes; then
3035  printf "%s\n" "#define ZSH_HEAP_DEBUG 1" >>confdefs.h
3036
3037fi
3038fi
3039
3040
3041
3042# Check whether --enable-zsh-valgrind was given.
3043if test ${enable_zsh_valgrind+y}
3044then :
3045  enableval=$enable_zsh_valgrind; if test x$enableval = xyes;  then
3046  printf "%s\n" "#define ZSH_VALGRIND 1" >>confdefs.h
3047
3048fi
3049fi
3050
3051
3052
3053# Check whether --enable-zsh-hash-debug was given.
3054if test ${enable_zsh_hash_debug+y}
3055then :
3056  enableval=$enable_zsh_hash_debug; if test x$enableval = xyes; then
3057  printf "%s\n" "#define ZSH_HASH_DEBUG 1" >>confdefs.h
3058
3059fi
3060fi
3061
3062
3063
3064# Check whether --enable-stack-allocation was given.
3065if test ${enable_stack_allocation+y}
3066then :
3067  enableval=$enable_stack_allocation; if test x$enableval = xyes; then
3068  printf "%s\n" "#define USE_STACK_ALLOCATION 1" >>confdefs.h
3069
3070fi
3071fi
3072
3073
3074# Check whether --enable-etcdir was given.
3075if test ${enable_etcdir+y}
3076then :
3077  enableval=$enable_etcdir; etcdir="$enableval"
3078else $as_nop
3079  etcdir=/etc
3080fi
3081
3082
3083# Check whether --enable-zshenv was given.
3084if test ${enable_zshenv+y}
3085then :
3086  enableval=$enable_zshenv; zshenv="$enableval"
3087else $as_nop
3088  if test "x$etcdir" = xno; then
3089  zshenv=no
3090else
3091  zshenv="$etcdir/zshenv"
3092fi
3093fi
3094
3095
3096if test "x$zshenv" != xno; then
3097  printf "%s\n" "#define GLOBAL_ZSHENV \"$zshenv\"" >>confdefs.h
3098
3099fi
3100
3101# Check whether --enable-zshrc was given.
3102if test ${enable_zshrc+y}
3103then :
3104  enableval=$enable_zshrc; zshrc="$enableval"
3105else $as_nop
3106  if test "x$etcdir" = xno; then
3107  zshrc=no
3108else
3109  zshrc="$etcdir/zshrc"
3110fi
3111fi
3112
3113
3114if test "x$zshrc" != xno; then
3115  printf "%s\n" "#define GLOBAL_ZSHRC \"$zshrc\"" >>confdefs.h
3116
3117fi
3118
3119# Check whether --enable-zprofile was given.
3120if test ${enable_zprofile+y}
3121then :
3122  enableval=$enable_zprofile; zprofile="$enableval"
3123else $as_nop
3124  if test "x$etcdir" = xno; then
3125  zprofile=no
3126else
3127  zprofile="$etcdir/zprofile"
3128fi
3129fi
3130
3131
3132if test "x$zprofile" != xno; then
3133  printf "%s\n" "#define GLOBAL_ZPROFILE \"$zprofile\"" >>confdefs.h
3134
3135fi
3136
3137# Check whether --enable-zlogin was given.
3138if test ${enable_zlogin+y}
3139then :
3140  enableval=$enable_zlogin; zlogin="$enableval"
3141else $as_nop
3142  if test "x$etcdir" = xno; then
3143  zlogin=no
3144else
3145  zlogin="$etcdir/zlogin"
3146fi
3147fi
3148
3149
3150if test "x$zlogin" != xno; then
3151  printf "%s\n" "#define GLOBAL_ZLOGIN \"$zlogin\"" >>confdefs.h
3152
3153fi
3154
3155# Check whether --enable-zlogout was given.
3156if test ${enable_zlogout+y}
3157then :
3158  enableval=$enable_zlogout; zlogout="$enableval"
3159else $as_nop
3160  if test "x$etcdir" = xno; then
3161  zlogout=no
3162else
3163  zlogout="$etcdir/zlogout"
3164fi
3165fi
3166
3167
3168if test "x$zlogout" != xno; then
3169  printf "%s\n" "#define GLOBAL_ZLOGOUT \"$zlogout\"" >>confdefs.h
3170
3171fi
3172
3173
3174# Check whether --enable-dynamic was given.
3175if test ${enable_dynamic+y}
3176then :
3177  enableval=$enable_dynamic; dynamic="$enableval"
3178else $as_nop
3179  dynamic=yes
3180fi
3181
3182
3183
3184# Check whether --enable-restricted-r was given.
3185if test ${enable_restricted_r+y}
3186then :
3187  enableval=$enable_restricted_r; if test x$enableval = xyes; then
3188  printf "%s\n" "#define RESTRICTED_R 1" >>confdefs.h
3189
3190fi
3191else $as_nop
3192  printf "%s\n" "#define RESTRICTED_R 1" >>confdefs.h
3193
3194
3195fi
3196
3197
3198
3199# Check whether --enable-locale was given.
3200if test ${enable_locale+y}
3201then :
3202  enableval=$enable_locale; if test x$enableval = xyes; then
3203  printf "%s\n" "#define CONFIG_LOCALE 1" >>confdefs.h
3204
3205fi
3206else $as_nop
3207  printf "%s\n" "#define CONFIG_LOCALE 1" >>confdefs.h
3208
3209
3210fi
3211
3212
3213# Check whether --enable-ansi2knr was given.
3214if test ${enable_ansi2knr+y}
3215then :
3216  enableval=$enable_ansi2knr; ansi2knr="$enableval"
3217else $as_nop
3218  ansi2knr=default
3219fi
3220
3221
3222# Check whether --enable-runhelpdir was given.
3223if test ${enable_runhelpdir+y}
3224then :
3225  enableval=$enable_runhelpdir; if test x"$enableval" = xno; then
3226  runhelpdir=
3227else
3228  runhelpdir="$enableval"
3229fi
3230else $as_nop
3231  runhelpdir=yes
3232fi
3233
3234if test x"$runhelpdir" = xyes; then
3235  runhelpdir=${datadir}/${tzsh_name}/'${VERSION}'/help
3236fi
3237if test x"$runhelpdir" = x; then
3238  runhelp=
3239else
3240  runhelp=runhelp
3241fi
3242
3243# Check whether --enable-fndir was given.
3244if test ${enable_fndir+y}
3245then :
3246  enableval=$enable_fndir; if test x$enableval = xyes; then
3247  fndir=${datadir}/${tzsh_name}/'${VERSION}'/functions
3248else
3249  fndir="$enableval"
3250fi
3251else $as_nop
3252  fndir=${datadir}/${tzsh_name}/'${VERSION}'/functions
3253fi
3254
3255
3256# Check whether --enable-site-fndir was given.
3257if test ${enable_site_fndir+y}
3258then :
3259  enableval=$enable_site_fndir; if test x$enableval = xyes; then
3260  sitefndir=${datadir}/${tzsh_name}/site-functions
3261else
3262  sitefndir="$enableval"
3263fi
3264else $as_nop
3265  sitefndir=${datadir}/${tzsh_name}/site-functions
3266fi
3267
3268
3269if test X$sitefndir = X/usr/local/share/zsh/site-functions || \
3270   test X$sitefndir = Xno
3271then fixed_sitefndir=''
3272elif test X$prefix != X/usr/local; then
3273  if test X$prefix = XNONE && test X$ac_default_prefix = X/usr/local; then
3274    if test X$tzsh_name != Xzsh
3275    then fixed_sitefndir=/usr/local/share/zsh/site-functions
3276    else fixed_sitefndir=''
3277    fi
3278  else fixed_sitefndir=/usr/local/share/zsh/site-functions
3279  fi
3280elif test X$tzsh_name != Xzsh
3281then fixed_sitefndir=/usr/local/share/zsh/site-functions
3282else fixed_sitefndir=''
3283fi
3284
3285
3286# Check whether --enable-function-subdirs was given.
3287if test ${enable_function_subdirs+y}
3288then :
3289  enableval=$enable_function_subdirs;
3290fi
3291
3292
3293if test "x${enable_function_subdirs}" != x &&
3294  test "x${enable_function_subdirs}" != xno; then
3295  FUNCTIONS_SUBDIRS=yes
3296else
3297  FUNCTIONS_SUBDIRS=no
3298fi
3299
3300# Check whether --enable-additional-fpath was given.
3301if test ${enable_additional_fpath+y}
3302then :
3303  enableval=$enable_additional_fpath; if test x$enableval = xyes; then
3304  additionalfpath=""
3305else
3306  additionalfpath="${enableval}"
3307fi
3308else $as_nop
3309  additionalfpath=""
3310fi
3311
3312
3313
3314
3315# Check whether --enable-scriptdir was given.
3316if test ${enable_scriptdir+y}
3317then :
3318  enableval=$enable_scriptdir; if test x$enableval = xyes; then
3319  scriptdir=${datadir}/${tzsh_name}/'${VERSION}'/scripts
3320else
3321  scriptdir="$enableval"
3322fi
3323else $as_nop
3324  scriptdir=${datadir}/${tzsh_name}/'${VERSION}'/scripts
3325fi
3326
3327
3328# Check whether --enable-site-scriptdir was given.
3329if test ${enable_site_scriptdir+y}
3330then :
3331  enableval=$enable_site_scriptdir; if test x$enableval = xyes; then
3332  sitescriptdir=${datadir}/${tzsh_name}/scripts
3333else
3334  sitescriptdir="$enableval"
3335fi
3336else $as_nop
3337  sitescriptdir=${datadir}/${tzsh_name}/scripts
3338fi
3339
3340
3341
3342if test x$htmldir = x'${docdir}' || test x$htmldir = x; then
3343  htmldir='$(datadir)/$(tzsh)/htmldoc'
3344fi
3345
3346
3347# Check whether --enable-custom-patchlevel was given.
3348if test ${enable_custom_patchlevel+y}
3349then :
3350  enableval=$enable_custom_patchlevel; if test x$enableval != x && test x$enableval != xno; then
3351  printf "%s\n" "#define CUSTOM_PATCHLEVEL \"$enableval\"" >>confdefs.h
3352
3353fi
3354fi
3355
3356
3357
3358# Check whether --enable-maildir-support was given.
3359if test ${enable_maildir_support+y}
3360then :
3361  enableval=$enable_maildir_support; if test x$enableval = xyes; then
3362  printf "%s\n" "#define MAILDIR_SUPPORT 1" >>confdefs.h
3363
3364fi
3365fi
3366
3367
3368
3369# Check whether --enable-max-function-depth was given.
3370if test ${enable_max_function_depth+y}
3371then :
3372  enableval=$enable_max_function_depth; if test x$enableval = xyes; then
3373  printf "%s\n" "#define MAX_FUNCTION_DEPTH 500" >>confdefs.h
3374
3375elif test x$enableval != xno; then
3376  printf "%s\n" "#define MAX_FUNCTION_DEPTH $enableval" >>confdefs.h
3377
3378fi
3379else $as_nop
3380  printf "%s\n" "#define MAX_FUNCTION_DEPTH 500" >>confdefs.h
3381
3382
3383fi
3384
3385
3386
3387# Check whether --enable-readnullcmd was given.
3388if test ${enable_readnullcmd+y}
3389then :
3390  enableval=$enable_readnullcmd; if test x$enableval = xyes; then
3391  printf "%s\n" "#define DEFAULT_READNULLCMD \"more\"" >>confdefs.h
3392
3393elif test x$enableval != xno; then
3394  printf "%s\n" "#define DEFAULT_READNULLCMD \"$enableval\"" >>confdefs.h
3395
3396fi
3397else $as_nop
3398  printf "%s\n" "#define DEFAULT_READNULLCMD \"more\"" >>confdefs.h
3399
3400
3401fi
3402
3403
3404# Check whether --enable-pcre was given.
3405if test ${enable_pcre+y}
3406then :
3407  enableval=$enable_pcre;
3408fi
3409
3410
3411# Check whether --enable-cap was given.
3412if test ${enable_cap+y}
3413then :
3414  enableval=$enable_cap;
3415fi
3416
3417
3418# Check whether --enable-gdbm was given.
3419if test ${enable_gdbm+y}
3420then :
3421  enableval=$enable_gdbm; gdbm="$enableval"
3422else $as_nop
3423  gdbm=yes
3424fi
3425
3426
3427test -z "${CFLAGS+set}"  && CFLAGS=  auto_cflags=1
3428test -z "${LDFLAGS+set}" && LDFLAGS= auto_ldflags=1
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439ac_ext=c
3440ac_cpp='$CPP $CPPFLAGS'
3441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444if test -n "$ac_tool_prefix"; then
3445  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3446set dummy ${ac_tool_prefix}gcc; ac_word=$2
3447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448printf %s "checking for $ac_word... " >&6; }
3449if test ${ac_cv_prog_CC+y}
3450then :
3451  printf %s "(cached) " >&6
3452else $as_nop
3453  if test -n "$CC"; then
3454  ac_cv_prog_CC="$CC" # Let the user override the test.
3455else
3456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457for as_dir in $PATH
3458do
3459  IFS=$as_save_IFS
3460  case $as_dir in #(((
3461    '') as_dir=./ ;;
3462    */) ;;
3463    *) as_dir=$as_dir/ ;;
3464  esac
3465    for ac_exec_ext in '' $ac_executable_extensions; do
3466  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3467    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3468    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3469    break 2
3470  fi
3471done
3472  done
3473IFS=$as_save_IFS
3474
3475fi
3476fi
3477CC=$ac_cv_prog_CC
3478if test -n "$CC"; then
3479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480printf "%s\n" "$CC" >&6; }
3481else
3482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483printf "%s\n" "no" >&6; }
3484fi
3485
3486
3487fi
3488if test -z "$ac_cv_prog_CC"; then
3489  ac_ct_CC=$CC
3490  # Extract the first word of "gcc", so it can be a program name with args.
3491set dummy gcc; ac_word=$2
3492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493printf %s "checking for $ac_word... " >&6; }
3494if test ${ac_cv_prog_ac_ct_CC+y}
3495then :
3496  printf %s "(cached) " >&6
3497else $as_nop
3498  if test -n "$ac_ct_CC"; then
3499  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3500else
3501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH
3503do
3504  IFS=$as_save_IFS
3505  case $as_dir in #(((
3506    '') as_dir=./ ;;
3507    */) ;;
3508    *) as_dir=$as_dir/ ;;
3509  esac
3510    for ac_exec_ext in '' $ac_executable_extensions; do
3511  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3512    ac_cv_prog_ac_ct_CC="gcc"
3513    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3514    break 2
3515  fi
3516done
3517  done
3518IFS=$as_save_IFS
3519
3520fi
3521fi
3522ac_ct_CC=$ac_cv_prog_ac_ct_CC
3523if test -n "$ac_ct_CC"; then
3524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3525printf "%s\n" "$ac_ct_CC" >&6; }
3526else
3527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528printf "%s\n" "no" >&6; }
3529fi
3530
3531  if test "x$ac_ct_CC" = x; then
3532    CC=""
3533  else
3534    case $cross_compiling:$ac_tool_warned in
3535yes:)
3536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3537printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3538ac_tool_warned=yes ;;
3539esac
3540    CC=$ac_ct_CC
3541  fi
3542else
3543  CC="$ac_cv_prog_CC"
3544fi
3545
3546if test -z "$CC"; then
3547          if test -n "$ac_tool_prefix"; then
3548    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3549set dummy ${ac_tool_prefix}cc; ac_word=$2
3550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551printf %s "checking for $ac_word... " >&6; }
3552if test ${ac_cv_prog_CC+y}
3553then :
3554  printf %s "(cached) " >&6
3555else $as_nop
3556  if test -n "$CC"; then
3557  ac_cv_prog_CC="$CC" # Let the user override the test.
3558else
3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560for as_dir in $PATH
3561do
3562  IFS=$as_save_IFS
3563  case $as_dir in #(((
3564    '') as_dir=./ ;;
3565    */) ;;
3566    *) as_dir=$as_dir/ ;;
3567  esac
3568    for ac_exec_ext in '' $ac_executable_extensions; do
3569  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3570    ac_cv_prog_CC="${ac_tool_prefix}cc"
3571    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3572    break 2
3573  fi
3574done
3575  done
3576IFS=$as_save_IFS
3577
3578fi
3579fi
3580CC=$ac_cv_prog_CC
3581if test -n "$CC"; then
3582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3583printf "%s\n" "$CC" >&6; }
3584else
3585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586printf "%s\n" "no" >&6; }
3587fi
3588
3589
3590  fi
3591fi
3592if test -z "$CC"; then
3593  # Extract the first word of "cc", so it can be a program name with args.
3594set dummy cc; ac_word=$2
3595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596printf %s "checking for $ac_word... " >&6; }
3597if test ${ac_cv_prog_CC+y}
3598then :
3599  printf %s "(cached) " >&6
3600else $as_nop
3601  if test -n "$CC"; then
3602  ac_cv_prog_CC="$CC" # Let the user override the test.
3603else
3604  ac_prog_rejected=no
3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606for as_dir in $PATH
3607do
3608  IFS=$as_save_IFS
3609  case $as_dir in #(((
3610    '') as_dir=./ ;;
3611    */) ;;
3612    *) as_dir=$as_dir/ ;;
3613  esac
3614    for ac_exec_ext in '' $ac_executable_extensions; do
3615  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3616    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3617       ac_prog_rejected=yes
3618       continue
3619     fi
3620    ac_cv_prog_CC="cc"
3621    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3622    break 2
3623  fi
3624done
3625  done
3626IFS=$as_save_IFS
3627
3628if test $ac_prog_rejected = yes; then
3629  # We found a bogon in the path, so make sure we never use it.
3630  set dummy $ac_cv_prog_CC
3631  shift
3632  if test $# != 0; then
3633    # We chose a different compiler from the bogus one.
3634    # However, it has the same basename, so the bogon will be chosen
3635    # first if we set CC to just the basename; use the full file name.
3636    shift
3637    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3638  fi
3639fi
3640fi
3641fi
3642CC=$ac_cv_prog_CC
3643if test -n "$CC"; then
3644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3645printf "%s\n" "$CC" >&6; }
3646else
3647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648printf "%s\n" "no" >&6; }
3649fi
3650
3651
3652fi
3653if test -z "$CC"; then
3654  if test -n "$ac_tool_prefix"; then
3655  for ac_prog in cl.exe
3656  do
3657    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3658set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660printf %s "checking for $ac_word... " >&6; }
3661if test ${ac_cv_prog_CC+y}
3662then :
3663  printf %s "(cached) " >&6
3664else $as_nop
3665  if test -n "$CC"; then
3666  ac_cv_prog_CC="$CC" # Let the user override the test.
3667else
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671  IFS=$as_save_IFS
3672  case $as_dir in #(((
3673    '') as_dir=./ ;;
3674    */) ;;
3675    *) as_dir=$as_dir/ ;;
3676  esac
3677    for ac_exec_ext in '' $ac_executable_extensions; do
3678  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3679    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3680    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3681    break 2
3682  fi
3683done
3684  done
3685IFS=$as_save_IFS
3686
3687fi
3688fi
3689CC=$ac_cv_prog_CC
3690if test -n "$CC"; then
3691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3692printf "%s\n" "$CC" >&6; }
3693else
3694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695printf "%s\n" "no" >&6; }
3696fi
3697
3698
3699    test -n "$CC" && break
3700  done
3701fi
3702if test -z "$CC"; then
3703  ac_ct_CC=$CC
3704  for ac_prog in cl.exe
3705do
3706  # Extract the first word of "$ac_prog", so it can be a program name with args.
3707set dummy $ac_prog; ac_word=$2
3708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709printf %s "checking for $ac_word... " >&6; }
3710if test ${ac_cv_prog_ac_ct_CC+y}
3711then :
3712  printf %s "(cached) " >&6
3713else $as_nop
3714  if test -n "$ac_ct_CC"; then
3715  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3716else
3717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718for as_dir in $PATH
3719do
3720  IFS=$as_save_IFS
3721  case $as_dir in #(((
3722    '') as_dir=./ ;;
3723    */) ;;
3724    *) as_dir=$as_dir/ ;;
3725  esac
3726    for ac_exec_ext in '' $ac_executable_extensions; do
3727  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3728    ac_cv_prog_ac_ct_CC="$ac_prog"
3729    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3730    break 2
3731  fi
3732done
3733  done
3734IFS=$as_save_IFS
3735
3736fi
3737fi
3738ac_ct_CC=$ac_cv_prog_ac_ct_CC
3739if test -n "$ac_ct_CC"; then
3740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3741printf "%s\n" "$ac_ct_CC" >&6; }
3742else
3743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744printf "%s\n" "no" >&6; }
3745fi
3746
3747
3748  test -n "$ac_ct_CC" && break
3749done
3750
3751  if test "x$ac_ct_CC" = x; then
3752    CC=""
3753  else
3754    case $cross_compiling:$ac_tool_warned in
3755yes:)
3756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3757printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3758ac_tool_warned=yes ;;
3759esac
3760    CC=$ac_ct_CC
3761  fi
3762fi
3763
3764fi
3765if test -z "$CC"; then
3766  if test -n "$ac_tool_prefix"; then
3767  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3768set dummy ${ac_tool_prefix}clang; ac_word=$2
3769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770printf %s "checking for $ac_word... " >&6; }
3771if test ${ac_cv_prog_CC+y}
3772then :
3773  printf %s "(cached) " >&6
3774else $as_nop
3775  if test -n "$CC"; then
3776  ac_cv_prog_CC="$CC" # Let the user override the test.
3777else
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781  IFS=$as_save_IFS
3782  case $as_dir in #(((
3783    '') as_dir=./ ;;
3784    */) ;;
3785    *) as_dir=$as_dir/ ;;
3786  esac
3787    for ac_exec_ext in '' $ac_executable_extensions; do
3788  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3789    ac_cv_prog_CC="${ac_tool_prefix}clang"
3790    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3791    break 2
3792  fi
3793done
3794  done
3795IFS=$as_save_IFS
3796
3797fi
3798fi
3799CC=$ac_cv_prog_CC
3800if test -n "$CC"; then
3801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3802printf "%s\n" "$CC" >&6; }
3803else
3804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805printf "%s\n" "no" >&6; }
3806fi
3807
3808
3809fi
3810if test -z "$ac_cv_prog_CC"; then
3811  ac_ct_CC=$CC
3812  # Extract the first word of "clang", so it can be a program name with args.
3813set dummy clang; ac_word=$2
3814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815printf %s "checking for $ac_word... " >&6; }
3816if test ${ac_cv_prog_ac_ct_CC+y}
3817then :
3818  printf %s "(cached) " >&6
3819else $as_nop
3820  if test -n "$ac_ct_CC"; then
3821  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3822else
3823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH
3825do
3826  IFS=$as_save_IFS
3827  case $as_dir in #(((
3828    '') as_dir=./ ;;
3829    */) ;;
3830    *) as_dir=$as_dir/ ;;
3831  esac
3832    for ac_exec_ext in '' $ac_executable_extensions; do
3833  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3834    ac_cv_prog_ac_ct_CC="clang"
3835    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3836    break 2
3837  fi
3838done
3839  done
3840IFS=$as_save_IFS
3841
3842fi
3843fi
3844ac_ct_CC=$ac_cv_prog_ac_ct_CC
3845if test -n "$ac_ct_CC"; then
3846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3847printf "%s\n" "$ac_ct_CC" >&6; }
3848else
3849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850printf "%s\n" "no" >&6; }
3851fi
3852
3853  if test "x$ac_ct_CC" = x; then
3854    CC=""
3855  else
3856    case $cross_compiling:$ac_tool_warned in
3857yes:)
3858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3859printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3860ac_tool_warned=yes ;;
3861esac
3862    CC=$ac_ct_CC
3863  fi
3864else
3865  CC="$ac_cv_prog_CC"
3866fi
3867
3868fi
3869
3870
3871test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3873as_fn_error $? "no acceptable C compiler found in \$PATH
3874See \`config.log' for more details" "$LINENO" 5; }
3875
3876# Provide some information about the compiler.
3877printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3878set X $ac_compile
3879ac_compiler=$2
3880for ac_option in --version -v -V -qversion -version; do
3881  { { ac_try="$ac_compiler $ac_option >&5"
3882case "(($ac_try" in
3883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884  *) ac_try_echo=$ac_try;;
3885esac
3886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887printf "%s\n" "$ac_try_echo"; } >&5
3888  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3889  ac_status=$?
3890  if test -s conftest.err; then
3891    sed '10a\
3892... rest of stderr output deleted ...
3893         10q' conftest.err >conftest.er1
3894    cat conftest.er1 >&5
3895  fi
3896  rm -f conftest.er1 conftest.err
3897  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898  test $ac_status = 0; }
3899done
3900
3901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902/* end confdefs.h.  */
3903
3904int
3905main (void)
3906{
3907
3908  ;
3909  return 0;
3910}
3911_ACEOF
3912ac_clean_files_save=$ac_clean_files
3913ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3914# Try to create an executable without -o first, disregard a.out.
3915# It will help us diagnose broken compilers, and finding out an intuition
3916# of exeext.
3917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3918printf %s "checking whether the C compiler works... " >&6; }
3919ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3920
3921# The possible output files:
3922ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3923
3924ac_rmfiles=
3925for ac_file in $ac_files
3926do
3927  case $ac_file in
3928    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3929    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3930  esac
3931done
3932rm -f $ac_rmfiles
3933
3934if { { ac_try="$ac_link_default"
3935case "(($ac_try" in
3936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937  *) ac_try_echo=$ac_try;;
3938esac
3939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940printf "%s\n" "$ac_try_echo"; } >&5
3941  (eval "$ac_link_default") 2>&5
3942  ac_status=$?
3943  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944  test $ac_status = 0; }
3945then :
3946  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3947# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3948# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3949# so that the user can short-circuit this test for compilers unknown to
3950# Autoconf.
3951for ac_file in $ac_files ''
3952do
3953  test -f "$ac_file" || continue
3954  case $ac_file in
3955    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3956	;;
3957    [ab].out )
3958	# We found the default executable, but exeext='' is most
3959	# certainly right.
3960	break;;
3961    *.* )
3962	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3963	then :; else
3964	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3965	fi
3966	# We set ac_cv_exeext here because the later test for it is not
3967	# safe: cross compilers may not add the suffix if given an `-o'
3968	# argument, so we may need to know it at that point already.
3969	# Even if this section looks crufty: it has the advantage of
3970	# actually working.
3971	break;;
3972    * )
3973	break;;
3974  esac
3975done
3976test "$ac_cv_exeext" = no && ac_cv_exeext=
3977
3978else $as_nop
3979  ac_file=''
3980fi
3981if test -z "$ac_file"
3982then :
3983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984printf "%s\n" "no" >&6; }
3985printf "%s\n" "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3990as_fn_error 77 "C compiler cannot create executables
3991See \`config.log' for more details" "$LINENO" 5; }
3992else $as_nop
3993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3994printf "%s\n" "yes" >&6; }
3995fi
3996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3997printf %s "checking for C compiler default output file name... " >&6; }
3998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3999printf "%s\n" "$ac_file" >&6; }
4000ac_exeext=$ac_cv_exeext
4001
4002rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4003ac_clean_files=$ac_clean_files_save
4004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4005printf %s "checking for suffix of executables... " >&6; }
4006if { { ac_try="$ac_link"
4007case "(($ac_try" in
4008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009  *) ac_try_echo=$ac_try;;
4010esac
4011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012printf "%s\n" "$ac_try_echo"; } >&5
4013  (eval "$ac_link") 2>&5
4014  ac_status=$?
4015  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016  test $ac_status = 0; }
4017then :
4018  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4019# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4020# work properly (i.e., refer to `conftest.exe'), while it won't with
4021# `rm'.
4022for ac_file in conftest.exe conftest conftest.*; do
4023  test -f "$ac_file" || continue
4024  case $ac_file in
4025    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4026    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4027	  break;;
4028    * ) break;;
4029  esac
4030done
4031else $as_nop
4032  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4034as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4035See \`config.log' for more details" "$LINENO" 5; }
4036fi
4037rm -f conftest conftest$ac_cv_exeext
4038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4039printf "%s\n" "$ac_cv_exeext" >&6; }
4040
4041rm -f conftest.$ac_ext
4042EXEEXT=$ac_cv_exeext
4043ac_exeext=$EXEEXT
4044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h.  */
4046#include <stdio.h>
4047int
4048main (void)
4049{
4050FILE *f = fopen ("conftest.out", "w");
4051 return ferror (f) || fclose (f) != 0;
4052
4053  ;
4054  return 0;
4055}
4056_ACEOF
4057ac_clean_files="$ac_clean_files conftest.out"
4058# Check that the compiler produces executables we can run.  If not, either
4059# the compiler is broken, or we cross compile.
4060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4061printf %s "checking whether we are cross compiling... " >&6; }
4062if test "$cross_compiling" != yes; then
4063  { { ac_try="$ac_link"
4064case "(($ac_try" in
4065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066  *) ac_try_echo=$ac_try;;
4067esac
4068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069printf "%s\n" "$ac_try_echo"; } >&5
4070  (eval "$ac_link") 2>&5
4071  ac_status=$?
4072  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073  test $ac_status = 0; }
4074  if { ac_try='./conftest$ac_cv_exeext'
4075  { { case "(($ac_try" in
4076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077  *) ac_try_echo=$ac_try;;
4078esac
4079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080printf "%s\n" "$ac_try_echo"; } >&5
4081  (eval "$ac_try") 2>&5
4082  ac_status=$?
4083  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084  test $ac_status = 0; }; }; then
4085    cross_compiling=no
4086  else
4087    if test "$cross_compiling" = maybe; then
4088	cross_compiling=yes
4089    else
4090	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4092as_fn_error 77 "cannot run C compiled programs.
4093If you meant to cross compile, use \`--host'.
4094See \`config.log' for more details" "$LINENO" 5; }
4095    fi
4096  fi
4097fi
4098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4099printf "%s\n" "$cross_compiling" >&6; }
4100
4101rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4102ac_clean_files=$ac_clean_files_save
4103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4104printf %s "checking for suffix of object files... " >&6; }
4105if test ${ac_cv_objext+y}
4106then :
4107  printf %s "(cached) " >&6
4108else $as_nop
4109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110/* end confdefs.h.  */
4111
4112int
4113main (void)
4114{
4115
4116  ;
4117  return 0;
4118}
4119_ACEOF
4120rm -f conftest.o conftest.obj
4121if { { ac_try="$ac_compile"
4122case "(($ac_try" in
4123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124  *) ac_try_echo=$ac_try;;
4125esac
4126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4127printf "%s\n" "$ac_try_echo"; } >&5
4128  (eval "$ac_compile") 2>&5
4129  ac_status=$?
4130  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131  test $ac_status = 0; }
4132then :
4133  for ac_file in conftest.o conftest.obj conftest.*; do
4134  test -f "$ac_file" || continue;
4135  case $ac_file in
4136    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4137    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4138       break;;
4139  esac
4140done
4141else $as_nop
4142  printf "%s\n" "$as_me: failed program was:" >&5
4143sed 's/^/| /' conftest.$ac_ext >&5
4144
4145{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4147as_fn_error $? "cannot compute suffix of object files: cannot compile
4148See \`config.log' for more details" "$LINENO" 5; }
4149fi
4150rm -f conftest.$ac_cv_objext conftest.$ac_ext
4151fi
4152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4153printf "%s\n" "$ac_cv_objext" >&6; }
4154OBJEXT=$ac_cv_objext
4155ac_objext=$OBJEXT
4156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4157printf %s "checking whether the compiler supports GNU C... " >&6; }
4158if test ${ac_cv_c_compiler_gnu+y}
4159then :
4160  printf %s "(cached) " >&6
4161else $as_nop
4162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163/* end confdefs.h.  */
4164
4165int
4166main (void)
4167{
4168#ifndef __GNUC__
4169       choke me
4170#endif
4171
4172  ;
4173  return 0;
4174}
4175_ACEOF
4176if ac_fn_c_try_compile "$LINENO"
4177then :
4178  ac_compiler_gnu=yes
4179else $as_nop
4180  ac_compiler_gnu=no
4181fi
4182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4183ac_cv_c_compiler_gnu=$ac_compiler_gnu
4184
4185fi
4186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4187printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4188ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
4190if test $ac_compiler_gnu = yes; then
4191  GCC=yes
4192else
4193  GCC=
4194fi
4195ac_test_CFLAGS=${CFLAGS+y}
4196ac_save_CFLAGS=$CFLAGS
4197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4198printf %s "checking whether $CC accepts -g... " >&6; }
4199if test ${ac_cv_prog_cc_g+y}
4200then :
4201  printf %s "(cached) " >&6
4202else $as_nop
4203  ac_save_c_werror_flag=$ac_c_werror_flag
4204   ac_c_werror_flag=yes
4205   ac_cv_prog_cc_g=no
4206   CFLAGS="-g"
4207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208/* end confdefs.h.  */
4209
4210int
4211main (void)
4212{
4213
4214  ;
4215  return 0;
4216}
4217_ACEOF
4218if ac_fn_c_try_compile "$LINENO"
4219then :
4220  ac_cv_prog_cc_g=yes
4221else $as_nop
4222  CFLAGS=""
4223      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h.  */
4225
4226int
4227main (void)
4228{
4229
4230  ;
4231  return 0;
4232}
4233_ACEOF
4234if ac_fn_c_try_compile "$LINENO"
4235then :
4236
4237else $as_nop
4238  ac_c_werror_flag=$ac_save_c_werror_flag
4239	 CFLAGS="-g"
4240	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h.  */
4242
4243int
4244main (void)
4245{
4246
4247  ;
4248  return 0;
4249}
4250_ACEOF
4251if ac_fn_c_try_compile "$LINENO"
4252then :
4253  ac_cv_prog_cc_g=yes
4254fi
4255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4256fi
4257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4258fi
4259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4260   ac_c_werror_flag=$ac_save_c_werror_flag
4261fi
4262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4263printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4264if test $ac_test_CFLAGS; then
4265  CFLAGS=$ac_save_CFLAGS
4266elif test $ac_cv_prog_cc_g = yes; then
4267  if test "$GCC" = yes; then
4268    CFLAGS="-g -O2"
4269  else
4270    CFLAGS="-g"
4271  fi
4272else
4273  if test "$GCC" = yes; then
4274    CFLAGS="-O2"
4275  else
4276    CFLAGS=
4277  fi
4278fi
4279ac_prog_cc_stdc=no
4280if test x$ac_prog_cc_stdc = xno
4281then :
4282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4283printf %s "checking for $CC option to enable C11 features... " >&6; }
4284if test ${ac_cv_prog_cc_c11+y}
4285then :
4286  printf %s "(cached) " >&6
4287else $as_nop
4288  ac_cv_prog_cc_c11=no
4289ac_save_CC=$CC
4290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291/* end confdefs.h.  */
4292$ac_c_conftest_c11_program
4293_ACEOF
4294for ac_arg in '' -std=gnu11
4295do
4296  CC="$ac_save_CC $ac_arg"
4297  if ac_fn_c_try_compile "$LINENO"
4298then :
4299  ac_cv_prog_cc_c11=$ac_arg
4300fi
4301rm -f core conftest.err conftest.$ac_objext conftest.beam
4302  test "x$ac_cv_prog_cc_c11" != "xno" && break
4303done
4304rm -f conftest.$ac_ext
4305CC=$ac_save_CC
4306fi
4307
4308if test "x$ac_cv_prog_cc_c11" = xno
4309then :
4310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4311printf "%s\n" "unsupported" >&6; }
4312else $as_nop
4313  if test "x$ac_cv_prog_cc_c11" = x
4314then :
4315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4316printf "%s\n" "none needed" >&6; }
4317else $as_nop
4318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4319printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4320     CC="$CC $ac_cv_prog_cc_c11"
4321fi
4322  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4323  ac_prog_cc_stdc=c11
4324fi
4325fi
4326if test x$ac_prog_cc_stdc = xno
4327then :
4328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4329printf %s "checking for $CC option to enable C99 features... " >&6; }
4330if test ${ac_cv_prog_cc_c99+y}
4331then :
4332  printf %s "(cached) " >&6
4333else $as_nop
4334  ac_cv_prog_cc_c99=no
4335ac_save_CC=$CC
4336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337/* end confdefs.h.  */
4338$ac_c_conftest_c99_program
4339_ACEOF
4340for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4341do
4342  CC="$ac_save_CC $ac_arg"
4343  if ac_fn_c_try_compile "$LINENO"
4344then :
4345  ac_cv_prog_cc_c99=$ac_arg
4346fi
4347rm -f core conftest.err conftest.$ac_objext conftest.beam
4348  test "x$ac_cv_prog_cc_c99" != "xno" && break
4349done
4350rm -f conftest.$ac_ext
4351CC=$ac_save_CC
4352fi
4353
4354if test "x$ac_cv_prog_cc_c99" = xno
4355then :
4356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4357printf "%s\n" "unsupported" >&6; }
4358else $as_nop
4359  if test "x$ac_cv_prog_cc_c99" = x
4360then :
4361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4362printf "%s\n" "none needed" >&6; }
4363else $as_nop
4364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4365printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4366     CC="$CC $ac_cv_prog_cc_c99"
4367fi
4368  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4369  ac_prog_cc_stdc=c99
4370fi
4371fi
4372if test x$ac_prog_cc_stdc = xno
4373then :
4374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4375printf %s "checking for $CC option to enable C89 features... " >&6; }
4376if test ${ac_cv_prog_cc_c89+y}
4377then :
4378  printf %s "(cached) " >&6
4379else $as_nop
4380  ac_cv_prog_cc_c89=no
4381ac_save_CC=$CC
4382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383/* end confdefs.h.  */
4384$ac_c_conftest_c89_program
4385_ACEOF
4386for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4387do
4388  CC="$ac_save_CC $ac_arg"
4389  if ac_fn_c_try_compile "$LINENO"
4390then :
4391  ac_cv_prog_cc_c89=$ac_arg
4392fi
4393rm -f core conftest.err conftest.$ac_objext conftest.beam
4394  test "x$ac_cv_prog_cc_c89" != "xno" && break
4395done
4396rm -f conftest.$ac_ext
4397CC=$ac_save_CC
4398fi
4399
4400if test "x$ac_cv_prog_cc_c89" = xno
4401then :
4402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4403printf "%s\n" "unsupported" >&6; }
4404else $as_nop
4405  if test "x$ac_cv_prog_cc_c89" = x
4406then :
4407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4408printf "%s\n" "none needed" >&6; }
4409else $as_nop
4410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4411printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4412     CC="$CC $ac_cv_prog_cc_c89"
4413fi
4414  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4415  ac_prog_cc_stdc=c89
4416fi
4417fi
4418
4419ac_ext=c
4420ac_cpp='$CPP $CPPFLAGS'
4421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423ac_compiler_gnu=$ac_cv_c_compiler_gnu
4424
4425
4426
4427if test "$host" = mips-sni-sysv4 && test -n "$GCC"; then
4428  :
4429else
4430
4431# Check whether --enable-largefile was given.
4432if test ${enable_largefile+y}
4433then :
4434  enableval=$enable_largefile;
4435fi
4436
4437if test "$enable_largefile" != no; then
4438
4439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4440printf %s "checking for special C compiler options needed for large files... " >&6; }
4441if test ${ac_cv_sys_largefile_CC+y}
4442then :
4443  printf %s "(cached) " >&6
4444else $as_nop
4445  ac_cv_sys_largefile_CC=no
4446     if test "$GCC" != yes; then
4447       ac_save_CC=$CC
4448       while :; do
4449	 # IRIX 6.2 and later do not support large files by default,
4450	 # so use the C compiler's -n32 option if that helps.
4451	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452/* end confdefs.h.  */
4453#include <sys/types.h>
4454 /* Check that off_t can represent 2**63 - 1 correctly.
4455    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4456    since some C++ compilers masquerading as C compilers
4457    incorrectly reject 9223372036854775807.  */
4458#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4459  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4460		       && LARGE_OFF_T % 2147483647 == 1)
4461		      ? 1 : -1];
4462int
4463main (void)
4464{
4465
4466  ;
4467  return 0;
4468}
4469_ACEOF
4470	 if ac_fn_c_try_compile "$LINENO"
4471then :
4472  break
4473fi
4474rm -f core conftest.err conftest.$ac_objext conftest.beam
4475	 CC="$CC -n32"
4476	 if ac_fn_c_try_compile "$LINENO"
4477then :
4478  ac_cv_sys_largefile_CC=' -n32'; break
4479fi
4480rm -f core conftest.err conftest.$ac_objext conftest.beam
4481	 break
4482       done
4483       CC=$ac_save_CC
4484       rm -f conftest.$ac_ext
4485    fi
4486fi
4487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4488printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
4489  if test "$ac_cv_sys_largefile_CC" != no; then
4490    CC=$CC$ac_cv_sys_largefile_CC
4491  fi
4492
4493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4494printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4495if test ${ac_cv_sys_file_offset_bits+y}
4496then :
4497  printf %s "(cached) " >&6
4498else $as_nop
4499  while :; do
4500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501/* end confdefs.h.  */
4502#include <sys/types.h>
4503 /* Check that off_t can represent 2**63 - 1 correctly.
4504    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4505    since some C++ compilers masquerading as C compilers
4506    incorrectly reject 9223372036854775807.  */
4507#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4508  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4509		       && LARGE_OFF_T % 2147483647 == 1)
4510		      ? 1 : -1];
4511int
4512main (void)
4513{
4514
4515  ;
4516  return 0;
4517}
4518_ACEOF
4519if ac_fn_c_try_compile "$LINENO"
4520then :
4521  ac_cv_sys_file_offset_bits=no; break
4522fi
4523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525/* end confdefs.h.  */
4526#define _FILE_OFFSET_BITS 64
4527#include <sys/types.h>
4528 /* Check that off_t can represent 2**63 - 1 correctly.
4529    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4530    since some C++ compilers masquerading as C compilers
4531    incorrectly reject 9223372036854775807.  */
4532#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4533  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4534		       && LARGE_OFF_T % 2147483647 == 1)
4535		      ? 1 : -1];
4536int
4537main (void)
4538{
4539
4540  ;
4541  return 0;
4542}
4543_ACEOF
4544if ac_fn_c_try_compile "$LINENO"
4545then :
4546  ac_cv_sys_file_offset_bits=64; break
4547fi
4548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4549  ac_cv_sys_file_offset_bits=unknown
4550  break
4551done
4552fi
4553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4554printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
4555case $ac_cv_sys_file_offset_bits in #(
4556  no | unknown) ;;
4557  *)
4558printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
4559;;
4560esac
4561rm -rf conftest*
4562  if test $ac_cv_sys_file_offset_bits = unknown; then
4563    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4564printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
4565if test ${ac_cv_sys_large_files+y}
4566then :
4567  printf %s "(cached) " >&6
4568else $as_nop
4569  while :; do
4570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571/* end confdefs.h.  */
4572#include <sys/types.h>
4573 /* Check that off_t can represent 2**63 - 1 correctly.
4574    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4575    since some C++ compilers masquerading as C compilers
4576    incorrectly reject 9223372036854775807.  */
4577#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4578  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4579		       && LARGE_OFF_T % 2147483647 == 1)
4580		      ? 1 : -1];
4581int
4582main (void)
4583{
4584
4585  ;
4586  return 0;
4587}
4588_ACEOF
4589if ac_fn_c_try_compile "$LINENO"
4590then :
4591  ac_cv_sys_large_files=no; break
4592fi
4593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595/* end confdefs.h.  */
4596#define _LARGE_FILES 1
4597#include <sys/types.h>
4598 /* Check that off_t can represent 2**63 - 1 correctly.
4599    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4600    since some C++ compilers masquerading as C compilers
4601    incorrectly reject 9223372036854775807.  */
4602#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4603  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4604		       && LARGE_OFF_T % 2147483647 == 1)
4605		      ? 1 : -1];
4606int
4607main (void)
4608{
4609
4610  ;
4611  return 0;
4612}
4613_ACEOF
4614if ac_fn_c_try_compile "$LINENO"
4615then :
4616  ac_cv_sys_large_files=1; break
4617fi
4618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4619  ac_cv_sys_large_files=unknown
4620  break
4621done
4622fi
4623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4624printf "%s\n" "$ac_cv_sys_large_files" >&6; }
4625case $ac_cv_sys_large_files in #(
4626  no | unknown) ;;
4627  *)
4628printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
4629;;
4630esac
4631rm -rf conftest*
4632  fi
4633fi
4634
4635fi
4636
4637if test -n "$auto_cflags" && test ."$ansi2knr" != .yes; then
4638  if test "${enable_zsh_debug}" = yes; then
4639    if test -n "$GCC"; then
4640      CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -ggdb"
4641    else
4642      CFLAGS="$CFLAGS -g"
4643    fi
4644  else
4645    if test -n "$GCC"; then
4646      CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -O2"
4647    else
4648      CFLAGS="$CFLAGS -O"
4649    fi
4650  fi
4651fi
4652if test -n "$auto_ldflags"; then
4653  case "${enable_zsh_debug}$host_os" in
4654    yesaix*|yeshpux*|yesnetbsd*|yesopenbsd*) ;;  # "ld -g" is not valid on these systems
4655    darwin*) LDFLAGS=-Wl,-x ;;
4656    yes*)    LDFLAGS=-g ;;
4657    *)       LDFLAGS=-s ;;
4658  esac
4659fi
4660
4661case "$host_os" in
4662  sco*) CFLAGS="-D__sco $CFLAGS" ;;
4663esac
4664
4665sed=':1
4666     s/ -s / /g
4667     t1
4668     s/^ *//
4669     s/ *$//'
4670
4671case " $LDFLAGS " in
4672  *" -s "*) strip_exeldflags=true strip_libldflags=true
4673    LDFLAGS=`echo " $LDFLAGS " | sed "$sed"` ;;
4674  *) strip_exeldflags=false strip_libldflags=false ;;
4675esac
4676
4677case " ${EXELDFLAGS+$EXELDFLAGS }" in
4678  " ") ;;
4679  *" -s "*) strip_exeldflags=true
4680    EXELDFLAGS=`echo " $EXELDFLAGS " | sed "$sed"` ;;
4681  *) strip_exeldflags=false ;;
4682esac
4683
4684case " ${LIBLDFLAGS+$LIBLDFLAGS }" in
4685  " ") ;;
4686  *" -s "*) strip_libldflags=true
4687    LIBLDFLAGS=`echo " $LIBLDFLAGS " | sed "$sed"` ;;
4688  *) strip_libldflags=false ;;
4689esac
4690
4691
4692ac_ext=c
4693ac_cpp='$CPP $CPPFLAGS'
4694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4698printf %s "checking how to run the C preprocessor... " >&6; }
4699# On Suns, sometimes $CPP names a directory.
4700if test -n "$CPP" && test -d "$CPP"; then
4701  CPP=
4702fi
4703if test -z "$CPP"; then
4704  if test ${ac_cv_prog_CPP+y}
4705then :
4706  printf %s "(cached) " >&6
4707else $as_nop
4708      # Double quotes because $CC needs to be expanded
4709    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4710    do
4711      ac_preproc_ok=false
4712for ac_c_preproc_warn_flag in '' yes
4713do
4714  # Use a header file that comes with gcc, so configuring glibc
4715  # with a fresh cross-compiler works.
4716  # On the NeXT, cc -E runs the code through the compiler's parser,
4717  # not just through cpp. "Syntax error" is here to catch this case.
4718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719/* end confdefs.h.  */
4720#include <limits.h>
4721		     Syntax error
4722_ACEOF
4723if ac_fn_c_try_cpp "$LINENO"
4724then :
4725
4726else $as_nop
4727  # Broken: fails on valid input.
4728continue
4729fi
4730rm -f conftest.err conftest.i conftest.$ac_ext
4731
4732  # OK, works on sane cases.  Now check whether nonexistent headers
4733  # can be detected and how.
4734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735/* end confdefs.h.  */
4736#include <ac_nonexistent.h>
4737_ACEOF
4738if ac_fn_c_try_cpp "$LINENO"
4739then :
4740  # Broken: success on invalid input.
4741continue
4742else $as_nop
4743  # Passes both tests.
4744ac_preproc_ok=:
4745break
4746fi
4747rm -f conftest.err conftest.i conftest.$ac_ext
4748
4749done
4750# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4751rm -f conftest.i conftest.err conftest.$ac_ext
4752if $ac_preproc_ok
4753then :
4754  break
4755fi
4756
4757    done
4758    ac_cv_prog_CPP=$CPP
4759
4760fi
4761  CPP=$ac_cv_prog_CPP
4762else
4763  ac_cv_prog_CPP=$CPP
4764fi
4765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4766printf "%s\n" "$CPP" >&6; }
4767ac_preproc_ok=false
4768for ac_c_preproc_warn_flag in '' yes
4769do
4770  # Use a header file that comes with gcc, so configuring glibc
4771  # with a fresh cross-compiler works.
4772  # On the NeXT, cc -E runs the code through the compiler's parser,
4773  # not just through cpp. "Syntax error" is here to catch this case.
4774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h.  */
4776#include <limits.h>
4777		     Syntax error
4778_ACEOF
4779if ac_fn_c_try_cpp "$LINENO"
4780then :
4781
4782else $as_nop
4783  # Broken: fails on valid input.
4784continue
4785fi
4786rm -f conftest.err conftest.i conftest.$ac_ext
4787
4788  # OK, works on sane cases.  Now check whether nonexistent headers
4789  # can be detected and how.
4790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791/* end confdefs.h.  */
4792#include <ac_nonexistent.h>
4793_ACEOF
4794if ac_fn_c_try_cpp "$LINENO"
4795then :
4796  # Broken: success on invalid input.
4797continue
4798else $as_nop
4799  # Passes both tests.
4800ac_preproc_ok=:
4801break
4802fi
4803rm -f conftest.err conftest.i conftest.$ac_ext
4804
4805done
4806# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4807rm -f conftest.i conftest.err conftest.$ac_ext
4808if $ac_preproc_ok
4809then :
4810
4811else $as_nop
4812  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4813printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4814as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4815See \`config.log' for more details" "$LINENO" 5; }
4816fi
4817
4818ac_ext=c
4819ac_cpp='$CPP $CPPFLAGS'
4820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4824printf %s "checking for an ANSI C-conforming const... " >&6; }
4825if test ${ac_cv_c_const+y}
4826then :
4827  printf %s "(cached) " >&6
4828else $as_nop
4829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830/* end confdefs.h.  */
4831
4832int
4833main (void)
4834{
4835
4836#ifndef __cplusplus
4837  /* Ultrix mips cc rejects this sort of thing.  */
4838  typedef int charset[2];
4839  const charset cs = { 0, 0 };
4840  /* SunOS 4.1.1 cc rejects this.  */
4841  char const *const *pcpcc;
4842  char **ppc;
4843  /* NEC SVR4.0.2 mips cc rejects this.  */
4844  struct point {int x, y;};
4845  static struct point const zero = {0,0};
4846  /* IBM XL C 1.02.0.0 rejects this.
4847     It does not let you subtract one const X* pointer from another in
4848     an arm of an if-expression whose if-part is not a constant
4849     expression */
4850  const char *g = "string";
4851  pcpcc = &g + (g ? g-g : 0);
4852  /* HPUX 7.0 cc rejects these. */
4853  ++pcpcc;
4854  ppc = (char**) pcpcc;
4855  pcpcc = (char const *const *) ppc;
4856  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4857    char tx;
4858    char *t = &tx;
4859    char const *s = 0 ? (char *) 0 : (char const *) 0;
4860
4861    *t++ = 0;
4862    if (s) return 0;
4863  }
4864  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4865    int x[] = {25, 17};
4866    const int *foo = &x[0];
4867    ++foo;
4868  }
4869  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4870    typedef const int *iptr;
4871    iptr p = 0;
4872    ++p;
4873  }
4874  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
4875       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4876    struct s { int j; const int *ap[3]; } bx;
4877    struct s *b = &bx; b->j = 5;
4878  }
4879  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4880    const int foo = 10;
4881    if (!foo) return 0;
4882  }
4883  return !cs[0] && !zero.x;
4884#endif
4885
4886  ;
4887  return 0;
4888}
4889_ACEOF
4890if ac_fn_c_try_compile "$LINENO"
4891then :
4892  ac_cv_c_const=yes
4893else $as_nop
4894  ac_cv_c_const=no
4895fi
4896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4897fi
4898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4899printf "%s\n" "$ac_cv_c_const" >&6; }
4900if test $ac_cv_c_const = no; then
4901
4902printf "%s\n" "#define const /**/" >>confdefs.h
4903
4904fi
4905
4906case "$host_os" in
4907  darwin[0-9].*) CPP="$CPP -traditional-cpp" ;;
4908esac
4909
4910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4911printf %s "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4912if test ${fp_cv_prog_cc_stdc+y}
4913then :
4914  printf %s "(cached) " >&6
4915else $as_nop
4916  fp_cv_prog_cc_stdc=no
4917ac_save_CFLAGS="$CFLAGS"
4918# Don't try gcc -ansi; that turns off useful extensions and
4919# breaks some systems' header files.
4920# AIX			-qlanglvl=ansi
4921# Ultrix and OSF/1	-std1
4922# HP-UX			-Ae  or  -Aa -D_HPUX_SOURCE
4923# SVR4			-Xc
4924#  For HP-UX, we try -Ae first; this turns on ANSI but also extensions,
4925#  as well as defining _HPUX_SOURCE, and we can then use long long.
4926#  We keep the old version for backward compatibility.
4927for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" -Xc
4928do
4929  CFLAGS="$ac_save_CFLAGS $ac_arg"
4930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931/* end confdefs.h.  */
4932#ifndef __STDC__
4933choke me
4934#endif
4935
4936int
4937main (void)
4938{
4939int test (int i, double x);
4940struct s1 {int (*f) (int a);};
4941struct s2 {int (*f) (double a);};
4942  ;
4943  return 0;
4944}
4945_ACEOF
4946if ac_fn_c_try_compile "$LINENO"
4947then :
4948  fp_cv_prog_cc_stdc="$ac_arg"; break
4949fi
4950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4951done
4952CFLAGS="$ac_save_CFLAGS"
4953
4954fi
4955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fp_cv_prog_cc_stdc" >&5
4956printf "%s\n" "$fp_cv_prog_cc_stdc" >&6; }
4957case "x$fp_cv_prog_cc_stdc" in
4958  x|xno) ;;
4959  *) CC="$CC $fp_cv_prog_cc_stdc" ;;
4960esac
4961
4962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use prototypes" >&5
4963printf %s "checking whether to use prototypes... " >&6; }
4964if test ."$ansi2knr" = .yes || test ."$ansi2knr" = .no; then
4965  msg="(overridden) "
4966else
4967  msg=
4968  if test ."$fp_cv_prog_cc_stdc" = .no; then
4969    ansi2knr=yes
4970  else
4971    ansi2knr=no
4972  fi
4973fi
4974
4975if test "$ansi2knr" = yes; then
4976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${msg}no" >&5
4977printf "%s\n" "${msg}no" >&6; }
4978  U=_
4979else
4980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${msg}yes" >&5
4981printf "%s\n" "${msg}yes" >&6; }
4982  printf "%s\n" "#define PROTOTYPES 1" >>confdefs.h
4983
4984  U=
4985fi
4986
4987
4988ac_header= ac_cache=
4989for ac_item in $ac_header_c_list
4990do
4991  if test $ac_cache; then
4992    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4993    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4994      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4995    fi
4996    ac_header= ac_cache=
4997  elif test $ac_header; then
4998    ac_cache=$ac_item
4999  else
5000    ac_header=$ac_item
5001  fi
5002done
5003
5004
5005
5006
5007
5008
5009
5010
5011if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5012then :
5013
5014printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5015
5016fi
5017ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5018if test "x$ac_cv_type_size_t" = xyes
5019then :
5020
5021else $as_nop
5022
5023printf "%s\n" "#define size_t unsigned int" >>confdefs.h
5024
5025fi
5026
5027# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5028# for constant arguments.  Useless!
5029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5030printf %s "checking for working alloca.h... " >&6; }
5031if test ${ac_cv_working_alloca_h+y}
5032then :
5033  printf %s "(cached) " >&6
5034else $as_nop
5035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036/* end confdefs.h.  */
5037#include <alloca.h>
5038int
5039main (void)
5040{
5041char *p = (char *) alloca (2 * sizeof (int));
5042			  if (p) return 0;
5043  ;
5044  return 0;
5045}
5046_ACEOF
5047if ac_fn_c_try_link "$LINENO"
5048then :
5049  ac_cv_working_alloca_h=yes
5050else $as_nop
5051  ac_cv_working_alloca_h=no
5052fi
5053rm -f core conftest.err conftest.$ac_objext conftest.beam \
5054    conftest$ac_exeext conftest.$ac_ext
5055fi
5056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5057printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
5058if test $ac_cv_working_alloca_h = yes; then
5059
5060printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
5061
5062fi
5063
5064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5065printf %s "checking for alloca... " >&6; }
5066if test ${ac_cv_func_alloca_works+y}
5067then :
5068  printf %s "(cached) " >&6
5069else $as_nop
5070  if test $ac_cv_working_alloca_h = yes; then
5071  ac_cv_func_alloca_works=yes
5072else
5073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074/* end confdefs.h.  */
5075#include <stdlib.h>
5076#include <stddef.h>
5077#ifndef alloca
5078# ifdef __GNUC__
5079#  define alloca __builtin_alloca
5080# elif defined _MSC_VER
5081#  include <malloc.h>
5082#  define alloca _alloca
5083# else
5084#  ifdef  __cplusplus
5085extern "C"
5086#  endif
5087void *alloca (size_t);
5088# endif
5089#endif
5090
5091int
5092main (void)
5093{
5094char *p = (char *) alloca (1);
5095				    if (p) return 0;
5096  ;
5097  return 0;
5098}
5099_ACEOF
5100if ac_fn_c_try_link "$LINENO"
5101then :
5102  ac_cv_func_alloca_works=yes
5103else $as_nop
5104  ac_cv_func_alloca_works=no
5105fi
5106rm -f core conftest.err conftest.$ac_objext conftest.beam \
5107    conftest$ac_exeext conftest.$ac_ext
5108fi
5109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5110printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
5111fi
5112
5113if test $ac_cv_func_alloca_works = yes; then
5114
5115printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
5116
5117else
5118  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5119# that cause trouble.  Some versions do not even contain alloca or
5120# contain a buggy version.  If you still want to use their alloca,
5121# use ar to extract alloca.o from them instead of compiling alloca.c.
5122
5123ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5124
5125printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
5126
5127
5128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5129printf %s "checking stack direction for C alloca... " >&6; }
5130if test ${ac_cv_c_stack_direction+y}
5131then :
5132  printf %s "(cached) " >&6
5133else $as_nop
5134  if test "$cross_compiling" = yes
5135then :
5136  ac_cv_c_stack_direction=0
5137else $as_nop
5138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139/* end confdefs.h.  */
5140$ac_includes_default
5141int
5142find_stack_direction (int *addr, int depth)
5143{
5144  int dir, dummy = 0;
5145  if (! addr)
5146    addr = &dummy;
5147  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5148  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5149  return dir + dummy;
5150}
5151
5152int
5153main (int argc, char **argv)
5154{
5155  return find_stack_direction (0, argc + !argv + 20) < 0;
5156}
5157_ACEOF
5158if ac_fn_c_try_run "$LINENO"
5159then :
5160  ac_cv_c_stack_direction=1
5161else $as_nop
5162  ac_cv_c_stack_direction=-1
5163fi
5164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5165  conftest.$ac_objext conftest.beam conftest.$ac_ext
5166fi
5167
5168fi
5169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5170printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
5171printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
5172
5173
5174fi
5175
5176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler supports union initialisation" >&5
5177printf %s "checking if the compiler supports union initialisation... " >&6; }
5178if test ${zsh_cv_c_have_union_init+y}
5179then :
5180  printf %s "(cached) " >&6
5181else $as_nop
5182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183/* end confdefs.h.  */
5184union{void *p;long l;}u={0};
5185int
5186main (void)
5187{
5188u.l=1;
5189  ;
5190  return 0;
5191}
5192_ACEOF
5193if ac_fn_c_try_compile "$LINENO"
5194then :
5195  zsh_cv_c_have_union_init=yes
5196else $as_nop
5197  zsh_cv_c_have_union_init=no
5198fi
5199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5200fi
5201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_c_have_union_init" >&5
5202printf "%s\n" "$zsh_cv_c_have_union_init" >&6; }
5203
5204if test x$zsh_cv_c_have_union_init = xyes; then
5205  printf "%s\n" "#define HAVE_UNION_INIT 1" >>confdefs.h
5206
5207fi
5208
5209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signed to unsigned casting is broken" >&5
5210printf %s "checking if signed to unsigned casting is broken... " >&6; }
5211if test ${zsh_cv_c_broken_signed_to_unsigned_casting+y}
5212then :
5213  printf %s "(cached) " >&6
5214else $as_nop
5215  if test "$cross_compiling" = yes
5216then :
5217  zsh_cv_c_broken_signed_to_unsigned_casting=no
5218else $as_nop
5219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220/* end confdefs.h.  */
5221main(){return((int)(unsigned char)((char) -1) == 255);}
5222_ACEOF
5223if ac_fn_c_try_run "$LINENO"
5224then :
5225  zsh_cv_c_broken_signed_to_unsigned_casting=yes
5226else $as_nop
5227  zsh_cv_c_broken_signed_to_unsigned_casting=no
5228fi
5229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5230  conftest.$ac_objext conftest.beam conftest.$ac_ext
5231fi
5232
5233fi
5234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_c_broken_signed_to_unsigned_casting" >&5
5235printf "%s\n" "$zsh_cv_c_broken_signed_to_unsigned_casting" >&6; }
5236
5237if test x$zsh_cv_c_broken_signed_to_unsigned_casting = xyes; then
5238  printf "%s\n" "#define BROKEN_SIGNED_TO_UNSIGNED_CASTING 1" >>confdefs.h
5239
5240fi
5241
5242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler supports variable-length arrays" >&5
5243printf %s "checking if the compiler supports variable-length arrays... " >&6; }
5244if test ${zsh_cv_c_variable_length_arrays+y}
5245then :
5246  printf %s "(cached) " >&6
5247else $as_nop
5248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249/* end confdefs.h.  */
5250int foo(), n;
5251int
5252main (void)
5253{
5254int i[foo()], a[n+1];
5255  ;
5256  return 0;
5257}
5258_ACEOF
5259if ac_fn_c_try_compile "$LINENO"
5260then :
5261  zsh_cv_c_variable_length_arrays=yes
5262else $as_nop
5263  zsh_cv_c_variable_length_arrays=no
5264fi
5265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5266fi
5267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_c_variable_length_arrays" >&5
5268printf "%s\n" "$zsh_cv_c_variable_length_arrays" >&6; }
5269
5270if test x$zsh_cv_c_variable_length_arrays = xyes; then
5271  printf "%s\n" "#define HAVE_VARIABLE_LENGTH_ARRAYS 1" >>confdefs.h
5272
5273fi
5274
5275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5276printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5277set x ${MAKE-make}
5278ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5279if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5280then :
5281  printf %s "(cached) " >&6
5282else $as_nop
5283  cat >conftest.make <<\_ACEOF
5284SHELL = /bin/sh
5285all:
5286	@echo '@@@%%%=$(MAKE)=@@@%%%'
5287_ACEOF
5288# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5289case `${MAKE-make} -f conftest.make 2>/dev/null` in
5290  *@@@%%%=?*=@@@%%%*)
5291    eval ac_cv_prog_make_${ac_make}_set=yes;;
5292  *)
5293    eval ac_cv_prog_make_${ac_make}_set=no;;
5294esac
5295rm -f conftest.make
5296fi
5297if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5299printf "%s\n" "yes" >&6; }
5300  SET_MAKE=
5301else
5302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303printf "%s\n" "no" >&6; }
5304  SET_MAKE="MAKE=${MAKE-make}"
5305fi
5306
5307  # Find a good install program.  We prefer a C program (faster),
5308# so one script is as good as another.  But avoid the broken or
5309# incompatible versions:
5310# SysV /etc/install, /usr/sbin/install
5311# SunOS /usr/etc/install
5312# IRIX /sbin/install
5313# AIX /bin/install
5314# AmigaOS /C/install, which installs bootblocks on floppy discs
5315# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5316# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5317# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5318# OS/2's system install, which has a completely different semantic
5319# ./install, which can be erroneously created by make from ./install.sh.
5320# Reject install programs that cannot install multiple files.
5321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5322printf %s "checking for a BSD-compatible install... " >&6; }
5323if test -z "$INSTALL"; then
5324if test ${ac_cv_path_install+y}
5325then :
5326  printf %s "(cached) " >&6
5327else $as_nop
5328  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331  IFS=$as_save_IFS
5332  case $as_dir in #(((
5333    '') as_dir=./ ;;
5334    */) ;;
5335    *) as_dir=$as_dir/ ;;
5336  esac
5337    # Account for fact that we put trailing slashes in our PATH walk.
5338case $as_dir in #((
5339  ./ | /[cC]/* | \
5340  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5341  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5342  /usr/ucb/* ) ;;
5343  *)
5344    # OSF1 and SCO ODT 3.0 have their own names for install.
5345    # Don't use installbsd from OSF since it installs stuff as root
5346    # by default.
5347    for ac_prog in ginstall scoinst install; do
5348      for ac_exec_ext in '' $ac_executable_extensions; do
5349	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
5350	  if test $ac_prog = install &&
5351	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5352	    # AIX install.  It has an incompatible calling convention.
5353	    :
5354	  elif test $ac_prog = install &&
5355	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5356	    # program-specific install script used by HP pwplus--don't use.
5357	    :
5358	  else
5359	    rm -rf conftest.one conftest.two conftest.dir
5360	    echo one > conftest.one
5361	    echo two > conftest.two
5362	    mkdir conftest.dir
5363	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
5364	      test -s conftest.one && test -s conftest.two &&
5365	      test -s conftest.dir/conftest.one &&
5366	      test -s conftest.dir/conftest.two
5367	    then
5368	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
5369	      break 3
5370	    fi
5371	  fi
5372	fi
5373      done
5374    done
5375    ;;
5376esac
5377
5378  done
5379IFS=$as_save_IFS
5380
5381rm -rf conftest.one conftest.two conftest.dir
5382
5383fi
5384  if test ${ac_cv_path_install+y}; then
5385    INSTALL=$ac_cv_path_install
5386  else
5387    # As a last resort, use the slow shell script.  Don't cache a
5388    # value for INSTALL within a source directory, because that will
5389    # break other packages using the cache if that directory is
5390    # removed, or if the value is a relative name.
5391    INSTALL=$ac_install_sh
5392  fi
5393fi
5394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5395printf "%s\n" "$INSTALL" >&6; }
5396
5397# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5398# It thinks the first close brace ends the variable substitution.
5399test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5400
5401test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5402
5403test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5404             for ac_prog in gawk mawk nawk awk
5405do
5406  # Extract the first word of "$ac_prog", so it can be a program name with args.
5407set dummy $ac_prog; ac_word=$2
5408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409printf %s "checking for $ac_word... " >&6; }
5410if test ${ac_cv_prog_AWK+y}
5411then :
5412  printf %s "(cached) " >&6
5413else $as_nop
5414  if test -n "$AWK"; then
5415  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5416else
5417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418for as_dir in $PATH
5419do
5420  IFS=$as_save_IFS
5421  case $as_dir in #(((
5422    '') as_dir=./ ;;
5423    */) ;;
5424    *) as_dir=$as_dir/ ;;
5425  esac
5426    for ac_exec_ext in '' $ac_executable_extensions; do
5427  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5428    ac_cv_prog_AWK="$ac_prog"
5429    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5430    break 2
5431  fi
5432done
5433  done
5434IFS=$as_save_IFS
5435
5436fi
5437fi
5438AWK=$ac_cv_prog_AWK
5439if test -n "$AWK"; then
5440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5441printf "%s\n" "$AWK" >&6; }
5442else
5443  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444printf "%s\n" "no" >&6; }
5445fi
5446
5447
5448  test -n "$AWK" && break
5449done
5450                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
5451printf %s "checking whether ln works... " >&6; }
5452if test ${ac_cv_prog_LN+y}
5453then :
5454  printf %s "(cached) " >&6
5455else $as_nop
5456  rm -f conftestdata conftestlink
5457echo > conftestdata
5458if ln conftestdata conftestlink 2>/dev/null
5459then
5460  rm -f conftestdata conftestlink
5461  ac_cv_prog_LN="ln"
5462else
5463  rm -f conftestdata
5464  ac_cv_prog_LN="cp"
5465fi
5466fi
5467LN="$ac_cv_prog_LN"
5468if test "$ac_cv_prog_LN" = "ln"; then
5469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5470printf "%s\n" "yes" >&6; }
5471else
5472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473printf "%s\n" "no" >&6; }
5474fi
5475                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5476printf %s "checking whether ln -s works... " >&6; }
5477LN_S=$as_ln_s
5478if test "$LN_S" = "ln -s"; then
5479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5480printf "%s\n" "yes" >&6; }
5481else
5482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5483printf "%s\n" "no, using $LN_S" >&6; }
5484fi
5485                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5486printf %s "checking for grep that handles long lines and -e... " >&6; }
5487if test ${ac_cv_path_GREP+y}
5488then :
5489  printf %s "(cached) " >&6
5490else $as_nop
5491  if test -z "$GREP"; then
5492  ac_path_GREP_found=false
5493  # Loop through the user's path and test for each of PROGNAME-LIST
5494  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5496do
5497  IFS=$as_save_IFS
5498  case $as_dir in #(((
5499    '') as_dir=./ ;;
5500    */) ;;
5501    *) as_dir=$as_dir/ ;;
5502  esac
5503    for ac_prog in grep ggrep
5504   do
5505    for ac_exec_ext in '' $ac_executable_extensions; do
5506      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5507      as_fn_executable_p "$ac_path_GREP" || continue
5508# Check for GNU ac_path_GREP and select it if it is found.
5509  # Check for GNU $ac_path_GREP
5510case `"$ac_path_GREP" --version 2>&1` in
5511*GNU*)
5512  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5513*)
5514  ac_count=0
5515  printf %s 0123456789 >"conftest.in"
5516  while :
5517  do
5518    cat "conftest.in" "conftest.in" >"conftest.tmp"
5519    mv "conftest.tmp" "conftest.in"
5520    cp "conftest.in" "conftest.nl"
5521    printf "%s\n" 'GREP' >> "conftest.nl"
5522    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5523    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5524    as_fn_arith $ac_count + 1 && ac_count=$as_val
5525    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5526      # Best one so far, save it but keep looking for a better one
5527      ac_cv_path_GREP="$ac_path_GREP"
5528      ac_path_GREP_max=$ac_count
5529    fi
5530    # 10*(2^10) chars as input seems more than enough
5531    test $ac_count -gt 10 && break
5532  done
5533  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5534esac
5535
5536      $ac_path_GREP_found && break 3
5537    done
5538  done
5539  done
5540IFS=$as_save_IFS
5541  if test -z "$ac_cv_path_GREP"; then
5542    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5543  fi
5544else
5545  ac_cv_path_GREP=$GREP
5546fi
5547
5548fi
5549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5550printf "%s\n" "$ac_cv_path_GREP" >&6; }
5551 GREP="$ac_cv_path_GREP"
5552
5553
5554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5555printf %s "checking for egrep... " >&6; }
5556if test ${ac_cv_path_EGREP+y}
5557then :
5558  printf %s "(cached) " >&6
5559else $as_nop
5560  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5561   then ac_cv_path_EGREP="$GREP -E"
5562   else
5563     if test -z "$EGREP"; then
5564  ac_path_EGREP_found=false
5565  # Loop through the user's path and test for each of PROGNAME-LIST
5566  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5568do
5569  IFS=$as_save_IFS
5570  case $as_dir in #(((
5571    '') as_dir=./ ;;
5572    */) ;;
5573    *) as_dir=$as_dir/ ;;
5574  esac
5575    for ac_prog in egrep
5576   do
5577    for ac_exec_ext in '' $ac_executable_extensions; do
5578      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5579      as_fn_executable_p "$ac_path_EGREP" || continue
5580# Check for GNU ac_path_EGREP and select it if it is found.
5581  # Check for GNU $ac_path_EGREP
5582case `"$ac_path_EGREP" --version 2>&1` in
5583*GNU*)
5584  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5585*)
5586  ac_count=0
5587  printf %s 0123456789 >"conftest.in"
5588  while :
5589  do
5590    cat "conftest.in" "conftest.in" >"conftest.tmp"
5591    mv "conftest.tmp" "conftest.in"
5592    cp "conftest.in" "conftest.nl"
5593    printf "%s\n" 'EGREP' >> "conftest.nl"
5594    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5595    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5596    as_fn_arith $ac_count + 1 && ac_count=$as_val
5597    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5598      # Best one so far, save it but keep looking for a better one
5599      ac_cv_path_EGREP="$ac_path_EGREP"
5600      ac_path_EGREP_max=$ac_count
5601    fi
5602    # 10*(2^10) chars as input seems more than enough
5603    test $ac_count -gt 10 && break
5604  done
5605  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5606esac
5607
5608      $ac_path_EGREP_found && break 3
5609    done
5610  done
5611  done
5612IFS=$as_save_IFS
5613  if test -z "$ac_cv_path_EGREP"; then
5614    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5615  fi
5616else
5617  ac_cv_path_EGREP=$EGREP
5618fi
5619
5620   fi
5621fi
5622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5623printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5624 EGREP="$ac_cv_path_EGREP"
5625
5626               for ac_prog in yodl
5627do
5628  # Extract the first word of "$ac_prog", so it can be a program name with args.
5629set dummy $ac_prog; ac_word=$2
5630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631printf %s "checking for $ac_word... " >&6; }
5632if test ${ac_cv_prog_YODL+y}
5633then :
5634  printf %s "(cached) " >&6
5635else $as_nop
5636  if test -n "$YODL"; then
5637  ac_cv_prog_YODL="$YODL" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642  IFS=$as_save_IFS
5643  case $as_dir in #(((
5644    '') as_dir=./ ;;
5645    */) ;;
5646    *) as_dir=$as_dir/ ;;
5647  esac
5648    for ac_exec_ext in '' $ac_executable_extensions; do
5649  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5650    ac_cv_prog_YODL="$ac_prog"
5651    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5652    break 2
5653  fi
5654done
5655  done
5656IFS=$as_save_IFS
5657
5658fi
5659fi
5660YODL=$ac_cv_prog_YODL
5661if test -n "$YODL"; then
5662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YODL" >&5
5663printf "%s\n" "$YODL" >&6; }
5664else
5665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666printf "%s\n" "no" >&6; }
5667fi
5668
5669
5670  test -n "$YODL" && break
5671done
5672test -n "$YODL" || YODL=": yodl"
5673
5674
5675YODL_OPTIONS=''
5676if test "x$ac_cv_prog_YODL" = xyodl; then
5677    case `yodl --version` in
5678      *"version 2."*) YODL_OPTIONS='-k' ;;
5679      *"version 3."*) YODL_OPTIONS='-k -L' ;;
5680      *"version 4."*) YODL_OPTIONS='-k -L' ;;
5681    esac
5682fi
5683
5684
5685for ac_prog in texi2dvi
5686do
5687  # Extract the first word of "$ac_prog", so it can be a program name with args.
5688set dummy $ac_prog; ac_word=$2
5689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690printf %s "checking for $ac_word... " >&6; }
5691if test ${ac_cv_prog_TEXI2DVI+y}
5692then :
5693  printf %s "(cached) " >&6
5694else $as_nop
5695  if test -n "$TEXI2DVI"; then
5696  ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
5697else
5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699for as_dir in $PATH
5700do
5701  IFS=$as_save_IFS
5702  case $as_dir in #(((
5703    '') as_dir=./ ;;
5704    */) ;;
5705    *) as_dir=$as_dir/ ;;
5706  esac
5707    for ac_exec_ext in '' $ac_executable_extensions; do
5708  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5709    ac_cv_prog_TEXI2DVI="$ac_prog"
5710    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5711    break 2
5712  fi
5713done
5714  done
5715IFS=$as_save_IFS
5716
5717fi
5718fi
5719TEXI2DVI=$ac_cv_prog_TEXI2DVI
5720if test -n "$TEXI2DVI"; then
5721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5
5722printf "%s\n" "$TEXI2DVI" >&6; }
5723else
5724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725printf "%s\n" "no" >&6; }
5726fi
5727
5728
5729  test -n "$TEXI2DVI" && break
5730done
5731test -n "$TEXI2DVI" || TEXI2DVI=": texi2dvi"
5732
5733for ac_prog in texi2pdf
5734do
5735  # Extract the first word of "$ac_prog", so it can be a program name with args.
5736set dummy $ac_prog; ac_word=$2
5737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738printf %s "checking for $ac_word... " >&6; }
5739if test ${ac_cv_prog_TEXI2PDF+y}
5740then :
5741  printf %s "(cached) " >&6
5742else $as_nop
5743  if test -n "$TEXI2PDF"; then
5744  ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
5745else
5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747for as_dir in $PATH
5748do
5749  IFS=$as_save_IFS
5750  case $as_dir in #(((
5751    '') as_dir=./ ;;
5752    */) ;;
5753    *) as_dir=$as_dir/ ;;
5754  esac
5755    for ac_exec_ext in '' $ac_executable_extensions; do
5756  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5757    ac_cv_prog_TEXI2PDF="$ac_prog"
5758    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5759    break 2
5760  fi
5761done
5762  done
5763IFS=$as_save_IFS
5764
5765fi
5766fi
5767TEXI2PDF=$ac_cv_prog_TEXI2PDF
5768if test -n "$TEXI2PDF"; then
5769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5
5770printf "%s\n" "$TEXI2PDF" >&6; }
5771else
5772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773printf "%s\n" "no" >&6; }
5774fi
5775
5776
5777  test -n "$TEXI2PDF" && break
5778done
5779test -n "$TEXI2PDF" || TEXI2PDF=": texi2pdf"
5780
5781for ac_prog in texi2any texi2html
5782do
5783  # Extract the first word of "$ac_prog", so it can be a program name with args.
5784set dummy $ac_prog; ac_word=$2
5785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786printf %s "checking for $ac_word... " >&6; }
5787if test ${ac_cv_prog_TEXI2HTML+y}
5788then :
5789  printf %s "(cached) " >&6
5790else $as_nop
5791  if test -n "$TEXI2HTML"; then
5792  ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
5793else
5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797  IFS=$as_save_IFS
5798  case $as_dir in #(((
5799    '') as_dir=./ ;;
5800    */) ;;
5801    *) as_dir=$as_dir/ ;;
5802  esac
5803    for ac_exec_ext in '' $ac_executable_extensions; do
5804  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5805    ac_cv_prog_TEXI2HTML="$ac_prog"
5806    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5807    break 2
5808  fi
5809done
5810  done
5811IFS=$as_save_IFS
5812
5813fi
5814fi
5815TEXI2HTML=$ac_cv_prog_TEXI2HTML
5816if test -n "$TEXI2HTML"; then
5817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEXI2HTML" >&5
5818printf "%s\n" "$TEXI2HTML" >&6; }
5819else
5820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821printf "%s\n" "no" >&6; }
5822fi
5823
5824
5825  test -n "$TEXI2HTML" && break
5826done
5827test -n "$TEXI2HTML" || TEXI2HTML=": texi2html"
5828
5829
5830if test x"$TEXI2PDF" != xtexi2pdf && test x"$TEXI2DVI" = xtexi2dvi; then
5831  TEXI2PDF='texi2dvi --pdf'
5832fi
5833
5834if test x"$TEXI2HTML" = xtexi2any; then
5835  TEXI2HTML='texi2any -c TEXI2HTML=1'
5836fi
5837
5838case "$LC_PAPER" in
5839  ??_US*) PAPERSIZE=us ;;
5840  *)      PAPERSIZE=a4 ;;
5841esac
5842
5843
5844for ac_prog in ansi2knr
5845do
5846  # Extract the first word of "$ac_prog", so it can be a program name with args.
5847set dummy $ac_prog; ac_word=$2
5848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849printf %s "checking for $ac_word... " >&6; }
5850if test ${ac_cv_prog_ANSI2KNR+y}
5851then :
5852  printf %s "(cached) " >&6
5853else $as_nop
5854  if test -n "$ANSI2KNR"; then
5855  ac_cv_prog_ANSI2KNR="$ANSI2KNR" # Let the user override the test.
5856else
5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858for as_dir in $PATH
5859do
5860  IFS=$as_save_IFS
5861  case $as_dir in #(((
5862    '') as_dir=./ ;;
5863    */) ;;
5864    *) as_dir=$as_dir/ ;;
5865  esac
5866    for ac_exec_ext in '' $ac_executable_extensions; do
5867  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5868    ac_cv_prog_ANSI2KNR="$ac_prog"
5869    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5870    break 2
5871  fi
5872done
5873  done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878ANSI2KNR=$ac_cv_prog_ANSI2KNR
5879if test -n "$ANSI2KNR"; then
5880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ANSI2KNR" >&5
5881printf "%s\n" "$ANSI2KNR" >&6; }
5882else
5883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884printf "%s\n" "no" >&6; }
5885fi
5886
5887
5888  test -n "$ANSI2KNR" && break
5889done
5890test -n "$ANSI2KNR" || ANSI2KNR=": ansi2knr"
5891
5892
5893if test x"$ansi2knr" = xyes && test x"$ANSI2KNR" = x": ansi2knr"; then
5894    echo "----------"
5895    echo "configure fatal error:"
5896    echo "ansi2knr was specified (--enable-ansi2knr) but the program could not be found."
5897    echo "Either remove the configure option if it is not required or build the ansi2knr"
5898    echo "program before reconfiguring Zsh.  The source code for ansi2knr is also"
5899    echo "available in the GPL directory on Zsh distribution sites."
5900    exit 1
5901fi
5902
5903ac_header_dirent=no
5904for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5905  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5907printf %s "checking for $ac_hdr that defines DIR... " >&6; }
5908if eval test \${$as_ac_Header+y}
5909then :
5910  printf %s "(cached) " >&6
5911else $as_nop
5912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913/* end confdefs.h.  */
5914#include <sys/types.h>
5915#include <$ac_hdr>
5916
5917int
5918main (void)
5919{
5920if ((DIR *) 0)
5921return 0;
5922  ;
5923  return 0;
5924}
5925_ACEOF
5926if ac_fn_c_try_compile "$LINENO"
5927then :
5928  eval "$as_ac_Header=yes"
5929else $as_nop
5930  eval "$as_ac_Header=no"
5931fi
5932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5933fi
5934eval ac_res=\$$as_ac_Header
5935	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5936printf "%s\n" "$ac_res" >&6; }
5937if eval test \"x\$"$as_ac_Header"\" = x"yes"
5938then :
5939  cat >>confdefs.h <<_ACEOF
5940#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
5941_ACEOF
5942
5943ac_header_dirent=$ac_hdr; break
5944fi
5945
5946done
5947# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5948if test $ac_header_dirent = dirent.h; then
5949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5950printf %s "checking for library containing opendir... " >&6; }
5951if test ${ac_cv_search_opendir+y}
5952then :
5953  printf %s "(cached) " >&6
5954else $as_nop
5955  ac_func_search_save_LIBS=$LIBS
5956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957/* end confdefs.h.  */
5958
5959/* Override any GCC internal prototype to avoid an error.
5960   Use char because int might match the return type of a GCC
5961   builtin and then its argument prototype would still apply.  */
5962char opendir ();
5963int
5964main (void)
5965{
5966return opendir ();
5967  ;
5968  return 0;
5969}
5970_ACEOF
5971for ac_lib in '' dir
5972do
5973  if test -z "$ac_lib"; then
5974    ac_res="none required"
5975  else
5976    ac_res=-l$ac_lib
5977    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5978  fi
5979  if ac_fn_c_try_link "$LINENO"
5980then :
5981  ac_cv_search_opendir=$ac_res
5982fi
5983rm -f core conftest.err conftest.$ac_objext conftest.beam \
5984    conftest$ac_exeext
5985  if test ${ac_cv_search_opendir+y}
5986then :
5987  break
5988fi
5989done
5990if test ${ac_cv_search_opendir+y}
5991then :
5992
5993else $as_nop
5994  ac_cv_search_opendir=no
5995fi
5996rm conftest.$ac_ext
5997LIBS=$ac_func_search_save_LIBS
5998fi
5999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6000printf "%s\n" "$ac_cv_search_opendir" >&6; }
6001ac_res=$ac_cv_search_opendir
6002if test "$ac_res" != no
6003then :
6004  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6005
6006fi
6007
6008else
6009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6010printf %s "checking for library containing opendir... " >&6; }
6011if test ${ac_cv_search_opendir+y}
6012then :
6013  printf %s "(cached) " >&6
6014else $as_nop
6015  ac_func_search_save_LIBS=$LIBS
6016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017/* end confdefs.h.  */
6018
6019/* Override any GCC internal prototype to avoid an error.
6020   Use char because int might match the return type of a GCC
6021   builtin and then its argument prototype would still apply.  */
6022char opendir ();
6023int
6024main (void)
6025{
6026return opendir ();
6027  ;
6028  return 0;
6029}
6030_ACEOF
6031for ac_lib in '' x
6032do
6033  if test -z "$ac_lib"; then
6034    ac_res="none required"
6035  else
6036    ac_res=-l$ac_lib
6037    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6038  fi
6039  if ac_fn_c_try_link "$LINENO"
6040then :
6041  ac_cv_search_opendir=$ac_res
6042fi
6043rm -f core conftest.err conftest.$ac_objext conftest.beam \
6044    conftest$ac_exeext
6045  if test ${ac_cv_search_opendir+y}
6046then :
6047  break
6048fi
6049done
6050if test ${ac_cv_search_opendir+y}
6051then :
6052
6053else $as_nop
6054  ac_cv_search_opendir=no
6055fi
6056rm conftest.$ac_ext
6057LIBS=$ac_func_search_save_LIBS
6058fi
6059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6060printf "%s\n" "$ac_cv_search_opendir" >&6; }
6061ac_res=$ac_cv_search_opendir
6062if test "$ac_res" != no
6063then :
6064  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6065
6066fi
6067
6068fi
6069
6070# Autoupdate added the next two lines to ensure that your configure
6071# script's behavior did not change.  They are probably safe to remove.
6072
6073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6074printf %s "checking for egrep... " >&6; }
6075if test ${ac_cv_path_EGREP+y}
6076then :
6077  printf %s "(cached) " >&6
6078else $as_nop
6079  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6080   then ac_cv_path_EGREP="$GREP -E"
6081   else
6082     if test -z "$EGREP"; then
6083  ac_path_EGREP_found=false
6084  # Loop through the user's path and test for each of PROGNAME-LIST
6085  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6087do
6088  IFS=$as_save_IFS
6089  case $as_dir in #(((
6090    '') as_dir=./ ;;
6091    */) ;;
6092    *) as_dir=$as_dir/ ;;
6093  esac
6094    for ac_prog in egrep
6095   do
6096    for ac_exec_ext in '' $ac_executable_extensions; do
6097      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6098      as_fn_executable_p "$ac_path_EGREP" || continue
6099# Check for GNU ac_path_EGREP and select it if it is found.
6100  # Check for GNU $ac_path_EGREP
6101case `"$ac_path_EGREP" --version 2>&1` in
6102*GNU*)
6103  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6104*)
6105  ac_count=0
6106  printf %s 0123456789 >"conftest.in"
6107  while :
6108  do
6109    cat "conftest.in" "conftest.in" >"conftest.tmp"
6110    mv "conftest.tmp" "conftest.in"
6111    cp "conftest.in" "conftest.nl"
6112    printf "%s\n" 'EGREP' >> "conftest.nl"
6113    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6114    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6115    as_fn_arith $ac_count + 1 && ac_count=$as_val
6116    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6117      # Best one so far, save it but keep looking for a better one
6118      ac_cv_path_EGREP="$ac_path_EGREP"
6119      ac_path_EGREP_max=$ac_count
6120    fi
6121    # 10*(2^10) chars as input seems more than enough
6122    test $ac_count -gt 10 && break
6123  done
6124  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6125esac
6126
6127      $ac_path_EGREP_found && break 3
6128    done
6129  done
6130  done
6131IFS=$as_save_IFS
6132  if test -z "$ac_cv_path_EGREP"; then
6133    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6134  fi
6135else
6136  ac_cv_path_EGREP=$EGREP
6137fi
6138
6139   fi
6140fi
6141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6142printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6143 EGREP="$ac_cv_path_EGREP"
6144
6145
6146
6147
6148
6149# Obsolete code to be removed.
6150if test $ac_cv_header_sys_time_h = yes; then
6151
6152printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6153
6154fi
6155# End of obsolete code.
6156
6157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6158printf %s "checking whether stat file-mode macros are broken... " >&6; }
6159if test ${ac_cv_header_stat_broken+y}
6160then :
6161  printf %s "(cached) " >&6
6162else $as_nop
6163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164/* end confdefs.h.  */
6165#include <sys/types.h>
6166#include <sys/stat.h>
6167
6168#if defined S_ISBLK && defined S_IFDIR
6169extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6170#endif
6171
6172#if defined S_ISBLK && defined S_IFCHR
6173extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6174#endif
6175
6176#if defined S_ISLNK && defined S_IFREG
6177extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6178#endif
6179
6180#if defined S_ISSOCK && defined S_IFREG
6181extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6182#endif
6183
6184_ACEOF
6185if ac_fn_c_try_compile "$LINENO"
6186then :
6187  ac_cv_header_stat_broken=no
6188else $as_nop
6189  ac_cv_header_stat_broken=yes
6190fi
6191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6192fi
6193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6194printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
6195if test $ac_cv_header_stat_broken = yes; then
6196
6197printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6198
6199fi
6200
6201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6202printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6203if test ${ac_cv_header_sys_wait_h+y}
6204then :
6205  printf %s "(cached) " >&6
6206else $as_nop
6207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208/* end confdefs.h.  */
6209#include <sys/types.h>
6210#include <sys/wait.h>
6211#ifndef WEXITSTATUS
6212# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6213#endif
6214#ifndef WIFEXITED
6215# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6216#endif
6217
6218int
6219main (void)
6220{
6221  int s;
6222  wait (&s);
6223  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6224  ;
6225  return 0;
6226}
6227_ACEOF
6228if ac_fn_c_try_compile "$LINENO"
6229then :
6230  ac_cv_header_sys_wait_h=yes
6231else $as_nop
6232  ac_cv_header_sys_wait_h=no
6233fi
6234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6235fi
6236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6237printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
6238if test $ac_cv_header_sys_wait_h = yes; then
6239
6240printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6241
6242fi
6243
6244
6245oldcflags="$CFLAGS"
6246if test x$enable_pcre = xyes; then
6247# Extract the first word of "pcre-config", so it can be a program name with args.
6248set dummy pcre-config; ac_word=$2
6249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250printf %s "checking for $ac_word... " >&6; }
6251if test ${ac_cv_prog_PCRECONF+y}
6252then :
6253  printf %s "(cached) " >&6
6254else $as_nop
6255  if test -n "$PCRECONF"; then
6256  ac_cv_prog_PCRECONF="$PCRECONF" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261  IFS=$as_save_IFS
6262  case $as_dir in #(((
6263    '') as_dir=./ ;;
6264    */) ;;
6265    *) as_dir=$as_dir/ ;;
6266  esac
6267    for ac_exec_ext in '' $ac_executable_extensions; do
6268  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6269    ac_cv_prog_PCRECONF="pcre-config"
6270    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6271    break 2
6272  fi
6273done
6274  done
6275IFS=$as_save_IFS
6276
6277fi
6278fi
6279PCRECONF=$ac_cv_prog_PCRECONF
6280if test -n "$PCRECONF"; then
6281  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCRECONF" >&5
6282printf "%s\n" "$PCRECONF" >&6; }
6283else
6284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285printf "%s\n" "no" >&6; }
6286fi
6287
6288
6289if test "x$ac_cv_prog_PCRECONF" = xpcre-config; then
6290  CPPFLAGS="$CPPFLAGS `pcre-config --cflags`"
6291fi
6292fi
6293
6294ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
6295if test "x$ac_cv_header_sys_time_h" = xyes
6296then :
6297  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
6298
6299fi
6300ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
6301if test "x$ac_cv_header_sys_times_h" = xyes
6302then :
6303  printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
6304
6305fi
6306ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
6307if test "x$ac_cv_header_sys_select_h" = xyes
6308then :
6309  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
6310
6311fi
6312ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
6313if test "x$ac_cv_header_termcap_h" = xyes
6314then :
6315  printf "%s\n" "#define HAVE_TERMCAP_H 1" >>confdefs.h
6316
6317fi
6318ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
6319if test "x$ac_cv_header_termio_h" = xyes
6320then :
6321  printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
6322
6323fi
6324ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
6325if test "x$ac_cv_header_termios_h" = xyes
6326then :
6327  printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
6328
6329fi
6330ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
6331if test "x$ac_cv_header_sys_param_h" = xyes
6332then :
6333  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
6334
6335fi
6336ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
6337if test "x$ac_cv_header_sys_filio_h" = xyes
6338then :
6339  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
6340
6341fi
6342ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
6343if test "x$ac_cv_header_string_h" = xyes
6344then :
6345  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
6346
6347fi
6348ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
6349if test "x$ac_cv_header_memory_h" = xyes
6350then :
6351  printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
6352
6353fi
6354ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
6355if test "x$ac_cv_header_limits_h" = xyes
6356then :
6357  printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
6358
6359fi
6360ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
6361if test "x$ac_cv_header_fcntl_h" = xyes
6362then :
6363  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
6364
6365fi
6366ac_fn_c_check_header_compile "$LINENO" "libc.h" "ac_cv_header_libc_h" "$ac_includes_default"
6367if test "x$ac_cv_header_libc_h" = xyes
6368then :
6369  printf "%s\n" "#define HAVE_LIBC_H 1" >>confdefs.h
6370
6371fi
6372ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
6373if test "x$ac_cv_header_sys_utsname_h" = xyes
6374then :
6375  printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
6376
6377fi
6378ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
6379if test "x$ac_cv_header_sys_resource_h" = xyes
6380then :
6381  printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
6382
6383fi
6384ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
6385if test "x$ac_cv_header_locale_h" = xyes
6386then :
6387  printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
6388
6389fi
6390ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
6391if test "x$ac_cv_header_errno_h" = xyes
6392then :
6393  printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
6394
6395fi
6396ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
6397if test "x$ac_cv_header_stdio_h" = xyes
6398then :
6399  printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
6400
6401fi
6402ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
6403if test "x$ac_cv_header_stdarg_h" = xyes
6404then :
6405  printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
6406
6407fi
6408ac_fn_c_check_header_compile "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
6409if test "x$ac_cv_header_varargs_h" = xyes
6410then :
6411  printf "%s\n" "#define HAVE_VARARGS_H 1" >>confdefs.h
6412
6413fi
6414ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6415if test "x$ac_cv_header_stdlib_h" = xyes
6416then :
6417  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
6418
6419fi
6420ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6421if test "x$ac_cv_header_unistd_h" = xyes
6422then :
6423  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
6424
6425fi
6426ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
6427if test "x$ac_cv_header_sys_capability_h" = xyes
6428then :
6429  printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h
6430
6431fi
6432ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6433if test "x$ac_cv_header_utmp_h" = xyes
6434then :
6435  printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
6436
6437fi
6438ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6439if test "x$ac_cv_header_utmpx_h" = xyes
6440then :
6441  printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
6442
6443fi
6444ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
6445if test "x$ac_cv_header_sys_types_h" = xyes
6446then :
6447  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
6448
6449fi
6450ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
6451if test "x$ac_cv_header_pwd_h" = xyes
6452then :
6453  printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
6454
6455fi
6456ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
6457if test "x$ac_cv_header_grp_h" = xyes
6458then :
6459  printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
6460
6461fi
6462ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
6463if test "x$ac_cv_header_poll_h" = xyes
6464then :
6465  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
6466
6467fi
6468ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
6469if test "x$ac_cv_header_sys_mman_h" = xyes
6470then :
6471  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
6472
6473fi
6474ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
6475if test "x$ac_cv_header_netinet_in_systm_h" = xyes
6476then :
6477  printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h
6478
6479fi
6480ac_fn_c_check_header_compile "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
6481if test "x$ac_cv_header_pcre_h" = xyes
6482then :
6483  printf "%s\n" "#define HAVE_PCRE_H 1" >>confdefs.h
6484
6485fi
6486ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
6487if test "x$ac_cv_header_langinfo_h" = xyes
6488then :
6489  printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
6490
6491fi
6492ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6493if test "x$ac_cv_header_wchar_h" = xyes
6494then :
6495  printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
6496
6497fi
6498ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
6499if test "x$ac_cv_header_stddef_h" = xyes
6500then :
6501  printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
6502
6503fi
6504ac_fn_c_check_header_compile "$LINENO" "sys/stropts.h" "ac_cv_header_sys_stropts_h" "$ac_includes_default"
6505if test "x$ac_cv_header_sys_stropts_h" = xyes
6506then :
6507  printf "%s\n" "#define HAVE_SYS_STROPTS_H 1" >>confdefs.h
6508
6509fi
6510ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
6511if test "x$ac_cv_header_iconv_h" = xyes
6512then :
6513  printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
6514
6515fi
6516ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
6517if test "x$ac_cv_header_ncurses_h" = xyes
6518then :
6519  printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h
6520
6521fi
6522ac_fn_c_check_header_compile "$LINENO" "ncursesw/ncurses.h" "ac_cv_header_ncursesw_ncurses_h" "$ac_includes_default"
6523if test "x$ac_cv_header_ncursesw_ncurses_h" = xyes
6524then :
6525  printf "%s\n" "#define HAVE_NCURSESW_NCURSES_H 1" >>confdefs.h
6526
6527fi
6528ac_fn_c_check_header_compile "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default"
6529if test "x$ac_cv_header_ncurses_ncurses_h" = xyes
6530then :
6531  printf "%s\n" "#define HAVE_NCURSES_NCURSES_H 1" >>confdefs.h
6532
6533fi
6534
6535if test x$dynamic = xyes; then
6536  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6537if test "x$ac_cv_header_dlfcn_h" = xyes
6538then :
6539  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
6540
6541fi
6542
6543  ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
6544if test "x$ac_cv_header_dl_h" = xyes
6545then :
6546  printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h
6547
6548fi
6549
6550fi
6551
6552
6553if test x$ac_cv_header_sys_time_h = xyes && test x$ac_cv_header_sys_select_h = xyes; then
6554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for conflicts in sys/time.h and sys/select.h" >&5
6555printf %s "checking for conflicts in sys/time.h and sys/select.h... " >&6; }
6556if test ${zsh_cv_header_time_h_select_h_conflicts+y}
6557then :
6558  printf %s "(cached) " >&6
6559else $as_nop
6560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561/* end confdefs.h.  */
6562#include <sys/time.h>
6563#include <sys/select.h>
6564int
6565main (void)
6566{
6567int i;
6568  ;
6569  return 0;
6570}
6571_ACEOF
6572if ac_fn_c_try_compile "$LINENO"
6573then :
6574  zsh_cv_header_time_h_select_h_conflicts=no
6575else $as_nop
6576  zsh_cv_header_time_h_select_h_conflicts=yes
6577fi
6578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6579fi
6580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_time_h_select_h_conflicts" >&5
6581printf "%s\n" "$zsh_cv_header_time_h_select_h_conflicts" >&6; }
6582  if test x$zsh_cv_header_time_h_select_h_conflicts = xyes; then
6583    printf "%s\n" "#define TIME_H_SELECT_H_CONFLICTS 1" >>confdefs.h
6584
6585  fi
6586fi
6587
6588
6589if test x$ac_cv_header_termios_h = xyes; then
6590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TIOCGWINSZ in termios.h" >&5
6591printf %s "checking TIOCGWINSZ in termios.h... " >&6; }
6592if test ${zsh_cv_header_termios_h_tiocgwinsz+y}
6593then :
6594  printf %s "(cached) " >&6
6595else $as_nop
6596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h.  */
6598
6599#ifdef HAVE_SYS_TYPES_H
6600# include <sys/types.h>
6601#endif
6602#include <termios.h>
6603int
6604main (void)
6605{
6606int x = TIOCGWINSZ;
6607  ;
6608  return 0;
6609}
6610_ACEOF
6611if ac_fn_c_try_link "$LINENO"
6612then :
6613  zsh_cv_header_termios_h_tiocgwinsz=yes
6614else $as_nop
6615  zsh_cv_header_termios_h_tiocgwinsz=no
6616fi
6617rm -f core conftest.err conftest.$ac_objext conftest.beam \
6618    conftest$ac_exeext conftest.$ac_ext
6619fi
6620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_termios_h_tiocgwinsz" >&5
6621printf "%s\n" "$zsh_cv_header_termios_h_tiocgwinsz" >&6; }
6622else
6623  zsh_cv_header_termios_h_tiocgwinsz=no
6624fi
6625if test x$zsh_cv_header_termios_h_tiocgwinsz = xno; then
6626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TIOCGWINSZ in sys/ioctl.h" >&5
6627printf %s "checking TIOCGWINSZ in sys/ioctl.h... " >&6; }
6628if test ${zsh_cv_header_sys_ioctl_h_tiocgwinsz+y}
6629then :
6630  printf %s "(cached) " >&6
6631else $as_nop
6632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h.  */
6634
6635#ifdef HAVE_SYS_TYPES_H
6636# include <sys/types.h>
6637#endif
6638#include <sys/ioctl.h>
6639int
6640main (void)
6641{
6642int x = TIOCGWINSZ;
6643  ;
6644  return 0;
6645}
6646_ACEOF
6647if ac_fn_c_try_link "$LINENO"
6648then :
6649  zsh_cv_header_sys_ioctl_h_tiocgwinsz=yes
6650else $as_nop
6651  zsh_cv_header_sys_ioctl_h_tiocgwinsz=no
6652fi
6653rm -f core conftest.err conftest.$ac_objext conftest.beam \
6654    conftest$ac_exeext conftest.$ac_ext
6655fi
6656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_sys_ioctl_h_tiocgwinsz" >&5
6657printf "%s\n" "$zsh_cv_header_sys_ioctl_h_tiocgwinsz" >&6; }
6658  if test x$zsh_cv_header_sys_ioctl_h_tiocgwinsz = xyes; then
6659    printf "%s\n" "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
6660
6661  fi
6662fi
6663
6664
6665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for streams headers including struct winsize" >&5
6666printf %s "checking for streams headers including struct winsize... " >&6; }
6667if test ${ac_cv_winsize_in_ptem+y}
6668then :
6669  printf %s "(cached) " >&6
6670else $as_nop
6671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672/* end confdefs.h.  */
6673#include <sys/stream.h>
6674#include <sys/ptem.h>
6675int
6676main (void)
6677{
6678struct winsize wsz
6679  ;
6680  return 0;
6681}
6682_ACEOF
6683if ac_fn_c_try_compile "$LINENO"
6684then :
6685  ac_cv_winsize_in_ptem=yes
6686else $as_nop
6687  ac_cv_winsize_in_ptem=no
6688fi
6689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6690fi
6691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_winsize_in_ptem" >&5
6692printf "%s\n" "$ac_cv_winsize_in_ptem" >&6; }
6693if test x$ac_cv_winsize_in_ptem = xyes; then
6694  printf "%s\n" "#define WINSIZE_IN_PTEM 1" >>confdefs.h
6695
6696fi
6697
6698
6699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf in -lc" >&5
6700printf %s "checking for printf in -lc... " >&6; }
6701if test ${ac_cv_lib_c_printf+y}
6702then :
6703  printf %s "(cached) " >&6
6704else $as_nop
6705  ac_check_lib_save_LIBS=$LIBS
6706LIBS="-lc  $LIBS"
6707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708/* end confdefs.h.  */
6709
6710/* Override any GCC internal prototype to avoid an error.
6711   Use char because int might match the return type of a GCC
6712   builtin and then its argument prototype would still apply.  */
6713char printf ();
6714int
6715main (void)
6716{
6717return printf ();
6718  ;
6719  return 0;
6720}
6721_ACEOF
6722if ac_fn_c_try_link "$LINENO"
6723then :
6724  ac_cv_lib_c_printf=yes
6725else $as_nop
6726  ac_cv_lib_c_printf=no
6727fi
6728rm -f core conftest.err conftest.$ac_objext conftest.beam \
6729    conftest$ac_exeext conftest.$ac_ext
6730LIBS=$ac_check_lib_save_LIBS
6731fi
6732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_printf" >&5
6733printf "%s\n" "$ac_cv_lib_c_printf" >&6; }
6734if test "x$ac_cv_lib_c_printf" = xyes
6735then :
6736  LIBS="$LIBS -lc"
6737fi
6738
6739
6740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6741printf %s "checking for pow in -lm... " >&6; }
6742if test ${ac_cv_lib_m_pow+y}
6743then :
6744  printf %s "(cached) " >&6
6745else $as_nop
6746  ac_check_lib_save_LIBS=$LIBS
6747LIBS="-lm  $LIBS"
6748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h.  */
6750
6751/* Override any GCC internal prototype to avoid an error.
6752   Use char because int might match the return type of a GCC
6753   builtin and then its argument prototype would still apply.  */
6754char pow ();
6755int
6756main (void)
6757{
6758return pow ();
6759  ;
6760  return 0;
6761}
6762_ACEOF
6763if ac_fn_c_try_link "$LINENO"
6764then :
6765  ac_cv_lib_m_pow=yes
6766else $as_nop
6767  ac_cv_lib_m_pow=no
6768fi
6769rm -f core conftest.err conftest.$ac_objext conftest.beam \
6770    conftest$ac_exeext conftest.$ac_ext
6771LIBS=$ac_check_lib_save_LIBS
6772fi
6773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6774printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
6775if test "x$ac_cv_lib_m_pow" = xyes
6776then :
6777  printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
6778
6779  LIBS="-lm $LIBS"
6780
6781fi
6782
6783
6784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
6785printf %s "checking for clock_gettime in -lrt... " >&6; }
6786if test ${ac_cv_lib_rt_clock_gettime+y}
6787then :
6788  printf %s "(cached) " >&6
6789else $as_nop
6790  ac_check_lib_save_LIBS=$LIBS
6791LIBS="  $LIBS"
6792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793/* end confdefs.h.  */
6794
6795/* Override any GCC internal prototype to avoid an error.
6796   Use char because int might match the return type of a GCC
6797   builtin and then its argument prototype would still apply.  */
6798char clock_gettime ();
6799int
6800main (void)
6801{
6802return clock_gettime ();
6803  ;
6804  return 0;
6805}
6806_ACEOF
6807if ac_fn_c_try_link "$LINENO"
6808then :
6809  ac_cv_lib_rt_clock_gettime=yes
6810else $as_nop
6811  ac_cv_lib_rt_clock_gettime=no
6812fi
6813rm -f core conftest.err conftest.$ac_objext conftest.beam \
6814    conftest$ac_exeext conftest.$ac_ext
6815LIBS=$ac_check_lib_save_LIBS
6816fi
6817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
6818printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
6819if test "x$ac_cv_lib_rt_clock_gettime" = xyes
6820then :
6821  printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
6822
6823  LIBS=" $LIBS"
6824
6825fi
6826
6827
6828if 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
6829  ncursesw_test=ncursesw
6830  ncurses_test=ncurses
6831else
6832  ncursesw_test=
6833  ncurses_test=
6834fi
6835
6836
6837# Check whether --with-term-lib was given.
6838if test ${with_term_lib+y}
6839then :
6840  withval=$with_term_lib; if test "x$withval" != xno && test "x$withval" != x ; then
6841  termcap_curses_order="$withval"
6842  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tigetstr" >&5
6843printf %s "checking for library containing tigetstr... " >&6; }
6844if test ${ac_cv_search_tigetstr+y}
6845then :
6846  printf %s "(cached) " >&6
6847else $as_nop
6848  ac_func_search_save_LIBS=$LIBS
6849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850/* end confdefs.h.  */
6851
6852/* Override any GCC internal prototype to avoid an error.
6853   Use char because int might match the return type of a GCC
6854   builtin and then its argument prototype would still apply.  */
6855char tigetstr ();
6856int
6857main (void)
6858{
6859return tigetstr ();
6860  ;
6861  return 0;
6862}
6863_ACEOF
6864for ac_lib in '' $termcap_curses_order
6865do
6866  if test -z "$ac_lib"; then
6867    ac_res="none required"
6868  else
6869    ac_res=-l$ac_lib
6870    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6871  fi
6872  if ac_fn_c_try_link "$LINENO"
6873then :
6874  ac_cv_search_tigetstr=$ac_res
6875fi
6876rm -f core conftest.err conftest.$ac_objext conftest.beam \
6877    conftest$ac_exeext
6878  if test ${ac_cv_search_tigetstr+y}
6879then :
6880  break
6881fi
6882done
6883if test ${ac_cv_search_tigetstr+y}
6884then :
6885
6886else $as_nop
6887  ac_cv_search_tigetstr=no
6888fi
6889rm conftest.$ac_ext
6890LIBS=$ac_func_search_save_LIBS
6891fi
6892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tigetstr" >&5
6893printf "%s\n" "$ac_cv_search_tigetstr" >&6; }
6894ac_res=$ac_cv_search_tigetstr
6895if test "$ac_res" != no
6896then :
6897  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6898
6899fi
6900
6901else
6902  termcap_curses_order="$ncursesw_test $ncurses_test tinfow tinfo termcap curses"
6903fi
6904else $as_nop
6905  case "$host_os" in
6906  solaris*)
6907   termcap_curses_order="$ncursesw_test $ncurses_test curses termcap" ;;
6908  hpux10.*|hpux11.*)
6909   DL_EXT="${DL_EXT=sl}"
6910   termcap_curses_order="Hcurses $ncursesw_test $ncurses_test curses termcap" ;;
6911  *)
6912   termcap_curses_order="$ncursesw_test $ncurses_test tinfow tinfo termcap curses" ;;
6913esac
6914fi
6915
6916
6917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _XOPEN_SOURCE_EXTENDED should not be defined" >&5
6918printf %s "checking if _XOPEN_SOURCE_EXTENDED should not be defined... " >&6; }
6919if test ${zsh_cv_no_xopen+y}
6920then :
6921  printf %s "(cached) " >&6
6922else $as_nop
6923  case "$host_os" in
6924  *freebsd5*|*freebsd6.[012]*|*aix*)
6925  zsh_cv_no_xopen=yes
6926  ;;
6927  *)
6928  zsh_cv_no_xopen=no
6929  ;;
6930esac
6931fi
6932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_no_xopen" >&5
6933printf "%s\n" "$zsh_cv_no_xopen" >&6; }
6934if test x$zsh_cv_no_xopen = xyes; then
6935  printf "%s\n" "#define ZSH_NO_XOPEN 1" >>confdefs.h
6936
6937fi
6938
6939LIBS_save_pre_term="$LIBS"
6940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tigetstr" >&5
6941printf %s "checking for library containing tigetstr... " >&6; }
6942if test ${ac_cv_search_tigetstr+y}
6943then :
6944  printf %s "(cached) " >&6
6945else $as_nop
6946  ac_func_search_save_LIBS=$LIBS
6947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949
6950/* Override any GCC internal prototype to avoid an error.
6951   Use char because int might match the return type of a GCC
6952   builtin and then its argument prototype would still apply.  */
6953char tigetstr ();
6954int
6955main (void)
6956{
6957return tigetstr ();
6958  ;
6959  return 0;
6960}
6961_ACEOF
6962for ac_lib in '' $termcap_curses_order
6963do
6964  if test -z "$ac_lib"; then
6965    ac_res="none required"
6966  else
6967    ac_res=-l$ac_lib
6968    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6969  fi
6970  if ac_fn_c_try_link "$LINENO"
6971then :
6972  ac_cv_search_tigetstr=$ac_res
6973fi
6974rm -f core conftest.err conftest.$ac_objext conftest.beam \
6975    conftest$ac_exeext
6976  if test ${ac_cv_search_tigetstr+y}
6977then :
6978  break
6979fi
6980done
6981if test ${ac_cv_search_tigetstr+y}
6982then :
6983
6984else $as_nop
6985  ac_cv_search_tigetstr=no
6986fi
6987rm conftest.$ac_ext
6988LIBS=$ac_func_search_save_LIBS
6989fi
6990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tigetstr" >&5
6991printf "%s\n" "$ac_cv_search_tigetstr" >&6; }
6992ac_res=$ac_cv_search_tigetstr
6993if test "$ac_res" != no
6994then :
6995  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6996
6997fi
6998
6999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tigetflag" >&5
7000printf %s "checking for library containing tigetflag... " >&6; }
7001if test ${ac_cv_search_tigetflag+y}
7002then :
7003  printf %s "(cached) " >&6
7004else $as_nop
7005  ac_func_search_save_LIBS=$LIBS
7006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h.  */
7008
7009/* Override any GCC internal prototype to avoid an error.
7010   Use char because int might match the return type of a GCC
7011   builtin and then its argument prototype would still apply.  */
7012char tigetflag ();
7013int
7014main (void)
7015{
7016return tigetflag ();
7017  ;
7018  return 0;
7019}
7020_ACEOF
7021for ac_lib in '' $termcap_curses_order
7022do
7023  if test -z "$ac_lib"; then
7024    ac_res="none required"
7025  else
7026    ac_res=-l$ac_lib
7027    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7028  fi
7029  if ac_fn_c_try_link "$LINENO"
7030then :
7031  ac_cv_search_tigetflag=$ac_res
7032fi
7033rm -f core conftest.err conftest.$ac_objext conftest.beam \
7034    conftest$ac_exeext
7035  if test ${ac_cv_search_tigetflag+y}
7036then :
7037  break
7038fi
7039done
7040if test ${ac_cv_search_tigetflag+y}
7041then :
7042
7043else $as_nop
7044  ac_cv_search_tigetflag=no
7045fi
7046rm conftest.$ac_ext
7047LIBS=$ac_func_search_save_LIBS
7048fi
7049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tigetflag" >&5
7050printf "%s\n" "$ac_cv_search_tigetflag" >&6; }
7051ac_res=$ac_cv_search_tigetflag
7052if test "$ac_res" != no
7053then :
7054  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7055
7056fi
7057
7058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7059printf %s "checking for library containing tgetent... " >&6; }
7060if test ${ac_cv_search_tgetent+y}
7061then :
7062  printf %s "(cached) " >&6
7063else $as_nop
7064  ac_func_search_save_LIBS=$LIBS
7065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066/* end confdefs.h.  */
7067
7068/* Override any GCC internal prototype to avoid an error.
7069   Use char because int might match the return type of a GCC
7070   builtin and then its argument prototype would still apply.  */
7071char tgetent ();
7072int
7073main (void)
7074{
7075return tgetent ();
7076  ;
7077  return 0;
7078}
7079_ACEOF
7080for ac_lib in '' $termcap_curses_order
7081do
7082  if test -z "$ac_lib"; then
7083    ac_res="none required"
7084  else
7085    ac_res=-l$ac_lib
7086    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7087  fi
7088  if ac_fn_c_try_link "$LINENO"
7089then :
7090  ac_cv_search_tgetent=$ac_res
7091fi
7092rm -f core conftest.err conftest.$ac_objext conftest.beam \
7093    conftest$ac_exeext
7094  if test ${ac_cv_search_tgetent+y}
7095then :
7096  break
7097fi
7098done
7099if test ${ac_cv_search_tgetent+y}
7100then :
7101
7102else $as_nop
7103  ac_cv_search_tgetent=no
7104fi
7105rm conftest.$ac_ext
7106LIBS=$ac_func_search_save_LIBS
7107fi
7108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7109printf "%s\n" "$ac_cv_search_tgetent" >&6; }
7110ac_res=$ac_cv_search_tgetent
7111if test "$ac_res" != no
7112then :
7113  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7114  true
7115else $as_nop
7116  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7117printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7118as_fn_error 255 "\"No terminal handling library was found on your system.
7119This is probably a library called 'curses' or 'ncurses'.  You may
7120need to install a package called 'curses-devel' or 'ncurses-devel' on your
7121system.\"
7122See \`config.log' for more details" "$LINENO" 5; }
7123fi
7124
7125       for ac_header in curses.h
7126do :
7127  ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
7128if test "x$ac_cv_header_curses_h" = xyes
7129then :
7130  printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
7131
7132else $as_nop
7133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris 8 curses.h mistake" >&5
7134printf %s "checking for Solaris 8 curses.h mistake... " >&6; }
7135if test ${ac_cv_header_curses_solaris+y}
7136then :
7137  printf %s "(cached) " >&6
7138else $as_nop
7139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140/* end confdefs.h.  */
7141#include <curses.h>
7142int
7143main (void)
7144{
7145
7146  ;
7147  return 0;
7148}
7149_ACEOF
7150if ac_fn_c_try_compile "$LINENO"
7151then :
7152  ac_cv_header_curses_h=yes
7153ac_cv_header_curses_solaris=yes
7154else $as_nop
7155  ac_cv_header_curses_h=no
7156ac_cv_header_curses_solaris=no
7157fi
7158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7159fi
7160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_curses_solaris" >&5
7161printf "%s\n" "$ac_cv_header_curses_solaris" >&6; }
7162if test x$ac_cv_header_curses_solaris = xyes; then
7163printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
7164
7165fi
7166fi
7167
7168done
7169
7170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to ignore ncurses" >&5
7171printf %s "checking if we need to ignore ncurses... " >&6; }
7172if test ${zsh_cv_ignore_ncurses+y}
7173then :
7174  printf %s "(cached) " >&6
7175else $as_nop
7176  case $LIBS in
7177  *-lncurses*)
7178  zsh_cv_ignore_ncurses=no
7179  ;;
7180  *)
7181                    LIBS_save="$LIBS"
7182        ac_cv_search_tigetstr_SAVE="$ac_cv_search_tigetstr"
7183    ac_cv_search_tigetnum_SAVE="$ac_cv_search_tigetnum"
7184    ac_cv_search_tigetflag_SAVE="$ac_cv_search_tigetflag"
7185    ac_cv_search_tgetent_SAVE="$ac_cv_search_tgetent"
7186    unset ac_cv_search_tigetstr ac_cv_search_tigetnum ac_cv_search_tigetflag ac_cv_search_tgetent
7187    LIBS="$LIBS_save_pre_term"
7188
7189        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tigetstr" >&5
7190printf %s "checking for library containing tigetstr... " >&6; }
7191if test ${ac_cv_search_tigetstr+y}
7192then :
7193  printf %s "(cached) " >&6
7194else $as_nop
7195  ac_func_search_save_LIBS=$LIBS
7196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197/* end confdefs.h.  */
7198
7199/* Override any GCC internal prototype to avoid an error.
7200   Use char because int might match the return type of a GCC
7201   builtin and then its argument prototype would still apply.  */
7202char tigetstr ();
7203int
7204main (void)
7205{
7206return tigetstr ();
7207  ;
7208  return 0;
7209}
7210_ACEOF
7211for ac_lib in '' ncursesw ncurses curses
7212do
7213  if test -z "$ac_lib"; then
7214    ac_res="none required"
7215  else
7216    ac_res=-l$ac_lib
7217    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7218  fi
7219  if ac_fn_c_try_link "$LINENO"
7220then :
7221  ac_cv_search_tigetstr=$ac_res
7222fi
7223rm -f core conftest.err conftest.$ac_objext conftest.beam \
7224    conftest$ac_exeext
7225  if test ${ac_cv_search_tigetstr+y}
7226then :
7227  break
7228fi
7229done
7230if test ${ac_cv_search_tigetstr+y}
7231then :
7232
7233else $as_nop
7234  ac_cv_search_tigetstr=no
7235fi
7236rm conftest.$ac_ext
7237LIBS=$ac_func_search_save_LIBS
7238fi
7239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tigetstr" >&5
7240printf "%s\n" "$ac_cv_search_tigetstr" >&6; }
7241ac_res=$ac_cv_search_tigetstr
7242if test "$ac_res" != no
7243then :
7244  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7245
7246fi
7247
7248    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tigetnum" >&5
7249printf %s "checking for library containing tigetnum... " >&6; }
7250if test ${ac_cv_search_tigetnum+y}
7251then :
7252  printf %s "(cached) " >&6
7253else $as_nop
7254  ac_func_search_save_LIBS=$LIBS
7255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256/* end confdefs.h.  */
7257
7258/* Override any GCC internal prototype to avoid an error.
7259   Use char because int might match the return type of a GCC
7260   builtin and then its argument prototype would still apply.  */
7261char tigetnum ();
7262int
7263main (void)
7264{
7265return tigetnum ();
7266  ;
7267  return 0;
7268}
7269_ACEOF
7270for ac_lib in '' ncursesw ncurses curses
7271do
7272  if test -z "$ac_lib"; then
7273    ac_res="none required"
7274  else
7275    ac_res=-l$ac_lib
7276    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7277  fi
7278  if ac_fn_c_try_link "$LINENO"
7279then :
7280  ac_cv_search_tigetnum=$ac_res
7281fi
7282rm -f core conftest.err conftest.$ac_objext conftest.beam \
7283    conftest$ac_exeext
7284  if test ${ac_cv_search_tigetnum+y}
7285then :
7286  break
7287fi
7288done
7289if test ${ac_cv_search_tigetnum+y}
7290then :
7291
7292else $as_nop
7293  ac_cv_search_tigetnum=no
7294fi
7295rm conftest.$ac_ext
7296LIBS=$ac_func_search_save_LIBS
7297fi
7298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tigetnum" >&5
7299printf "%s\n" "$ac_cv_search_tigetnum" >&6; }
7300ac_res=$ac_cv_search_tigetnum
7301if test "$ac_res" != no
7302then :
7303  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7304
7305fi
7306
7307    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tigetflag" >&5
7308printf %s "checking for library containing tigetflag... " >&6; }
7309if test ${ac_cv_search_tigetflag+y}
7310then :
7311  printf %s "(cached) " >&6
7312else $as_nop
7313  ac_func_search_save_LIBS=$LIBS
7314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315/* end confdefs.h.  */
7316
7317/* Override any GCC internal prototype to avoid an error.
7318   Use char because int might match the return type of a GCC
7319   builtin and then its argument prototype would still apply.  */
7320char tigetflag ();
7321int
7322main (void)
7323{
7324return tigetflag ();
7325  ;
7326  return 0;
7327}
7328_ACEOF
7329for ac_lib in '' ncursesw ncurses curses
7330do
7331  if test -z "$ac_lib"; then
7332    ac_res="none required"
7333  else
7334    ac_res=-l$ac_lib
7335    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7336  fi
7337  if ac_fn_c_try_link "$LINENO"
7338then :
7339  ac_cv_search_tigetflag=$ac_res
7340fi
7341rm -f core conftest.err conftest.$ac_objext conftest.beam \
7342    conftest$ac_exeext
7343  if test ${ac_cv_search_tigetflag+y}
7344then :
7345  break
7346fi
7347done
7348if test ${ac_cv_search_tigetflag+y}
7349then :
7350
7351else $as_nop
7352  ac_cv_search_tigetflag=no
7353fi
7354rm conftest.$ac_ext
7355LIBS=$ac_func_search_save_LIBS
7356fi
7357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tigetflag" >&5
7358printf "%s\n" "$ac_cv_search_tigetflag" >&6; }
7359ac_res=$ac_cv_search_tigetflag
7360if test "$ac_res" != no
7361then :
7362  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7363
7364fi
7365
7366    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7367printf %s "checking for library containing tgetent... " >&6; }
7368if test ${ac_cv_search_tgetent+y}
7369then :
7370  printf %s "(cached) " >&6
7371else $as_nop
7372  ac_func_search_save_LIBS=$LIBS
7373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374/* end confdefs.h.  */
7375
7376/* Override any GCC internal prototype to avoid an error.
7377   Use char because int might match the return type of a GCC
7378   builtin and then its argument prototype would still apply.  */
7379char tgetent ();
7380int
7381main (void)
7382{
7383return tgetent ();
7384  ;
7385  return 0;
7386}
7387_ACEOF
7388for ac_lib in '' ncursesw ncurses curses
7389do
7390  if test -z "$ac_lib"; then
7391    ac_res="none required"
7392  else
7393    ac_res=-l$ac_lib
7394    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7395  fi
7396  if ac_fn_c_try_link "$LINENO"
7397then :
7398  ac_cv_search_tgetent=$ac_res
7399fi
7400rm -f core conftest.err conftest.$ac_objext conftest.beam \
7401    conftest$ac_exeext
7402  if test ${ac_cv_search_tgetent+y}
7403then :
7404  break
7405fi
7406done
7407if test ${ac_cv_search_tgetent+y}
7408then :
7409
7410else $as_nop
7411  ac_cv_search_tgetent=no
7412fi
7413rm conftest.$ac_ext
7414LIBS=$ac_func_search_save_LIBS
7415fi
7416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7417printf "%s\n" "$ac_cv_search_tgetent" >&6; }
7418ac_res=$ac_cv_search_tgetent
7419if test "$ac_res" != no
7420then :
7421  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7422
7423fi
7424
7425    LIBS_result="$LIBS"
7426
7427    LIBS="$LIBS_save"
7428        ac_cv_search_tigetstr="$ac_cv_search_tigetstr_SAVE"
7429    ac_cv_search_tigetnum="$ac_cv_search_tigetnum_SAVE"
7430    ac_cv_search_tigetflag="$ac_cv_search_tigetflag_SAVE"
7431    ac_cv_search_tgetent="$ac_cv_search_tgetent_SAVE"
7432
7433    case $LIBS_result in
7434      *-lncurses*|*-lcurses*)
7435                        zsh_cv_ignore_ncurses=yes
7436        ;;
7437      *)
7438                                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing initscr" >&5
7439printf %s "checking for library containing initscr... " >&6; }
7440if test ${ac_cv_search_initscr+y}
7441then :
7442  printf %s "(cached) " >&6
7443else $as_nop
7444  ac_func_search_save_LIBS=$LIBS
7445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446/* end confdefs.h.  */
7447
7448/* Override any GCC internal prototype to avoid an error.
7449   Use char because int might match the return type of a GCC
7450   builtin and then its argument prototype would still apply.  */
7451char initscr ();
7452int
7453main (void)
7454{
7455return initscr ();
7456  ;
7457  return 0;
7458}
7459_ACEOF
7460for ac_lib in '' ncursesw ncurses curses
7461do
7462  if test -z "$ac_lib"; then
7463    ac_res="none required"
7464  else
7465    ac_res=-l$ac_lib
7466    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7467  fi
7468  if ac_fn_c_try_link "$LINENO"
7469then :
7470  ac_cv_search_initscr=$ac_res
7471fi
7472rm -f core conftest.err conftest.$ac_objext conftest.beam \
7473    conftest$ac_exeext
7474  if test ${ac_cv_search_initscr+y}
7475then :
7476  break
7477fi
7478done
7479if test ${ac_cv_search_initscr+y}
7480then :
7481
7482else $as_nop
7483  ac_cv_search_initscr=no
7484fi
7485rm conftest.$ac_ext
7486LIBS=$ac_func_search_save_LIBS
7487fi
7488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initscr" >&5
7489printf "%s\n" "$ac_cv_search_initscr" >&6; }
7490ac_res=$ac_cv_search_initscr
7491if test "$ac_res" != no
7492then :
7493  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7494
7495fi
7496
7497        case $LIBS in
7498          *-lncurses*|*-lcurses*)
7499                                    zsh_cv_ignore_ncurses=no
7500          ;;
7501          *)
7502            zsh_cv_ignore_ncurses=yes
7503          ;;
7504        esac
7505    esac
7506  ;;
7507esac
7508fi
7509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_ignore_ncurses" >&5
7510printf "%s\n" "$zsh_cv_ignore_ncurses" >&6; }
7511
7512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
7513printf %s "checking for library containing getpwnam... " >&6; }
7514if test ${ac_cv_search_getpwnam+y}
7515then :
7516  printf %s "(cached) " >&6
7517else $as_nop
7518  ac_func_search_save_LIBS=$LIBS
7519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520/* end confdefs.h.  */
7521
7522/* Override any GCC internal prototype to avoid an error.
7523   Use char because int might match the return type of a GCC
7524   builtin and then its argument prototype would still apply.  */
7525char getpwnam ();
7526int
7527main (void)
7528{
7529return getpwnam ();
7530  ;
7531  return 0;
7532}
7533_ACEOF
7534for ac_lib in '' nsl
7535do
7536  if test -z "$ac_lib"; then
7537    ac_res="none required"
7538  else
7539    ac_res=-l$ac_lib
7540    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7541  fi
7542  if ac_fn_c_try_link "$LINENO"
7543then :
7544  ac_cv_search_getpwnam=$ac_res
7545fi
7546rm -f core conftest.err conftest.$ac_objext conftest.beam \
7547    conftest$ac_exeext
7548  if test ${ac_cv_search_getpwnam+y}
7549then :
7550  break
7551fi
7552done
7553if test ${ac_cv_search_getpwnam+y}
7554then :
7555
7556else $as_nop
7557  ac_cv_search_getpwnam=no
7558fi
7559rm conftest.$ac_ext
7560LIBS=$ac_func_search_save_LIBS
7561fi
7562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
7563printf "%s\n" "$ac_cv_search_getpwnam" >&6; }
7564ac_res=$ac_cv_search_getpwnam
7565if test "$ac_res" != no
7566then :
7567  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7568
7569fi
7570
7571
7572if test `echo $host_os | sed 's/^\(unicos\).*/\1/'` = unicos; then
7573  LIBS="-lcraylm -lkrb -lnisdb -lnsl -lrpcsvc $LIBS"
7574fi
7575
7576if test "x$dynamic" = xyes; then
7577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7578printf %s "checking for dlopen in -ldl... " >&6; }
7579if test ${ac_cv_lib_dl_dlopen+y}
7580then :
7581  printf %s "(cached) " >&6
7582else $as_nop
7583  ac_check_lib_save_LIBS=$LIBS
7584LIBS="-ldl  $LIBS"
7585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586/* end confdefs.h.  */
7587
7588/* Override any GCC internal prototype to avoid an error.
7589   Use char because int might match the return type of a GCC
7590   builtin and then its argument prototype would still apply.  */
7591char dlopen ();
7592int
7593main (void)
7594{
7595return dlopen ();
7596  ;
7597  return 0;
7598}
7599_ACEOF
7600if ac_fn_c_try_link "$LINENO"
7601then :
7602  ac_cv_lib_dl_dlopen=yes
7603else $as_nop
7604  ac_cv_lib_dl_dlopen=no
7605fi
7606rm -f core conftest.err conftest.$ac_objext conftest.beam \
7607    conftest$ac_exeext conftest.$ac_ext
7608LIBS=$ac_check_lib_save_LIBS
7609fi
7610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7611printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
7612if test "x$ac_cv_lib_dl_dlopen" = xyes
7613then :
7614  printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
7615
7616  LIBS="-ldl $LIBS"
7617
7618fi
7619
7620fi
7621
7622if test x$enable_cap = xyes; then
7623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
7624printf %s "checking for cap_get_proc in -lcap... " >&6; }
7625if test ${ac_cv_lib_cap_cap_get_proc+y}
7626then :
7627  printf %s "(cached) " >&6
7628else $as_nop
7629  ac_check_lib_save_LIBS=$LIBS
7630LIBS="-lcap  $LIBS"
7631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632/* end confdefs.h.  */
7633
7634/* Override any GCC internal prototype to avoid an error.
7635   Use char because int might match the return type of a GCC
7636   builtin and then its argument prototype would still apply.  */
7637char cap_get_proc ();
7638int
7639main (void)
7640{
7641return cap_get_proc ();
7642  ;
7643  return 0;
7644}
7645_ACEOF
7646if ac_fn_c_try_link "$LINENO"
7647then :
7648  ac_cv_lib_cap_cap_get_proc=yes
7649else $as_nop
7650  ac_cv_lib_cap_cap_get_proc=no
7651fi
7652rm -f core conftest.err conftest.$ac_objext conftest.beam \
7653    conftest$ac_exeext conftest.$ac_ext
7654LIBS=$ac_check_lib_save_LIBS
7655fi
7656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_get_proc" >&5
7657printf "%s\n" "$ac_cv_lib_cap_cap_get_proc" >&6; }
7658if test "x$ac_cv_lib_cap_cap_get_proc" = xyes
7659then :
7660  printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h
7661
7662  LIBS="-lcap $LIBS"
7663
7664fi
7665
7666fi
7667
7668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7669printf %s "checking for socket in -lsocket... " >&6; }
7670if test ${ac_cv_lib_socket_socket+y}
7671then :
7672  printf %s "(cached) " >&6
7673else $as_nop
7674  ac_check_lib_save_LIBS=$LIBS
7675LIBS="-lsocket  $LIBS"
7676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677/* end confdefs.h.  */
7678
7679/* Override any GCC internal prototype to avoid an error.
7680   Use char because int might match the return type of a GCC
7681   builtin and then its argument prototype would still apply.  */
7682char socket ();
7683int
7684main (void)
7685{
7686return socket ();
7687  ;
7688  return 0;
7689}
7690_ACEOF
7691if ac_fn_c_try_link "$LINENO"
7692then :
7693  ac_cv_lib_socket_socket=yes
7694else $as_nop
7695  ac_cv_lib_socket_socket=no
7696fi
7697rm -f core conftest.err conftest.$ac_objext conftest.beam \
7698    conftest$ac_exeext conftest.$ac_ext
7699LIBS=$ac_check_lib_save_LIBS
7700fi
7701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7702printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
7703if test "x$ac_cv_lib_socket_socket" = xyes
7704then :
7705  printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
7706
7707  LIBS="-lsocket $LIBS"
7708
7709fi
7710
7711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname2" >&5
7712printf %s "checking for library containing gethostbyname2... " >&6; }
7713if test ${ac_cv_search_gethostbyname2+y}
7714then :
7715  printf %s "(cached) " >&6
7716else $as_nop
7717  ac_func_search_save_LIBS=$LIBS
7718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719/* end confdefs.h.  */
7720
7721/* Override any GCC internal prototype to avoid an error.
7722   Use char because int might match the return type of a GCC
7723   builtin and then its argument prototype would still apply.  */
7724char gethostbyname2 ();
7725int
7726main (void)
7727{
7728return gethostbyname2 ();
7729  ;
7730  return 0;
7731}
7732_ACEOF
7733for ac_lib in '' bind
7734do
7735  if test -z "$ac_lib"; then
7736    ac_res="none required"
7737  else
7738    ac_res=-l$ac_lib
7739    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7740  fi
7741  if ac_fn_c_try_link "$LINENO"
7742then :
7743  ac_cv_search_gethostbyname2=$ac_res
7744fi
7745rm -f core conftest.err conftest.$ac_objext conftest.beam \
7746    conftest$ac_exeext
7747  if test ${ac_cv_search_gethostbyname2+y}
7748then :
7749  break
7750fi
7751done
7752if test ${ac_cv_search_gethostbyname2+y}
7753then :
7754
7755else $as_nop
7756  ac_cv_search_gethostbyname2=no
7757fi
7758rm conftest.$ac_ext
7759LIBS=$ac_func_search_save_LIBS
7760fi
7761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname2" >&5
7762printf "%s\n" "$ac_cv_search_gethostbyname2" >&6; }
7763ac_res=$ac_cv_search_gethostbyname2
7764if test "$ac_res" != no
7765then :
7766  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7767
7768fi
7769
7770
7771case $LIBS in
7772  *-lbind*)
7773  ac_fn_c_check_header_compile "$LINENO" "bind/netdb.h" "ac_cv_header_bind_netdb_h" "$ac_includes_default"
7774if test "x$ac_cv_header_bind_netdb_h" = xyes
7775then :
7776  printf "%s\n" "#define HAVE_BIND_NETDB_H 1" >>confdefs.h
7777
7778fi
7779
7780  ;;
7781esac
7782
7783
7784if test "x$ac_cv_header_iconv_h" = "xyes"; then
7785  ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
7786if test "x$ac_cv_func_iconv" = xyes
7787then :
7788  ac_found_iconv=yes
7789else $as_nop
7790  ac_found_iconv=no
7791fi
7792
7793  if test "x$ac_found_iconv" = "xno"; then
7794    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
7795printf %s "checking for iconv in -liconv... " >&6; }
7796if test ${ac_cv_lib_iconv_iconv+y}
7797then :
7798  printf %s "(cached) " >&6
7799else $as_nop
7800  ac_check_lib_save_LIBS=$LIBS
7801LIBS="-liconv  $LIBS"
7802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803/* end confdefs.h.  */
7804
7805/* Override any GCC internal prototype to avoid an error.
7806   Use char because int might match the return type of a GCC
7807   builtin and then its argument prototype would still apply.  */
7808char iconv ();
7809int
7810main (void)
7811{
7812return iconv ();
7813  ;
7814  return 0;
7815}
7816_ACEOF
7817if ac_fn_c_try_link "$LINENO"
7818then :
7819  ac_cv_lib_iconv_iconv=yes
7820else $as_nop
7821  ac_cv_lib_iconv_iconv=no
7822fi
7823rm -f core conftest.err conftest.$ac_objext conftest.beam \
7824    conftest$ac_exeext conftest.$ac_ext
7825LIBS=$ac_check_lib_save_LIBS
7826fi
7827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv" >&5
7828printf "%s\n" "$ac_cv_lib_iconv_iconv" >&6; }
7829if test "x$ac_cv_lib_iconv_iconv" = xyes
7830then :
7831  ac_found_iconv=yes
7832fi
7833
7834    if test "x$ac_found_iconv" = "xno"; then
7835      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiconv in -liconv" >&5
7836printf %s "checking for libiconv in -liconv... " >&6; }
7837if test ${ac_cv_lib_iconv_libiconv+y}
7838then :
7839  printf %s "(cached) " >&6
7840else $as_nop
7841  ac_check_lib_save_LIBS=$LIBS
7842LIBS="-liconv  $LIBS"
7843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844/* end confdefs.h.  */
7845
7846/* Override any GCC internal prototype to avoid an error.
7847   Use char because int might match the return type of a GCC
7848   builtin and then its argument prototype would still apply.  */
7849char libiconv ();
7850int
7851main (void)
7852{
7853return libiconv ();
7854  ;
7855  return 0;
7856}
7857_ACEOF
7858if ac_fn_c_try_link "$LINENO"
7859then :
7860  ac_cv_lib_iconv_libiconv=yes
7861else $as_nop
7862  ac_cv_lib_iconv_libiconv=no
7863fi
7864rm -f core conftest.err conftest.$ac_objext conftest.beam \
7865    conftest$ac_exeext conftest.$ac_ext
7866LIBS=$ac_check_lib_save_LIBS
7867fi
7868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv" >&5
7869printf "%s\n" "$ac_cv_lib_iconv_libiconv" >&6; }
7870if test "x$ac_cv_lib_iconv_libiconv" = xyes
7871then :
7872  ac_found_iconv=yes
7873fi
7874
7875    fi
7876    if test "x$ac_found_iconv" != "xno"; then
7877      LIBS="-liconv $LIBS"
7878    fi
7879  else
7880        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
7881printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
7882if test ${ac_cv_c_undeclared_builtin_options+y}
7883then :
7884  printf %s "(cached) " >&6
7885else $as_nop
7886  ac_save_CFLAGS=$CFLAGS
7887   ac_cv_c_undeclared_builtin_options='cannot detect'
7888   for ac_arg in '' -fno-builtin; do
7889     CFLAGS="$ac_save_CFLAGS $ac_arg"
7890     # This test program should *not* compile successfully.
7891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892/* end confdefs.h.  */
7893
7894int
7895main (void)
7896{
7897(void) strchr;
7898  ;
7899  return 0;
7900}
7901_ACEOF
7902if ac_fn_c_try_compile "$LINENO"
7903then :
7904
7905else $as_nop
7906  # This test program should compile successfully.
7907        # No library function is consistently available on
7908        # freestanding implementations, so test against a dummy
7909        # declaration.  Include always-available headers on the
7910        # off chance that they somehow elicit warnings.
7911        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912/* end confdefs.h.  */
7913#include <float.h>
7914#include <limits.h>
7915#include <stdarg.h>
7916#include <stddef.h>
7917extern void ac_decl (int, char *);
7918
7919int
7920main (void)
7921{
7922(void) ac_decl (0, (char *) 0);
7923  (void) ac_decl;
7924
7925  ;
7926  return 0;
7927}
7928_ACEOF
7929if ac_fn_c_try_compile "$LINENO"
7930then :
7931  if test x"$ac_arg" = x
7932then :
7933  ac_cv_c_undeclared_builtin_options='none needed'
7934else $as_nop
7935  ac_cv_c_undeclared_builtin_options=$ac_arg
7936fi
7937          break
7938fi
7939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7940fi
7941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7942    done
7943    CFLAGS=$ac_save_CFLAGS
7944
7945fi
7946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
7947printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
7948  case $ac_cv_c_undeclared_builtin_options in #(
7949  'cannot detect') :
7950    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7951printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7952as_fn_error $? "cannot make $CC report undeclared builtins
7953See \`config.log' for more details" "$LINENO" 5; } ;; #(
7954  'none needed') :
7955    ac_c_undeclared_builtin_options='' ;; #(
7956  *) :
7957    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
7958esac
7959
7960ac_fn_check_decl "$LINENO" "_libiconv_version" "ac_cv_have_decl__libiconv_version" " #include <iconv.h>
7961" "$ac_c_undeclared_builtin_options" "CFLAGS"
7962if test "x$ac_cv_have_decl__libiconv_version" = xyes
7963then :
7964   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiconv in -liconv" >&5
7965printf %s "checking for libiconv in -liconv... " >&6; }
7966if test ${ac_cv_lib_iconv_libiconv+y}
7967then :
7968  printf %s "(cached) " >&6
7969else $as_nop
7970  ac_check_lib_save_LIBS=$LIBS
7971LIBS="-liconv  $LIBS"
7972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973/* end confdefs.h.  */
7974
7975/* Override any GCC internal prototype to avoid an error.
7976   Use char because int might match the return type of a GCC
7977   builtin and then its argument prototype would still apply.  */
7978char libiconv ();
7979int
7980main (void)
7981{
7982return libiconv ();
7983  ;
7984  return 0;
7985}
7986_ACEOF
7987if ac_fn_c_try_link "$LINENO"
7988then :
7989  ac_cv_lib_iconv_libiconv=yes
7990else $as_nop
7991  ac_cv_lib_iconv_libiconv=no
7992fi
7993rm -f core conftest.err conftest.$ac_objext conftest.beam \
7994    conftest$ac_exeext conftest.$ac_ext
7995LIBS=$ac_check_lib_save_LIBS
7996fi
7997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv" >&5
7998printf "%s\n" "$ac_cv_lib_iconv_libiconv" >&6; }
7999if test "x$ac_cv_lib_iconv_libiconv" = xyes
8000then :
8001  LIBS="-liconv $LIBS"
8002fi
8003
8004fi
8005  fi
8006fi
8007
8008if test "x$ac_found_iconv" = xyes; then
8009
8010printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
8011
8012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013/* end confdefs.h.  */
8014#include <iconv.h>
8015int
8016main (void)
8017{
8018int myversion = _libiconv_version
8019  ;
8020  return 0;
8021}
8022_ACEOF
8023if ac_fn_c_try_link "$LINENO"
8024then :
8025  printf "%s\n" "#define ICONV_FROM_LIBICONV 1" >>confdefs.h
8026
8027fi
8028rm -f core conftest.err conftest.$ac_objext conftest.beam \
8029    conftest$ac_exeext conftest.$ac_ext
8030fi
8031
8032if test "x$ac_found_iconv" = "xyes"; then
8033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8034printf %s "checking for iconv declaration... " >&6; }
8035if test ${ac_cv_iconv_const+y}
8036then :
8037  printf %s "(cached) " >&6
8038else $as_nop
8039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040/* end confdefs.h.  */
8041#include <stdlib.h>
8042        #include <iconv.h>
8043int
8044main (void)
8045{
8046#ifdef __cplusplus
8047          "C"
8048          #endif
8049          #if defined(__STDC__) || defined(__cplusplus)
8050          size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8051          #else
8052          size_t iconv();
8053          #endif
8054  ;
8055  return 0;
8056}
8057_ACEOF
8058if ac_fn_c_try_compile "$LINENO"
8059then :
8060  ac_cv_iconv_const=
8061else $as_nop
8062  ac_cv_iconv_const=const
8063fi
8064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8065fi
8066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_iconv_const" >&5
8067printf "%s\n" "$ac_cv_iconv_const" >&6; }
8068
8069printf "%s\n" "#define ICONV_CONST $ac_cv_iconv_const" >>confdefs.h
8070
8071fi
8072
8073if test x$enable_pcre = xyes; then
8074  LIBS="`$ac_cv_prog_PCRECONF --libs` $LIBS"
8075fi
8076
8077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if an include file defines ospeed" >&5
8078printf %s "checking if an include file defines ospeed... " >&6; }
8079if test ${zsh_cv_decl_ospeed_include_defines+y}
8080then :
8081  printf %s "(cached) " >&6
8082else $as_nop
8083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084/* end confdefs.h.  */
8085#include <sys/types.h>
8086#if HAVE_TERMIOS_H
8087#include <termios.h>
8088#endif
8089#if HAVE_TERMCAP_H
8090#include <termcap.h>
8091#endif
8092int
8093main (void)
8094{
8095ospeed = 0;
8096  ;
8097  return 0;
8098}
8099_ACEOF
8100if ac_fn_c_try_link "$LINENO"
8101then :
8102  zsh_cv_decl_ospeed_include_defines=yes
8103else $as_nop
8104  zsh_cv_decl_ospeed_include_defines=no
8105fi
8106rm -f core conftest.err conftest.$ac_objext conftest.beam \
8107    conftest$ac_exeext conftest.$ac_ext
8108fi
8109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_decl_ospeed_include_defines" >&5
8110printf "%s\n" "$zsh_cv_decl_ospeed_include_defines" >&6; }
8111
8112if test x$zsh_cv_decl_ospeed_include_defines = xno; then
8113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if you must define ospeed" >&5
8114printf %s "checking if you must define ospeed... " >&6; }
8115if test ${zsh_cv_decl_ospeed_must_define+y}
8116then :
8117  printf %s "(cached) " >&6
8118else $as_nop
8119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120/* end confdefs.h.  */
8121
8122int
8123main (void)
8124{
8125extern short ospeed; ospeed = 0;
8126  ;
8127  return 0;
8128}
8129_ACEOF
8130if ac_fn_c_try_link "$LINENO"
8131then :
8132  zsh_cv_decl_ospeed_must_define=yes
8133else $as_nop
8134  zsh_cv_decl_ospeed_must_define=no
8135fi
8136rm -f core conftest.err conftest.$ac_objext conftest.beam \
8137    conftest$ac_exeext conftest.$ac_ext
8138fi
8139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_decl_ospeed_must_define" >&5
8140printf "%s\n" "$zsh_cv_decl_ospeed_must_define" >&6; }
8141fi
8142
8143
8144
8145if test x$zsh_cv_decl_ospeed_include_defines = xyes; then
8146  printf "%s\n" "#define HAVE_OSPEED 1" >>confdefs.h
8147
8148elif test x$zsh_cv_decl_ospeed_must_define = xyes; then
8149  printf "%s\n" "#define HAVE_OSPEED 1" >>confdefs.h
8150
8151  printf "%s\n" "#define MUST_DEFINE_OSPEED 1" >>confdefs.h
8152
8153fi
8154
8155if test x$gdbm != xno; then
8156  ac_fn_c_check_header_compile "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
8157if test "x$ac_cv_header_gdbm_h" = xyes
8158then :
8159  printf "%s\n" "#define HAVE_GDBM_H 1" >>confdefs.h
8160
8161fi
8162
8163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
8164printf %s "checking for gdbm_open in -lgdbm... " >&6; }
8165if test ${ac_cv_lib_gdbm_gdbm_open+y}
8166then :
8167  printf %s "(cached) " >&6
8168else $as_nop
8169  ac_check_lib_save_LIBS=$LIBS
8170LIBS="-lgdbm  $LIBS"
8171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h.  */
8173
8174/* Override any GCC internal prototype to avoid an error.
8175   Use char because int might match the return type of a GCC
8176   builtin and then its argument prototype would still apply.  */
8177char gdbm_open ();
8178int
8179main (void)
8180{
8181return gdbm_open ();
8182  ;
8183  return 0;
8184}
8185_ACEOF
8186if ac_fn_c_try_link "$LINENO"
8187then :
8188  ac_cv_lib_gdbm_gdbm_open=yes
8189else $as_nop
8190  ac_cv_lib_gdbm_gdbm_open=no
8191fi
8192rm -f core conftest.err conftest.$ac_objext conftest.beam \
8193    conftest$ac_exeext conftest.$ac_ext
8194LIBS=$ac_check_lib_save_LIBS
8195fi
8196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
8197printf "%s\n" "$ac_cv_lib_gdbm_gdbm_open" >&6; }
8198if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes
8199then :
8200  printf "%s\n" "#define HAVE_LIBGDBM 1" >>confdefs.h
8201
8202  LIBS="-lgdbm $LIBS"
8203
8204fi
8205
8206fi
8207
8208ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
8209if test "x$ac_cv_header_sys_xattr_h" = xyes
8210then :
8211  printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
8212
8213fi
8214
8215
8216
8217
8218  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
8219"
8220if test "x$ac_cv_type_pid_t" = xyes
8221then :
8222
8223else $as_nop
8224                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225/* end confdefs.h.  */
8226
8227          #if defined _WIN64 && !defined __CYGWIN__
8228          LLP64
8229          #endif
8230
8231int
8232main (void)
8233{
8234
8235  ;
8236  return 0;
8237}
8238
8239_ACEOF
8240if ac_fn_c_try_compile "$LINENO"
8241then :
8242  ac_pid_type='int'
8243else $as_nop
8244  ac_pid_type='__int64'
8245fi
8246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8247
8248printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
8249
8250
8251fi
8252
8253
8254ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8255if test "x$ac_cv_type_off_t" = xyes
8256then :
8257
8258else $as_nop
8259
8260printf "%s\n" "#define off_t long int" >>confdefs.h
8261
8262fi
8263
8264ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
8265if test "x$ac_cv_type_ino_t" = xyes
8266then :
8267
8268else $as_nop
8269
8270printf "%s\n" "#define ino_t unsigned long" >>confdefs.h
8271
8272fi
8273
8274ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8275if test "x$ac_cv_type_mode_t" = xyes
8276then :
8277
8278else $as_nop
8279
8280printf "%s\n" "#define mode_t int" >>confdefs.h
8281
8282fi
8283
8284
8285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8286printf %s "checking for uid_t in sys/types.h... " >&6; }
8287if test ${ac_cv_type_uid_t+y}
8288then :
8289  printf %s "(cached) " >&6
8290else $as_nop
8291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292/* end confdefs.h.  */
8293#include <sys/types.h>
8294
8295_ACEOF
8296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8297  $EGREP "uid_t" >/dev/null 2>&1
8298then :
8299  ac_cv_type_uid_t=yes
8300else $as_nop
8301  ac_cv_type_uid_t=no
8302fi
8303rm -rf conftest*
8304
8305fi
8306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8307printf "%s\n" "$ac_cv_type_uid_t" >&6; }
8308if test $ac_cv_type_uid_t = no; then
8309
8310printf "%s\n" "#define uid_t int" >>confdefs.h
8311
8312
8313printf "%s\n" "#define gid_t int" >>confdefs.h
8314
8315fi
8316
8317ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8318if test "x$ac_cv_type_size_t" = xyes
8319then :
8320
8321else $as_nop
8322
8323printf "%s\n" "#define size_t unsigned int" >>confdefs.h
8324
8325fi
8326
8327
8328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if long is 64 bits" >&5
8329printf %s "checking if long is 64 bits... " >&6; }
8330if test ${zsh_cv_long_is_64_bit+y}
8331then :
8332  printf %s "(cached) " >&6
8333else $as_nop
8334  if test "$cross_compiling" = yes
8335then :
8336  zsh_cv_long_is_64_bit=no
8337else $as_nop
8338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339/* end confdefs.h.  */
8340int main() { return sizeof(long) < 8; }
8341_ACEOF
8342if ac_fn_c_try_run "$LINENO"
8343then :
8344  zsh_cv_long_is_64_bit=yes
8345else $as_nop
8346  zsh_cv_long_is_64_bit=no
8347fi
8348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8349  conftest.$ac_objext conftest.beam conftest.$ac_ext
8350fi
8351
8352fi
8353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_long_is_64_bit" >&5
8354printf "%s\n" "$zsh_cv_long_is_64_bit" >&6; }
8355
8356
8357
8358
8359
8360
8361
8362if test x$zsh_cv_long_is_64_bit = xyes; then
8363  printf "%s\n" "#define LONG_IS_64_BIT 1" >>confdefs.h
8364
8365else
8366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if off_t is 64 bit" >&5
8367printf %s "checking if off_t is 64 bit... " >&6; }
8368if test ${zsh_cv_off_t_is_64_bit+y}
8369then :
8370  printf %s "(cached) " >&6
8371else $as_nop
8372  if test "$cross_compiling" = yes
8373then :
8374  zsh_cv_off_t_is_64_bit=no
8375else $as_nop
8376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377/* end confdefs.h.  */
8378
8379#include <sys/types.h>
8380
8381main() { return sizeof(off_t) < 8; }
8382
8383_ACEOF
8384if ac_fn_c_try_run "$LINENO"
8385then :
8386  zsh_cv_off_t_is_64_bit=yes
8387else $as_nop
8388  zsh_cv_off_t_is_64_bit=no
8389fi
8390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8391  conftest.$ac_objext conftest.beam conftest.$ac_ext
8392fi
8393
8394fi
8395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_off_t_is_64_bit" >&5
8396printf "%s\n" "$zsh_cv_off_t_is_64_bit" >&6; }
8397  if test x$zsh_cv_off_t_is_64_bit = xyes; then
8398    printf "%s\n" "#define OFF_T_IS_64_BIT 1" >>confdefs.h
8399
8400  fi
8401
8402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ino_t is 64 bit" >&5
8403printf %s "checking if ino_t is 64 bit... " >&6; }
8404if test ${zsh_cv_ino_t_is_64_bit+y}
8405then :
8406  printf %s "(cached) " >&6
8407else $as_nop
8408  if test "$cross_compiling" = yes
8409then :
8410  zsh_cv_ino_t_is_64_bit=no
8411else $as_nop
8412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413/* end confdefs.h.  */
8414
8415#include <sys/types.h>
8416
8417main() { return sizeof(ino_t) < 8; }
8418
8419_ACEOF
8420if ac_fn_c_try_run "$LINENO"
8421then :
8422  zsh_cv_ino_t_is_64_bit=yes
8423else $as_nop
8424  zsh_cv_ino_t_is_64_bit=no
8425fi
8426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8427  conftest.$ac_objext conftest.beam conftest.$ac_ext
8428fi
8429
8430fi
8431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_ino_t_is_64_bit" >&5
8432printf "%s\n" "$zsh_cv_ino_t_is_64_bit" >&6; }
8433  if test x$zsh_cv_ino_t_is_64_bit = xyes; then
8434    printf "%s\n" "#define INO_T_IS_64_BIT 1" >>confdefs.h
8435
8436  fi
8437
8438  if test x$enable_largefile != xno -o x$zsh_cv_off_t_is_64_bit = xyes \
8439  -o $zsh_cv_ino_t_is_64_bit = yes; then
8440    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler has a 64 bit type" >&5
8441printf %s "checking if compiler has a 64 bit type... " >&6; }
8442if test ${zsh_cv_64_bit_type+y}
8443then :
8444  printf %s "(cached) " >&6
8445else $as_nop
8446  if test "$cross_compiling" = yes
8447then :
8448  if test x != x ; then
8449    zsh_cv_64_bit_type="long long"
8450  else
8451    zsh_cv_64_bit_type=no
8452  fi
8453else $as_nop
8454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455/* end confdefs.h.  */
8456
8457#ifdef HAVE_SYS_TYPES_H
8458#include <sys/types.h>
8459#endif
8460
8461main()
8462{
8463  long long foo = 0;
8464  int bar = (int) foo;
8465  return sizeof(long long) != 8;
8466}
8467
8468_ACEOF
8469if ac_fn_c_try_run "$LINENO"
8470then :
8471  zsh_cv_64_bit_type="long long"
8472else $as_nop
8473  zsh_cv_64_bit_type=no
8474fi
8475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8476  conftest.$ac_objext conftest.beam conftest.$ac_ext
8477fi
8478
8479
8480     if test "$zsh_cv_64_bit_type" = no; then
8481       if test "$cross_compiling" = yes
8482then :
8483  if test x != x ; then
8484    zsh_cv_64_bit_type="quad_t"
8485  else
8486    zsh_cv_64_bit_type=no
8487  fi
8488else $as_nop
8489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490/* end confdefs.h.  */
8491
8492#ifdef HAVE_SYS_TYPES_H
8493#include <sys/types.h>
8494#endif
8495
8496main()
8497{
8498  quad_t foo = 0;
8499  int bar = (int) foo;
8500  return sizeof(quad_t) != 8;
8501}
8502
8503_ACEOF
8504if ac_fn_c_try_run "$LINENO"
8505then :
8506  zsh_cv_64_bit_type="quad_t"
8507else $as_nop
8508  zsh_cv_64_bit_type=no
8509fi
8510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8511  conftest.$ac_objext conftest.beam conftest.$ac_ext
8512fi
8513
8514
8515     fi
8516     if test "$zsh_cv_64_bit_type" = no; then
8517       if test "$cross_compiling" = yes
8518then :
8519  if test x != x ; then
8520    zsh_cv_64_bit_type="__int64_t"
8521  else
8522    zsh_cv_64_bit_type=no
8523  fi
8524else $as_nop
8525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526/* end confdefs.h.  */
8527
8528#ifdef HAVE_SYS_TYPES_H
8529#include <sys/types.h>
8530#endif
8531
8532main()
8533{
8534  __int64_t foo = 0;
8535  int bar = (int) foo;
8536  return sizeof(__int64_t) != 8;
8537}
8538
8539_ACEOF
8540if ac_fn_c_try_run "$LINENO"
8541then :
8542  zsh_cv_64_bit_type="__int64_t"
8543else $as_nop
8544  zsh_cv_64_bit_type=no
8545fi
8546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8547  conftest.$ac_objext conftest.beam conftest.$ac_ext
8548fi
8549
8550
8551     fi
8552                    if test "$zsh_cv_64_bit_type" = no &&
8553        test "$zsh_cv_off_t_is_64_bit" = yes; then
8554       if test "$cross_compiling" = yes
8555then :
8556  if test x != x ; then
8557    zsh_cv_64_bit_type="off_t"
8558  else
8559    zsh_cv_64_bit_type=no
8560  fi
8561else $as_nop
8562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563/* end confdefs.h.  */
8564
8565#ifdef HAVE_SYS_TYPES_H
8566#include <sys/types.h>
8567#endif
8568
8569main()
8570{
8571  off_t foo = 0;
8572  int bar = (int) foo;
8573  return sizeof(off_t) != 8;
8574}
8575
8576_ACEOF
8577if ac_fn_c_try_run "$LINENO"
8578then :
8579  zsh_cv_64_bit_type="off_t"
8580else $as_nop
8581  zsh_cv_64_bit_type=no
8582fi
8583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8584  conftest.$ac_objext conftest.beam conftest.$ac_ext
8585fi
8586
8587
8588     fi
8589fi
8590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_64_bit_type" >&5
8591printf "%s\n" "$zsh_cv_64_bit_type" >&6; }
8592    if test "$zsh_cv_64_bit_type" != no; then
8593      printf "%s\n" "#define ZSH_64_BIT_TYPE $zsh_cv_64_bit_type" >>confdefs.h
8594
8595
8596                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a corresponding unsigned 64 bit type" >&5
8597printf %s "checking for a corresponding unsigned 64 bit type... " >&6; }
8598if test ${zsh_cv_64_bit_utype+y}
8599then :
8600  printf %s "(cached) " >&6
8601else $as_nop
8602  if test "$cross_compiling" = yes
8603then :
8604  if test xforce != x ; then
8605    zsh_cv_64_bit_utype="unsigned $zsh_cv_64_bit_type"
8606  else
8607    zsh_cv_64_bit_utype=no
8608  fi
8609else $as_nop
8610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611/* end confdefs.h.  */
8612
8613#ifdef HAVE_SYS_TYPES_H
8614#include <sys/types.h>
8615#endif
8616
8617main()
8618{
8619  unsigned $zsh_cv_64_bit_type foo = 0;
8620  int bar = (int) foo;
8621  return sizeof(unsigned $zsh_cv_64_bit_type) != 8;
8622}
8623
8624_ACEOF
8625if ac_fn_c_try_run "$LINENO"
8626then :
8627  zsh_cv_64_bit_utype="unsigned $zsh_cv_64_bit_type"
8628else $as_nop
8629  zsh_cv_64_bit_utype=no
8630fi
8631rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8632  conftest.$ac_objext conftest.beam conftest.$ac_ext
8633fi
8634
8635
8636       if test "$zsh_cv_64_bit_utype" = no; then
8637         if test "$cross_compiling" = yes
8638then :
8639  if test x != x ; then
8640    zsh_cv_64_bit_utype="__uint64_t"
8641  else
8642    zsh_cv_64_bit_utype=no
8643  fi
8644else $as_nop
8645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646/* end confdefs.h.  */
8647
8648#ifdef HAVE_SYS_TYPES_H
8649#include <sys/types.h>
8650#endif
8651
8652main()
8653{
8654  __uint64_t foo = 0;
8655  int bar = (int) foo;
8656  return sizeof(__uint64_t) != 8;
8657}
8658
8659_ACEOF
8660if ac_fn_c_try_run "$LINENO"
8661then :
8662  zsh_cv_64_bit_utype="__uint64_t"
8663else $as_nop
8664  zsh_cv_64_bit_utype=no
8665fi
8666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8667  conftest.$ac_objext conftest.beam conftest.$ac_ext
8668fi
8669
8670
8671       fi
8672fi
8673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_64_bit_utype" >&5
8674printf "%s\n" "$zsh_cv_64_bit_utype" >&6; }
8675      if test "$zsh_cv_64_bit_utype" != no; then
8676        printf "%s\n" "#define ZSH_64_BIT_UTYPE $zsh_cv_64_bit_utype" >>confdefs.h
8677
8678      fi
8679    fi
8680  fi
8681fi
8682
8683
8684if test "$zsh_cv_64_bit_type" = "long long"; then
8685    printf "%s\n" "#define ZLONG_IS_LONG_LONG 1" >>confdefs.h
8686
8687else
8688  if test "$zsh_cv_64_bit_type" = "long"; then
8689      printf "%s\n" "#define ZLONG_IS_LONG_64 1" >>confdefs.h
8690
8691  fi
8692fi
8693
8694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for %lld printf support" >&5
8695printf %s "checking for %lld printf support... " >&6; }
8696if test ${zsh_cv_printf_has_lld+y}
8697then :
8698  printf %s "(cached) " >&6
8699else $as_nop
8700  if test "$cross_compiling" = yes
8701then :
8702  zsh_cv_printf_has_lld=no
8703else $as_nop
8704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h.  */
8706#include <stdio.h>
8707#include <string.h>
8708int main(int argc, char **argv)
8709{
8710   long long foo = ((long long)0xdead << 40) | 0xf00d;
8711   char buf[80];
8712   sprintf(buf, "before%lldafter", foo);
8713   if (!strcmp(buf, "before62677660341432333after")) {
8714      return 0;
8715   }
8716   return 1;
8717}
8718
8719_ACEOF
8720if ac_fn_c_try_run "$LINENO"
8721then :
8722  zsh_cv_printf_has_lld=yes
8723else $as_nop
8724  zsh_cv_printf_has_lld=no
8725fi
8726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8727  conftest.$ac_objext conftest.beam conftest.$ac_ext
8728fi
8729
8730fi
8731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_printf_has_lld" >&5
8732printf "%s\n" "$zsh_cv_printf_has_lld" >&6; }
8733
8734if test x$zsh_cv_printf_has_lld = xyes; then
8735  printf "%s\n" "#define PRINTF_HAS_LLD 1" >>confdefs.h
8736
8737fi
8738
8739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigset_t" >&5
8740printf %s "checking for sigset_t... " >&6; }
8741if test ${zsh_cv_type_sigset_t+y}
8742then :
8743  printf %s "(cached) " >&6
8744else $as_nop
8745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746/* end confdefs.h.  */
8747#define _POSIX_C_SOURCE 200809L
8748#include <sys/types.h>
8749#include <signal.h>
8750int
8751main (void)
8752{
8753sigset_t tempsigset;
8754  ;
8755  return 0;
8756}
8757_ACEOF
8758if ac_fn_c_try_compile "$LINENO"
8759then :
8760  zsh_cv_type_sigset_t=yes
8761else $as_nop
8762  zsh_cv_type_sigset_t=no
8763fi
8764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8765fi
8766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_sigset_t" >&5
8767printf "%s\n" "$zsh_cv_type_sigset_t" >&6; }
8768
8769if test x$zsh_cv_type_sigset_t = xno; then
8770  printf "%s\n" "#define sigset_t unsigned int" >>confdefs.h
8771
8772fi
8773
8774ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "$ac_includes_default"
8775if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
8776then :
8777
8778printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
8779
8780
8781fi
8782ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "$ac_includes_default"
8783if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
8784then :
8785
8786printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
8787
8788
8789fi
8790ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
8791if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
8792then :
8793
8794printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
8795
8796
8797fi
8798ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
8799if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes
8800then :
8801
8802printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1" >>confdefs.h
8803
8804
8805fi
8806ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "$ac_includes_default"
8807if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes
8808then :
8809
8810printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1" >>confdefs.h
8811
8812
8813fi
8814ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
8815if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes
8816then :
8817
8818printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h
8819
8820
8821fi
8822ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "$ac_includes_default"
8823if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes
8824then :
8825
8826printf "%s\n" "#define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1" >>confdefs.h
8827
8828
8829fi
8830ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec.tv_nsec" "ac_cv_member_struct_stat_st_ctimespec_tv_nsec" "$ac_includes_default"
8831if test "x$ac_cv_member_struct_stat_st_ctimespec_tv_nsec" = xyes
8832then :
8833
8834printf "%s\n" "#define HAVE_STRUCT_STAT_ST_CTIMESPEC_TV_NSEC 1" >>confdefs.h
8835
8836
8837fi
8838ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "$ac_includes_default"
8839if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes
8840then :
8841
8842printf "%s\n" "#define HAVE_STRUCT_STAT_ST_CTIMENSEC 1" >>confdefs.h
8843
8844
8845fi
8846
8847
8848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timezone" >&5
8849printf %s "checking for struct timezone... " >&6; }
8850if test ${zsh_cv_type_exists_struct_timezone+y}
8851then :
8852  printf %s "(cached) " >&6
8853else $as_nop
8854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855/* end confdefs.h.  */
8856
8857#define _GNU_SOURCE 1
8858#ifdef HAVE_SYS_TIME_H
8859# include <sys/time.h>
8860#endif
8861
8862int
8863main (void)
8864{
8865struct timezone testvar;
8866  ;
8867  return 0;
8868}
8869_ACEOF
8870if ac_fn_c_try_compile "$LINENO"
8871then :
8872  zsh_cv_type_exists_struct_timezone=yes
8873else $as_nop
8874  zsh_cv_type_exists_struct_timezone=no
8875fi
8876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8877
8878fi
8879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_exists_struct_timezone" >&5
8880printf "%s\n" "$zsh_cv_type_exists_struct_timezone" >&6; }
8881
8882if test $zsh_cv_type_exists_struct_timezone = yes; then
8883  printf "%s\n" "#define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h
8884
8885fi
8886
8887
8888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
8889printf %s "checking for struct timespec... " >&6; }
8890if test ${zsh_cv_type_exists_struct_timespec+y}
8891then :
8892  printf %s "(cached) " >&6
8893else $as_nop
8894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895/* end confdefs.h.  */
8896
8897#define _GNU_SOURCE 1
8898#ifdef HAVE_SYS_TIME_H
8899# include <sys/time.h>
8900#endif
8901
8902int
8903main (void)
8904{
8905struct timespec testvar;
8906  ;
8907  return 0;
8908}
8909_ACEOF
8910if ac_fn_c_try_compile "$LINENO"
8911then :
8912  zsh_cv_type_exists_struct_timespec=yes
8913else $as_nop
8914  zsh_cv_type_exists_struct_timespec=no
8915fi
8916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8917
8918fi
8919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_exists_struct_timespec" >&5
8920printf "%s\n" "$zsh_cv_type_exists_struct_timespec" >&6; }
8921
8922if test $zsh_cv_type_exists_struct_timespec = yes; then
8923  printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
8924
8925fi
8926
8927
8928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct utmp" >&5
8929printf %s "checking for struct utmp... " >&6; }
8930if test ${zsh_cv_type_exists_struct_utmp+y}
8931then :
8932  printf %s "(cached) " >&6
8933else $as_nop
8934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935/* end confdefs.h.  */
8936
8937#ifdef HAVE_SYS_TYPES_H
8938# include <sys/types.h>
8939#endif
8940#ifdef HAVE_UTMP_H
8941# include <utmp.h>
8942#endif
8943
8944int
8945main (void)
8946{
8947struct utmp testvar;
8948  ;
8949  return 0;
8950}
8951_ACEOF
8952if ac_fn_c_try_compile "$LINENO"
8953then :
8954  zsh_cv_type_exists_struct_utmp=yes
8955else $as_nop
8956  zsh_cv_type_exists_struct_utmp=no
8957fi
8958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8959
8960fi
8961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_exists_struct_utmp" >&5
8962printf "%s\n" "$zsh_cv_type_exists_struct_utmp" >&6; }
8963
8964if test $zsh_cv_type_exists_struct_utmp = yes; then
8965  printf "%s\n" "#define HAVE_STRUCT_UTMP 1" >>confdefs.h
8966
8967fi
8968
8969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct utmpx" >&5
8970printf %s "checking for struct utmpx... " >&6; }
8971if test ${zsh_cv_type_exists_struct_utmpx+y}
8972then :
8973  printf %s "(cached) " >&6
8974else $as_nop
8975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h.  */
8977
8978#ifdef HAVE_SYS_TYPES_H
8979# include <sys/types.h>
8980#endif
8981#ifdef HAVE_UTMPX_H
8982# include <utmpx.h>
8983#endif
8984
8985int
8986main (void)
8987{
8988struct utmpx testvar;
8989  ;
8990  return 0;
8991}
8992_ACEOF
8993if ac_fn_c_try_compile "$LINENO"
8994then :
8995  zsh_cv_type_exists_struct_utmpx=yes
8996else $as_nop
8997  zsh_cv_type_exists_struct_utmpx=no
8998fi
8999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9000
9001fi
9002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_exists_struct_utmpx" >&5
9003printf "%s\n" "$zsh_cv_type_exists_struct_utmpx" >&6; }
9004
9005if test $zsh_cv_type_exists_struct_utmpx = yes; then
9006  printf "%s\n" "#define HAVE_STRUCT_UTMPX 1" >>confdefs.h
9007
9008fi
9009
9010
9011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ut_host in struct utmp" >&5
9012printf %s "checking for ut_host in struct utmp... " >&6; }
9013if test ${zsh_cv_struct_member_struct_utmp_ut_host+y}
9014then :
9015  printf %s "(cached) " >&6
9016else $as_nop
9017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018/* end confdefs.h.  */
9019
9020#ifdef HAVE_SYS_TYPES_H
9021# include <sys/types.h>
9022#endif
9023#ifdef HAVE_UTMP_H
9024# include <utmp.h>
9025#endif
9026
9027int
9028main (void)
9029{
9030struct utmp testvar; testvar.ut_host;
9031  ;
9032  return 0;
9033}
9034_ACEOF
9035if ac_fn_c_try_compile "$LINENO"
9036then :
9037  zsh_cv_struct_member_struct_utmp_ut_host=yes
9038else $as_nop
9039  zsh_cv_struct_member_struct_utmp_ut_host=no
9040fi
9041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9042
9043fi
9044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_utmp_ut_host" >&5
9045printf "%s\n" "$zsh_cv_struct_member_struct_utmp_ut_host" >&6; }
9046
9047if test $zsh_cv_struct_member_struct_utmp_ut_host = yes; then
9048  printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_HOST 1" >>confdefs.h
9049
9050fi
9051
9052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ut_host in struct utmpx" >&5
9053printf %s "checking for ut_host in struct utmpx... " >&6; }
9054if test ${zsh_cv_struct_member_struct_utmpx_ut_host+y}
9055then :
9056  printf %s "(cached) " >&6
9057else $as_nop
9058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059/* end confdefs.h.  */
9060
9061#ifdef HAVE_SYS_TYPES_H
9062# include <sys/types.h>
9063#endif
9064#ifdef HAVE_UTMPX_H
9065# include <utmpx.h>
9066#endif
9067
9068int
9069main (void)
9070{
9071struct utmpx testvar; testvar.ut_host;
9072  ;
9073  return 0;
9074}
9075_ACEOF
9076if ac_fn_c_try_compile "$LINENO"
9077then :
9078  zsh_cv_struct_member_struct_utmpx_ut_host=yes
9079else $as_nop
9080  zsh_cv_struct_member_struct_utmpx_ut_host=no
9081fi
9082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9083
9084fi
9085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_utmpx_ut_host" >&5
9086printf "%s\n" "$zsh_cv_struct_member_struct_utmpx_ut_host" >&6; }
9087
9088if test $zsh_cv_struct_member_struct_utmpx_ut_host = yes; then
9089  printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_HOST 1" >>confdefs.h
9090
9091fi
9092
9093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
9094printf %s "checking for ut_xtime in struct utmpx... " >&6; }
9095if test ${zsh_cv_struct_member_struct_utmpx_ut_xtime+y}
9096then :
9097  printf %s "(cached) " >&6
9098else $as_nop
9099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100/* end confdefs.h.  */
9101
9102#ifdef HAVE_SYS_TYPES_H
9103# include <sys/types.h>
9104#endif
9105#ifdef HAVE_UTMPX_H
9106# include <utmpx.h>
9107#endif
9108
9109int
9110main (void)
9111{
9112struct utmpx testvar; testvar.ut_xtime;
9113  ;
9114  return 0;
9115}
9116_ACEOF
9117if ac_fn_c_try_compile "$LINENO"
9118then :
9119  zsh_cv_struct_member_struct_utmpx_ut_xtime=yes
9120else $as_nop
9121  zsh_cv_struct_member_struct_utmpx_ut_xtime=no
9122fi
9123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9124
9125fi
9126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_utmpx_ut_xtime" >&5
9127printf "%s\n" "$zsh_cv_struct_member_struct_utmpx_ut_xtime" >&6; }
9128
9129if test $zsh_cv_struct_member_struct_utmpx_ut_xtime = yes; then
9130  printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_XTIME 1" >>confdefs.h
9131
9132fi
9133
9134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ut_tv in struct utmpx" >&5
9135printf %s "checking for ut_tv in struct utmpx... " >&6; }
9136if test ${zsh_cv_struct_member_struct_utmpx_ut_tv+y}
9137then :
9138  printf %s "(cached) " >&6
9139else $as_nop
9140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141/* end confdefs.h.  */
9142
9143#ifdef HAVE_SYS_TYPES_H
9144# include <sys/types.h>
9145#endif
9146#ifdef HAVE_UTMPX_H
9147# include <utmpx.h>
9148#endif
9149
9150int
9151main (void)
9152{
9153struct utmpx testvar; testvar.ut_tv;
9154  ;
9155  return 0;
9156}
9157_ACEOF
9158if ac_fn_c_try_compile "$LINENO"
9159then :
9160  zsh_cv_struct_member_struct_utmpx_ut_tv=yes
9161else $as_nop
9162  zsh_cv_struct_member_struct_utmpx_ut_tv=no
9163fi
9164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9165
9166fi
9167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_utmpx_ut_tv" >&5
9168printf "%s\n" "$zsh_cv_struct_member_struct_utmpx_ut_tv" >&6; }
9169
9170if test $zsh_cv_struct_member_struct_utmpx_ut_tv = yes; then
9171  printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_TV 1" >>confdefs.h
9172
9173fi
9174
9175
9176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d_ino in struct dirent" >&5
9177printf %s "checking for d_ino in struct dirent... " >&6; }
9178if test ${zsh_cv_struct_member_struct_dirent_d_ino+y}
9179then :
9180  printf %s "(cached) " >&6
9181else $as_nop
9182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183/* end confdefs.h.  */
9184
9185#ifdef HAVE_SYS_TYPES_H
9186# include <sys/types.h>
9187#endif
9188#ifdef HAVE_DIRENT_H
9189# include <dirent.h>
9190#endif
9191
9192int
9193main (void)
9194{
9195struct dirent testvar; testvar.d_ino;
9196  ;
9197  return 0;
9198}
9199_ACEOF
9200if ac_fn_c_try_compile "$LINENO"
9201then :
9202  zsh_cv_struct_member_struct_dirent_d_ino=yes
9203else $as_nop
9204  zsh_cv_struct_member_struct_dirent_d_ino=no
9205fi
9206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9207
9208fi
9209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_dirent_d_ino" >&5
9210printf "%s\n" "$zsh_cv_struct_member_struct_dirent_d_ino" >&6; }
9211
9212if test $zsh_cv_struct_member_struct_dirent_d_ino = yes; then
9213  printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h
9214
9215fi
9216
9217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d_stat in struct dirent" >&5
9218printf %s "checking for d_stat in struct dirent... " >&6; }
9219if test ${zsh_cv_struct_member_struct_dirent_d_stat+y}
9220then :
9221  printf %s "(cached) " >&6
9222else $as_nop
9223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224/* end confdefs.h.  */
9225
9226#ifdef HAVE_SYS_TYPES_H
9227# include <sys/types.h>
9228#endif
9229#ifdef HAVE_DIRENT_H
9230# include <dirent.h>
9231#endif
9232
9233int
9234main (void)
9235{
9236struct dirent testvar; testvar.d_stat;
9237  ;
9238  return 0;
9239}
9240_ACEOF
9241if ac_fn_c_try_compile "$LINENO"
9242then :
9243  zsh_cv_struct_member_struct_dirent_d_stat=yes
9244else $as_nop
9245  zsh_cv_struct_member_struct_dirent_d_stat=no
9246fi
9247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9248
9249fi
9250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_dirent_d_stat" >&5
9251printf "%s\n" "$zsh_cv_struct_member_struct_dirent_d_stat" >&6; }
9252
9253if test $zsh_cv_struct_member_struct_dirent_d_stat = yes; then
9254  printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_STAT 1" >>confdefs.h
9255
9256fi
9257
9258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d_ino in struct direct" >&5
9259printf %s "checking for d_ino in struct direct... " >&6; }
9260if test ${zsh_cv_struct_member_struct_direct_d_ino+y}
9261then :
9262  printf %s "(cached) " >&6
9263else $as_nop
9264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265/* end confdefs.h.  */
9266
9267#ifdef HAVE_SYS_TYPES_H
9268# include <sys/types.h>
9269#endif
9270#ifdef HAVE_SYS_NDIR_H
9271# include <sys/ndir.h>
9272#endif
9273#ifdef HAVE_SYS_DIR_H
9274# include <sys/dir.h>
9275#endif
9276#ifdef HAVE_NDIR_H
9277# include <ndir.h>
9278#endif
9279
9280int
9281main (void)
9282{
9283struct direct testvar; testvar.d_ino;
9284  ;
9285  return 0;
9286}
9287_ACEOF
9288if ac_fn_c_try_compile "$LINENO"
9289then :
9290  zsh_cv_struct_member_struct_direct_d_ino=yes
9291else $as_nop
9292  zsh_cv_struct_member_struct_direct_d_ino=no
9293fi
9294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9295
9296fi
9297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_direct_d_ino" >&5
9298printf "%s\n" "$zsh_cv_struct_member_struct_direct_d_ino" >&6; }
9299
9300if test $zsh_cv_struct_member_struct_direct_d_ino = yes; then
9301  printf "%s\n" "#define HAVE_STRUCT_DIRECT_D_INO 1" >>confdefs.h
9302
9303fi
9304
9305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d_stat in struct direct" >&5
9306printf %s "checking for d_stat in struct direct... " >&6; }
9307if test ${zsh_cv_struct_member_struct_direct_d_stat+y}
9308then :
9309  printf %s "(cached) " >&6
9310else $as_nop
9311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312/* end confdefs.h.  */
9313
9314#ifdef HAVE_SYS_TYPES_H
9315# include <sys/types.h>
9316#endif
9317#ifdef HAVE_SYS_NDIR_H
9318# include <sys/ndir.h>
9319#endif
9320#ifdef HAVE_SYS_DIR_H
9321# include <sys/dir.h>
9322#endif
9323#ifdef HAVE_NDIR_H
9324# include <ndir.h>
9325#endif
9326
9327int
9328main (void)
9329{
9330struct direct testvar; testvar.d_stat;
9331  ;
9332  return 0;
9333}
9334_ACEOF
9335if ac_fn_c_try_compile "$LINENO"
9336then :
9337  zsh_cv_struct_member_struct_direct_d_stat=yes
9338else $as_nop
9339  zsh_cv_struct_member_struct_direct_d_stat=no
9340fi
9341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9342
9343fi
9344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_direct_d_stat" >&5
9345printf "%s\n" "$zsh_cv_struct_member_struct_direct_d_stat" >&6; }
9346
9347if test $zsh_cv_struct_member_struct_direct_d_stat = yes; then
9348  printf "%s\n" "#define HAVE_STRUCT_DIRECT_D_STAT 1" >>confdefs.h
9349
9350fi
9351
9352
9353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin6_scope_id in struct sockaddr_in6" >&5
9354printf %s "checking for sin6_scope_id in struct sockaddr_in6... " >&6; }
9355if test ${zsh_cv_struct_member_struct_sockaddr_in6_sin6_scope_id+y}
9356then :
9357  printf %s "(cached) " >&6
9358else $as_nop
9359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360/* end confdefs.h.  */
9361
9362#ifdef HAVE_SYS_TYPES_H
9363# include <sys/types.h>
9364#endif
9365#include <netinet/in.h>
9366
9367int
9368main (void)
9369{
9370struct sockaddr_in6 testvar; testvar.sin6_scope_id;
9371  ;
9372  return 0;
9373}
9374_ACEOF
9375if ac_fn_c_try_compile "$LINENO"
9376then :
9377  zsh_cv_struct_member_struct_sockaddr_in6_sin6_scope_id=yes
9378else $as_nop
9379  zsh_cv_struct_member_struct_sockaddr_in6_sin6_scope_id=no
9380fi
9381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9382
9383fi
9384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_struct_member_struct_sockaddr_in6_sin6_scope_id" >&5
9385printf "%s\n" "$zsh_cv_struct_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
9386
9387if test $zsh_cv_struct_member_struct_sockaddr_in6_sin6_scope_id = yes; then
9388  printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
9389
9390fi
9391
9392
9393
9394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need our own h_errno" >&5
9395printf %s "checking if we need our own h_errno... " >&6; }
9396if test ${zsh_cv_decl_h_errno_use_local+y}
9397then :
9398  printf %s "(cached) " >&6
9399else $as_nop
9400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401/* end confdefs.h.  */
9402
9403int
9404main (void)
9405{
9406extern int h_errno; h_errno = 0;
9407  ;
9408  return 0;
9409}
9410_ACEOF
9411if ac_fn_c_try_link "$LINENO"
9412then :
9413  zsh_cv_decl_h_errno_use_local=no
9414else $as_nop
9415  zsh_cv_decl_h_errno_use_local=yes
9416fi
9417rm -f core conftest.err conftest.$ac_objext conftest.beam \
9418    conftest$ac_exeext conftest.$ac_ext
9419fi
9420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_decl_h_errno_use_local" >&5
9421printf "%s\n" "$zsh_cv_decl_h_errno_use_local" >&6; }
9422
9423if test x$zsh_cv_decl_h_errno_use_local = xyes; then
9424  printf "%s\n" "#define USE_LOCAL_H_ERRNO 1" >>confdefs.h
9425
9426fi
9427
9428
9429
9430ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9431if test "x$ac_cv_func_strftime" = xyes
9432then :
9433  printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
9434
9435fi
9436ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
9437if test "x$ac_cv_func_strptime" = xyes
9438then :
9439  printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
9440
9441fi
9442ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
9443if test "x$ac_cv_func_mktime" = xyes
9444then :
9445  printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h
9446
9447fi
9448ac_fn_c_check_func "$LINENO" "timelocal" "ac_cv_func_timelocal"
9449if test "x$ac_cv_func_timelocal" = xyes
9450then :
9451  printf "%s\n" "#define HAVE_TIMELOCAL 1" >>confdefs.h
9452
9453fi
9454ac_fn_c_check_func "$LINENO" "difftime" "ac_cv_func_difftime"
9455if test "x$ac_cv_func_difftime" = xyes
9456then :
9457  printf "%s\n" "#define HAVE_DIFFTIME 1" >>confdefs.h
9458
9459fi
9460ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
9461if test "x$ac_cv_func_gettimeofday" = xyes
9462then :
9463  printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
9464
9465fi
9466ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
9467if test "x$ac_cv_func_clock_gettime" = xyes
9468then :
9469  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
9470
9471fi
9472ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
9473if test "x$ac_cv_func_select" = xyes
9474then :
9475  printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
9476
9477fi
9478ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
9479if test "x$ac_cv_func_poll" = xyes
9480then :
9481  printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
9482
9483fi
9484ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
9485if test "x$ac_cv_func_readlink" = xyes
9486then :
9487  printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
9488
9489fi
9490ac_fn_c_check_func "$LINENO" "faccessx" "ac_cv_func_faccessx"
9491if test "x$ac_cv_func_faccessx" = xyes
9492then :
9493  printf "%s\n" "#define HAVE_FACCESSX 1" >>confdefs.h
9494
9495fi
9496ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
9497if test "x$ac_cv_func_fchdir" = xyes
9498then :
9499  printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h
9500
9501fi
9502ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
9503if test "x$ac_cv_func_ftruncate" = xyes
9504then :
9505  printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
9506
9507fi
9508ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
9509if test "x$ac_cv_func_fstat" = xyes
9510then :
9511  printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h
9512
9513fi
9514ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
9515if test "x$ac_cv_func_lstat" = xyes
9516then :
9517  printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
9518
9519fi
9520ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
9521if test "x$ac_cv_func_lchown" = xyes
9522then :
9523  printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
9524
9525fi
9526ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
9527if test "x$ac_cv_func_fchown" = xyes
9528then :
9529  printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
9530
9531fi
9532ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
9533if test "x$ac_cv_func_fchmod" = xyes
9534then :
9535  printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
9536
9537fi
9538ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
9539if test "x$ac_cv_func_fseeko" = xyes
9540then :
9541  printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
9542
9543fi
9544ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello"
9545if test "x$ac_cv_func_ftello" = xyes
9546then :
9547  printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h
9548
9549fi
9550ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
9551if test "x$ac_cv_func_mkfifo" = xyes
9552then :
9553  printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
9554
9555fi
9556ac_fn_c_check_func "$LINENO" "_mktemp" "ac_cv_func__mktemp"
9557if test "x$ac_cv_func__mktemp" = xyes
9558then :
9559  printf "%s\n" "#define HAVE__MKTEMP 1" >>confdefs.h
9560
9561fi
9562ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
9563if test "x$ac_cv_func_mkstemp" = xyes
9564then :
9565  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
9566
9567fi
9568ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
9569if test "x$ac_cv_func_waitpid" = xyes
9570then :
9571  printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
9572
9573fi
9574ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
9575if test "x$ac_cv_func_wait3" = xyes
9576then :
9577  printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
9578
9579fi
9580ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
9581if test "x$ac_cv_func_sigaction" = xyes
9582then :
9583  printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
9584
9585fi
9586ac_fn_c_check_func "$LINENO" "sigblock" "ac_cv_func_sigblock"
9587if test "x$ac_cv_func_sigblock" = xyes
9588then :
9589  printf "%s\n" "#define HAVE_SIGBLOCK 1" >>confdefs.h
9590
9591fi
9592ac_fn_c_check_func "$LINENO" "sighold" "ac_cv_func_sighold"
9593if test "x$ac_cv_func_sighold" = xyes
9594then :
9595  printf "%s\n" "#define HAVE_SIGHOLD 1" >>confdefs.h
9596
9597fi
9598ac_fn_c_check_func "$LINENO" "sigrelse" "ac_cv_func_sigrelse"
9599if test "x$ac_cv_func_sigrelse" = xyes
9600then :
9601  printf "%s\n" "#define HAVE_SIGRELSE 1" >>confdefs.h
9602
9603fi
9604ac_fn_c_check_func "$LINENO" "sigsetmask" "ac_cv_func_sigsetmask"
9605if test "x$ac_cv_func_sigsetmask" = xyes
9606then :
9607  printf "%s\n" "#define HAVE_SIGSETMASK 1" >>confdefs.h
9608
9609fi
9610ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
9611if test "x$ac_cv_func_sigprocmask" = xyes
9612then :
9613  printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
9614
9615fi
9616ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
9617if test "x$ac_cv_func_killpg" = xyes
9618then :
9619  printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
9620
9621fi
9622ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
9623if test "x$ac_cv_func_setpgid" = xyes
9624then :
9625  printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
9626
9627fi
9628ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
9629if test "x$ac_cv_func_setpgrp" = xyes
9630then :
9631  printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h
9632
9633fi
9634ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp"
9635if test "x$ac_cv_func_tcsetpgrp" = xyes
9636then :
9637  printf "%s\n" "#define HAVE_TCSETPGRP 1" >>confdefs.h
9638
9639fi
9640ac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
9641if test "x$ac_cv_func_tcgetattr" = xyes
9642then :
9643  printf "%s\n" "#define HAVE_TCGETATTR 1" >>confdefs.h
9644
9645fi
9646ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice"
9647if test "x$ac_cv_func_nice" = xyes
9648then :
9649  printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h
9650
9651fi
9652ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
9653if test "x$ac_cv_func_gethostname" = xyes
9654then :
9655  printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
9656
9657fi
9658ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
9659if test "x$ac_cv_func_gethostbyname2" = xyes
9660then :
9661  printf "%s\n" "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
9662
9663fi
9664ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname"
9665if test "x$ac_cv_func_getipnodebyname" = xyes
9666then :
9667  printf "%s\n" "#define HAVE_GETIPNODEBYNAME 1" >>confdefs.h
9668
9669fi
9670ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
9671if test "x$ac_cv_func_inet_aton" = xyes
9672then :
9673  printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
9674
9675fi
9676ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
9677if test "x$ac_cv_func_inet_pton" = xyes
9678then :
9679  printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
9680
9681fi
9682ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
9683if test "x$ac_cv_func_inet_ntop" = xyes
9684then :
9685  printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
9686
9687fi
9688ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin"
9689if test "x$ac_cv_func_getlogin" = xyes
9690then :
9691  printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h
9692
9693fi
9694ac_fn_c_check_func "$LINENO" "getpwent" "ac_cv_func_getpwent"
9695if test "x$ac_cv_func_getpwent" = xyes
9696then :
9697  printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h
9698
9699fi
9700ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
9701if test "x$ac_cv_func_getpwnam" = xyes
9702then :
9703  printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
9704
9705fi
9706ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid"
9707if test "x$ac_cv_func_getpwuid" = xyes
9708then :
9709  printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h
9710
9711fi
9712ac_fn_c_check_func "$LINENO" "getgrgid" "ac_cv_func_getgrgid"
9713if test "x$ac_cv_func_getgrgid" = xyes
9714then :
9715  printf "%s\n" "#define HAVE_GETGRGID 1" >>confdefs.h
9716
9717fi
9718ac_fn_c_check_func "$LINENO" "getgrnam" "ac_cv_func_getgrnam"
9719if test "x$ac_cv_func_getgrnam" = xyes
9720then :
9721  printf "%s\n" "#define HAVE_GETGRNAM 1" >>confdefs.h
9722
9723fi
9724ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
9725if test "x$ac_cv_func_initgroups" = xyes
9726then :
9727  printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
9728
9729fi
9730ac_fn_c_check_func "$LINENO" "nis_list" "ac_cv_func_nis_list"
9731if test "x$ac_cv_func_nis_list" = xyes
9732then :
9733  printf "%s\n" "#define HAVE_NIS_LIST 1" >>confdefs.h
9734
9735fi
9736ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
9737if test "x$ac_cv_func_setuid" = xyes
9738then :
9739  printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
9740
9741fi
9742ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
9743if test "x$ac_cv_func_seteuid" = xyes
9744then :
9745  printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
9746
9747fi
9748ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
9749if test "x$ac_cv_func_setreuid" = xyes
9750then :
9751  printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
9752
9753fi
9754ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
9755if test "x$ac_cv_func_setresuid" = xyes
9756then :
9757  printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
9758
9759fi
9760ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
9761if test "x$ac_cv_func_setsid" = xyes
9762then :
9763  printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
9764
9765fi
9766ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid"
9767if test "x$ac_cv_func_setgid" = xyes
9768then :
9769  printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h
9770
9771fi
9772ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
9773if test "x$ac_cv_func_setegid" = xyes
9774then :
9775  printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
9776
9777fi
9778ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
9779if test "x$ac_cv_func_setregid" = xyes
9780then :
9781  printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
9782
9783fi
9784ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
9785if test "x$ac_cv_func_setresgid" = xyes
9786then :
9787  printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
9788
9789fi
9790ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
9791if test "x$ac_cv_func_memcpy" = xyes
9792then :
9793  printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
9794
9795fi
9796ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
9797if test "x$ac_cv_func_memmove" = xyes
9798then :
9799  printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
9800
9801fi
9802ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
9803if test "x$ac_cv_func_strstr" = xyes
9804then :
9805  printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
9806
9807fi
9808ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
9809if test "x$ac_cv_func_strerror" = xyes
9810then :
9811  printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
9812
9813fi
9814ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
9815if test "x$ac_cv_func_strtoul" = xyes
9816then :
9817  printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
9818
9819fi
9820ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
9821if test "x$ac_cv_func_getrlimit" = xyes
9822then :
9823  printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
9824
9825fi
9826ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
9827if test "x$ac_cv_func_getrusage" = xyes
9828then :
9829  printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
9830
9831fi
9832ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
9833if test "x$ac_cv_func_setlocale" = xyes
9834then :
9835  printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
9836
9837fi
9838ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
9839if test "x$ac_cv_func_isblank" = xyes
9840then :
9841  printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h
9842
9843fi
9844ac_fn_c_check_func "$LINENO" "iswblank" "ac_cv_func_iswblank"
9845if test "x$ac_cv_func_iswblank" = xyes
9846then :
9847  printf "%s\n" "#define HAVE_ISWBLANK 1" >>confdefs.h
9848
9849fi
9850ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
9851if test "x$ac_cv_func_uname" = xyes
9852then :
9853  printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
9854
9855fi
9856ac_fn_c_check_func "$LINENO" "signgam" "ac_cv_func_signgam"
9857if test "x$ac_cv_func_signgam" = xyes
9858then :
9859  printf "%s\n" "#define HAVE_SIGNGAM 1" >>confdefs.h
9860
9861fi
9862ac_fn_c_check_func "$LINENO" "tgamma" "ac_cv_func_tgamma"
9863if test "x$ac_cv_func_tgamma" = xyes
9864then :
9865  printf "%s\n" "#define HAVE_TGAMMA 1" >>confdefs.h
9866
9867fi
9868ac_fn_c_check_func "$LINENO" "log2" "ac_cv_func_log2"
9869if test "x$ac_cv_func_log2" = xyes
9870then :
9871  printf "%s\n" "#define HAVE_LOG2 1" >>confdefs.h
9872
9873fi
9874ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
9875if test "x$ac_cv_func_scalbn" = xyes
9876then :
9877  printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
9878
9879fi
9880ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
9881if test "x$ac_cv_func_putenv" = xyes
9882then :
9883  printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
9884
9885fi
9886ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
9887if test "x$ac_cv_func_getenv" = xyes
9888then :
9889  printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
9890
9891fi
9892ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
9893if test "x$ac_cv_func_setenv" = xyes
9894then :
9895  printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
9896
9897fi
9898ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
9899if test "x$ac_cv_func_unsetenv" = xyes
9900then :
9901  printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
9902
9903fi
9904ac_fn_c_check_func "$LINENO" "xw" "ac_cv_func_xw"
9905if test "x$ac_cv_func_xw" = xyes
9906then :
9907  printf "%s\n" "#define HAVE_XW 1" >>confdefs.h
9908
9909fi
9910ac_fn_c_check_func "$LINENO" "brk" "ac_cv_func_brk"
9911if test "x$ac_cv_func_brk" = xyes
9912then :
9913  printf "%s\n" "#define HAVE_BRK 1" >>confdefs.h
9914
9915fi
9916ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
9917if test "x$ac_cv_func_sbrk" = xyes
9918then :
9919  printf "%s\n" "#define HAVE_SBRK 1" >>confdefs.h
9920
9921fi
9922ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
9923if test "x$ac_cv_func_pathconf" = xyes
9924then :
9925  printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
9926
9927fi
9928ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
9929if test "x$ac_cv_func_sysconf" = xyes
9930then :
9931  printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
9932
9933fi
9934ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
9935if test "x$ac_cv_func_tgetent" = xyes
9936then :
9937  printf "%s\n" "#define HAVE_TGETENT 1" >>confdefs.h
9938
9939fi
9940ac_fn_c_check_func "$LINENO" "tigetflag" "ac_cv_func_tigetflag"
9941if test "x$ac_cv_func_tigetflag" = xyes
9942then :
9943  printf "%s\n" "#define HAVE_TIGETFLAG 1" >>confdefs.h
9944
9945fi
9946ac_fn_c_check_func "$LINENO" "tigetnum" "ac_cv_func_tigetnum"
9947if test "x$ac_cv_func_tigetnum" = xyes
9948then :
9949  printf "%s\n" "#define HAVE_TIGETNUM 1" >>confdefs.h
9950
9951fi
9952ac_fn_c_check_func "$LINENO" "tigetstr" "ac_cv_func_tigetstr"
9953if test "x$ac_cv_func_tigetstr" = xyes
9954then :
9955  printf "%s\n" "#define HAVE_TIGETSTR 1" >>confdefs.h
9956
9957fi
9958ac_fn_c_check_func "$LINENO" "setupterm" "ac_cv_func_setupterm"
9959if test "x$ac_cv_func_setupterm" = xyes
9960then :
9961  printf "%s\n" "#define HAVE_SETUPTERM 1" >>confdefs.h
9962
9963fi
9964ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
9965if test "x$ac_cv_func_initscr" = xyes
9966then :
9967  printf "%s\n" "#define HAVE_INITSCR 1" >>confdefs.h
9968
9969fi
9970ac_fn_c_check_func "$LINENO" "resize_term" "ac_cv_func_resize_term"
9971if test "x$ac_cv_func_resize_term" = xyes
9972then :
9973  printf "%s\n" "#define HAVE_RESIZE_TERM 1" >>confdefs.h
9974
9975fi
9976ac_fn_c_check_func "$LINENO" "getcchar" "ac_cv_func_getcchar"
9977if test "x$ac_cv_func_getcchar" = xyes
9978then :
9979  printf "%s\n" "#define HAVE_GETCCHAR 1" >>confdefs.h
9980
9981fi
9982ac_fn_c_check_func "$LINENO" "setcchar" "ac_cv_func_setcchar"
9983if test "x$ac_cv_func_setcchar" = xyes
9984then :
9985  printf "%s\n" "#define HAVE_SETCCHAR 1" >>confdefs.h
9986
9987fi
9988ac_fn_c_check_func "$LINENO" "waddwstr" "ac_cv_func_waddwstr"
9989if test "x$ac_cv_func_waddwstr" = xyes
9990then :
9991  printf "%s\n" "#define HAVE_WADDWSTR 1" >>confdefs.h
9992
9993fi
9994ac_fn_c_check_func "$LINENO" "wget_wch" "ac_cv_func_wget_wch"
9995if test "x$ac_cv_func_wget_wch" = xyes
9996then :
9997  printf "%s\n" "#define HAVE_WGET_WCH 1" >>confdefs.h
9998
9999fi
10000ac_fn_c_check_func "$LINENO" "win_wch" "ac_cv_func_win_wch"
10001if test "x$ac_cv_func_win_wch" = xyes
10002then :
10003  printf "%s\n" "#define HAVE_WIN_WCH 1" >>confdefs.h
10004
10005fi
10006ac_fn_c_check_func "$LINENO" "use_default_colors" "ac_cv_func_use_default_colors"
10007if test "x$ac_cv_func_use_default_colors" = xyes
10008then :
10009  printf "%s\n" "#define HAVE_USE_DEFAULT_COLORS 1" >>confdefs.h
10010
10011fi
10012ac_fn_c_check_func "$LINENO" "pcre_compile" "ac_cv_func_pcre_compile"
10013if test "x$ac_cv_func_pcre_compile" = xyes
10014then :
10015  printf "%s\n" "#define HAVE_PCRE_COMPILE 1" >>confdefs.h
10016
10017fi
10018ac_fn_c_check_func "$LINENO" "pcre_study" "ac_cv_func_pcre_study"
10019if test "x$ac_cv_func_pcre_study" = xyes
10020then :
10021  printf "%s\n" "#define HAVE_PCRE_STUDY 1" >>confdefs.h
10022
10023fi
10024ac_fn_c_check_func "$LINENO" "pcre_exec" "ac_cv_func_pcre_exec"
10025if test "x$ac_cv_func_pcre_exec" = xyes
10026then :
10027  printf "%s\n" "#define HAVE_PCRE_EXEC 1" >>confdefs.h
10028
10029fi
10030ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
10031if test "x$ac_cv_func_nl_langinfo" = xyes
10032then :
10033  printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
10034
10035fi
10036ac_fn_c_check_func "$LINENO" "erand48" "ac_cv_func_erand48"
10037if test "x$ac_cv_func_erand48" = xyes
10038then :
10039  printf "%s\n" "#define HAVE_ERAND48 1" >>confdefs.h
10040
10041fi
10042ac_fn_c_check_func "$LINENO" "open_memstream" "ac_cv_func_open_memstream"
10043if test "x$ac_cv_func_open_memstream" = xyes
10044then :
10045  printf "%s\n" "#define HAVE_OPEN_MEMSTREAM 1" >>confdefs.h
10046
10047fi
10048ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
10049if test "x$ac_cv_func_posix_openpt" = xyes
10050then :
10051  printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h
10052
10053fi
10054ac_fn_c_check_func "$LINENO" "wctomb" "ac_cv_func_wctomb"
10055if test "x$ac_cv_func_wctomb" = xyes
10056then :
10057  printf "%s\n" "#define HAVE_WCTOMB 1" >>confdefs.h
10058
10059fi
10060ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
10061if test "x$ac_cv_func_iconv" = xyes
10062then :
10063  printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10064
10065fi
10066ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
10067if test "x$ac_cv_func_grantpt" = xyes
10068then :
10069  printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h
10070
10071fi
10072ac_fn_c_check_func "$LINENO" "unlockpt" "ac_cv_func_unlockpt"
10073if test "x$ac_cv_func_unlockpt" = xyes
10074then :
10075  printf "%s\n" "#define HAVE_UNLOCKPT 1" >>confdefs.h
10076
10077fi
10078ac_fn_c_check_func "$LINENO" "ptsname" "ac_cv_func_ptsname"
10079if test "x$ac_cv_func_ptsname" = xyes
10080then :
10081  printf "%s\n" "#define HAVE_PTSNAME 1" >>confdefs.h
10082
10083fi
10084ac_fn_c_check_func "$LINENO" "htons" "ac_cv_func_htons"
10085if test "x$ac_cv_func_htons" = xyes
10086then :
10087  printf "%s\n" "#define HAVE_HTONS 1" >>confdefs.h
10088
10089fi
10090ac_fn_c_check_func "$LINENO" "ntohs" "ac_cv_func_ntohs"
10091if test "x$ac_cv_func_ntohs" = xyes
10092then :
10093  printf "%s\n" "#define HAVE_NTOHS 1" >>confdefs.h
10094
10095fi
10096ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
10097if test "x$ac_cv_func_regcomp" = xyes
10098then :
10099  printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
10100
10101fi
10102ac_fn_c_check_func "$LINENO" "regexec" "ac_cv_func_regexec"
10103if test "x$ac_cv_func_regexec" = xyes
10104then :
10105  printf "%s\n" "#define HAVE_REGEXEC 1" >>confdefs.h
10106
10107fi
10108ac_fn_c_check_func "$LINENO" "regerror" "ac_cv_func_regerror"
10109if test "x$ac_cv_func_regerror" = xyes
10110then :
10111  printf "%s\n" "#define HAVE_REGERROR 1" >>confdefs.h
10112
10113fi
10114ac_fn_c_check_func "$LINENO" "regfree" "ac_cv_func_regfree"
10115if test "x$ac_cv_func_regfree" = xyes
10116then :
10117  printf "%s\n" "#define HAVE_REGFREE 1" >>confdefs.h
10118
10119fi
10120ac_fn_c_check_func "$LINENO" "gdbm_open" "ac_cv_func_gdbm_open"
10121if test "x$ac_cv_func_gdbm_open" = xyes
10122then :
10123  printf "%s\n" "#define HAVE_GDBM_OPEN 1" >>confdefs.h
10124
10125fi
10126ac_fn_c_check_func "$LINENO" "getxattr" "ac_cv_func_getxattr"
10127if test "x$ac_cv_func_getxattr" = xyes
10128then :
10129  printf "%s\n" "#define HAVE_GETXATTR 1" >>confdefs.h
10130
10131fi
10132ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
10133if test "x$ac_cv_func_realpath" = xyes
10134then :
10135  printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
10136
10137fi
10138ac_fn_c_check_func "$LINENO" "canonicalize_file_name" "ac_cv_func_canonicalize_file_name"
10139if test "x$ac_cv_func_canonicalize_file_name" = xyes
10140then :
10141  printf "%s\n" "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
10142
10143fi
10144ac_fn_c_check_func "$LINENO" "symlink" "ac_cv_func_symlink"
10145if test "x$ac_cv_func_symlink" = xyes
10146then :
10147  printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h
10148
10149fi
10150ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
10151if test "x$ac_cv_func_getcwd" = xyes
10152then :
10153  printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
10154
10155fi
10156ac_fn_c_check_func "$LINENO" "cygwin_conv_path" "ac_cv_func_cygwin_conv_path"
10157if test "x$ac_cv_func_cygwin_conv_path" = xyes
10158then :
10159  printf "%s\n" "#define HAVE_CYGWIN_CONV_PATH 1" >>confdefs.h
10160
10161fi
10162ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
10163if test "x$ac_cv_func_nanosleep" = xyes
10164then :
10165  printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
10166
10167fi
10168ac_fn_c_check_func "$LINENO" "srand_deterministic" "ac_cv_func_srand_deterministic"
10169if test "x$ac_cv_func_srand_deterministic" = xyes
10170then :
10171  printf "%s\n" "#define HAVE_SRAND_DETERMINISTIC 1" >>confdefs.h
10172
10173fi
10174ac_fn_c_check_func "$LINENO" "setutxent" "ac_cv_func_setutxent"
10175if test "x$ac_cv_func_setutxent" = xyes
10176then :
10177  printf "%s\n" "#define HAVE_SETUTXENT 1" >>confdefs.h
10178
10179fi
10180ac_fn_c_check_func "$LINENO" "getutxent" "ac_cv_func_getutxent"
10181if test "x$ac_cv_func_getutxent" = xyes
10182then :
10183  printf "%s\n" "#define HAVE_GETUTXENT 1" >>confdefs.h
10184
10185fi
10186ac_fn_c_check_func "$LINENO" "endutxent" "ac_cv_func_endutxent"
10187if test "x$ac_cv_func_endutxent" = xyes
10188then :
10189  printf "%s\n" "#define HAVE_ENDUTXENT 1" >>confdefs.h
10190
10191fi
10192ac_fn_c_check_func "$LINENO" "getutent" "ac_cv_func_getutent"
10193if test "x$ac_cv_func_getutent" = xyes
10194then :
10195  printf "%s\n" "#define HAVE_GETUTENT 1" >>confdefs.h
10196
10197fi
10198
10199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
10200printf %s "checking for working strcoll... " >&6; }
10201if test ${ac_cv_func_strcoll_works+y}
10202then :
10203  printf %s "(cached) " >&6
10204else $as_nop
10205  if test "$cross_compiling" = yes
10206then :
10207  case "$host_os" in # ((
10208			  # Guess yes on glibc systems.
10209		  *-gnu*) ac_cv_func_strcoll_works=yes ;;
10210			  # If we don't know, assume the worst.
10211		  *)      ac_cv_func_strcoll_works=no ;;
10212		esac
10213else $as_nop
10214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10215/* end confdefs.h.  */
10216$ac_includes_default
10217int
10218main (void)
10219{
10220return (strcoll ("abc", "def") >= 0 ||
10221	 strcoll ("ABC", "DEF") >= 0 ||
10222	 strcoll ("123", "456") >= 0)
10223  ;
10224  return 0;
10225}
10226_ACEOF
10227if ac_fn_c_try_run "$LINENO"
10228then :
10229  ac_cv_func_strcoll_works=yes
10230else $as_nop
10231  ac_cv_func_strcoll_works=no
10232fi
10233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10234  conftest.$ac_objext conftest.beam conftest.$ac_ext
10235fi
10236
10237fi
10238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
10239printf "%s\n" "$ac_cv_func_strcoll_works" >&6; }
10240if test $ac_cv_func_strcoll_works = yes; then
10241
10242printf "%s\n" "#define HAVE_STRCOLL 1" >>confdefs.h
10243
10244fi
10245
10246
10247# isinf() and isnan() can exist as either functions or macros.
10248
10249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
10250printf %s "checking for isinf... " >&6; }
10251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252/* end confdefs.h.  */
10253#include <math.h>
10254int main () { return (isinf(1.0) != 0); }
10255_ACEOF
10256if ac_fn_c_try_link "$LINENO"
10257then :
10258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10259printf "%s\n" "yes" >&6; }
10260   printf "%s\n" "#define HAVE_ISINF 1" >>confdefs.h
10261
10262else $as_nop
10263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264printf "%s\n" "no" >&6; }
10265fi
10266rm -f core conftest.err conftest.$ac_objext conftest.beam \
10267    conftest$ac_exeext conftest.$ac_ext
10268
10269
10270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
10271printf %s "checking for isnan... " >&6; }
10272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273/* end confdefs.h.  */
10274
10275#include <math.h>
10276int main () { return (isnan(1.0) != 0); }
10277_ACEOF
10278if ac_fn_c_try_link "$LINENO"
10279then :
10280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10281printf "%s\n" "yes" >&6; }
10282   printf "%s\n" "#define HAVE_ISNAN 1" >>confdefs.h
10283
10284else $as_nop
10285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286printf "%s\n" "no" >&6; }
10287fi
10288rm -f core conftest.err conftest.$ac_objext conftest.beam \
10289    conftest$ac_exeext conftest.$ac_ext
10290
10291
10292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if realpath accepts NULL" >&5
10293printf %s "checking if realpath accepts NULL... " >&6; }
10294if test ${zsh_cv_func_realpath_accepts_null+y}
10295then :
10296  printf %s "(cached) " >&6
10297else $as_nop
10298  if test "$cross_compiling" = yes
10299then :
10300  zsh_cv_func_realpath_accepts_null=$ac_cv_func_canonicalize_file_name
10301else $as_nop
10302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303/* end confdefs.h.  */
10304
10305#include <stdlib.h>
10306#include <limits.h>
10307
10308int
10309main (void)
10310{
10311
10312exit(!realpath("/", (char*)0));
10313
10314  ;
10315  return 0;
10316}
10317_ACEOF
10318if ac_fn_c_try_run "$LINENO"
10319then :
10320  zsh_cv_func_realpath_accepts_null=yes
10321else $as_nop
10322  zsh_cv_func_realpath_accepts_null=no
10323fi
10324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10325  conftest.$ac_objext conftest.beam conftest.$ac_ext
10326fi
10327
10328fi
10329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_func_realpath_accepts_null" >&5
10330printf "%s\n" "$zsh_cv_func_realpath_accepts_null" >&6; }
10331if test x$zsh_cv_func_realpath_accepts_null = xyes; then
10332  printf "%s\n" "#define REALPATH_ACCEPTS_NULL 1" >>confdefs.h
10333
10334fi
10335
10336if test x$enable_cap = xyes; then
10337  ac_fn_c_check_func "$LINENO" "cap_get_proc" "ac_cv_func_cap_get_proc"
10338if test "x$ac_cv_func_cap_get_proc" = xyes
10339then :
10340  printf "%s\n" "#define HAVE_CAP_GET_PROC 1" >>confdefs.h
10341
10342fi
10343
10344fi
10345
10346
10347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if tgetent accepts NULL" >&5
10348printf %s "checking if tgetent accepts NULL... " >&6; }
10349if test ${zsh_cv_func_tgetent_accepts_null+y}
10350then :
10351  printf %s "(cached) " >&6
10352else $as_nop
10353  if test "$cross_compiling" = yes
10354then :
10355  zsh_cv_func_tgetent_accepts_null=no
10356else $as_nop
10357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358/* end confdefs.h.  */
10359
10360#include <fcntl.h>
10361#include <stdlib.h>
10362int tgetent(char *, char *);
10363char *tgetstr(char *, char **);
10364main()
10365{
10366    char buf[4096];
10367    int r1 = tgetent(buf, "vt100");
10368    int r2 = tgetent((char*)0,"vt100");
10369    if (r1 >= 0 && r1 == r2) {
10370        char tbuf[1024], *u;
10371        u = tbuf;
10372    	tgetstr("cl", &u);
10373	creat("conftest.tgetent", 0640);
10374    }
10375    exit((r1 != r2) || r2 == -1);
10376}
10377
10378_ACEOF
10379if ac_fn_c_try_run "$LINENO"
10380then :
10381  if test -f conftest.tgetent; then
10382    zsh_cv_func_tgetent_accepts_null=yes
10383  else
10384    zsh_cv_func_tgetent_accepts_null=no
10385  fi
10386else $as_nop
10387  zsh_cv_func_tgetent_accepts_null=no
10388fi
10389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10390  conftest.$ac_objext conftest.beam conftest.$ac_ext
10391fi
10392
10393fi
10394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_func_tgetent_accepts_null" >&5
10395printf "%s\n" "$zsh_cv_func_tgetent_accepts_null" >&6; }
10396if test x$zsh_cv_func_tgetent_accepts_null = xyes; then
10397  printf "%s\n" "#define TGETENT_ACCEPTS_NULL 1" >>confdefs.h
10398
10399fi
10400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if tgetent returns 0 on success" >&5
10401printf %s "checking if tgetent returns 0 on success... " >&6; }
10402if test ${zsh_cv_func_tgetent_zero_success+y}
10403then :
10404  printf %s "(cached) " >&6
10405else $as_nop
10406  if test "$cross_compiling" = yes
10407then :
10408  zsh_cv_func_tgetent_zero_success=no
10409else $as_nop
10410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411/* end confdefs.h.  */
10412
10413#include <fcntl.h>
10414#include <stdlib.h>
10415int tgetent(char *, char*);
10416char *tgetstr(char *, char **);
10417main()
10418{
10419    char buf[4096];
10420    int r1 = tgetent(buf, "!@#$%^&*");
10421    int r2 = tgetent(buf, "vt100");
10422    if (r1 < 0 && r2 == 0) {
10423        char tbuf[1024], *u;
10424        u = tbuf;
10425    	tgetstr("cl", &u);
10426	creat("conftest.tgetent0", 0640);
10427    }
10428    exit(r1 == r2);
10429}
10430
10431_ACEOF
10432if ac_fn_c_try_run "$LINENO"
10433then :
10434  if test -f conftest.tgetent0; then
10435    zsh_cv_func_tgetent_zero_success=yes
10436  else
10437    zsh_cv_func_tgetent_zero_success=no
10438  fi
10439else $as_nop
10440  zsh_cv_func_tgetent_zero_success=no
10441fi
10442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10443  conftest.$ac_objext conftest.beam conftest.$ac_ext
10444fi
10445
10446fi
10447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_func_tgetent_zero_success" >&5
10448printf "%s\n" "$zsh_cv_func_tgetent_zero_success" >&6; }
10449
10450if test x$zsh_cv_func_tgetent_zero_success = xyes; then
10451  printf "%s\n" "#define TGETENT_SUCCESS 0" >>confdefs.h
10452
10453else
10454  printf "%s\n" "#define TGETENT_SUCCESS 1" >>confdefs.h
10455
10456fi
10457
10458
10459ac_func=
10460for ac_item in $ac_func_c_list
10461do
10462  if test $ac_func; then
10463    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
10464    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
10465      echo "#define $ac_item 1" >> confdefs.h
10466    fi
10467    ac_func=
10468  else
10469    ac_func=$ac_item
10470  fi
10471done
10472
10473
10474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10475printf %s "checking for working mmap... " >&6; }
10476if test ${ac_cv_func_mmap_fixed_mapped+y}
10477then :
10478  printf %s "(cached) " >&6
10479else $as_nop
10480  if test "$cross_compiling" = yes
10481then :
10482  case "$host_os" in # ((
10483			  # Guess yes on platforms where we know the result.
10484		  linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
10485			  # If we don't know, assume the worst.
10486		  *)      ac_cv_func_mmap_fixed_mapped=no ;;
10487		esac
10488else $as_nop
10489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490/* end confdefs.h.  */
10491$ac_includes_default
10492/* malloc might have been renamed as rpl_malloc. */
10493#undef malloc
10494
10495/* Thanks to Mike Haertel and Jim Avera for this test.
10496   Here is a matrix of mmap possibilities:
10497	mmap private not fixed
10498	mmap private fixed at somewhere currently unmapped
10499	mmap private fixed at somewhere already mapped
10500	mmap shared not fixed
10501	mmap shared fixed at somewhere currently unmapped
10502	mmap shared fixed at somewhere already mapped
10503   For private mappings, we should verify that changes cannot be read()
10504   back from the file, nor mmap's back from the file at a different
10505   address.  (There have been systems where private was not correctly
10506   implemented like the infamous i386 svr4.0, and systems where the
10507   VM page cache was not coherent with the file system buffer cache
10508   like early versions of FreeBSD and possibly contemporary NetBSD.)
10509   For shared mappings, we should conversely verify that changes get
10510   propagated back to all the places they're supposed to be.
10511
10512   Grep wants private fixed already mapped.
10513   The main things grep needs to know about mmap are:
10514   * does it exist and is it safe to write into the mmap'd area
10515   * how to use it (BSD variants)  */
10516
10517#include <fcntl.h>
10518#include <sys/mman.h>
10519
10520/* This mess was copied from the GNU getpagesize.h.  */
10521#ifndef HAVE_GETPAGESIZE
10522# ifdef _SC_PAGESIZE
10523#  define getpagesize() sysconf(_SC_PAGESIZE)
10524# else /* no _SC_PAGESIZE */
10525#  ifdef HAVE_SYS_PARAM_H
10526#   include <sys/param.h>
10527#   ifdef EXEC_PAGESIZE
10528#    define getpagesize() EXEC_PAGESIZE
10529#   else /* no EXEC_PAGESIZE */
10530#    ifdef NBPG
10531#     define getpagesize() NBPG * CLSIZE
10532#     ifndef CLSIZE
10533#      define CLSIZE 1
10534#     endif /* no CLSIZE */
10535#    else /* no NBPG */
10536#     ifdef NBPC
10537#      define getpagesize() NBPC
10538#     else /* no NBPC */
10539#      ifdef PAGESIZE
10540#       define getpagesize() PAGESIZE
10541#      endif /* PAGESIZE */
10542#     endif /* no NBPC */
10543#    endif /* no NBPG */
10544#   endif /* no EXEC_PAGESIZE */
10545#  else /* no HAVE_SYS_PARAM_H */
10546#   define getpagesize() 8192	/* punt totally */
10547#  endif /* no HAVE_SYS_PARAM_H */
10548# endif /* no _SC_PAGESIZE */
10549
10550#endif /* no HAVE_GETPAGESIZE */
10551
10552int
10553main (void)
10554{
10555  char *data, *data2, *data3;
10556  const char *cdata2;
10557  int i, pagesize;
10558  int fd, fd2;
10559
10560  pagesize = getpagesize ();
10561
10562  /* First, make a file with some known garbage in it. */
10563  data = (char *) malloc (pagesize);
10564  if (!data)
10565    return 1;
10566  for (i = 0; i < pagesize; ++i)
10567    *(data + i) = rand ();
10568  umask (0);
10569  fd = creat ("conftest.mmap", 0600);
10570  if (fd < 0)
10571    return 2;
10572  if (write (fd, data, pagesize) != pagesize)
10573    return 3;
10574  close (fd);
10575
10576  /* Next, check that the tail of a page is zero-filled.  File must have
10577     non-zero length, otherwise we risk SIGBUS for entire page.  */
10578  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10579  if (fd2 < 0)
10580    return 4;
10581  cdata2 = "";
10582  if (write (fd2, cdata2, 1) != 1)
10583    return 5;
10584  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10585  if (data2 == MAP_FAILED)
10586    return 6;
10587  for (i = 0; i < pagesize; ++i)
10588    if (*(data2 + i))
10589      return 7;
10590  close (fd2);
10591  if (munmap (data2, pagesize))
10592    return 8;
10593
10594  /* Next, try to mmap the file at a fixed address which already has
10595     something else allocated at it.  If we can, also make sure that
10596     we see the same garbage.  */
10597  fd = open ("conftest.mmap", O_RDWR);
10598  if (fd < 0)
10599    return 9;
10600  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10601		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
10602    return 10;
10603  for (i = 0; i < pagesize; ++i)
10604    if (*(data + i) != *(data2 + i))
10605      return 11;
10606
10607  /* Finally, make sure that changes to the mapped area do not
10608     percolate back to the file as seen by read().  (This is a bug on
10609     some variants of i386 svr4.0.)  */
10610  for (i = 0; i < pagesize; ++i)
10611    *(data2 + i) = *(data2 + i) + 1;
10612  data3 = (char *) malloc (pagesize);
10613  if (!data3)
10614    return 12;
10615  if (read (fd, data3, pagesize) != pagesize)
10616    return 13;
10617  for (i = 0; i < pagesize; ++i)
10618    if (*(data + i) != *(data3 + i))
10619      return 14;
10620  close (fd);
10621  free (data);
10622  free (data3);
10623  return 0;
10624}
10625_ACEOF
10626if ac_fn_c_try_run "$LINENO"
10627then :
10628  ac_cv_func_mmap_fixed_mapped=yes
10629else $as_nop
10630  ac_cv_func_mmap_fixed_mapped=no
10631fi
10632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10633  conftest.$ac_objext conftest.beam conftest.$ac_ext
10634fi
10635
10636fi
10637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10638printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
10639if test $ac_cv_func_mmap_fixed_mapped = yes; then
10640
10641printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
10642
10643fi
10644rm -f conftest.mmap conftest.txt
10645
10646if test x$ac_cv_func_mmap_fixed_mapped = xyes; then
10647  ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
10648if test "x$ac_cv_func_munmap" = xyes
10649then :
10650  printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
10651
10652fi
10653ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
10654if test "x$ac_cv_func_msync" = xyes
10655then :
10656  printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
10657
10658fi
10659
10660fi
10661
10662if test x$ac_cv_func_setpgrp = xyes; then
10663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
10664printf %s "checking whether getpgrp requires zero arguments... " >&6; }
10665if test ${ac_cv_func_getpgrp_void+y}
10666then :
10667  printf %s "(cached) " >&6
10668else $as_nop
10669  # Use it with a single arg.
10670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671/* end confdefs.h.  */
10672$ac_includes_default
10673int
10674main (void)
10675{
10676getpgrp (0);
10677  ;
10678  return 0;
10679}
10680_ACEOF
10681if ac_fn_c_try_compile "$LINENO"
10682then :
10683  ac_cv_func_getpgrp_void=no
10684else $as_nop
10685  ac_cv_func_getpgrp_void=yes
10686fi
10687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10688
10689fi
10690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
10691printf "%s\n" "$ac_cv_func_getpgrp_void" >&6; }
10692if test $ac_cv_func_getpgrp_void = yes; then
10693
10694printf "%s\n" "#define GETPGRP_VOID 1" >>confdefs.h
10695
10696fi
10697
10698else
10699          ac_cv_func_getpgrp_void=yes
10700  printf "%s\n" "#define GETPGRP_VOID 1" >>confdefs.h
10701
10702fi
10703
10704if test x$dynamic = xyes; then
10705  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10706if test "x$ac_cv_func_dlopen" = xyes
10707then :
10708  printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
10709
10710fi
10711ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
10712if test "x$ac_cv_func_dlerror" = xyes
10713then :
10714  printf "%s\n" "#define HAVE_DLERROR 1" >>confdefs.h
10715
10716fi
10717ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
10718if test "x$ac_cv_func_dlsym" = xyes
10719then :
10720  printf "%s\n" "#define HAVE_DLSYM 1" >>confdefs.h
10721
10722fi
10723ac_fn_c_check_func "$LINENO" "dlclose" "ac_cv_func_dlclose"
10724if test "x$ac_cv_func_dlclose" = xyes
10725then :
10726  printf "%s\n" "#define HAVE_DLCLOSE 1" >>confdefs.h
10727
10728fi
10729ac_fn_c_check_func "$LINENO" "load" "ac_cv_func_load"
10730if test "x$ac_cv_func_load" = xyes
10731then :
10732  printf "%s\n" "#define HAVE_LOAD 1" >>confdefs.h
10733
10734fi
10735ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
10736if test "x$ac_cv_func_loadquery" = xyes
10737then :
10738  printf "%s\n" "#define HAVE_LOADQUERY 1" >>confdefs.h
10739
10740fi
10741ac_fn_c_check_func "$LINENO" "loadbind" "ac_cv_func_loadbind"
10742if test "x$ac_cv_func_loadbind" = xyes
10743then :
10744  printf "%s\n" "#define HAVE_LOADBIND 1" >>confdefs.h
10745
10746fi
10747ac_fn_c_check_func "$LINENO" "unload" "ac_cv_func_unload"
10748if test "x$ac_cv_func_unload" = xyes
10749then :
10750  printf "%s\n" "#define HAVE_UNLOAD 1" >>confdefs.h
10751
10752fi
10753ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10754if test "x$ac_cv_func_shl_load" = xyes
10755then :
10756  printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
10757
10758fi
10759ac_fn_c_check_func "$LINENO" "shl_unload" "ac_cv_func_shl_unload"
10760if test "x$ac_cv_func_shl_unload" = xyes
10761then :
10762  printf "%s\n" "#define HAVE_SHL_UNLOAD 1" >>confdefs.h
10763
10764fi
10765ac_fn_c_check_func "$LINENO" "shl_findsym" "ac_cv_func_shl_findsym"
10766if test "x$ac_cv_func_shl_findsym" = xyes
10767then :
10768  printf "%s\n" "#define HAVE_SHL_FINDSYM 1" >>confdefs.h
10769
10770fi
10771
10772fi
10773
10774
10775if test x$ac_cv_func_getxattr = xyes && test x$ac_cv_header_sys_xattr_h = xyes
10776then
10777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getxattr etc. are Linux-like" >&5
10778printf %s "checking if getxattr etc. are Linux-like... " >&6; }
10779if test ${zsh_cv_getxattr_linux+y}
10780then :
10781  printf %s "(cached) " >&6
10782else $as_nop
10783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784/* end confdefs.h.  */
10785#include <sys/types.h>
10786#include <sys/xattr.h>
10787int
10788main (void)
10789{
10790
10791  (void)listxattr("", 0, 0);
10792  (void)getxattr("", "", 0, 0);
10793  (void)setxattr("", "", "", 0, 0);
10794  (void)removexattr("", "");
10795
10796  ;
10797  return 0;
10798}
10799_ACEOF
10800if ac_fn_c_try_compile "$LINENO"
10801then :
10802  zsh_cv_getxattr_linux=yes
10803else $as_nop
10804  zsh_cv_getxattr_linux=no
10805fi
10806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10807fi
10808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_getxattr_linux" >&5
10809printf "%s\n" "$zsh_cv_getxattr_linux" >&6; }
10810
10811  if test x$zsh_cv_getxattr_linux != xyes; then
10812    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getxattr etc. are MAC-like" >&5
10813printf %s "checking if getxattr etc. are MAC-like... " >&6; }
10814if test ${zsh_cv_getxattr_mac+y}
10815then :
10816  printf %s "(cached) " >&6
10817else $as_nop
10818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819/* end confdefs.h.  */
10820#include <sys/types.h>
10821#include <sys/xattr.h>
10822int
10823main (void)
10824{
10825(void)listxattr("", 0, 0, 0);
10826    (void)getxattr("", "", 0, 0, 0, 0);
10827    (void)setxattr("", "", "", 0, 0, 0);
10828    (void)removexattr("", "", 0);
10829  ;
10830  return 0;
10831}
10832_ACEOF
10833if ac_fn_c_try_compile "$LINENO"
10834then :
10835  zsh_cv_getxattr_mac=yes
10836else $as_nop
10837  zsh_cv_getxattr_mac=no
10838fi
10839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10840fi
10841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_getxattr_mac" >&5
10842printf "%s\n" "$zsh_cv_getxattr_mac" >&6; }
10843
10844    if test x$zsh_cv_getxattr_mac = xyes; then
10845      printf "%s\n" "#define XATTR_EXTRA_ARGS 1" >>confdefs.h
10846
10847    fi
10848  fi
10849fi
10850
10851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getxattr etc. are usable" >&5
10852printf %s "checking if getxattr etc. are usable... " >&6; }
10853if test ${zsh_cv_use_xattr+y}
10854then :
10855  printf %s "(cached) " >&6
10856else $as_nop
10857  if test x$zsh_cv_getxattr_linux = xyes || test x$zsh_cv_getxattr_mac = xyes
10858then
10859zsh_cv_use_xattr=yes
10860else
10861zsh_cv_use_xattr=no
10862fi
10863fi
10864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_use_xattr" >&5
10865printf "%s\n" "$zsh_cv_use_xattr" >&6; }
10866
10867
10868
10869
10870
10871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what style of signals to use" >&5
10872printf %s "checking what style of signals to use... " >&6; }
10873if test x$ac_cv_func_sigaction = xyes && test x$ac_cv_func_sigprocmask = xyes; then
10874  signals_style=POSIX_SIGNALS
10875  printf "%s\n" "#define POSIX_SIGNALS 1" >>confdefs.h
10876
10877elif test x$ac_cv_func_sigblock = xyes && test x$ac_cv_func_sigsetmask = xyes; then
10878  signals_style=BSD_SIGNALS
10879  printf "%s\n" "#define BSD_SIGNALS 1" >>confdefs.h
10880
10881elif test x$ac_cv_func_sighold = xyes && test x$ac_cv_func_sigrelse = xyes; then
10882  signals_style=SYSV_SIGNALS
10883  printf "%s\n" "#define SYSV_SIGNALS 1" >>confdefs.h
10884
10885else
10886  signals_style=NO_SIGNAL_BLOCKING
10887  printf "%s\n" "#define NO_SIGNAL_BLOCKING 1" >>confdefs.h
10888
10889fi
10890printf "%s\n" "#define $signals_style 1" >>confdefs.h
10891
10892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $signals_style" >&5
10893printf "%s\n" "$signals_style" >&6; }
10894
10895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where signal.h is located" >&5
10896printf %s "checking where signal.h is located... " >&6; }
10897if test ${zsh_cv_path_signal_h+y}
10898then :
10899  printf %s "(cached) " >&6
10900else $as_nop
10901  echo "#include <signal.h>" > nametmp.c
10902sigfile_list="`$CPP $CPPFLAGS nametmp.c |
10903sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
10904       -e 's/^#[ 	].*\"\(.*\)\"/\1/p' |
10905sed 's/\\\\\\\\/\//g' |
10906$AWK '{ if ($1 ~ /sig/) files[$1] = $1 }
10907  END { for (var in files) print var }'`"
10908rm -f nametmp.c
10909if test -z "$sigfile_list"; then
10910      sigfile_list="/usr/include/sys/iso/signal_iso.h
10911/usr/include/bsd/sys/signal.h
10912/usr/include/signum.h
10913/usr/include/asm/signum.h
10914/usr/include/asm/signal.h
10915/usr/include/linux/signal.h
10916/usr/include/sys/signal.h
10917/usr/include/bits/signum.h
10918/dev/null"
10919fi
10920for SIGNAL_TRY_H in $sigfile_list
10921do
10922        nsigs=`test -f $SIGNAL_TRY_H && \
10923  grep '#[ 	]*define[ 	][ 	]*SIG[0-9A-Z]*[ 	]*[0-9][0-9]*' $SIGNAL_TRY_H | \
10924  wc -l | sed 's/ 	//g'`
10925  if test "x$nsigs" != x && test "$nsigs" -ge 7
10926  then
10927    SIGNAL_H="$SIGNAL_H $SIGNAL_TRY_H"
10928  fi
10929done
10930if test "x$SIGNAL_H" = x; then
10931  as_fn_error $? "SIGNAL MACROS NOT FOUND:  please report to developers" "$LINENO" 5
10932fi
10933zsh_cv_path_signal_h="$SIGNAL_H"
10934
10935fi
10936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_signal_h" >&5
10937printf "%s\n" "$zsh_cv_path_signal_h" >&6; }
10938SIGNAL_H="$zsh_cv_path_signal_h"
10939
10940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where error names are located" >&5
10941printf %s "checking where error names are located... " >&6; }
10942if test ${zsh_cv_path_errno_h+y}
10943then :
10944  printf %s "(cached) " >&6
10945else $as_nop
10946  echo "#include <errno.h>" > nametmp.c
10947errfile_list="`$CPP $CPPFLAGS nametmp.c |
10948sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
10949       -e 's/^#[ 	0-9].*\"\(.*\)\"/\1/p' |
10950sed 's/\\\\\\\\/\//g' |
10951$AWK '{ if ($1 ~ /err/) files[$1] = $1 }
10952  END { for (var in files) print var }'`"
10953rm -f nametmp.c
10954for ERRNO_TRY_H in $errfile_list /dev/null
10955do
10956              nerrs=`test -f $ERRNO_TRY_H && \
10957  $EGREP '#[ 	]*define[ 	][ 	]*E[0-9A-Z]*[ 	]*(_HURD_ERRNO )?\(?[_A-Z0-9]' $ERRNO_TRY_H | \
10958  wc -l | sed 's/ 	//g'`
10959  if test "x$nerrs" != x && test "$nerrs" -ge 1
10960  then
10961    ERRNO_H="$ERRNO_H $ERRNO_TRY_H"
10962  fi
10963done
10964if test x"$ERRNO_H" = x; then
10965  as_fn_error $? "ERROR MACROS NOT FOUND:  please report to developers" "$LINENO" 5
10966fi
10967zsh_cv_path_errno_h="$ERRNO_H"
10968
10969fi
10970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_errno_h" >&5
10971printf "%s\n" "$zsh_cv_path_errno_h" >&6; }
10972ERRNO_H="$zsh_cv_path_errno_h"
10973
10974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking location of curses header" >&5
10975printf %s "checking location of curses header... " >&6; }
10976if test ${zsh_cv_path_curses_header+y}
10977then :
10978  printf %s "(cached) " >&6
10979else $as_nop
10980  if test x$zsh_cv_ignore_ncurses = xyes; then
10981  if test x$ac_cv_header_curses_h = xyes; then
10982    zsh_cv_path_curses_header=curses.h
10983  else
10984    zsh_cv_path_curses_header=none
10985  fi
10986elif test x$ac_cv_header_ncursesw_ncurses_h = xyes; then
10987  zsh_cv_path_curses_header=ncursesw/ncurses.h
10988elif test x$ac_cv_header_ncurses_ncurses_h = xyes; then
10989  zsh_cv_path_curses_header=ncurses/ncurses.h
10990elif test x$ac_cv_header_ncurses_h = xyes; then
10991  zsh_cv_path_curses_header=ncurses.h
10992elif test x$ac_cv_header_curses_h = xyes; then
10993  zsh_cv_path_curses_header=curses.h
10994else
10995  zsh_cv_path_curses_header=none
10996fi
10997fi
10998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_curses_header" >&5
10999printf "%s\n" "$zsh_cv_path_curses_header" >&6; }
11000
11001if test x$zsh_cv_path_curses_header != xnone; then
11002  printf "%s\n" "#define ZSH_HAVE_CURSES_H 1" >>confdefs.h
11003
11004  ZSH_CURSES_H=$zsh_cv_path_curses_header
11005else
11006  ZSH_CURSES_H=
11007fi
11008
11009
11010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where curses key definitions are located" >&5
11011printf %s "checking where curses key definitions are located... " >&6; }
11012if test ${zsh_cv_path_curses_keys_h+y}
11013then :
11014  printf %s "(cached) " >&6
11015else $as_nop
11016  if test x$zsh_cv_path_curses_header = xnone; then
11017  echo >nametmp.c
11018else
11019  echo "#include <$zsh_cv_path_curses_header>" >nametmp.c
11020fi
11021
11022curses_list="`$CPP $CPPFLAGS nametmp.c |
11023sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
11024       -e 's/^#[ 	0-9].*\"\(.*\)\"/\1/p' |
11025sed 's/\\\\\\\\/\//g' |
11026$AWK '{ if ($1 ~ /\.h/) files[$1] = $1 }
11027  END { for (var in files) print var }'`"
11028rm -f nametmp.c
11029for CURSES_TRY_H in $curses_list /dev/null
11030do
11031  nkeys=`test -f $CURSES_TRY_H && \
11032  $EGREP '#[ 	]*define[ 	][ 	]*KEY_' $CURSES_TRY_H | \
11033  wc -l | sed 's/ 	//g'`
11034  if test "x$nkeys" != x && test "$nkeys" -ge 10
11035  then
11036    CURSES_KEYS_H=$CURSES_TRY_H
11037    break
11038  fi
11039done
11040zsh_cv_path_curses_keys_h="$CURSES_KEYS_H"
11041
11042fi
11043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_curses_keys_h" >&5
11044printf "%s\n" "$zsh_cv_path_curses_keys_h" >&6; }
11045CURSES_KEYS_H="$zsh_cv_path_curses_keys_h"
11046
11047       for ac_header in ncursesw/term.h
11048do :
11049  ac_fn_c_check_header_compile "$LINENO" "ncursesw/term.h" "ac_cv_header_ncursesw_term_h" "#include <ncursesw/ncurses.h>
11050"
11051if test "x$ac_cv_header_ncursesw_term_h" = xyes
11052then :
11053  printf "%s\n" "#define HAVE_NCURSESW_TERM_H 1" >>confdefs.h
11054 true
11055else $as_nop
11056  true
11057fi
11058
11059done
11060       for ac_header in ncurses/term.h
11061do :
11062  ac_fn_c_check_header_compile "$LINENO" "ncurses/term.h" "ac_cv_header_ncurses_term_h" "#include <ncurses/ncurses.h>
11063"
11064if test "x$ac_cv_header_ncurses_term_h" = xyes
11065then :
11066  printf "%s\n" "#define HAVE_NCURSES_TERM_H 1" >>confdefs.h
11067 true
11068else $as_nop
11069  true
11070fi
11071
11072done
11073       for ac_header in term.h
11074do :
11075  ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#include <curses.h>
11076"
11077if test "x$ac_cv_header_term_h" = xyes
11078then :
11079  printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h
11080 true
11081else $as_nop
11082  true
11083fi
11084
11085done
11086
11087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where term.h is located" >&5
11088printf %s "checking where term.h is located... " >&6; }
11089if test ${zsh_cv_path_term_header+y}
11090then :
11091  printf %s "(cached) " >&6
11092else $as_nop
11093  case x$zsh_cv_path_curses_header in
11094  xncursesw/*)
11095  if test x$ac_cv_header_ncursesw_term_h = xyes; then
11096    zsh_cv_path_term_header=ncursesw/term.h
11097  fi
11098  ;;
11099  xncurses/*)
11100  if test x$ac_cv_header_ncurses_term_h = xyes; then
11101    zsh_cv_path_term_header=ncurses/term.h
11102  fi
11103  ;;
11104esac
11105if test x$zsh_cv_path_term_header = x; then
11106  if test x$ac_cv_header_term_h = xyes; then
11107    zsh_cv_path_term_header=term.h
11108  else
11109    zsh_cv_path_term_header=none
11110  fi
11111fi
11112fi
11113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_term_header" >&5
11114printf "%s\n" "$zsh_cv_path_term_header" >&6; }
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125if test x$zsh_cv_path_term_header != xnone; then
11126  printf "%s\n" "#define ZSH_HAVE_TERM_H 1" >>confdefs.h
11127
11128  ZSH_TERM_H=$zsh_cv_path_term_header
11129  if test x$zsh_cv_path_curses_header != xnone; then
11130    term_includes="#include <$zsh_cv_path_curses_header>
11131#include <$zsh_cv_path_term_header>"
11132  else
11133    term_includes="#include <$zsh_cv_path_term_header>"
11134  fi
11135
11136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if boolcodes is available" >&5
11137printf %s "checking if boolcodes is available... " >&6; }
11138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139/* end confdefs.h.  */
11140$term_includes
11141int
11142main (void)
11143{
11144char **test = boolcodes; puts(*test);
11145  ;
11146  return 0;
11147}
11148_ACEOF
11149if ac_fn_c_try_link "$LINENO"
11150then :
11151  printf "%s\n" "#define HAVE_BOOLCODES 1" >>confdefs.h
11152 boolcodes=yes
11153else $as_nop
11154  boolcodes=no
11155fi
11156rm -f core conftest.err conftest.$ac_objext conftest.beam \
11157    conftest$ac_exeext conftest.$ac_ext
11158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boolcodes" >&5
11159printf "%s\n" "$boolcodes" >&6; }
11160
11161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if numcodes is available" >&5
11162printf %s "checking if numcodes is available... " >&6; }
11163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164/* end confdefs.h.  */
11165$term_includes
11166int
11167main (void)
11168{
11169char **test = numcodes; puts(*test);
11170  ;
11171  return 0;
11172}
11173_ACEOF
11174if ac_fn_c_try_link "$LINENO"
11175then :
11176  printf "%s\n" "#define HAVE_NUMCODES 1" >>confdefs.h
11177 numcodes=yes
11178else $as_nop
11179  numcodes=no
11180fi
11181rm -f core conftest.err conftest.$ac_objext conftest.beam \
11182    conftest$ac_exeext conftest.$ac_ext
11183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $numcodes" >&5
11184printf "%s\n" "$numcodes" >&6; }
11185
11186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcodes is available" >&5
11187printf %s "checking if strcodes is available... " >&6; }
11188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189/* end confdefs.h.  */
11190$term_includes
11191int
11192main (void)
11193{
11194char **test = strcodes; puts(*test);
11195  ;
11196  return 0;
11197}
11198_ACEOF
11199if ac_fn_c_try_link "$LINENO"
11200then :
11201  printf "%s\n" "#define HAVE_STRCODES 1" >>confdefs.h
11202 strcodes=yes
11203else $as_nop
11204  strcodes=no
11205fi
11206rm -f core conftest.err conftest.$ac_objext conftest.beam \
11207    conftest$ac_exeext conftest.$ac_ext
11208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $strcodes" >&5
11209printf "%s\n" "$strcodes" >&6; }
11210
11211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if boolnames is available" >&5
11212printf %s "checking if boolnames is available... " >&6; }
11213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214/* end confdefs.h.  */
11215$term_includes
11216int
11217main (void)
11218{
11219char **test = boolnames; puts(*test);
11220  ;
11221  return 0;
11222}
11223_ACEOF
11224if ac_fn_c_try_link "$LINENO"
11225then :
11226  printf "%s\n" "#define HAVE_BOOLNAMES 1" >>confdefs.h
11227 boolnames=yes
11228else $as_nop
11229  boolnames=no
11230fi
11231rm -f core conftest.err conftest.$ac_objext conftest.beam \
11232    conftest$ac_exeext conftest.$ac_ext
11233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boolnames" >&5
11234printf "%s\n" "$boolnames" >&6; }
11235
11236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if numnames is available" >&5
11237printf %s "checking if numnames is available... " >&6; }
11238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239/* end confdefs.h.  */
11240$term_includes
11241int
11242main (void)
11243{
11244char **test = numnames; puts(*test);
11245  ;
11246  return 0;
11247}
11248_ACEOF
11249if ac_fn_c_try_link "$LINENO"
11250then :
11251  printf "%s\n" "#define HAVE_NUMNAMES 1" >>confdefs.h
11252 numnames=yes
11253else $as_nop
11254  numnames=no
11255fi
11256rm -f core conftest.err conftest.$ac_objext conftest.beam \
11257    conftest$ac_exeext conftest.$ac_ext
11258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $numnames" >&5
11259printf "%s\n" "$numnames" >&6; }
11260
11261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnames is available" >&5
11262printf %s "checking if strnames is available... " >&6; }
11263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264/* end confdefs.h.  */
11265$term_includes
11266int
11267main (void)
11268{
11269char **test = strnames; puts(*test);
11270  ;
11271  return 0;
11272}
11273_ACEOF
11274if ac_fn_c_try_link "$LINENO"
11275then :
11276  printf "%s\n" "#define HAVE_STRNAMES 1" >>confdefs.h
11277 strnames=yes
11278else $as_nop
11279  strnames=no
11280fi
11281rm -f core conftest.err conftest.$ac_objext conftest.beam \
11282    conftest$ac_exeext conftest.$ac_ext
11283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $strnames" >&5
11284printf "%s\n" "$strnames" >&6; }
11285
11286      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if tgoto prototype is missing" >&5
11287printf %s "checking if tgoto prototype is missing... " >&6; }
11288  tgoto_includes="$term_includes
11289/* guaranteed to clash with any valid tgoto prototype */
11290extern void tgoto(int **stuff, float **more_stuff);"
11291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292/* end confdefs.h.  */
11293$tgoto_includes
11294int
11295main (void)
11296{
11297int *stuff; float *more_stuff; tgoto(&stuff, &more_stuff);
11298  ;
11299  return 0;
11300}
11301_ACEOF
11302if ac_fn_c_try_link "$LINENO"
11303then :
11304  printf "%s\n" "#define TGOTO_PROTO_MISSING 1" >>confdefs.h
11305 tgotoprotomissing=yes
11306else $as_nop
11307  tgotoprotomissing=no
11308fi
11309rm -f core conftest.err conftest.$ac_objext conftest.beam \
11310    conftest$ac_exeext conftest.$ac_ext
11311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tgotoprotomissing" >&5
11312printf "%s\n" "$tgotoprotomissing" >&6; }
11313else
11314  ZSH_TERM_H=
11315fi
11316
11317
11318
11319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the RLIMIT macros are located" >&5
11320printf %s "checking where the RLIMIT macros are located... " >&6; }
11321if test ${zsh_cv_path_rlimit_h+y}
11322then :
11323  printf %s "(cached) " >&6
11324else $as_nop
11325  echo "#include <sys/resource.h>" >restmp.c
11326resourcefile_list="`$CPP $CPPFLAGS restmp.c |
11327sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
11328       -e 's/^#[ 	].*\"\(.*\)\"/\1/p' |
11329sed 's/\\\\\\\\/\//g' |
11330$AWK '{ if ($1 ~ /resource/) files[$1] = $1 }
11331  END { for (var in files) print var }'`"
11332rm -f restmp.c
11333if test -z "$resourcefile_list"; then
11334    resourcefile_list="/usr/include/bsd/sys/resource.h
11335/usr/include/asm/resource.h
11336/usr/include/linux/resource.h
11337/usr/include/sys/resource.h
11338/usr/include/bits/resource.h
11339/usr/include/resourcebits.h"
11340fi
11341for RESOURCE_H in $resourcefile_list /dev/null;
11342do
11343  test -f $RESOURCE_H && \
11344  grep '#[ 	]*define[ 	][ 	]*RLIMIT_[A-Z]*[ 	]*[0-9A-Z][0-9]*' $RESOURCE_H > /dev/null && \
11345  break
11346done
11347zsh_cv_path_rlimit_h=$RESOURCE_H
11348if test x$RESOURCE_H = x"/dev/null" && test x$ac_cv_func_getrlimit = xyes; then
11349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: RLIMIT MACROS NOT FOUND:  please report to developers" >&5
11350printf "%s\n" "$as_me: WARNING: RLIMIT MACROS NOT FOUND:  please report to developers" >&2;}
11351fi
11352fi
11353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_rlimit_h" >&5
11354printf "%s\n" "$zsh_cv_path_rlimit_h" >&6; }
11355RLIMITS_INC_H=$zsh_cv_path_rlimit_h
11356if test "$RLIMITS_INC_H" = "/dev/null"; then
11357  RLIMITS_INC_H=''
11358fi
11359
11360
11361
11362
11363
11364DEFAULT_RLIM_T=long
11365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rlim_t is longer than a long" >&5
11366printf %s "checking if rlim_t is longer than a long... " >&6; }
11367if test ${zsh_cv_rlim_t_is_longer+y}
11368then :
11369  printf %s "(cached) " >&6
11370else $as_nop
11371  if test "$cross_compiling" = yes
11372then :
11373  zsh_cv_rlim_t_is_longer=yes
11374else $as_nop
11375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376/* end confdefs.h.  */
11377
11378#ifdef HAVE_SYS_TIME_H
11379#include <sys/time.h>
11380#endif
11381#include <sys/resource.h>
11382#include <stdlib.h>
11383main(){struct rlimit r;exit(sizeof(r.rlim_cur) <= sizeof(long));}
11384_ACEOF
11385if ac_fn_c_try_run "$LINENO"
11386then :
11387  zsh_cv_rlim_t_is_longer=yes
11388else $as_nop
11389  zsh_cv_rlim_t_is_longer=no
11390fi
11391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11392  conftest.$ac_objext conftest.beam conftest.$ac_ext
11393fi
11394
11395fi
11396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_rlim_t_is_longer" >&5
11397printf "%s\n" "$zsh_cv_rlim_t_is_longer" >&6; }
11398if test x$zsh_cv_rlim_t_is_longer = xyes; then
11399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rlim_t is a quad" >&5
11400printf %s "checking if rlim_t is a quad... " >&6; }
11401if test ${zsh_cv_rlim_t_is_quad_t+y}
11402then :
11403  printf %s "(cached) " >&6
11404else $as_nop
11405  if test "$cross_compiling" = yes
11406then :
11407  zsh_cv_rlim_t_is_quad_t=no
11408else $as_nop
11409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410/* end confdefs.h.  */
11411
11412#ifdef HAVE_SYS_TIME_H
11413#include <sys/time.h>
11414#endif
11415#include <stdio.h>
11416#include <sys/resource.h>
11417#include <stdlib.h>
11418main() {
11419  struct rlimit r;
11420  char buf[20];
11421  r.rlim_cur = 0;
11422  sprintf(buf, "%qd", r.rlim_cur);
11423  exit(strcmp(buf, "0"));
11424}
11425_ACEOF
11426if ac_fn_c_try_run "$LINENO"
11427then :
11428  zsh_cv_rlim_t_is_quad_t=yes
11429else $as_nop
11430  zsh_cv_rlim_t_is_quad_t=no
11431fi
11432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11433  conftest.$ac_objext conftest.beam conftest.$ac_ext
11434fi
11435
11436fi
11437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_rlim_t_is_quad_t" >&5
11438printf "%s\n" "$zsh_cv_rlim_t_is_quad_t" >&6; }
11439  if test x$zsh_cv_rlim_t_is_quad_t = xyes; then
11440    printf "%s\n" "#define RLIM_T_IS_QUAD_T 1" >>confdefs.h
11441
11442    DEFAULT_RLIM_T=quad_t
11443  else
11444    printf "%s\n" "#define RLIM_T_IS_LONG_LONG 1" >>confdefs.h
11445
11446    DEFAULT_RLIM_T='long long'
11447  fi
11448else
11449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the rlim_t is unsigned" >&5
11450printf %s "checking if the rlim_t is unsigned... " >&6; }
11451if test ${zsh_cv_type_rlim_t_is_unsigned+y}
11452then :
11453  printf %s "(cached) " >&6
11454else $as_nop
11455  if test "$cross_compiling" = yes
11456then :
11457  zsh_cv_type_rlim_t_is_unsigned=no
11458else $as_nop
11459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460/* end confdefs.h.  */
11461
11462#ifdef HAVE_SYS_TIME_H
11463#include <sys/time.h>
11464#endif
11465#include <sys/resource.h>
11466#include <stdlib.h>
11467  main(){struct rlimit r;r.rlim_cur=-1;exit(r.rlim_cur<0);}
11468_ACEOF
11469if ac_fn_c_try_run "$LINENO"
11470then :
11471  zsh_cv_type_rlim_t_is_unsigned=yes
11472else $as_nop
11473  zsh_cv_type_rlim_t_is_unsigned=no
11474fi
11475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11476  conftest.$ac_objext conftest.beam conftest.$ac_ext
11477fi
11478
11479fi
11480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_rlim_t_is_unsigned" >&5
11481printf "%s\n" "$zsh_cv_type_rlim_t_is_unsigned" >&6; }
11482  if test x$zsh_cv_type_rlim_t_is_unsigned = xyes; then
11483    printf "%s\n" "#define RLIM_T_IS_UNSIGNED 1" >>confdefs.h
11484
11485    DEFAULT_RLIM_T="unsigned $DEFAULT_RLIM_T"
11486  fi
11487fi
11488
11489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
11490printf %s "checking for rlim_t... " >&6; }
11491if test ${zsh_cv_type_rlim_t+y}
11492then :
11493  printf %s "(cached) " >&6
11494else $as_nop
11495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496/* end confdefs.h.  */
11497
11498#include <sys/types.h>
11499#ifdef HAVE_SYS_TIME_H
11500#include <sys/time.h>
11501#endif
11502#include <sys/resource.h>
11503int
11504main (void)
11505{
11506rlim_t l;
11507  ;
11508  return 0;
11509}
11510_ACEOF
11511if ac_fn_c_try_compile "$LINENO"
11512then :
11513  zsh_cv_type_rlim_t=yes
11514else $as_nop
11515  zsh_cv_type_rlim_t=no
11516fi
11517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11518fi
11519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_rlim_t" >&5
11520printf "%s\n" "$zsh_cv_type_rlim_t" >&6; }
11521if test x$zsh_cv_type_rlim_t = xno; then
11522  printf "%s\n" "#define rlim_t $DEFAULT_RLIM_T" >>confdefs.h
11523
11524fi
11525
11526
11527
11528
11529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_AIO_MEM" >&5
11530printf %s "checking for limit RLIMIT_AIO_MEM... " >&6; }
11531if test ${zsh_cv_have_RLIMIT_AIO_MEM+y}
11532then :
11533  printf %s "(cached) " >&6
11534else $as_nop
11535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536/* end confdefs.h.  */
11537
11538#include <sys/types.h>
11539#ifdef HAVE_SYS_TIME_H
11540#include <sys/time.h>
11541#endif
11542#include <sys/resource.h>
11543int
11544main (void)
11545{
11546RLIMIT_AIO_MEM
11547  ;
11548  return 0;
11549}
11550_ACEOF
11551if ac_fn_c_try_compile "$LINENO"
11552then :
11553  zsh_cv_have_RLIMIT_AIO_MEM=yes
11554else $as_nop
11555  zsh_cv_have_RLIMIT_AIO_MEM=no
11556fi
11557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11558fi
11559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_AIO_MEM" >&5
11560printf "%s\n" "$zsh_cv_have_RLIMIT_AIO_MEM" >&6; }
11561
11562if test $zsh_cv_have_RLIMIT_AIO_MEM = yes; then
11563  printf "%s\n" "#define HAVE_RLIMIT_AIO_MEM 1" >>confdefs.h
11564
11565fi
11566
11567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_AIO_OPS" >&5
11568printf %s "checking for limit RLIMIT_AIO_OPS... " >&6; }
11569if test ${zsh_cv_have_RLIMIT_AIO_OPS+y}
11570then :
11571  printf %s "(cached) " >&6
11572else $as_nop
11573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574/* end confdefs.h.  */
11575
11576#include <sys/types.h>
11577#ifdef HAVE_SYS_TIME_H
11578#include <sys/time.h>
11579#endif
11580#include <sys/resource.h>
11581int
11582main (void)
11583{
11584RLIMIT_AIO_OPS
11585  ;
11586  return 0;
11587}
11588_ACEOF
11589if ac_fn_c_try_compile "$LINENO"
11590then :
11591  zsh_cv_have_RLIMIT_AIO_OPS=yes
11592else $as_nop
11593  zsh_cv_have_RLIMIT_AIO_OPS=no
11594fi
11595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11596fi
11597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_AIO_OPS" >&5
11598printf "%s\n" "$zsh_cv_have_RLIMIT_AIO_OPS" >&6; }
11599
11600if test $zsh_cv_have_RLIMIT_AIO_OPS = yes; then
11601  printf "%s\n" "#define HAVE_RLIMIT_AIO_OPS 1" >>confdefs.h
11602
11603fi
11604
11605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_AS" >&5
11606printf %s "checking for limit RLIMIT_AS... " >&6; }
11607if test ${zsh_cv_have_RLIMIT_AS+y}
11608then :
11609  printf %s "(cached) " >&6
11610else $as_nop
11611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612/* end confdefs.h.  */
11613
11614#include <sys/types.h>
11615#ifdef HAVE_SYS_TIME_H
11616#include <sys/time.h>
11617#endif
11618#include <sys/resource.h>
11619int
11620main (void)
11621{
11622RLIMIT_AS
11623  ;
11624  return 0;
11625}
11626_ACEOF
11627if ac_fn_c_try_compile "$LINENO"
11628then :
11629  zsh_cv_have_RLIMIT_AS=yes
11630else $as_nop
11631  zsh_cv_have_RLIMIT_AS=no
11632fi
11633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11634fi
11635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_AS" >&5
11636printf "%s\n" "$zsh_cv_have_RLIMIT_AS" >&6; }
11637
11638if test $zsh_cv_have_RLIMIT_AS = yes; then
11639  printf "%s\n" "#define HAVE_RLIMIT_AS 1" >>confdefs.h
11640
11641fi
11642
11643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_LOCKS" >&5
11644printf %s "checking for limit RLIMIT_LOCKS... " >&6; }
11645if test ${zsh_cv_have_RLIMIT_LOCKS+y}
11646then :
11647  printf %s "(cached) " >&6
11648else $as_nop
11649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650/* end confdefs.h.  */
11651
11652#include <sys/types.h>
11653#ifdef HAVE_SYS_TIME_H
11654#include <sys/time.h>
11655#endif
11656#include <sys/resource.h>
11657int
11658main (void)
11659{
11660RLIMIT_LOCKS
11661  ;
11662  return 0;
11663}
11664_ACEOF
11665if ac_fn_c_try_compile "$LINENO"
11666then :
11667  zsh_cv_have_RLIMIT_LOCKS=yes
11668else $as_nop
11669  zsh_cv_have_RLIMIT_LOCKS=no
11670fi
11671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11672fi
11673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_LOCKS" >&5
11674printf "%s\n" "$zsh_cv_have_RLIMIT_LOCKS" >&6; }
11675
11676if test $zsh_cv_have_RLIMIT_LOCKS = yes; then
11677  printf "%s\n" "#define HAVE_RLIMIT_LOCKS 1" >>confdefs.h
11678
11679fi
11680
11681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_MEMLOCK" >&5
11682printf %s "checking for limit RLIMIT_MEMLOCK... " >&6; }
11683if test ${zsh_cv_have_RLIMIT_MEMLOCK+y}
11684then :
11685  printf %s "(cached) " >&6
11686else $as_nop
11687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688/* end confdefs.h.  */
11689
11690#include <sys/types.h>
11691#ifdef HAVE_SYS_TIME_H
11692#include <sys/time.h>
11693#endif
11694#include <sys/resource.h>
11695int
11696main (void)
11697{
11698RLIMIT_MEMLOCK
11699  ;
11700  return 0;
11701}
11702_ACEOF
11703if ac_fn_c_try_compile "$LINENO"
11704then :
11705  zsh_cv_have_RLIMIT_MEMLOCK=yes
11706else $as_nop
11707  zsh_cv_have_RLIMIT_MEMLOCK=no
11708fi
11709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11710fi
11711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_MEMLOCK" >&5
11712printf "%s\n" "$zsh_cv_have_RLIMIT_MEMLOCK" >&6; }
11713
11714if test $zsh_cv_have_RLIMIT_MEMLOCK = yes; then
11715  printf "%s\n" "#define HAVE_RLIMIT_MEMLOCK 1" >>confdefs.h
11716
11717fi
11718
11719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_NPROC" >&5
11720printf %s "checking for limit RLIMIT_NPROC... " >&6; }
11721if test ${zsh_cv_have_RLIMIT_NPROC+y}
11722then :
11723  printf %s "(cached) " >&6
11724else $as_nop
11725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726/* end confdefs.h.  */
11727
11728#include <sys/types.h>
11729#ifdef HAVE_SYS_TIME_H
11730#include <sys/time.h>
11731#endif
11732#include <sys/resource.h>
11733int
11734main (void)
11735{
11736RLIMIT_NPROC
11737  ;
11738  return 0;
11739}
11740_ACEOF
11741if ac_fn_c_try_compile "$LINENO"
11742then :
11743  zsh_cv_have_RLIMIT_NPROC=yes
11744else $as_nop
11745  zsh_cv_have_RLIMIT_NPROC=no
11746fi
11747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11748fi
11749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_NPROC" >&5
11750printf "%s\n" "$zsh_cv_have_RLIMIT_NPROC" >&6; }
11751
11752if test $zsh_cv_have_RLIMIT_NPROC = yes; then
11753  printf "%s\n" "#define HAVE_RLIMIT_NPROC 1" >>confdefs.h
11754
11755fi
11756
11757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_NTHR" >&5
11758printf %s "checking for limit RLIMIT_NTHR... " >&6; }
11759if test ${zsh_cv_have_RLIMIT_NTHR+y}
11760then :
11761  printf %s "(cached) " >&6
11762else $as_nop
11763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764/* end confdefs.h.  */
11765
11766#include <sys/types.h>
11767#ifdef HAVE_SYS_TIME_H
11768#include <sys/time.h>
11769#endif
11770#include <sys/resource.h>
11771int
11772main (void)
11773{
11774RLIMIT_NTHR
11775  ;
11776  return 0;
11777}
11778_ACEOF
11779if ac_fn_c_try_compile "$LINENO"
11780then :
11781  zsh_cv_have_RLIMIT_NTHR=yes
11782else $as_nop
11783  zsh_cv_have_RLIMIT_NTHR=no
11784fi
11785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11786fi
11787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_NTHR" >&5
11788printf "%s\n" "$zsh_cv_have_RLIMIT_NTHR" >&6; }
11789
11790if test $zsh_cv_have_RLIMIT_NTHR = yes; then
11791  printf "%s\n" "#define HAVE_RLIMIT_NTHR 1" >>confdefs.h
11792
11793fi
11794
11795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_NOFILE" >&5
11796printf %s "checking for limit RLIMIT_NOFILE... " >&6; }
11797if test ${zsh_cv_have_RLIMIT_NOFILE+y}
11798then :
11799  printf %s "(cached) " >&6
11800else $as_nop
11801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802/* end confdefs.h.  */
11803
11804#include <sys/types.h>
11805#ifdef HAVE_SYS_TIME_H
11806#include <sys/time.h>
11807#endif
11808#include <sys/resource.h>
11809int
11810main (void)
11811{
11812RLIMIT_NOFILE
11813  ;
11814  return 0;
11815}
11816_ACEOF
11817if ac_fn_c_try_compile "$LINENO"
11818then :
11819  zsh_cv_have_RLIMIT_NOFILE=yes
11820else $as_nop
11821  zsh_cv_have_RLIMIT_NOFILE=no
11822fi
11823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11824fi
11825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_NOFILE" >&5
11826printf "%s\n" "$zsh_cv_have_RLIMIT_NOFILE" >&6; }
11827
11828if test $zsh_cv_have_RLIMIT_NOFILE = yes; then
11829  printf "%s\n" "#define HAVE_RLIMIT_NOFILE 1" >>confdefs.h
11830
11831fi
11832
11833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_PTHREAD" >&5
11834printf %s "checking for limit RLIMIT_PTHREAD... " >&6; }
11835if test ${zsh_cv_have_RLIMIT_PTHREAD+y}
11836then :
11837  printf %s "(cached) " >&6
11838else $as_nop
11839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840/* end confdefs.h.  */
11841
11842#include <sys/types.h>
11843#ifdef HAVE_SYS_TIME_H
11844#include <sys/time.h>
11845#endif
11846#include <sys/resource.h>
11847int
11848main (void)
11849{
11850RLIMIT_PTHREAD
11851  ;
11852  return 0;
11853}
11854_ACEOF
11855if ac_fn_c_try_compile "$LINENO"
11856then :
11857  zsh_cv_have_RLIMIT_PTHREAD=yes
11858else $as_nop
11859  zsh_cv_have_RLIMIT_PTHREAD=no
11860fi
11861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11862fi
11863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_PTHREAD" >&5
11864printf "%s\n" "$zsh_cv_have_RLIMIT_PTHREAD" >&6; }
11865
11866if test $zsh_cv_have_RLIMIT_PTHREAD = yes; then
11867  printf "%s\n" "#define HAVE_RLIMIT_PTHREAD 1" >>confdefs.h
11868
11869fi
11870
11871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_RSS" >&5
11872printf %s "checking for limit RLIMIT_RSS... " >&6; }
11873if test ${zsh_cv_have_RLIMIT_RSS+y}
11874then :
11875  printf %s "(cached) " >&6
11876else $as_nop
11877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878/* end confdefs.h.  */
11879
11880#include <sys/types.h>
11881#ifdef HAVE_SYS_TIME_H
11882#include <sys/time.h>
11883#endif
11884#include <sys/resource.h>
11885int
11886main (void)
11887{
11888RLIMIT_RSS
11889  ;
11890  return 0;
11891}
11892_ACEOF
11893if ac_fn_c_try_compile "$LINENO"
11894then :
11895  zsh_cv_have_RLIMIT_RSS=yes
11896else $as_nop
11897  zsh_cv_have_RLIMIT_RSS=no
11898fi
11899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11900fi
11901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_RSS" >&5
11902printf "%s\n" "$zsh_cv_have_RLIMIT_RSS" >&6; }
11903
11904if test $zsh_cv_have_RLIMIT_RSS = yes; then
11905  printf "%s\n" "#define HAVE_RLIMIT_RSS 1" >>confdefs.h
11906
11907fi
11908
11909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_SBSIZE" >&5
11910printf %s "checking for limit RLIMIT_SBSIZE... " >&6; }
11911if test ${zsh_cv_have_RLIMIT_SBSIZE+y}
11912then :
11913  printf %s "(cached) " >&6
11914else $as_nop
11915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916/* end confdefs.h.  */
11917
11918#include <sys/types.h>
11919#ifdef HAVE_SYS_TIME_H
11920#include <sys/time.h>
11921#endif
11922#include <sys/resource.h>
11923int
11924main (void)
11925{
11926RLIMIT_SBSIZE
11927  ;
11928  return 0;
11929}
11930_ACEOF
11931if ac_fn_c_try_compile "$LINENO"
11932then :
11933  zsh_cv_have_RLIMIT_SBSIZE=yes
11934else $as_nop
11935  zsh_cv_have_RLIMIT_SBSIZE=no
11936fi
11937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11938fi
11939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_SBSIZE" >&5
11940printf "%s\n" "$zsh_cv_have_RLIMIT_SBSIZE" >&6; }
11941
11942if test $zsh_cv_have_RLIMIT_SBSIZE = yes; then
11943  printf "%s\n" "#define HAVE_RLIMIT_SBSIZE 1" >>confdefs.h
11944
11945fi
11946
11947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_TCACHE" >&5
11948printf %s "checking for limit RLIMIT_TCACHE... " >&6; }
11949if test ${zsh_cv_have_RLIMIT_TCACHE+y}
11950then :
11951  printf %s "(cached) " >&6
11952else $as_nop
11953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954/* end confdefs.h.  */
11955
11956#include <sys/types.h>
11957#ifdef HAVE_SYS_TIME_H
11958#include <sys/time.h>
11959#endif
11960#include <sys/resource.h>
11961int
11962main (void)
11963{
11964RLIMIT_TCACHE
11965  ;
11966  return 0;
11967}
11968_ACEOF
11969if ac_fn_c_try_compile "$LINENO"
11970then :
11971  zsh_cv_have_RLIMIT_TCACHE=yes
11972else $as_nop
11973  zsh_cv_have_RLIMIT_TCACHE=no
11974fi
11975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11976fi
11977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_TCACHE" >&5
11978printf "%s\n" "$zsh_cv_have_RLIMIT_TCACHE" >&6; }
11979
11980if test $zsh_cv_have_RLIMIT_TCACHE = yes; then
11981  printf "%s\n" "#define HAVE_RLIMIT_TCACHE 1" >>confdefs.h
11982
11983fi
11984
11985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_VMEM" >&5
11986printf %s "checking for limit RLIMIT_VMEM... " >&6; }
11987if test ${zsh_cv_have_RLIMIT_VMEM+y}
11988then :
11989  printf %s "(cached) " >&6
11990else $as_nop
11991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992/* end confdefs.h.  */
11993
11994#include <sys/types.h>
11995#ifdef HAVE_SYS_TIME_H
11996#include <sys/time.h>
11997#endif
11998#include <sys/resource.h>
11999int
12000main (void)
12001{
12002RLIMIT_VMEM
12003  ;
12004  return 0;
12005}
12006_ACEOF
12007if ac_fn_c_try_compile "$LINENO"
12008then :
12009  zsh_cv_have_RLIMIT_VMEM=yes
12010else $as_nop
12011  zsh_cv_have_RLIMIT_VMEM=no
12012fi
12013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12014fi
12015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_VMEM" >&5
12016printf "%s\n" "$zsh_cv_have_RLIMIT_VMEM" >&6; }
12017
12018if test $zsh_cv_have_RLIMIT_VMEM = yes; then
12019  printf "%s\n" "#define HAVE_RLIMIT_VMEM 1" >>confdefs.h
12020
12021fi
12022
12023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_SIGPENDING" >&5
12024printf %s "checking for limit RLIMIT_SIGPENDING... " >&6; }
12025if test ${zsh_cv_have_RLIMIT_SIGPENDING+y}
12026then :
12027  printf %s "(cached) " >&6
12028else $as_nop
12029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030/* end confdefs.h.  */
12031
12032#include <sys/types.h>
12033#ifdef HAVE_SYS_TIME_H
12034#include <sys/time.h>
12035#endif
12036#include <sys/resource.h>
12037int
12038main (void)
12039{
12040RLIMIT_SIGPENDING
12041  ;
12042  return 0;
12043}
12044_ACEOF
12045if ac_fn_c_try_compile "$LINENO"
12046then :
12047  zsh_cv_have_RLIMIT_SIGPENDING=yes
12048else $as_nop
12049  zsh_cv_have_RLIMIT_SIGPENDING=no
12050fi
12051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12052fi
12053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_SIGPENDING" >&5
12054printf "%s\n" "$zsh_cv_have_RLIMIT_SIGPENDING" >&6; }
12055
12056if test $zsh_cv_have_RLIMIT_SIGPENDING = yes; then
12057  printf "%s\n" "#define HAVE_RLIMIT_SIGPENDING 1" >>confdefs.h
12058
12059fi
12060
12061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_MSGQUEUE" >&5
12062printf %s "checking for limit RLIMIT_MSGQUEUE... " >&6; }
12063if test ${zsh_cv_have_RLIMIT_MSGQUEUE+y}
12064then :
12065  printf %s "(cached) " >&6
12066else $as_nop
12067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068/* end confdefs.h.  */
12069
12070#include <sys/types.h>
12071#ifdef HAVE_SYS_TIME_H
12072#include <sys/time.h>
12073#endif
12074#include <sys/resource.h>
12075int
12076main (void)
12077{
12078RLIMIT_MSGQUEUE
12079  ;
12080  return 0;
12081}
12082_ACEOF
12083if ac_fn_c_try_compile "$LINENO"
12084then :
12085  zsh_cv_have_RLIMIT_MSGQUEUE=yes
12086else $as_nop
12087  zsh_cv_have_RLIMIT_MSGQUEUE=no
12088fi
12089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12090fi
12091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_MSGQUEUE" >&5
12092printf "%s\n" "$zsh_cv_have_RLIMIT_MSGQUEUE" >&6; }
12093
12094if test $zsh_cv_have_RLIMIT_MSGQUEUE = yes; then
12095  printf "%s\n" "#define HAVE_RLIMIT_MSGQUEUE 1" >>confdefs.h
12096
12097fi
12098
12099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_NICE" >&5
12100printf %s "checking for limit RLIMIT_NICE... " >&6; }
12101if test ${zsh_cv_have_RLIMIT_NICE+y}
12102then :
12103  printf %s "(cached) " >&6
12104else $as_nop
12105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106/* end confdefs.h.  */
12107
12108#include <sys/types.h>
12109#ifdef HAVE_SYS_TIME_H
12110#include <sys/time.h>
12111#endif
12112#include <sys/resource.h>
12113int
12114main (void)
12115{
12116RLIMIT_NICE
12117  ;
12118  return 0;
12119}
12120_ACEOF
12121if ac_fn_c_try_compile "$LINENO"
12122then :
12123  zsh_cv_have_RLIMIT_NICE=yes
12124else $as_nop
12125  zsh_cv_have_RLIMIT_NICE=no
12126fi
12127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12128fi
12129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_NICE" >&5
12130printf "%s\n" "$zsh_cv_have_RLIMIT_NICE" >&6; }
12131
12132if test $zsh_cv_have_RLIMIT_NICE = yes; then
12133  printf "%s\n" "#define HAVE_RLIMIT_NICE 1" >>confdefs.h
12134
12135fi
12136
12137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_RTPRIO" >&5
12138printf %s "checking for limit RLIMIT_RTPRIO... " >&6; }
12139if test ${zsh_cv_have_RLIMIT_RTPRIO+y}
12140then :
12141  printf %s "(cached) " >&6
12142else $as_nop
12143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144/* end confdefs.h.  */
12145
12146#include <sys/types.h>
12147#ifdef HAVE_SYS_TIME_H
12148#include <sys/time.h>
12149#endif
12150#include <sys/resource.h>
12151int
12152main (void)
12153{
12154RLIMIT_RTPRIO
12155  ;
12156  return 0;
12157}
12158_ACEOF
12159if ac_fn_c_try_compile "$LINENO"
12160then :
12161  zsh_cv_have_RLIMIT_RTPRIO=yes
12162else $as_nop
12163  zsh_cv_have_RLIMIT_RTPRIO=no
12164fi
12165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12166fi
12167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_RTPRIO" >&5
12168printf "%s\n" "$zsh_cv_have_RLIMIT_RTPRIO" >&6; }
12169
12170if test $zsh_cv_have_RLIMIT_RTPRIO = yes; then
12171  printf "%s\n" "#define HAVE_RLIMIT_RTPRIO 1" >>confdefs.h
12172
12173fi
12174
12175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_POSIXLOCKS" >&5
12176printf %s "checking for limit RLIMIT_POSIXLOCKS... " >&6; }
12177if test ${zsh_cv_have_RLIMIT_POSIXLOCKS+y}
12178then :
12179  printf %s "(cached) " >&6
12180else $as_nop
12181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182/* end confdefs.h.  */
12183
12184#include <sys/types.h>
12185#ifdef HAVE_SYS_TIME_H
12186#include <sys/time.h>
12187#endif
12188#include <sys/resource.h>
12189int
12190main (void)
12191{
12192RLIMIT_POSIXLOCKS
12193  ;
12194  return 0;
12195}
12196_ACEOF
12197if ac_fn_c_try_compile "$LINENO"
12198then :
12199  zsh_cv_have_RLIMIT_POSIXLOCKS=yes
12200else $as_nop
12201  zsh_cv_have_RLIMIT_POSIXLOCKS=no
12202fi
12203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12204fi
12205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_POSIXLOCKS" >&5
12206printf "%s\n" "$zsh_cv_have_RLIMIT_POSIXLOCKS" >&6; }
12207
12208if test $zsh_cv_have_RLIMIT_POSIXLOCKS = yes; then
12209  printf "%s\n" "#define HAVE_RLIMIT_POSIXLOCKS 1" >>confdefs.h
12210
12211fi
12212
12213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_NPTS" >&5
12214printf %s "checking for limit RLIMIT_NPTS... " >&6; }
12215if test ${zsh_cv_have_RLIMIT_NPTS+y}
12216then :
12217  printf %s "(cached) " >&6
12218else $as_nop
12219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220/* end confdefs.h.  */
12221
12222#include <sys/types.h>
12223#ifdef HAVE_SYS_TIME_H
12224#include <sys/time.h>
12225#endif
12226#include <sys/resource.h>
12227int
12228main (void)
12229{
12230RLIMIT_NPTS
12231  ;
12232  return 0;
12233}
12234_ACEOF
12235if ac_fn_c_try_compile "$LINENO"
12236then :
12237  zsh_cv_have_RLIMIT_NPTS=yes
12238else $as_nop
12239  zsh_cv_have_RLIMIT_NPTS=no
12240fi
12241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12242fi
12243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_NPTS" >&5
12244printf "%s\n" "$zsh_cv_have_RLIMIT_NPTS" >&6; }
12245
12246if test $zsh_cv_have_RLIMIT_NPTS = yes; then
12247  printf "%s\n" "#define HAVE_RLIMIT_NPTS 1" >>confdefs.h
12248
12249fi
12250
12251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_SWAP" >&5
12252printf %s "checking for limit RLIMIT_SWAP... " >&6; }
12253if test ${zsh_cv_have_RLIMIT_SWAP+y}
12254then :
12255  printf %s "(cached) " >&6
12256else $as_nop
12257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258/* end confdefs.h.  */
12259
12260#include <sys/types.h>
12261#ifdef HAVE_SYS_TIME_H
12262#include <sys/time.h>
12263#endif
12264#include <sys/resource.h>
12265int
12266main (void)
12267{
12268RLIMIT_SWAP
12269  ;
12270  return 0;
12271}
12272_ACEOF
12273if ac_fn_c_try_compile "$LINENO"
12274then :
12275  zsh_cv_have_RLIMIT_SWAP=yes
12276else $as_nop
12277  zsh_cv_have_RLIMIT_SWAP=no
12278fi
12279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12280fi
12281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_SWAP" >&5
12282printf "%s\n" "$zsh_cv_have_RLIMIT_SWAP" >&6; }
12283
12284if test $zsh_cv_have_RLIMIT_SWAP = yes; then
12285  printf "%s\n" "#define HAVE_RLIMIT_SWAP 1" >>confdefs.h
12286
12287fi
12288
12289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_KQUEUES" >&5
12290printf %s "checking for limit RLIMIT_KQUEUES... " >&6; }
12291if test ${zsh_cv_have_RLIMIT_KQUEUES+y}
12292then :
12293  printf %s "(cached) " >&6
12294else $as_nop
12295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296/* end confdefs.h.  */
12297
12298#include <sys/types.h>
12299#ifdef HAVE_SYS_TIME_H
12300#include <sys/time.h>
12301#endif
12302#include <sys/resource.h>
12303int
12304main (void)
12305{
12306RLIMIT_KQUEUES
12307  ;
12308  return 0;
12309}
12310_ACEOF
12311if ac_fn_c_try_compile "$LINENO"
12312then :
12313  zsh_cv_have_RLIMIT_KQUEUES=yes
12314else $as_nop
12315  zsh_cv_have_RLIMIT_KQUEUES=no
12316fi
12317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12318fi
12319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_KQUEUES" >&5
12320printf "%s\n" "$zsh_cv_have_RLIMIT_KQUEUES" >&6; }
12321
12322if test $zsh_cv_have_RLIMIT_KQUEUES = yes; then
12323  printf "%s\n" "#define HAVE_RLIMIT_KQUEUES 1" >>confdefs.h
12324
12325fi
12326
12327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for limit RLIMIT_UMTXP" >&5
12328printf %s "checking for limit RLIMIT_UMTXP... " >&6; }
12329if test ${zsh_cv_have_RLIMIT_UMTXP+y}
12330then :
12331  printf %s "(cached) " >&6
12332else $as_nop
12333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334/* end confdefs.h.  */
12335
12336#include <sys/types.h>
12337#ifdef HAVE_SYS_TIME_H
12338#include <sys/time.h>
12339#endif
12340#include <sys/resource.h>
12341int
12342main (void)
12343{
12344RLIMIT_UMTXP
12345  ;
12346  return 0;
12347}
12348_ACEOF
12349if ac_fn_c_try_compile "$LINENO"
12350then :
12351  zsh_cv_have_RLIMIT_UMTXP=yes
12352else $as_nop
12353  zsh_cv_have_RLIMIT_UMTXP=no
12354fi
12355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12356fi
12357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_have_RLIMIT_UMTXP" >&5
12358printf "%s\n" "$zsh_cv_have_RLIMIT_UMTXP" >&6; }
12359
12360if test $zsh_cv_have_RLIMIT_UMTXP = yes; then
12361  printf "%s\n" "#define HAVE_RLIMIT_UMTXP 1" >>confdefs.h
12362
12363fi
12364
12365
12366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RLIMIT_VMEM and RLIMIT_RSS are the same" >&5
12367printf %s "checking if RLIMIT_VMEM and RLIMIT_RSS are the same... " >&6; }
12368if test ${zsh_cv_rlimit_vmem_is_rss+y}
12369then :
12370  printf %s "(cached) " >&6
12371else $as_nop
12372  if test "$cross_compiling" = yes
12373then :
12374  zsh_cv_rlimit_vmem_is_rss=no
12375else $as_nop
12376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377/* end confdefs.h.  */
12378
12379#include <sys/types.h>
12380#ifdef HAVE_SYS_TIME_H
12381#include <sys/time.h>
12382#endif
12383#include <sys/resource.h>
12384int main()
12385{
12386int ret = 1;
12387#if defined(HAVE_RLIMIT_VMEM) && defined(HAVE_RLIMIT_RSS)
12388if (RLIMIT_RSS == RLIMIT_VMEM) ret = 0;
12389#endif
12390return ret;
12391}
12392_ACEOF
12393if ac_fn_c_try_run "$LINENO"
12394then :
12395  zsh_cv_rlimit_vmem_is_rss=yes
12396else $as_nop
12397  zsh_cv_rlimit_vmem_is_rss=no
12398fi
12399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12400  conftest.$ac_objext conftest.beam conftest.$ac_ext
12401fi
12402
12403fi
12404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_rlimit_vmem_is_rss" >&5
12405printf "%s\n" "$zsh_cv_rlimit_vmem_is_rss" >&6; }
12406
12407if test x$zsh_cv_rlimit_vmem_is_rss = xyes; then
12408  printf "%s\n" "#define RLIMIT_VMEM_IS_RSS 1" >>confdefs.h
12409
12410fi
12411
12412
12413
12414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RLIMIT_VMEM and RLIMIT_AS are the same" >&5
12415printf %s "checking if RLIMIT_VMEM and RLIMIT_AS are the same... " >&6; }
12416if test ${zsh_cv_rlimit_vmem_is_as+y}
12417then :
12418  printf %s "(cached) " >&6
12419else $as_nop
12420  if test "$cross_compiling" = yes
12421then :
12422  zsh_cv_rlimit_vmem_is_as=no
12423else $as_nop
12424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425/* end confdefs.h.  */
12426
12427#include <sys/types.h>
12428#ifdef HAVE_SYS_TIME_H
12429#include <sys/time.h>
12430#endif
12431#include <sys/resource.h>
12432int main()
12433{
12434int ret = 1;
12435#if defined(HAVE_RLIMIT_VMEM) && defined(HAVE_RLIMIT_AS)
12436if (RLIMIT_AS == RLIMIT_VMEM) ret = 0;
12437#endif
12438return ret;
12439}
12440_ACEOF
12441if ac_fn_c_try_run "$LINENO"
12442then :
12443  zsh_cv_rlimit_vmem_is_as=yes
12444else $as_nop
12445  zsh_cv_rlimit_vmem_is_as=no
12446fi
12447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12448  conftest.$ac_objext conftest.beam conftest.$ac_ext
12449fi
12450
12451fi
12452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_rlimit_vmem_is_as" >&5
12453printf "%s\n" "$zsh_cv_rlimit_vmem_is_as" >&6; }
12454
12455if test x$zsh_cv_rlimit_vmem_is_as = xyes; then
12456  printf "%s\n" "#define RLIMIT_VMEM_IS_AS 1" >>confdefs.h
12457
12458fi
12459
12460
12461
12462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RLIMIT_RSS and RLIMIT_AS are the same" >&5
12463printf %s "checking if RLIMIT_RSS and RLIMIT_AS are the same... " >&6; }
12464if test ${zsh_cv_rlimit_rss_is_as+y}
12465then :
12466  printf %s "(cached) " >&6
12467else $as_nop
12468  if test "$cross_compiling" = yes
12469then :
12470  zsh_cv_rlimit_rss_is_as=no
12471else $as_nop
12472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473/* end confdefs.h.  */
12474
12475#include <sys/types.h>
12476#ifdef HAVE_SYS_TIME_H
12477#include <sys/time.h>
12478#endif
12479#include <sys/resource.h>
12480int main()
12481{
12482int ret = 1;
12483#if defined(HAVE_RLIMIT_RSS) && defined(HAVE_RLIMIT_AS)
12484if (RLIMIT_AS == RLIMIT_RSS) ret = 0;
12485#endif
12486return ret;
12487}
12488_ACEOF
12489if ac_fn_c_try_run "$LINENO"
12490then :
12491  zsh_cv_rlimit_rss_is_as=yes
12492else $as_nop
12493  zsh_cv_rlimit_rss_is_as=no
12494fi
12495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12496  conftest.$ac_objext conftest.beam conftest.$ac_ext
12497fi
12498
12499fi
12500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_rlimit_rss_is_as" >&5
12501printf "%s\n" "$zsh_cv_rlimit_rss_is_as" >&6; }
12502
12503if test x$zsh_cv_rlimit_rss_is_as = xyes; then
12504  printf "%s\n" "#define RLIMIT_RSS_IS_AS 1" >>confdefs.h
12505
12506fi
12507
12508
12509if test x$ac_cv_func_getrusage = xyes; then
12510  ac_fn_c_check_member "$LINENO" "struct rusage" "ru_maxrss" "ac_cv_member_struct_rusage_ru_maxrss" "#include <sys/types.h>
12511#ifdef HAVE_SYS_TIME_H
12512#include <sys/time.h>
12513#endif
12514#include <sys/resource.h>
12515"
12516if test "x$ac_cv_member_struct_rusage_ru_maxrss" = xyes
12517then :
12518
12519printf "%s\n" "#define HAVE_STRUCT_RUSAGE_RU_MAXRSS 1" >>confdefs.h
12520
12521
12522fi
12523ac_fn_c_check_member "$LINENO" "struct rusage" "ru_ixrss" "ac_cv_member_struct_rusage_ru_ixrss" "#include <sys/types.h>
12524#ifdef HAVE_SYS_TIME_H
12525#include <sys/time.h>
12526#endif
12527#include <sys/resource.h>
12528"
12529if test "x$ac_cv_member_struct_rusage_ru_ixrss" = xyes
12530then :
12531
12532printf "%s\n" "#define HAVE_STRUCT_RUSAGE_RU_IXRSS 1" >>confdefs.h
12533
12534
12535fi
12536ac_fn_c_check_member "$LINENO" "struct rusage" "ru_idrss" "ac_cv_member_struct_rusage_ru_idrss" "#include <sys/types.h>
12537#ifdef HAVE_SYS_TIME_H
12538#include <sys/time.h>
12539#endif
12540#include <sys/resource.h>
12541"
12542if test "x$ac_cv_member_struct_rusage_ru_idrss" = xyes
12543then :
12544
12545printf "%s\n" "#define HAVE_STRUCT_RUSAGE_RU_IDRSS 1" >>confdefs.h
12546
12547
12548fi
12549ac_fn_c_check_member "$LINENO" "struct rusage" "ru_isrss" "ac_cv_member_struct_rusage_ru_isrss" "#include <sys/types.h>
12550#ifdef HAVE_SYS_TIME_H
12551#include <sys/time.h>
12552#endif
12553#include <sys/resource.h>
12554"
12555if test "x$ac_cv_member_struct_rusage_ru_isrss" = xyes
12556then :
12557
12558printf "%s\n" "#define HAVE_STRUCT_RUSAGE_RU_ISRSS 1" >>confdefs.h
12559
12560
12561fi
12562ac_fn_c_check_member "$LINENO" "struct rusage" "ru_minflt" "ac_cv_member_struct_rusage_ru_minflt" "#include <sys/types.h>
12563#ifdef HAVE_SYS_TIME_H
12564#include <sys/time.h>
12565#endif
12566#include <sys/resource.h>
12567"
12568if test "x$ac_cv_member_struct_rusage_ru_minflt" = xyes
12569then :
12570
12571printf "%s\n" "#define HAVE_STRUCT_RUSAGE_RU_MINFLT 1" >>confdefs.h
12572
12573
12574fi
12575ac_fn_c_check_member "$LINENO" "struct rusage" "ru_majflt" "ac_cv_member_struct_rusage_ru_majflt" "#include <sys/types.h>
12576#ifdef HAVE_SYS_TIME_H
12577#include <sys/time.h>
12578#endif
12579#include <sys/resource.h>
12580"
12581if test "x$ac_cv_member_struct_rusage_ru_majflt" = xyes
12582then :
12583
12584printf "%s\n" "#define HAVE_STRUCT_RUSAGE_RU_MAJFLT 1" >>confdefs.h
12585
12586
12587fi
12588ac_fn_c_check_member "$LINENO" "struct rusage" "ru_nswap" "ac_cv_member_struct_rusage_ru_nswap" "#include <sys/types.h>
12589#ifdef HAVE_SYS_TIME_H
12590#include <sys/time.h>
12591#endif
12592#include <sys/resource.h>
12593"
12594if test "x$ac_cv_member_struct_rusage_ru_nswap" = xyes
12595then :
12596
12597printf "%s\n" "#define HAVE_STRUCT_RUSAGE_RU_NSWAP 1" >>confdefs.h
12598
12599
12600fi
12601ac_fn_c_check_member "$LINENO" "struct rusage" "ru_inblock" "ac_cv_member_struct_rusage_ru_inblock" "#include <sys/types.h>
12602#ifdef HAVE_SYS_TIME_H
12603#include <sys/time.h>
12604#endif
12605#include <sys/resource.h>
12606"
12607if test "x$ac_cv_member_struct_rusage_ru_inblock" = xyes
12608then :
12609
12610printf "%s\n" "#define HAVE_STRUCT_RUSAGE_RU_INBLOCK 1" >>confdefs.h
12611
12612
12613fi
12614ac_fn_c_check_member "$LINENO" "struct rusage" "ru_oublock" "ac_cv_member_struct_rusage_ru_oublock" "#include <sys/types.h>
12615#ifdef HAVE_SYS_TIME_H
12616#include <sys/time.h>
12617#endif
12618#include <sys/resource.h>
12619"
12620if test "x$ac_cv_member_struct_rusage_ru_oublock" = xyes
12621then :
12622
12623printf "%s\n" "#define HAVE_STRUCT_RUSAGE_RU_OUBLOCK 1" >>confdefs.h
12624
12625
12626fi
12627ac_fn_c_check_member "$LINENO" "struct rusage" "ru_msgsnd" "ac_cv_member_struct_rusage_ru_msgsnd" "#include <sys/types.h>
12628#ifdef HAVE_SYS_TIME_H
12629#include <sys/time.h>
12630#endif
12631#include <sys/resource.h>
12632"
12633if test "x$ac_cv_member_struct_rusage_ru_msgsnd" = xyes
12634then :
12635
12636printf "%s\n" "#define HAVE_STRUCT_RUSAGE_RU_MSGSND 1" >>confdefs.h
12637
12638
12639fi
12640ac_fn_c_check_member "$LINENO" "struct rusage" "ru_msgrcv" "ac_cv_member_struct_rusage_ru_msgrcv" "#include <sys/types.h>
12641#ifdef HAVE_SYS_TIME_H
12642#include <sys/time.h>
12643#endif
12644#include <sys/resource.h>
12645"
12646if test "x$ac_cv_member_struct_rusage_ru_msgrcv" = xyes
12647then :
12648
12649printf "%s\n" "#define HAVE_STRUCT_RUSAGE_RU_MSGRCV 1" >>confdefs.h
12650
12651
12652fi
12653ac_fn_c_check_member "$LINENO" "struct rusage" "ru_nsignals" "ac_cv_member_struct_rusage_ru_nsignals" "#include <sys/types.h>
12654#ifdef HAVE_SYS_TIME_H
12655#include <sys/time.h>
12656#endif
12657#include <sys/resource.h>
12658"
12659if test "x$ac_cv_member_struct_rusage_ru_nsignals" = xyes
12660then :
12661
12662printf "%s\n" "#define HAVE_STRUCT_RUSAGE_RU_NSIGNALS 1" >>confdefs.h
12663
12664
12665fi
12666ac_fn_c_check_member "$LINENO" "struct rusage" "ru_nvcsw" "ac_cv_member_struct_rusage_ru_nvcsw" "#include <sys/types.h>
12667#ifdef HAVE_SYS_TIME_H
12668#include <sys/time.h>
12669#endif
12670#include <sys/resource.h>
12671"
12672if test "x$ac_cv_member_struct_rusage_ru_nvcsw" = xyes
12673then :
12674
12675printf "%s\n" "#define HAVE_STRUCT_RUSAGE_RU_NVCSW 1" >>confdefs.h
12676
12677
12678fi
12679ac_fn_c_check_member "$LINENO" "struct rusage" "ru_nivcsw" "ac_cv_member_struct_rusage_ru_nivcsw" "#include <sys/types.h>
12680#ifdef HAVE_SYS_TIME_H
12681#include <sys/time.h>
12682#endif
12683#include <sys/resource.h>
12684"
12685if test "x$ac_cv_member_struct_rusage_ru_nivcsw" = xyes
12686then :
12687
12688printf "%s\n" "#define HAVE_STRUCT_RUSAGE_RU_NIVCSW 1" >>confdefs.h
12689
12690
12691fi
12692
12693fi
12694
12695
12696if test ${zsh_cv_cs_path+y}
12697then :
12698  printf %s "(cached) " >&6
12699else $as_nop
12700  if getconf _CS_PATH >/dev/null 2>&1; then
12701  zsh_cv_cs_path=`getconf _CS_PATH`
12702elif getconf CS_PATH >/dev/null 2>&1; then
12703  zsh_cv_cs_path=`getconf CS_PATH`
12704elif getconf PATH >/dev/null 2>&1; then
12705  zsh_cv_cs_path=`getconf PATH`
12706else
12707  zsh_cv_cs_path="/bin:/usr/bin"
12708fi
12709fi
12710
12711
12712printf "%s\n" "#define DEFAULT_PATH \"$zsh_cv_cs_path\"" >>confdefs.h
12713
12714
12715
12716
12717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/fd filesystem" >&5
12718printf %s "checking for /dev/fd filesystem... " >&6; }
12719if test ${zsh_cv_sys_path_dev_fd+y}
12720then :
12721  printf %s "(cached) " >&6
12722else $as_nop
12723  for zsh_cv_sys_path_dev_fd in /proc/self/fd /dev/fd no; do
12724   test x`echo ok|(exec 3<&0; cat $zsh_cv_sys_path_dev_fd/3 2>/dev/null;)` = xok && break
12725 done
12726fi
12727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_path_dev_fd" >&5
12728printf "%s\n" "$zsh_cv_sys_path_dev_fd" >&6; }
12729if test x$zsh_cv_sys_path_dev_fd != xno; then
12730  printf "%s\n" "#define PATH_DEV_FD \"$zsh_cv_sys_path_dev_fd\"" >>confdefs.h
12731
12732fi
12733
12734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RFS superroot directory" >&5
12735printf %s "checking for RFS superroot directory... " >&6; }
12736if test ${zsh_cv_sys_superroot+y}
12737then :
12738  printf %s "(cached) " >&6
12739else $as_nop
12740  test -d /../.LOCALROOT && zsh_cv_sys_superroot=yes || zsh_cv_sys_superroot=no
12741fi
12742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_superroot" >&5
12743printf "%s\n" "$zsh_cv_sys_superroot" >&6; }
12744
12745if test x$zsh_cv_sys_superroot = xyes; then
12746  printf "%s\n" "#define HAVE_SUPERROOT 1" >>confdefs.h
12747
12748fi
12749
12750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we should use the native getcwd" >&5
12751printf %s "checking whether we should use the native getcwd... " >&6; }
12752if test ${zsh_cv_use_getcwd+y}
12753then :
12754  printf %s "(cached) " >&6
12755else $as_nop
12756  case "${host_cpu}-${host_vendor}-${host_os}" in
12757    *QNX*) zsh_cv_use_getcwd=yes ;;
12758    *) zsh_cv_use_getcwd=no ;;
12759 esac
12760fi
12761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_use_getcwd" >&5
12762printf "%s\n" "$zsh_cv_use_getcwd" >&6; }
12763
12764if test x$zsh_cv_use_getcwd = xyes; then
12765  printf "%s\n" "#define USE_GETCWD 1" >>confdefs.h
12766
12767fi
12768
12769
12770if test x$ac_cv_func_getcwd = xyes; then
12771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getcwd calls malloc to allocate memory" >&5
12772printf %s "checking whether getcwd calls malloc to allocate memory... " >&6; }
12773if test ${zsh_cv_getcwd_malloc+y}
12774then :
12775  printf %s "(cached) " >&6
12776else $as_nop
12777  if test "$cross_compiling" = yes
12778then :
12779  zsh_cv_getcwd_malloc=no
12780else $as_nop
12781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782/* end confdefs.h.  */
12783
12784#include <unistd.h>
12785#include <string.h>
12786int main() {
12787    char buf[1024], *ptr1, *ptr2;
12788    ptr1 = getcwd(buf, 1024);
12789    ptr2 = getcwd(NULL, 0);
12790    if (ptr1 && ptr2 && !strcmp(ptr1, ptr2)) {
12791      return 0;
12792    }
12793    return 1;
12794}
12795
12796_ACEOF
12797if ac_fn_c_try_run "$LINENO"
12798then :
12799  zsh_cv_getcwd_malloc=yes
12800else $as_nop
12801  zsh_cv_getcwd_malloc=no
12802fi
12803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12804  conftest.$ac_objext conftest.beam conftest.$ac_ext
12805fi
12806
12807fi
12808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_getcwd_malloc" >&5
12809printf "%s\n" "$zsh_cv_getcwd_malloc" >&6; }
12810  if test x$zsh_cv_getcwd_malloc = xyes; then
12811    printf "%s\n" "#define GETCWD_CALLS_MALLOC 1" >>confdefs.h
12812
12813  fi
12814fi
12815
12816
12817ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
12818if test "x$ac_cv_func_setproctitle" = xyes
12819then :
12820  printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h
12821
12822else $as_nop
12823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
12824printf %s "checking for library containing setproctitle... " >&6; }
12825if test ${ac_cv_search_setproctitle+y}
12826then :
12827  printf %s "(cached) " >&6
12828else $as_nop
12829  ac_func_search_save_LIBS=$LIBS
12830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831/* end confdefs.h.  */
12832
12833/* Override any GCC internal prototype to avoid an error.
12834   Use char because int might match the return type of a GCC
12835   builtin and then its argument prototype would still apply.  */
12836char setproctitle ();
12837int
12838main (void)
12839{
12840return setproctitle ();
12841  ;
12842  return 0;
12843}
12844_ACEOF
12845for ac_lib in '' util
12846do
12847  if test -z "$ac_lib"; then
12848    ac_res="none required"
12849  else
12850    ac_res=-l$ac_lib
12851    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12852  fi
12853  if ac_fn_c_try_link "$LINENO"
12854then :
12855  ac_cv_search_setproctitle=$ac_res
12856fi
12857rm -f core conftest.err conftest.$ac_objext conftest.beam \
12858    conftest$ac_exeext
12859  if test ${ac_cv_search_setproctitle+y}
12860then :
12861  break
12862fi
12863done
12864if test ${ac_cv_search_setproctitle+y}
12865then :
12866
12867else $as_nop
12868  ac_cv_search_setproctitle=no
12869fi
12870rm conftest.$ac_ext
12871LIBS=$ac_func_search_save_LIBS
12872fi
12873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
12874printf "%s\n" "$ac_cv_search_setproctitle" >&6; }
12875ac_res=$ac_cv_search_setproctitle
12876if test "$ac_res" != no
12877then :
12878  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12879  printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h
12880
12881fi
12882
12883fi
12884
12885
12886
12887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NIS" >&5
12888printf %s "checking for NIS... " >&6; }
12889if test ${zsh_cv_sys_nis+y}
12890then :
12891  printf %s "(cached) " >&6
12892else $as_nop
12893  test -f /usr/bin/ypcat && /usr/bin/ypcat passwd.byname > /dev/null 2>&1 && \
12894zsh_cv_sys_nis=yes || zsh_cv_sys_nis=no
12895fi
12896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_nis" >&5
12897printf "%s\n" "$zsh_cv_sys_nis" >&6; }
12898if test x$zsh_cv_sys_nis = xyes; then
12899  printf "%s\n" "#define HAVE_NIS 1" >>confdefs.h
12900
12901  ac_fn_c_check_header_compile "$LINENO" "rpc/rpc.h" "ac_cv_header_rpc_rpc_h" "$ac_includes_default"
12902if test "x$ac_cv_header_rpc_rpc_h" = xyes
12903then :
12904
12905else $as_nop
12906  test -f /usr/include/tirpc/rpc/rpc.h && \
12907   CPPFLAGS="$CPPFLAGS -I/usr/include/tirpc"
12908fi
12909
12910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yp_all" >&5
12911printf %s "checking for library containing yp_all... " >&6; }
12912if test ${ac_cv_search_yp_all+y}
12913then :
12914  printf %s "(cached) " >&6
12915else $as_nop
12916  ac_func_search_save_LIBS=$LIBS
12917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918/* end confdefs.h.  */
12919
12920/* Override any GCC internal prototype to avoid an error.
12921   Use char because int might match the return type of a GCC
12922   builtin and then its argument prototype would still apply.  */
12923char yp_all ();
12924int
12925main (void)
12926{
12927return yp_all ();
12928  ;
12929  return 0;
12930}
12931_ACEOF
12932for ac_lib in '' nsl
12933do
12934  if test -z "$ac_lib"; then
12935    ac_res="none required"
12936  else
12937    ac_res=-l$ac_lib
12938    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12939  fi
12940  if ac_fn_c_try_link "$LINENO"
12941then :
12942  ac_cv_search_yp_all=$ac_res
12943fi
12944rm -f core conftest.err conftest.$ac_objext conftest.beam \
12945    conftest$ac_exeext
12946  if test ${ac_cv_search_yp_all+y}
12947then :
12948  break
12949fi
12950done
12951if test ${ac_cv_search_yp_all+y}
12952then :
12953
12954else $as_nop
12955  ac_cv_search_yp_all=no
12956fi
12957rm conftest.$ac_ext
12958LIBS=$ac_func_search_save_LIBS
12959fi
12960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yp_all" >&5
12961printf "%s\n" "$ac_cv_search_yp_all" >&6; }
12962ac_res=$ac_cv_search_yp_all
12963if test "$ac_res" != no
12964then :
12965  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12966
12967fi
12968
12969fi
12970
12971
12972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NIS+" >&5
12973printf %s "checking for NIS+... " >&6; }
12974if test ${zsh_cv_sys_nis_plus+y}
12975then :
12976  printf %s "(cached) " >&6
12977else $as_nop
12978  test x$ac_cv_func_nis_list = xyes && test -f /usr/bin/nisls && \
12979 /usr/bin/nisls > /dev/null 2>&1 && \
12980zsh_cv_sys_nis_plus=yes || zsh_cv_sys_nis_plus=no
12981fi
12982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_nis_plus" >&5
12983printf "%s\n" "$zsh_cv_sys_nis_plus" >&6; }
12984if test x$zsh_cv_sys_nis_plus = xyes; then
12985  printf "%s\n" "#define HAVE_NIS_PLUS 1" >>confdefs.h
12986
12987fi
12988
12989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for utmp file" >&5
12990printf %s "checking for utmp file... " >&6; }
12991if test ${zsh_cv_path_utmp+y}
12992then :
12993  printf %s "(cached) " >&6
12994else $as_nop
12995  for dir in /etc /usr/etc /var/adm /usr/adm /var/run /var/log ./conftest; do
12996  zsh_cv_path_utmp=${dir}/utmp
12997  test -f $zsh_cv_path_utmp && break
12998  zsh_cv_path_utmp=no
12999done
13000
13001fi
13002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_utmp" >&5
13003printf "%s\n" "$zsh_cv_path_utmp" >&6; }
13004
13005if test $zsh_cv_path_utmp != no; then
13006  printf "%s\n" "#define PATH_UTMP_FILE \"$zsh_cv_path_utmp\"" >>confdefs.h
13007
13008fi
13009
13010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wtmp file" >&5
13011printf %s "checking for wtmp file... " >&6; }
13012if test ${zsh_cv_path_wtmp+y}
13013then :
13014  printf %s "(cached) " >&6
13015else $as_nop
13016  for dir in /etc /usr/etc /var/adm /usr/adm /var/run /var/log ./conftest; do
13017  zsh_cv_path_wtmp=${dir}/wtmp
13018  test -f $zsh_cv_path_wtmp && break
13019  zsh_cv_path_wtmp=no
13020done
13021
13022fi
13023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_wtmp" >&5
13024printf "%s\n" "$zsh_cv_path_wtmp" >&6; }
13025
13026if test $zsh_cv_path_wtmp != no; then
13027  printf "%s\n" "#define PATH_WTMP_FILE \"$zsh_cv_path_wtmp\"" >>confdefs.h
13028
13029fi
13030
13031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for utmpx file" >&5
13032printf %s "checking for utmpx file... " >&6; }
13033if test ${zsh_cv_path_utmpx+y}
13034then :
13035  printf %s "(cached) " >&6
13036else $as_nop
13037  for dir in /etc /usr/etc /var/adm /usr/adm /var/run /var/log ./conftest; do
13038  zsh_cv_path_utmpx=${dir}/utmpx
13039  test -f $zsh_cv_path_utmpx && break
13040  zsh_cv_path_utmpx=no
13041done
13042
13043fi
13044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_utmpx" >&5
13045printf "%s\n" "$zsh_cv_path_utmpx" >&6; }
13046
13047if test $zsh_cv_path_utmpx != no; then
13048  printf "%s\n" "#define PATH_UTMPX_FILE \"$zsh_cv_path_utmpx\"" >>confdefs.h
13049
13050fi
13051
13052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wtmpx file" >&5
13053printf %s "checking for wtmpx file... " >&6; }
13054if test ${zsh_cv_path_wtmpx+y}
13055then :
13056  printf %s "(cached) " >&6
13057else $as_nop
13058  for dir in /etc /usr/etc /var/adm /usr/adm /var/run /var/log ./conftest; do
13059  zsh_cv_path_wtmpx=${dir}/wtmpx
13060  test -f $zsh_cv_path_wtmpx && break
13061  zsh_cv_path_wtmpx=no
13062done
13063
13064fi
13065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_path_wtmpx" >&5
13066printf "%s\n" "$zsh_cv_path_wtmpx" >&6; }
13067
13068if test $zsh_cv_path_wtmpx != no; then
13069  printf "%s\n" "#define PATH_WTMPX_FILE \"$zsh_cv_path_wtmpx\"" >>confdefs.h
13070
13071fi
13072
13073
13074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for brk() prototype in <unistd.h>" >&5
13075printf %s "checking for brk() prototype in <unistd.h>... " >&6; }
13076if test ${zsh_cv_header_unistd_h_brk_proto+y}
13077then :
13078  printf %s "(cached) " >&6
13079else $as_nop
13080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081/* end confdefs.h.  */
13082#include <unistd.h>
13083double brk();
13084int
13085main (void)
13086{
13087int i;
13088  ;
13089  return 0;
13090}
13091_ACEOF
13092if ac_fn_c_try_compile "$LINENO"
13093then :
13094  zsh_cv_header_unistd_h_brk_proto=no
13095else $as_nop
13096  zsh_cv_header_unistd_h_brk_proto=yes
13097fi
13098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13099fi
13100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_unistd_h_brk_proto" >&5
13101printf "%s\n" "$zsh_cv_header_unistd_h_brk_proto" >&6; }
13102
13103if test x$zsh_cv_header_unistd_h_brk_proto = xyes; then
13104  printf "%s\n" "#define HAVE_BRK_PROTO 1" >>confdefs.h
13105
13106fi
13107
13108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sbrk() prototype in <unistd.h>" >&5
13109printf %s "checking for sbrk() prototype in <unistd.h>... " >&6; }
13110if test ${zsh_cv_header_unistd_h_sbrk_proto+y}
13111then :
13112  printf %s "(cached) " >&6
13113else $as_nop
13114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115/* end confdefs.h.  */
13116#include <unistd.h>
13117double sbrk();
13118int
13119main (void)
13120{
13121int i;
13122  ;
13123  return 0;
13124}
13125_ACEOF
13126if ac_fn_c_try_compile "$LINENO"
13127then :
13128  zsh_cv_header_unistd_h_sbrk_proto=no
13129else $as_nop
13130  zsh_cv_header_unistd_h_sbrk_proto=yes
13131fi
13132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13133fi
13134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_unistd_h_sbrk_proto" >&5
13135printf "%s\n" "$zsh_cv_header_unistd_h_sbrk_proto" >&6; }
13136
13137if test x$zsh_cv_header_unistd_h_sbrk_proto = xyes; then
13138  printf "%s\n" "#define HAVE_SBRK_PROTO 1" >>confdefs.h
13139
13140fi
13141
13142
13143if test "$ac_cv_prog_cc_stdc" != no; then
13144  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mknod prototype in <sys/stat.h>" >&5
13145printf %s "checking for mknod prototype in <sys/stat.h>... " >&6; }
13146if test ${zsh_cv_header_sys_stat_h_mknod_proto+y}
13147then :
13148  printf %s "(cached) " >&6
13149else $as_nop
13150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151/* end confdefs.h.  */
13152#include <sys/stat.h>
13153   int mknod(double x);
13154int
13155main (void)
13156{
13157int i;
13158  ;
13159  return 0;
13160}
13161_ACEOF
13162if ac_fn_c_try_compile "$LINENO"
13163then :
13164  zsh_cv_header_sys_stat_h_mknod_proto=no
13165else $as_nop
13166  zsh_cv_header_sys_stat_h_mknod_proto=yes
13167fi
13168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13169fi
13170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_sys_stat_h_mknod_proto" >&5
13171printf "%s\n" "$zsh_cv_header_sys_stat_h_mknod_proto" >&6; }
13172  if test x$zsh_cv_header_sys_stat_h_mknod_proto = xyes; then
13173    printf "%s\n" "#define HAVE_MKNOD_PROTO 1" >>confdefs.h
13174
13175  fi
13176fi
13177
13178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctl prototype in <unistd.h> or <termios.h>" >&5
13179printf %s "checking for ioctl prototype in <unistd.h> or <termios.h>... " >&6; }
13180if test ${zsh_cv_header_unistd_h_termios_h_ioctl_proto+y}
13181then :
13182  printf %s "(cached) " >&6
13183else $as_nop
13184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185/* end confdefs.h.  */
13186
13187#ifdef HAVE_UNISTD_H
13188# include <unistd.h>
13189#endif
13190#ifdef HAVE_TERMIOS_H
13191# include <termios.h>
13192#endif
13193double ioctl();
13194int
13195main (void)
13196{
13197int i;
13198  ;
13199  return 0;
13200}
13201_ACEOF
13202if ac_fn_c_try_compile "$LINENO"
13203then :
13204  zsh_cv_header_unistd_h_termios_h_ioctl_proto=no
13205else $as_nop
13206  zsh_cv_header_unistd_h_termios_h_ioctl_proto=yes
13207fi
13208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13209fi
13210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_unistd_h_termios_h_ioctl_proto" >&5
13211printf "%s\n" "$zsh_cv_header_unistd_h_termios_h_ioctl_proto" >&6; }
13212
13213if test x$zsh_cv_header_unistd_h_termios_h_ioctl_proto = xno; then
13214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctl prototype in <sys/ioctl.h>" >&5
13215printf %s "checking for ioctl prototype in <sys/ioctl.h>... " >&6; }
13216if test ${zsh_cv_header_sys_ioctl_h_ioctl_proto+y}
13217then :
13218  printf %s "(cached) " >&6
13219else $as_nop
13220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221/* end confdefs.h.  */
13222#include <sys/ioctl.h>
13223  double ioctl();
13224int
13225main (void)
13226{
13227int i;
13228  ;
13229  return 0;
13230}
13231_ACEOF
13232if ac_fn_c_try_compile "$LINENO"
13233then :
13234  zsh_cv_header_sys_ioctl_h_ioctl_proto=no
13235else $as_nop
13236  zsh_cv_header_sys_ioctl_h_ioctl_proto=yes
13237fi
13238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13239fi
13240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_sys_ioctl_h_ioctl_proto" >&5
13241printf "%s\n" "$zsh_cv_header_sys_ioctl_h_ioctl_proto" >&6; }
13242else
13243  zsh_cv_header_sys_ioctl_h_ioctl_proto=no
13244fi
13245
13246
13247if test x$zsh_cv_header_unistd_h_termios_h_ioctl_proto = xyes || \
13248   test x$zsh_cv_header_sys_ioctl_h_ioctl_proto = xyes; then
13249  printf "%s\n" "#define HAVE_IOCTL_PROTO 1" >>confdefs.h
13250
13251fi
13252
13253if test x$zsh_cv_header_sys_ioctl_h_ioctl_proto = xyes; then
13254  printf "%s\n" "#define IOCTL_IN_SYS_IOCTL 1" >>confdefs.h
13255
13256fi
13257
13258
13259if test x$ac_cv_header_sys_select_h != xyes; then
13260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select() in <sys/socket.h>" >&5
13261printf %s "checking for select() in <sys/socket.h>... " >&6; }
13262if test ${zsh_cv_header_socket_h_select_proto+y}
13263then :
13264  printf %s "(cached) " >&6
13265else $as_nop
13266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267/* end confdefs.h.  */
13268#include <sys/socket.h>
13269int
13270main (void)
13271{
13272fd_set fd;
13273  ;
13274  return 0;
13275}
13276_ACEOF
13277if ac_fn_c_try_compile "$LINENO"
13278then :
13279  zsh_cv_header_socket_h_select_proto=yes
13280else $as_nop
13281  zsh_cv_header_socket_h_select_proto=no
13282fi
13283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13284fi
13285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_header_socket_h_select_proto" >&5
13286printf "%s\n" "$zsh_cv_header_socket_h_select_proto" >&6; }
13287  if test x$zsh_cv_header_socket_h_select_proto = xyes; then
13288    printf "%s\n" "#define SELECT_IN_SYS_SOCKET_H 1" >>confdefs.h
13289
13290  fi
13291fi
13292
13293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if named FIFOs work" >&5
13294printf %s "checking if named FIFOs work... " >&6; }
13295if test ${zsh_cv_sys_fifo+y}
13296then :
13297  printf %s "(cached) " >&6
13298else $as_nop
13299  if test "$cross_compiling" = yes
13300then :
13301  zsh_cv_sys_fifo=yes
13302else $as_nop
13303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304/* end confdefs.h.  */
13305
13306#include <fcntl.h>
13307#include <signal.h>
13308#include <unistd.h>
13309#include <stdlib.h>
13310#include <sys/stat.h>
13311main()
13312{
13313    char c;
13314    int fd;
13315    int pid, ret;
13316    unlink("/tmp/fifo$$");
13317#ifdef HAVE_MKFIFO
13318    if(mkfifo("/tmp/fifo$$", 0600) < 0)
13319#else
13320    if(mknod("/tmp/fifo$$", 0010600, 0) < 0)
13321#endif
13322	exit(1);
13323    pid = fork();
13324    if(pid < 0)
13325	exit(1);
13326    if(pid) {
13327	fd = open("/tmp/fifo$$", O_RDONLY);
13328	exit(fd < 0 || read(fd, &c, 1) != 1 || c != 'x');
13329    }
13330    fd = open("/tmp/fifo$$", O_WRONLY);
13331    ret = (fd < 0 || write(fd, "x", 1) < 1);
13332    unlink("/tmp/fifo$$");
13333    exit(ret);
13334}
13335
13336_ACEOF
13337if ac_fn_c_try_run "$LINENO"
13338then :
13339  zsh_cv_sys_fifo=yes
13340else $as_nop
13341  zsh_cv_sys_fifo=no
13342fi
13343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13344  conftest.$ac_objext conftest.beam conftest.$ac_ext
13345fi
13346
13347
13348fi
13349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_fifo" >&5
13350printf "%s\n" "$zsh_cv_sys_fifo" >&6; }
13351
13352if test x$zsh_cv_sys_fifo = xyes; then
13353  printf "%s\n" "#define HAVE_FIFOS 1" >>confdefs.h
13354
13355fi
13356
13357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if link() works" >&5
13358printf %s "checking if link() works... " >&6; }
13359if test ${zsh_cv_sys_link+y}
13360then :
13361  printf %s "(cached) " >&6
13362else $as_nop
13363  if test "$cross_compiling" = yes
13364then :
13365  zsh_cv_sys_link=yes
13366else $as_nop
13367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368/* end confdefs.h.  */
13369
13370#include <unistd.h>
13371#include <fcntl.h>
13372#include <stdlib.h>
13373main()
13374{
13375    int ret;
13376    char *tmpfile, *newfile;
13377    tmpfile="/tmp/zsh.linktest$$";
13378    newfile="/tmp/zsh.linktest2$$";
13379    unlink(tmpfile);
13380    unlink(newfile);
13381    if(creat(tmpfile, 0644) < 0)
13382	exit(1);
13383    ret = link(tmpfile, newfile);
13384    unlink(tmpfile);
13385    unlink(newfile);
13386    exit(ret<0);
13387}
13388
13389_ACEOF
13390if ac_fn_c_try_run "$LINENO"
13391then :
13392  zsh_cv_sys_link=yes
13393else $as_nop
13394  zsh_cv_sys_link=no
13395fi
13396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13397  conftest.$ac_objext conftest.beam conftest.$ac_ext
13398fi
13399
13400fi
13401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_link" >&5
13402printf "%s\n" "$zsh_cv_sys_link" >&6; }
13403
13404if test x$zsh_cv_sys_link = xyes; then
13405  printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
13406
13407fi
13408
13409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if kill(pid, 0) returns ESRCH correctly" >&5
13410printf %s "checking if kill(pid, 0) returns ESRCH correctly... " >&6; }
13411if test ${zsh_cv_sys_killesrch+y}
13412then :
13413  printf %s "(cached) " >&6
13414else $as_nop
13415  if test "$cross_compiling" = yes
13416then :
13417  zsh_cv_sys_killesrch=yes
13418else $as_nop
13419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420/* end confdefs.h.  */
13421
13422#include <unistd.h>
13423#include <signal.h>
13424#include <errno.h>
13425#include <stdlib.h>
13426main()
13427{
13428    int pid = (getpid() + 10000) & 0xffffff;
13429    while (pid && (kill(pid, 0) == 0 || errno != ESRCH)) pid >>= 1;
13430    exit(errno!=ESRCH);
13431}
13432
13433_ACEOF
13434if ac_fn_c_try_run "$LINENO"
13435then :
13436  zsh_cv_sys_killesrch=yes
13437else $as_nop
13438  zsh_cv_sys_killesrch=no
13439fi
13440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13441  conftest.$ac_objext conftest.beam conftest.$ac_ext
13442fi
13443
13444fi
13445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_killesrch" >&5
13446printf "%s\n" "$zsh_cv_sys_killesrch" >&6; }
13447
13448if test x$zsh_cv_sys_killesrch = xno; then
13449  printf "%s\n" "#define BROKEN_KILL_ESRCH 1" >>confdefs.h
13450
13451fi
13452
13453
13454if test x$signals_style = xPOSIX_SIGNALS; then
13455    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if POSIX sigsuspend() works" >&5
13456printf %s "checking if POSIX sigsuspend() works... " >&6; }
13457if test ${zsh_cv_sys_sigsuspend+y}
13458then :
13459  printf %s "(cached) " >&6
13460else $as_nop
13461  if test "$cross_compiling" = yes
13462then :
13463  zsh_cv_sys_sigsuspend=yes
13464else $as_nop
13465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466/* end confdefs.h.  */
13467
13468#include <signal.h>
13469#include <unistd.h>
13470#include <stdlib.h>
13471int child=0;
13472void handler(sig)
13473    int sig;
13474{if(sig==SIGCHLD) child=1;}
13475main() {
13476    struct sigaction act;
13477    sigset_t set;
13478    int pid, ret;
13479    act.sa_handler = &handler;
13480    sigfillset(&act.sa_mask);
13481    act.sa_flags = 0;
13482    sigaction(SIGCHLD, &act, 0);
13483    sigfillset(&set);
13484    sigprocmask(SIG_SETMASK, &set, 0);
13485    pid=fork();
13486    if(pid==0) return 0;
13487    if(pid>0) {
13488    sigemptyset(&set);
13489        ret=sigsuspend(&set);
13490        exit(child==0);
13491    }
13492}
13493
13494_ACEOF
13495if ac_fn_c_try_run "$LINENO"
13496then :
13497  zsh_cv_sys_sigsuspend=yes
13498else $as_nop
13499  zsh_cv_sys_sigsuspend=no
13500fi
13501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13502  conftest.$ac_objext conftest.beam conftest.$ac_ext
13503fi
13504
13505fi
13506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_sigsuspend" >&5
13507printf "%s\n" "$zsh_cv_sys_sigsuspend" >&6; }
13508    if test x$zsh_cv_sys_sigsuspend = xno; then
13509      printf "%s\n" "#define BROKEN_POSIX_SIGSUSPEND 1" >>confdefs.h
13510
13511    fi
13512fi
13513
13514
13515
13516# Check whether --with-tcsetpgrp was given.
13517if test ${with_tcsetpgrp+y}
13518then :
13519  withval=$with_tcsetpgrp;
13520case "x$withval" in
13521    xyes) zsh_working_tcsetpgrp=yes;;
13522    xno)  zsh_working_tcsetpgrp=no;;
13523    *)    as_fn_error $? "please use --with-tcsetpgrp=yes or --with-tcsetpgrp=no" "$LINENO" 5;;
13524esac
13525else $as_nop
13526  zsh_working_tcsetpgrp=check
13527fi
13528
13529if test "x$ac_cv_func_tcsetpgrp" = xyes; then
13530case "x$zsh_working_tcsetpgrp" in
13531  xcheck)
13532    trap "" TTOU > /dev/null 2>&1 || :
13533    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if tcsetpgrp() actually works" >&5
13534printf %s "checking if tcsetpgrp() actually works... " >&6; }
13535if test ${zsh_cv_sys_tcsetpgrp+y}
13536then :
13537  printf %s "(cached) " >&6
13538else $as_nop
13539  if test "$cross_compiling" = yes
13540then :
13541  zsh_cv_sys_tcsetpgrp=yes
13542else $as_nop
13543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544/* end confdefs.h.  */
13545
13546#include <sys/types.h>
13547#include <unistd.h>
13548#include <fcntl.h>
13549#include <stdlib.h>
13550main() {
13551    int fd;
13552    int ret;
13553    fd=open("/dev/tty", O_RDWR);
13554    if (fd < 0) exit(2);
13555    ret=tcsetpgrp(fd, tcgetpgrp(fd));
13556    if (ret < 0) exit(1);
13557    exit(0);
13558}
13559
13560_ACEOF
13561if ac_fn_c_try_run "$LINENO"
13562then :
13563  zsh_cv_sys_tcsetpgrp=yes
13564else $as_nop
13565
13566case $? in
13567    1) zsh_cv_sys_tcsetpgrp=no;;
13568    2) zsh_cv_sys_tcsetpgrp=notty;;
13569    *) zsh_cv_sys_tcsetpgrp=error;;
13570esac
13571
13572fi
13573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13574  conftest.$ac_objext conftest.beam conftest.$ac_ext
13575fi
13576
13577fi
13578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_tcsetpgrp" >&5
13579printf "%s\n" "$zsh_cv_sys_tcsetpgrp" >&6; }
13580    case "x$zsh_cv_sys_tcsetpgrp" in
13581      xno)    printf "%s\n" "#define BROKEN_TCSETPGRP 1" >>confdefs.h
13582;;
13583      xyes)   :;;
13584      xnotty) as_fn_error $? "no controlling tty
13585Try running configure with --with-tcsetpgrp or --without-tcsetpgrp" "$LINENO" 5;;
13586      *)      as_fn_error $? "unexpected return status" "$LINENO" 5;;
13587    esac
13588    trap - TTOU > /dev/null 2>&1 || :
13589    ;;
13590  xyes) :;;
13591  xno)  printf "%s\n" "#define BROKEN_TCSETPGRP 1" >>confdefs.h
13592;;
13593  *)    as_fn_error $? "unexpected value zsh_working_tcsetpgrp=$zsh_working_tcsetpgrp" "$LINENO" 5;;
13594esac
13595fi
13596
13597
13598if test x$ac_cv_func_getpwnam = xyes; then
13599    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpwnam() is faked" >&5
13600printf %s "checking if getpwnam() is faked... " >&6; }
13601if test ${zsh_cv_sys_getpwnam_faked+y}
13602then :
13603  printf %s "(cached) " >&6
13604else $as_nop
13605  if test "$cross_compiling" = yes
13606then :
13607  zsh_cv_sys_getpwnam_faked=no
13608else $as_nop
13609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610/* end confdefs.h.  */
13611
13612#include <pwd.h>
13613#include <stdio.h>
13614#include <string.h>
13615#include <stdlib.h>
13616#include <unistd.h>
13617main() {
13618    struct passwd *pw1, *pw2;
13619    char buf[1024], name[1024];
13620    sprintf(buf, "%d:%d", getpid(), rand());
13621    pw1=getpwnam(buf);
13622    if (pw1) strcpy(name, pw1->pw_name);
13623    sprintf(buf, "%d:%d", rand(), getpid());
13624    pw2=getpwnam(buf);
13625    exit(pw1!=0 && pw2!=0 && !strcmp(name, pw2->pw_name));
13626}
13627
13628_ACEOF
13629if ac_fn_c_try_run "$LINENO"
13630then :
13631  zsh_cv_sys_getpwnam_faked=no
13632else $as_nop
13633  zsh_cv_sys_getpwnam_faked=yes
13634fi
13635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13636  conftest.$ac_objext conftest.beam conftest.$ac_ext
13637fi
13638
13639fi
13640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_getpwnam_faked" >&5
13641printf "%s\n" "$zsh_cv_sys_getpwnam_faked" >&6; }
13642    if test x$zsh_cv_sys_getpwnam_faked = xyes; then
13643      printf "%s\n" "#define GETPWNAM_FAKED 1" >>confdefs.h
13644
13645    fi
13646fi
13647
13648
13649
13650
13651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking base type of the third argument to accept" >&5
13652printf %s "checking base type of the third argument to accept... " >&6; }
13653if test ${zsh_cv_type_socklen_t+y}
13654then :
13655  printf %s "(cached) " >&6
13656else $as_nop
13657  zsh_cv_type_socklen_t=
13658    for zsh_type in socklen_t int "unsigned long" size_t ; do
13659      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660/* end confdefs.h.  */
13661#include <sys/types.h>
13662         #include <sys/socket.h>
13663int
13664main (void)
13665{
13666extern int accept (int, struct sockaddr *, $zsh_type *);
13667  ;
13668  return 0;
13669}
13670_ACEOF
13671if ac_fn_c_try_compile "$LINENO"
13672then :
13673  zsh_cv_type_socklen_t="$zsh_type"; break
13674fi
13675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13676    done
13677    if test -z "$zsh_cv_type_socklen_t"; then
13678      zsh_cv_type_socklen_t=int
13679    fi
13680
13681fi
13682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_type_socklen_t" >&5
13683printf "%s\n" "$zsh_cv_type_socklen_t" >&6; }
13684
13685printf "%s\n" "#define ZSOCKLEN_T $zsh_cv_type_socklen_t" >>confdefs.h
13686
13687
13688
13689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system has /dev/ptmx" >&5
13690printf %s "checking if your system has /dev/ptmx... " >&6; }
13691if test ${ac_cv_have_dev_ptmx+y}
13692then :
13693  printf %s "(cached) " >&6
13694else $as_nop
13695  if test -w /dev/ptmx; then
13696  ac_cv_have_dev_ptmx=yes
13697else
13698  ac_cv_have_dev_ptmx=no
13699fi
13700fi
13701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dev_ptmx" >&5
13702printf "%s\n" "$ac_cv_have_dev_ptmx" >&6; }
13703
13704
13705if test x$ac_cv_have_dev_ptmx = xyes -o x$ac_cv_func_posix_openpt = xyes && \
13706   test x$ac_cv_func_grantpt = xyes && \
13707   test x$ac_cv_func_unlockpt = xyes && \
13708   test x$ac_cv_func_ptsname = xyes; then
13709   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if /dev/ptmx is usable" >&5
13710printf %s "checking if /dev/ptmx is usable... " >&6; }
13711if test ${ac_cv_use_dev_ptmx+y}
13712then :
13713  printf %s "(cached) " >&6
13714else $as_nop
13715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716/* end confdefs.h.  */
13717#ifdef __linux
13718#define _GNU_SOURCE 1
13719#endif
13720#include <stdlib.h>
13721int ptsname();
13722int
13723main (void)
13724{
13725
13726  ;
13727  return 0;
13728}
13729_ACEOF
13730if ac_fn_c_try_compile "$LINENO"
13731then :
13732  ac_cv_use_dev_ptmx=no
13733else $as_nop
13734  ac_cv_use_dev_ptmx=yes
13735fi
13736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13737fi
13738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_dev_ptmx" >&5
13739printf "%s\n" "$ac_cv_use_dev_ptmx" >&6; }
13740   if test x$ac_cv_use_dev_ptmx = xyes; then
13741     printf "%s\n" "#define USE_DEV_PTMX 1" >>confdefs.h
13742
13743   fi
13744fi
13745
13746# Check whether --enable-multibyte was given.
13747if test ${enable_multibyte+y}
13748then :
13749  enableval=$enable_multibyte; zsh_cv_c_unicode_support=$enableval
13750else $as_nop
13751  if test ${zsh_cv_c_unicode_support+y}
13752then :
13753  printf %s "(cached) " >&6
13754else $as_nop
13755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for functions supporting multibyte characters" >&5
13756printf "%s\n" "$as_me: checking for functions supporting multibyte characters" >&6;}
13757  zfuncs_absent=
13758   for zfunc in iswalnum iswcntrl iswdigit iswgraph iswlower iswprint \
13759iswpunct iswspace iswupper iswxdigit mbrlen mbrtowc towupper towlower \
13760wcschr wcscpy wcslen wcsncmp wcsncpy wcrtomb wcwidth wmemchr wmemcmp \
13761wmemcpy wmemmove wmemset; do
13762     as_ac_var=`printf "%s\n" "ac_cv_func_$zfunc" | $as_tr_sh`
13763ac_fn_c_check_func "$LINENO" "$zfunc" "$as_ac_var"
13764if eval test \"x\$"$as_ac_var"\" = x"yes"
13765then :
13766  :
13767else $as_nop
13768  zfuncs_absent="$zfuncs_absent $zfunc"
13769fi
13770
13771    done
13772    if test x"$zfuncs_absent" = x; then
13773      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: all functions found, multibyte support enabled" >&5
13774printf "%s\n" "$as_me: all functions found, multibyte support enabled" >&6;}
13775      zsh_cv_c_unicode_support=yes
13776    else
13777      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: missing functions, multibyte support disabled" >&5
13778printf "%s\n" "$as_me: missing functions, multibyte support disabled" >&6;}
13779      zsh_cv_c_unicode_support=no
13780    fi
13781
13782fi
13783
13784
13785fi
13786
13787
13788
13789
13790# Check whether --enable-unicode9 was given.
13791if test ${enable_unicode9+y}
13792then :
13793  enableval=$enable_unicode9; if test x$enableval = xyes; then
13794  printf "%s\n" "#define ENABLE_UNICODE9 1" >>confdefs.h
13795
13796fi
13797fi
13798
13799
13800
13801
13802if test x$zsh_cv_c_unicode_support = xyes; then
13803  printf "%s\n" "#define MULTIBYTE_SUPPORT 1" >>confdefs.h
13804
13805
13806                                          locale_prog='char *my_locales[] = {
13807  "en_US.UTF-8", "en_GB.UTF-8", "en.UTF-8", '
13808  locale_prog="$locale_prog"`locale -a 2>/dev/null | \
13809    sed -e 's/utf8/UTF-8/' | grep UTF-8 | \
13810    while read line; do echo " \"$line\","; done;`
13811  locale_prog="$locale_prog 0 };
13812  #define _XOPEN_SOURCE
13813  #include <stdlib.h>
13814  #include <locale.h>
13815  #include <wchar.h>
13816  #include <wctype.h>
13817
13818  int main() {
13819    char **localep;
13820    char comb_acute_mb[] = { (char)0xcc, (char)0x81 };
13821    char u_0234[] = { (char)0xc8, (char)0xb4 };
13822    wchar_t wc;
13823  #if !defined(__STDC_ISO_10646__) && !defined(__APPLE__)
13824    return 1;
13825  #endif
13826
13827    for (localep = my_locales; *localep; localep++)
13828      if (setlocale(LC_ALL, *localep))
13829	  break;
13830    if (!*localep)
13831      return 1;
13832    if (mbtowc(&wc, comb_acute_mb, 2) == 2 && (wcwidth(wc) != 0 || !iswprint(wc)))
13833      return 0;
13834    if (mbtowc(&wc, u_0234, 2) == 2 && (wcwidth(wc) != 1 || !iswprint(wc)))
13835      return 0;
13836    return 1;
13837  }
13838  "
13839
13840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the wcwidth() and/or iswprint() functions are broken" >&5
13841printf %s "checking if the wcwidth() and/or iswprint() functions are broken... " >&6; }
13842if test ${zsh_cv_c_broken_wcwidth+y}
13843then :
13844  printf %s "(cached) " >&6
13845else $as_nop
13846  if test "$cross_compiling" = yes
13847then :
13848  zsh_cv_c_broken_wcwidth=no
13849else $as_nop
13850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851/* end confdefs.h.  */
13852$locale_prog
13853_ACEOF
13854if ac_fn_c_try_run "$LINENO"
13855then :
13856  zsh_cv_c_broken_wcwidth=yes
13857else $as_nop
13858  zsh_cv_c_broken_wcwidth=no
13859fi
13860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13861  conftest.$ac_objext conftest.beam conftest.$ac_ext
13862fi
13863
13864fi
13865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_c_broken_wcwidth" >&5
13866printf "%s\n" "$zsh_cv_c_broken_wcwidth" >&6; }
13867  if test x$zsh_cv_c_broken_wcwidth = xyes; then
13868    printf "%s\n" "#define ENABLE_UNICODE9 1" >>confdefs.h
13869
13870  fi
13871
13872          locale_prog='char *my_locales[] = {
13873  "en_US.UTF-8", "en_GB.UTF-8", "en.UTF-8", '
13874  locale_prog="$locale_prog"`locale -a 2>/dev/null | \
13875    sed -e 's/utf8/UTF-8/' | grep UTF-8 | \
13876    while read line; do echo " \"$line\","; done;`
13877  locale_prog="$locale_prog 0 };
13878  #include <locale.h>
13879  #include <ctype.h>
13880
13881  int main() {
13882    char **localep;
13883    for (localep = my_locales; *localep; localep++)
13884      if (setlocale(LC_ALL, *localep) && isprint(0xa0))
13885	return 0;
13886    return 1;
13887  }
13888  "
13889
13890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the isprint() function is broken" >&5
13891printf %s "checking if the isprint() function is broken... " >&6; }
13892if test ${zsh_cv_c_broken_isprint+y}
13893then :
13894  printf %s "(cached) " >&6
13895else $as_nop
13896  if test "$cross_compiling" = yes
13897then :
13898  zsh_cv_c_broken_isprint=no
13899else $as_nop
13900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901/* end confdefs.h.  */
13902$locale_prog
13903_ACEOF
13904if ac_fn_c_try_run "$LINENO"
13905then :
13906  zsh_cv_c_broken_isprint=yes
13907else $as_nop
13908  zsh_cv_c_broken_isprint=no
13909fi
13910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13911  conftest.$ac_objext conftest.beam conftest.$ac_ext
13912fi
13913
13914fi
13915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_c_broken_isprint" >&5
13916printf "%s\n" "$zsh_cv_c_broken_isprint" >&6; }
13917  if test x$zsh_cv_c_broken_isprint = xyes; then
13918    printf "%s\n" "#define BROKEN_ISPRINT 1" >>confdefs.h
13919
13920  fi
13921fi
13922
13923
13924# Check whether --enable-libc-musl was given.
13925if test ${enable_libc_musl+y}
13926then :
13927  enableval=$enable_libc_musl; if test x$enableval = xyes; then
13928  printf "%s\n" "#define LIBC_MUSL 1" >>confdefs.h
13929
13930fi
13931fi
13932
13933
13934# Check whether --enable-dynamic-nss was given.
13935if test ${enable_dynamic_nss+y}
13936then :
13937  enableval=$enable_dynamic_nss; zsh_cv_c_dynamic_nss=$enableval
13938fi
13939
13940
13941
13942if test x$zsh_cv_c_dynamic_nss = xno; then
13943  printf "%s\n" "#define DISABLE_DYNAMIC_NSS 1" >>confdefs.h
13944
13945fi
13946
13947
13948L=N
13949INSTLIB="install.bin-\$(L)"
13950UNINSTLIB="uninstall.bin-\$(L)"
13951LINKMODS=NOLINKMODS
13952MOD_EXPORT=
13953MOD_IMPORT_VARIABLE=
13954MOD_IMPORT_FUNCTION=
13955aixdynamic=no
13956hpuxdynamic=no
13957if test "$ac_cv_func_load"      = yes &&
13958   test "$ac_cv_func_unload"    = yes &&
13959   test "$ac_cv_func_loadbind"  = yes &&
13960   test "$ac_cv_func_loadquery" = yes; then
13961    if test "x$dynamic" = xyes; then
13962    aixdynamic=yes
13963  fi
13964elif test "$ac_cv_func_dlopen"  != yes ||
13965     test "$ac_cv_func_dlsym"   != yes ||
13966     test "$ac_cv_func_dlerror" != yes; then
13967  if test "$ac_cv_func_shl_load" != yes ||
13968     test "$ac_cv_func_shl_unload" != yes ||
13969     test "$ac_cv_func_shl_findsym" != yes; then
13970    dynamic=no
13971  elif test "x$dynamic" = xyes; then
13972    hpuxdynamic=yes
13973    DL_EXT="${DL_EXT=sl}"
13974                    printf "%s\n" "#define HPUX10DYNAMIC 1" >>confdefs.h
13975  fi
13976fi
13977
13978test -n "$GCC" && LDARG=-Wl,
13979
13980
13981
13982if test "x$aixdynamic" = xyes; then
13983  DL_EXT="${DL_EXT=so}"
13984  DLLD="${DLLD=$CC}"
13985  zsh_cv_func_dlsym_needs_underscore=no
13986  if test -n "$GCC"; then
13987    DLLDFLAGS=${DLLDFLAGS=-shared}
13988  else
13989    DLLDFLAGS=${DLLDFLAGS=-bM:SRE}
13990  fi
13991  DLLDFLAGS=${DLLDFLAGS=}
13992  EXTRA_LDFLAGS=${EXTRA_LDFLAGS=}
13993  EXPOPT=${LDARG}-bE:
13994  IMPOPT=${LDARG}-bI:
13995  zsh_cv_sys_dynamic_clash_ok="${zsh_cv_sys_dynamic_clash_ok=yes}"
13996  zsh_cv_sys_dynamic_rtld_global="${zsh_cv_sys_dynamic_rtld_global=yes}"
13997  zsh_cv_sys_dynamic_execsyms="${zsh_cv_sys_dynamic_execsyms=yes}"
13998  zsh_cv_sys_dynamic_strip_exe="${zsh_cv_sys_dynamic_strip_exe=yes}"
13999  zsh_cv_sys_dynamic_strip_lib="${zsh_cv_sys_dynamic_strip_lib=yes}"
14000  zsh_cv_shared_environ="${zsh_cv_shared_environ=yes}"
14001elif test "$host_os" = cygwin; then
14002  DL_EXT="${DL_EXT=dll}"
14003##DLLD="${DLLD=dllwrap}"
14004  DLLD="${DLLD=$CC}"
14005##DLLDFLAGS="${DLLDFLAGS=--export-all-symbols}"
14006  DLLDFLAGS=${DLLDFLAGS=-shared -Wl,--export-all-symbols}
14007  zsh_cv_func_dlsym_needs_underscore=no
14008  DLLDFLAGS=${DLLDFLAGS=}
14009  EXTRA_LDFLAGS=${EXTRA_LDFLAGS=}
14010  zsh_cv_sys_dynamic_clash_ok="${zsh_cv_sys_dynamic_clash_ok=no}"
14011  zsh_cv_sys_dynamic_rtld_global="${zsh_cv_sys_dynamic_rtld_global=yes}"
14012  zsh_cv_sys_dynamic_execsyms="${zsh_cv_sys_dynamic_execsyms=no}"
14013  zsh_cv_sys_dynamic_strip_exe="${zsh_cv_sys_dynamic_strip_exe=yes}"
14014  zsh_cv_sys_dynamic_strip_lib="${zsh_cv_sys_dynamic_strip_lib=yes}"
14015  #
14016  # THAT SUCKS! and must be changed
14017  #
14018  zsh_cv_shared_environ="${zsh_cv_shared_environ=yes}"
14019  LINKMODS=LINKMODS
14020  MOD_EXPORT="__attribute__((__dllexport__))"
14021  MOD_IMPORT_VARIABLE="__attribute__((__dllimport__))"
14022  MOD_IMPORT_FUNCTION=
14023elif test "x$dynamic" = xyes; then
14024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system uses ELF binaries" >&5
14025printf %s "checking if your system uses ELF binaries... " >&6; }
14026if test ${zsh_cv_sys_elf+y}
14027then :
14028  printf %s "(cached) " >&6
14029else $as_nop
14030  if test "$cross_compiling" = yes
14031then :
14032  zsh_cv_sys_elf=yes
14033else $as_nop
14034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035/* end confdefs.h.  */
14036/* Test for whether ELF binaries are produced */
14037#include <fcntl.h>
14038#include <stdlib.h>
14039#include <unistd.h>
14040main(argc, argv)
14041int argc;
14042char *argv[];
14043{
14044	char b[4];
14045	int i = open(argv[0],O_RDONLY);
14046	if(i == -1)
14047		exit(1); /* fail */
14048	if(read(i,b,4)==4 && b[0]==127 && b[1]=='E' && b[2]=='L' && b[3]=='F')
14049		exit(0); /* succeed (yes, it's ELF) */
14050	else
14051		exit(1); /* fail */
14052}
14053_ACEOF
14054if ac_fn_c_try_run "$LINENO"
14055then :
14056  zsh_cv_sys_elf=yes
14057else $as_nop
14058  zsh_cv_sys_elf=no
14059fi
14060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14061  conftest.$ac_objext conftest.beam conftest.$ac_ext
14062fi
14063
14064fi
14065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_elf" >&5
14066printf "%s\n" "$zsh_cv_sys_elf" >&6; }
14067
14068  # We use [0-9]* in case statements, so need to change quoting
14069
14070
14071  DL_EXT="${DL_EXT=so}"
14072  if test x$zsh_cv_sys_elf = xyes; then
14073    case "$host" in
14074      mips-sni-sysv4*)
14075        # Forcibly set ld to native compiler to avoid obscure GCC problems
14076	DLLD="${DLLD=/usr/ccs/bin/cc}"
14077	DLLDARG="${LDARG}"
14078      ;;
14079      * )
14080	DLLD="${DLLD=$CC}"
14081	DLLDARG="${LDARG}"
14082      ;;
14083    esac
14084  else
14085    case "$host" in
14086      *openbsd*)
14087	case "$host_os" in
14088	  openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14089	    DLLD="${DLLD=ld}"
14090	  ;;
14091	  *)
14092	    DLLD="${DLLD=$CC}"
14093	  ;;
14094	esac
14095	DLLDARG="${LDARG}"
14096      ;;
14097      *darwin*)
14098        DLLD="${DLLD=$CC}"
14099        DLLDARG=""
14100      ;;
14101      *interix*)
14102        DLLD="${DLLD=$CC}"
14103        DLLDARG=""
14104      ;;
14105      * )
14106	DLLD="${DLLD=ld}"
14107	DLLDARG=""
14108      ;;
14109    esac
14110  fi
14111  if test -n "$GCC"; then
14112    case "$host_os" in
14113      hpux*)   DLLDFLAGS="${DLLDFLAGS=-shared}" ;;
14114      darwin*) DLCFLAGS="${DLCFLAGS=-fno-common}" ;;
14115      interix*) DLCFLAGS="${DLCFLAGS=}" ;;
14116      *)       DLCFLAGS="${DLCFLAGS=-fPIC}" ;;
14117    esac
14118  else
14119    case "$host_os" in
14120      hpux*)
14121        DLCFLAGS="${DLCFLAGS=+z}"
14122        DLLDFLAGS="${DLLDFLAGS=-b}"
14123      ;;
14124      sunos*)                DLCFLAGS="${DLCFLAGS=-pic}" ;;
14125      solaris*|sysv4*|esix*) DLCFLAGS="${DLCFLAGS=-KPIC}" ;;
14126    esac
14127  fi
14128  case "$host_os" in
14129    osf*) DLLDFLAGS="${DLLDFLAGS=-shared -expect_unresolved '*'}" ;;
14130    *freebsd*|*netbsd*|linux*|irix*|gnu*|interix*|dragonfly*) DLLDFLAGS="${DLLDFLAGS=-shared}" ;;
14131    sunos*)       DLLDFLAGS="${DLLDFLAGS=-assert nodefinitions}" ;;
14132    sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G $ldflags}" ;;
14133    aix*)         DLLDFLAGS="${DLLDFLAGS=-G -bexpall -lc}" ;;
14134    solaris*|sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G}" ;;
14135    darwin*)      DLLDFLAGS="${DLLDFLAGS=-bundle -flat_namespace -undefined suppress}" ;;
14136    beos*|haiku*) DLLDFLAGS="${DLLDFLAGS=-nostart}" ;;
14137    openbsd*)
14138      if test x$zsh_cv_sys_elf = xyes; then
14139	DLLDFLAGS="${DLLDFLAGS=-shared -fPIC}"
14140      else
14141	case "$host_os" in
14142	  openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14143	   DLLDFLAGS="${DLLDFLAGS=-Bshareable}"
14144	  ;;
14145	  *)
14146	    DLLDFLAGS="${DLLDFLAGS=-shared -fPIC}"
14147	  ;;
14148	esac
14149      fi
14150    ;;
14151  esac
14152  case "$host" in
14153    *-hpux*)  EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-Wl,-E}" ;;
14154    *openbsd*)
14155       if test x$zsh_cv_sys_elf = xyes; then
14156	 EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-Wl,-E}"
14157       fi
14158    ;;
14159    mips-sni-sysv4)
14160      #
14161      # unfortunately, we have different compilers
14162      # that need different flags
14163      #
14164      if test -n "$GCC"; then
14165        sni_cc_version=GCC
14166      else
14167        sni_cc_version=`$CC -V 2>&1 | head -1`
14168      fi
14169      case "$sni_cc_version" in
14170        *CDS*|GCC )
14171         EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-Wl,-Blargedynsym}"
14172       ;;
14173       * )
14174         EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-LD-Blargedynsym}"
14175       ;;
14176      esac
14177    ;;
14178    *-beos*)
14179      # gcc on BeOS doesn't like -rdynamic...
14180      EXTRA_LDFLAGS="${EXTRA_LDFLAGS= }"
14181      # also, dlopen() at least in Zeta respects $LIBRARY_PATH, so needs %A added to it.
14182      export LIBRARY_PATH="$LIBRARY_PATH:%A/"
14183    ;;
14184    *-haiku*)
14185      #
14186    ;;
14187  esac
14188
14189  # Done with our shell code, so restore autotools quoting
14190
14191
14192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use -rdynamic" >&5
14193printf %s "checking if we can use -rdynamic... " >&6; }
14194if test ${zsh_cv_rdynamic_available+y}
14195then :
14196  printf %s "(cached) " >&6
14197else $as_nop
14198  old_LDFLAGS="$LDFLAGS"
14199LDFLAGS="$LDFLAGS -rdynamic"
14200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14201/* end confdefs.h.  */
14202
14203int
14204main (void)
14205{
14206
14207  ;
14208  return 0;
14209}
14210_ACEOF
14211if ac_fn_c_try_link "$LINENO"
14212then :
14213  zsh_cv_rdynamic_available=yes
14214EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-rdynamic}"
14215else $as_nop
14216  zsh_cvs_rdynamic_available=no
14217fi
14218rm -f core conftest.err conftest.$ac_objext conftest.beam \
14219    conftest$ac_exeext conftest.$ac_ext
14220LDFLAGS="$old_LDFLAGS"
14221fi
14222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_rdynamic_available" >&5
14223printf "%s\n" "$zsh_cv_rdynamic_available" >&6; }
14224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your dlsym() needs a leading underscore" >&5
14225printf %s "checking if your dlsym() needs a leading underscore... " >&6; }
14226if test ${zsh_cv_func_dlsym_needs_underscore+y}
14227then :
14228  printf %s "(cached) " >&6
14229else $as_nop
14230  echo failed >conftestval && cat >conftest.c <<EOM
14231fred () { }
14232EOM
14233    { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest.c 1>&5'
14234  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14235  (eval $ac_try) 2>&5
14236  ac_status=$?
14237  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14238  test $ac_status = 0; }; } &&
14239    { ac_try='$DLLD $LDFLAGS $DLLDFLAGS -o conftest.$DL_EXT conftest.o 1>&5'
14240  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14241  (eval $ac_try) 2>&5
14242  ac_status=$?
14243  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14244  test $ac_status = 0; }; } &&
14245    if test "$cross_compiling" = yes
14246then :
14247  zsh_cv_func_dlsym_needs_underscore=no
14248else $as_nop
14249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250/* end confdefs.h.  */
14251
14252#include <stdio.h>
14253#include <stdlib.h>
14254#ifdef HPUX10DYNAMIC
14255#include <dl.h>
14256#define RTLD_LAZY BIND_DEFERRED
14257#define RTLD_GLOBAL DYNAMIC_PATH
14258
14259char *zsh_gl_sym_addr ;
14260
14261#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
14262#define dlclose(handle) shl_unload((shl_t)(handle))
14263#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)
14264#define dlerror() 0
14265#else
14266#ifdef HAVE_DLFCN_H
14267#include <dlfcn.h>
14268#else
14269#include <sys/types.h>
14270#include <nlist.h>
14271#include <link.h>
14272#endif
14273#endif
14274#ifndef RTLD_LAZY
14275#define RTLD_LAZY 1
14276#endif
14277
14278extern int fred() ;
14279
14280main()
14281{
14282    void * handle ;
14283    void * symbol ;
14284    FILE *f=fopen("conftestval", "w");
14285    if (!f) exit(1);
14286    handle = dlopen("./conftest.$DL_EXT", RTLD_LAZY) ;
14287    if (handle == NULL) {
14288        fprintf (f, "dlopen failed") ;
14289            exit(1);
14290    }
14291    symbol = dlsym(handle, "fred") ;
14292    if (symbol == NULL) {
14293                /* try putting a leading underscore */
14294        symbol = dlsym(handle, "_fred") ;
14295        if (symbol == NULL) {
14296            fprintf (f, "dlsym failed") ;
14297                exit(1);
14298                }
14299        fprintf (f, "yes") ;
14300    }
14301    else
14302        fprintf (f, "no") ;
14303    exit(0);
14304}
14305_ACEOF
14306if ac_fn_c_try_run "$LINENO"
14307then :
14308  zsh_cv_func_dlsym_needs_underscore=`cat conftestval`
14309else $as_nop
14310  zsh_cv_func_dlsym_needs_underscore=failed
14311    dynamic=no
14312fi
14313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14314  conftest.$ac_objext conftest.beam conftest.$ac_ext
14315fi
14316
14317fi
14318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_func_dlsym_needs_underscore" >&5
14319printf "%s\n" "$zsh_cv_func_dlsym_needs_underscore" >&6; }
14320  if test "x$zsh_cv_func_dlsym_needs_underscore" = xyes; then
14321    printf "%s\n" "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h
14322
14323  elif test "x$zsh_cv_func_dlsym_needs_underscore" != xno; then
14324        unset zsh_cv_func_dlsym_needs_underscore
14325  fi
14326fi
14327
14328if test "x$dynamic" = xyes; then
14329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if environ is available in shared libraries" >&5
14330printf %s "checking if environ is available in shared libraries... " >&6; }
14331if test ${zsh_cv_shared_environ+y}
14332then :
14333  printf %s "(cached) " >&6
14334else $as_nop
14335  if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
14336    us=_
14337else
14338    us=
14339fi
14340echo '
14341void *zsh_getaddr1()
14342{
14343#ifdef __CYGWIN__
14344	__attribute__((__dllimport__))
14345#endif
14346	extern char ** environ;
14347	return &environ;
14348};
14349' > conftest1.c
14350sed 's/zsh_getaddr1/zsh_getaddr2/' < conftest1.c > conftest2.c
14351if { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
14352  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14353  (eval $ac_try) 2>&5
14354  ac_status=$?
14355  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14356  test $ac_status = 0; }; } &&
14357{ ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS 1>&5'
14358  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14359  (eval $ac_try) 2>&5
14360  ac_status=$?
14361  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14362  test $ac_status = 0; }; } &&
14363{ ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&5'
14364  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14365  (eval $ac_try) 2>&5
14366  ac_status=$?
14367  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14368  test $ac_status = 0; }; } &&
14369{ ac_try='$DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&5'
14370  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14371  (eval $ac_try) 2>&5
14372  ac_status=$?
14373  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14374  test $ac_status = 0; }; }; then
14375    if test "$cross_compiling" = yes
14376then :
14377  zsh_cv_shared_environ=no
14378
14379else $as_nop
14380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381/* end confdefs.h.  */
14382
14383#include <stdlib.h>
14384#ifdef HPUX10DYNAMIC
14385#include <dl.h>
14386#define RTLD_LAZY BIND_DEFERRED
14387#define RTLD_GLOBAL DYNAMIC_PATH
14388
14389char *zsh_gl_sym_addr ;
14390
14391#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
14392#define dlclose(handle) shl_unload((shl_t)(handle))
14393#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)
14394#define dlerror() 0
14395#else
14396#ifdef HAVE_DLFCN_H
14397#include <dlfcn.h>
14398#else
14399#include <sys/types.h>
14400#include <nlist.h>
14401#include <link.h>
14402#endif
14403#endif
14404#ifndef RTLD_LAZY
14405#define RTLD_LAZY 1
14406#endif
14407#ifndef RTLD_GLOBAL
14408#define RTLD_GLOBAL 0
14409#endif
14410
14411main()
14412{
14413    void *handle1, *handle2;
14414    void *(*zsh_getaddr1)(), *(*zsh_getaddr2)();
14415    void *sym1, *sym2;
14416    handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
14417    if(!handle1) exit(1);
14418    handle2 = dlopen("./conftest2.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
14419    if(!handle2) exit(1);
14420    zsh_getaddr1 = (void *(*)()) dlsym(handle1, "${us}zsh_getaddr1");
14421    zsh_getaddr2 = (void *(*)()) dlsym(handle2, "${us}zsh_getaddr2");
14422    sym1 = zsh_getaddr1();
14423    sym2 = zsh_getaddr2();
14424    if(!sym1 || !sym2) exit(1);
14425    if(sym1 != sym2) exit(1);
14426    dlclose(handle1);
14427    handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
14428    if(!handle1) exit(1);
14429    zsh_getaddr1 = (void *(*)()) dlsym(handle1, "${us}zsh_getaddr1");
14430    sym1 = zsh_getaddr1();
14431    if(!sym1) exit(1);
14432    if(sym1 != sym2) exit(1);
14433    exit(0);
14434}
14435
14436_ACEOF
14437if ac_fn_c_try_run "$LINENO"
14438then :
14439  zsh_cv_shared_environ=yes
14440else $as_nop
14441  zsh_cv_shared_environ=no
14442fi
14443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14444  conftest.$ac_objext conftest.beam conftest.$ac_ext
14445fi
14446
14447else
14448    zsh_cv_shared_environ=no
14449fi
14450
14451fi
14452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_shared_environ" >&5
14453printf "%s\n" "$zsh_cv_shared_environ" >&6; }
14454
14455  test "$zsh_cv_shared_environ" = yes || dynamic=no
14456  if test "$ac_cv_func_tgetent" = yes; then
14457    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if tgetent is available in shared libraries" >&5
14458printf %s "checking if tgetent is available in shared libraries... " >&6; }
14459if test ${zsh_cv_shared_tgetent+y}
14460then :
14461  printf %s "(cached) " >&6
14462else $as_nop
14463  if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
14464    us=_
14465else
14466    us=
14467fi
14468echo '
14469void *zsh_getaddr1()
14470{
14471#ifdef __CYGWIN__
14472	__attribute__((__dllimport__))
14473#endif
14474	extern int  tgetent ( );
14475	return tgetent;
14476};
14477' > conftest1.c
14478sed 's/zsh_getaddr1/zsh_getaddr2/' < conftest1.c > conftest2.c
14479if { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
14480  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14481  (eval $ac_try) 2>&5
14482  ac_status=$?
14483  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14484  test $ac_status = 0; }; } &&
14485{ ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS 1>&5'
14486  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14487  (eval $ac_try) 2>&5
14488  ac_status=$?
14489  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14490  test $ac_status = 0; }; } &&
14491{ ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&5'
14492  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14493  (eval $ac_try) 2>&5
14494  ac_status=$?
14495  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14496  test $ac_status = 0; }; } &&
14497{ ac_try='$DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&5'
14498  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14499  (eval $ac_try) 2>&5
14500  ac_status=$?
14501  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14502  test $ac_status = 0; }; }; then
14503    if test "$cross_compiling" = yes
14504then :
14505  zsh_cv_shared_tgetent=no
14506
14507else $as_nop
14508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509/* end confdefs.h.  */
14510
14511#include <stdlib.h>
14512#ifdef HPUX10DYNAMIC
14513#include <dl.h>
14514#define RTLD_LAZY BIND_DEFERRED
14515#define RTLD_GLOBAL DYNAMIC_PATH
14516
14517char *zsh_gl_sym_addr ;
14518
14519#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
14520#define dlclose(handle) shl_unload((shl_t)(handle))
14521#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)
14522#define dlerror() 0
14523#else
14524#ifdef HAVE_DLFCN_H
14525#include <dlfcn.h>
14526#else
14527#include <sys/types.h>
14528#include <nlist.h>
14529#include <link.h>
14530#endif
14531#endif
14532#ifndef RTLD_LAZY
14533#define RTLD_LAZY 1
14534#endif
14535#ifndef RTLD_GLOBAL
14536#define RTLD_GLOBAL 0
14537#endif
14538
14539main()
14540{
14541    void *handle1, *handle2;
14542    void *(*zsh_getaddr1)(), *(*zsh_getaddr2)();
14543    void *sym1, *sym2;
14544    handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
14545    if(!handle1) exit(1);
14546    handle2 = dlopen("./conftest2.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
14547    if(!handle2) exit(1);
14548    zsh_getaddr1 = (void *(*)()) dlsym(handle1, "${us}zsh_getaddr1");
14549    zsh_getaddr2 = (void *(*)()) dlsym(handle2, "${us}zsh_getaddr2");
14550    sym1 = zsh_getaddr1();
14551    sym2 = zsh_getaddr2();
14552    if(!sym1 || !sym2) exit(1);
14553    if(sym1 != sym2) exit(1);
14554    dlclose(handle1);
14555    handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
14556    if(!handle1) exit(1);
14557    zsh_getaddr1 = (void *(*)()) dlsym(handle1, "${us}zsh_getaddr1");
14558    sym1 = zsh_getaddr1();
14559    if(!sym1) exit(1);
14560    if(sym1 != sym2) exit(1);
14561    exit(0);
14562}
14563
14564_ACEOF
14565if ac_fn_c_try_run "$LINENO"
14566then :
14567  zsh_cv_shared_tgetent=yes
14568else $as_nop
14569  zsh_cv_shared_tgetent=no
14570fi
14571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14572  conftest.$ac_objext conftest.beam conftest.$ac_ext
14573fi
14574
14575else
14576    zsh_cv_shared_tgetent=no
14577fi
14578
14579fi
14580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_shared_tgetent" >&5
14581printf "%s\n" "$zsh_cv_shared_tgetent" >&6; }
14582
14583  fi
14584  if test "$ac_cv_func_tigetstr" = yes; then
14585    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if tigetstr is available in shared libraries" >&5
14586printf %s "checking if tigetstr is available in shared libraries... " >&6; }
14587if test ${zsh_cv_shared_tigetstr+y}
14588then :
14589  printf %s "(cached) " >&6
14590else $as_nop
14591  if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
14592    us=_
14593else
14594    us=
14595fi
14596echo '
14597void *zsh_getaddr1()
14598{
14599#ifdef __CYGWIN__
14600	__attribute__((__dllimport__))
14601#endif
14602	extern int  tigetstr ( );
14603	return tigetstr;
14604};
14605' > conftest1.c
14606sed 's/zsh_getaddr1/zsh_getaddr2/' < conftest1.c > conftest2.c
14607if { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
14608  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14609  (eval $ac_try) 2>&5
14610  ac_status=$?
14611  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14612  test $ac_status = 0; }; } &&
14613{ ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS 1>&5'
14614  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14615  (eval $ac_try) 2>&5
14616  ac_status=$?
14617  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14618  test $ac_status = 0; }; } &&
14619{ ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&5'
14620  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14621  (eval $ac_try) 2>&5
14622  ac_status=$?
14623  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14624  test $ac_status = 0; }; } &&
14625{ ac_try='$DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&5'
14626  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14627  (eval $ac_try) 2>&5
14628  ac_status=$?
14629  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14630  test $ac_status = 0; }; }; then
14631    if test "$cross_compiling" = yes
14632then :
14633  zsh_cv_shared_tigetstr=no
14634
14635else $as_nop
14636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637/* end confdefs.h.  */
14638
14639#include <stdlib.h>
14640#ifdef HPUX10DYNAMIC
14641#include <dl.h>
14642#define RTLD_LAZY BIND_DEFERRED
14643#define RTLD_GLOBAL DYNAMIC_PATH
14644
14645char *zsh_gl_sym_addr ;
14646
14647#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
14648#define dlclose(handle) shl_unload((shl_t)(handle))
14649#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)
14650#define dlerror() 0
14651#else
14652#ifdef HAVE_DLFCN_H
14653#include <dlfcn.h>
14654#else
14655#include <sys/types.h>
14656#include <nlist.h>
14657#include <link.h>
14658#endif
14659#endif
14660#ifndef RTLD_LAZY
14661#define RTLD_LAZY 1
14662#endif
14663#ifndef RTLD_GLOBAL
14664#define RTLD_GLOBAL 0
14665#endif
14666
14667main()
14668{
14669    void *handle1, *handle2;
14670    void *(*zsh_getaddr1)(), *(*zsh_getaddr2)();
14671    void *sym1, *sym2;
14672    handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
14673    if(!handle1) exit(1);
14674    handle2 = dlopen("./conftest2.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
14675    if(!handle2) exit(1);
14676    zsh_getaddr1 = (void *(*)()) dlsym(handle1, "${us}zsh_getaddr1");
14677    zsh_getaddr2 = (void *(*)()) dlsym(handle2, "${us}zsh_getaddr2");
14678    sym1 = zsh_getaddr1();
14679    sym2 = zsh_getaddr2();
14680    if(!sym1 || !sym2) exit(1);
14681    if(sym1 != sym2) exit(1);
14682    dlclose(handle1);
14683    handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
14684    if(!handle1) exit(1);
14685    zsh_getaddr1 = (void *(*)()) dlsym(handle1, "${us}zsh_getaddr1");
14686    sym1 = zsh_getaddr1();
14687    if(!sym1) exit(1);
14688    if(sym1 != sym2) exit(1);
14689    exit(0);
14690}
14691
14692_ACEOF
14693if ac_fn_c_try_run "$LINENO"
14694then :
14695  zsh_cv_shared_tigetstr=yes
14696else $as_nop
14697  zsh_cv_shared_tigetstr=no
14698fi
14699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14700  conftest.$ac_objext conftest.beam conftest.$ac_ext
14701fi
14702
14703else
14704    zsh_cv_shared_tigetstr=no
14705fi
14706
14707fi
14708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_shared_tigetstr" >&5
14709printf "%s\n" "$zsh_cv_shared_tigetstr" >&6; }
14710
14711  fi
14712fi
14713
14714if test "x$dynamic" = xyes; then
14715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if name clashes in shared objects are OK" >&5
14716printf %s "checking if name clashes in shared objects are OK... " >&6; }
14717if test ${zsh_cv_sys_dynamic_clash_ok+y}
14718then :
14719  printf %s "(cached) " >&6
14720else $as_nop
14721  if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
14722    us=_
14723else
14724    us=
14725fi
14726echo 'int fred () { return 42; }' > conftest1.c
14727echo 'int fred () { return 69; }' > conftest2.c
14728if { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
14729  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14730  (eval $ac_try) 2>&5
14731  ac_status=$?
14732  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14733  test $ac_status = 0; }; } &&
14734{ ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS 1>&5'
14735  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14736  (eval $ac_try) 2>&5
14737  ac_status=$?
14738  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14739  test $ac_status = 0; }; } &&
14740{ ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&5'
14741  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14742  (eval $ac_try) 2>&5
14743  ac_status=$?
14744  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14745  test $ac_status = 0; }; } &&
14746{ ac_try='$DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&5'
14747  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14748  (eval $ac_try) 2>&5
14749  ac_status=$?
14750  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14751  test $ac_status = 0; }; }; then
14752    if test "$cross_compiling" = yes
14753then :
14754  zsh_cv_sys_dynamic_clash_ok=no
14755
14756else $as_nop
14757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758/* end confdefs.h.  */
14759
14760#include <stdlib.h>
14761#ifdef HPUX10DYNAMIC
14762#include <dl.h>
14763#define RTLD_LAZY BIND_DEFERRED
14764#define RTLD_GLOBAL DYNAMIC_PATH
14765
14766char *zsh_gl_sym_addr ;
14767
14768#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
14769#define dlclose(handle) shl_unload((shl_t)(handle))
14770#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)
14771#define dlerror() 0
14772#else
14773#ifdef HAVE_DLFCN_H
14774#include <dlfcn.h>
14775#else
14776#include <sys/types.h>
14777#include <nlist.h>
14778#include <link.h>
14779#endif
14780#endif
14781#ifndef RTLD_LAZY
14782#define RTLD_LAZY 1
14783#endif
14784#ifndef RTLD_GLOBAL
14785#define RTLD_GLOBAL 0
14786#endif
14787
14788
14789main()
14790{
14791    void *handle1, *handle2;
14792    int (*fred1)(), (*fred2)();
14793    handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
14794    if(!handle1) exit(1);
14795    handle2 = dlopen("./conftest2.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
14796    if(!handle2) exit(1);
14797    fred1 = (int (*)()) dlsym(handle1, "${us}fred");
14798    fred2 = (int (*)()) dlsym(handle2, "${us}fred");
14799    if(!fred1 || !fred2) exit(1);
14800    exit((*fred1)() != 42 || (*fred2)() != 69);
14801}
14802
14803_ACEOF
14804if ac_fn_c_try_run "$LINENO"
14805then :
14806  zsh_cv_sys_dynamic_clash_ok=yes
14807else $as_nop
14808  zsh_cv_sys_dynamic_clash_ok=no
14809fi
14810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14811  conftest.$ac_objext conftest.beam conftest.$ac_ext
14812fi
14813
14814else
14815    zsh_cv_sys_dynamic_clash_ok=no
14816fi
14817
14818fi
14819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_dynamic_clash_ok" >&5
14820printf "%s\n" "$zsh_cv_sys_dynamic_clash_ok" >&6; }
14821if test "$zsh_cv_sys_dynamic_clash_ok" = yes; then
14822    printf "%s\n" "#define DYNAMIC_NAME_CLASH_OK 1" >>confdefs.h
14823
14824fi
14825
14826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working RTLD_GLOBAL" >&5
14827printf %s "checking for working RTLD_GLOBAL... " >&6; }
14828if test ${zsh_cv_sys_dynamic_rtld_global+y}
14829then :
14830  printf %s "(cached) " >&6
14831else $as_nop
14832  if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
14833    us=_
14834else
14835    us=
14836fi
14837echo 'int fred () { return 42; }' > conftest1.c
14838echo 'extern int fred(); int barney () { return fred() + 27; }' > conftest2.c
14839if { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
14840  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14841  (eval $ac_try) 2>&5
14842  ac_status=$?
14843  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14844  test $ac_status = 0; }; } &&
14845{ ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS 1>&5'
14846  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14847  (eval $ac_try) 2>&5
14848  ac_status=$?
14849  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14850  test $ac_status = 0; }; } &&
14851{ ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&5'
14852  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14853  (eval $ac_try) 2>&5
14854  ac_status=$?
14855  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14856  test $ac_status = 0; }; } &&
14857{ ac_try='$DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&5'
14858  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14859  (eval $ac_try) 2>&5
14860  ac_status=$?
14861  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14862  test $ac_status = 0; }; }; then
14863    if test "$cross_compiling" = yes
14864then :
14865  zsh_cv_sys_dynamic_rtld_global=no
14866
14867else $as_nop
14868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869/* end confdefs.h.  */
14870
14871#include <stdlib.h>
14872#ifdef HPUX10DYNAMIC
14873#include <dl.h>
14874#define RTLD_LAZY BIND_DEFERRED
14875#define RTLD_GLOBAL DYNAMIC_PATH
14876
14877char *zsh_gl_sym_addr ;
14878
14879#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
14880#define dlclose(handle) shl_unload((shl_t)(handle))
14881#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)
14882#define dlerror() 0
14883#else
14884#ifdef HAVE_DLFCN_H
14885#include <dlfcn.h>
14886#else
14887#include <sys/types.h>
14888#include <nlist.h>
14889#include <link.h>
14890#endif
14891#endif
14892#ifndef RTLD_LAZY
14893#define RTLD_LAZY 1
14894#endif
14895#ifndef RTLD_GLOBAL
14896#define RTLD_GLOBAL 0
14897#endif
14898
14899main()
14900{
14901    void *handle;
14902    int (*barneysym)();
14903    handle = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
14904    if(!handle) exit(1);
14905    handle = dlopen("./conftest2.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
14906    if(!handle) exit(1);
14907    barneysym = (int (*)()) dlsym(handle, "${us}barney");
14908    if(!barneysym) exit(1);
14909    exit((*barneysym)() != 69);
14910}
14911
14912_ACEOF
14913if ac_fn_c_try_run "$LINENO"
14914then :
14915  zsh_cv_sys_dynamic_rtld_global=yes
14916else $as_nop
14917  zsh_cv_sys_dynamic_rtld_global=no
14918fi
14919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14920  conftest.$ac_objext conftest.beam conftest.$ac_ext
14921fi
14922
14923else
14924    zsh_cv_sys_dynamic_rtld_global=no
14925fi
14926
14927fi
14928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_dynamic_rtld_global" >&5
14929printf "%s\n" "$zsh_cv_sys_dynamic_rtld_global" >&6; }
14930
14931  RTLD_GLOBAL_OK=$zsh_cv_sys_dynamic_rtld_global
14932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether symbols in the executable are available" >&5
14933printf %s "checking whether symbols in the executable are available... " >&6; }
14934if test ${zsh_cv_sys_dynamic_execsyms+y}
14935then :
14936  printf %s "(cached) " >&6
14937else $as_nop
14938  if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
14939    us=_
14940else
14941    us=
14942fi
14943echo 'extern int fred(); int barney () { return fred() + 27; }' > conftest1.c
14944if { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
14945  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14946  (eval $ac_try) 2>&5
14947  ac_status=$?
14948  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14949  test $ac_status = 0; }; } &&
14950{ ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS 1>&5'
14951  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14952  (eval $ac_try) 2>&5
14953  ac_status=$?
14954  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14955  test $ac_status = 0; }; }; then
14956    save_ldflags=$LDFLAGS
14957    LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
14958    if test "$cross_compiling" = yes
14959then :
14960  zsh_cv_sys_dynamic_execsyms=no
14961
14962else $as_nop
14963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964/* end confdefs.h.  */
14965
14966#include <stdlib.h>
14967#ifdef HPUX10DYNAMIC
14968#include <dl.h>
14969#define RTLD_LAZY BIND_DEFERRED
14970#define RTLD_GLOBAL DYNAMIC_PATH
14971
14972char *zsh_gl_sym_addr ;
14973
14974#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
14975#define dlclose(handle) shl_unload((shl_t)(handle))
14976#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)
14977#define dlerror() 0
14978#else
14979#ifdef HAVE_DLFCN_H
14980#include <dlfcn.h>
14981#else
14982#include <sys/types.h>
14983#include <nlist.h>
14984#include <link.h>
14985#endif
14986#endif
14987#ifndef RTLD_LAZY
14988#define RTLD_LAZY 1
14989#endif
14990#ifndef RTLD_GLOBAL
14991#define RTLD_GLOBAL 0
14992#endif
14993
14994main()
14995{
14996    void *handle;
14997    int (*barneysym)();
14998    handle = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
14999    if(!handle) exit(1);
15000    barneysym = (int (*)()) dlsym(handle, "${us}barney");
15001    if(!barneysym) exit(1);
15002    exit((*barneysym)() != 69);
15003}
15004
15005int fred () { return 42; }
15006
15007_ACEOF
15008if ac_fn_c_try_run "$LINENO"
15009then :
15010  zsh_cv_sys_dynamic_execsyms=yes
15011else $as_nop
15012  zsh_cv_sys_dynamic_execsyms=no
15013fi
15014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15015  conftest.$ac_objext conftest.beam conftest.$ac_ext
15016fi
15017
15018    LDFLAGS=$save_ldflags
15019else
15020    zsh_cv_sys_dynamic_execsyms=no
15021fi
15022
15023fi
15024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_dynamic_execsyms" >&5
15025printf "%s\n" "$zsh_cv_sys_dynamic_execsyms" >&6; }
15026
15027  if test "$zsh_cv_sys_dynamic_execsyms" != yes; then
15028    L=L
15029  fi
15030
15031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether executables can be stripped" >&5
15032printf %s "checking whether executables can be stripped... " >&6; }
15033if test ${zsh_cv_sys_dynamic_strip_exe+y}
15034then :
15035  printf %s "(cached) " >&6
15036else $as_nop
15037  if test "$zsh_cv_sys_dynamic_execsyms" != yes; then
15038    zsh_cv_sys_dynamic_strip_exe=yes
15039elif
15040    if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
15041	us=_
15042    else
15043	us=
15044    fi
15045    echo 'extern int fred(); int barney() { return fred() + 27; }' > conftest1.c
15046    { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
15047  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15048  (eval $ac_try) 2>&5
15049  ac_status=$?
15050  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15051  test $ac_status = 0; }; } &&
15052    { ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS 1>&5'
15053  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15054  (eval $ac_try) 2>&5
15055  ac_status=$?
15056  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15057  test $ac_status = 0; }; }; then
15058    save_ldflags=$LDFLAGS
15059    LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS -s"
15060    if test "$cross_compiling" = yes
15061then :
15062  zsh_cv_sys_dynamic_strip_exe=no
15063
15064else $as_nop
15065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066/* end confdefs.h.  */
15067
15068#include <stdlib.h>
15069#ifdef HPUX10DYNAMIC
15070#include <dl.h>
15071#define RTLD_LAZY BIND_DEFERRED
15072#define RTLD_GLOBAL DYNAMIC_PATH
15073
15074char *zsh_gl_sym_addr ;
15075
15076#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
15077#define dlclose(handle) shl_unload((shl_t)(handle))
15078#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)
15079#define dlerror() 0
15080#else
15081#ifdef HAVE_DLFCN_H
15082#include <dlfcn.h>
15083#else
15084#include <sys/types.h>
15085#include <nlist.h>
15086#include <link.h>
15087#endif
15088#endif
15089#ifndef RTLD_LAZY
15090#define RTLD_LAZY 1
15091#endif
15092#ifndef RTLD_GLOBAL
15093#define RTLD_GLOBAL 0
15094#endif
15095
15096main()
15097{
15098    void *handle;
15099    int (*barneysym)();
15100    handle = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
15101    if(!handle) exit(1);
15102    barneysym = (int (*)()) dlsym(handle, "${us}barney");
15103    if(!barneysym) exit(1);
15104    exit((*barneysym)() != 69);
15105}
15106
15107int fred () { return 42; }
15108
15109_ACEOF
15110if ac_fn_c_try_run "$LINENO"
15111then :
15112  zsh_cv_sys_dynamic_strip_exe=yes
15113else $as_nop
15114  zsh_cv_sys_dynamic_strip_exe=no
15115fi
15116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15117  conftest.$ac_objext conftest.beam conftest.$ac_ext
15118fi
15119
15120    LDFLAGS=$save_ldflags
15121else
15122    zsh_cv_sys_dynamic_strip_exe=no
15123fi
15124
15125fi
15126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_dynamic_strip_exe" >&5
15127printf "%s\n" "$zsh_cv_sys_dynamic_strip_exe" >&6; }
15128
15129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libraries can be stripped" >&5
15130printf %s "checking whether libraries can be stripped... " >&6; }
15131if test ${zsh_cv_sys_dynamic_strip_lib+y}
15132then :
15133  printf %s "(cached) " >&6
15134else $as_nop
15135  if test "$zsh_cv_func_dlsym_needs_underscore" = yes; then
15136    us=_
15137else
15138    us=
15139fi
15140echo 'int fred () { return 42; }' > conftest1.c
15141if { ac_try='$CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&5'
15142  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15143  (eval $ac_try) 2>&5
15144  ac_status=$?
15145  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15146  test $ac_status = 0; }; } &&
15147{ ac_try='$DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS -s conftest1.o $LIBS 1>&5'
15148  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15149  (eval $ac_try) 2>&5
15150  ac_status=$?
15151  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15152  test $ac_status = 0; }; }; then
15153    if test "$cross_compiling" = yes
15154then :
15155  zsh_cv_sys_dynamic_strip_lib=no
15156
15157else $as_nop
15158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159/* end confdefs.h.  */
15160
15161#include <stdlib.h>
15162#ifdef HPUX10DYNAMIC
15163#include <dl.h>
15164#define RTLD_LAZY BIND_DEFERRED
15165#define RTLD_GLOBAL DYNAMIC_PATH
15166
15167char *zsh_gl_sym_addr ;
15168
15169#define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0)
15170#define dlclose(handle) shl_unload((shl_t)(handle))
15171#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)
15172#define dlerror() 0
15173#else
15174#ifdef HAVE_DLFCN_H
15175#include <dlfcn.h>
15176#else
15177#include <sys/types.h>
15178#include <nlist.h>
15179#include <link.h>
15180#endif
15181#endif
15182#ifndef RTLD_LAZY
15183#define RTLD_LAZY 1
15184#endif
15185#ifndef RTLD_GLOBAL
15186#define RTLD_GLOBAL 0
15187#endif
15188
15189main()
15190{
15191    void *handle;
15192    int (*fredsym)();
15193    handle = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
15194    if(!handle) exit(1);
15195    fredsym = (int (*)()) dlsym(handle, "${us}fred");
15196    if(!fredsym) exit(1);
15197    exit((*fredsym)() != 42);
15198}
15199
15200_ACEOF
15201if ac_fn_c_try_run "$LINENO"
15202then :
15203  zsh_cv_sys_dynamic_strip_lib=yes
15204else $as_nop
15205  zsh_cv_sys_dynamic_strip_lib=no
15206fi
15207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15208  conftest.$ac_objext conftest.beam conftest.$ac_ext
15209fi
15210
15211else
15212    zsh_cv_sys_dynamic_strip_lib=no
15213fi
15214
15215fi
15216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $zsh_cv_sys_dynamic_strip_lib" >&5
15217printf "%s\n" "$zsh_cv_sys_dynamic_strip_lib" >&6; }
15218
15219  if $strip_exeldflags && test "$zsh_cv_sys_dynamic_strip_exe" = yes; then
15220    EXELDFLAGS="$EXELDFLAGS -s"
15221  fi
15222  if $strip_libldflags && test "$zsh_cv_sys_dynamic_strip_lib" = yes; then
15223    LIBLDFLAGS="$LIBLDFLAGS -s"
15224  fi
15225  if test "$host_os" = cygwin; then
15226    INSTLIB="install.cygwin-lib"
15227    UNINSTLIB="uninstall.cygwin-lib"
15228  fi
15229else
15230  $strip_exeldflags && EXELDFLAGS="$EXELDFLAGS -s"
15231  $strip_libldflags && LIBLDFLAGS="$LIBLDFLAGS -s"
15232  RTLD_GLOBAL_OK=no
15233fi
15234
15235
15236if test "x$dynamic" = xyes; then
15237  D=D
15238  printf "%s\n" "#define DYNAMIC 1" >>confdefs.h
15239else
15240  D=N
15241fi
15242
15243
15244if test "x$aixdynamic" = xyes; then
15245  E=E
15246  printf "%s\n" "#define AIXDYNAMIC 1" >>confdefs.h
15247else
15248  E=N
15249fi
15250
15251if test "x$zsh_cv_sys_dynamic_clash_ok" = xyes; then
15252  SHORTBOOTNAMES=yes
15253else
15254  SHORTBOOTNAMES=no
15255fi
15256
15257
15258
15259if test "$host_os" = cygwin; then
15260  EXTRAZSHOBJS="$EXTRAZSHOBJS zsh.res.o"
15261fi
15262
15263
15264printf "%s\n" "#define DL_EXT \"$DL_EXT\"" >>confdefs.h
15265
15266# Generate config.modules.  We look for *.mdd files in first and second
15267# level subdirectories.  Any existing line not containing 'auto=y' will be
15268# retained, provided the .mdd file itself was found.
15269CONFIG_MODULES=./config.modules
15270cat <<EOM > ${CONFIG_MODULES}.sh
15271srcdir="$srcdir"
15272dynamic="$dynamic"
15273CONFIG_MODULES="${CONFIG_MODULES}"
15274EOM
15275cat <<\EOM >> ${CONFIG_MODULES}.sh
15276echo "creating ${CONFIG_MODULES}"
15277userlist=" "
15278if test -f ${CONFIG_MODULES}; then
15279  userlist="`sed -e '/^#/d' -e '/auto=y/d' -e 's/ .*/ /' -e 's/^name=/ /' \
15280        ${CONFIG_MODULES}`"
15281  mv ${CONFIG_MODULES} ${CONFIG_MODULES}.old
15282else
15283  # Save testing for existence each time.
15284  echo > ${CONFIG_MODULES}.old
15285fi
15286(echo "# Edit this file to change the way modules are loaded."
15287echo "# The format is strict; do not break lines or add extra spaces."
15288echo "# Run \`make prep' if you change anything here after compiling"
15289echo "# (there is no need if you change this just after the first time"
15290echo "# you run \`configure')."
15291echo "#"
15292echo "# Values of \`link' are \`static', \`dynamic' or \`no' to compile the"
15293echo "# module into the shell, link it in at run time, or not use it at all."
15294echo "# In the final case, no attempt will be made to compile it."
15295echo "# Use \`static' or \`no' if you do not have dynamic loading."
15296echo "#"
15297echo "# Values of \`load' are \`yes' or \`no'; if yes, any builtins etc."
15298echo "# provided by the module will be autoloaded by the main shell"
15299echo "# (so long as \`link' is not set to \`no')."
15300echo "#"
15301echo "# Values of \`auto' are \`yes' or \`no'. configure sets the value to"
15302echo "# \`yes'.  If you set it by hand to \`no', the line will be retained"
15303echo "# when the file is regenerated in future."
15304echo "#"
15305echo "# Note that the \`functions' entry extends to the end of the line."
15306echo "# It should not be quoted; it is used verbatim to find files to install."
15307echo "#"
15308echo "# You will need to run \`config.status --recheck' if you add a new"
15309echo "# module."
15310echo "#"
15311echo "# You should not change the values for the pseudo-module zsh/main,"
15312echo "# which is the main shell (apart from the functions entry)."
15313EOM
15314for modfile in `cd ${srcdir}; echo */*.mdd */*/*.mdd`; do
15315  name=
15316  link=
15317  load=
15318  functions=
15319  result=
15320  . ${srcdir}/$modfile
15321  if test x$name != x && test x"$link" != x; then
15322    case "$link" in
15323      *\ *) eval "link=\`$link\`"
15324	    ;;
15325    esac
15326    case "${load}" in
15327      y*) load=" load=yes"
15328	  ;;
15329      *) load=" load=no"
15330	 ;;
15331    esac
15332    if test "x$functions" != x; then
15333      # N.B. no additional quotes
15334      f=" functions=$functions"
15335    else
15336      f=
15337    fi
15338    case "$link" in
15339      static) result="name=$name modfile=$modfile link=static auto=yes${load}$f"
15340	      ;;
15341      dynamic) if test x$dynamic != xno; then
15342		  result="name=$name modfile=$modfile link=dynamic\
15343 auto=yes${load}$f"
15344	       else
15345		 result="name=$name modfile=$modfile link=no\
15346 auto=yes load=no$f"
15347	       fi
15348	       ;;
15349      either) if test x$dynamic != xno; then
15350		result="name=$name modfile=$modfile link=dynamic\
15351 auto=yes${load}$f"
15352	      else
15353		result="name=$name modfile=$modfile link=static\
15354 auto=yes${load}$f"
15355	      fi
15356	      ;;
15357       *) result="name=$name modfile=$modfile link=no auto=yes load=no$f"
15358	  ;;
15359    esac
15360cat <<EOM >> ${CONFIG_MODULES}.sh
15361case "\$userlist" in
15362  *" $name "*) grep "^name=$name " \${CONFIG_MODULES}.old;;
15363  *) echo "$result";;
15364esac
15365EOM
15366  fi
15367done
15368cat <<\EOM >> ${CONFIG_MODULES}.sh
15369) >${CONFIG_MODULES}
15370rm -f ${CONFIG_MODULES}.old
15371EOM
15372
15373
15374
15375CLEAN_MK="${srcdir}/Config/clean.mk"
15376CONFIG_MK="${srcdir}/Config/config.mk"
15377DEFS_MK="Config/defs.mk"
15378VERSION_MK="${srcdir}/Config/version.mk"
15379
15380
15381ac_config_files="$ac_config_files Config/defs.mk Makefile Doc/Makefile Etc/Makefile Src/Makefile Test/Makefile"
15382
15383ac_config_commands="$ac_config_commands config.modules"
15384
15385ac_config_commands="$ac_config_commands stamp-h"
15386
15387
15388cat >confcache <<\_ACEOF
15389# This file is a shell script that caches the results of configure
15390# tests run on this system so they can be shared between configure
15391# scripts and configure runs, see configure's option --config-cache.
15392# It is not useful on other systems.  If it contains results you don't
15393# want to keep, you may remove or edit it.
15394#
15395# config.status only pays attention to the cache file if you give it
15396# the --recheck option to rerun configure.
15397#
15398# `ac_cv_env_foo' variables (set or unset) will be overridden when
15399# loading this file, other *unset* `ac_cv_foo' will be assigned the
15400# following values.
15401
15402_ACEOF
15403
15404# The following way of writing the cache mishandles newlines in values,
15405# but we know of no workaround that is simple, portable, and efficient.
15406# So, we kill variables containing newlines.
15407# Ultrix sh set writes to stderr and can't be redirected directly,
15408# and sets the high bit in the cache file unless we assign to the vars.
15409(
15410  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15411    eval ac_val=\$$ac_var
15412    case $ac_val in #(
15413    *${as_nl}*)
15414      case $ac_var in #(
15415      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15416printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15417      esac
15418      case $ac_var in #(
15419      _ | IFS | as_nl) ;; #(
15420      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15421      *) { eval $ac_var=; unset $ac_var;} ;;
15422      esac ;;
15423    esac
15424  done
15425
15426  (set) 2>&1 |
15427    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15428    *${as_nl}ac_space=\ *)
15429      # `set' does not quote correctly, so add quotes: double-quote
15430      # substitution turns \\\\ into \\, and sed turns \\ into \.
15431      sed -n \
15432	"s/'/'\\\\''/g;
15433	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15434      ;; #(
15435    *)
15436      # `set' quotes correctly as required by POSIX, so do not add quotes.
15437      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15438      ;;
15439    esac |
15440    sort
15441) |
15442  sed '
15443     /^ac_cv_env_/b end
15444     t clear
15445     :clear
15446     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15447     t end
15448     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15449     :end' >>confcache
15450if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15451  if test -w "$cache_file"; then
15452    if test "x$cache_file" != "x/dev/null"; then
15453      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15454printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15455      if test ! -f "$cache_file" || test -h "$cache_file"; then
15456	cat confcache >"$cache_file"
15457      else
15458        case $cache_file in #(
15459        */* | ?:*)
15460	  mv -f confcache "$cache_file"$$ &&
15461	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15462        *)
15463	  mv -f confcache "$cache_file" ;;
15464	esac
15465      fi
15466    fi
15467  else
15468    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15469printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15470  fi
15471fi
15472rm -f confcache
15473
15474test "x$prefix" = xNONE && prefix=$ac_default_prefix
15475# Let make expand exec_prefix.
15476test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15477
15478DEFS=-DHAVE_CONFIG_H
15479
15480ac_libobjs=
15481ac_ltlibobjs=
15482U=
15483for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15484  # 1. Remove the extension, and $U if already installed.
15485  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15486  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15487  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15488  #    will be set to the directory where LIBOBJS objects are built.
15489  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15490  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15491done
15492LIBOBJS=$ac_libobjs
15493
15494LTLIBOBJS=$ac_ltlibobjs
15495
15496
15497
15498: "${CONFIG_STATUS=./config.status}"
15499ac_write_fail=0
15500ac_clean_files_save=$ac_clean_files
15501ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15503printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15504as_write_fail=0
15505cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15506#! $SHELL
15507# Generated by $as_me.
15508# Run this file to recreate the current configuration.
15509# Compiler output produced by configure, useful for debugging
15510# configure, is in config.log if it exists.
15511
15512debug=false
15513ac_cs_recheck=false
15514ac_cs_silent=false
15515
15516SHELL=\${CONFIG_SHELL-$SHELL}
15517export SHELL
15518_ASEOF
15519cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15520## -------------------- ##
15521## M4sh Initialization. ##
15522## -------------------- ##
15523
15524# Be more Bourne compatible
15525DUALCASE=1; export DUALCASE # for MKS sh
15526as_nop=:
15527if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15528then :
15529  emulate sh
15530  NULLCMD=:
15531  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15532  # is contrary to our usage.  Disable this feature.
15533  alias -g '${1+"$@"}'='"$@"'
15534  setopt NO_GLOB_SUBST
15535else $as_nop
15536  case `(set -o) 2>/dev/null` in #(
15537  *posix*) :
15538    set -o posix ;; #(
15539  *) :
15540     ;;
15541esac
15542fi
15543
15544
15545
15546# Reset variables that may have inherited troublesome values from
15547# the environment.
15548
15549# IFS needs to be set, to space, tab, and newline, in precisely that order.
15550# (If _AS_PATH_WALK were called with IFS unset, it would have the
15551# side effect of setting IFS to empty, thus disabling word splitting.)
15552# Quoting is to prevent editors from complaining about space-tab.
15553as_nl='
15554'
15555export as_nl
15556IFS=" ""	$as_nl"
15557
15558PS1='$ '
15559PS2='> '
15560PS4='+ '
15561
15562# Ensure predictable behavior from utilities with locale-dependent output.
15563LC_ALL=C
15564export LC_ALL
15565LANGUAGE=C
15566export LANGUAGE
15567
15568# We cannot yet rely on "unset" to work, but we need these variables
15569# to be unset--not just set to an empty or harmless value--now, to
15570# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
15571# also avoids known problems related to "unset" and subshell syntax
15572# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15573for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15574do eval test \${$as_var+y} \
15575  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15576done
15577
15578# Ensure that fds 0, 1, and 2 are open.
15579if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15580if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15581if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
15582
15583# The user is always right.
15584if ${PATH_SEPARATOR+false} :; then
15585  PATH_SEPARATOR=:
15586  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15587    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15588      PATH_SEPARATOR=';'
15589  }
15590fi
15591
15592
15593# Find who we are.  Look in the path if we contain no directory separator.
15594as_myself=
15595case $0 in #((
15596  *[\\/]* ) as_myself=$0 ;;
15597  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15598for as_dir in $PATH
15599do
15600  IFS=$as_save_IFS
15601  case $as_dir in #(((
15602    '') as_dir=./ ;;
15603    */) ;;
15604    *) as_dir=$as_dir/ ;;
15605  esac
15606    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15607  done
15608IFS=$as_save_IFS
15609
15610     ;;
15611esac
15612# We did not find ourselves, most probably we were run as `sh COMMAND'
15613# in which case we are not to be found in the path.
15614if test "x$as_myself" = x; then
15615  as_myself=$0
15616fi
15617if test ! -f "$as_myself"; then
15618  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15619  exit 1
15620fi
15621
15622
15623
15624# as_fn_error STATUS ERROR [LINENO LOG_FD]
15625# ----------------------------------------
15626# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15627# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15628# script with STATUS, using 1 if that was 0.
15629as_fn_error ()
15630{
15631  as_status=$1; test $as_status -eq 0 && as_status=1
15632  if test "$4"; then
15633    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15634    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15635  fi
15636  printf "%s\n" "$as_me: error: $2" >&2
15637  as_fn_exit $as_status
15638} # as_fn_error
15639
15640
15641
15642# as_fn_set_status STATUS
15643# -----------------------
15644# Set $? to STATUS, without forking.
15645as_fn_set_status ()
15646{
15647  return $1
15648} # as_fn_set_status
15649
15650# as_fn_exit STATUS
15651# -----------------
15652# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15653as_fn_exit ()
15654{
15655  set +e
15656  as_fn_set_status $1
15657  exit $1
15658} # as_fn_exit
15659
15660# as_fn_unset VAR
15661# ---------------
15662# Portably unset VAR.
15663as_fn_unset ()
15664{
15665  { eval $1=; unset $1;}
15666}
15667as_unset=as_fn_unset
15668
15669# as_fn_append VAR VALUE
15670# ----------------------
15671# Append the text in VALUE to the end of the definition contained in VAR. Take
15672# advantage of any shell optimizations that allow amortized linear growth over
15673# repeated appends, instead of the typical quadratic growth present in naive
15674# implementations.
15675if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15676then :
15677  eval 'as_fn_append ()
15678  {
15679    eval $1+=\$2
15680  }'
15681else $as_nop
15682  as_fn_append ()
15683  {
15684    eval $1=\$$1\$2
15685  }
15686fi # as_fn_append
15687
15688# as_fn_arith ARG...
15689# ------------------
15690# Perform arithmetic evaluation on the ARGs, and store the result in the
15691# global $as_val. Take advantage of shells that can avoid forks. The arguments
15692# must be portable across $(()) and expr.
15693if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15694then :
15695  eval 'as_fn_arith ()
15696  {
15697    as_val=$(( $* ))
15698  }'
15699else $as_nop
15700  as_fn_arith ()
15701  {
15702    as_val=`expr "$@" || test $? -eq 1`
15703  }
15704fi # as_fn_arith
15705
15706
15707if expr a : '\(a\)' >/dev/null 2>&1 &&
15708   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15709  as_expr=expr
15710else
15711  as_expr=false
15712fi
15713
15714if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15715  as_basename=basename
15716else
15717  as_basename=false
15718fi
15719
15720if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15721  as_dirname=dirname
15722else
15723  as_dirname=false
15724fi
15725
15726as_me=`$as_basename -- "$0" ||
15727$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15728	 X"$0" : 'X\(//\)$' \| \
15729	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15730printf "%s\n" X/"$0" |
15731    sed '/^.*\/\([^/][^/]*\)\/*$/{
15732	    s//\1/
15733	    q
15734	  }
15735	  /^X\/\(\/\/\)$/{
15736	    s//\1/
15737	    q
15738	  }
15739	  /^X\/\(\/\).*/{
15740	    s//\1/
15741	    q
15742	  }
15743	  s/.*/./; q'`
15744
15745# Avoid depending upon Character Ranges.
15746as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15747as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15748as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15749as_cr_digits='0123456789'
15750as_cr_alnum=$as_cr_Letters$as_cr_digits
15751
15752
15753# Determine whether it's possible to make 'echo' print without a newline.
15754# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15755# for compatibility with existing Makefiles.
15756ECHO_C= ECHO_N= ECHO_T=
15757case `echo -n x` in #(((((
15758-n*)
15759  case `echo 'xy\c'` in
15760  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15761  xy)  ECHO_C='\c';;
15762  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15763       ECHO_T='	';;
15764  esac;;
15765*)
15766  ECHO_N='-n';;
15767esac
15768
15769# For backward compatibility with old third-party macros, we provide
15770# the shell variables $as_echo and $as_echo_n.  New code should use
15771# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15772as_echo='printf %s\n'
15773as_echo_n='printf %s'
15774
15775rm -f conf$$ conf$$.exe conf$$.file
15776if test -d conf$$.dir; then
15777  rm -f conf$$.dir/conf$$.file
15778else
15779  rm -f conf$$.dir
15780  mkdir conf$$.dir 2>/dev/null
15781fi
15782if (echo >conf$$.file) 2>/dev/null; then
15783  if ln -s conf$$.file conf$$ 2>/dev/null; then
15784    as_ln_s='ln -s'
15785    # ... but there are two gotchas:
15786    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15787    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15788    # In both cases, we have to default to `cp -pR'.
15789    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15790      as_ln_s='cp -pR'
15791  elif ln conf$$.file conf$$ 2>/dev/null; then
15792    as_ln_s=ln
15793  else
15794    as_ln_s='cp -pR'
15795  fi
15796else
15797  as_ln_s='cp -pR'
15798fi
15799rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15800rmdir conf$$.dir 2>/dev/null
15801
15802
15803# as_fn_mkdir_p
15804# -------------
15805# Create "$as_dir" as a directory, including parents if necessary.
15806as_fn_mkdir_p ()
15807{
15808
15809  case $as_dir in #(
15810  -*) as_dir=./$as_dir;;
15811  esac
15812  test -d "$as_dir" || eval $as_mkdir_p || {
15813    as_dirs=
15814    while :; do
15815      case $as_dir in #(
15816      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15817      *) as_qdir=$as_dir;;
15818      esac
15819      as_dirs="'$as_qdir' $as_dirs"
15820      as_dir=`$as_dirname -- "$as_dir" ||
15821$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15822	 X"$as_dir" : 'X\(//\)[^/]' \| \
15823	 X"$as_dir" : 'X\(//\)$' \| \
15824	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15825printf "%s\n" X"$as_dir" |
15826    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15827	    s//\1/
15828	    q
15829	  }
15830	  /^X\(\/\/\)[^/].*/{
15831	    s//\1/
15832	    q
15833	  }
15834	  /^X\(\/\/\)$/{
15835	    s//\1/
15836	    q
15837	  }
15838	  /^X\(\/\).*/{
15839	    s//\1/
15840	    q
15841	  }
15842	  s/.*/./; q'`
15843      test -d "$as_dir" && break
15844    done
15845    test -z "$as_dirs" || eval "mkdir $as_dirs"
15846  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15847
15848
15849} # as_fn_mkdir_p
15850if mkdir -p . 2>/dev/null; then
15851  as_mkdir_p='mkdir -p "$as_dir"'
15852else
15853  test -d ./-p && rmdir ./-p
15854  as_mkdir_p=false
15855fi
15856
15857
15858# as_fn_executable_p FILE
15859# -----------------------
15860# Test if FILE is an executable regular file.
15861as_fn_executable_p ()
15862{
15863  test -f "$1" && test -x "$1"
15864} # as_fn_executable_p
15865as_test_x='test -x'
15866as_executable_p=as_fn_executable_p
15867
15868# Sed expression to map a string onto a valid CPP name.
15869as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15870
15871# Sed expression to map a string onto a valid variable name.
15872as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15873
15874
15875exec 6>&1
15876## ----------------------------------- ##
15877## Main body of $CONFIG_STATUS script. ##
15878## ----------------------------------- ##
15879_ASEOF
15880test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15881
15882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15883# Save the log message, to keep $0 and so on meaningful, and to
15884# report actual input values of CONFIG_FILES etc. instead of their
15885# values after options handling.
15886ac_log="
15887This file was extended by $as_me, which was
15888generated by GNU Autoconf 2.71.  Invocation command line was
15889
15890  CONFIG_FILES    = $CONFIG_FILES
15891  CONFIG_HEADERS  = $CONFIG_HEADERS
15892  CONFIG_LINKS    = $CONFIG_LINKS
15893  CONFIG_COMMANDS = $CONFIG_COMMANDS
15894  $ $0 $@
15895
15896on `(hostname || uname -n) 2>/dev/null | sed 1q`
15897"
15898
15899_ACEOF
15900
15901case $ac_config_files in *"
15902"*) set x $ac_config_files; shift; ac_config_files=$*;;
15903esac
15904
15905case $ac_config_headers in *"
15906"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15907esac
15908
15909
15910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15911# Files that config.status was made for.
15912config_files="$ac_config_files"
15913config_headers="$ac_config_headers"
15914config_commands="$ac_config_commands"
15915
15916_ACEOF
15917
15918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15919ac_cs_usage="\
15920\`$as_me' instantiates files and other configuration actions
15921from templates according to the current configuration.  Unless the files
15922and actions are specified as TAGs, all are instantiated by default.
15923
15924Usage: $0 [OPTION]... [TAG]...
15925
15926  -h, --help       print this help, then exit
15927  -V, --version    print version number and configuration settings, then exit
15928      --config     print configuration, then exit
15929  -q, --quiet, --silent
15930                   do not print progress messages
15931  -d, --debug      don't remove temporary files
15932      --recheck    update $as_me by reconfiguring in the same conditions
15933      --file=FILE[:TEMPLATE]
15934                   instantiate the configuration file FILE
15935      --header=FILE[:TEMPLATE]
15936                   instantiate the configuration header FILE
15937
15938Configuration files:
15939$config_files
15940
15941Configuration headers:
15942$config_headers
15943
15944Configuration commands:
15945$config_commands
15946
15947Report bugs to the package provider."
15948
15949_ACEOF
15950ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15951ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15953ac_cs_config='$ac_cs_config_escaped'
15954ac_cs_version="\\
15955config.status
15956configured by $0, generated by GNU Autoconf 2.71,
15957  with options \\"\$ac_cs_config\\"
15958
15959Copyright (C) 2021 Free Software Foundation, Inc.
15960This config.status script is free software; the Free Software Foundation
15961gives unlimited permission to copy, distribute and modify it."
15962
15963ac_pwd='$ac_pwd'
15964srcdir='$srcdir'
15965INSTALL='$INSTALL'
15966AWK='$AWK'
15967test -n "\$AWK" || AWK=awk
15968_ACEOF
15969
15970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15971# The default lists apply if the user does not specify any file.
15972ac_need_defaults=:
15973while test $# != 0
15974do
15975  case $1 in
15976  --*=?*)
15977    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15978    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15979    ac_shift=:
15980    ;;
15981  --*=)
15982    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15983    ac_optarg=
15984    ac_shift=:
15985    ;;
15986  *)
15987    ac_option=$1
15988    ac_optarg=$2
15989    ac_shift=shift
15990    ;;
15991  esac
15992
15993  case $ac_option in
15994  # Handling of the options.
15995  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15996    ac_cs_recheck=: ;;
15997  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15998    printf "%s\n" "$ac_cs_version"; exit ;;
15999  --config | --confi | --conf | --con | --co | --c )
16000    printf "%s\n" "$ac_cs_config"; exit ;;
16001  --debug | --debu | --deb | --de | --d | -d )
16002    debug=: ;;
16003  --file | --fil | --fi | --f )
16004    $ac_shift
16005    case $ac_optarg in
16006    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16007    '') as_fn_error $? "missing file argument" ;;
16008    esac
16009    as_fn_append CONFIG_FILES " '$ac_optarg'"
16010    ac_need_defaults=false;;
16011  --header | --heade | --head | --hea )
16012    $ac_shift
16013    case $ac_optarg in
16014    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16015    esac
16016    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16017    ac_need_defaults=false;;
16018  --he | --h)
16019    # Conflict between --help and --header
16020    as_fn_error $? "ambiguous option: \`$1'
16021Try \`$0 --help' for more information.";;
16022  --help | --hel | -h )
16023    printf "%s\n" "$ac_cs_usage"; exit ;;
16024  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16025  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16026    ac_cs_silent=: ;;
16027
16028  # This is an error.
16029  -*) as_fn_error $? "unrecognized option: \`$1'
16030Try \`$0 --help' for more information." ;;
16031
16032  *) as_fn_append ac_config_targets " $1"
16033     ac_need_defaults=false ;;
16034
16035  esac
16036  shift
16037done
16038
16039ac_configure_extra_args=
16040
16041if $ac_cs_silent; then
16042  exec 6>/dev/null
16043  ac_configure_extra_args="$ac_configure_extra_args --silent"
16044fi
16045
16046_ACEOF
16047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16048if \$ac_cs_recheck; then
16049  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16050  shift
16051  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16052  CONFIG_SHELL='$SHELL'
16053  export CONFIG_SHELL
16054  exec "\$@"
16055fi
16056
16057_ACEOF
16058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16059exec 5>>config.log
16060{
16061  echo
16062  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16063## Running $as_me. ##
16064_ASBOX
16065  printf "%s\n" "$ac_log"
16066} >&5
16067
16068_ACEOF
16069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16070_ACEOF
16071
16072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16073
16074# Handling of arguments.
16075for ac_config_target in $ac_config_targets
16076do
16077  case $ac_config_target in
16078    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16079    "Config/defs.mk") CONFIG_FILES="$CONFIG_FILES Config/defs.mk" ;;
16080    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16081    "Doc/Makefile") CONFIG_FILES="$CONFIG_FILES Doc/Makefile" ;;
16082    "Etc/Makefile") CONFIG_FILES="$CONFIG_FILES Etc/Makefile" ;;
16083    "Src/Makefile") CONFIG_FILES="$CONFIG_FILES Src/Makefile" ;;
16084    "Test/Makefile") CONFIG_FILES="$CONFIG_FILES Test/Makefile" ;;
16085    "config.modules") CONFIG_COMMANDS="$CONFIG_COMMANDS config.modules" ;;
16086    "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
16087
16088  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16089  esac
16090done
16091
16092
16093# If the user did not use the arguments to specify the items to instantiate,
16094# then the envvar interface is used.  Set only those that are not.
16095# We use the long form for the default assignment because of an extremely
16096# bizarre bug on SunOS 4.1.3.
16097if $ac_need_defaults; then
16098  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16099  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16100  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16101fi
16102
16103# Have a temporary directory for convenience.  Make it in the build tree
16104# simply because there is no reason against having it here, and in addition,
16105# creating and moving files from /tmp can sometimes cause problems.
16106# Hook for its removal unless debugging.
16107# Note that there is a small window in which the directory will not be cleaned:
16108# after its creation but before its name has been assigned to `$tmp'.
16109$debug ||
16110{
16111  tmp= ac_tmp=
16112  trap 'exit_status=$?
16113  : "${ac_tmp:=$tmp}"
16114  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16115' 0
16116  trap 'as_fn_exit 1' 1 2 13 15
16117}
16118# Create a (secure) tmp directory for tmp files.
16119
16120{
16121  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16122  test -d "$tmp"
16123}  ||
16124{
16125  tmp=./conf$$-$RANDOM
16126  (umask 077 && mkdir "$tmp")
16127} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16128ac_tmp=$tmp
16129
16130# Set up the scripts for CONFIG_FILES section.
16131# No need to generate them if there are no CONFIG_FILES.
16132# This happens for instance with `./config.status config.h'.
16133if test -n "$CONFIG_FILES"; then
16134
16135if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16136  ac_cs_awk_getline=:
16137  ac_cs_awk_pipe_init=
16138  ac_cs_awk_read_file='
16139      while ((getline aline < (F[key])) > 0)
16140	print(aline)
16141      close(F[key])'
16142  ac_cs_awk_pipe_fini=
16143else
16144  ac_cs_awk_getline=false
16145  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16146  ac_cs_awk_read_file='
16147      print "|#_!!_#|"
16148      print "cat " F[key] " &&"
16149      '$ac_cs_awk_pipe_init
16150  # The final `:' finishes the AND list.
16151  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16152fi
16153ac_cr=`echo X | tr X '\015'`
16154# On cygwin, bash can eat \r inside `` if the user requested igncr.
16155# But we know of no other shell where ac_cr would be empty at this
16156# point, so we can use a bashism as a fallback.
16157if test "x$ac_cr" = x; then
16158  eval ac_cr=\$\'\\r\'
16159fi
16160ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16161if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16162  ac_cs_awk_cr='\\r'
16163else
16164  ac_cs_awk_cr=$ac_cr
16165fi
16166
16167echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16168_ACEOF
16169
16170# Create commands to substitute file output variables.
16171{
16172  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16173  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16174  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16175  echo "_ACAWK" &&
16176  echo "_ACEOF"
16177} >conf$$files.sh &&
16178. ./conf$$files.sh ||
16179  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16180rm -f conf$$files.sh
16181
16182{
16183  echo "cat >conf$$subs.awk <<_ACEOF" &&
16184  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16185  echo "_ACEOF"
16186} >conf$$subs.sh ||
16187  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16188ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16189ac_delim='%!_!# '
16190for ac_last_try in false false false false false :; do
16191  . ./conf$$subs.sh ||
16192    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16193
16194  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16195  if test $ac_delim_n = $ac_delim_num; then
16196    break
16197  elif $ac_last_try; then
16198    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16199  else
16200    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16201  fi
16202done
16203rm -f conf$$subs.sh
16204
16205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16206cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16207_ACEOF
16208sed -n '
16209h
16210s/^/S["/; s/!.*/"]=/
16211p
16212g
16213s/^[^!]*!//
16214:repl
16215t repl
16216s/'"$ac_delim"'$//
16217t delim
16218:nl
16219h
16220s/\(.\{148\}\)..*/\1/
16221t more1
16222s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16223p
16224n
16225b repl
16226:more1
16227s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16228p
16229g
16230s/.\{148\}//
16231t nl
16232:delim
16233h
16234s/\(.\{148\}\)..*/\1/
16235t more2
16236s/["\\]/\\&/g; s/^/"/; s/$/"/
16237p
16238b
16239:more2
16240s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16241p
16242g
16243s/.\{148\}//
16244t delim
16245' <conf$$subs.awk | sed '
16246/^[^""]/{
16247  N
16248  s/\n//
16249}
16250' >>$CONFIG_STATUS || ac_write_fail=1
16251rm -f conf$$subs.awk
16252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16253_ACAWK
16254cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16255  for (key in S) S_is_set[key] = 1
16256  FS = ""
16257  \$ac_cs_awk_pipe_init
16258}
16259{
16260  line = $ 0
16261  nfields = split(line, field, "@")
16262  substed = 0
16263  len = length(field[1])
16264  for (i = 2; i < nfields; i++) {
16265    key = field[i]
16266    keylen = length(key)
16267    if (S_is_set[key]) {
16268      value = S[key]
16269      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16270      len += length(value) + length(field[++i])
16271      substed = 1
16272    } else
16273      len += 1 + keylen
16274  }
16275  if (nfields == 3 && !substed) {
16276    key = field[2]
16277    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
16278      \$ac_cs_awk_read_file
16279      next
16280    }
16281  }
16282  print line
16283}
16284\$ac_cs_awk_pipe_fini
16285_ACAWK
16286_ACEOF
16287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16288if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16289  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16290else
16291  cat
16292fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16293  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16294_ACEOF
16295
16296# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16297# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16298# trailing colons and then remove the whole line if VPATH becomes empty
16299# (actually we leave an empty line to preserve line numbers).
16300if test "x$srcdir" = x.; then
16301  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16302h
16303s///
16304s/^/:/
16305s/[	 ]*$/:/
16306s/:\$(srcdir):/:/g
16307s/:\${srcdir}:/:/g
16308s/:@srcdir@:/:/g
16309s/^:*//
16310s/:*$//
16311x
16312s/\(=[	 ]*\).*/\1/
16313G
16314s/\n//
16315s/^[^=]*=[	 ]*$//
16316}'
16317fi
16318
16319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16320fi # test -n "$CONFIG_FILES"
16321
16322# Set up the scripts for CONFIG_HEADERS section.
16323# No need to generate them if there are no CONFIG_HEADERS.
16324# This happens for instance with `./config.status Makefile'.
16325if test -n "$CONFIG_HEADERS"; then
16326cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16327BEGIN {
16328_ACEOF
16329
16330# Transform confdefs.h into an awk script `defines.awk', embedded as
16331# here-document in config.status, that substitutes the proper values into
16332# config.h.in to produce config.h.
16333
16334# Create a delimiter string that does not exist in confdefs.h, to ease
16335# handling of long lines.
16336ac_delim='%!_!# '
16337for ac_last_try in false false :; do
16338  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16339  if test -z "$ac_tt"; then
16340    break
16341  elif $ac_last_try; then
16342    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16343  else
16344    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16345  fi
16346done
16347
16348# For the awk script, D is an array of macro values keyed by name,
16349# likewise P contains macro parameters if any.  Preserve backslash
16350# newline sequences.
16351
16352ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16353sed -n '
16354s/.\{148\}/&'"$ac_delim"'/g
16355t rset
16356:rset
16357s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16358t def
16359d
16360:def
16361s/\\$//
16362t bsnl
16363s/["\\]/\\&/g
16364s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16365D["\1"]=" \3"/p
16366s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16367d
16368:bsnl
16369s/["\\]/\\&/g
16370s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16371D["\1"]=" \3\\\\\\n"\\/p
16372t cont
16373s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16374t cont
16375d
16376:cont
16377n
16378s/.\{148\}/&'"$ac_delim"'/g
16379t clear
16380:clear
16381s/\\$//
16382t bsnlc
16383s/["\\]/\\&/g; s/^/"/; s/$/"/p
16384d
16385:bsnlc
16386s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16387b cont
16388' <confdefs.h | sed '
16389s/'"$ac_delim"'/"\\\
16390"/g' >>$CONFIG_STATUS || ac_write_fail=1
16391
16392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16393  for (key in D) D_is_set[key] = 1
16394  FS = ""
16395}
16396/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16397  line = \$ 0
16398  split(line, arg, " ")
16399  if (arg[1] == "#") {
16400    defundef = arg[2]
16401    mac1 = arg[3]
16402  } else {
16403    defundef = substr(arg[1], 2)
16404    mac1 = arg[2]
16405  }
16406  split(mac1, mac2, "(") #)
16407  macro = mac2[1]
16408  prefix = substr(line, 1, index(line, defundef) - 1)
16409  if (D_is_set[macro]) {
16410    # Preserve the white space surrounding the "#".
16411    print prefix "define", macro P[macro] D[macro]
16412    next
16413  } else {
16414    # Replace #undef with comments.  This is necessary, for example,
16415    # in the case of _POSIX_SOURCE, which is predefined and required
16416    # on some systems where configure will not decide to define it.
16417    if (defundef == "undef") {
16418      print "/*", prefix defundef, macro, "*/"
16419      next
16420    }
16421  }
16422}
16423{ print }
16424_ACAWK
16425_ACEOF
16426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16427  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16428fi # test -n "$CONFIG_HEADERS"
16429
16430
16431eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16432shift
16433for ac_tag
16434do
16435  case $ac_tag in
16436  :[FHLC]) ac_mode=$ac_tag; continue;;
16437  esac
16438  case $ac_mode$ac_tag in
16439  :[FHL]*:*);;
16440  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16441  :[FH]-) ac_tag=-:-;;
16442  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16443  esac
16444  ac_save_IFS=$IFS
16445  IFS=:
16446  set x $ac_tag
16447  IFS=$ac_save_IFS
16448  shift
16449  ac_file=$1
16450  shift
16451
16452  case $ac_mode in
16453  :L) ac_source=$1;;
16454  :[FH])
16455    ac_file_inputs=
16456    for ac_f
16457    do
16458      case $ac_f in
16459      -) ac_f="$ac_tmp/stdin";;
16460      *) # Look for the file first in the build tree, then in the source tree
16461	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16462	 # because $ac_f cannot contain `:'.
16463	 test -f "$ac_f" ||
16464	   case $ac_f in
16465	   [\\/$]*) false;;
16466	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16467	   esac ||
16468	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16469      esac
16470      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16471      as_fn_append ac_file_inputs " '$ac_f'"
16472    done
16473
16474    # Let's still pretend it is `configure' which instantiates (i.e., don't
16475    # use $as_me), people would be surprised to read:
16476    #    /* config.h.  Generated by config.status.  */
16477    configure_input='Generated from '`
16478	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16479	`' by configure.'
16480    if test x"$ac_file" != x-; then
16481      configure_input="$ac_file.  $configure_input"
16482      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16483printf "%s\n" "$as_me: creating $ac_file" >&6;}
16484    fi
16485    # Neutralize special characters interpreted by sed in replacement strings.
16486    case $configure_input in #(
16487    *\&* | *\|* | *\\* )
16488       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16489       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16490    *) ac_sed_conf_input=$configure_input;;
16491    esac
16492
16493    case $ac_tag in
16494    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16495      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16496    esac
16497    ;;
16498  esac
16499
16500  ac_dir=`$as_dirname -- "$ac_file" ||
16501$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16502	 X"$ac_file" : 'X\(//\)[^/]' \| \
16503	 X"$ac_file" : 'X\(//\)$' \| \
16504	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16505printf "%s\n" X"$ac_file" |
16506    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16507	    s//\1/
16508	    q
16509	  }
16510	  /^X\(\/\/\)[^/].*/{
16511	    s//\1/
16512	    q
16513	  }
16514	  /^X\(\/\/\)$/{
16515	    s//\1/
16516	    q
16517	  }
16518	  /^X\(\/\).*/{
16519	    s//\1/
16520	    q
16521	  }
16522	  s/.*/./; q'`
16523  as_dir="$ac_dir"; as_fn_mkdir_p
16524  ac_builddir=.
16525
16526case "$ac_dir" in
16527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16528*)
16529  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16530  # A ".." for each directory in $ac_dir_suffix.
16531  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16532  case $ac_top_builddir_sub in
16533  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16534  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16535  esac ;;
16536esac
16537ac_abs_top_builddir=$ac_pwd
16538ac_abs_builddir=$ac_pwd$ac_dir_suffix
16539# for backward compatibility:
16540ac_top_builddir=$ac_top_build_prefix
16541
16542case $srcdir in
16543  .)  # We are building in place.
16544    ac_srcdir=.
16545    ac_top_srcdir=$ac_top_builddir_sub
16546    ac_abs_top_srcdir=$ac_pwd ;;
16547  [\\/]* | ?:[\\/]* )  # Absolute name.
16548    ac_srcdir=$srcdir$ac_dir_suffix;
16549    ac_top_srcdir=$srcdir
16550    ac_abs_top_srcdir=$srcdir ;;
16551  *) # Relative name.
16552    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16553    ac_top_srcdir=$ac_top_build_prefix$srcdir
16554    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16555esac
16556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16557
16558
16559  case $ac_mode in
16560  :F)
16561  #
16562  # CONFIG_FILE
16563  #
16564
16565  case $INSTALL in
16566  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16567  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16568  esac
16569_ACEOF
16570
16571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16572# If the template does not know about datarootdir, expand it.
16573# FIXME: This hack should be removed a few years after 2.60.
16574ac_datarootdir_hack=; ac_datarootdir_seen=
16575ac_sed_dataroot='
16576/datarootdir/ {
16577  p
16578  q
16579}
16580/@datadir@/p
16581/@docdir@/p
16582/@infodir@/p
16583/@localedir@/p
16584/@mandir@/p'
16585case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16586*datarootdir*) ac_datarootdir_seen=yes;;
16587*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16589printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16590_ACEOF
16591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16592  ac_datarootdir_hack='
16593  s&@datadir@&$datadir&g
16594  s&@docdir@&$docdir&g
16595  s&@infodir@&$infodir&g
16596  s&@localedir@&$localedir&g
16597  s&@mandir@&$mandir&g
16598  s&\\\${datarootdir}&$datarootdir&g' ;;
16599esac
16600_ACEOF
16601
16602# Neutralize VPATH when `$srcdir' = `.'.
16603# Shell code in configure.ac might set extrasub.
16604# FIXME: do we really want to maintain this feature?
16605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16606ac_sed_extra="$ac_vpsub
16607$extrasub
16608_ACEOF
16609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16610:t
16611/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16612s|@configure_input@|$ac_sed_conf_input|;t t
16613s&@top_builddir@&$ac_top_builddir_sub&;t t
16614s&@top_build_prefix@&$ac_top_build_prefix&;t t
16615s&@srcdir@&$ac_srcdir&;t t
16616s&@abs_srcdir@&$ac_abs_srcdir&;t t
16617s&@top_srcdir@&$ac_top_srcdir&;t t
16618s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16619s&@builddir@&$ac_builddir&;t t
16620s&@abs_builddir@&$ac_abs_builddir&;t t
16621s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16622s&@INSTALL@&$ac_INSTALL&;t t
16623$ac_datarootdir_hack
16624"
16625eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16626if $ac_cs_awk_getline; then
16627  $AWK -f "$ac_tmp/subs.awk"
16628else
16629  $AWK -f "$ac_tmp/subs.awk" | $SHELL
16630fi \
16631  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16632
16633test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16634  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16635  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16636      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16638which seems to be undefined.  Please make sure it is defined" >&5
16639printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16640which seems to be undefined.  Please make sure it is defined" >&2;}
16641
16642  rm -f "$ac_tmp/stdin"
16643  case $ac_file in
16644  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16645  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16646  esac \
16647  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16648 ;;
16649  :H)
16650  #
16651  # CONFIG_HEADER
16652  #
16653  if test x"$ac_file" != x-; then
16654    {
16655      printf "%s\n" "/* $configure_input  */" >&1 \
16656      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16657    } >"$ac_tmp/config.h" \
16658      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16659    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16660      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16661printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16662    else
16663      rm -f "$ac_file"
16664      mv "$ac_tmp/config.h" "$ac_file" \
16665	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16666    fi
16667  else
16668    printf "%s\n" "/* $configure_input  */" >&1 \
16669      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16670      || as_fn_error $? "could not create -" "$LINENO" 5
16671  fi
16672 ;;
16673
16674  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16675printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16676 ;;
16677  esac
16678
16679
16680  case $ac_file$ac_mode in
16681    "config.modules":C) . ./config.modules.sh ;;
16682    "stamp-h":C) echo >stamp-h ;;
16683
16684  esac
16685done # for ac_tag
16686
16687
16688as_fn_exit 0
16689_ACEOF
16690ac_clean_files=$ac_clean_files_save
16691
16692test $ac_write_fail = 0 ||
16693  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16694
16695
16696# configure is writing to config.log, and then calls config.status.
16697# config.status does its own redirection, appending to config.log.
16698# Unfortunately, on DOS this fails, as config.log is still kept open
16699# by configure, so config.status won't be able to write to it; its
16700# output is simply discarded.  So we exec the FD to /dev/null,
16701# effectively closing config.log, so it can be properly (re)opened and
16702# appended to by config.status.  When coming back to configure, we
16703# need to make the FD available again.
16704if test "$no_create" != yes; then
16705  ac_cs_success=:
16706  ac_config_status_args=
16707  test "$silent" = yes &&
16708    ac_config_status_args="$ac_config_status_args --quiet"
16709  exec 5>/dev/null
16710  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16711  exec 5>>config.log
16712  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16713  # would make configure fail if this is the last instruction.
16714  $ac_cs_success || as_fn_exit 1
16715fi
16716if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16718printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16719fi
16720
16721
16722eval "zshbin1=${bindir}"
16723eval "zshbin2=${zshbin1}"
16724eval "zshman1=${mandir}"
16725eval "zshman2=${zshman1}"
16726eval "zshinfo1=${infodir}"
16727eval "zshinfo2=${zshinfo1}"
16728eval "zshfndir1=${fndir}"
16729eval "zshfndir2=${zshfndir1}"
16730
16731echo "
16732zsh configuration
16733-----------------
16734zsh version               : ${VERSION}
16735host operating system     : ${host_cpu}-${host_vendor}-${host_os}
16736source code location      : ${srcdir}
16737compiler                  : ${CC}
16738preprocessor flags        : ${CPPFLAGS}
16739executable compiler flags : ${CFLAGS}"
16740if test "x$dynamic" = xyes; then
16741  echo "\
16742module compiler flags     : ${CFLAGS} ${DLCFLAGS}"
16743fi
16744echo "\
16745executable linker flags   : ${LDFLAGS} ${EXELDFLAGS} ${EXTRA_LDFLAGS}"
16746if test "x$dynamic" = xyes; then
16747  echo "\
16748module linker flags       : ${LDFLAGS} ${LIBLDFLAGS} ${DLLDFLAGS}"
16749fi
16750echo "\
16751library flags             : ${LIBS}
16752installation basename     : ${tzsh_name}
16753binary install path       : ${zshbin2}
16754man page install path     : ${zshman2}
16755info install path         : ${zshinfo2}"
16756if test "$zshfndir2" != no; then
16757  echo "functions install path    : ${zshfndir2}"
16758fi
16759if test "x$additionalfpath" != x; then
16760  echo "additional fpath entries  : ${additionalfpath}"
16761fi
16762echo "See config.modules for installed modules and functions.
16763"
16764
16765case x$LIBS in
16766  *-lgdbm*)
16767  echo "WARNING: zsh will be linked against libgdbm.
16768This means the binary is covered by the GNU General Public License.
16769This does not affect the source code.
16770Run configure with --disable-gdbm if required."
16771  ;;
16772esac
16773
16774exit 0
16775
16776