head	2.28;
access;
symbols
	3_0_1:2.28
	3_0_0:2.21
	3_0-pre6:2.19
	3_0-pre5:2.19
	3_0-pre4:2.19
	beta15:1.33
	beta14:1.33
	beta13:1.31
	beta12:1.29
	beta11:1.26
	beta10:1.23
	3_0-pre3:2.17
	3_0-pre2:2.14
	3_0-pre1:2.12
	beta21:2.11
	beta20:2.10
	beta19:2.7
	beta18:2.7
	beta17:2.4
	beta16:2.0;
locks;
comment	@# @;


2.28
date	96.10.20.00.08.41;	author hzoli;	state Exp;
branches;
next	2.27;

2.27
date	96.10.19.19.39.12;	author hzoli;	state Exp;
branches;
next	2.26;

2.26
date	96.10.08.23.09.34;	author hzoli;	state Exp;
branches;
next	2.25;

2.25
date	96.10.07.23.58.00;	author hzoli;	state Exp;
branches;
next	2.24;

2.24
date	96.10.03.00.02.35;	author hzoli;	state Exp;
branches;
next	2.23;

2.23
date	96.09.07.15.19.40;	author hzoli;	state Exp;
branches;
next	2.22;

2.22
date	96.09.07.15.08.00;	author hzoli;	state Exp;
branches;
next	2.21;

2.21
date	96.08.15.17.37.46;	author hzoli;	state Exp;
branches;
next	2.20;

2.20
date	96.08.12.03.52.50;	author hzoli;	state Exp;
branches;
next	2.19;

2.19
date	96.07.20.17.07.14;	author hzoli;	state Exp;
branches;
next	2.18;

2.18
date	96.07.20.16.24.22;	author hzoli;	state Exp;
branches;
next	2.17;

2.17
date	96.07.10.20.52.55;	author hzoli;	state Exp;
branches;
next	2.16;

2.16
date	96.07.05.21.58.31;	author hzoli;	state Exp;
branches;
next	2.15;

2.15
date	96.07.05.20.46.17;	author hzoli;	state Exp;
branches;
next	2.14;

2.14
date	96.07.04.20.42.58;	author hzoli;	state Exp;
branches;
next	2.13;

2.13
date	96.07.01.20.13.26;	author hzoli;	state Exp;
branches;
next	2.12;

2.12
date	96.06.27.00.59.20;	author hzoli;	state Exp;
branches;
next	2.11;

2.11
date	96.06.19.20.48.25;	author hzoli;	state Exp;
branches;
next	2.10;

2.10
date	96.06.07.14.45.54;	author hzoli;	state Exp;
branches;
next	2.9;

2.9
date	96.06.03.18.54.40;	author hzoli;	state Exp;
branches;
next	2.8;

2.8
date	96.06.03.00.27.08;	author hzoli;	state Exp;
branches;
next	2.7;

2.7
date	96.05.21.19.03.28;	author hzoli;	state Exp;
branches;
next	2.6;

2.6
date	96.05.16.00.15.42;	author hzoli;	state Exp;
branches;
next	2.5;

2.5
date	96.05.11.00.42.14;	author hzoli;	state Exp;
branches;
next	2.4;

2.4
date	96.05.05.01.17.16;	author hzoli;	state Exp;
branches;
next	2.3;

2.3
date	96.05.03.00.15.09;	author hzoli;	state Exp;
branches;
next	2.2;

2.2
date	96.05.03.00.14.27;	author hzoli;	state Exp;
branches;
next	2.1;

2.1
date	96.05.03.00.12.12;	author hzoli;	state Exp;
branches;
next	2.0;

2.0
date	96.05.02.22.57.04;	author hzoli;	state Exp;
branches;
next	1.34;

1.34
date	96.05.01.08.16.13;	author coleman;	state Exp;
branches;
next	1.33;

1.33
date	96.04.15.05.31.25;	author coleman;	state Exp;
branches;
next	1.32;

1.32
date	96.04.01.04.47.42;	author coleman;	state Exp;
branches;
next	1.31;

1.31
date	95.12.21.22.38.30;	author coleman;	state Exp;
branches;
next	1.30;

1.30
date	95.12.13.01.27.27;	author coleman;	state Exp;
branches;
next	1.29;

1.29
date	95.11.21.05.35.27;	author coleman;	state Exp;
branches;
next	1.28;

1.28
date	95.11.21.04.44.27;	author coleman;	state Exp;
branches;
next	1.27;

1.27
date	95.11.19.04.44.13;	author coleman;	state Exp;
branches;
next	1.26;

1.26
date	95.09.19.04.52.41;	author coleman;	state Exp;
branches;
next	1.25;

1.25
date	95.09.11.06.25.02;	author coleman;	state Exp;
branches;
next	1.24;

1.24
date	95.08.29.01.45.42;	author coleman;	state Exp;
branches;
next	1.23;

1.23
date	95.06.30.22.03.57;	author coleman;	state Exp;
branches;
next	1.22;

1.22
date	95.06.23.08.32.15;	author coleman;	state Exp;
branches;
next	1.21;

1.21
date	95.05.25.09.30.23;	author coleman;	state Exp;
branches;
next	1.20;

1.20
date	95.05.02.08.05.48;	author coleman;	state Exp;
branches;
next	1.19;

1.19
date	95.04.27.00.13.33;	author coleman;	state Exp;
branches;
next	1.18;

1.18
date	95.04.18.01.37.10;	author coleman;	state Exp;
branches;
next	1.17;

1.17
date	95.04.09.09.24.04;	author coleman;	state Exp;
branches;
next	1.16;

1.16
date	95.03.31.21.16.27;	author coleman;	state Exp;
branches;
next	1.15;

1.15
date	95.03.17.06.06.32;	author coleman;	state Exp;
branches;
next	1.14;

1.14
date	95.03.14.01.13.51;	author coleman;	state Exp;
branches;
next	1.13;

1.13
date	95.03.13.01.15.16;	author coleman;	state Exp;
branches;
next	1.12;

1.12
date	95.02.28.05.46.14;	author coleman;	state Exp;
branches;
next	1.11;

1.11
date	95.02.28.04.57.28;	author coleman;	state Exp;
branches;
next	1.10;

1.10
date	95.02.11.08.39.53;	author coleman;	state Exp;
branches;
next	1.9;

1.9
date	95.01.25.21.06.28;	author coleman;	state Exp;
branches;
next	1.8;

1.8
date	95.01.24.05.00.28;	author coleman;	state Exp;
branches;
next	1.7;

1.7
date	94.11.16.06.09.46;	author zsh;	state Exp;
branches;
next	1.6;

1.6
date	94.11.16.04.40.02;	author zsh;	state Exp;
branches;
next	1.5;

1.5
date	94.11.08.06.44.11;	author zsh;	state Exp;
branches;
next	1.4;

1.4
date	94.10.16.23.12.42;	author zsh;	state Exp;
branches;
next	1.3;

1.3
date	94.09.28.02.39.49;	author zsh;	state Exp;
branches;
next	1.2;

1.2
date	94.09.02.01.49.21;	author zsh;	state Exp;
branches;
next	1.1;

1.1
date	94.08.30.05.12.09;	author zsh;	state Exp;
branches;
next	;


desc
@configure
@


2.28
log
@I made a stupid mistake in the Cray hacks for nis_list
@
text
@#! /bin/sh

# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.10 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
ac_help="$ac_help
  --enable-zsh-debug         use it if you want to debug zsh"
ac_help="$ac_help
  --enable-zsh-mem           use zsh memory allocation routines"
ac_help="$ac_help
  --enable-zsh-mem-debug     debug zsh memory allocation routines"
ac_help="$ac_help
  --enable-zsh-mem-warning   print warnings when error in memory allocation"
ac_help="$ac_help
  --enable-zsh-secure-free   turn on error checking for free()"
ac_help="$ac_help
  --enable-zsh-hash-debug    turn on debugging of internal hash tables"
ac_help="$ac_help
  --enable-etcdir=directory  default directory for global zsh scripts"
ac_help="$ac_help
  --enable-zshenv=pathname   the full pathname of the global zshenv script"
ac_help="$ac_help
  --enable-zshrc=pathname    the full pathname of the global zshrc script"
ac_help="$ac_help
  --enable-zprofile=pathname the full pathname of the global zprofile script"
ac_help="$ac_help
  --enable-zlogin=pathname   the full pathname of the global zlogin script"
ac_help="$ac_help
  --enable-zlogout=pathname  the full pathname of the global zlogout script"

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=

ac_prev=
for ac_option
do

  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
  fi

  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case "$ac_option" in

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir="$ac_optarg" ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build="$ac_optarg" ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file="$ac_optarg" ;;

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir="$ac_optarg" ;;

  -disable-* | --disable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;

  -enable-* | --enable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "enable_${ac_feature}='$ac_optarg'" ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix="$ac_optarg" ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he)
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
EOF
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
    exit 0 ;;

  -host | --host | --hos | --ho)
    ac_prev=host ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host="$ac_optarg" ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir="$ac_optarg" ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir="$ac_optarg" ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir="$ac_optarg" ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir="$ac_optarg" ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    localstatedir="$ac_optarg" ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir="$ac_optarg" ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir="$ac_optarg" ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix="$ac_optarg" ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix="$ac_optarg" ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix="$ac_optarg" ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name="$ac_optarg" ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir="$ac_optarg" ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir="$ac_optarg" ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site="$ac_optarg" ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir="$ac_optarg" ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir="$ac_optarg" ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target="$ac_optarg" ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.10"
    exit 0 ;;

  -with-* | --with-*)
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "with_${ac_package}='$ac_optarg'" ;;

  -without-* | --without-*)
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes="$ac_optarg" ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries="$ac_optarg" ;;

  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
    ;;

  *)
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    if test "x$nonopt" != xNONE; then
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    fi
    nonopt="$ac_option"
    ;;

  esac
done

if test -n "$ac_prev"; then
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
fi
exec 5>./config.log

echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5

# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
do
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  esac
done

# NLS nuisances.
# Only set LANG and LC_ALL to C if already set.
# These must not be set unconditionally because not all systems understand
# e.g. LANG=C (notably SCO).
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h

# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=Src/zsh.h

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then its parent.
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  else
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`

# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    echo "loading site script $ac_site_file"
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'

if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t='	'
  else
    ac_n=-n ac_c= ac_t=
  fi
else
  ac_n= ac_c='\c' ac_t=
fi




VERSION=`sed -e 's/^.*"\(.*\)"$/\1/' ${srcdir}/Src/version.h`
echo "configuring for zsh $VERSION"

ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.


# Make sure we can run config.sub.
if $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi

echo $ac_n "checking host system type""... $ac_c" 1>&6

host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`$ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
  *) host_alias=$nonopt ;;
  esac ;;
esac

host=`$ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6

cat >> confdefs.h <<EOF
#define OSTYPE "$host_os"
EOF

cat >> confdefs.h <<EOF
#define MACHTYPE "$host_cpu"
EOF

cat >> confdefs.h <<EOF
#define VENDOR "$host_vendor"
EOF


# Check whether --enable-zsh-debug or --disable-zsh-debug was given.
if test "${enable_zsh_debug+set}" = set; then
  enableval="$enable_zsh_debug"
  :
fi


# Check whether --enable-zsh-mem or --disable-zsh-mem was given.
if test "${enable_zsh_mem+set}" = set; then
  enableval="$enable_zsh_mem"
  if test x$enableval = xyes; then
  cat >> confdefs.h <<\EOF
#define ZSH_MEM 1
EOF

fi
fi


# Check whether --enable-zsh-mem-debug or --disable-zsh-mem-debug was given.
if test "${enable_zsh_mem_debug+set}" = set; then
  enableval="$enable_zsh_mem_debug"
  if test x$enableval = xyes; then
  cat >> confdefs.h <<\EOF
#define ZSH_MEM_DEBUG 1
EOF

fi
fi


# Check whether --enable-zsh-mem-warning or --disable-zsh-mem-warning was given.
if test "${enable_zsh_mem_warning+set}" = set; then
  enableval="$enable_zsh_mem_warning"
  if test x$enableval = xyes; then
  cat >> confdefs.h <<\EOF
#define ZSH_MEM_WARNING 1
EOF

fi
fi


# Check whether --enable-zsh-secure-free or --disable-zsh-secure-free was given.
if test "${enable_zsh_secure_free+set}" = set; then
  enableval="$enable_zsh_secure_free"
  if test x$enableval = xyes; then
  cat >> confdefs.h <<\EOF
#define ZSH_SECURE_FREE 1
EOF

fi
fi


# Check whether --enable-zsh-hash-debug or --disable-zsh-hash-debug was given.
if test "${enable_zsh_hash_debug+set}" = set; then
  enableval="$enable_zsh_hash_debug"
  if test x$enableval = xyes; then
  cat >> confdefs.h <<\EOF
#define ZSH_HASH_DEBUG 1
EOF

fi
fi


# Check whether --enable-etcdir or --disable-etcdir was given.
if test "${enable_etcdir+set}" = set; then
  enableval="$enable_etcdir"
  etcdir="$enableval"
else
  etcdir=/etc
fi


# Check whether --enable-zshenv or --disable-zshenv was given.
if test "${enable_zshenv+set}" = set; then
  enableval="$enable_zshenv"
  zshenv="$enableval"
else
  if test "x$etcdir" = xno; then
  zshenv=no
else
  zshenv="$etcdir/zshenv"
fi
fi

if test "x$zshenv" != xno; then
  cat >> confdefs.h <<EOF
#define GLOBAL_ZSHENV "$zshenv"
EOF

fi

# Check whether --enable-zshrc or --disable-zshrc was given.
if test "${enable_zshrc+set}" = set; then
  enableval="$enable_zshrc"
  zshrc="$enableval"
else
  if test "x$etcdir" = xno; then
  zshrc=no
else
  zshrc="$etcdir/zshrc"
fi
fi

if test "x$zshrc" != xno; then
  cat >> confdefs.h <<EOF
#define GLOBAL_ZSHRC "$zshrc"
EOF

fi

# Check whether --enable-zprofile or --disable-zprofile was given.
if test "${enable_zprofile+set}" = set; then
  enableval="$enable_zprofile"
  zprofile="$enableval"
else
  if test "x$etcdir" = xno; then
  zprofile=no
else
  zprofile="$etcdir/zprofile"
fi
fi

if test "x$zprofile" != xno; then
  cat >> confdefs.h <<EOF
#define GLOBAL_ZPROFILE "$zprofile"
EOF

fi

# Check whether --enable-zlogin or --disable-zlogin was given.
if test "${enable_zlogin+set}" = set; then
  enableval="$enable_zlogin"
  zlogin="$enableval"
else
  if test "x$etcdir" = xno; then
  zlogin=no
else
  zlogin="$etcdir/zlogin"
fi
fi

if test "x$zlogin" != xno; then
  cat >> confdefs.h <<EOF
#define GLOBAL_ZLOGIN "$zlogin"
EOF

fi

# Check whether --enable-zlogout or --disable-zlogout was given.
if test "${enable_zlogout+set}" = set; then
  enableval="$enable_zlogout"
  zlogout="$enableval"
else
  if test "x$etcdir" = xno; then
  zlogout=no
else
  zlogout="$etcdir/zlogout"
fi
fi

if test "x$zlogout" != xno; then
  cat >> confdefs.h <<EOF
#define GLOBAL_ZLOGOUT "$zlogout"
EOF

fi


test -z "$CFLAGS"  && CFLAGS= auto_cflags=1
if test "${enable_zsh_debug}" = yes; then
  test -z "$LDFLAGS" && LDFLAGS=-g
fi

# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  ac_prog_rejected=no
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
	continue
      fi
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_save_ifs"
if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# -gt 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    set dummy "$ac_dir/$ac_word" "$@@"
    shift
    ac_cv_prog_CC="$@@"
  fi
fi
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi

echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.c <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gcc=yes
else
  ac_cv_prog_gcc=no
fi
fi

echo "$ac_t""$ac_cv_prog_gcc" 1>&6
if test $ac_cv_prog_gcc = yes; then
  GCC=yes
  if test "${CFLAGS+set}" != set; then
    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  ac_cv_prog_gcc_g=yes
else
  ac_cv_prog_gcc_g=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
    if test $ac_cv_prog_gcc_g = yes; then
      CFLAGS="-g -O"
    else
      CFLAGS="-O"
    fi
  fi
else
  GCC=
  test "${CFLAGS+set}" = set || CFLAGS="-g"
fi


if test -n "$auto_cflags"; then
  if test "${enable_zsh_debug}" = yes; then
    if test -n "$GCC"; then
      CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -DDEBUG -g"
    else
      CFLAGS="$CFLAGS -DDEBUG -g"
    fi
  else
    if test -n "$GCC"; then
      CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -O2"
    else
      CFLAGS="$CFLAGS -O"
    fi
  fi
fi

if test `echo $host_os | sed 's/^\(...\).*/\1/'` = sco; then
  CFLAGS="-D__sco $CFLAGS"
fi


echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  CPP="${CC-cc} -E"
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
#line 940 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
#line 955 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  rm -rf conftest*
  CPP=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
  CPP="$ac_cv_prog_CPP"
else
  ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6
                 if test $ac_cv_prog_gcc = yes; then
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    ac_pattern="Autoconf.*'x'"
  cat > conftest.$ac_ext <<EOF
#line 987 "configure"
#include "confdefs.h"
#include <sgtty.h>
Autoconf TIOCGETP
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "$ac_pattern" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_prog_gcc_traditional=yes
else
  rm -rf conftest*
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*


  if test $ac_cv_prog_gcc_traditional = no; then
    cat > conftest.$ac_ext <<EOF
#line 1005 "configure"
#include "confdefs.h"
#include <termio.h>
Autoconf TCGETA
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "$ac_pattern" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_prog_gcc_traditional=yes
fi
rm -f conftest*

  fi
fi

echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
fi
     echo $ac_n "checking for working const""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1030 "configure"
#include "confdefs.h"

int main() { return 0; }
int t() {

/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
   It does not let you subtract one const X* pointer from another in an arm
   of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;

  *t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25, 17};
  const int *foo = &x[0];
  ++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
}

; return 0; }
EOF
if { (eval echo configure:1080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_const=yes
else
  rm -rf conftest*
  ac_cv_c_const=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
EOF

fi
                  # If we cannot run a trivial program, we must be cross compiling.
echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_c_cross=yes
else
cat > conftest.$ac_ext <<EOF
#line 1107 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
{ (eval echo configure:1111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_c_cross=no
else
  ac_cv_c_cross=yes
fi
fi
rm -fr conftest*
fi

echo "$ac_t""$ac_cv_c_cross" 1>&6
cross_compiling=$ac_cv_c_cross
                  echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_prog_cc_stdc=no
ac_save_CFLAGS="$CFLAGS"
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX			-Aa -D_HPUX_SOURCE
# SVR4			-Xc
for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
do
  CFLAGS="$ac_save_CFLAGS $ac_arg"
  cat > conftest.$ac_ext <<EOF
#line 1139 "configure"
#include "confdefs.h"
#ifndef __STDC__
choke me
#endif	

int main() { return 0; }
int t() {
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
; return 0; }
EOF
if { (eval echo configure:1152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_prog_cc_stdc="$ac_arg"; break
fi
rm -f conftest*

done
CFLAGS="$ac_save_CFLAGS"

fi

echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
case "x$ac_cv_prog_cc_stdc" in
  x|xno) ;;
  *) CC="$CC $ac_cv_prog_cc_stdc" ;;
esac


echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
if test "$ac_cv_prog_cc_stdc" != no; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define PROTOTYPES 1
EOF

  U=
else
  echo "$ac_t""no" 1>&6
  U=_
fi
             echo $ac_n "checking size of long""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_sizeof_long=8
else
cat > conftest.$ac_ext <<EOF
#line 1190 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(long));
  exit(0);
}
EOF
{ (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_sizeof_long=`cat conftestval`
else
  ac_cv_sizeof_long=0
fi
fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_LONG $ac_cv_sizeof_long
EOF

    
echo $ac_n "checking if signed to unsigned casting is broken""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_c_broken_signed_to_unsigned_casting'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  zsh_cv_c_broken_signed_to_unsigned_casting=no
else
cat > conftest.$ac_ext <<EOF
#line 1224 "configure"
#include "confdefs.h"
main(){return((int)(unsigned char)((char) -1) == 255);}
EOF
{ (eval echo configure:1228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  zsh_cv_c_broken_signed_to_unsigned_casting=yes
else
  zsh_cv_c_broken_signed_to_unsigned_casting=no
fi
fi
rm -fr conftest*
fi

echo "$ac_t""$zsh_cv_c_broken_signed_to_unsigned_casting" 1>&6
if test $zsh_cv_c_broken_signed_to_unsigned_casting = yes; then
  cat >> confdefs.h <<\EOF
#define BROKEN_SIGNED_TO_UNSIGNED_CASTING 1
EOF

fi

echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
set dummy ${MAKE-make}; ac_make=$2
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftestmake <<\EOF
all:
	@@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftestmake
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  SET_MAKE=
else
  echo "$ac_t""no" 1>&6
  SET_MAKE="MAKE=${MAKE-make}"
fi
            # Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      for ac_prog in ginstall installbsd scoinst install; do
        if test -f $ac_dir/$ac_prog; then
	  if test $ac_prog = install &&
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    # OSF/1 installbsd also uses dspmsg, but is usable.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
  done
  IFS="$ac_save_ifs"

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL="$ac_cv_path_install"
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
    INSTALL="$ac_install_sh"
  fi
fi
echo "$ac_t""$INSTALL" 1>&6

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
             for ac_prog in mawk gawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_AWK="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
AWK="$ac_cv_prog_AWK"
if test -n "$AWK"; then
  echo "$ac_t""$AWK" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$AWK" && break
done
                 
ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
do
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1370 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_hdr>
int main() { return 0; }
int t() {
DIR *dirp = 0;
; return 0; }
EOF
if { (eval echo configure:1379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_header_dirent_$ac_safe=yes"
else
  rm -rf conftest*
  eval "ac_cv_header_dirent_$ac_safe=no"
fi
rm -f conftest*

fi
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 ac_header_dirent=$ac_hdr; break
else
  echo "$ac_t""no" 1>&6
fi
done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
echo $ac_n "checking for -ldir""... $ac_c" 1>&6
ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ldir  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1410 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();

int main() { return 0; }
int t() {
opendir()
; return 0; }
EOF
if { (eval echo configure:1422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -ldir"
else
  echo "$ac_t""no" 1>&6
fi

else
echo $ac_n "checking for -lx""... $ac_c" 1>&6
ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lx  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1449 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();

int main() { return 0; }
int t() {
opendir()
; return 0; }
EOF
if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -lx"
else
  echo "$ac_t""no" 1>&6
fi

fi

echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1486 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  ac_cv_header_stdc=yes
else
  echo "$ac_err" >&5
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1509 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1527 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
  :
else
cat > conftest.$ac_ext <<EOF
#line 1548 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

EOF
{ (eval echo configure:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  :
else
  ac_cv_header_stdc=no
fi
fi
rm -fr conftest*
fi
fi

echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1583 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() { return 0; }
int t() {
struct tm *tp;
; return 0; }
EOF
if { (eval echo configure:1593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_header_time=yes
else
  rm -rf conftest*
  ac_cv_header_time=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
  cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF

fi

echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1617 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>

#if defined(S_ISBLK) && defined(S_IFDIR)
# if S_ISBLK (S_IFDIR)
You lose.
# endif
#endif

#if defined(S_ISBLK) && defined(S_IFCHR)
# if S_ISBLK (S_IFCHR)
You lose.
# endif
#endif

#if defined(S_ISLNK) && defined(S_IFREG)
# if S_ISLNK (S_IFREG)
You lose.
# endif
#endif

#if defined(S_ISSOCK) && defined(S_IFREG)
# if S_ISSOCK (S_IFREG)
You lose.
# endif
#endif

EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "You lose" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_header_stat_broken=yes
else
  rm -rf conftest*
  ac_cv_header_stat_broken=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
if test $ac_cv_header_stat_broken = yes; then
  cat >> confdefs.h <<\EOF
#define STAT_MACROS_BROKEN 1
EOF

fi

echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1672 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/wait.h>
#ifndef WEXITSTATUS
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
#endif
#ifndef WIFEXITED
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif
int main() { return 0; }
int t() {
int s;
wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
; return 0; }
EOF
if { (eval echo configure:1689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_header_sys_wait_h=yes
else
  rm -rf conftest*
  ac_cv_header_sys_wait_h=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
if test $ac_cv_header_sys_wait_h = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_SYS_WAIT_H 1
EOF

fi

for ac_hdr in sys/time.h sys/times.h sys/select.h termcap.h termio.h \
		 termios.h sys/param.h sys/filio.h string.h memory.h \
		 limits.h fcntl.h libc.h sys/utsname.h sys/resource.h \
		 locale.h errno.h stdlib.h unistd.h
do
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1719 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


if test $ac_cv_header_sys_time_h = yes -a $ac_cv_header_sys_select_h = yes; then
  echo $ac_n "checking for conflicts in sys/time.h and sys/select.h""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_header_time_h_select_h_conflicts'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1755 "configure"
#include "confdefs.h"
#include <sys/time.h>
#include <sys/select.h>
int main() { return 0; }
int t() {
int i;
; return 0; }
EOF
if { (eval echo configure:1764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_header_time_h_select_h_conflicts=no
else
  rm -rf conftest*
  zsh_cv_header_time_h_select_h_conflicts=yes
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_header_time_h_select_h_conflicts" 1>&6
  if test $zsh_cv_header_time_h_select_h_conflicts = yes; then
    cat >> confdefs.h <<\EOF
#define TIME_H_SELECT_H_CONFLICTS 1
EOF

  fi
fi

echo $ac_n "checking ut_host in struct utmp""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_struct_utmp_ut_host'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1789 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <utmp.h>
int main() { return 0; }
int t() {
struct utmp ut; ut.ut_host;
; return 0; }
EOF
if { (eval echo configure:1798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_struct_utmp_ut_host=yes
else
  rm -rf conftest*
  zsh_cv_struct_utmp_ut_host=no
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_struct_utmp_ut_host" 1>&6
if test $zsh_cv_struct_utmp_ut_host = yes; then
  have_ut_host=1
  cat >> confdefs.h <<\EOF
#define HAVE_UT_HOST 1
EOF

fi

if test -z "$have_ut_host"; then
  echo $ac_n "checking ut_host in struct utmpx""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_struct_utmpx_ut_host'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1824 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <utmpx.h>
int main() { return 0; }
int t() {
struct utmpx ut; ut.ut_host;
; return 0; }
EOF
if { (eval echo configure:1833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_struct_utmpx_ut_host=yes
else
  rm -rf conftest*
  zsh_cv_struct_utmpx_ut_host=no
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_struct_utmpx_ut_host" 1>&6
  if test $zsh_cv_struct_utmpx_ut_host = yes; then
    cat >> confdefs.h <<\EOF
#define HAVE_UTMPX_H 1
EOF

    cat >> confdefs.h <<\EOF
#define HAVE_UT_HOST 1
EOF

  fi
fi

echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_sys_posix_termios'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1862 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <unistd.h>
#include <termios.h>
int main() { return 0; }
int t() {
/* SunOS 4.0.3 has termios.h but not the library calls.  */
tcgetattr(0, 0);
; return 0; }
EOF
if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_sys_posix_termios=yes
else
  rm -rf conftest*
  zsh_cv_sys_posix_termios=no
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_sys_posix_termios" 1>&6

if test $zsh_cv_sys_posix_termios = yes; then
  echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1892 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <termios.h>
int main() { return 0; }
int t() {
int x = TIOCGWINSZ;
; return 0; }
EOF
if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_header_termios_h_tiocgwinsz=yes
else
  rm -rf conftest*
  zsh_cv_header_termios_h_tiocgwinsz=no
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_header_termios_h_tiocgwinsz" 1>&6
else
  zsh_cv_header_termios_h_tiocgwinsz=no
fi
 
if test $zsh_cv_header_termios_h_tiocgwinsz = no; then
  echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1923 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/ioctl.h>
int main() { return 0; }
int t() {
int x = TIOCGWINSZ;
; return 0; }
EOF
if { (eval echo configure:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_header_sys_ioctl_h_tiocgwinsz=yes
else
  rm -rf conftest*
  zsh_cv_header_sys_ioctl_h_tiocgwinsz=no
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
  if test $zsh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
    cat >> confdefs.h <<\EOF
#define GWINSZ_IN_SYS_IOCTL 1
EOF

  fi
fi
 
ac_safe=`echo "sys/ptem.h" | tr './\055' '___'`
echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1958 "configure"
#include "confdefs.h"
#include <sys/ptem.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define WINSIZE_IN_PTEM 1
EOF

else
  echo "$ac_t""no" 1>&6
fi


if test `echo $host_os | sed 's/^.*\(aix\)1-9\.0-9.*$/\1/'` = aix; then
  termcap_curses_order="curses ncurses termcap"
else
  termcap_curses_order="termcap curses ncurses"
fi

for lib in $termcap_curses_order; do
  echo $ac_n "checking for -l${lib}""... $ac_c" 1>&6
ac_lib_var=`echo ${lib}'_'tgetent | tr './+\055' '__p_'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-l${lib}  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2001 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char tgetent();

int main() { return 0; }
int t() {
tgetent()
; return 0; }
EOF
if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -l$lib"; break
else
  echo "$ac_t""no" 1>&6
fi

done

for ac_func in getdomainname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2040 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() { return 0; }
int t() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:2064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*

fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

if test $ac_cv_func_getdomainname = no; then
  echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
ac_lib_var=`echo nsl'_'getdomainname | tr './+\055' '__p_'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lnsl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2095 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char getdomainname();

int main() { return 0; }
int t() {
getdomainname()
; return 0; }
EOF
if { (eval echo configure:2107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo nsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lnsl $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

fi

if test `echo $host_os | sed 's/^\(unicos\).*/\1/'` = unicos; then
  LIBS="-lcraylm -lkrb -lnisdb -lnsl -lrpcsvc $LIBS"
fi

echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2142 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if HAVE_TERMIOS_H
#include <termios.h>
#endif
#if HAVE_TERMCAP_H
#include <termcap.h>
#endif
int main() { return 0; }
int t() {
ospeed = 0;
; return 0; }
EOF
if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_decl_ospeed_include_defines=yes
else
  rm -rf conftest*
  zsh_cv_decl_ospeed_include_defines=no
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_decl_ospeed_include_defines" 1>&6

if test $zsh_cv_decl_ospeed_include_defines = no; then
  echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2175 "configure"
#include "confdefs.h"

int main() { return 0; }
int t() {
extern short ospeed; ospeed = 0;
; return 0; }
EOF
if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_decl_ospeed_must_define=yes
else
  rm -rf conftest*
  zsh_cv_decl_ospeed_must_define=no
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_decl_ospeed_must_define" 1>&6
fi

if test $zsh_cv_decl_ospeed_include_defines = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_OSPEED 1
EOF

elif test $zsh_cv_decl_ospeed_must_define = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_OSPEED 1
EOF

  cat >> confdefs.h <<\EOF
#define MUST_DEFINE_OSPEED 1
EOF

fi

echo $ac_n "checking if tgetent accepts NULL""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_func_tgetent_accepts_null'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  zsh_cv_func_tgetent_accepts_null=no
else
cat > conftest.$ac_ext <<EOF
#line 2221 "configure"
#include "confdefs.h"
main(){int i = tgetent((char*)0,"vt100");exit(!i || i == -1);}
EOF
{ (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  zsh_cv_func_tgetent_accepts_null=yes
else
  zsh_cv_func_tgetent_accepts_null=no
fi
fi
rm -fr conftest*
fi

echo "$ac_t""$zsh_cv_func_tgetent_accepts_null" 1>&6
if test $zsh_cv_func_tgetent_accepts_null = yes; then
  cat >> confdefs.h <<\EOF
#define TGETENT_ACCEPTS_NULL 1
EOF

fi

echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2248 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

int main() { return 0; }
int t() {
int i;
; return 0; }
EOF
if { (eval echo configure:2266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_signal=void
else
  rm -rf conftest*
  ac_cv_type_signal=int
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF


echo $ac_n "checking for pid_t""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2288 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "pid_t" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_pid_t=yes
else
  rm -rf conftest*
  ac_cv_type_pid_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
if test $ac_cv_type_pid_t = no; then
  cat >> confdefs.h <<\EOF
#define pid_t int
EOF

fi

echo $ac_n "checking for off_t""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2319 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "off_t" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_off_t=yes
else
  rm -rf conftest*
  ac_cv_type_off_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_off_t" 1>&6
if test $ac_cv_type_off_t = no; then
  cat >> confdefs.h <<\EOF
#define off_t long
EOF

fi

echo $ac_n "checking for mode_t""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2350 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "mode_t" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_mode_t=yes
else
  rm -rf conftest*
  ac_cv_type_mode_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
if test $ac_cv_type_mode_t = no; then
  cat >> confdefs.h <<\EOF
#define mode_t int
EOF

fi

echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2381 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "uid_t" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_uid_t=yes
else
  rm -rf conftest*
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_type_uid_t" 1>&6
if test $ac_cv_type_uid_t = no; then
  cat >> confdefs.h <<\EOF
#define uid_t int
EOF

  cat >> confdefs.h <<\EOF
#define gid_t int
EOF

fi

echo $ac_n "checking for size_t""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2414 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "size_t" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_size_t=yes
else
  rm -rf conftest*
  ac_cv_type_size_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
  cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF

fi


echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_type_sigset_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2446 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
int main() { return 0; }
int t() {
sigset_t tempsigset;
; return 0; }
EOF
if { (eval echo configure:2455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_type_sigset_t=yes
else
  rm -rf conftest*
  zsh_cv_type_sigset_t=no
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_type_sigset_t" 1>&6
if test $zsh_cv_type_sigset_t = no; then
  cat >> confdefs.h <<\EOF
#define sigset_t unsigned int
EOF

fi

echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_struct_timezone'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2479 "configure"
#include "confdefs.h"
#include <sys/time.h>
int main() { return 0; }
int t() {
struct timezone dummy_tz;
; return 0; }
EOF
if { (eval echo configure:2487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_struct_timezone=yes
else
  rm -rf conftest*
  zsh_cv_struct_timezone=no
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_struct_timezone" 1>&6
if test $zsh_cv_struct_timezone = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_TIMEZONE 1
EOF

fi

echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 2514 "configure"
#include "confdefs.h"

/*
 * If this system has a BSD-style getpgrp(),
 * which takes a pid argument, exit unsuccessfully.
 *
 * Snarfed from Chet Ramey's bash pgrp.c test program
 */
#include <stdio.h>
#include <sys/types.h>

int     pid;
int     pg1, pg2, pg3, pg4;
int     ng, np, s, child;

main()
{
        pid = getpid();
        pg1 = getpgrp(0);
        pg2 = getpgrp();
        pg3 = getpgrp(pid);
        pg4 = getpgrp(1);

        /*
         * If all of these values are the same, it's pretty sure that
         * we're on a system that ignores getpgrp's first argument.
         */
        if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
                exit(0);

        child = fork();
        if (child < 0)
                exit(1);
        else if (child == 0) {
                np = getpid();
                /*
                 * If this is Sys V, this will not work; pgrp will be
                 * set to np because setpgrp just changes a pgrp to be
                 * the same as the pid.
                 */
                setpgrp(np, pg1);
                ng = getpgrp(0);        /* Same result for Sys V and BSD */
                if (ng == pg1) {
                        exit(1);
                } else {
                        exit(0);
                }
        } else {
                wait(&s);
                exit(s>>8);
        }
}

EOF
{ (eval echo configure:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_func_getpgrp_void=yes
else
  ac_cv_func_getpgrp_void=no
fi
fi
rm -fr conftest*

fi

echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
if test $ac_cv_func_getpgrp_void = yes; then
  cat >> confdefs.h <<\EOF
#define GETPGRP_VOID 1
EOF

fi



for ac_func in strftime waitpid select tcsetpgrp tcgetattr strstr lstat \
              getlogin setpgid gettimeofday gethostname mkfifo wait3 difftime \
              sigblock sigsetmask sigrelse sighold killpg sigaction getrlimit \
              sigprocmask setuid seteuid setreuid setresuid strerror nis_list \
              initgroups
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2601 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() { return 0; }
int t() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*

fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_func_strcoll'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  zsh_cv_func_strcoll=no
else
cat > conftest.$ac_ext <<EOF
#line 2656 "configure"
#include "confdefs.h"
main(){exit(strcoll("a", "b") >= 0 || strcoll("b", "a") <= 0 ||
strcoll("a", "a"));}
EOF
{ (eval echo configure:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  zsh_cv_func_strcoll=yes
else
  zsh_cv_func_strcoll=no
fi
fi
rm -fr conftest*
fi

echo "$ac_t""$zsh_cv_func_strcoll" 1>&6
if test $zsh_cv_func_strcoll = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_STRCOLL 1
EOF

fi


echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
  signals_style=POSIX_SIGNALS
  cat >> confdefs.h <<\EOF
#define POSIX_SIGNALS 1
EOF

elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
  signals_style=BSD_SIGNALS
  cat >> confdefs.h <<\EOF
#define BSD_SIGNALS 1
EOF

elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
  signals_style=SYSV_SIGNALS
  cat >> confdefs.h <<\EOF
#define SYSV_SIGNALS 1
EOF

else
  signals_style=NO_SIGNAL_BLOCKING
  cat >> confdefs.h <<\EOF
#define NO_SIGNAL_BLOCKING 1
EOF

fi
cat >> confdefs.h <<EOF
#define $signals_style 1
EOF

echo "$ac_t""$signals_style" 1>&6

echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_path_signal_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  for SIGNAL_H in /usr/include/bsd/sys/signal.h                   /usr/include/asm/signal.h                       /usr/include/linux/signal.h                     /usr/include/sys/signal.h                       /dev/null;                     do
  test -f $SIGNAL_H && \
  grep '#[ 	]*define[ 	][ 	]*SIG[0-9A-Z]*[ 	]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
  break
done
zsh_cv_path_signal_h=$SIGNAL_H

fi

echo "$ac_t""$zsh_cv_path_signal_h" 1>&6
SIGNAL_H=$zsh_cv_path_signal_h

echo $ac_n "checking for /dev/fd filesystem""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_sys_dev_fd'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  test -d /dev/fd && zsh_cv_sys_dev_fd=yes || zsh_cv_sys_dev_fd=no
fi

echo "$ac_t""$zsh_cv_sys_dev_fd" 1>&6
if test $zsh_cv_sys_dev_fd = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_DEV_FD 1
EOF

fi

echo $ac_n "checking for RFS superroot directory""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_sys_superroot'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  test -d /../.LOCALROOT && zsh_cv_sys_superroot=yes || zsh_cv_sys_superroot=no
fi

echo "$ac_t""$zsh_cv_sys_superroot" 1>&6
if test $zsh_cv_sys_superroot = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_SUPERROOT 1
EOF

fi

echo $ac_n "checking for NIS""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_sys_nis'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  test -f /usr/bin/ypcat && /usr/bin/ypcat passwd.byname > /dev/null 2>&1 && \
zsh_cv_sys_nis=yes || zsh_cv_sys_nis=no
fi

echo "$ac_t""$zsh_cv_sys_nis" 1>&6
if test $zsh_cv_sys_nis = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_NIS 1
EOF

fi

echo $ac_n "checking for NIS+""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_sys_nis_plus'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  test $ac_cv_func_nis_list = yes && test -f /usr/bin/nisls && \
 /usr/bin/nisls > /dev/null 2>&1 && \
zsh_cv_sys_nis_plus=yes || zsh_cv_sys_nis_plus=no
fi

echo "$ac_t""$zsh_cv_sys_nis_plus" 1>&6
if test $zsh_cv_sys_nis_plus = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_NIS_PLUS 1
EOF

fi

echo $ac_n "checking where utmp is located""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_path_utmp'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  for utmp_file in /etc/utmp                       /usr/etc/utmp                    /var/adm/utmp                    /usr/adm/utmp                    /var/run/utmp                    /dev/null;      do
  test -f $utmp_file && break
done
zsh_cv_path_utmp=$utmp_file

fi

echo "$ac_t""$zsh_cv_path_utmp" 1>&6
cat >> confdefs.h <<EOF
#define UTMP_FILE_CONFIG "$zsh_cv_path_utmp"
EOF


echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_path_wtmp'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  for wtmp_file in /etc/wtmp                      /usr/etc/wtmp                   /var/adm/wtmp                   /usr/adm/wtmp                   /var/log/wtmp                   /dev/null;     do
  test -f $wtmp_file && break
done
zsh_cv_path_wtmp=$wtmp_file

fi

echo "$ac_t""$zsh_cv_path_wtmp" 1>&6
cat >> confdefs.h <<EOF
#define WTMP_FILE_CONFIG "$zsh_cv_path_wtmp"
EOF


echo $ac_n "checking if typeahead needs FIONREAD""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_sys_clobbers_typeahead'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  test `echo $host_os | sed 's/^\([a-z]*\).*/\1/'` = ultrix &&
zsh_cv_sys_clobbers_typeahead=yes || zsh_cv_sys_clobbers_typeahead=no
fi

echo "$ac_t""$zsh_cv_sys_clobbers_typeahead" 1>&6
if test $zsh_cv_sys_clobbers_typeahead = yes; then
  cat >> confdefs.h <<\EOF
#define CLOBBERS_TYPEAHEAD 1
EOF

fi

echo $ac_n "checking for brk() prototype in <unistd.h>""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_header_unistd_h_brk_proto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2846 "configure"
#include "confdefs.h"
#include <unistd.h>
double brk();
int main() { return 0; }
int t() {
int i;
; return 0; }
EOF
if { (eval echo configure:2855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_header_unistd_h_brk_proto=no
else
  rm -rf conftest*
  zsh_cv_header_unistd_h_brk_proto=yes
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_header_unistd_h_brk_proto" 1>&6
if test $zsh_cv_header_unistd_h_brk_proto = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_BRK_PROTO 1
EOF

fi

echo $ac_n "checking for sbrk() prototype in <unistd.h>""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_header_unistd_h_sbrk_proto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2879 "configure"
#include "confdefs.h"
#include <unistd.h>
double sbrk();
int main() { return 0; }
int t() {
int i;
; return 0; }
EOF
if { (eval echo configure:2888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_header_unistd_h_sbrk_proto=no
else
  rm -rf conftest*
  zsh_cv_header_unistd_h_sbrk_proto=yes
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_header_unistd_h_sbrk_proto" 1>&6
if test $zsh_cv_header_unistd_h_sbrk_proto = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_SBRK_PROTO 1
EOF

fi


if test "$ac_cv_prog_cc_stdc" != no; then
  echo $ac_n "checking for ioctl prototype in <sys/ioctl.h>""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_header_sys_ioctl_h_ioctl_proto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2914 "configure"
#include "confdefs.h"
#include <sys/ioctl.h>
   int ioctl(double x);
int main() { return 0; }
int t() {
int i;
; return 0; }
EOF
if { (eval echo configure:2923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_header_sys_ioctl_h_ioctl_proto=no
else
  rm -rf conftest*
  zsh_cv_header_sys_ioctl_h_ioctl_proto=yes
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_header_sys_ioctl_h_ioctl_proto" 1>&6
  if test $zsh_cv_header_sys_ioctl_h_ioctl_proto = yes; then
    cat >> confdefs.h <<\EOF
#define HAVE_IOCTL_PROTO 1
EOF

  fi
fi

echo $ac_n "checking if echo in /bin/sh interprets escape sequences""... $ac_c" 1>&6
if test "`/bin/sh -c \"echo '\\n'\"`" = "\\n"; then
  cat >> confdefs.h <<\EOF
#define SH_USE_BSD_ECHO 1
EOF

  echo "$ac_t""no" 1>&6
else
  echo "$ac_t""yes" 1>&6
fi

trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
fi

trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15

DEFS=-DHAVE_CONFIG_H

# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}

echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.

ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
  case "\$ac_option" in
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    echo "$CONFIG_STATUS generated by autoconf version 2.10"
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "\$ac_cs_usage"; exit 0 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
  esac
done

ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"

trap 'rm -fr `echo "Makefile Src/Makefile Doc/Makefile Etc/Makefile Misc/Makefile \
Util/Makefile Functions/Makefile StartupFiles/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF

# Protect against being on the right side of a sed subst in config.status.
sed 's/%@@/@@@@/; s/@@%/@@@@/; s/%g\$/@@g/; /@@g\$/s/[\\\\&%]/\\\\&/g;
 s/@@@@/%@@/; s/@@@@/@@%/; s/@@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@@CFLAGS@@%$CFLAGS%g
s%@@CPPFLAGS@@%$CPPFLAGS%g
s%@@CXXFLAGS@@%$CXXFLAGS%g
s%@@DEFS@@%$DEFS%g
s%@@LDFLAGS@@%$LDFLAGS%g
s%@@LIBS@@%$LIBS%g
s%@@exec_prefix@@%$exec_prefix%g
s%@@prefix@@%$prefix%g
s%@@program_transform_name@@%$program_transform_name%g
s%@@bindir@@%$bindir%g
s%@@sbindir@@%$sbindir%g
s%@@libexecdir@@%$libexecdir%g
s%@@datadir@@%$datadir%g
s%@@sysconfdir@@%$sysconfdir%g
s%@@sharedstatedir@@%$sharedstatedir%g
s%@@localstatedir@@%$localstatedir%g
s%@@libdir@@%$libdir%g
s%@@includedir@@%$includedir%g
s%@@oldincludedir@@%$oldincludedir%g
s%@@infodir@@%$infodir%g
s%@@mandir@@%$mandir%g
s%@@VERSION@@%$VERSION%g
s%@@host@@%$host%g
s%@@host_alias@@%$host_alias%g
s%@@host_cpu@@%$host_cpu%g
s%@@host_vendor@@%$host_vendor%g
s%@@host_os@@%$host_os%g
s%@@zshenv@@%$zshenv%g
s%@@zshrc@@%$zshrc%g
s%@@zprofile@@%$zprofile%g
s%@@zlogin@@%$zlogin%g
s%@@zlogout@@%$zlogout%g
s%@@CC@@%$CC%g
s%@@CPP@@%$CPP%g
s%@@U@@%$U%g
s%@@SET_MAKE@@%$SET_MAKE%g
s%@@INSTALL_PROGRAM@@%$INSTALL_PROGRAM%g
s%@@INSTALL_DATA@@%$INSTALL_DATA%g
s%@@AWK@@%$AWK%g
s%@@SIGNAL_H@@%$SIGNAL_H%g

CEOF
EOF
cat >> $CONFIG_STATUS <<EOF

CONFIG_FILES=\${CONFIG_FILES-"Makefile Src/Makefile Doc/Makefile Etc/Makefile Misc/Makefile \
Util/Makefile Functions/Makefile StartupFiles/Makefile"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  # Adjust relative srcdir, etc. for subdirectories.

  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  *) # Relative path.
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  esac

  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  esac
  echo creating "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  case "$ac_file" in
  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
  *) ac_comsub= ;;
  esac
  sed -e "$ac_comsub
s%@@configure_input@@%$configure_input%g
s%@@srcdir@@%$srcdir%g
s%@@top_srcdir@@%$top_srcdir%g
s%@@INSTALL@@%$INSTALL%g
" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
fi; done
rm -f conftest.subs

# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'

CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  echo creating $ac_file

  rm -f conftest.frag conftest.in conftest.out
  cp $ac_given_srcdir/$ac_file_in conftest.in

EOF

# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h.  And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr

# This sed command replaces #undef with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF

# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
# Maximum number of lines to put in a single here document.
ac_max_here_lines=12

rm -f conftest.tail
while :
do
  ac_lines=`grep -c . conftest.vals`
  # grep -c gives empty output for an empty file on some AIX systems.
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  # Write a limited-size here document to conftest.frag.
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  echo 'CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in
' >> $CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  rm -f conftest.vals
  mv conftest.tail conftest.vals
done
rm -f conftest.vals

cat >> $CONFIG_STATUS <<\EOF
  rm -f conftest.frag conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  cat conftest.in >> conftest.h
  rm -f conftest.in
  if cmp -s $ac_file conftest.h 2>/dev/null; then
    echo "$ac_file is unchanged"
    rm -f conftest.h
  else
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
    fi
    rm -f $ac_file
    mv conftest.h $ac_file
  fi
fi; done


\
test -z "$CONFIG_HEADERS" || echo > stamp-h
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1


eval "zshbin1=${bindir}"
eval "zshbin2=${zshbin1}"
eval "zshman=${mandir}"
eval "zshinfo=${infodir}"

echo "
zsh configuration
-----------------
zsh version           : ${VERSION}
host operating system : ${host_os}
source code location  : ${srcdir}
compiler              : ${CC}
compiler flags        : ${CFLAGS}
binary install path   : ${zshbin2}
man page install path : ${zshman}
info install path     : ${zshinfo}"
echo ""

@


2.27
log
@allow cross-compiling
@
text
@d2133 1
a2133 39
  echo $ac_n "checking for -lcraylm""... $ac_c" 1>&6
ac_lib_var=`echo craylm'_'krb | tr './+\055' '__p_'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lcraylm rpcsvc $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2142 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char krb();

int main() { return 0; }
int t() {
krb()
; return 0; }
EOF
if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  nisdb
else
  echo "$ac_t""no" 1>&6
nsl
fi

d2141 1
a2141 1
#line 2180 "configure"
d2155 1
a2155 1
if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2174 1
a2174 1
#line 2213 "configure"
d2182 1
a2182 1
if { (eval echo configure:2221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2220 1
a2220 1
#line 2259 "configure"
d2224 1
a2224 1
{ (eval echo configure:2263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2247 1
a2247 1
#line 2286 "configure"
d2265 1
a2265 1
if { (eval echo configure:2304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2287 1
a2287 1
#line 2326 "configure"
d2318 1
a2318 1
#line 2357 "configure"
d2349 1
a2349 1
#line 2388 "configure"
d2380 1
a2380 1
#line 2419 "configure"
d2413 1
a2413 1
#line 2452 "configure"
d2445 1
a2445 1
#line 2484 "configure"
d2454 1
a2454 1
if { (eval echo configure:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2478 1
a2478 1
#line 2517 "configure"
d2486 1
a2486 1
if { (eval echo configure:2525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2513 1
a2513 1
#line 2552 "configure"
d2568 1
a2568 1
{ (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2600 1
a2600 1
#line 2639 "configure"
d2624 1
a2624 1
if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2655 1
a2655 1
#line 2694 "configure"
d2660 1
a2660 1
{ (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2845 1
a2845 1
#line 2884 "configure"
d2854 1
a2854 1
if { (eval echo configure:2893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2878 1
a2878 1
#line 2917 "configure"
d2887 1
a2887 1
if { (eval echo configure:2926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2913 1
a2913 1
#line 2952 "configure"
d2922 1
a2922 1
if { (eval echo configure:2961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
@


2.26
log
@make compilation possible on OSF/1 V4.x with gcc
@
text
@d1186 1
a1186 1
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d1214 1
a1214 1
       
d1220 1
a1220 1
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d2255 1
a2255 1
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
d2690 1
a2690 1
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
@


2.25
log
@changes to enable NIS+ username completion on Unicos based
on information given by Charles Finan <chf@@bear.com>.
@
text
@d2944 36
@


2.24
log
@on AIX curses should always be preferred to termcap
@
text
@d2132 42
d2179 1
a2179 1
#line 2138 "configure"
d2193 1
a2193 1
if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2212 1
a2212 1
#line 2171 "configure"
d2220 1
a2220 1
if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2258 1
a2258 1
#line 2217 "configure"
d2262 1
a2262 1
{ (eval echo configure:2221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2285 1
a2285 1
#line 2244 "configure"
d2303 1
a2303 1
if { (eval echo configure:2262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2325 1
a2325 1
#line 2284 "configure"
d2356 1
a2356 1
#line 2315 "configure"
d2387 1
a2387 1
#line 2346 "configure"
d2418 1
a2418 1
#line 2377 "configure"
d2451 1
a2451 1
#line 2410 "configure"
d2483 1
a2483 1
#line 2442 "configure"
d2492 1
a2492 1
if { (eval echo configure:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2516 1
a2516 1
#line 2475 "configure"
d2524 1
a2524 1
if { (eval echo configure:2483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2551 1
a2551 1
#line 2510 "configure"
d2606 1
a2606 1
{ (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2638 1
a2638 1
#line 2597 "configure"
d2662 1
a2662 1
if { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2693 1
a2693 1
#line 2652 "configure"
d2698 1
a2698 1
{ (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2883 1
a2883 1
#line 2842 "configure"
d2892 1
a2892 1
if { (eval echo configure:2851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2916 1
a2916 1
#line 2875 "configure"
d2925 1
a2925 1
if { (eval echo configure:2884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
@


2.23
log
@setting the USERNAME parameter executes initgroups()
@
text
@d1985 1
a1985 1
if test `echo $host_os | sed 's/^.*\(aix3\.2\).*$/\1/'` = aix3.2; then
@


2.22
log
@define HAVE_NIS_PLUS only if the nis_list function is found
@
text
@d2588 2
a2589 1
              sigprocmask setuid seteuid setreuid setresuid strerror nis_list
d2596 1
a2596 1
#line 2596 "configure"
d2620 1
a2620 1
if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2651 1
a2651 1
#line 2651 "configure"
d2656 1
a2656 1
{ (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2841 1
a2841 1
#line 2841 "configure"
d2850 1
a2850 1
if { (eval echo configure:2850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2874 1
a2874 1
#line 2874 "configure"
d2883 1
a2883 1
if { (eval echo configure:2883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
@


2.21
log
@remove -DDEBUG from the default CFLAGS
@
text
@d2588 1
a2588 1
              sigprocmask setuid seteuid setreuid setresuid strerror
d2772 2
a2773 1
  test -f /usr/bin/nisls && /usr/bin/nisls > /dev/null 2>&1 && \
d2840 1
a2840 1
#line 2840 "configure"
d2849 1
a2849 1
if { (eval echo configure:2849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2873 1
a2873 1
#line 2873 "configure"
d2882 1
a2882 1
if { (eval echo configure:2882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
@


2.20
log
@test for the echo style of /bin/sh
@
text
@d912 1
a912 1
      CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -O2 -DDEBUG"
d914 1
a914 1
      CFLAGS="$CFLAGS -O -DDEBUG"
@


2.19
log
@configure check for working strcoll()
@
text
@d2900 11
@


2.18
log
@cache broken signed to unsigned char conversion, and the path for
utmp/wtmp/signals.h.  Modified cache variable names according to
the GNU aucoconf standard.  From Zefram (1698)
@
text
@d2586 3
a2588 3
              getlogin setpgid gettimeofday gethostname mkfifo wait3 difftime  \
              sigblock sigsetmask sigrelse sighold killpg sigaction getrlimit  \
              sigprocmask setuid seteuid setreuid setresuid strerror strcoll
d2642 32
d2839 1
a2839 1
#line 2808 "configure"
d2848 1
a2848 1
if { (eval echo configure:2817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2872 1
a2872 1
#line 2841 "configure"
d2881 1
a2881 1
if { (eval echo configure:2850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
@


2.17
log
@use strcoll for sorting.  From Andrej Borsenkow
<borsenkow.msk@@sni.de> (1599) with some modifications
@
text
@d1216 1
a1216 1
if eval "test \"`echo '$''{'zsh_broken_signed_to_unsigned_casting'+set}'`\" = set"; then
d1229 1
a1229 1
  zsh_broken_signed_to_unsigned_casting=yes
d1231 1
a1231 1
  zsh_broken_signed_to_unsigned_casting=no
d1237 2
a1238 2
echo "$ac_t""$zsh_broken_signed_to_unsigned_casting" 1>&6
if test $zsh_broken_signed_to_unsigned_casting = yes; then
d1750 1
a1750 1
if eval "test \"`echo '$''{'zsh_cv_time_h_select_h_conflicts'+set}'`\" = set"; then
d1765 1
a1765 1
  zsh_cv_time_h_select_h_conflicts=no
d1768 1
a1768 1
  zsh_cv_time_h_select_h_conflicts=yes
d1774 2
a1775 2
echo "$ac_t""$zsh_cv_time_h_select_h_conflicts" 1>&6
  if test $zsh_cv_time_h_select_h_conflicts = yes; then
d1784 1
a1784 1
if eval "test \"`echo '$''{'zsh_cv_func_ut_host_in_utmp'+set}'`\" = set"; then
d1799 1
a1799 1
  zsh_cv_func_ut_host_in_utmp=yes
d1802 1
a1802 1
  zsh_cv_func_ut_host_in_utmp=no
d1808 2
a1809 2
echo "$ac_t""$zsh_cv_func_ut_host_in_utmp" 1>&6
if test $zsh_cv_func_ut_host_in_utmp = yes; then
d1819 1
a1819 1
if eval "test \"`echo '$''{'zsh_cv_func_ut_host_in_utmpx'+set}'`\" = set"; then
d1834 1
a1834 1
  zsh_cv_func_ut_host_in_utmpx=yes
d1837 1
a1837 1
  zsh_cv_func_ut_host_in_utmpx=no
d1843 2
a1844 2
echo "$ac_t""$zsh_cv_func_ut_host_in_utmpx" 1>&6
  if test $zsh_cv_func_ut_host_in_utmpx = yes; then
d1887 1
a1887 1
if eval "test \"`echo '$''{'zsh_cv_sys_tiocgwinsz_in_termios_h'+set}'`\" = set"; then
d1902 1
a1902 1
  zsh_cv_sys_tiocgwinsz_in_termios_h=yes
d1905 1
a1905 1
  zsh_cv_sys_tiocgwinsz_in_termios_h=no
d1911 1
a1911 1
echo "$ac_t""$zsh_cv_sys_tiocgwinsz_in_termios_h" 1>&6
d1913 1
a1913 1
  zsh_cv_sys_tiocgwinsz_in_termios_h=no
d1916 1
a1916 1
if test $zsh_cv_sys_tiocgwinsz_in_termios_h = no; then
d1918 1
a1918 1
if eval "test \"`echo '$''{'zsh_cv_sys_tiocgwinsz_in_sys_ioctl_h'+set}'`\" = set"; then
d1933 1
a1933 1
  zsh_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
d1936 1
a1936 1
  zsh_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
d1942 2
a1943 2
echo "$ac_t""$zsh_cv_sys_tiocgwinsz_in_sys_ioctl_h" 1>&6
  if test $zsh_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
d2133 1
a2133 1
if eval "test \"`echo '$''{'zsh_cv_include_defines_ospeed'+set}'`\" = set"; then
d2153 1
a2153 1
  zsh_cv_include_defines_ospeed=yes
d2156 1
a2156 1
  zsh_cv_include_defines_ospeed=no
d2162 1
a2162 1
echo "$ac_t""$zsh_cv_include_defines_ospeed" 1>&6
d2164 1
a2164 1
if test $zsh_cv_include_defines_ospeed = no; then
d2166 1
a2166 1
if eval "test \"`echo '$''{'zsh_cv_must_define_ospeed'+set}'`\" = set"; then
d2180 1
a2180 1
  zsh_cv_must_define_ospeed=yes
d2183 1
a2183 1
  zsh_cv_must_define_ospeed=no
d2189 1
a2189 1
echo "$ac_t""$zsh_cv_must_define_ospeed" 1>&6
d2192 1
a2192 1
if test $zsh_cv_include_defines_ospeed = yes; then
d2197 1
a2197 1
elif test $zsh_cv_must_define_ospeed = yes; then
d2209 1
a2209 1
if eval "test \"`echo '$''{'zsh_cv_tgetent_accepts_null'+set}'`\" = set"; then
d2222 1
a2222 1
  zsh_cv_tgetent_accepts_null=yes
d2224 1
a2224 1
  zsh_cv_tgetent_accepts_null=no
d2230 2
a2231 2
echo "$ac_t""$zsh_cv_tgetent_accepts_null" 1>&6
if test $zsh_cv_tgetent_accepts_null = yes; then
d2437 1
a2437 1
if eval "test \"`echo '$''{'zsh_cv_sigset_t'+set}'`\" = set"; then
d2452 1
a2452 1
  zsh_cv_sigset_t=yes
d2455 1
a2455 1
  zsh_cv_sigset_t=no
d2461 2
a2462 2
echo "$ac_t""$zsh_cv_sigset_t" 1>&6
if test $zsh_cv_sigset_t = no; then
d2675 4
a2678 1
for SIGNAL_H in /usr/include/bsd/sys/signal.h                   /usr/include/asm/signal.h                       /usr/include/linux/signal.h                     /usr/include/sys/signal.h                       /dev/null;                      do
d2683 6
a2688 1
echo "$ac_t""$SIGNAL_H" 1>&6
d2691 1
a2691 1
if eval "test \"`echo '$''{'zsh_cv_have_dev_fd'+set}'`\" = set"; then
d2694 1
a2694 1
  test -d /dev/fd && zsh_cv_have_dev_fd=yes || zsh_cv_have_dev_fd=no
d2697 2
a2698 2
echo "$ac_t""$zsh_cv_have_dev_fd" 1>&6
if test $zsh_cv_have_dev_fd = yes; then
d2706 1
a2706 1
if eval "test \"`echo '$''{'zsh_cv_have_superroot'+set}'`\" = set"; then
d2709 1
a2709 1
  test -d /../.LOCALROOT && zsh_cv_have_superroot=yes || zsh_cv_have_superroot=no
d2712 2
a2713 2
echo "$ac_t""$zsh_cv_have_superroot" 1>&6
if test $zsh_cv_have_superroot = yes; then
d2721 1
a2721 1
if eval "test \"`echo '$''{'zsh_cv_have_nis'+set}'`\" = set"; then
d2725 1
a2725 1
zsh_cv_have_nis=yes || zsh_cv_have_nis=no
d2728 2
a2729 2
echo "$ac_t""$zsh_cv_have_nis" 1>&6
if test $zsh_cv_have_nis = yes; then
d2737 1
a2737 1
if eval "test \"`echo '$''{'zsh_cv_have_nis_plus'+set}'`\" = set"; then
d2741 1
a2741 1
zsh_cv_have_nis_plus=yes || zsh_cv_have_nis_plus=no
d2744 2
a2745 2
echo "$ac_t""$zsh_cv_have_nis_plus" 1>&6
if test $zsh_cv_have_nis_plus = yes; then
d2753 4
a2756 1
for utmp_file in /etc/utmp                        /usr/etc/utmp                    /var/adm/utmp                    /usr/adm/utmp                    /var/run/utmp                    /dev/null;      do
d2759 5
a2763 1
echo "$ac_t""$utmp_file" 1>&6
d2765 1
a2765 1
#define UTMP_FILE_CONFIG "$utmp_file"
d2770 4
a2773 1
for wtmp_file in /etc/wtmp                       /usr/etc/wtmp                   /var/adm/wtmp                   /usr/adm/wtmp                   /var/log/wtmp                   /dev/null;     do
d2776 5
d2782 1
a2782 1
#define WTMP_FILE_CONFIG "$wtmp_file"
a2784 1
echo "$ac_t""$wtmp_file" 1>&6
d2787 1
a2787 1
if eval "test \"`echo '$''{'zsh_cv_clobbers_typeahead'+set}'`\" = set"; then
d2791 1
a2791 1
zsh_cv_clobbers_typeahead=yes || zsh_cv_clobbers_typeahead=no
d2794 2
a2795 2
echo "$ac_t""$zsh_cv_clobbers_typeahead" 1>&6
if test $zsh_cv_clobbers_typeahead = yes; then
d2803 1
a2803 1
if eval "test \"`echo '$''{'zsh_cv_brk_proto_in_unistd_h'+set}'`\" = set"; then
d2807 1
a2807 1
#line 2786 "configure"
d2816 1
a2816 1
if { (eval echo configure:2795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2818 1
a2818 1
  zsh_cv_brk_proto_in_unistd_h=no
d2821 1
a2821 1
  zsh_cv_brk_proto_in_unistd_h=yes
d2827 2
a2828 2
echo "$ac_t""$zsh_cv_brk_proto_in_unistd_h" 1>&6
if test $zsh_cv_brk_proto_in_unistd_h = yes; then
d2836 1
a2836 1
if eval "test \"`echo '$''{'zsh_cv_sbrk_proto_in_unistd_h'+set}'`\" = set"; then
d2840 1
a2840 1
#line 2819 "configure"
d2849 1
a2849 1
if { (eval echo configure:2828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2851 1
a2851 1
  zsh_cv_sbrk_proto_in_unistd_h=no
d2854 1
a2854 1
  zsh_cv_sbrk_proto_in_unistd_h=yes
d2860 2
a2861 2
echo "$ac_t""$zsh_cv_sbrk_proto_in_unistd_h" 1>&6
if test $zsh_cv_sbrk_proto_in_unistd_h = yes; then
@


2.16
log
@configure check for NIS+ and some othe related changes.
From Peter (1530) and me
@
text
@d2588 1
a2588 1
              sigprocmask setuid seteuid setreuid setresuid strerror
@


2.15
log
@--enable-etcdir is back.  The customized locations are put into the manual
@
text
@d2722 18
a2739 2
  cat >> confdefs.h <<EOF
#define HAVE_NIS "1"
d2785 1
a2785 1
#line 2770 "configure"
d2794 1
a2794 1
if { (eval echo configure:2779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2818 1
a2818 1
#line 2803 "configure"
d2827 1
a2827 1
if { (eval echo configure:2812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
@


2.14
log
@replace --enable-etcdir with --enable-{zshenv,zshrc,zlogin, zprofile,zlogout}
@
text
@d27 2
d33 2
a36 2
  --enable-zprofile=pathname the full pathname of the global zprofile script"
ac_help="$ac_help
d669 9
d681 6
a686 4
  if test x$enableval != xno; then
  scriptpath="$enableval"
 else
  scriptpath=
a687 2
else
  scriptpath=/etc/zshenv
d690 1
a690 1
if test -n "$scriptpath"; then
d692 1
a692 1
#define GLOBAL_ZSHENV "$scriptpath"
d700 6
a705 4
  if test x$enableval != xno; then
  scriptpath="$enableval"
 else
  scriptpath=
a706 2
else
  scriptpath=/etc/zshrc
d709 1
a709 1
if test -n "$scriptpath"; then
d711 1
a711 1
#define GLOBAL_ZSHRC "$scriptpath"
d716 9
a724 7
# Check whether --enable-zlogin or --disable-zlogin was given.
if test "${enable_zlogin+set}" = set; then
  enableval="$enable_zlogin"
  if test x$enableval != xno; then
  scriptpath="$enableval"
 else
  scriptpath=
a725 2
else
  scriptpath=/etc/zlogin
d728 1
a728 1
if test -n "$scriptpath"; then
d730 1
a730 1
#define GLOBAL_ZLOGIN "$scriptpath"
d735 9
a743 7
# Check whether --enable-zprofile or --disable-zprofile was given.
if test "${enable_zprofile+set}" = set; then
  enableval="$enable_zprofile"
  if test x$enableval != xno; then
  scriptpath="$enableval"
 else
  scriptpath=
a744 2
else
  scriptpath=/etc/zprofile
d747 1
a747 1
if test -n "$scriptpath"; then
d749 1
a749 1
#define GLOBAL_ZPROFILE "$scriptpath"
d757 6
a762 4
  if test x$enableval != xno; then
  scriptpath="$enableval"
 else
  scriptpath=
a763 2
else
  scriptpath=/etc/zlogout
d766 1
a766 1
if test -n "$scriptpath"; then
d768 1
a768 1
#define GLOBAL_ZLOGOUT "$scriptpath"
d773 1
d865 1
a865 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d939 1
a939 1
#line 928 "configure"
d945 1
a945 1
{ (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d954 1
a954 1
#line 943 "configure"
d960 1
a960 1
{ (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d986 1
a986 1
#line 975 "configure"
d1004 1
a1004 1
#line 993 "configure"
d1029 1
a1029 1
#line 1018 "configure"
d1079 1
a1079 1
if { (eval echo configure:1068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1106 1
a1106 1
#line 1095 "configure"
d1110 1
a1110 1
{ (eval echo configure:1099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1138 1
a1138 1
#line 1127 "configure"
d1151 1
a1151 1
if { (eval echo configure:1140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1189 1
a1189 1
#line 1178 "configure"
d1200 1
a1200 1
{ (eval echo configure:1189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1223 1
a1223 1
#line 1212 "configure"
d1227 1
a1227 1
{ (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1369 1
a1369 1
#line 1358 "configure"
d1378 1
a1378 1
if { (eval echo configure:1367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1409 1
a1409 1
#line 1398 "configure"
d1421 1
a1421 1
if { (eval echo configure:1410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1448 1
a1448 1
#line 1437 "configure"
d1460 1
a1460 1
if { (eval echo configure:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1485 1
a1485 1
#line 1474 "configure"
d1493 1
a1493 1
{ (eval echo configure:1482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1508 1
a1508 1
#line 1497 "configure"
d1526 1
a1526 1
#line 1515 "configure"
d1547 1
a1547 1
#line 1536 "configure"
d1558 1
a1558 1
{ (eval echo configure:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1582 1
a1582 1
#line 1571 "configure"
d1592 1
a1592 1
if { (eval echo configure:1581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1616 1
a1616 1
#line 1605 "configure"
d1671 1
a1671 1
#line 1660 "configure"
d1688 1
a1688 1
if { (eval echo configure:1677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1718 1
a1718 1
#line 1707 "configure"
d1723 1
a1723 1
{ (eval echo configure:1712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1754 1
a1754 1
#line 1743 "configure"
d1763 1
a1763 1
if { (eval echo configure:1752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1788 1
a1788 1
#line 1777 "configure"
d1797 1
a1797 1
if { (eval echo configure:1786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1823 1
a1823 1
#line 1812 "configure"
d1832 1
a1832 1
if { (eval echo configure:1821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1861 1
a1861 1
#line 1850 "configure"
d1872 1
a1872 1
if { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1891 1
a1891 1
#line 1880 "configure"
d1900 1
a1900 1
if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1922 1
a1922 1
#line 1911 "configure"
d1931 1
a1931 1
if { (eval echo configure:1920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1957 1
a1957 1
#line 1946 "configure"
d1962 1
a1962 1
{ (eval echo configure:1951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2000 1
a2000 1
#line 1989 "configure"
d2012 1
a2012 1
if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2039 1
a2039 1
#line 2028 "configure"
d2063 1
a2063 1
if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2094 1
a2094 1
#line 2083 "configure"
d2106 1
a2106 1
if { (eval echo configure:2095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2137 1
a2137 1
#line 2126 "configure"
d2151 1
a2151 1
if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2170 1
a2170 1
#line 2159 "configure"
d2178 1
a2178 1
if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2216 1
a2216 1
#line 2205 "configure"
d2220 1
a2220 1
{ (eval echo configure:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2243 1
a2243 1
#line 2232 "configure"
d2261 1
a2261 1
if { (eval echo configure:2250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2283 1
a2283 1
#line 2272 "configure"
d2314 1
a2314 1
#line 2303 "configure"
d2345 1
a2345 1
#line 2334 "configure"
d2376 1
a2376 1
#line 2365 "configure"
d2409 1
a2409 1
#line 2398 "configure"
d2441 1
a2441 1
#line 2430 "configure"
d2450 1
a2450 1
if { (eval echo configure:2439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2474 1
a2474 1
#line 2463 "configure"
d2482 1
a2482 1
if { (eval echo configure:2471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2509 1
a2509 1
#line 2498 "configure"
d2564 1
a2564 1
{ (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2595 1
a2595 1
#line 2584 "configure"
d2619 1
a2619 1
if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2769 1
a2769 1
#line 2758 "configure"
d2778 1
a2778 1
if { (eval echo configure:2767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2802 1
a2802 1
#line 2791 "configure"
d2811 1
a2811 1
if { (eval echo configure:2800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2954 5
@


2.13
log
@check for brk/sbrk prototypes
@
text
@d15 1
a15 1
  --enable-zsh-debug        use it if you want to debug zsh"
d17 1
a17 1
  --enable-zsh-mem          use zsh memory allocation routines"
d19 1
a19 1
  --enable-zsh-mem-debug    debug zsh memory allocation routines"
d21 1
a21 1
  --enable-zsh-mem-warning  print warnings when error in memory allocation"
d23 1
a23 1
  --enable-zsh-secure-free  turn on error checking for free()"
d25 1
a25 1
  --enable-zsh-hash-debug   turn on debugging of internal hash tables"
d27 9
a35 1
  --enable-etcdir=directory the directory for the global zsh scripts"
d667 41
a707 3
# Check whether --enable-etcdir or --disable-etcdir was given.
if test "${enable_etcdir+set}" = set; then
  enableval="$enable_etcdir"
d709 9
d719 1
a719 1
#define ETCDIR "$enableval"
d723 9
d733 6
a738 2
  cat >> confdefs.h <<\EOF
#define ETCDIR "/etc"
d743 18
d853 1
a853 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d927 1
a927 1
#line 842 "configure"
d933 1
a933 1
{ (eval echo configure:848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d942 1
a942 1
#line 857 "configure"
d948 1
a948 1
{ (eval echo configure:863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d974 1
a974 1
#line 889 "configure"
d992 1
a992 1
#line 907 "configure"
d1017 1
a1017 1
#line 932 "configure"
d1067 1
a1067 1
if { (eval echo configure:982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1094 1
a1094 1
#line 1009 "configure"
d1098 1
a1098 1
{ (eval echo configure:1013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1126 1
a1126 1
#line 1041 "configure"
d1139 1
a1139 1
if { (eval echo configure:1054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1177 1
a1177 1
#line 1092 "configure"
d1188 1
a1188 1
{ (eval echo configure:1103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1211 1
a1211 1
#line 1126 "configure"
d1215 1
a1215 1
{ (eval echo configure:1130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1357 1
a1357 1
#line 1272 "configure"
d1366 1
a1366 1
if { (eval echo configure:1281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1397 1
a1397 1
#line 1312 "configure"
d1409 1
a1409 1
if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1436 1
a1436 1
#line 1351 "configure"
d1448 1
a1448 1
if { (eval echo configure:1363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1473 1
a1473 1
#line 1388 "configure"
d1481 1
a1481 1
{ (eval echo configure:1396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1496 1
a1496 1
#line 1411 "configure"
d1514 1
a1514 1
#line 1429 "configure"
d1535 1
a1535 1
#line 1450 "configure"
d1546 1
a1546 1
{ (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1570 1
a1570 1
#line 1485 "configure"
d1580 1
a1580 1
if { (eval echo configure:1495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1604 1
a1604 1
#line 1519 "configure"
d1659 1
a1659 1
#line 1574 "configure"
d1676 1
a1676 1
if { (eval echo configure:1591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1706 1
a1706 1
#line 1621 "configure"
d1711 1
a1711 1
{ (eval echo configure:1626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1742 1
a1742 1
#line 1657 "configure"
d1751 1
a1751 1
if { (eval echo configure:1666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1776 1
a1776 1
#line 1691 "configure"
d1785 1
a1785 1
if { (eval echo configure:1700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1811 1
a1811 1
#line 1726 "configure"
d1820 1
a1820 1
if { (eval echo configure:1735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1849 1
a1849 1
#line 1764 "configure"
d1860 1
a1860 1
if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1879 1
a1879 1
#line 1794 "configure"
d1888 1
a1888 1
if { (eval echo configure:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1910 1
a1910 1
#line 1825 "configure"
d1919 1
a1919 1
if { (eval echo configure:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1945 1
a1945 1
#line 1860 "configure"
d1950 1
a1950 1
{ (eval echo configure:1865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1988 1
a1988 1
#line 1903 "configure"
d2000 1
a2000 1
if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2027 1
a2027 1
#line 1942 "configure"
d2051 1
a2051 1
if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2082 1
a2082 1
#line 1997 "configure"
d2094 1
a2094 1
if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2125 1
a2125 1
#line 2040 "configure"
d2139 1
a2139 1
if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2158 1
a2158 1
#line 2073 "configure"
d2166 1
a2166 1
if { (eval echo configure:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2204 1
a2204 1
#line 2119 "configure"
d2208 1
a2208 1
{ (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2231 1
a2231 1
#line 2146 "configure"
d2249 1
a2249 1
if { (eval echo configure:2164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2271 1
a2271 1
#line 2186 "configure"
d2302 1
a2302 1
#line 2217 "configure"
d2333 1
a2333 1
#line 2248 "configure"
d2364 1
a2364 1
#line 2279 "configure"
d2397 1
a2397 1
#line 2312 "configure"
d2429 1
a2429 1
#line 2344 "configure"
d2438 1
a2438 1
if { (eval echo configure:2353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2462 1
a2462 1
#line 2377 "configure"
d2470 1
a2470 1
if { (eval echo configure:2385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2497 1
a2497 1
#line 2412 "configure"
d2552 1
a2552 1
{ (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2583 1
a2583 1
#line 2498 "configure"
d2607 1
a2607 1
if { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2757 1
a2757 1
#line 2672 "configure"
d2766 1
a2766 1
if { (eval echo configure:2681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2790 1
a2790 1
#line 2705 "configure"
d2799 1
a2799 1
if { (eval echo configure:2714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
@


2.12
log
@--enable-etcdir added
@
text
@d2666 66
@


2.11
log
@remove -pedantic from gcc options
@
text
@d26 2
d659 17
d767 1
a767 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d841 1
a841 1
#line 823 "configure"
d847 1
a847 1
{ (eval echo configure:829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d856 1
a856 1
#line 838 "configure"
d862 1
a862 1
{ (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d888 1
a888 1
#line 870 "configure"
d906 1
a906 1
#line 888 "configure"
d931 1
a931 1
#line 913 "configure"
d981 1
a981 1
if { (eval echo configure:963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1008 1
a1008 1
#line 990 "configure"
d1012 1
a1012 1
{ (eval echo configure:994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1040 1
a1040 1
#line 1022 "configure"
d1053 1
a1053 1
if { (eval echo configure:1035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1091 1
a1091 1
#line 1073 "configure"
d1102 1
a1102 1
{ (eval echo configure:1084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1125 1
a1125 1
#line 1107 "configure"
d1129 1
a1129 1
{ (eval echo configure:1111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1271 1
a1271 1
#line 1253 "configure"
d1280 1
a1280 1
if { (eval echo configure:1262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1311 1
a1311 1
#line 1293 "configure"
d1323 1
a1323 1
if { (eval echo configure:1305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1350 1
a1350 1
#line 1332 "configure"
d1362 1
a1362 1
if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1387 1
a1387 1
#line 1369 "configure"
d1395 1
a1395 1
{ (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1410 1
a1410 1
#line 1392 "configure"
d1428 1
a1428 1
#line 1410 "configure"
d1449 1
a1449 1
#line 1431 "configure"
d1460 1
a1460 1
{ (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1484 1
a1484 1
#line 1466 "configure"
d1494 1
a1494 1
if { (eval echo configure:1476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1518 1
a1518 1
#line 1500 "configure"
d1573 1
a1573 1
#line 1555 "configure"
d1590 1
a1590 1
if { (eval echo configure:1572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1620 1
a1620 1
#line 1602 "configure"
d1625 1
a1625 1
{ (eval echo configure:1607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1656 1
a1656 1
#line 1638 "configure"
d1665 1
a1665 1
if { (eval echo configure:1647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1690 1
a1690 1
#line 1672 "configure"
d1699 1
a1699 1
if { (eval echo configure:1681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1725 1
a1725 1
#line 1707 "configure"
d1734 1
a1734 1
if { (eval echo configure:1716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1763 1
a1763 1
#line 1745 "configure"
d1774 1
a1774 1
if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1793 1
a1793 1
#line 1775 "configure"
d1802 1
a1802 1
if { (eval echo configure:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1824 1
a1824 1
#line 1806 "configure"
d1833 1
a1833 1
if { (eval echo configure:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1859 1
a1859 1
#line 1841 "configure"
d1864 1
a1864 1
{ (eval echo configure:1846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1902 1
a1902 1
#line 1884 "configure"
d1914 1
a1914 1
if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1941 1
a1941 1
#line 1923 "configure"
d1965 1
a1965 1
if { (eval echo configure:1947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1996 1
a1996 1
#line 1978 "configure"
d2008 1
a2008 1
if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2039 1
a2039 1
#line 2021 "configure"
d2053 1
a2053 1
if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2072 1
a2072 1
#line 2054 "configure"
d2080 1
a2080 1
if { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2118 1
a2118 1
#line 2100 "configure"
d2122 1
a2122 1
{ (eval echo configure:2104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2145 1
a2145 1
#line 2127 "configure"
d2163 1
a2163 1
if { (eval echo configure:2145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2185 1
a2185 1
#line 2167 "configure"
d2216 1
a2216 1
#line 2198 "configure"
d2247 1
a2247 1
#line 2229 "configure"
d2278 1
a2278 1
#line 2260 "configure"
d2311 1
a2311 1
#line 2293 "configure"
d2343 1
a2343 1
#line 2325 "configure"
d2352 1
a2352 1
if { (eval echo configure:2334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2376 1
a2376 1
#line 2358 "configure"
d2384 1
a2384 1
if { (eval echo configure:2366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2411 1
a2411 1
#line 2393 "configure"
d2466 1
a2466 1
{ (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2497 1
a2497 1
#line 2479 "configure"
d2521 1
a2521 1
if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
@


2.10
log
@Special parameter changes: remove HOSTTYPE, and disable cdpath, fignore,
fpath, mailpath, manpath, watch, psvar and path in sh/ksh compatibility mode.
@
text
@d789 1
a789 1
      CFLAGS="$CFLAGS -pedantic -Wall -Wno-implicit -Wmissing-prototypes -DDEBUG -g"
d795 1
a795 1
      CFLAGS="$CFLAGS -pedantic -Wall -Wno-implicit -Wmissing-prototypes -O2 -DDEBUG"
@


2.9
log
@use -pedantic with gcc
@
text
@a577 4
#define HOSTTYPE "$host_os"
EOF

cat >> confdefs.h <<EOF
d748 1
a748 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d822 1
a822 1
#line 827 "configure"
d828 1
a828 1
{ (eval echo configure:833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d837 1
a837 1
#line 842 "configure"
d843 1
a843 1
{ (eval echo configure:848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d869 1
a869 1
#line 874 "configure"
d887 1
a887 1
#line 892 "configure"
d912 1
a912 1
#line 917 "configure"
d962 1
a962 1
if { (eval echo configure:967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d989 1
a989 1
#line 994 "configure"
d993 1
a993 1
{ (eval echo configure:998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1021 1
a1021 1
#line 1026 "configure"
d1034 1
a1034 1
if { (eval echo configure:1039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1072 1
a1072 1
#line 1077 "configure"
d1083 1
a1083 1
{ (eval echo configure:1088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1106 1
a1106 1
#line 1111 "configure"
d1110 1
a1110 1
{ (eval echo configure:1115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1252 1
a1252 1
#line 1257 "configure"
d1261 1
a1261 1
if { (eval echo configure:1266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1292 1
a1292 1
#line 1297 "configure"
d1304 1
a1304 1
if { (eval echo configure:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1331 1
a1331 1
#line 1336 "configure"
d1343 1
a1343 1
if { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1368 1
a1368 1
#line 1373 "configure"
d1376 1
a1376 1
{ (eval echo configure:1381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1391 1
a1391 1
#line 1396 "configure"
d1409 1
a1409 1
#line 1414 "configure"
d1430 1
a1430 1
#line 1435 "configure"
d1441 1
a1441 1
{ (eval echo configure:1446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1465 1
a1465 1
#line 1470 "configure"
d1475 1
a1475 1
if { (eval echo configure:1480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1499 1
a1499 1
#line 1504 "configure"
d1554 1
a1554 1
#line 1559 "configure"
d1571 1
a1571 1
if { (eval echo configure:1576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1601 1
a1601 1
#line 1606 "configure"
d1606 1
a1606 1
{ (eval echo configure:1611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1637 1
a1637 1
#line 1642 "configure"
d1646 1
a1646 1
if { (eval echo configure:1651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1671 1
a1671 1
#line 1676 "configure"
d1680 1
a1680 1
if { (eval echo configure:1685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1706 1
a1706 1
#line 1711 "configure"
d1715 1
a1715 1
if { (eval echo configure:1720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1744 1
a1744 1
#line 1749 "configure"
d1755 1
a1755 1
if { (eval echo configure:1760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1774 1
a1774 1
#line 1779 "configure"
d1783 1
a1783 1
if { (eval echo configure:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1805 1
a1805 1
#line 1810 "configure"
d1814 1
a1814 1
if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1840 1
a1840 1
#line 1845 "configure"
d1845 1
a1845 1
{ (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1883 1
a1883 1
#line 1888 "configure"
d1895 1
a1895 1
if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1922 1
a1922 1
#line 1927 "configure"
d1946 1
a1946 1
if { (eval echo configure:1951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1977 1
a1977 1
#line 1982 "configure"
d1989 1
a1989 1
if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2020 1
a2020 1
#line 2025 "configure"
d2034 1
a2034 1
if { (eval echo configure:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2053 1
a2053 1
#line 2058 "configure"
d2061 1
a2061 1
if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2099 1
a2099 1
#line 2104 "configure"
d2103 1
a2103 1
{ (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2126 1
a2126 1
#line 2131 "configure"
d2144 1
a2144 1
if { (eval echo configure:2149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2166 1
a2166 1
#line 2171 "configure"
d2197 1
a2197 1
#line 2202 "configure"
d2228 1
a2228 1
#line 2233 "configure"
d2259 1
a2259 1
#line 2264 "configure"
d2292 1
a2292 1
#line 2297 "configure"
d2324 1
a2324 1
#line 2329 "configure"
d2333 1
a2333 1
if { (eval echo configure:2338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2357 1
a2357 1
#line 2362 "configure"
d2365 1
a2365 1
if { (eval echo configure:2370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2392 1
a2392 1
#line 2397 "configure"
d2447 1
a2447 1
{ (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2478 1
a2478 1
#line 2483 "configure"
d2502 1
a2502 1
if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
@


2.8
log
@add -DDEBUG to the default CFLAGS
@
text
@d793 1
a793 1
      CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -DDEBUG -g"
d799 1
a799 1
      CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -O2 -DDEBUG"
@


2.7
log
@prefer curses over termcap for aix-3.2* and not just for aix-3.2.5
@
text
@d799 1
a799 1
      CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -O2"
d801 1
a801 1
      CFLAGS="$CFLAGS -O"
@


2.6
log
@configure hacks against SCO bugs
@
text
@d1872 1
a1872 1
if test `echo $host_os | sed 's/^.*\(aix3.2.5\)/\1/'` = aix3.2.5; then
@


2.5
log
@Use autoconf-2.10
@
text
@d1594 4
a1597 3
for ac_hdr in sys/time.h sys/times.h sys/select.h termcap.h termio.h termios.h  \
                sys/param.h sys/filio.h string.h memory.h limits.h fcntl.h libc.h  \
                sys/utsname.h sys/resource.h locale.h errno.h stdlib.h unistd.h
d1605 1
a1605 1
#line 1605 "configure"
d1610 1
a1610 1
{ (eval echo configure:1610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1635 35
d1675 1
a1675 1
#line 1640 "configure"
d1684 1
a1684 1
if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1710 1
a1710 1
#line 1675 "configure"
d1719 1
a1719 1
if { (eval echo configure:1684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1748 1
a1748 1
#line 1713 "configure"
d1759 1
a1759 1
if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1778 1
a1778 1
#line 1743 "configure"
d1787 1
a1787 1
if { (eval echo configure:1752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1809 1
a1809 1
#line 1774 "configure"
d1818 1
a1818 1
if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1844 1
a1844 1
#line 1809 "configure"
d1849 1
a1849 1
{ (eval echo configure:1814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1887 1
a1887 1
#line 1852 "configure"
d1899 1
a1899 1
if { (eval echo configure:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1926 1
a1926 1
#line 1891 "configure"
d1950 1
a1950 1
if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1981 1
a1981 1
#line 1946 "configure"
d1993 1
a1993 1
if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2024 1
a2024 1
#line 1989 "configure"
d2038 1
a2038 1
if { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2057 1
a2057 1
#line 2022 "configure"
d2065 1
a2065 1
if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2103 1
a2103 1
#line 2068 "configure"
d2107 1
a2107 1
{ (eval echo configure:2072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2130 1
a2130 1
#line 2095 "configure"
d2148 1
a2148 1
if { (eval echo configure:2113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2170 1
a2170 1
#line 2135 "configure"
d2201 1
a2201 1
#line 2166 "configure"
d2232 1
a2232 1
#line 2197 "configure"
d2263 1
a2263 1
#line 2228 "configure"
d2296 1
a2296 1
#line 2261 "configure"
d2328 1
a2328 1
#line 2293 "configure"
d2337 1
a2337 1
if { (eval echo configure:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2356 32
d2396 1
a2396 1
#line 2329 "configure"
d2451 1
a2451 1
{ (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2482 1
a2482 1
#line 2415 "configure"
d2506 1
a2506 1
if { (eval echo configure:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
@


2.4
log
@added --enable-zsh-debug option
@
text
@d4 1
a4 1
# Generated automatically using autoconf version 2.9 
d345 1
a345 1
    echo "configure generated by autoconf version 2.9"
d1289 1
a1289 1
ac_lib_var=`echo dir_opendir | tr '.-/+' '___p'`
d1299 2
d1308 1
a1308 1
if { (eval echo configure:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1328 1
a1328 1
ac_lib_var=`echo x_opendir | tr '.-/+' '___p'`
d1335 1
a1335 1
#line 1334 "configure"
d1338 2
d1347 1
a1347 1
if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1372 1
a1372 1
#line 1369 "configure"
d1380 1
a1380 1
{ (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1395 1
a1395 1
#line 1392 "configure"
d1413 1
a1413 1
#line 1410 "configure"
d1434 1
a1434 1
#line 1431 "configure"
d1445 1
a1445 1
{ (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1469 1
a1469 1
#line 1466 "configure"
d1479 1
a1479 1
if { (eval echo configure:1476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1503 1
a1503 1
#line 1500 "configure"
d1558 1
a1558 1
#line 1555 "configure"
d1575 1
a1575 1
if { (eval echo configure:1572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1604 1
a1604 1
#line 1601 "configure"
d1609 1
a1609 1
{ (eval echo configure:1606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1639 1
a1639 1
#line 1636 "configure"
d1648 1
a1648 1
if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1674 1
a1674 1
#line 1671 "configure"
d1683 1
a1683 1
if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1712 1
a1712 1
#line 1709 "configure"
d1723 1
a1723 1
if { (eval echo configure:1720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1742 1
a1742 1
#line 1739 "configure"
d1751 1
a1751 1
if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1773 1
a1773 1
#line 1770 "configure"
d1782 1
a1782 1
if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1808 1
a1808 1
#line 1805 "configure"
d1813 1
a1813 1
{ (eval echo configure:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1844 1
a1844 1
ac_lib_var=`echo ${lib}_tgetent | tr '.-/+' '___p'`
d1851 1
a1851 1
#line 1848 "configure"
d1854 2
d1863 1
a1863 1
if { (eval echo configure:1858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1890 1
a1890 1
#line 1885 "configure"
d1896 2
d1914 1
a1914 1
if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1938 1
a1938 1
ac_lib_var=`echo nsl_getdomainname | tr '.-/+' '___p'`
d1945 1
a1945 1
#line 1938 "configure"
d1948 2
d1957 1
a1957 1
if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1988 1
a1988 1
#line 1979 "configure"
d2002 1
a2002 1
if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2021 1
a2021 1
#line 2012 "configure"
d2029 1
a2029 1
if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2067 1
a2067 1
#line 2058 "configure"
d2071 1
a2071 1
{ (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2094 1
a2094 1
#line 2085 "configure"
d2112 1
a2112 1
if { (eval echo configure:2103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2134 1
a2134 1
#line 2125 "configure"
d2165 1
a2165 1
#line 2156 "configure"
d2196 1
a2196 1
#line 2187 "configure"
d2227 1
a2227 1
#line 2218 "configure"
d2260 1
a2260 1
#line 2251 "configure"
d2292 1
a2292 1
#line 2283 "configure"
d2301 1
a2301 1
if { (eval echo configure:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2328 1
a2328 1
#line 2319 "configure"
d2383 1
a2383 1
{ (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2414 1
a2414 1
#line 2405 "configure"
d2420 2
d2438 1
a2438 1
if { (eval echo configure:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2659 1
a2659 1
    echo "$CONFIG_STATUS generated by autoconf version 2.9"
d2868 6
@


2.3
log
@add test for sys/ioctl.h
@
text
@d15 2
d594 7
d662 3
d752 1
a752 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d791 6
a796 2
  if test -n "$GCC"; then
    CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -O2"
d798 5
a802 1
    CFLAGS="$CFLAGS -O"
d826 1
a826 1
#line 807 "configure"
d832 1
a832 1
{ (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d841 1
a841 1
#line 822 "configure"
d847 1
a847 1
{ (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d873 1
a873 1
#line 854 "configure"
d891 1
a891 1
#line 872 "configure"
d916 1
a916 1
#line 897 "configure"
d966 1
a966 1
if { (eval echo configure:947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d993 1
a993 1
#line 974 "configure"
d997 1
a997 1
{ (eval echo configure:978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1025 1
a1025 1
#line 1006 "configure"
d1038 1
a1038 1
if { (eval echo configure:1019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1076 1
a1076 1
#line 1057 "configure"
d1087 1
a1087 1
{ (eval echo configure:1068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1110 1
a1110 1
#line 1091 "configure"
d1114 1
a1114 1
{ (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1256 1
a1256 1
#line 1237 "configure"
d1265 1
a1265 1
if { (eval echo configure:1246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1296 1
a1296 1
#line 1277 "configure"
d1306 1
a1306 1
if { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1333 1
a1333 1
#line 1314 "configure"
d1343 1
a1343 1
if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1368 1
a1368 1
#line 1349 "configure"
d1376 1
a1376 1
{ (eval echo configure:1357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1391 1
a1391 1
#line 1372 "configure"
d1409 1
a1409 1
#line 1390 "configure"
d1430 1
a1430 1
#line 1411 "configure"
d1441 1
a1441 1
{ (eval echo configure:1422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1465 1
a1465 1
#line 1446 "configure"
d1475 1
a1475 1
if { (eval echo configure:1456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1499 1
a1499 1
#line 1480 "configure"
d1554 1
a1554 1
#line 1535 "configure"
d1571 1
a1571 1
if { (eval echo configure:1552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1590 3
a1592 4
for ac_hdr in sys/time.h sys/times.h sys/select.h termcap.h termio.h \
		termios.h  sys/param.h sys/filio.h string.h memory.h \
		limits.h fcntl.h libc.h sys/utsname.h sys/resource.h \
		locale.h errno.h stdlib.h unistd.h sys/ioctl.h
d1600 1
a1600 1
#line 1582 "configure"
d1605 1
a1605 1
{ (eval echo configure:1587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1635 1
a1635 1
#line 1617 "configure"
d1644 1
a1644 1
if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1670 1
a1670 1
#line 1652 "configure"
d1679 1
a1679 1
if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1708 1
a1708 1
#line 1690 "configure"
d1719 1
a1719 1
if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1738 1
a1738 1
#line 1720 "configure"
d1747 1
a1747 1
if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1769 1
a1769 1
#line 1751 "configure"
d1778 1
a1778 1
if { (eval echo configure:1760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1804 1
a1804 1
#line 1786 "configure"
d1809 1
a1809 1
{ (eval echo configure:1791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1847 1
a1847 1
#line 1829 "configure"
d1857 1
a1857 1
if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1884 1
a1884 1
#line 1866 "configure"
d1906 1
a1906 1
if { (eval echo configure:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1937 1
a1937 1
#line 1919 "configure"
d1947 1
a1947 1
if { (eval echo configure:1929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1978 1
a1978 1
#line 1960 "configure"
d1992 1
a1992 1
if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2011 1
a2011 1
#line 1993 "configure"
d2019 1
a2019 1
if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2057 1
a2057 1
#line 2039 "configure"
d2061 1
a2061 1
{ (eval echo configure:2043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2084 1
a2084 1
#line 2066 "configure"
d2102 1
a2102 1
if { (eval echo configure:2084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2124 1
a2124 1
#line 2106 "configure"
d2155 1
a2155 1
#line 2137 "configure"
d2186 1
a2186 1
#line 2168 "configure"
d2217 1
a2217 1
#line 2199 "configure"
d2250 1
a2250 1
#line 2232 "configure"
d2282 1
a2282 1
#line 2264 "configure"
d2291 1
a2291 1
if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2318 1
a2318 1
#line 2300 "configure"
d2373 1
a2373 1
{ (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2404 1
a2404 1
#line 2386 "configure"
d2426 1
a2426 1
if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
@


2.2
log
@Workaround a bug in GNU autoconf which makes configure think that
there is no -lcourses and -lncurses if the test for -ltermcap failed.
From Jnos Farkas <chexum@@shadow.banki.hu>
@
text
@d1570 4
a1573 3
for ac_hdr in sys/time.h sys/times.h sys/select.h termcap.h termio.h termios.h  \
                sys/param.h sys/filio.h string.h memory.h limits.h fcntl.h libc.h  \
                sys/utsname.h sys/resource.h locale.h errno.h stdlib.h unistd.h
d1581 1
a1581 1
#line 1581 "configure"
d1586 1
a1586 1
{ (eval echo configure:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1616 1
a1616 1
#line 1616 "configure"
d1625 1
a1625 1
if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1651 1
a1651 1
#line 1651 "configure"
d1660 1
a1660 1
if { (eval echo configure:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1689 1
a1689 1
#line 1689 "configure"
d1700 1
a1700 1
if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1719 1
a1719 1
#line 1719 "configure"
d1728 1
a1728 1
if { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1750 1
a1750 1
#line 1750 "configure"
d1759 1
a1759 1
if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1785 1
a1785 1
#line 1785 "configure"
d1790 1
a1790 1
{ (eval echo configure:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1828 1
a1828 1
#line 1828 "configure"
d1838 1
a1838 1
if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1865 1
a1865 1
#line 1865 "configure"
d1887 1
a1887 1
if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1918 1
a1918 1
#line 1918 "configure"
d1928 1
a1928 1
if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1959 1
a1959 1
#line 1959 "configure"
d1973 1
a1973 1
if { (eval echo configure:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1992 1
a1992 1
#line 1992 "configure"
d2000 1
a2000 1
if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2038 1
a2038 1
#line 2038 "configure"
d2042 1
a2042 1
{ (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2065 1
a2065 1
#line 2065 "configure"
d2083 1
a2083 1
if { (eval echo configure:2083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2105 1
a2105 1
#line 2105 "configure"
d2136 1
a2136 1
#line 2136 "configure"
d2167 1
a2167 1
#line 2167 "configure"
d2198 1
a2198 1
#line 2198 "configure"
d2231 1
a2231 1
#line 2231 "configure"
d2263 1
a2263 1
#line 2263 "configure"
d2272 1
a2272 1
if { (eval echo configure:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2299 1
a2299 1
#line 2299 "configure"
d2354 1
a2354 1
{ (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2385 1
a2385 1
#line 2385 "configure"
d2407 1
a2407 1
if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
@


2.1
log
@-fwritable strings no longer necessary
@
text
@d1819 2
a1820 2
  echo $ac_n "checking for -l$lib""... $ac_c" 1>&6
ac_lib_var=`echo $lib_tgetent | tr '.-/+' '___p'`
d1825 1
a1825 1
LIBS="-l$lib  $LIBS"
@


2.0
log
@New maintainer: Zoltn Hidvgi <hzoli@@cs.elte.hu>
@
text
@d780 1
a780 1
    CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -fwritable-strings -O2"
@


1.34
log
@*** empty log message ***
@
text
@@


1.33
log
@*** empty log message ***
@
text
@d1812 7
a1818 1
for lib in termcap curses ncurses; do
d1827 1
a1827 1
#line 1822 "configure"
d1837 1
a1837 1
if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1864 1
a1864 1
#line 1859 "configure"
d1886 1
a1886 1
if { (eval echo configure:1881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1917 1
a1917 1
#line 1912 "configure"
d1927 1
a1927 1
if { (eval echo configure:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1958 1
a1958 1
#line 1953 "configure"
d1972 1
a1972 1
if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1991 1
a1991 1
#line 1986 "configure"
d1999 1
a1999 1
if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2037 1
a2037 1
#line 2032 "configure"
d2041 1
a2041 1
{ (eval echo configure:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2064 1
a2064 1
#line 2059 "configure"
d2082 1
a2082 1
if { (eval echo configure:2077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2104 1
a2104 1
#line 2099 "configure"
d2135 1
a2135 1
#line 2130 "configure"
d2166 1
a2166 1
#line 2161 "configure"
d2197 1
a2197 1
#line 2192 "configure"
d2230 1
a2230 1
#line 2225 "configure"
d2262 1
a2262 1
#line 2257 "configure"
d2271 1
a2271 1
if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2298 1
a2298 1
#line 2293 "configure"
d2353 1
a2353 1
{ (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2384 1
a2384 1
#line 2379 "configure"
d2406 1
a2406 1
if { (eval echo configure:2401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
@


1.32
log
@new version generated by autconf-2.9.  rc.
@
text
@a1226 135
for lib in termcap curses; do
  echo $ac_n "checking for -l$lib""... $ac_c" 1>&6
ac_lib_var=`echo $lib_main | tr '.-/+' '___p'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-l$lib  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1237 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
char main();

int main() { return 0; }
int t() {
main()
; return 0; }
EOF
if { (eval echo configure:1247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="$LIBS -l$lib"; break
else
  echo "$ac_t""no" 1>&6
fi

done

for ac_func in getdomainname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1274 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
char $ac_func();

int main() { return 0; }
int t() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:1296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*

fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

if test $ac_cv_func_getdomainname = no; then
  echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
ac_lib_var=`echo nsl_getdomainname | tr '.-/+' '___p'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lnsl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1327 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
char getdomainname();

int main() { return 0; }
int t() {
getdomainname()
; return 0; }
EOF
if { (eval echo configure:1337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo nsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lnsl $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

fi

d1236 1
a1236 1
#line 1372 "configure"
d1245 1
a1245 1
if { (eval echo configure:1381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1276 1
a1276 1
#line 1412 "configure"
d1286 1
a1286 1
if { (eval echo configure:1422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1313 1
a1313 1
#line 1449 "configure"
d1323 1
a1323 1
if { (eval echo configure:1459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1348 1
a1348 1
#line 1484 "configure"
d1356 1
a1356 1
{ (eval echo configure:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1371 1
a1371 1
#line 1507 "configure"
d1389 1
a1389 1
#line 1525 "configure"
d1410 1
a1410 1
#line 1546 "configure"
d1421 1
a1421 1
{ (eval echo configure:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1445 1
a1445 1
#line 1581 "configure"
d1455 1
a1455 1
if { (eval echo configure:1591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1479 1
a1479 1
#line 1615 "configure"
d1534 1
a1534 1
#line 1670 "configure"
d1551 1
a1551 1
if { (eval echo configure:1687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1580 1
a1580 1
#line 1716 "configure"
d1585 1
a1585 1
{ (eval echo configure:1721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1609 1

d1615 1
a1615 1
#line 1752 "configure"
d1624 1
a1624 1
if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1650 1
a1650 1
#line 1787 "configure"
d1659 1
a1659 1
if { (eval echo configure:1796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1688 1
a1688 1
#line 1825 "configure"
d1699 1
a1699 1
if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1718 1
a1718 1
#line 1855 "configure"
d1727 1
a1727 1
if { (eval echo configure:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1749 1
a1749 1
#line 1886 "configure"
d1758 1
a1758 1
if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1784 1
a1784 1
#line 1921 "configure"
d1789 1
a1789 1
{ (eval echo configure:1926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1812 135
d1952 1
a1952 1
#line 1954 "configure"
d1966 1
a1966 1
if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1985 1
a1985 1
#line 1987 "configure"
d1993 1
a1993 1
if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2023 30
d2058 1
a2058 1
#line 2030 "configure"
d2076 1
a2076 1
if { (eval echo configure:2048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2098 1
a2098 1
#line 2070 "configure"
d2129 1
a2129 1
#line 2101 "configure"
d2160 1
a2160 1
#line 2132 "configure"
d2191 1
a2191 1
#line 2163 "configure"
d2224 1
a2224 1
#line 2196 "configure"
d2256 1
a2256 1
#line 2228 "configure"
d2265 1
a2265 1
if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2292 1
a2292 1
#line 2264 "configure"
d2347 1
a2347 1
{ (eval echo configure:2319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2378 1
a2378 1
#line 2350 "configure"
d2400 1
a2400 1
if { (eval echo configure:2372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
@


1.31
log
@*** empty log message ***
@
text
@d4 2
a5 2
# Generated automatically using autoconf version 2.7 
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
d343 1
a343 1
    echo "configure generated by autoconf version 2.7"
d508 3
a510 6
ac_cpp='echo $CPP $CPPFLAGS 1>&5;
$CPP $CPPFLAGS'
ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
a671 1
  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
d681 49
d740 1
a740 1
if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
d806 1
a806 1
#line 762 "configure"
d811 2
a812 1
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d821 1
a821 1
#line 776 "configure"
d826 2
a827 1
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d853 1
a853 1
#line 807 "configure"
d871 1
a871 1
#line 825 "configure"
d896 1
a896 1
#line 850 "configure"
d946 1
a946 1
if eval $ac_compile; then
d973 1
a973 1
#line 927 "configure"
d977 1
a977 1
eval $ac_link
d1005 1
a1005 1
#line 959 "configure"
d1018 1
a1018 1
if eval $ac_compile; then
d1056 1
a1056 1
#line 1010 "configure"
d1067 1
a1067 1
eval $ac_link
d1090 1
a1090 1
#line 1044 "configure"
d1094 1
a1094 1
eval $ac_link
d1229 1
a1229 1
ac_lib_var=`echo $lib | tr '.-/+' '___p'`
d1236 1
a1236 1
#line 1190 "configure"
d1238 2
d1246 1
a1246 1
if eval $ac_link; then
d1273 1
a1273 1
#line 1225 "configure"
d1295 1
a1295 1
if eval $ac_link; then
d1319 1
a1319 1
ac_lib_var=`echo nsl | tr '.-/+' '___p'`
d1326 1
a1326 1
#line 1278 "configure"
d1328 2
d1336 1
a1336 1
if eval $ac_link; then
d1371 1
a1371 1
#line 1321 "configure"
d1380 1
a1380 1
if eval $ac_compile; then
d1404 1
a1404 1
ac_lib_var=`echo dir | tr '.-/+' '___p'`
d1411 1
a1411 1
#line 1361 "configure"
d1413 2
d1421 1
a1421 1
if eval $ac_link; then
d1441 1
a1441 1
ac_lib_var=`echo x | tr '.-/+' '___p'`
d1448 1
a1448 1
#line 1396 "configure"
d1450 2
d1458 1
a1458 1
if eval $ac_link; then
d1483 1
a1483 1
#line 1429 "configure"
d1490 2
a1491 1
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d1506 1
a1506 1
#line 1451 "configure"
d1524 1
a1524 1
#line 1469 "configure"
d1545 1
a1545 1
#line 1490 "configure"
d1556 1
a1556 1
eval $ac_link
d1580 1
a1580 1
#line 1525 "configure"
d1590 1
a1590 1
if eval $ac_compile; then
d1614 1
a1614 1
#line 1559 "configure"
d1669 1
a1669 1
#line 1614 "configure"
d1686 1
a1686 1
if eval $ac_compile; then
d1715 1
a1715 1
#line 1660 "configure"
d1719 2
a1720 1
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d1751 1
a1751 1
#line 1695 "configure"
d1760 1
a1760 1
if eval $ac_link; then
d1786 1
a1786 1
#line 1730 "configure"
d1795 1
a1795 1
if eval $ac_link; then
d1824 1
a1824 1
#line 1768 "configure"
d1835 1
a1835 1
if eval $ac_link; then
d1854 1
a1854 1
#line 1798 "configure"
d1863 1
a1863 1
if eval $ac_link; then
d1885 1
a1885 1
#line 1829 "configure"
d1894 1
a1894 1
if eval $ac_link; then
d1920 1
a1920 1
#line 1864 "configure"
d1924 2
a1925 1
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d1953 1
a1953 1
#line 1896 "configure"
d1967 1
a1967 1
if eval $ac_link; then
d1986 1
a1986 1
#line 1929 "configure"
d1994 1
a1994 1
if eval $ac_link; then
d2029 1
a2029 1
#line 1972 "configure"
d2047 1
a2047 1
if eval $ac_compile; then
d2069 1
a2069 1
#line 2012 "configure"
d2100 1
a2100 1
#line 2043 "configure"
d2131 1
a2131 1
#line 2074 "configure"
d2162 1
a2162 1
#line 2105 "configure"
d2195 1
a2195 1
#line 2138 "configure"
d2227 1
a2227 1
#line 2170 "configure"
d2236 1
a2236 1
if eval $ac_link; then
d2263 1
a2263 1
#line 2206 "configure"
d2318 1
a2318 1
eval $ac_link
d2349 1
a2349 1
#line 2292 "configure"
d2371 1
a2371 1
if eval $ac_link; then
d2592 1
a2592 1
    echo "$CONFIG_STATUS generated by autoconf version 2.7"
d2753 1
a2753 1
s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
@


1.30
log
@*** empty log message ***
@
text
@d4 1
a4 1
# Generated automatically using autoconf version 2.6 
d343 1
a343 1
    echo "configure generated by autoconf version 2.6"
d862 1
a862 1
static struct point const zero;
d1182 1
a1182 1
ac_lib_var=`echo $lib | tr './+' '__p'`
d1270 1
a1270 1
ac_lib_var=`echo nsl | tr './+' '__p'`
d1353 1
a1353 1
ac_lib_var=`echo dir | tr './+' '__p'`
d1388 1
a1388 1
ac_lib_var=`echo x | tr './+' '__p'`
d1486 1
a1486 1
  ac_cv_header_stdc=no
d1979 3
a1981 1
extern "C"
d1983 1
a1983 1
void (*signal ()) ();
d2011 1
a2011 1
#line 2010 "configure"
d2042 1
a2042 1
#line 2041 "configure"
d2073 1
a2073 1
#line 2072 "configure"
d2104 1
a2104 1
#line 2103 "configure"
d2137 1
a2137 1
#line 2136 "configure"
d2169 1
a2169 1
#line 2168 "configure"
d2205 1
a2205 1
#line 2204 "configure"
d2291 1
a2291 1
#line 2290 "configure"
d2534 1
a2534 1
    echo "$CONFIG_STATUS generated by autoconf version 2.6"
d2547 2
d2551 2
a2552 2
sed 's/%@@/@@@@/; s/@@%/@@@@/; s/%g$/@@g/; /@@g$/s/[\\\\&%]/\\\\&/g;
 s/@@@@/%@@/; s/@@@@/@@%/; s/@@g$/%g/' > conftest.subs <<\CEOF
@


1.29
log
@*** empty log message ***
@
text
@a1687 40
echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_sys_errlist'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1694 "configure"
#include "confdefs.h"
#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>		
#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
int main() { return 0; }
int t() {
char *p = sys_errlist[1];
; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  zsh_cv_sys_errlist=yes
else
  rm -rf conftest*
  zsh_cv_sys_errlist=no
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_sys_errlist" 1>&6
if test $zsh_cv_sys_errlist = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_SYS_ERRLIST 1
EOF

fi
d1694 1
a1694 1
#line 1735 "configure"
d1729 1
a1729 1
#line 1770 "configure"
d1767 1
a1767 1
#line 1808 "configure"
d1797 1
a1797 1
#line 1838 "configure"
d1828 1
a1828 1
#line 1869 "configure"
d1863 1
a1863 1
#line 1904 "configure"
d1895 1
a1895 1
#line 1936 "configure"
d1928 1
a1928 1
#line 1969 "configure"
d1971 1
a1971 1
#line 2012 "configure"
d2009 1
a2009 1
#line 2050 "configure"
d2040 1
a2040 1
#line 2081 "configure"
d2071 1
a2071 1
#line 2112 "configure"
d2102 1
a2102 1
#line 2143 "configure"
d2135 1
a2135 1
#line 2176 "configure"
d2167 1
a2167 1
#line 2208 "configure"
d2203 1
a2203 1
#line 2244 "configure"
d2282 1
a2282 1
              sigprocmask setuid seteuid setreuid setresuid
d2289 1
a2289 1
#line 2330 "configure"
@


1.28
log
@*** empty log message ***
@
text
@d4 1
a4 1
# Generated automatically using autoconf version 2.5 
d161 2
a162 1
  --datadir=DIR           read-only architecture-independent data in DIR [PREFIX/share]
d164 2
a165 1
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR [PREFIX/com]
d175 2
a176 1
  --program-transform-name=PROGRAM run sed PROGRAM on installed program names
a189 1
--enable and --with options recognized:$ac_help
d191 3
d343 1
a343 1
    echo "configure generated by autoconf version 2.5"
d761 1
a761 1
#line 757 "configure"
d775 1
a775 1
#line 771 "configure"
d806 1
a806 1
#line 802 "configure"
d824 1
a824 1
#line 820 "configure"
d849 1
a849 1
#line 845 "configure"
d926 1
a926 1
#line 922 "configure"
d958 1
a958 1
#line 954 "configure"
d1009 1
a1009 1
#line 1005 "configure"
d1043 1
a1043 1
#line 1039 "configure"
d1189 1
a1189 1
#line 1185 "configure"
d1224 1
a1224 1
#line 1220 "configure"
d1277 1
a1277 1
#line 1273 "configure"
d1320 1
a1320 1
#line 1316 "configure"
d1360 1
a1360 1
#line 1356 "configure"
d1395 1
a1395 1
#line 1391 "configure"
d1428 1
a1428 1
#line 1424 "configure"
d1450 1
a1450 1
#line 1446 "configure"
d1468 1
a1468 1
#line 1464 "configure"
d1489 1
a1489 1
#line 1485 "configure"
d1524 1
a1524 1
#line 1520 "configure"
d1558 1
a1558 1
#line 1554 "configure"
d1613 1
a1613 1
#line 1609 "configure"
d1659 1
a1659 1
#line 1655 "configure"
d1693 1
a1693 1
#line 1689 "configure"
d1734 1
a1734 1
#line 1730 "configure"
d1769 1
a1769 1
#line 1765 "configure"
d1807 1
a1807 1
#line 1803 "configure"
d1837 1
a1837 1
#line 1833 "configure"
d1868 1
a1868 1
#line 1864 "configure"
d1903 1
a1903 1
#line 1899 "configure"
d1935 1
a1935 1
#line 1931 "configure"
d1968 1
a1968 1
#line 1964 "configure"
d2011 1
a2011 1
#line 2007 "configure"
d2049 1
a2049 1
#line 2045 "configure"
d2080 1
a2080 1
#line 2076 "configure"
d2111 1
a2111 1
#line 2107 "configure"
d2142 1
a2142 1
#line 2138 "configure"
d2175 1
a2175 1
#line 2171 "configure"
d2207 1
a2207 1
#line 2203 "configure"
d2243 1
a2243 1
#line 2239 "configure"
d2329 1
a2329 1
#line 2325 "configure"
d2572 1
a2572 1
    echo "$CONFIG_STATUS generated by autoconf version 2.5"
@


1.27
log
@*** empty log message ***
@
text
@d2789 5
d2795 10
a2804 10
zsh configuration:

  zsh version           : ${VERSION}
  host operating system : ${host_os}
  source code location  : ${srcdir}
  compiler              : ${CC}
  compiler flags        : ${CFLAGS}
  biniary install path  : ${prefix}/bin
  man page install path : ${prefix}/man
  info install path     : ${prefix}/info"
@


1.26
log
@*** empty log message ***
@
text
@d4 1
a4 1
# Generated automatically using autoconf version 2.4 
d46 12
d61 1
d83 6
a88 1
  -build | --build | --buil | --bui | --bu | --b)
d90 1
a90 1
  -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
d100 6
d156 1
a156 1
  --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
d158 12
d174 2
d196 38
d246 9
d295 17
d322 7
d338 1
a338 1
    echo "configure generated by autoconf version 2.4"
d384 1
a384 1
  *) 
d503 6
a508 3
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
d591 2
a592 2
enableval="$enable_zsh_mem"
if test -n "$enableval"; then
d603 2
a604 2
enableval="$enable_zsh_mem_debug"
if test -n "$enableval"; then
d615 2
a616 2
enableval="$enable_zsh_mem_warning"
if test -n "$enableval"; then
d627 2
a628 2
enableval="$enable_zsh_secure_free"
if test -n "$enableval"; then
d639 2
a640 2
enableval="$enable_zsh_hash_debug"
if test -n "$enableval"; then
d696 1
d714 2
a715 1
    echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
d756 1
a756 1
#line 643 "configure"
d770 1
a770 1
#line 657 "configure"
d795 1
a795 1
  echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
d801 1
a801 1
#line 688 "configure"
d819 1
a819 1
#line 706 "configure"
d833 2
a834 1
  echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
d844 1
a844 1
#line 730 "configure"
d904 1
d921 1
a921 1
#line 806 "configure"
d934 2
a936 1
echo "$ac_t""$ac_cv_c_cross" 1>&6
d953 1
a953 1
#line 837 "configure"
d1004 1
a1004 1
#line 888 "configure"
d1038 1
a1038 1
#line 922 "configure"
d1124 1
a1124 2
  # As a last resort, use the slow shell script.
  test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
d1126 9
a1134 1
  INSTALL="$ac_cv_path_install"
d1177 2
a1178 1
if eval "test \"`echo '$''{'ac_cv_lib_$lib'+set}'`\" = set"; then
d1184 1
a1184 1
#line 1060 "configure"
d1194 1
a1194 1
  eval "ac_cv_lib_$lib=yes"
d1197 1
a1197 1
  eval "ac_cv_lib_$lib=no"
d1203 1
a1203 1
if eval "test \"`echo '$ac_cv_lib_'$lib`\" = yes"; then
d1219 1
a1219 1
#line 1095 "configure"
d1225 1
a1225 1
char $ac_func(); 
d1253 1
a1253 1
    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
d1265 2
a1266 1
if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
d1272 1
a1272 1
#line 1147 "configure"
d1282 1
a1282 1
  eval "ac_cv_lib_nsl=yes"
d1285 1
a1285 1
  eval "ac_cv_lib_nsl=no"
d1291 1
a1291 1
if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
d1293 1
a1293 1
    ac_tr_lib=HAVE_LIB`echo nsl | tr '[a-z]' '[A-Z]'`
d1315 1
a1315 1
#line 1190 "configure"
d1336 1
a1336 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
d1348 2
a1349 1
if eval "test \"`echo '$''{'ac_cv_lib_dir'+set}'`\" = set"; then
d1355 1
a1355 1
#line 1229 "configure"
d1365 1
a1365 1
  eval "ac_cv_lib_dir=yes"
d1368 1
a1368 1
  eval "ac_cv_lib_dir=no"
d1374 1
a1374 1
if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
d1383 2
a1384 1
if eval "test \"`echo '$''{'ac_cv_lib_x'+set}'`\" = set"; then
d1390 1
a1390 1
#line 1263 "configure"
d1400 1
a1400 1
  eval "ac_cv_lib_x=yes"
d1403 1
a1403 1
  eval "ac_cv_lib_x=no"
d1409 1
a1409 1
if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
d1423 1
a1423 1
#line 1296 "configure"
d1445 1
a1445 1
#line 1318 "configure"
d1463 1
a1463 1
#line 1336 "configure"
d1484 1
a1484 1
#line 1357 "configure"
d1505 1
d1519 1
a1519 1
#line 1391 "configure"
d1539 1
d1553 1
a1553 1
#line 1424 "configure"
d1594 1
d1608 1
a1608 1
#line 1478 "configure"
d1635 1
d1654 1
a1654 1
#line 1523 "configure"
d1672 1
a1672 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
d1688 1
a1688 1
#line 1557 "configure"
d1729 1
a1729 1
#line 1598 "configure"
d1760 1
a1760 1
  if eval "test \"`echo '$''{'zsh_cv_func_ut_host_in_utmpx'+set}'`\" = set"; then
d1764 1
a1764 1
#line 1633 "configure"
d1784 1
a1784 1
  echo "$ac_t""$zsh_cv_func_ut_host_in_utmpx" 1>&6
d1802 1
a1802 1
#line 1671 "configure"
d1828 1
a1828 1
  if eval "test \"`echo '$''{'zsh_cv_sys_tiocgwinsz_in_termios_h'+set}'`\" = set"; then
d1832 1
a1832 1
#line 1701 "configure"
d1852 1
a1852 1
  echo "$ac_t""$zsh_cv_sys_tiocgwinsz_in_termios_h" 1>&6
d1859 1
a1859 1
  if eval "test \"`echo '$''{'zsh_cv_sys_tiocgwinsz_in_sys_ioctl_h'+set}'`\" = set"; then
d1863 1
a1863 1
#line 1732 "configure"
d1883 1
a1883 1
  echo "$ac_t""$zsh_cv_sys_tiocgwinsz_in_sys_ioctl_h" 1>&6
d1898 1
a1898 1
#line 1767 "configure"
d1930 1
a1930 1
#line 1799 "configure"
d1959 1
a1959 1
  if eval "test \"`echo '$''{'zsh_cv_must_define_ospeed'+set}'`\" = set"; then
d1963 1
a1963 1
#line 1832 "configure"
d1982 1
a1982 1
  echo "$ac_t""$zsh_cv_must_define_ospeed" 1>&6
d2006 1
a2006 1
#line 1875 "configure"
d2032 1
d2044 1
a2044 1
#line 1912 "configure"
d2075 1
a2075 1
#line 1943 "configure"
d2106 1
a2106 1
#line 1974 "configure"
d2137 1
a2137 1
#line 2005 "configure"
d2152 1
d2170 1
a2170 1
#line 2037 "configure"
d2202 1
a2202 1
#line 2069 "configure"
d2238 1
a2238 1
#line 2105 "configure"
d2324 1
a2324 1
#line 2191 "configure"
d2330 1
a2330 1
char $ac_func(); 
d2358 1
a2358 1
    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
d2567 1
a2567 1
    echo "$CONFIG_STATUS generated by autoconf version 2.4"
d2581 2
a2582 2
# Protect against being on the right side of a sed subst in config.status. 
sed 's/%@@/@@@@/; s/@@%/@@@@/; s/%g$/@@g/; /@@g$/s/[\\\\&%]/\\\\&/g; 
d2595 12
d2720 1
a2720 1
# Protect against being on the right side of a sed subst in config.status. 
@


1.25
log
@*** empty log message ***
@
text
@a2274 1

d2641 14
@


1.24
log
@*** empty log message ***
@
text
@d2268 4
a2271 2
for SIGNAL_H in /usr/include/bsd/sys/signal.h                   /usr/include/linux/signal.h                     /usr/include/sys/signal.h                       /dev/null;                      do
  test -f $SIGNAL_H && break
@


1.23
log
@*** empty log message ***
@
text
@d616 1
a616 1
    CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -O2"
@


1.22
log
@*** empty log message ***
@
text
@d15 1
a15 1
  --enable-zsh-mem             use zsh memory allocation routines"
d17 1
a17 1
  --enable-zsh-mem-debug       debug zsh memory allocation routines"
d19 1
a19 1
  --enable-zsh-mem-warning     print warnings when error in memory allocation"
d21 3
a23 1
  --enable-zsh-secure-free     turn on error checking for free()"
d413 2
a414 2
version=`sed -e 's/^.*"\(.*\)"$/\1/' ${srcdir}/Src/version.h`
echo "configuring for zsh $version"
d526 12
d642 1
a642 1
#line 629 "configure"
d656 1
a656 1
#line 643 "configure"
d687 1
a687 1
#line 674 "configure"
d705 1
a705 1
#line 692 "configure"
d729 1
a729 1
#line 716 "configure"
d805 1
a805 1
#line 792 "configure"
d836 1
a836 1
#line 823 "configure"
d887 1
a887 1
#line 874 "configure"
d921 1
a921 1
#line 908 "configure"
d1059 1
a1059 1
#line 1046 "configure"
d1094 1
a1094 1
#line 1081 "configure"
d1146 1
a1146 1
#line 1133 "configure"
d1189 1
a1189 1
#line 1176 "configure"
d1228 1
a1228 1
#line 1215 "configure"
d1262 1
a1262 1
#line 1249 "configure"
d1295 1
a1295 1
#line 1282 "configure"
d1317 1
a1317 1
#line 1304 "configure"
d1335 1
a1335 1
#line 1322 "configure"
d1356 1
a1356 1
#line 1343 "configure"
d1390 1
a1390 1
#line 1377 "configure"
d1423 1
a1423 1
#line 1410 "configure"
d1477 1
a1477 1
#line 1464 "configure"
d1522 1
a1522 1
#line 1509 "configure"
d1556 1
a1556 1
#line 1543 "configure"
d1597 1
a1597 1
#line 1584 "configure"
d1632 1
a1632 1
#line 1619 "configure"
d1670 1
a1670 1
#line 1657 "configure"
d1700 1
a1700 1
#line 1687 "configure"
d1731 1
a1731 1
#line 1718 "configure"
d1766 1
a1766 1
#line 1753 "configure"
d1798 1
a1798 1
#line 1785 "configure"
d1831 1
a1831 1
#line 1818 "configure"
d1874 1
a1874 1
#line 1861 "configure"
d1911 1
a1911 1
#line 1898 "configure"
d1942 1
a1942 1
#line 1929 "configure"
d1973 1
a1973 1
#line 1960 "configure"
d2004 1
a2004 1
#line 1991 "configure"
d2036 1
a2036 1
#line 2023 "configure"
d2068 1
a2068 1
#line 2055 "configure"
d2104 1
a2104 1
#line 2091 "configure"
d2190 1
a2190 1
#line 2177 "configure"
d2460 1
a2460 1
s%@@version@@%$version%g
d2634 1
a2634 1
echo > stamp-h
@


1.21
log
@*** empty log message ***
@
text
@d4 1
a4 1
# Generated automatically using autoconf version 2.3 
d227 1
a227 1
    echo "configure generated by autoconf version 2.3"
d661 3
a664 1
CPP="$ac_cv_prog_CPP"
d673 1
a673 1
#line 672 "configure"
d691 1
a691 1
#line 690 "configure"
d715 1
a715 1
#line 714 "configure"
d791 1
a791 1
#line 790 "configure"
d822 1
a822 1
#line 821 "configure"
d873 1
a873 1
#line 872 "configure"
d907 1
a907 1
#line 906 "configure"
d1045 1
a1045 1
#line 1044 "configure"
d1080 1
a1080 1
#line 1079 "configure"
d1132 1
a1132 1
#line 1131 "configure"
d1175 1
a1175 1
#line 1174 "configure"
d1214 1
a1214 1
#line 1213 "configure"
d1248 1
a1248 1
#line 1247 "configure"
d1281 1
a1281 1
#line 1280 "configure"
d1303 1
a1303 1
#line 1302 "configure"
d1321 1
a1321 1
#line 1320 "configure"
d1342 1
a1342 1
#line 1341 "configure"
d1376 1
a1376 1
#line 1375 "configure"
d1409 1
a1409 1
#line 1408 "configure"
d1463 1
a1463 1
#line 1462 "configure"
d1508 1
a1508 1
#line 1507 "configure"
d1542 1
a1542 1
#line 1541 "configure"
d1583 1
a1583 1
#line 1582 "configure"
d1618 1
a1618 1
#line 1617 "configure"
d1656 1
a1656 1
#line 1655 "configure"
d1686 1
a1686 1
#line 1685 "configure"
d1717 1
a1717 1
#line 1716 "configure"
d1752 1
a1752 1
#line 1751 "configure"
d1784 1
a1784 1
#line 1783 "configure"
d1817 1
a1817 1
#line 1816 "configure"
d1860 1
a1860 1
#line 1859 "configure"
d1897 1
a1897 1
#line 1896 "configure"
d1928 1
a1928 1
#line 1927 "configure"
d1959 1
a1959 1
#line 1958 "configure"
d1990 1
a1990 1
#line 1989 "configure"
d2022 1
a2022 1
#line 2021 "configure"
d2054 1
a2054 1
#line 2053 "configure"
d2090 1
a2090 1
#line 2089 "configure"
d2166 1
a2166 1
for ac_func in strftime waitpid select tcsetpgrp tcgetattr strtol strstr lstat \
d2176 1
a2176 1
#line 2175 "configure"
d2326 16
d2418 1
a2418 1
    echo "$CONFIG_STATUS generated by autoconf version 2.3"
d2430 1
a2430 1
Util/Makefile Functions/Makefile Startup_Files/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
d2466 1
a2466 1
Util/Makefile Functions/Makefile Startup_Files/Makefile"}
@


1.20
log
@*** empty log message ***
@
text
@d608 2
a609 2
if test `echo $host_os | cut -c1-3` = sco; then
  CFLAGS="$CFLAGS -D__sco"
@


1.19
log
@*** empty log message ***
@
text
@d2164 3
a2166 3
for ac_func in strftime waitpid select tcsetpgrp tcgetattr strtol strstr      \
              getlogin setpgid gettimeofday gethostname mkfifo wait3 difftime \
              sigblock sigsetmask sigrelse sighold killpg sigaction           \
d2258 6
a2263 8
echo $ac_n "checking where utmp is located""... $ac_c" 1>&6
for utmp_file in /etc/utmp                        /usr/etc/utmp                    /var/adm/utmp                    /usr/adm/utmp                    /var/run/utmp                    /dev/null;      do
  test -f $utmp_file && break
done
echo "$ac_t""$utmp_file" 1>&6
cat >> confdefs.h <<EOF
#define UTMP_FILE_CONFIG "$utmp_file"
EOF
d2265 4
a2268 7

echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6
for wtmp_file in /etc/wtmp                       /usr/etc/wtmp                   /var/adm/wtmp                   /usr/adm/wtmp                   /var/log/wtmp                   /dev/null;     do
  test -f $wtmp_file && break
done
cat >> confdefs.h <<EOF
#define WTMP_FILE_CONFIG "$wtmp_file"
d2271 1
a2271 1
echo "$ac_t""$wtmp_file" 1>&6
d2298 2
a2299 2
  cat >> confdefs.h <<\EOF
#define HAVE_NIS 1
d2303 20
@


1.18
log
@*** empty log message ***
@
text
@d863 34
a896 1
             
d905 1
a905 1
#line 873 "configure"
d1043 1
a1043 1
#line 1011 "configure"
d1078 1
a1078 1
#line 1046 "configure"
d1130 1
a1130 1
#line 1098 "configure"
d1173 1
a1173 1
#line 1141 "configure"
d1212 1
a1212 1
#line 1180 "configure"
d1246 1
a1246 1
#line 1214 "configure"
d1279 1
a1279 1
#line 1247 "configure"
d1301 1
a1301 1
#line 1269 "configure"
d1319 1
a1319 1
#line 1287 "configure"
d1340 1
a1340 1
#line 1308 "configure"
d1374 1
a1374 1
#line 1342 "configure"
d1407 1
a1407 1
#line 1375 "configure"
d1461 1
a1461 1
#line 1429 "configure"
d1506 1
a1506 1
#line 1474 "configure"
d1540 1
a1540 1
#line 1508 "configure"
d1581 1
a1581 1
#line 1549 "configure"
d1616 1
a1616 1
#line 1584 "configure"
d1654 1
a1654 1
#line 1622 "configure"
d1684 1
a1684 1
#line 1652 "configure"
d1715 1
a1715 1
#line 1683 "configure"
d1750 1
a1750 1
#line 1718 "configure"
d1782 1
a1782 1
#line 1750 "configure"
d1815 1
a1815 1
#line 1783 "configure"
d1858 1
a1858 1
#line 1826 "configure"
d1895 1
a1895 1
#line 1863 "configure"
d1926 1
a1926 1
#line 1894 "configure"
d1957 1
a1957 1
#line 1925 "configure"
d1988 1
a1988 1
#line 1956 "configure"
d2020 1
a2020 1
#line 1988 "configure"
d2052 1
a2052 1
#line 2020 "configure"
d2088 1
a2088 1
#line 2056 "configure"
d2164 3
a2166 3
for ac_func in strftime waitpid select tcsetpgrp tcgetattr          \
              getlogin setpgid gettimeofday mkfifo wait3            \
              sigblock sigsetmask sigrelse sighold killpg sigaction \
d2174 1
a2174 1
#line 2142 "configure"
@


1.17
log
@*** empty log message ***
@
text
@d608 4
d628 1
a628 1
#line 625 "configure"
d642 1
a642 1
#line 639 "configure"
d671 1
a671 1
#line 668 "configure"
d689 1
a689 1
#line 686 "configure"
d713 1
a713 1
#line 710 "configure"
d789 1
a789 1
#line 786 "configure"
d820 1
a820 1
#line 817 "configure"
d872 1
a872 1
#line 869 "configure"
d1010 1
a1010 1
#line 1007 "configure"
d1045 1
a1045 1
#line 1042 "configure"
d1097 1
a1097 1
#line 1094 "configure"
d1140 1
a1140 1
#line 1137 "configure"
d1179 1
a1179 1
#line 1176 "configure"
d1213 1
a1213 1
#line 1210 "configure"
d1246 1
a1246 1
#line 1243 "configure"
d1268 1
a1268 1
#line 1265 "configure"
d1286 1
a1286 1
#line 1283 "configure"
d1307 1
a1307 1
#line 1304 "configure"
d1341 1
a1341 1
#line 1338 "configure"
d1374 1
a1374 1
#line 1371 "configure"
d1428 1
a1428 1
#line 1425 "configure"
d1473 1
a1473 1
#line 1470 "configure"
d1507 1
a1507 1
#line 1504 "configure"
d1548 1
a1548 1
#line 1545 "configure"
d1583 1
a1583 1
#line 1580 "configure"
d1621 1
a1621 1
#line 1618 "configure"
d1651 1
a1651 1
#line 1648 "configure"
d1682 1
a1682 1
#line 1679 "configure"
d1717 1
a1717 1
#line 1714 "configure"
d1749 1
a1749 1
#line 1746 "configure"
d1782 1
a1782 1
#line 1779 "configure"
d1825 1
a1825 1
#line 1822 "configure"
d1862 1
a1862 1
#line 1859 "configure"
d1893 1
a1893 1
#line 1890 "configure"
d1924 1
a1924 1
#line 1921 "configure"
d1955 1
a1955 1
#line 1952 "configure"
d1987 1
a1987 1
#line 1984 "configure"
d2019 1
a2019 1
#line 2016 "configure"
d2055 1
a2055 1
#line 2052 "configure"
d2141 1
a2141 1
#line 2138 "configure"
@


1.16
log
@*** empty log message ***
@
text
@d2010 33
d2051 1
a2051 1
#line 2019 "configure"
d2137 1
a2137 1
#line 2105 "configure"
@


1.15
log
@*** empty log message ***
@
text
@d4 1
a4 1
# Generated automatically using autoconf version 2.2 
d227 1
a227 1
    echo "configure generated by autoconf version 2.2"
d393 2
a394 2
ac_compile='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS -c 1>&5 2>&5'
ac_link='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS $LDFLAGS -o conftest $LIBS 1>&5 2>&5'
d1816 37
d1858 1
a1858 1
#line 1822 "configure"
d1884 30
d1915 2
a1916 2
echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_wait3'+set}'`\" = set"; then
d1919 30
a1948 2
  if test "$cross_compiling" = yes; then
  ac_cv_func_wait3=no
d1950 2
a1951 2
cat > conftest.$ac_ext <<EOF
#line 1857 "configure"
a1953 27
#include <sys/time.h>
#include <sys/resource.h>
#include <stdio.h>
/* HP-UX has wait3 but does not fill in rusage at all.  */
main() {
  struct rusage r;
  int i;
  /* Use a field that we can force nonzero --
     voluntary context switches.
     For systems like NeXT and OSF/1 that don't set it,
     also use the system CPU time.  And page faults (I/O) for Linux.  */
  r.ru_nvcsw = 0;
  r.ru_stime.tv_sec = 0;
  r.ru_stime.tv_usec = 0;
  r.ru_majflt = r.ru_minflt = 0;
  switch (fork()) {
  case 0: /* Child.  */
    sleep(1); /* Give up the CPU.  */
    _exit(0);
  case -1: _exit(0); /* What can we do?  */
  default: /* Parent.  */
    wait3(&i, 0, &r);
    sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines.  */
    exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
	 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
  }
}
d1955 4
a1958 3
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_func_wait3=yes
d1960 2
a1961 1
  ac_cv_func_wait3=no
d1963 2
d1966 34
a1999 1
rm -fr conftest*
d2001 2
a2002 2
echo "$ac_t""$ac_cv_func_wait3" 1>&6
if test $ac_cv_func_wait3 = yes; then
d2004 1
a2004 1
#define HAVE_WAIT3 1
d2009 1
d2018 1
a2018 1
#line 1913 "configure"
d2094 3
a2096 3
for ac_func in strftime waitpid select tcsetpgrp tcgetattr              \
              getlogin setpgid getpagesize gettimeofday mkfifo          \
              sigblock sigsetmask sigrelse sighold killpg sigaction     \
d2104 1
a2104 1
#line 1999 "configure"
a2148 38
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2049 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
#ifdef __cplusplus
extern "C"
#endif
void (*signal ()) ();
int main() { return 0; }
int t() {
int i;
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  ac_cv_type_signal=void
else
  rm -rf conftest*
  ac_cv_type_signal=int
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF



d2315 1
a2315 1
    echo "$CONFIG_STATUS generated by autoconf version 2.2"
d2326 2
a2327 2
trap 'rm -fr `echo Makefile Src/Makefile Doc/Makefile Etc/Makefile Misc/Makefile \
Util/Makefile Functions/Makefile Startup_Files/Makefile config.h | tr : " "` conftest*; exit 1' 1 2 15
@


1.14
log
@*** empty log message ***
@
text
@a1815 43
echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
for SIGNAL_H in /usr/include/bsd/sys/signal.h                   /usr/include/linux/signal.h                     /usr/include/sys/signal.h                       /dev/null;                      do
  test -f $SIGNAL_H && break
done
echo "$ac_t""$SIGNAL_H" 1>&6

echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1828 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
#ifdef __cplusplus
extern "C"
#endif
void (*signal ()) ();
int main() { return 0; }
int t() {
int i;
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  ac_cv_type_signal=void
else
  rm -rf conftest*
  ac_cv_type_signal=int
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF


d1821 1
a1821 1
#line 1865 "configure"
d1856 1
a1856 1
#line 1900 "configure"
d1912 1
a1912 1
#line 1956 "configure"
d1988 4
a1991 4
for ac_func in strftime waitpid select tcsetpgrp tcgetattr     \
              getlogin setpgid getpagesize gettimeofday mkfifo \
              sigblock sigsetmask sigrelse sighold killpg      \
              setuid seteuid setreuid setresuid
d1998 1
a1998 1
#line 2042 "configure"
d2043 75
@


1.13
log
@*** empty log message ***
@
text
@d1419 40
d1461 1
a1461 1
                sys/utsname.h sys/resource.h locale.h errno.h stdlib.h unistd.h sys/wait.h
d1469 1
a1469 1
#line 1430 "configure"
d1503 1
a1503 1
#line 1464 "configure"
d1544 1
a1544 1
#line 1505 "configure"
d1579 1
a1579 1
#line 1540 "configure"
d1617 1
a1617 1
#line 1578 "configure"
d1647 1
a1647 1
#line 1608 "configure"
d1678 1
a1678 1
#line 1639 "configure"
d1713 1
a1713 1
#line 1674 "configure"
d1745 1
a1745 1
#line 1706 "configure"
d1778 1
a1778 1
#line 1739 "configure"
d1827 1
a1827 1
#line 1788 "configure"
d1859 32
d1899 1
a1899 1
#line 1828 "configure"
d1955 1
a1955 1
#line 1884 "configure"
d2041 1
a2041 1
#line 1970 "configure"
a2085 29
ac_safe=`echo "elf.h" | tr './\055' '___'`
echo $ac_n "checking for elf.h""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2021 "configure"
#include "confdefs.h"
#include <elf.h>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  zsh_svr4=yes
else
  echo "$ac_t""no" 1>&6
zsh_svr4=no
fi
a2086 8
echo $ac_n "checking if is SVR4""... $ac_c" 1>&6
if test $zsh_svr4 = yes; then
  cat >> confdefs.h <<\EOF
#define SVR4 1
EOF

fi
echo "$ac_t""$zsh_svr4" 1>&6
@


1.12
log
@*** empty log message ***
@
text
@d1 1
a1 1
#!/bin/sh
d4 1
a4 1
# Generated automatically using autoconf version 2.1 
d227 1
a227 1
    echo "configure generated by autoconf version 2.1"
d290 1
a290 1
trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
d293 1
a293 1
# 0 unused; standard input
d296 3
a298 2
# 3 unused; some systems may open it to /dev/tty
# 4 checking for... messages and results
d301 1
a301 1
  exec 4>/dev/null
d303 1
a303 1
  exec 4>&1
d393 2
a394 2
ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
d439 1
a439 1
echo $ac_n "checking host system type""... $ac_c" 1>&4
d457 1
a457 1
echo "$ac_t""$host" 1>&4
d528 3
a530 3
echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d549 1
a549 1
  echo "$ac_t""$CC" 1>&4
d551 1
a551 1
  echo "$ac_t""no" 1>&4
d555 3
a557 3
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d570 1
a570 1
echo "$ac_t""$ac_cv_prog_gcc" 1>&4
d574 3
a576 3
    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d587 1
a587 1
    echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
d609 1
a609 1
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
d615 2
a616 2
if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d624 1
a624 1
#line 624 "configure"
d638 1
a638 1
#line 638 "configure"
d659 1
a659 1
echo "$ac_t""$CPP" 1>&4
d661 3
a663 3
  echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d667 1
a667 1
#line 667 "configure"
d685 1
a685 1
#line 685 "configure"
d699 1
a699 1
  echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&4
d704 3
a706 3
     echo $ac_n "checking for working const""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d709 1
a709 1
#line 709 "configure"
d769 1
a769 1
echo "$ac_t""$ac_cv_c_const" 1>&4
d777 3
a779 3
echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d782 1
a782 1
  ac_cv_cross=yes
d785 1
a785 1
#line 785 "configure"
d799 4
a802 4
echo "$ac_t""$ac_cv_c_cross" 1>&4
                  echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d816 1
a816 1
#line 816 "configure"
d840 1
a840 1
echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&4
d847 1
a847 1
echo $ac_n "checking for function prototypes""... $ac_c" 1>&4
d849 1
a849 1
  echo "$ac_t""yes" 1>&4
d856 1
a856 1
  echo "$ac_t""no" 1>&4
d860 3
a862 3
echo $ac_n "checking if signed to unsigned casting is broken""... $ac_c" 1>&4
if eval "test \"`echo '${'zsh_broken_signed_to_unsigned_casting'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d868 1
a868 1
#line 868 "configure"
d882 1
a882 1
echo "$ac_t""$zsh_broken_signed_to_unsigned_casting" 1>&4
d890 1
a890 1
echo $ac_n "checking whether ${MAKE-make} sets \$MAKE""... $ac_c" 1>&4
d892 2
a893 2
if eval "test \"`echo '${'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d909 1
a909 1
  echo "$ac_t""yes" 1>&4
d912 1
a912 1
  echo "$ac_t""no" 1>&4
d925 1
a925 1
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
d927 2
a928 2
if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d932 3
a934 2
    case "$ac_dir" in
    ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
d959 1
a959 1
echo "$ac_t""$INSTALL" 1>&4
d970 3
a972 3
echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_prog_AWK'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d990 1
a990 1
  echo "$ac_t""$AWK" 1>&4
d992 1
a992 1
  echo "$ac_t""no" 1>&4
d999 3
a1001 3
  echo $ac_n "checking for -l$lib""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_lib_$lib'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1004 1
a1004 1
LIBS="$LIBS -l$lib "
d1006 1
a1006 1
#line 1005 "configure"
d1026 1
a1026 1
  echo "$ac_t""yes" 1>&4
d1029 1
a1029 1
  echo "$ac_t""no" 1>&4
d1036 3
a1038 3
echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1041 1
a1041 1
#line 1040 "configure"
d1043 3
a1045 1
#include <ctype.h> /* Arbitrary system header to define __stub macros. */
d1074 1
a1074 1
  echo "$ac_t""yes" 1>&4
d1081 1
a1081 1
  echo "$ac_t""no" 1>&4
d1086 3
a1088 3
  echo $ac_n "checking for -lnsl""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_lib_nsl'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1091 1
a1091 1
LIBS="$LIBS -lnsl "
d1093 1
a1093 1
#line 1090 "configure"
d1113 1
a1113 1
  echo "$ac_t""yes" 1>&4
d1119 1
a1119 1
  LIBS="$LIBS -lnsl"
d1122 1
a1122 1
  echo "$ac_t""no" 1>&4
d1131 3
a1133 3
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1136 1
a1136 1
#line 1133 "configure"
d1156 1
a1156 1
  echo "$ac_t""yes" 1>&4
d1163 1
a1163 1
  echo "$ac_t""no" 1>&4
d1168 3
a1170 3
echo $ac_n "checking for -ldir""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_lib_dir'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1173 1
a1173 1
LIBS="$LIBS -ldir "
d1175 1
a1175 1
#line 1172 "configure"
d1195 1
a1195 1
  echo "$ac_t""yes" 1>&4
d1198 1
a1198 1
  echo "$ac_t""no" 1>&4
d1202 3
a1204 3
echo $ac_n "checking for -lx""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_lib_x'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1207 1
a1207 1
LIBS="$LIBS -lx "
d1209 1
a1209 1
#line 1206 "configure"
d1229 1
a1229 1
  echo "$ac_t""yes" 1>&4
d1232 1
a1232 1
  echo "$ac_t""no" 1>&4
d1237 3
a1239 3
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1242 1
a1242 1
#line 1239 "configure"
d1264 1
a1264 1
#line 1261 "configure"
d1282 1
a1282 1
#line 1279 "configure"
d1303 1
a1303 1
#line 1300 "configure"
d1324 1
a1324 1
echo "$ac_t""$ac_cv_header_stdc" 1>&4
d1332 3
a1334 3
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_header_time'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1337 1
a1337 1
#line 1334 "configure"
d1357 1
a1357 1
echo "$ac_t""$ac_cv_header_time" 1>&4
d1365 3
a1367 3
echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_header_stat_broken'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1370 1
a1370 1
#line 1367 "configure"
d1374 2
a1375 1
#ifdef S_ISBLK
d1379 4
a1382 2
# ifdef S_IFCHR
#  if S_ISBLK (S_IFCHR)
a1383 1
#  endif
d1387 1
a1387 1
#ifdef S_ISLNK
d1393 1
a1393 1
#ifdef S_ISSOCK
d1411 1
a1411 1
echo "$ac_t""$ac_cv_header_stat_broken" 1>&4
d1424 3
a1426 3
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1429 1
a1429 1
#line 1424 "configure"
d1446 1
a1446 1
  echo "$ac_t""yes" 1>&4
d1453 1
a1453 1
  echo "$ac_t""no" 1>&4
d1458 3
a1460 3
echo $ac_n "checking for sys_errlist""... $ac_c" 1>&4
if eval "test \"`echo '${'zsh_cv_sys_errlist'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1463 1
a1463 1
#line 1458 "configure"
d1491 1
a1491 1
echo "$ac_t""$zsh_cv_sys_errlist" 1>&4
d1499 3
a1501 3
echo $ac_n "checking ut_host in struct utmp""... $ac_c" 1>&4
if eval "test \"`echo '${'zsh_cv_func_ut_host_in_utmp'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1504 1
a1504 1
#line 1499 "configure"
d1524 1
a1524 1
echo "$ac_t""$zsh_cv_func_ut_host_in_utmp" 1>&4
d1534 3
a1536 3
  echo $ac_n "checking ut_host in struct utmpx""... $ac_c" 1>&4
  if eval "test \"`echo '${'zsh_cv_func_ut_host_in_utmpx'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1539 1
a1539 1
#line 1534 "configure"
d1559 1
a1559 1
  echo "$ac_t""$zsh_cv_func_ut_host_in_utmpx" 1>&4
d1572 3
a1574 3
echo $ac_n "checking POSIX termios""... $ac_c" 1>&4
if eval "test \"`echo '${'zsh_cv_sys_posix_termios'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1577 1
a1577 1
#line 1572 "configure"
d1599 1
a1599 1
echo "$ac_t""$zsh_cv_sys_posix_termios" 1>&4
d1602 3
a1604 3
  echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&4
  if eval "test \"`echo '${'zsh_cv_sys_tiocgwinsz_in_termios_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1607 1
a1607 1
#line 1602 "configure"
d1627 1
a1627 1
  echo "$ac_t""$zsh_cv_sys_tiocgwinsz_in_termios_h" 1>&4
d1633 3
a1635 3
  echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&4
  if eval "test \"`echo '${'zsh_cv_sys_tiocgwinsz_in_sys_ioctl_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1638 1
a1638 1
#line 1633 "configure"
d1658 1
a1658 1
  echo "$ac_t""$zsh_cv_sys_tiocgwinsz_in_sys_ioctl_h" 1>&4
d1668 3
a1670 3
echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1673 1
a1673 1
#line 1668 "configure"
d1690 1
a1690 1
  echo "$ac_t""yes" 1>&4
d1696 1
a1696 1
  echo "$ac_t""no" 1>&4
d1700 3
a1702 3
echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&4
if eval "test \"`echo '${'zsh_cv_include_defines_ospeed'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1705 1
a1705 1
#line 1700 "configure"
d1730 1
a1730 1
echo "$ac_t""$zsh_cv_include_defines_ospeed" 1>&4
d1733 3
a1735 3
  echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&4
  if eval "test \"`echo '${'zsh_cv_must_define_ospeed'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1738 1
a1738 1
#line 1733 "configure"
d1757 1
a1757 1
  echo "$ac_t""$zsh_cv_must_define_ospeed" 1>&4
d1765 1
a1765 3
fi

if test $zsh_cv_must_define_ospeed = yes; then
d1776 1
a1776 1
echo $ac_n "checking where signal.h is located""... $ac_c" 1>&4
d1780 1
a1780 1
echo "$ac_t""$SIGNAL_H" 1>&4
d1782 3
a1784 3
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1787 1
a1787 1
#line 1784 "configure"
d1794 4
a1797 1
extern void (*signal ()) ();
d1813 1
a1813 1
echo "$ac_t""$ac_cv_type_signal" 1>&4
d1819 3
a1821 3
echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_func_wait3'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1827 1
a1827 1
#line 1821 "configure"
d1840 1
a1840 1
     also use the system CPU time.  */
d1844 1
d1852 2
a1853 2
    sleep(1); /* Avoid "text file busy" from rm on fast HP-UX machines.  */
    exit(r.ru_nvcsw == 0
d1867 1
a1867 1
echo "$ac_t""$ac_cv_func_wait3" 1>&4
d1875 88
a1962 2
for ac_func in strftime waitpid select sigrelse tcsetpgrp tcgetattr killpg \
              getlogin setpgid getpagesize gettimeofday mkfifo
d1964 3
a1966 3
echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d1969 1
a1969 1
#line 1876 "configure"
d1971 3
a1973 1
#include <ctype.h> /* Arbitrary system header to define __stub macros. */
d2002 1
a2002 1
  echo "$ac_t""yes" 1>&4
d2009 1
a2009 1
  echo "$ac_t""no" 1>&4
a2013 34
echo $ac_n "checking if getpgrp takes arguments""... $ac_c" 1>&4
if eval "test \"`echo '${'zsh_cv_getpgrp_takes_arguments'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
else
  cat > conftest.$ac_ext <<EOF
#line 1924 "configure"
#include "confdefs.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
int main() { return 0; }
int t() {
getpgrp (0);
; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  zsh_cv_getpgrp_takes_arguments=yes
else
  rm -rf conftest*
  zsh_cv_getpgrp_takes_arguments=no
fi
rm -f conftest*

fi

echo "$ac_t""$zsh_cv_getpgrp_takes_arguments" 1>&4
if test $zsh_cv_getpgrp_takes_arguments = yes; then
  cat >> confdefs.h <<\EOF
#define GETPGRP_TAKES_ARGUMENTS 1
EOF

fi

d2015 3
a2017 3
echo $ac_n "checking for elf.h""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d2020 1
a2020 1
#line 1959 "configure"
d2037 1
a2037 1
  echo "$ac_t""yes" 1>&4
d2040 1
a2040 1
  echo "$ac_t""no" 1>&4
d2044 1
a2044 1
echo $ac_n "checking if is SVR4""... $ac_c" 1>&4
d2051 1
a2051 1
echo "$ac_t""$zsh_svr4" 1>&4
d2053 1
a2053 1
echo $ac_n "checking where utmp is located""... $ac_c" 1>&4
d2057 1
a2057 1
echo "$ac_t""$utmp_file" 1>&4
d2063 1
a2063 1
echo $ac_n "checking where wtmp is located""... $ac_c" 1>&4
d2071 1
a2071 1
echo "$ac_t""$wtmp_file" 1>&4
d2073 3
a2075 3
echo $ac_n "checking for RFS superroot directory""... $ac_c" 1>&4
if eval "test \"`echo '${'zsh_cv_have_superroot'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d2080 1
a2080 1
echo "$ac_t""$zsh_cv_have_superroot" 1>&4
d2088 3
a2090 3
echo $ac_n "checking for NIS""... $ac_c" 1>&4
if eval "test \"`echo '${'zsh_cv_have_nis'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
d2096 1
a2096 1
echo "$ac_t""$zsh_cv_have_nis" 1>&4
d2105 1
a2105 3
if test -w $cache_file; then
echo "updating cache $cache_file"
cat > $cache_file <<\EOF
d2121 2
a2122 1
# Ultrix sh set writes to stderr and can't be redirected directly.
d2124 4
a2127 2
  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  >> $cache_file
d2129 6
a2134 1
echo "not updating unwritable cache $cache_file"
d2136 1
d2138 1
a2138 1
trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
d2161 1
a2161 1
#!/bin/sh
d2180 1
a2180 1
    echo "$CONFIG_STATUS generated by autoconf version 2.1"
d2191 2
a2192 2
trap 'rm -fr Makefile Src/Makefile Doc/Makefile Etc/Makefile Misc/Makefile \
Scripts/Makefile Functions/Makefile Startup_Files/Makefile config.h conftest*; exit 1' 1 2 15
d2228 1
a2228 1
Scripts/Makefile Functions/Makefile Startup_Files/Makefile"}
d2246 1
a2246 1
    ac_dir_suffix="/$ac_dir"
d2387 1
a2387 1
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
@


1.11
log
@*** empty log message ***
@
text
@d2313 1
a2313 1
echo > stamp-h; echo ""; echo "Type \"make\" to build zsh."; echo ""
@


1.10
log
@*** empty log message ***
@
text
@d996 127
d1132 1
a1132 1
#line 1006 "configure"
d1171 1
a1171 1
#line 1045 "configure"
d1205 1
a1205 1
#line 1079 "configure"
d1238 1
a1238 1
#line 1112 "configure"
d1260 1
a1260 1
#line 1134 "configure"
d1278 1
a1278 1
#line 1152 "configure"
d1299 1
a1299 1
#line 1173 "configure"
d1333 1
a1333 1
#line 1207 "configure"
d1366 1
a1366 1
#line 1240 "configure"
d1413 1
a1413 1
for ac_hdr in sys/time.h sys/times.h sys/wait.h sys/select.h termio.h termios.h  \
d1415 1
a1415 1
                sys/utsname.h sys/resource.h locale.h errno.h stdlib.h unistd.h
d1423 1
a1423 1
#line 1297 "configure"
d1457 1
a1457 1
#line 1331 "configure"
d1498 1
a1498 1
#line 1372 "configure"
d1533 1
a1533 1
#line 1407 "configure"
d1571 1
a1571 1
#line 1445 "configure"
d1601 1
a1601 1
#line 1475 "configure"
d1632 1
a1632 1
#line 1506 "configure"
d1667 1
a1667 1
#line 1541 "configure"
d1694 78
d1783 1
a1783 1
#line 1579 "configure"
d1820 1
a1820 1
#line 1616 "configure"
d1875 1
a1875 1
#line 1671 "configure"
d1923 1
a1923 1
#line 1719 "configure"
a1951 127
for lib in termcap curses; do
  echo $ac_n "checking for -l$lib""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_lib_$lib'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
else
  ac_save_LIBS="$LIBS"
LIBS="$LIBS -l$lib "
cat > conftest.$ac_ext <<EOF
#line 1756 "configure"
#include "confdefs.h"

int main() { return 0; }
int t() {
main()
; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_lib_$lib=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_$lib=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$lib`\" = yes"; then
  echo "$ac_t""yes" 1>&4
  LIBS="$LIBS -l$lib"; break
else
  echo "$ac_t""no" 1>&4
fi

done

for ac_func in getdomainname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
else
  cat > conftest.$ac_ext <<EOF
#line 1791 "configure"
#include "confdefs.h"
#include <ctype.h> /* Arbitrary system header to define __stub macros. */
/* Override any gcc2 internal prototype to avoid an error.  */
char $ac_func(); 

int main() { return 0; }
int t() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*

fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&4
    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&4
fi
done

if test $ac_cv_func_getdomainname = no; then
  echo $ac_n "checking for -lnsl""... $ac_c" 1>&4
if eval "test \"`echo '${'ac_cv_lib_nsl'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&4
else
  ac_save_LIBS="$LIBS"
LIBS="$LIBS -lnsl "
cat > conftest.$ac_ext <<EOF
#line 1841 "configure"
#include "confdefs.h"

int main() { return 0; }
int t() {
getdomainname()
; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_lib_nsl=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_nsl=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
  echo "$ac_t""yes" 1>&4
    ac_tr_lib=HAVE_LIB`echo nsl | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="$LIBS -lnsl"

else
  echo "$ac_t""no" 1>&4
fi

fi

d1958 1
a1958 1
#line 1881 "configure"
d2313 1
a2313 1
echo > stamp-h
@


1.9
log
@*** empty log message ***
@
text
@d1783 51
a1833 1
echo $ac_n "checking for -lnsl""... $ac_c" 1>&4
d1840 1
a1840 1
#line 1791 "configure"
d1845 1
a1845 1
main()
d1872 1
d1880 1
a1880 1
#line 1830 "configure"
@


1.8
log
@*** empty log message ***
@
text
@d1993 2
a1994 2
trap 'rm -fr Makefile Src/Makefile Doc/Makefile Etc/Makefile Help/Makefile \
Misc/Makefile Scripts/Makefile Functions/Makefile Startup_Files/Makefile config.h conftest*; exit 1' 1 2 15
d2029 2
a2030 2
CONFIG_FILES=\${CONFIG_FILES-"Makefile Src/Makefile Doc/Makefile Etc/Makefile Help/Makefile \
Misc/Makefile Scripts/Makefile Functions/Makefile Startup_Files/Makefile"}
@


1.7
log
@*** empty log message ***
@
text
@d881 1
a881 1
echo "$ac_t""$zsh_broken_signed_to_unsigned_casting" 1>&4,
@


1.6
log
@*** empty log message ***
@
text
@d523 1
a523 2
test -z "$CFLAGS"  && CFLAGS=-g auto_cflags=1
test -z "$LDFLAGS" && LDFLAGS=-g
d623 1
a623 1
#line 625 "configure"
d637 1
a637 1
#line 639 "configure"
d666 1
a666 1
#line 668 "configure"
d684 1
a684 1
#line 686 "configure"
d708 1
a708 1
#line 710 "configure"
d784 1
a784 1
#line 786 "configure"
d811 1
a811 2
#for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
for ac_arg in ""
a812 1
  echo arg is $ac_arg
d815 1
a815 1
#line 819 "configure"
d817 1
a817 1
#if !defined(__STDC__) || __STDC__ != 1
d867 1
a867 1
#line 871 "configure"
d1005 1
a1005 1
#line 1009 "configure"
d1044 1
a1044 1
#line 1048 "configure"
d1078 1
a1078 1
#line 1082 "configure"
d1111 1
a1111 1
#line 1115 "configure"
d1133 1
a1133 1
#line 1137 "configure"
d1151 1
a1151 1
#line 1155 "configure"
d1172 1
a1172 1
#line 1176 "configure"
d1206 1
a1206 1
#line 1210 "configure"
d1239 1
a1239 1
#line 1243 "configure"
d1296 1
a1296 1
#line 1300 "configure"
d1330 1
a1330 1
#line 1334 "configure"
d1371 1
a1371 1
#line 1375 "configure"
d1406 1
a1406 1
#line 1410 "configure"
d1444 1
a1444 1
#line 1448 "configure"
d1474 1
a1474 1
#line 1478 "configure"
d1505 1
a1505 1
#line 1509 "configure"
d1540 1
a1540 1
#line 1544 "configure"
d1578 1
a1578 1
#line 1582 "configure"
d1615 1
a1615 1
#line 1619 "configure"
d1670 1
a1670 1
#line 1674 "configure"
d1718 1
a1718 1
#line 1722 "configure"
d1755 1
a1755 1
#line 1759 "configure"
d1790 1
a1790 1
#line 1794 "configure"
d1829 1
a1829 1
#line 1833 "configure"
@


1.5
log
@*** empty log message ***
@
text
@d810 1
a810 1
# HP-UX			-Aa
d812 2
a813 1
for ac_arg in "" -qlanglvl=ansi -std1 -Aa -Xc
d815 1
d818 1
a818 1
#line 817 "configure"
d821 1
a821 1
Not STDC
d831 1
a831 1
if eval $ac_link; then
d833 1
a833 1
  ac_cv_prog_cc_stdc=$ac_arg; break
d856 1
d860 2
a861 1
fi             
d870 1
a870 1
#line 867 "configure"
d1008 1
a1008 1
#line 1005 "configure"
d1047 1
a1047 1
#line 1044 "configure"
d1081 1
a1081 1
#line 1078 "configure"
d1114 1
a1114 1
#line 1111 "configure"
d1136 1
a1136 1
#line 1133 "configure"
d1154 1
a1154 1
#line 1151 "configure"
d1175 1
a1175 1
#line 1172 "configure"
d1209 1
a1209 1
#line 1206 "configure"
d1242 1
a1242 1
#line 1239 "configure"
d1299 1
a1299 1
#line 1296 "configure"
d1333 1
a1333 1
#line 1330 "configure"
d1374 1
a1374 1
#line 1371 "configure"
d1409 1
a1409 1
#line 1406 "configure"
d1447 1
a1447 1
#line 1444 "configure"
d1477 1
a1477 1
#line 1474 "configure"
d1508 1
a1508 1
#line 1505 "configure"
d1543 1
a1543 1
#line 1540 "configure"
d1581 1
a1581 1
#line 1578 "configure"
d1618 1
a1618 1
#line 1615 "configure"
d1673 1
a1673 1
#line 1670 "configure"
d1721 1
a1721 1
#line 1718 "configure"
d1758 1
a1758 1
#line 1755 "configure"
d1793 1
a1793 1
#line 1790 "configure"
d1832 1
a1832 1
#line 1829 "configure"
@


1.4
log
@beta1
@
text
@d1 1
a2 1
#!/bin/sh
d4 5
a8 16
# Generated automatically using autoconf version 1.11 
# Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.

# This configure script is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 2, or (at your option)
# any later version.

# This script is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
# Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
d10 12
a21 22
# Save the original args to write them into config.status later.
configure_args="$*"

# Only options that might do something get documented.
ac_usage="Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
--build=BUILD		configure for building on BUILD [BUILD=HOST]
--disable-FEATURE	do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG]	include FEATURE [ARG=yes]
--exec-prefix=PREFIX	install host dependent files in PREFIX [/usr/local]
--help			print this message
--host=HOST		configure for HOST [guessed]
--prefix=PREFIX		install host independent files in PREFIX [/usr/local]
--quiet, --silent	do not print \`checking for...' messages
--srcdir=DIR		find the sources in DIR [configure dir or ..]
--target=TARGET		configure for TARGET [TARGET=HOST]
--verbose		print results of checks
--version		print the version of autoconf that created configure
--with-PACKAGE[=ARG]	use PACKAGE [ARG=yes]
--without-PACKAGE	do not use PACKAGE (same as --with-PACKAGE=no)
--x-includes=DIR	X include files are in DIR
--x-libraries=DIR	X library files are in DIR"
d27 2
a28 1
exec_prefix=
d32 5
a36 5
norecursion=
prefix=
program_prefix=
program_suffix=
program_transform_name=
d38 1
d42 5
a46 2
x_includes=
x_libraries=
a58 3
  # Accept (but ignore some of) the important Cygnus configure
  # options, so we can diagnose typos.

d64 2
d73 7
d82 1
a82 1
    # Reject names that aren't valid shell variable names.
d84 1
a84 1
      echo "configure: $ac_feature: invalid feature name" >&2; exit 1
d91 1
a91 1
    # Reject names that aren't valid shell variable names.
d93 1
a93 1
      echo "configure: $ac_feature: invalid feature name" >&2; exit 1
a101 1
  # For backward compatibility, recognize -exec-prefix and --exec_prefix.
d112 2
a113 1
    with_gas=yes ;; # Obsolete; use --with-gas.
d116 2
d119 29
a147 1
$ac_usage
d157 2
a158 1
    with_fp=no ;; # Obsolete; use --without-fp.
d164 3
a166 3
  -norecursion | --norecursion | --norecursio | --norecursi \
  | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
    norecursion=yes ;;
d208 5
d227 1
a227 1
    echo "configure generated by autoconf version 1.11"
d232 1
a232 1
    # Reject names that aren't valid shell variable names.
d234 1
a234 1
      echo "configure: $ac_package: invalid package name" >&2; exit 1
d245 1
a245 1
    # Reject names that aren't valid shell variable names.
d247 1
a247 1
      echo "configure: $ac_package: invalid package name" >&2; exit 1
d252 3
a254 1
  --x) with_x=yes ;; # Obsolete; use --with-x.
d270 1
a270 1
  -*) echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
d275 1
a275 1
      echo "configure: warning: $ac_option: invalid host type" >&2
d278 1
a278 1
      echo "configure: can only configure for one host and one target at a time" >&2; exit 1
d287 1
a287 1
  echo "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
a290 1
trap 'rm -fr confdefs* $ac_clean_files' 0
d292 24
a315 5
# Save the original args if we used an alternate arg parser.
ac_configure_temp="${configure_args-$*}"
# Strip out --no-create and --norecursion so they don't pile up.
configure_args=
for ac_arg in $ac_configure_temp; do
d319 5
a323 3
  -norecursion | --norecursion | --norecursio | --norecursi \
  | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  *) configure_args="$configure_args $ac_arg" ;;
d328 1
d331 2
a332 2
if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
d341 1
a341 1
ac_unique_file=src/zsh.h
d346 1
a346 1
  # Try the directory containing this script, then `..'.
d354 2
d358 2
a359 2
  if test x$ac_srcdir_defaulted = xyes; then
    echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
d361 1
a361 1
    echo "configure: can not find sources in ${srcdir}" >&2; exit 1
d364 1
a364 4
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='${CPP}'
ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
d366 14
d381 7
d389 17
a405 9
cat > conftestmake <<'EOF'
all:
	@@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then SET_MAKE=
else SET_MAKE="MAKE=${MAKE-make}"; fi
rm -f conftestmake
a407 2
zsh_version=`sed -e 's/^.*"\(.*\)"$/\1/' ${srcdir}/src/zsh_version.h`
echo "configuring for zsh $zsh_version"
a408 14
zsh_guess=`${srcdir}/config.guess` || zsh_guess='unknown-unknown-unknown'
test -n "$silent" || echo "checking for host type"
zsh_hosttype=`echo $zsh_guess | sed -e 's/\(.*\)-\(.*\)-\(.*\)/\3/'`

{
test -n "$verbose" && \
echo "	defining" HOSTTYPE to be "\"$zsh_hosttype\""
echo "#define" HOSTTYPE "\"$zsh_hosttype\"" >> confdefs.h
DEFS="$DEFS -DHOSTTYPE=\"$zsh_hosttype\""
ac_sed_defs="${ac_sed_defs}\${ac_dA}HOSTTYPE\${ac_dB}HOSTTYPE\${ac_dC}\"$zsh_hosttype\"\${ac_dD}
\${ac_uA}HOSTTYPE\${ac_uB}HOSTTYPE\${ac_uC}\"$zsh_hosttype\"\${ac_uD}
\${ac_eA}HOSTTYPE\${ac_eB}HOSTTYPE\${ac_eC}\"$zsh_hosttype\"\${ac_eD}
"
}
d410 2
d413 38
a450 2
test -n "$silent" || echo "checking for operating system type"
zsh_ostype=`echo $zsh_guess | sed -e 's/\(.*\)-\(.*\)-\(.*\)/\3/'`
d452 5
a456 10
{
test -n "$verbose" && \
echo "	defining" OSTYPE to be "\"$zsh_ostype\""
echo "#define" OSTYPE "\"$zsh_ostype\"" >> confdefs.h
DEFS="$DEFS -DOSTYPE=\"$zsh_ostype\""
ac_sed_defs="${ac_sed_defs}\${ac_dA}OSTYPE\${ac_dB}OSTYPE\${ac_dC}\"$zsh_ostype\"\${ac_dD}
\${ac_uA}OSTYPE\${ac_uB}OSTYPE\${ac_uC}\"$zsh_ostype\"\${ac_uD}
\${ac_eA}OSTYPE\${ac_eB}OSTYPE\${ac_eC}\"$zsh_ostype\"\${ac_eD}
"
}
d458 3
d462 3
a464 2
test -n "$silent" || echo "checking for machine type"
zsh_machtype=`echo $zsh_guess | sed -e 's/\(.*\)-\(.*\)-\(.*\)/\1/'`
d466 3
a468 10
{
test -n "$verbose" && \
echo "	defining" MACHTYPE to be "\"$zsh_machtype\""
echo "#define" MACHTYPE "\"$zsh_machtype\"" >> confdefs.h
DEFS="$DEFS -DMACHTYPE=\"$zsh_machtype\""
ac_sed_defs="${ac_sed_defs}\${ac_dA}MACHTYPE\${ac_dB}MACHTYPE\${ac_dC}\"$zsh_machtype\"\${ac_dD}
\${ac_uA}MACHTYPE\${ac_uB}MACHTYPE\${ac_uC}\"$zsh_machtype\"\${ac_uD}
\${ac_eA}MACHTYPE\${ac_eB}MACHTYPE\${ac_eC}\"$zsh_machtype\"\${ac_eD}
"
}
d470 3
a472 14

test -n "$silent" || echo "checking for vendor"
zsh_vendor=`echo $zsh_guess | sed -e 's/\(.*\)-\(.*\)-\(.*\)/\2/'`

{
test -n "$verbose" && \
echo "	defining" VENDOR to be "\"$zsh_vendor\""
echo "#define" VENDOR "\"$zsh_vendor\"" >> confdefs.h
DEFS="$DEFS -DVENDOR=\"$zsh_vendor\""
ac_sed_defs="${ac_sed_defs}\${ac_dA}VENDOR\${ac_dB}VENDOR\${ac_dC}\"$zsh_vendor\"\${ac_dD}
\${ac_uA}VENDOR\${ac_uB}VENDOR\${ac_uC}\"$zsh_vendor\"\${ac_uD}
\${ac_eA}VENDOR\${ac_eB}VENDOR\${ac_eC}\"$zsh_vendor\"\${ac_eD}
"
}
d475 1
a475 2
test -n "$silent" || echo "checking for command line options"
# check whether --enable-zsh-mem was given
d479 3
a481 11
  
{
test -n "$verbose" && \
echo "	defining ZSH_MEM"
echo "#define" ZSH_MEM "1" >> confdefs.h
DEFS="$DEFS -DZSH_MEM=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}ZSH_MEM\${ac_dB}ZSH_MEM\${ac_dC}1\${ac_dD}
\${ac_uA}ZSH_MEM\${ac_uB}ZSH_MEM\${ac_uC}1\${ac_uD}
\${ac_eA}ZSH_MEM\${ac_eB}ZSH_MEM\${ac_eC}1\${ac_eD}
"
}
d487 1
a487 1
# check whether --enable-zsh-mem-debug was given
d491 3
a493 11
  
{
test -n "$verbose" && \
echo "	defining ZSH_MEM_DEBUG"
echo "#define" ZSH_MEM_DEBUG "1" >> confdefs.h
DEFS="$DEFS -DZSH_MEM_DEBUG=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}ZSH_MEM_DEBUG\${ac_dB}ZSH_MEM_DEBUG\${ac_dC}1\${ac_dD}
\${ac_uA}ZSH_MEM_DEBUG\${ac_uB}ZSH_MEM_DEBUG\${ac_uC}1\${ac_uD}
\${ac_eA}ZSH_MEM_DEBUG\${ac_eB}ZSH_MEM_DEBUG\${ac_eC}1\${ac_eD}
"
}
d499 1
a499 1
# check whether --enable-zsh-mem-warning was given
d503 3
a505 11
  
{
test -n "$verbose" && \
echo "	defining ZSH_MEM_WARNING"
echo "#define" ZSH_MEM_WARNING "1" >> confdefs.h
DEFS="$DEFS -DZSH_MEM_WARNING=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}ZSH_MEM_WARNING\${ac_dB}ZSH_MEM_WARNING\${ac_dC}1\${ac_dD}
\${ac_uA}ZSH_MEM_WARNING\${ac_uB}ZSH_MEM_WARNING\${ac_uC}1\${ac_uD}
\${ac_eA}ZSH_MEM_WARNING\${ac_eB}ZSH_MEM_WARNING\${ac_eC}1\${ac_eD}
"
}
d511 1
a511 1
# check whether --enable-zsh-secure-free was given
d515 3
a517 11
  
{
test -n "$verbose" && \
echo "	defining ZSH_SECURE_FREE"
echo "#define" ZSH_SECURE_FREE "1" >> confdefs.h
DEFS="$DEFS -DZSH_SECURE_FREE=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}ZSH_SECURE_FREE\${ac_dB}ZSH_SECURE_FREE\${ac_dC}1\${ac_dD}
\${ac_uA}ZSH_SECURE_FREE\${ac_uB}ZSH_SECURE_FREE\${ac_uC}1\${ac_uD}
\${ac_eA}ZSH_SECURE_FREE\${ac_eB}ZSH_SECURE_FREE\${ac_eC}1\${ac_eD}
"
}
d526 9
a534 4
if test -z "$CC"; then
  # Extract the first word of `gcc', so it can be a program name with args.
  set ac_dummy gcc; ac_word=$2
  test -n "$silent" || echo "checking for $ac_word"
d539 1
a539 1
      CC="gcc"
d544 8
a552 2
test -z "$CC" && CC="cc"
test -n "$CC" && test -n "$verbose" && echo "	setting CC to $CC"
d554 6
a559 2
# Find out if we are using GNU C, under whatever name.
cat > conftest.c <<EOF
d561 1
a561 1
  yes
d564 19
a582 3
${CC-cc} -E conftest.c > conftest.out 2>&1
if egrep yes conftest.out >/dev/null 2>&1; then
  GCC=1 # For later tests.
d586 13
d600 7
a606 1
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -O2"
d609 5
a613 1
test -n "$silent" || echo "checking how to run the C preprocessor"
d615 5
a619 3
  # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  # make.  It must be expanded now.
d621 4
a624 1
  cat > conftest.${ac_ext} <<EOF
d626 1
a626 1
#include <stdio.h>
d629 2
a630 3
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
d634 1
d637 2
a638 1
  cat > conftest.${ac_ext} <<EOF
d640 1
a640 1
#include <stdio.h>
d643 2
a644 3
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
d648 1
d655 2
d658 10
a667 8
test -n "$verbose" && echo "	setting CPP to $CPP"

if test -n "$GCC"; then
  test -n "$silent" || echo "checking whether -traditional is needed"
  ac_pattern="Autoconf.*'x'"
  ac_prog='#include <sgtty.h>
Autoconf TIOCGETP'
  cat > conftest.${ac_ext} <<EOF
d669 2
a670 1
$ac_prog
d672 2
a673 2
eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
d675 4
a678 2
  ac_need_trad=1

d683 3
a685 4
  if test -z "$ac_need_trad"; then
    ac_prog='#include <termio.h>
Autoconf TCGETA'
    cat > conftest.${ac_ext} <<EOF
d687 2
a688 1
$ac_prog
d690 2
a691 2
eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
d693 1
a693 2
  ac_need_trad=1

a697 1
  test -n "$ac_need_trad" && CC="$CC -traditional"
d699 12
d712 4
a715 1
ac_prog='/* Ultrix mips cc rejects this.  */
d720 3
d739 1
a739 1
  int x[] = {25,17};
d755 1
a755 4
}'
test -n "$silent" || echo "checking for lack of working const"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
d757 1
a757 2
int main() { return 0; }
int t() { $ac_prog; return 0; }
d760 2
a761 1
  :
d764 1
a764 12
  
{
test -n "$verbose" && \
echo "	defining" const to be empty
echo "#define" const "" >> confdefs.h
DEFS="$DEFS -Dconst="
ac_sed_defs="${ac_sed_defs}\${ac_dA}const\${ac_dB}const\${ac_dC}\${ac_dD}
\${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD}
\${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD}
"
}

d768 6
d775 11
a785 2
test -n "$silent" || echo "checking for function prototypes"
cat > conftest.${ac_ext} <<EOF
d787 35
a821 3
#ifndef __STDC__
KaBoom!
#endif
d823 2
a824 1
int t() { extern int test (int i, double x);
d826 2
a827 1
struct s2 {int (*f) (double a);};; return 0; }
d829 1
a829 1
if eval $ac_compile; then
d831 6
a836 1
  _=''
d838 1
a838 10
{
test -n "$verbose" && \
echo "	defining PROTOTYPES"
echo "#define" PROTOTYPES "1" >> confdefs.h
DEFS="$DEFS -DPROTOTYPES=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}PROTOTYPES\${ac_dB}PROTOTYPES\${ac_dC}1\${ac_dD}
\${ac_uA}PROTOTYPES\${ac_uB}PROTOTYPES\${ac_uC}1\${ac_uD}
\${ac_eA}PROTOTYPES\${ac_eB}PROTOTYPES\${ac_eC}1\${ac_eD}
"
}
d840 5
a845 6
else
  rm -rf conftest*
  U='_'
test -n "$verbose" && echo "	filtering source with ansi2knr"
fi
rm -f conftest*
d847 6
d854 13
a866 2
test -n "$silent" || echo "checking if compiler correctly cast signed to unsigned"
cat > conftest.${ac_ext} <<EOF
d868 1
a868 1
main(){return(255 == (int)(unsigned char)((char) -1));}
d870 1
a870 1
eval $ac_compile
d872 7
a878 11
  
{
test -n "$verbose" && \
echo "	defining BROKEN_SIGNED_TO_UNSIGNED_CASTING"
echo "#define" BROKEN_SIGNED_TO_UNSIGNED_CASTING "1" >> confdefs.h
DEFS="$DEFS -DBROKEN_SIGNED_TO_UNSIGNED_CASTING=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}BROKEN_SIGNED_TO_UNSIGNED_CASTING\${ac_dB}BROKEN_SIGNED_TO_UNSIGNED_CASTING\${ac_dC}1\${ac_dD}
\${ac_uA}BROKEN_SIGNED_TO_UNSIGNED_CASTING\${ac_uB}BROKEN_SIGNED_TO_UNSIGNED_CASTING\${ac_uC}1\${ac_uD}
\${ac_eA}BROKEN_SIGNED_TO_UNSIGNED_CASTING\${ac_eB}BROKEN_SIGNED_TO_UNSIGNED_CASTING\${ac_eC}1\${ac_eD}
"
}
d880 5
a886 1
rm -fr conftest*
d888 41
a928 19
# Make sure to not get the incompatible SysV /etc/install and
# /usr/sbin/install, which might be in PATH before a BSD-like install,
# or the SunOS /usr/etc/install directory, or the AIX /bin/install,
# or the AFS install, which mishandles nonexistent args, or
# /usr/ucb/install on SVR4, which tries to use the nonexistent group
# `staff', or /sbin/install on IRIX which has incompatible command-line
# syntax.  Sigh.
#
#     On most BSDish systems install is in /usr/bin, not /usr/ucb
#     anyway.
# This turns out not to be true, so the mere pathname isn't an indication
# of whether the program works.  What we really need is a set of tests for
# the install program to see if it actually works in all the required ways.
#
# Avoid using ./install, which might have been erroneously created
# by make from ./install.sh.
if test -z "${INSTALL}"; then
  test -n "$silent" || echo "checking for a BSD compatible install"
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
d931 1
a931 1
    ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
d934 1
a934 1
      for ac_prog in installbsd scoinst install; do
d942 1
a942 1
	    INSTALL="$ac_dir/$ac_prog -c"
a950 3
fi

if test -z "$INSTALL"; then
d952 1
a952 5
  for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
    if test -f $ac_dir/install.sh; then
      INSTALL="$ac_dir/install.sh -c"; break
    fi
  done
d954 1
a954 2
if test -z "$INSTALL"; then
  echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
d956 1
a956 1
test -n "$verbose" && echo "	setting INSTALL to $INSTALL"
d958 1
a958 1
# Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
a960 1
test -n "$verbose" && echo "	setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
d963 1
a963 10
test -n "$verbose" && echo "	setting INSTALL_DATA to $INSTALL_DATA"

case "$INSTALL" in
  \./install\.sh*)
      INSTALL=".$INSTALL" ;
      test -n "$verbose" && echo "	adjusting INSTALL to $INSTALL" ;;
  *) ;;
esac

for ac_prog in mawk gawk nawk awk
d965 9
a973 4
if test -z "$AWK"; then
  # Extract the first word of `$ac_prog', so it can be a program name with args.
  set ac_dummy $ac_prog; ac_word=$2
  test -n "$silent" || echo "checking for $ac_word"
d978 1
a978 1
      AWK="$ac_prog"
d984 7
a990 2

test -n "$AWK" && test -n "$verbose" && echo "	setting AWK to $AWK"
d994 11
a1004 7


ac_save_LIBS="${LIBS}"
LIBS="${LIBS} -ltermcap"
ac_have_lib=""
test -n "$silent" || echo "checking for -ltermcap"
cat > conftest.${ac_ext} <<EOF
d1006 2
a1007 1

d1009 3
a1011 1
int t() { main();; return 0; }
d1015 6
a1020 1
  ac_have_lib="1"
d1023 7
a1029 4
rm -f conftest*
LIBS="${ac_save_LIBS}"
if test -n "${ac_have_lib}"; then
   :; LIBS="$LIBS-ltermcap"; test -n "$verbose" && echo "	using -ltermcap"
d1031 1
a1031 1
   :; LIBS="$LIBS-lcurses"; test -n "$verbose" && echo "	using -lcurses"
d1033 11
a1043 7


ac_save_LIBS="${LIBS}"
LIBS="${LIBS} -lnsl"
ac_have_lib=""
test -n "$silent" || echo "checking for -lnsl"
cat > conftest.${ac_ext} <<EOF
d1047 3
a1049 1
int t() { main();; return 0; }
d1051 4
a1054 1
if eval $ac_compile; then
d1056 4
a1059 1
  ac_have_lib="1"
d1062 3
a1064 4
rm -f conftest*
LIBS="${ac_save_LIBS}"
if test -n "${ac_have_lib}"; then
   :; LIBS="$LIBS -lnsl"
d1066 1
a1066 1
   :; 
d1069 10
a1079 8
test -n "$silent" || echo "checking for directory library header"
ac_dir_header=
if test -z "$ac_dir_header"; then
  test -n "$silent" || echo "checking for dirent.h"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <sys/types.h>
#include <dirent.h>
d1081 3
a1083 1
int t() { DIR *dirp = 0;; return 0; }
d1085 4
a1088 1
if eval $ac_compile; then
d1090 4
a1093 12
  
{
test -n "$verbose" && \
echo "	defining DIRENT"
echo "#define" DIRENT "1" >> confdefs.h
DEFS="$DEFS -DDIRENT=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}DIRENT\${ac_dB}DIRENT\${ac_dC}1\${ac_dD}
\${ac_uA}DIRENT\${ac_uB}DIRENT\${ac_uC}1\${ac_uD}
\${ac_eA}DIRENT\${ac_eB}DIRENT\${ac_eC}1\${ac_eD}
"
}
 ac_dir_header=dirent.h
d1096 7
a1102 1
rm -f conftest*
d1104 7
a1110 3
if test -z "$ac_dir_header"; then
  test -n "$silent" || echo "checking for sys/ndir.h"
cat > conftest.${ac_ext} <<EOF
d1112 4
a1115 4
#include <sys/types.h>
#include <sys/ndir.h>
int main() { return 0; }
int t() { DIR *dirp = 0;; return 0; }
d1117 7
a1123 1
if eval $ac_compile; then
d1125 1
a1125 13
  
{
test -n "$verbose" && \
echo "	defining SYSNDIR"
echo "#define" SYSNDIR "1" >> confdefs.h
DEFS="$DEFS -DSYSNDIR=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSNDIR\${ac_dB}SYSNDIR\${ac_dC}1\${ac_dD}
\${ac_uA}SYSNDIR\${ac_uB}SYSNDIR\${ac_uC}1\${ac_uD}
\${ac_eA}SYSNDIR\${ac_eB}SYSNDIR\${ac_eC}1\${ac_eD}
"
}
 ac_dir_header=sys/ndir.h

d1128 5
a1132 4
fi
if test -z "$ac_dir_header"; then
  test -n "$silent" || echo "checking for sys/dir.h"
cat > conftest.${ac_ext} <<EOF
d1134 1
a1134 4
#include <sys/types.h>
#include <sys/dir.h>
int main() { return 0; }
int t() { DIR *dirp = 0;; return 0; }
d1136 4
a1139 1
if eval $ac_compile; then
d1141 1
a1141 13
  
{
test -n "$verbose" && \
echo "	defining SYSDIR"
echo "#define" SYSDIR "1" >> confdefs.h
DEFS="$DEFS -DSYSDIR=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSDIR\${ac_dB}SYSDIR\${ac_dC}1\${ac_dD}
\${ac_uA}SYSDIR\${ac_uB}SYSDIR\${ac_uC}1\${ac_uD}
\${ac_eA}SYSDIR\${ac_eB}SYSDIR\${ac_eC}1\${ac_eD}
"
}
 ac_dir_header=sys/dir.h

d1144 1
d1146 5
a1150 3
if test -z "$ac_dir_header"; then
  test -n "$silent" || echo "checking for ndir.h"
cat > conftest.${ac_ext} <<EOF
d1152 1
a1152 4
#include <sys/types.h>
#include <ndir.h>
int main() { return 0; }
int t() { DIR *dirp = 0;; return 0; }
d1154 4
a1157 1
if eval $ac_compile; then
d1159 1
a1159 13
  
{
test -n "$verbose" && \
echo "	defining NDIR"
echo "#define" NDIR "1" >> confdefs.h
DEFS="$DEFS -DNDIR=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}NDIR\${ac_dB}NDIR\${ac_dC}1\${ac_dD}
\${ac_uA}NDIR\${ac_uB}NDIR\${ac_uC}1\${ac_uD}
\${ac_eA}NDIR\${ac_eB}NDIR\${ac_eC}1\${ac_eD}
"
}
 ac_dir_header=ndir.h

d1162 1
d1165 4
a1168 10
test -n "$silent" || echo "checking for closedir return value"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_dir_header>
int closedir(); main() { exit(closedir(opendir(".")) != 0); }
EOF
eval $ac_compile
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  :
d1170 2
a1171 36
  
{
test -n "$verbose" && \
echo "	defining VOID_CLOSEDIR"
echo "#define" VOID_CLOSEDIR "1" >> confdefs.h
DEFS="$DEFS -DVOID_CLOSEDIR=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}VOID_CLOSEDIR\${ac_dB}VOID_CLOSEDIR\${ac_dC}1\${ac_dD}
\${ac_uA}VOID_CLOSEDIR\${ac_uB}VOID_CLOSEDIR\${ac_uC}1\${ac_uD}
\${ac_eA}VOID_CLOSEDIR\${ac_eB}VOID_CLOSEDIR\${ac_eC}1\${ac_eD}
"
}

fi
rm -fr conftest*

test -n "$silent" || echo "checking for ANSI C header files"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
if test -z "$ac_err"; then
  rm -rf conftest*
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
echo '#include "confdefs.h"
#include <string.h>' > conftest.${ac_ext}
eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
if egrep "memchr" conftest.out >/dev/null 2>&1; then
  rm -rf conftest*
  # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cat > conftest.${ac_ext} <<EOF
d1176 1
a1176 1
#define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
d1182 1
a1182 1
eval $ac_compile
d1184 3
a1186 19
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
echo '#include "confdefs.h"
#include <stdlib.h>' > conftest.${ac_ext}
eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
if egrep "free" conftest.out >/dev/null 2>&1; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining STDC_HEADERS"
echo "#define" STDC_HEADERS "1" >> confdefs.h
DEFS="$DEFS -DSTDC_HEADERS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
\${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
\${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
"
}


a1187 3
rm -f conftest*


a1189 1

d1191 6
a1196 2
rm -f conftest*

a1198 1
rm -f conftest*
d1200 6
a1205 2
test -n "$silent" || echo "checking for whether time.h and sys/time.h may both be included"
cat > conftest.${ac_ext} <<EOF
d1211 3
a1213 1
int t() { struct tm *tp;; return 0; }
d1217 6
a1222 11
  
{
test -n "$verbose" && \
echo "	defining TIME_WITH_SYS_TIME"
echo "#define" TIME_WITH_SYS_TIME "1" >> confdefs.h
DEFS="$DEFS -DTIME_WITH_SYS_TIME=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}TIME_WITH_SYS_TIME\${ac_dB}TIME_WITH_SYS_TIME\${ac_dC}1\${ac_dD}
\${ac_uA}TIME_WITH_SYS_TIME\${ac_uB}TIME_WITH_SYS_TIME\${ac_uC}1\${ac_uD}
\${ac_eA}TIME_WITH_SYS_TIME\${ac_eB}TIME_WITH_SYS_TIME\${ac_eC}1\${ac_eD}
"
}
d1224 6
a1231 1
rm -f conftest*
d1233 6
a1238 2
test -n "$silent" || echo "checking for broken stat file mode macros"
cat > conftest.${ac_ext} <<EOF
d1243 1
a1243 1
#if S_ISBLK (S_IFDIR)
d1245 3
a1247 3
#endif
#ifdef S_IFCHR
#if S_ISBLK (S_IFCHR)
d1249 2
d1252 1
a1252 2
#endif /* S_IFCHR */
#endif /* S_ISBLK */
d1254 1
a1254 1
#if S_ISLNK (S_IFREG)
d1256 1
d1258 1
a1258 1
#endif /* S_ISLNK */
d1260 1
a1260 1
#if S_ISSOCK (S_IFREG)
d1262 1
a1263 1
#endif /* S_ISSOCK */
d1266 5
a1270 2
eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
if egrep "You lose" conftest.out >/dev/null 2>&1; then
d1272 3
a1274 11
  
{
test -n "$verbose" && \
echo "	defining STAT_MACROS_BROKEN"
echo "#define" STAT_MACROS_BROKEN "1" >> confdefs.h
DEFS="$DEFS -DSTAT_MACROS_BROKEN=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}STAT_MACROS_BROKEN\${ac_dB}STAT_MACROS_BROKEN\${ac_dC}1\${ac_dD}
\${ac_uA}STAT_MACROS_BROKEN\${ac_uB}STAT_MACROS_BROKEN\${ac_uC}1\${ac_uD}
\${ac_eA}STAT_MACROS_BROKEN\${ac_eB}STAT_MACROS_BROKEN\${ac_eC}1\${ac_eD}
"
}
d1276 6
a1283 1
rm -f conftest*
d1289 12
a1300 9
ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
test -n "$silent" || echo "checking for ${ac_hdr}"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <${ac_hdr}>
EOF
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
d1303 5
a1307 13
  
{
test -n "$verbose" && \
echo "	defining ${ac_tr_hdr}"
echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
DEFS="$DEFS -D${ac_tr_hdr}=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
\${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
\${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
"
}


d1310 11
d1324 6
a1329 29
test -n "$silent" || echo "checking for ut_host in struct utmp"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#include <sys/types.h>
#include <utmp.h>
int main() { return 0; }
int t() { struct utmp ut; ut.ut_host;; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining HAVE_UT_HOST"
echo "#define" HAVE_UT_HOST "1" >> confdefs.h
DEFS="$DEFS -DHAVE_UT_HOST=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_UT_HOST\${ac_dB}HAVE_UT_HOST\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_UT_HOST\${ac_uB}HAVE_UT_HOST\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_UT_HOST\${ac_eB}HAVE_UT_HOST\${ac_eC}1\${ac_eD}
"
}


fi
rm -f conftest*

 
test -n "$silent" || echo "checking for sys_errlist"
cat > conftest.${ac_ext} <<EOF
a1340 1

d1342 3
a1344 1
int t() { char *p = sys_errlist[1];; return 0; }
d1346 4
a1349 1
if eval $ac_compile; then
d1351 11
a1361 11
  
{
test -n "$verbose" && \
echo "	defining HAVE_SYS_ERRLIST"
echo "#define" HAVE_SYS_ERRLIST "1" >> confdefs.h
DEFS="$DEFS -DHAVE_SYS_ERRLIST=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYS_ERRLIST\${ac_dB}HAVE_SYS_ERRLIST\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_SYS_ERRLIST\${ac_uB}HAVE_SYS_ERRLIST\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_SYS_ERRLIST\${ac_eB}HAVE_SYS_ERRLIST\${ac_eC}1\${ac_eD}
"
}
d1363 1
d1365 20
d1388 10
d1399 7
a1405 4
case "$DEFS" in
*HAVE_UT_HOST*) ;;
*) test -n "$silent" || echo "checking for ut_host in struct utmpx"
cat > conftest.${ac_ext} <<EOF
d1410 3
a1412 1
int t() { struct utmpx ut; ut.ut_host;; return 0; }
d1414 4
a1417 1
if eval $ac_compile; then
d1419 3
a1421 11
  
{
test -n "$verbose" && \
echo "	defining HAVE_UTMPX_H"
echo "#define" HAVE_UTMPX_H "1" >> confdefs.h
DEFS="$DEFS -DHAVE_UTMPX_H=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_UTMPX_H\${ac_dB}HAVE_UTMPX_H\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_UTMPX_H\${ac_uB}HAVE_UTMPX_H\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_UTMPX_H\${ac_eB}HAVE_UTMPX_H\${ac_eC}1\${ac_eD}
"
}
d1423 1
d1425 5
a1429 10
{
test -n "$verbose" && \
echo "	defining HAVE_UT_HOST"
echo "#define" HAVE_UT_HOST "1" >> confdefs.h
DEFS="$DEFS -DHAVE_UT_HOST=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_UT_HOST\${ac_dB}HAVE_UT_HOST\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_UT_HOST\${ac_uB}HAVE_UT_HOST\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_UT_HOST\${ac_eB}HAVE_UT_HOST\${ac_eC}1\${ac_eD}
"
}
d1431 3
d1435 1
a1436 3
rm -f conftest*
 ;;
esac
d1438 6
a1443 2
test -n "$silent" || echo "checking for POSIX termios"
cat > conftest.${ac_ext} <<EOF
d1449 4
a1452 2
int t() { /* SunOS 4.0.3 has termios.h but not the library calls.  */
tcgetattr(0, 0);; return 0; }
d1454 4
a1457 1
if eval $ac_compile; then
d1459 3
a1461 1
  have_termios=1
a1463 1
rm -f conftest*
d1465 1
d1467 7
a1473 3
if test -n "$have_termios"; then
test -n "$silent" || echo "checking for TIOCGWINSZ in termios.h"
cat > conftest.${ac_ext} <<EOF
d1478 3
a1480 1
int t() { int x = TIOCGWINSZ;; return 0; }
d1482 4
a1485 1
if eval $ac_compile; then
d1487 3
a1489 1
  have_tiocgwinsz=1
a1491 1
rm -f conftest*
d1493 3
d1498 7
a1504 3
if test -z "$have_tiocgwinsz"; then
test -n "$silent" || echo "checking for TIOCGWINSZ in sys/ioctl.h"
cat > conftest.${ac_ext} <<EOF
d1509 3
a1511 1
int t() { int x = TIOCGWINSZ;; return 0; }
d1513 4
a1516 1
if eval $ac_compile; then
d1518 3
a1520 11
  
{
test -n "$verbose" && \
echo "	defining GWINSZ_IN_SYS_IOCTL"
echo "#define" GWINSZ_IN_SYS_IOCTL "1" >> confdefs.h
DEFS="$DEFS -DGWINSZ_IN_SYS_IOCTL=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}GWINSZ_IN_SYS_IOCTL\${ac_dB}GWINSZ_IN_SYS_IOCTL\${ac_dC}1\${ac_dD}
\${ac_uA}GWINSZ_IN_SYS_IOCTL\${ac_uB}GWINSZ_IN_SYS_IOCTL\${ac_uC}1\${ac_uD}
\${ac_eA}GWINSZ_IN_SYS_IOCTL\${ac_eB}GWINSZ_IN_SYS_IOCTL\${ac_eC}1\${ac_eD}
"
}
d1522 1
d1524 5
a1528 2
fi
rm -f conftest*
d1530 1
d1533 7
a1539 2
test -n "$silent" || echo "checking for sys/ptem.h"
cat > conftest.${ac_ext} <<EOF
d1543 2
a1544 3
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
d1547 18
a1564 11
  
{
test -n "$verbose" && \
echo "	defining WINSIZE_IN_PTEM"
echo "#define" WINSIZE_IN_PTEM "1" >> confdefs.h
DEFS="$DEFS -DWINSIZE_IN_PTEM=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}WINSIZE_IN_PTEM\${ac_dB}WINSIZE_IN_PTEM\${ac_dC}1\${ac_dD}
\${ac_uA}WINSIZE_IN_PTEM\${ac_uB}WINSIZE_IN_PTEM\${ac_uC}1\${ac_uD}
\${ac_eA}WINSIZE_IN_PTEM\${ac_eB}WINSIZE_IN_PTEM\${ac_eC}1\${ac_eD}
"
}
d1566 5
d1572 24
d1599 5
a1604 5
test -n "$silent" || echo "checking where signal.h is located"
if test -f /usr/include/bsd/sys/signal.h ; then     SIGNAL_H=/usr/include/bsd/sys/signal.h
elif test -f /usr/include/linux/signal.h ; then     SIGNAL_H=/usr/include/linux/signal.h
elif test -f /usr/include/sys/signal.h ; then       SIGNAL_H=/usr/include/sys/signal.h
fi
d1606 9
a1614 2
test -n "$silent" || echo "checking for wait3 that fills in rusage"
cat > conftest.${ac_ext} <<EOF
d1644 1
a1644 1
eval $ac_compile
d1646 12
a1657 12
  
{
test -n "$verbose" && \
echo "	defining HAVE_WAIT3"
echo "#define" HAVE_WAIT3 "1" >> confdefs.h
DEFS="$DEFS -DHAVE_WAIT3=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_WAIT3\${ac_dB}HAVE_WAIT3\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_WAIT3\${ac_uB}HAVE_WAIT3\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_WAIT3\${ac_eB}HAVE_WAIT3\${ac_eC}1\${ac_eD}
"
}

a1659 1
rm -fr conftest*
d1661 2
a1662 2
for ac_func in waitpid select sigrelse strftime tcsetpgrp tcgetattr killpg \
              getlogin setpgid getpagesize gettimeofday sigsetjmp mkfifo
d1664 6
a1669 3
ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
test -n "$silent" || echo "checking for ${ac_func}"
cat > conftest.${ac_ext} <<EOF
d1671 4
a1674 1
#include <ctype.h>
d1676 2
a1677 1
int t() { 
d1681 1
a1681 1
#if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
d1684 1
a1684 2
/* Override any gcc2 internal prototype to avoid an error.  */
extern char ${ac_func}(); ${ac_func}();
d1686 1
d1689 4
a1692 1
if eval $ac_compile; then
d1694 3
a1696 11
  {
test -n "$verbose" && \
echo "	defining ${ac_tr_func}"
echo "#define" ${ac_tr_func} "1" >> confdefs.h
DEFS="$DEFS -D${ac_tr_func}=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
\${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
\${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
"
}

d1699 10
a1708 1
rm -f conftest*
d1712 6
a1717 2
test -n "$silent" || echo "checking for BSD getpgrp"
cat > conftest.${ac_ext} <<EOF
d1723 3
a1725 1
int t() { getpgrp (0);; return 0; }
d1727 4
a1730 1
if eval $ac_compile; then
d1732 5
a1736 11
  
{
test -n "$verbose" && \
echo "	defining GETPGRP_TAKES_ARGUMENTS"
echo "#define" GETPGRP_TAKES_ARGUMENTS "1" >> confdefs.h
DEFS="$DEFS -DGETPGRP_TAKES_ARGUMENTS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}GETPGRP_TAKES_ARGUMENTS\${ac_dB}GETPGRP_TAKES_ARGUMENTS\${ac_dC}1\${ac_dD}
\${ac_uA}GETPGRP_TAKES_ARGUMENTS\${ac_uB}GETPGRP_TAKES_ARGUMENTS\${ac_uC}1\${ac_uD}
\${ac_eA}GETPGRP_TAKES_ARGUMENTS\${ac_eB}GETPGRP_TAKES_ARGUMENTS\${ac_eC}1\${ac_eD}
"
}
d1738 5
d1745 24
d1770 9
d1780 1
d1782 8
a1789 2
test -n "$silent" || echo "checking for return type of signal handlers"
cat > conftest.${ac_ext} <<EOF
d1791 1
a1791 6
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
extern void (*signal ()) ();
d1793 3
a1795 1
int t() { int i;; return 0; }
d1797 1
a1797 1
if eval $ac_compile; then
d1799 1
a1799 13
  
{
test -n "$verbose" && \
echo "	defining" RETSIGTYPE to be "void"
echo "#define" RETSIGTYPE "void" >> confdefs.h
DEFS="$DEFS -DRETSIGTYPE=void"
ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
\${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
\${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
"
}


d1802 4
a1805 11
  
{
test -n "$verbose" && \
echo "	defining" RETSIGTYPE to be "int"
echo "#define" RETSIGTYPE "int" >> confdefs.h
DEFS="$DEFS -DRETSIGTYPE=int"
ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
\${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
\${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
"
}
d1808 8
a1815 1
rm -f conftest*
d1817 3
d1822 7
a1828 3
test -n "$silent" || echo "checking is this is SVR4"
test -n "$silent" || echo "checking for elf.h"
cat > conftest.${ac_ext} <<EOF
d1832 2
a1833 3
# Some shells (Coherent) do redirections in the wrong order, so need
# the parens.
ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
d1836 5
a1840 13
  
{
test -n "$verbose" && \
echo "	defining SVR4"
echo "#define" SVR4 "1" >> confdefs.h
DEFS="$DEFS -DSVR4=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}SVR4\${ac_dB}SVR4\${ac_dC}1\${ac_dD}
\${ac_uA}SVR4\${ac_uB}SVR4\${ac_uC}1\${ac_uD}
\${ac_eA}SVR4\${ac_eB}SVR4\${ac_eC}1\${ac_eD}
"
}


d1843 8
d1852 5
d1858 2
a1859 13
test -n "$silent" || echo "checking where utmp is located"
if test -f /etc/utmp ; then
  
{
test -n "$verbose" && \
echo "	defining" UTMP_FILE_CONFIG to be ""/etc/utmp""
echo "#define" UTMP_FILE_CONFIG ""/etc/utmp"" >> confdefs.h
DEFS="$DEFS -DUTMP_FILE_CONFIG="/etc/utmp""
ac_sed_defs="${ac_sed_defs}\${ac_dA}UTMP_FILE_CONFIG\${ac_dB}UTMP_FILE_CONFIG\${ac_dC}\"/etc/utmp\"\${ac_dD}
\${ac_uA}UTMP_FILE_CONFIG\${ac_uB}UTMP_FILE_CONFIG\${ac_uC}\"/etc/utmp\"\${ac_uD}
\${ac_eA}UTMP_FILE_CONFIG\${ac_eB}UTMP_FILE_CONFIG\${ac_eC}\"/etc/utmp\"\${ac_eD}
"
}
d1861 8
a1868 12
elif test -f /usr/etc/utmp ; then
  
{
test -n "$verbose" && \
echo "	defining" UTMP_FILE_CONFIG to be ""/usr/etc/utmp""
echo "#define" UTMP_FILE_CONFIG ""/usr/etc/utmp"" >> confdefs.h
DEFS="$DEFS -DUTMP_FILE_CONFIG="/usr/etc/utmp""
ac_sed_defs="${ac_sed_defs}\${ac_dA}UTMP_FILE_CONFIG\${ac_dB}UTMP_FILE_CONFIG\${ac_dC}\"/usr/etc/utmp\"\${ac_dD}
\${ac_uA}UTMP_FILE_CONFIG\${ac_uB}UTMP_FILE_CONFIG\${ac_uC}\"/usr/etc/utmp\"\${ac_uD}
\${ac_eA}UTMP_FILE_CONFIG\${ac_eB}UTMP_FILE_CONFIG\${ac_eC}\"/usr/etc/utmp\"\${ac_eD}
"
}
a1869 12
elif test -f /var/adm/utmp ; then
  
{
test -n "$verbose" && \
echo "	defining" UTMP_FILE_CONFIG to be ""/var/adm/utmp""
echo "#define" UTMP_FILE_CONFIG ""/var/adm/utmp"" >> confdefs.h
DEFS="$DEFS -DUTMP_FILE_CONFIG="/var/adm/utmp""
ac_sed_defs="${ac_sed_defs}\${ac_dA}UTMP_FILE_CONFIG\${ac_dB}UTMP_FILE_CONFIG\${ac_dC}\"/var/adm/utmp\"\${ac_dD}
\${ac_uA}UTMP_FILE_CONFIG\${ac_uB}UTMP_FILE_CONFIG\${ac_uC}\"/var/adm/utmp\"\${ac_uD}
\${ac_eA}UTMP_FILE_CONFIG\${ac_eB}UTMP_FILE_CONFIG\${ac_eC}\"/var/adm/utmp\"\${ac_eD}
"
}
d1871 7
a1877 12
elif test -f /usr/adm/utmp ; then
  
{
test -n "$verbose" && \
echo "	defining" UTMP_FILE_CONFIG to be ""/usr/adm/utmp""
echo "#define" UTMP_FILE_CONFIG ""/usr/adm/utmp"" >> confdefs.h
DEFS="$DEFS -DUTMP_FILE_CONFIG="/usr/adm/utmp""
ac_sed_defs="${ac_sed_defs}\${ac_dA}UTMP_FILE_CONFIG\${ac_dB}UTMP_FILE_CONFIG\${ac_dC}\"/usr/adm/utmp\"\${ac_dD}
\${ac_uA}UTMP_FILE_CONFIG\${ac_uB}UTMP_FILE_CONFIG\${ac_uC}\"/usr/adm/utmp\"\${ac_uD}
\${ac_eA}UTMP_FILE_CONFIG\${ac_eB}UTMP_FILE_CONFIG\${ac_eC}\"/usr/adm/utmp\"\${ac_eD}
"
}
d1879 1
a1879 12
elif test -f /var/run/utmp ; then
  
{
test -n "$verbose" && \
echo "	defining" UTMP_FILE_CONFIG to be ""/var/run/utmp""
echo "#define" UTMP_FILE_CONFIG ""/var/run/utmp"" >> confdefs.h
DEFS="$DEFS -DUTMP_FILE_CONFIG="/var/run/utmp""
ac_sed_defs="${ac_sed_defs}\${ac_dA}UTMP_FILE_CONFIG\${ac_dB}UTMP_FILE_CONFIG\${ac_dC}\"/var/run/utmp\"\${ac_dD}
\${ac_uA}UTMP_FILE_CONFIG\${ac_uB}UTMP_FILE_CONFIG\${ac_uC}\"/var/run/utmp\"\${ac_uD}
\${ac_eA}UTMP_FILE_CONFIG\${ac_eB}UTMP_FILE_CONFIG\${ac_eC}\"/var/run/utmp\"\${ac_eD}
"
}
d1881 3
d1885 1
a1885 12
  
{
test -n "$verbose" && \
echo "	defining" UTMP_FILE_CONFIG to be ""/dev/null""
echo "#define" UTMP_FILE_CONFIG ""/dev/null"" >> confdefs.h
DEFS="$DEFS -DUTMP_FILE_CONFIG="/dev/null""
ac_sed_defs="${ac_sed_defs}\${ac_dA}UTMP_FILE_CONFIG\${ac_dB}UTMP_FILE_CONFIG\${ac_dC}\"/dev/null\"\${ac_dD}
\${ac_uA}UTMP_FILE_CONFIG\${ac_uB}UTMP_FILE_CONFIG\${ac_uC}\"/dev/null\"\${ac_uD}
\${ac_eA}UTMP_FILE_CONFIG\${ac_eB}UTMP_FILE_CONFIG\${ac_eC}\"/dev/null\"\${ac_eD}
"
}

d1888 5
a1892 13
test -n "$silent" || echo "checking where wtmp is located"
if test -f /etc/wtmp ; then
  
{
test -n "$verbose" && \
echo "	defining" WTMP_FILE_CONFIG to be ""/etc/wtmp""
echo "#define" WTMP_FILE_CONFIG ""/etc/wtmp"" >> confdefs.h
DEFS="$DEFS -DWTMP_FILE_CONFIG="/etc/wtmp""
ac_sed_defs="${ac_sed_defs}\${ac_dA}WTMP_FILE_CONFIG\${ac_dB}WTMP_FILE_CONFIG\${ac_dC}\"/etc/wtmp\"\${ac_dD}
\${ac_uA}WTMP_FILE_CONFIG\${ac_uB}WTMP_FILE_CONFIG\${ac_uC}\"/etc/wtmp\"\${ac_uD}
\${ac_eA}WTMP_FILE_CONFIG\${ac_eB}WTMP_FILE_CONFIG\${ac_eC}\"/etc/wtmp\"\${ac_eD}
"
}
d1894 1
a1894 12
elif test -f /usr/etc/wtmp ; then
  
{
test -n "$verbose" && \
echo "	defining" WTMP_FILE_CONFIG to be ""/usr/etc/wtmp""
echo "#define" WTMP_FILE_CONFIG ""/usr/etc/wtmp"" >> confdefs.h
DEFS="$DEFS -DWTMP_FILE_CONFIG="/usr/etc/wtmp""
ac_sed_defs="${ac_sed_defs}\${ac_dA}WTMP_FILE_CONFIG\${ac_dB}WTMP_FILE_CONFIG\${ac_dC}\"/usr/etc/wtmp\"\${ac_dD}
\${ac_uA}WTMP_FILE_CONFIG\${ac_uB}WTMP_FILE_CONFIG\${ac_uC}\"/usr/etc/wtmp\"\${ac_uD}
\${ac_eA}WTMP_FILE_CONFIG\${ac_eB}WTMP_FILE_CONFIG\${ac_eC}\"/usr/etc/wtmp\"\${ac_eD}
"
}
d1896 7
a1902 12
elif test -f /var/adm/wtmp ; then
  
{
test -n "$verbose" && \
echo "	defining" WTMP_FILE_CONFIG to be ""/var/adm/wtmp""
echo "#define" WTMP_FILE_CONFIG ""/var/adm/wtmp"" >> confdefs.h
DEFS="$DEFS -DWTMP_FILE_CONFIG="/var/adm/wtmp""
ac_sed_defs="${ac_sed_defs}\${ac_dA}WTMP_FILE_CONFIG\${ac_dB}WTMP_FILE_CONFIG\${ac_dC}\"/var/adm/wtmp\"\${ac_dD}
\${ac_uA}WTMP_FILE_CONFIG\${ac_uB}WTMP_FILE_CONFIG\${ac_uC}\"/var/adm/wtmp\"\${ac_uD}
\${ac_eA}WTMP_FILE_CONFIG\${ac_eB}WTMP_FILE_CONFIG\${ac_eC}\"/var/adm/wtmp\"\${ac_eD}
"
}
d1904 5
a1908 12
elif test -f /usr/adm/wtmp ; then
  
{
test -n "$verbose" && \
echo "	defining" WTMP_FILE_CONFIG to be ""/usr/adm/wtmp""
echo "#define" WTMP_FILE_CONFIG ""/usr/adm/wtmp"" >> confdefs.h
DEFS="$DEFS -DWTMP_FILE_CONFIG="/usr/adm/wtmp""
ac_sed_defs="${ac_sed_defs}\${ac_dA}WTMP_FILE_CONFIG\${ac_dB}WTMP_FILE_CONFIG\${ac_dC}\"/usr/adm/wtmp\"\${ac_dD}
\${ac_uA}WTMP_FILE_CONFIG\${ac_uB}WTMP_FILE_CONFIG\${ac_uC}\"/usr/adm/wtmp\"\${ac_uD}
\${ac_eA}WTMP_FILE_CONFIG\${ac_eB}WTMP_FILE_CONFIG\${ac_eC}\"/usr/adm/wtmp\"\${ac_eD}
"
}
d1910 1
a1910 12
elif test -f /var/log/wtmp ; then
  
{
test -n "$verbose" && \
echo "	defining" WTMP_FILE_CONFIG to be ""/var/log/wtmp""
echo "#define" WTMP_FILE_CONFIG ""/var/log/wtmp"" >> confdefs.h
DEFS="$DEFS -DWTMP_FILE_CONFIG="/var/log/wtmp""
ac_sed_defs="${ac_sed_defs}\${ac_dA}WTMP_FILE_CONFIG\${ac_dB}WTMP_FILE_CONFIG\${ac_dC}\"/var/log/wtmp\"\${ac_dD}
\${ac_uA}WTMP_FILE_CONFIG\${ac_uB}WTMP_FILE_CONFIG\${ac_uC}\"/var/log/wtmp\"\${ac_uD}
\${ac_eA}WTMP_FILE_CONFIG\${ac_eB}WTMP_FILE_CONFIG\${ac_eC}\"/var/log/wtmp\"\${ac_eD}
"
}
d1912 23
d1936 1
a1936 12
  
{
test -n "$verbose" && \
echo "	defining" WTMP_FILE_CONFIG to be ""/dev/null""
echo "#define" WTMP_FILE_CONFIG ""/dev/null"" >> confdefs.h
DEFS="$DEFS -DWTMP_FILE_CONFIG="/dev/null""
ac_sed_defs="${ac_sed_defs}\${ac_dA}WTMP_FILE_CONFIG\${ac_dB}WTMP_FILE_CONFIG\${ac_dC}\"/dev/null\"\${ac_dD}
\${ac_uA}WTMP_FILE_CONFIG\${ac_uB}WTMP_FILE_CONFIG\${ac_uC}\"/dev/null\"\${ac_uD}
\${ac_eA}WTMP_FILE_CONFIG\${ac_eB}WTMP_FILE_CONFIG\${ac_eC}\"/dev/null\"\${ac_eD}
"
}

d1939 1
a1939 13
test -n "$silent" || echo "checking for RFS superroot directory"
test -d /../.LOCALROOT && 
{
test -n "$verbose" && \
echo "	defining HAVE_SUPERROOT"
echo "#define" HAVE_SUPERROOT "1" >> confdefs.h
DEFS="$DEFS -DHAVE_SUPERROOT=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SUPERROOT\${ac_dB}HAVE_SUPERROOT\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_SUPERROOT\${ac_uB}HAVE_SUPERROOT\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_SUPERROOT\${ac_eB}HAVE_SUPERROOT\${ac_eC}1\${ac_eD}
"
}

d1941 3
a1943 27
test -n "$silent" || echo "checking for NIS"
test -f /usr/bin/ypcat && /usr/bin/ypcat passwd.byname > /dev/null 2>&1 && 
{
test -n "$verbose" && \
echo "	defining HAVE_NIS"
echo "#define" HAVE_NIS "1" >> confdefs.h
DEFS="$DEFS -DHAVE_NIS=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NIS\${ac_dB}HAVE_NIS\${ac_dC}1\${ac_dD}
\${ac_uA}HAVE_NIS\${ac_uB}HAVE_NIS\${ac_uC}1\${ac_uD}
\${ac_eA}HAVE_NIS\${ac_eB}HAVE_NIS\${ac_eC}1\${ac_eD}
"
}



# The preferred way to propogate these variables is regular @@ substitutions.
if test -n "$prefix"; then
  ac_prsub="s%^prefix\\([ 	]*\\)=\\([ 	]*\\).*$%prefix\\1=\\2$prefix%"
else
  prefix=/usr/local
fi
if test -n "$exec_prefix"; then
  ac_prsub="$ac_prsub
s%^exec_prefix\\([ 	]*\\)=\\([ 	]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
else
  exec_prefix='${prefix}' # Let make expand it.
fi
d1952 10
a1961 13
# Quote sed substitution magic chars in DEFS.
cat >conftest.def <<EOF
$DEFS
EOF
ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
rm -f conftest.def
# Substitute for predefined variables.

trap 'rm -f config.status; exit 1' 1 2 15
echo creating config.status
rm -f config.status
cat > config.status <<EOF
d1968 4
a1971 1
# $0 $configure_args
d1973 1
a1973 1
ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
d1978 2
a1979 2
    echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
    exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
d1981 1
a1981 1
    echo "config.status generated by autoconf version 1.11"
d1989 41
a2029 21
trap 'rm -fr Makefile src/Makefile doc/Makefile config.h conftest*; exit 1' 1 2 15
SET_MAKE='$SET_MAKE'
zsh_version='$zsh_version'
CC='$CC'
CFLAGS='$CFLAGS'
LDFLAGS='$LDFLAGS'
CPP='$CPP'
U='$U'
INSTALL='$INSTALL'
INSTALL_PROGRAM='$INSTALL_PROGRAM'
INSTALL_DATA='$INSTALL_DATA'
AWK='$AWK'
SIGNAL_H='$SIGNAL_H'
LIBS='$LIBS'
srcdir='$srcdir'
top_srcdir='$top_srcdir'
prefix='$prefix'
exec_prefix='$exec_prefix'
ac_prsub='$ac_prsub'
ac_vpsub='$ac_vpsub'
extrasub='$extrasub'
d2031 8
a2038 1
cat >> config.status <<\EOF
d2040 1
a2040 1
ac_given_srcdir=$srcdir
a2041 2
CONFIG_FILES=${CONFIG_FILES-"Makefile src/Makefile doc/Makefile"}
for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
d2048 2
d2051 1
a2051 1
    ac_dir_suffix=
a2053 2
  # A "../" for each directory in $ac_dir_suffix.
  ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
d2056 1
a2056 1
      if test -z "$ac_dir_suffix"; then top_srcdir=.
d2064 4
d2070 1
a2070 1
  comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
d2072 3
a2074 2
    *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$ac_file" ;;
    * )          echo "# $comment_str"     > "$ac_file" ;;
d2076 2
a2077 17
  sed -e "
$ac_prsub
$ac_vpsub
$extrasub
s%@@SET_MAKE@@%$SET_MAKE%g
s%@@zsh_version@@%$zsh_version%g
s%@@CC@@%$CC%g
s%@@CFLAGS@@%$CFLAGS%g
s%@@LDFLAGS@@%$LDFLAGS%g
s%@@CPP@@%$CPP%g
s%@@U@@%$U%g
s%@@INSTALL@@%$INSTALL%g
s%@@INSTALL_PROGRAM@@%$INSTALL_PROGRAM%g
s%@@INSTALL_DATA@@%$INSTALL_DATA%g
s%@@AWK@@%$AWK%g
s%@@SIGNAL_H@@%$SIGNAL_H%g
s%@@LIBS@@%$LIBS%g
d2080 2
a2081 3
s%@@prefix@@%$prefix%g
s%@@exec_prefix@@%$exec_prefix%g
s%@@DEFS@@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
d2083 1
d2085 2
a2086 7
# These sed commands are put into ac_sed_defs when defining a macro.
# They are broken into pieces to make the sed script easier to manage.
# They are passed to sed as "A NAME B NAME C VALUE D", where NAME
# is the cpp macro being defined and VALUE is the value it is being given.
# Each defining turns into a single global substitution command.
# Hopefully no one uses "!" as a variable value.
# Other candidates for the sed separators, like , and @@, do get used.
d2089 2
a2090 2
ac_dA='s!^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*!\1#\2'
d2092 1
a2092 1
ac_dD='!g'
d2094 2
a2095 2
ac_uA='s!^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)!\1#\2define\3'
d2097 1
a2097 1
ac_uD='\4!g'
d2099 2
a2100 2
ac_eA='s!^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$!\1#\2define\3'
d2102 16
a2117 2
ac_eD='!g'
rm -f conftest.sed
d2119 12
a2130 4
# Turn off quoting long enough to insert the sed commands.
rm -f conftest.sh
cat > conftest.sh <<EOF
$ac_sed_defs
d2132 2
d2135 6
a2140 2
# Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
# on the size of here documents.
d2142 2
d2145 1
a2145 1
ac_max_sh_lines=9
d2147 1
d2150 2
a2151 2
  # wc gives bogus results for an empty file on some AIX systems.
  ac_lines=`grep -c . conftest.sh`
d2153 11
a2163 9
  rm -f conftest.s1 conftest.s2
  sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
  sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
  # Write a limited-size here document to append to conftest.sed.
  echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  cat conftest.s1 >> config.status
  echo 'CONFEOF' >> config.status
  rm -f conftest.s1 conftest.sh
  mv conftest.s2 conftest.sh
d2165 1
a2165 1
rm -f conftest.sh
d2167 2
a2168 32
# Now back to your regularly scheduled config.status.
cat >> config.status <<\EOF
# This sed command replaces #undef's with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it in
# config.h.
cat >> conftest.sed <<\CONFEOF
s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
CONFEOF
rm -f conftest.h
# Break up the sed commands because old seds have small limits.
ac_max_sed_lines=20

CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  echo creating $ac_file

  cp $ac_given_srcdir/$ac_file.in conftest.h1
  cp conftest.sed conftest.stm
  while :
  do
    ac_lines=`grep -c . conftest.stm`
    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
    rm -f conftest.s1 conftest.s2 conftest.h2
    sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
    sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
    sed -f conftest.s1 < conftest.h1 > conftest.h2
    rm -f conftest.s1 conftest.h1 conftest.stm
    mv conftest.h2 conftest.h1
    mv conftest.s2 conftest.stm
  done
  rm -f conftest.stm conftest.h
d2170 2
a2171 2
  cat conftest.h1 >> conftest.h
  rm -f conftest.h1
a2172 1
    # The file exists and we would not be changing it.
a2179 1
rm -f conftest.sed
d2183 1
a2183 1
touch stamp-h
d2186 3
a2188 3
chmod +x config.status
# Some shells look in PATH for config.status without the "./".
test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
@


1.3
log
@*** empty log message ***
@
text
@d331 65
d682 1
a682 1
  _='_'
d1129 2
a1130 2
for ac_hdr in sys/time.h sys/times.h sys/wait.h sys/select.h termio.h termios.h \
                sys/param.h sys/filio.h string.h memory.h limits.h fcntl.h        \
d1189 36
d1360 3
a1362 3
if test -f /usr/include/sys/signal.h ; then            SIGNAL_H=/usr/include/sys/signal.h
elif test -f /usr/include/bsd/sys/signal.h ; then      SIGNAL_H=/usr/include/bsd/sys/signal.h
elif test -f /usr/include/linux/signal.h ; then        SIGNAL_H=/usr/include/linux/signal.h
d1806 1
d1811 1
a1811 1
_='$_'
d1866 1
d1871 1
a1871 1
s%@@_@@%$_%g
d1986 2
a1987 1

@


1.2
log
@alpha3
@
text
@a522 34
test -n "$silent" || echo "checking for function prototypes"
cat > conftest.${ac_ext} <<EOF
#include "confdefs.h"
#ifndef __STDC__
KaBoom!
#endif
int main() { return 0; }
int t() { extern int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  
{
test -n "$verbose" && \
echo "	defining PROTOTYPES"
echo "#define" PROTOTYPES "1" >> confdefs.h
DEFS="$DEFS -DPROTOTYPES=1"
ac_sed_defs="${ac_sed_defs}\${ac_dA}PROTOTYPES\${ac_dB}PROTOTYPES\${ac_dC}1\${ac_dD}
\${ac_uA}PROTOTYPES\${ac_uB}PROTOTYPES\${ac_uC}1\${ac_uD}
\${ac_eA}PROTOTYPES\${ac_eB}PROTOTYPES\${ac_eC}1\${ac_eD}
"
}


else
  rm -rf conftest*
  U=_
test -n "$verbose" && echo "	setting U to _"

fi
rm -f conftest*

d588 36
a623 1
echo checking if compiler correctly cast signed to unsigned
d1258 1
a1258 1
echo checking where signal.h is located
a1263 1

d1427 1
a1427 1
echo checking is this is SVR4
d1455 1
a1455 1
echo checking where utmp is located
d1508 13
d1536 1
a1536 1
echo checking where wtmp is located
d1589 13
d1617 1
a1617 1
echo checking for RFS superroot directory
d1631 1
a1631 1
echo checking for NIS
d1709 1
d1768 1
@


1.1
log
@Initial revision
@
text
@d444 1
a444 1
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
@
