head	3.1;
branch	3.1.1;
access;
symbols;
locks;
comment	@# @;


3.1
date	96.10.30.23.41.13;	author hzoli;	state Exp;
branches
	3.1.0.0
	3.1.1.0;
next	3.0;

3.0
date	96.10.30.23.39.35;	author hzoli;	state Exp;
branches
	3.0.1.0
	3.0.2.1;
next	;

3.0.1.0
date	96.10.30.23.40.21;	author hzoli;	state Exp;
branches;
next	3.0.1.1;

3.0.1.1
date	96.12.14.00.31.13;	author hzoli;	state Exp;
branches;
next	3.0.1.2;

3.0.1.2
date	96.12.14.00.43.06;	author hzoli;	state Exp;
branches;
next	3.0.1.3;

3.0.1.3
date	96.12.14.01.04.25;	author hzoli;	state Exp;
branches;
next	3.0.1.4;

3.0.1.4
date	96.12.14.01.24.03;	author hzoli;	state Exp;
branches;
next	;

3.0.2.1
date	97.01.01.16.25.17;	author hzoli;	state Exp;
branches;
next	3.0.2.2;

3.0.2.2
date	97.01.02.20.57.33;	author hzoli;	state Exp;
branches;
next	3.0.2.3;

3.0.2.3
date	97.01.05.21.28.38;	author hzoli;	state Exp;
branches;
next	3.0.2.4;

3.0.2.4
date	97.01.06.20.43.36;	author hzoli;	state Exp;
branches;
next	3.0.2.5;

3.0.2.5
date	97.01.18.13.51.30;	author hzoli;	state Exp;
branches;
next	3.0.2.6;

3.0.2.6
date	97.01.20.21.11.22;	author hzoli;	state Exp;
branches;
next	;

3.1.0.0
date	96.10.30.23.41.58;	author hzoli;	state Exp;
branches;
next	3.1.0.1;

3.1.0.1
date	96.10.31.01.38.10;	author hzoli;	state Exp;
branches;
next	3.1.0.2;

3.1.0.2
date	96.11.11.20.11.50;	author hzoli;	state Exp;
branches;
next	3.1.0.3;

3.1.0.3
date	96.11.11.21.55.17;	author hzoli;	state Exp;
branches;
next	3.1.0.4;

3.1.0.4
date	96.11.14.12.57.26;	author hzoli;	state Exp;
branches;
next	3.1.0.5;

3.1.0.5
date	96.12.14.00.47.36;	author hzoli;	state Exp;
branches;
next	3.1.0.6;

3.1.0.6
date	96.12.14.00.48.38;	author hzoli;	state Exp;
branches;
next	3.1.0.7;

3.1.0.7
date	96.12.14.00.49.01;	author hzoli;	state Exp;
branches;
next	3.1.0.8;

3.1.0.8
date	96.12.14.00.49.22;	author hzoli;	state Exp;
branches;
next	3.1.0.9;

3.1.0.9
date	96.12.14.00.49.45;	author hzoli;	state Exp;
branches;
next	3.1.0.10;

3.1.0.10
date	96.12.14.00.50.50;	author hzoli;	state Exp;
branches;
next	3.1.0.11;

3.1.0.11
date	96.12.14.00.51.13;	author hzoli;	state Exp;
branches;
next	3.1.0.12;

3.1.0.12
date	96.12.14.01.01.41;	author hzoli;	state Exp;
branches;
next	3.1.0.13;

3.1.0.13
date	96.12.14.01.21.07;	author hzoli;	state Exp;
branches;
next	3.1.0.14;

3.1.0.14
date	96.12.21.01.18.51;	author hzoli;	state Exp;
branches;
next	;

3.1.1.0
date	96.12.21.02.35.28;	author hzoli;	state Exp;
branches;
next	3.1.1.1;

3.1.1.1
date	96.12.26.21.46.52;	author hzoli;	state Exp;
branches;
next	3.1.1.2;

3.1.1.2
date	97.01.01.16.23.53;	author hzoli;	state Exp;
branches;
next	3.1.1.3;

3.1.1.3
date	97.01.02.20.56.56;	author hzoli;	state Exp;
branches;
next	3.1.1.4;

3.1.1.4
date	97.01.05.20.43.47;	author hzoli;	state Exp;
branches;
next	3.1.1.5;

3.1.1.5
date	97.01.06.20.41.03;	author hzoli;	state Exp;
branches;
next	3.1.1.6;

3.1.1.6
date	97.01.08.12.45.03;	author hzoli;	state Exp;
branches;
next	3.1.1.7;

3.1.1.7
date	97.01.18.00.47.04;	author hzoli;	state Exp;
branches;
next	3.1.1.8;

3.1.1.8
date	97.01.18.13.49.52;	author hzoli;	state Exp;
branches;
next	3.1.1.9;

3.1.1.9
date	97.01.20.21.07.43;	author hzoli;	state Exp;
branches;
next	3.1.1.10;

3.1.1.10
date	97.01.25.19.00.07;	author hzoli;	state Exp;
branches;
next	;


desc
@configure
@


3.1
log
@# branch point
@
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 ""

@


3.1.1.0
log
@#
@
text
@d4 1
a4 1
# Generated automatically using autoconf version 2.12 
a37 2
ac_help="$ac_help
  --enable-dynamic           allow dynamically loaded binary modules"
a75 2
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
d357 1
a357 1
    echo "configure generated by autoconf version 2.12"
d459 4
a462 4
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
a463 3
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
a524 1
cross_compiling=$ac_cv_prog_cc_cross
a569 1
echo "configure:579: checking host system type" >&5
d584 3
a586 3
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
d605 1
a605 6
  if test x$enableval = xyes; then
  cat >> confdefs.h <<\EOF
#define DEBUG 1
EOF

fi
d774 3
a776 6
# Check whether --enable-dynamic or --disable-dynamic was given.
if test "${enable_dynamic+set}" = set; then
  enableval="$enable_dynamic"
  dynamic="$enableval"
else
  dynamic=no
a778 4

test -z "$CFLAGS"  && CFLAGS=  auto_cflags=1
test -z "$LDFLAGS" && LDFLAGS= auto_ldflags=1

a781 1
echo "configure:804: checking for $ac_word" >&5
a809 1
echo "configure:833: checking for $ac_word" >&5
a855 39
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:881: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5

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'
cross_compiling=$ac_cv_prog_cc_cross

cat > conftest.$ac_ext <<EOF
#line 891 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
fi
rm -fr conftest*

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:915: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

a856 1
echo "configure:920: checking whether we are using GNU C" >&5
d865 1
a865 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a872 1

d875 3
a877 6
  ac_test_CFLAGS="${CFLAGS+set}"
  ac_save_CFLAGS="$CFLAGS"
  CFLAGS=
  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:944: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
d882 1
a882 1
  ac_cv_prog_cc_g=yes
d884 1
a884 1
  ac_cv_prog_cc_g=no
d890 6
a895 7
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  if test "$ac_test_CFLAGS" = set; then
    CFLAGS="$ac_save_CFLAGS"
  elif test $ac_cv_prog_cc_g = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-O2"
d906 1
a906 1
      CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -pedantic -ggdb"
d908 1
a908 1
      CFLAGS="$CFLAGS -g"
a917 5
if test -n "$auto_ldflags"; then
  if test "${enable_zsh_debug}" = yes; then
    LDFLAGS=-g
  fi
fi
a924 1
echo "configure:999: checking how to run the C preprocessor" >&5
d939 1
a939 1
#line 1014 "configure"
d945 1
a945 1
{ (eval echo configure:1020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a950 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d954 1
a954 1
#line 1031 "configure"
d960 1
a960 1
{ (eval echo configure:1037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a965 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a980 1
echo "configure:1060: checking whether ${CC-cc} needs -traditional" >&5
d986 1
a986 1
#line 1066 "configure"
d1004 1
a1004 1
#line 1084 "configure"
a1024 1
echo "configure:1105: checking for working const" >&5
d1029 1
a1029 1
#line 1110 "configure"
d1032 2
a1033 1
int main() {
d1079 1
a1079 1
if { (eval echo configure:1159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1082 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1087 1
d1097 25
a1122 1
echo "configure:1179: checking for ${CC-cc} option to accept ANSI C" >&5
d1138 1
a1138 1
#line 1195 "configure"
d1144 2
a1145 1
int main() {
d1151 1
a1151 1
if { (eval echo configure:1207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1153 3
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1156 1
a1169 1
echo "configure:1228: checking for function prototypes" >&5
a1181 1
echo "configure:1241: checking size of long" >&5
d1188 2
a1189 2
  cat > conftest.$ac_ext <<EOF
#line 1249 "configure"
d1200 2
a1201 2
if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a1203 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d1206 1
a1208 2

fi
a1215 1
echo "configure:1280: checking if signed to unsigned casting is broken" >&5
d1222 2
a1223 2
  cat > conftest.$ac_ext <<EOF
#line 1288 "configure"
d1227 2
a1228 2
if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a1230 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d1233 1
a1236 2
fi

a1244 33
echo $ac_n "checking if the compiler supports variable-lenth arrays""... $ac_c" 1>&6
echo "configure:1315: checking if the compiler supports variable-lenth arrays" >&5
if eval "test \"`echo '$''{'zsh_cv_c_variable_length_arrays'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1320 "configure"
#include "confdefs.h"
int foo();
int main() {
int i[foo()];
; return 0; }
EOF
if { (eval echo configure:1327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_c_variable_length_arrays=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  zsh_cv_c_variable_length_arrays=no
fi
rm -f conftest*
fi

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

fi

d1246 1
a1246 2
echo "configure:1348: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
a1280 1
echo "configure:1384: checking for a BSD compatible install" >&5
d1285 1
a1285 1
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
d1308 1
a1308 1
  IFS="$ac_save_IFS"
a1332 1
echo "configure:1437: checking for $ac_word" >&5
d1363 1
a1363 1
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
a1364 1
echo "configure:1470: checking for $ac_hdr that defines DIR" >&5
d1369 1
a1369 1
#line 1475 "configure"
d1373 2
a1374 1
int main() {
d1378 1
a1378 1
if { (eval echo configure:1483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1381 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1386 1
d1390 1
a1390 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d1401 2
a1402 3
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
echo "configure:1508: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
d1409 1
a1409 1
#line 1516 "configure"
d1416 2
a1417 1
int main() {
d1421 1
a1421 1
if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1424 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1440 2
a1441 3
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
echo "configure:1549: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
d1448 1
a1448 1
#line 1557 "configure"
d1455 2
a1456 1
int main() {
d1460 1
a1460 1
if { (eval echo configure:1568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1463 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a1480 1
echo "configure:1591: checking for ANSI C header files" >&5
d1485 1
a1485 1
#line 1596 "configure"
d1493 1
a1493 1
{ (eval echo configure:1604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1499 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1508 1
a1508 1
#line 1621 "configure"
d1526 1
a1526 1
#line 1639 "configure"
d1546 2
a1547 2
  cat > conftest.$ac_ext <<EOF
#line 1660 "configure"
d1558 2
a1559 2
if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a1561 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d1564 1
a1566 2

fi
a1577 1
echo "configure:1695: checking whether time.h and sys/time.h may both be included" >&5
d1582 1
a1582 1
#line 1700 "configure"
d1587 2
a1588 1
int main() {
d1592 1
a1592 1
if { (eval echo configure:1709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1595 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1600 1
a1611 1
echo "configure:1730: checking whether stat file-mode macros are broken" >&5
d1616 1
a1616 1
#line 1735 "configure"
a1666 1
echo "configure:1786: checking for sys/wait.h that is POSIX.1 compatible" >&5
d1671 1
a1671 1
#line 1791 "configure"
d1681 2
a1682 1
int main() {
d1688 1
a1688 1
if { (eval echo configure:1807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1691 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1696 1
d1712 1
a1712 1
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
a1713 1
echo "configure:1834: checking for $ac_hdr" >&5
d1718 1
a1718 1
#line 1839 "configure"
d1723 1
a1723 1
{ (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1729 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1737 1
a1737 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
a1746 42
if test $dynamic = yes; then
  for ac_hdr in dlfcn.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1875: checking for $ac_hdr" >&5
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 1880 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1885: \"$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
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&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 | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

fi
a1749 1
echo "configure:1915: checking for conflicts in sys/time.h and sys/select.h" >&5
d1754 1
a1754 1
#line 1920 "configure"
d1758 2
a1759 1
int main() {
d1763 1
a1763 1
if { (eval echo configure:1928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1766 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1771 1
a1783 1
echo "configure:1950: checking ut_host in struct utmp" >&5
d1788 1
a1788 1
#line 1955 "configure"
d1792 2
a1793 1
int main() {
d1797 1
a1797 1
if { (eval echo configure:1963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1800 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1805 1
a1818 1
echo "configure:1986: checking ut_host in struct utmpx" >&5
d1823 1
a1823 1
#line 1991 "configure"
d1827 2
a1828 1
int main() {
d1832 1
a1832 1
if { (eval echo configure:1999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1835 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1840 1
a1856 1
echo "configure:2025: checking POSIX termios" >&5
d1861 1
a1861 1
#line 2030 "configure"
d1866 2
a1867 1
int main() {
d1872 1
a1872 1
if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1875 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1880 1
a1886 1
echo "configure:2056: checking TIOCGWINSZ in termios.h" >&5
d1891 1
a1891 1
#line 2061 "configure"
d1895 2
a1896 1
int main() {
d1900 1
a1900 1
if { (eval echo configure:2069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1903 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1908 1
a1917 1
echo "configure:2088: checking TIOCGWINSZ in sys/ioctl.h" >&5
d1922 1
a1922 1
#line 2093 "configure"
d1926 2
a1927 1
int main() {
d1931 1
a1931 1
if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1934 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1939 1
d1951 1
a1951 1
ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
a1952 1
echo "configure:2124: checking for sys/ptem.h" >&5
d1957 1
a1957 1
#line 2129 "configure"
d1962 1
a1962 1
{ (eval echo configure:2134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1968 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1992 2
a1993 3
  echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
echo "configure:2167: checking for tgetent in -l${lib}" >&5
ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
d2000 1
a2000 1
#line 2175 "configure"
d2007 2
a2008 1
int main() {
d2012 1
a2012 1
if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2015 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a2034 1
echo "configure:2211: checking for $ac_func" >&5
d2039 1
a2039 1
#line 2216 "configure"
d2049 2
a2050 1
int main() {
d2063 1
a2063 1
if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2066 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2071 1
a2072 1

d2086 2
a2087 3
  echo $ac_n "checking for getdomainname in -lnsl""... $ac_c" 1>&6
echo "configure:2265: checking for getdomainname in -lnsl" >&5
ac_lib_var=`echo nsl'_'getdomainname | sed 'y%./+-%__p_%'`
d2094 1
a2094 1
#line 2273 "configure"
d2101 2
a2102 1
int main() {
d2106 1
a2106 1
if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2109 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2119 1
a2119 2
    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a2135 50
if test "x$dynamic" = xyes; then
  echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
echo "configure:2319: checking for dlopen in -ldl" >&5
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__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="-ldl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2327 "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 dlopen();

int main() {
dlopen()
; return 0; }
EOF
if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  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 dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-ldl $LIBS"

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

fi

a2136 1
echo "configure:2368: checking if an include file defines ospeed" >&5
d2141 1
a2141 1
#line 2373 "configure"
d2150 2
a2151 1
int main() {
d2155 1
a2155 1
if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2158 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2163 1
a2169 1
echo "configure:2402: checking if you must define ospeed" >&5
d2174 1
a2174 1
#line 2407 "configure"
d2177 2
a2178 1
int main() {
d2182 1
a2182 1
if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2185 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2190 1
a2212 1
echo "configure:2446: checking if tgetent accepts NULL" >&5
d2219 2
a2220 2
  cat > conftest.$ac_ext <<EOF
#line 2454 "configure"
d2224 2
a2225 2
if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a2227 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d2230 1
a2233 2
fi

a2242 1
echo "configure:2481: checking return type of signal handlers" >&5
d2247 1
a2247 1
#line 2486 "configure"
d2260 2
a2261 1
int main() {
d2265 1
a2265 1
if { (eval echo configure:2503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2268 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2273 1
a2282 1
echo "configure:2522: checking for pid_t" >&5
d2287 1
a2287 1
#line 2527 "configure"
a2291 1
#include <stddef.h>
d2295 1
a2295 1
  egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2313 1
echo "configure:2555: checking for off_t" >&5
d2318 1
a2318 1
#line 2560 "configure"
a2322 1
#include <stddef.h>
d2326 1
a2326 1
  egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2344 1
echo "configure:2588: checking for mode_t" >&5
d2349 1
a2349 1
#line 2593 "configure"
a2353 1
#include <stddef.h>
d2357 1
a2357 1
  egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2375 1
echo "configure:2621: checking for uid_t in sys/types.h" >&5
d2380 1
a2380 1
#line 2626 "configure"
a2408 1
echo "configure:2655: checking for size_t" >&5
d2413 1
a2413 1
#line 2660 "configure"
a2417 1
#include <stddef.h>
d2421 1
a2421 1
  egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2440 1
echo "configure:2689: checking for sigset_t" >&5
d2445 1
a2445 1
#line 2694 "configure"
d2449 2
a2450 1
int main() {
d2454 1
a2454 1
if { (eval echo configure:2702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2457 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2462 1
a2473 1
echo "configure:2723: checking for struct timezone" >&5
d2478 1
a2478 1
#line 2728 "configure"
d2481 2
a2482 1
int main() {
d2486 1
a2486 1
if { (eval echo configure:2735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2489 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2494 1
a2505 1
echo "configure:2756: checking whether getpgrp takes no argument" >&5
d2512 2
a2513 2
  cat > conftest.$ac_ext <<EOF
#line 2764 "configure"
d2568 2
a2569 2
if { (eval echo configure:2819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a2571 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d2574 1
a2575 2
fi

a2595 1
echo "configure:2851: checking for $ac_func" >&5
d2600 1
a2600 1
#line 2856 "configure"
d2610 2
a2611 1
int main() {
d2624 1
a2624 1
if { (eval echo configure:2879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2627 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a2631 1
fi
a2632 9
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
a2633 46
done

if test $dynamic = yes; then
  for ac_func in dlopen dlerror dlsym dlclose
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:2907: checking for $ac_func" >&5
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 2912 "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() {

/* 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:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

a2645 1
fi
a2647 1
echo "configure:2962: checking for working strcoll" >&5
d2654 2
a2655 2
  cat > conftest.$ac_ext <<EOF
#line 2970 "configure"
d2660 2
a2661 2
if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a2663 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d2666 1
a2669 2
fi

a2679 1
echo "configure:2999: checking what style of signals to use" >&5
a2711 1
echo "configure:3032: checking where signal.h is located" >&5
a2726 25
echo $ac_n "checking where the RLIMIT macros are located""... $ac_c" 1>&6
echo "configure:3049: checking where the RLIMIT macros are located" >&5
if eval "test \"`echo '$''{'zsh_cv_path_rlimit_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  for RESOURCE_H in /usr/include/bsd/sys/resource.h                      /usr/include/asm/resource.h	                        /usr/include/linux/resource.h                        /usr/include/sys/resource.h                          /dev/null;
do
  test -f $RESOURCE_H && \
  grep '#[ 	]*define[ 	][ 	]*RLIMIT_[A-Z]*[ 	]*[0-9][0-9]*' $RESOURCE_H > /dev/null && \
  break
done
zsh_cv_path_rlimit_h=$RESOURCE_H
if test $RESOURCE_H = "/dev/null" -a $ac_cv_func_getrlimit = yes; then
  echo "RLIMIT MACROS NOT FOUND:  please report to developers"
fi
fi

echo "$ac_t""$zsh_cv_path_rlimit_h" 1>&6
RLIMITS_INC_H=$zsh_cv_path_rlimit_h
if test $zsh_cv_path_rlimit_h = /dev/null -a $ac_cv_func_getrlimit = no; then
  RLIMITS_SRC_H=
else
  RLIMITS_SRC_H=rlimits.h
fi

a2727 1
echo "configure:3074: checking for /dev/fd filesystem" >&5
a2742 1
echo "configure:3090: checking for RFS superroot directory" >&5
a2757 1
echo "configure:3106: checking for NIS" >&5
a2773 1
echo "configure:3123: checking for NIS+" >&5
a2790 1
echo "configure:3141: checking where utmp is located" >&5
a2807 1
echo "configure:3159: checking where wtmp is located" >&5
a2824 1
echo "configure:3177: checking if typeahead needs FIONREAD" >&5
a2840 1
echo "configure:3194: checking for brk() prototype in <unistd.h>" >&5
d2845 1
a2845 1
#line 3199 "configure"
d2849 2
a2850 1
int main() {
d2854 1
a2854 1
if { (eval echo configure:3207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2857 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2862 1
a2873 1
echo "configure:3228: checking for sbrk() prototype in <unistd.h>" >&5
d2878 1
a2878 1
#line 3233 "configure"
d2882 2
a2883 1
int main() {
d2887 1
a2887 1
if { (eval echo configure:3241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2890 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2895 1
a2908 1
echo "configure:3264: checking for ioctl prototype in <sys/ioctl.h>" >&5
d2913 1
a2913 1
#line 3269 "configure"
d2917 2
a2918 1
int main() {
d2922 1
a2922 1
if { (eval echo configure:3277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2925 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2930 1
a2941 61
echo $ac_n "checking if named FIFOs work""... $ac_c" 1>&6
echo "configure:3299: checking if named FIFOs work" >&5
if eval "test \"`echo '$''{'zsh_cv_sys_fifo'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  zsh_cv_sys_fifo=yes
else
  cat > conftest.$ac_ext <<EOF
#line 3307 "configure"
#include "confdefs.h"

#include <fcntl.h>
#include <signal.h>
main()
{
    char c;
    int fd;
    int pid, ret;
    unlink("/tmp/fifo$$");
#ifdef HAVE_MKFIFO
    if(mkfifo("/tmp/fifo$$", 0600) < 0)
#else
    if(mknod("/tmp/fifo$$", 0010600, 0) < 0)
#endif
	exit(1);
    pid = fork();
    if(pid < 0)
	exit(1);
    if(pid) {
	fd = open("/tmp/fifo$$", O_RDONLY);
	exit(fd < 0 || read(fd, &c, 1) != 1 || c != 'x');
    }
    fd = open("/tmp/fifo$$", O_WRONLY);
    ret = (fd < 0 || write(fd, "x", 1) < 1);
    unlink("/tmp/fifo$$");
    exit(ret);
}

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

fi

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

fi
d2943 1
a2943 13
echo "configure:3360: checking if echo in /bin/sh interprets escape sequences" >&5
if eval "test \"`echo '$''{'zsh_cv_prog_sh_echo_escape'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "`/bin/sh -c \"echo '\\n'\"`" = "\\n"; then
  zsh_cv_prog_sh_echo_escape=no
else
  zsh_cv_prog_sh_echo_escape=yes
fi
fi

echo "$ac_t""$zsh_cv_prog_sh_echo_escape" 1>&6
if test $zsh_cv_prog_sh_echo_escape = no; then
d2948 1
a2948 15
fi

L=N
if test "$ac_cv_func_dlopen" != yes; then
  dynamic=no
elif test "$ac_cv_func_dlsym" != yes; then
  dynamic=no
elif test "$ac_cv_func_dlerror" != yes; then
  dynamic=no
fi
if test "x$dynamic" = xyes; then
  echo $ac_n "checking if your system use ELF binaries""... $ac_c" 1>&6
echo "configure:3389: checking if your system use ELF binaries" >&5
if eval "test \"`echo '$''{'zsh_cv_sys_elf'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
d2950 1
a2950 131
  if test "$cross_compiling" = yes; then
  zsh_cv_sys_elf=yes
else
  cat > conftest.$ac_ext <<EOF
#line 3397 "configure"
#include "confdefs.h"
/* Test for whether ELF binaries are produced */
#include <fcntl.h>
#include <stdlib.h>
main(argc, argv)
int argc;
char *argv[];
{
	char b[4];
	int i = open(argv[0],O_RDONLY);
	if(i == -1) 
		exit(1); /* fail */
	if(read(i,b,4)==4 && b[0]==127 && b[1]=='E' && b[2]=='L' && b[3]=='F')
		exit(0); /* succeed (yes, it's ELF) */
	else
		exit(1); /* fail */
}
EOF
if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  zsh_cv_sys_elf=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  zsh_cv_sys_elf=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$zsh_cv_sys_elf" 1>&6
  DL_EXT="${DL_EXT=so}"
  if test $zsh_cv_sys_elf = yes; then
    DLLD="${DLLD=$CC}"
  else
    DLLD="${DLLD=ld}"
  fi
  if test -n "$GCC"; then
    DLCFLAGS="${DLCFLAGS=-fpic}"
  else
    case "$host_os" in
      hpux*)                 DLCFLAGS="${DLCFLAGS=+z}" ;;
      sunos*)                DLCFLAGS="${DLCFLAGS=-pic}" ;;
      solaris*|sysv4*|esix*) DLCFLAGS="${DLCFLAGS=-Kpic}" ;;
    esac
  fi
  DLCFLAGS="-DMODULE $DLCFLAGS"
  case "$host_os" in
    hpux*)        DLLDFLAGS="${DLLDFLAGS=-b}" ;;
    linux*|irix*) DLLDFLAGS="${DLLDFLAGS=-shared}" ;;
    solaris*)     DLLDFLAGS="${DLLDFLAGS=-G}" ;;
    sunos*)       DLLDFLAGS="${DLLDFLAGS=-assert nodefinitions}" ;;
    sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G $ldflags}" ;;
  esac
  case "$host_os" in
    hpux*)  EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-Wl,-E}" ;;
    linux*) EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-rdynamic}" ;;
  esac
  echo $ac_n "checking if your dlsym() needs a leading underscore""... $ac_c" 1>&6
echo "configure:3459: checking if your dlsym() needs a leading underscore" >&5
if eval "test \"`echo '$''{'zsh_cv_func_dlsym_needs_underscore'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat >conftest.c <<EOM
fred () { }
EOM
    $CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest.c 1>&5 2>&5 &&
    $DLLD -o conftest.$DL_EXT $LDFLAGS $DLLDFLAGS conftest.o 1>&5 2>&5 &&
    if test "$cross_compiling" = yes; then
  zsh_cv_func_dlsym_needs_underscore=no
else
  cat > conftest.$ac_ext <<EOF
#line 3472 "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#else
#include <sys/types.h>
#include <nlist.h>
#include <link.h>
#endif
#ifndef RTLD_LAZY
#define RTLD_LAZY 1
#endif

extern int fred() ;

main()
{
    void * handle ;
    void * symbol ;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    handle = dlopen("./conftest.$DL_EXT", RTLD_LAZY) ;
    if (handle == NULL) {
        fprintf (f, "dlopen failed") ;
            exit(1);
    }
    symbol = dlsym(handle, "fred") ;
    if (symbol == NULL) {
                /* try putting a leading underscore */
        symbol = dlsym(handle, "_fred") ;
        if (symbol == NULL) {
            fprintf (f, "dlsym failed") ;
                exit(1);
                }
        fprintf (f, "yes") ;
    }
    else
        fprintf (f, "no") ;
    exit(0);
}
EOF
if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  zsh_cv_func_dlsym_needs_underscore=`cat conftestval`
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  zsh_cv_func_dlsym_needs_underscore=failed
    dynamic=no
a2951 29
rm -fr conftest*
fi

fi

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

  fi
  case "$host_os" in
    sysv4*|esix*)  L=L LIBS="$LIBS -L. -lzsh";;
  esac
fi

if test "x$dynamic" = xyes; then
  D=D
  cat >> confdefs.h <<\EOF
#define DYNAMIC 1
EOF
else
  D=N
fi

cat >> confdefs.h <<EOF
#define DL_EXT "$DL_EXT"
EOF
a2969 3
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
d2973 2
a2974 13
  case `(ac_space=' '; set) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
d3029 1
a3029 1
    echo "$CONFIG_STATUS generated by autoconf version 2.12"
d3040 2
a3041 3
trap 'rm -fr `echo "Makefile Src/Makefile Src/Zle/Makefile Src/Modules/Makefile \
Doc/Makefile Etc/Makefile Misc/Makefile Util/Makefile Functions/Makefile \
StartupFiles/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
a3089 9
s%@@RLIMITS_SRC_H@@%$RLIMITS_SRC_H%g
s%@@RLIMITS_INC_H@@%$RLIMITS_INC_H%g
s%@@D@@%$D%g
s%@@DL_EXT@@%$DL_EXT%g
s%@@DLLD@@%$DLLD%g
s%@@DLCFLAGS@@%$DLCFLAGS%g
s%@@DLLDFLAGS@@%$DLLDFLAGS%g
s%@@EXTRA_LDFLAGS@@%$EXTRA_LDFLAGS%g
s%@@L@@%$L%g
a3092 36

cat >> $CONFIG_STATUS <<\EOF

# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
    else
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    fi
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
  fi
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF

d3095 2
a3096 3
CONFIG_FILES=\${CONFIG_FILES-"Makefile Src/Makefile Src/Zle/Makefile Src/Modules/Makefile \
Doc/Makefile Etc/Makefile Misc/Makefile Util/Makefile Functions/Makefile \
StartupFiles/Makefile"}
d3100 1
a3100 1
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
d3102 1
a3102 1
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
d3107 1
a3107 1
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
a3134 1

a3142 2

  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
d3148 1
a3148 1
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
d3150 1
a3150 1
rm -f conftest.s*
d3171 1
a3171 7
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
d3173 1
a3173 1
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
d3175 1
a3175 1
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
d3183 1
a3183 2
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in
d3211 2
a3253 2
EOF
cat >> $CONFIG_STATUS <<EOF
a3254 2
EOF
cat >> $CONFIG_STATUS <<\EOF
@


3.1.1.1
log
@use ..o suffix for module objects.  From Zefram (2632)
@
text
@d3445 1
d3458 1
a3458 1
echo "configure:3458: checking if your dlsym() needs a leading underscore" >&5
d3471 1
a3471 1
#line 3471 "configure"
d3514 1
a3514 1
if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
@


3.1.1.2
log
@dgux CLOBBERS_TYPEAHEAD.  From Roderick Schertler <roderick@@gate.net> (2623)
@
text
@d3180 2
a3181 6
  case x-$host_os in
    x-ultrix* | x-dgux*)
	zsh_cv_sys_clobbers_typeahead=yes;;
    *)
	zsh_cv_sys_clobbers_typeahead=no;;
esac
d3193 1
a3193 1
echo "configure:3198: checking for brk() prototype in <unistd.h>" >&5
d3198 1
a3198 1
#line 3203 "configure"
d3206 1
a3206 1
if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3227 1
a3227 1
echo "configure:3232: checking for sbrk() prototype in <unistd.h>" >&5
d3232 1
a3232 1
#line 3237 "configure"
d3240 1
a3240 1
if { (eval echo configure:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3263 1
a3263 1
echo "configure:3268: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3268 1
a3268 1
#line 3273 "configure"
d3276 1
a3276 1
if { (eval echo configure:3281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3298 1
a3298 1
echo "configure:3303: checking if named FIFOs work" >&5
d3306 1
a3306 1
#line 3311 "configure"
d3337 1
a3337 1
if { (eval echo configure:3342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3359 1
a3359 1
echo "configure:3364: checking if echo in /bin/sh interprets escape sequences" >&5
d3388 1
a3388 1
echo "configure:3393: checking if your system use ELF binaries" >&5
d3396 1
a3396 1
#line 3401 "configure"
d3415 1
a3415 1
if { (eval echo configure:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3457 1
a3457 1
echo "configure:3462: checking if your dlsym() needs a leading underscore" >&5
d3470 1
a3470 1
#line 3475 "configure"
d3513 1
a3513 1
if { (eval echo configure:3518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
@


3.1.1.3
log
@alpha-linux defines signals in <asm/signum.h>.
From David Krinsky <krinsky@@hcs.harvard.edu> (2706)
@
text
@d3035 1
a3035 1
  for SIGNAL_H in /usr/include/bsd/sys/signal.h                   /usr/include/asm/signum.h                       /usr/include/asm/signal.h                       /usr/include/linux/signal.h                     /usr/include/sys/signal.h                       /dev/null;                     do
@


3.1.1.4
log
@checks for quad_t and unsigned resource types
@
text
@a3071 73
echo $ac_n "checking if rlim_t is quad_t""... $ac_c" 1>&6
echo "configure:3074: checking if rlim_t is quad_t" >&5
if eval "test \"`echo '$''{'zsh_cv_rlim_t_is_quad_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  zsh_cv_rlim_t_is_quad_t=yes
else
  cat > conftest.$ac_ext <<EOF
#line 3082 "configure"
#include "confdefs.h"

#include <sys/resource.h>
main(){struct rlimit r;exit(sizeof(r.rlim_cur) <= sizeof(long));}
EOF
if { (eval echo configure:3088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  zsh_cv_rlim_t_is_quad_t=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  zsh_cv_rlim_t_is_quad_t=no
fi
rm -fr conftest*
fi

fi

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

else
  echo $ac_n "checking if the rlim_t is unsigned""... $ac_c" 1>&6
echo "configure:3110: checking if the rlim_t is unsigned" >&5
if eval "test \"`echo '$''{'zsh_cv_type_rlim_t_is_unsigned'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  zsh_cv_type_rlim_t_is_unsigned=no
else
  cat > conftest.$ac_ext <<EOF
#line 3118 "configure"
#include "confdefs.h"
#include <sys/resource.h>
  main(){struct rlimit r;r.rlim_cur=-1;exit(r.rlim_cur<0);}
EOF
if { (eval echo configure:3123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  zsh_cv_type_rlim_t_is_unsigned=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  zsh_cv_type_rlim_t_is_unsigned=no
fi
rm -fr conftest*
fi

fi

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

  fi
fi

d3073 1
a3073 1
echo "configure:3147: checking for /dev/fd filesystem" >&5
d3089 1
a3089 1
echo "configure:3163: checking for RFS superroot directory" >&5
d3105 1
a3105 1
echo "configure:3179: checking for NIS" >&5
d3122 1
a3122 1
echo "configure:3196: checking for NIS+" >&5
d3140 1
a3140 1
echo "configure:3214: checking where utmp is located" >&5
d3158 1
a3158 1
echo "configure:3232: checking where wtmp is located" >&5
d3176 1
a3176 1
echo "configure:3250: checking if typeahead needs FIONREAD" >&5
d3197 1
a3197 1
echo "configure:3271: checking for brk() prototype in <unistd.h>" >&5
d3202 1
a3202 1
#line 3276 "configure"
d3210 1
a3210 1
if { (eval echo configure:3284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3231 1
a3231 1
echo "configure:3305: checking for sbrk() prototype in <unistd.h>" >&5
d3236 1
a3236 1
#line 3310 "configure"
d3244 1
a3244 1
if { (eval echo configure:3318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3267 1
a3267 1
echo "configure:3341: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3272 1
a3272 1
#line 3346 "configure"
d3280 1
a3280 1
if { (eval echo configure:3354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3302 1
a3302 1
echo "configure:3376: checking if named FIFOs work" >&5
d3310 1
a3310 1
#line 3384 "configure"
d3341 1
a3341 1
if { (eval echo configure:3415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3363 1
a3363 1
echo "configure:3437: checking if echo in /bin/sh interprets escape sequences" >&5
d3392 1
a3392 1
echo "configure:3466: checking if your system use ELF binaries" >&5
d3400 1
a3400 1
#line 3474 "configure"
d3419 1
a3419 1
if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3461 1
a3461 1
echo "configure:3535: checking if your dlsym() needs a leading underscore" >&5
d3474 1
a3474 1
#line 3548 "configure"
d3517 1
a3517 1
if { (eval echo configure:3591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
@


3.1.1.5
log
@better /dev/fd filesystem check
@
text
@d3147 1
a3147 1
if eval "test \"`echo '$''{'zsh_cv_sys_path_dev_fd'+set}'`\" = set"; then
d3150 1
a3150 3
  for zsh_cv_sys_path_dev_fd in /proc/self/fd /dev/fd no; do
   test x`echo ok|cat $zsh_cv_sys_path_dev_fd/0 2>/dev/null` = xok && break
 done
d3153 4
a3156 4
echo "$ac_t""$zsh_cv_sys_path_dev_fd" 1>&6
if test $zsh_cv_sys_path_dev_fd != no; then
  cat >> confdefs.h <<EOF
#define PATH_DEV_FD "$zsh_cv_sys_path_dev_fd"
d3162 1
a3162 1
echo "configure:3165: checking for RFS superroot directory" >&5
d3178 1
a3178 1
echo "configure:3181: checking for NIS" >&5
d3195 1
a3195 1
echo "configure:3198: checking for NIS+" >&5
d3213 1
a3213 1
echo "configure:3216: checking where utmp is located" >&5
d3231 1
a3231 1
echo "configure:3234: checking where wtmp is located" >&5
d3249 1
a3249 1
echo "configure:3252: checking if typeahead needs FIONREAD" >&5
d3270 1
a3270 1
echo "configure:3273: checking for brk() prototype in <unistd.h>" >&5
d3275 1
a3275 1
#line 3278 "configure"
d3283 1
a3283 1
if { (eval echo configure:3286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3304 1
a3304 1
echo "configure:3307: checking for sbrk() prototype in <unistd.h>" >&5
d3309 1
a3309 1
#line 3312 "configure"
d3317 1
a3317 1
if { (eval echo configure:3320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3340 1
a3340 1
echo "configure:3343: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3345 1
a3345 1
#line 3348 "configure"
d3353 1
a3353 1
if { (eval echo configure:3356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3375 1
a3375 1
echo "configure:3378: checking if named FIFOs work" >&5
d3383 1
a3383 1
#line 3386 "configure"
d3414 1
a3414 1
if { (eval echo configure:3417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3436 1
a3436 1
echo "configure:3439: checking if echo in /bin/sh interprets escape sequences" >&5
d3465 1
a3465 1
echo "configure:3468: checking if your system use ELF binaries" >&5
d3473 1
a3473 1
#line 3476 "configure"
d3492 1
a3492 1
if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3534 1
a3534 1
echo "configure:3537: checking if your dlsym() needs a leading underscore" >&5
d3547 1
a3547 1
#line 3550 "configure"
d3590 1
a3590 1
if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
@


3.1.1.6
log
@on NetBSD <sys/time.h> is needed for rlimit type checks.
Based on article 2742 from Geoff
@
text
@a3083 3
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
d3087 1
a3087 1
if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3109 1
a3109 1
echo "configure:3113: checking if the rlim_t is unsigned" >&5
d3117 1
a3117 1
#line 3121 "configure"
a3118 4

#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
d3122 1
a3122 1
if { (eval echo configure:3130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3146 1
a3146 1
echo "configure:3154: checking for /dev/fd filesystem" >&5
d3164 1
a3164 1
echo "configure:3172: checking for RFS superroot directory" >&5
d3180 1
a3180 1
echo "configure:3188: checking for NIS" >&5
d3197 1
a3197 1
echo "configure:3205: checking for NIS+" >&5
d3215 1
a3215 1
echo "configure:3223: checking where utmp is located" >&5
d3233 1
a3233 1
echo "configure:3241: checking where wtmp is located" >&5
d3251 1
a3251 1
echo "configure:3259: checking if typeahead needs FIONREAD" >&5
d3272 1
a3272 1
echo "configure:3280: checking for brk() prototype in <unistd.h>" >&5
d3277 1
a3277 1
#line 3285 "configure"
d3285 1
a3285 1
if { (eval echo configure:3293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3306 1
a3306 1
echo "configure:3314: checking for sbrk() prototype in <unistd.h>" >&5
d3311 1
a3311 1
#line 3319 "configure"
d3319 1
a3319 1
if { (eval echo configure:3327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3342 1
a3342 1
echo "configure:3350: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3347 1
a3347 1
#line 3355 "configure"
d3355 1
a3355 1
if { (eval echo configure:3363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3377 1
a3377 1
echo "configure:3385: checking if named FIFOs work" >&5
d3385 1
a3385 1
#line 3393 "configure"
d3416 1
a3416 1
if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3438 1
a3438 1
echo "configure:3446: checking if echo in /bin/sh interprets escape sequences" >&5
d3467 1
a3467 1
echo "configure:3475: checking if your system use ELF binaries" >&5
d3475 1
a3475 1
#line 3483 "configure"
d3494 1
a3494 1
if { (eval echo configure:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3536 1
a3536 1
echo "configure:3544: checking if your dlsym() needs a leading underscore" >&5
d3549 1
a3549 1
#line 3557 "configure"
d3592 1
a3592 1
if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
@


3.1.1.7
log
@alloca() and VARARR macro added which defines a variable sized automatic array
@
text
@d1277 1
a1277 229
    # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
echo "configure:1281: checking for working alloca.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1286 "configure"
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  ac_cv_header_alloca_h=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_alloca_h=no
fi
rm -f conftest*
fi

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

fi

echo $ac_n "checking for alloca""... $ac_c" 1>&6
echo "configure:1314: checking for alloca" >&5
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1319 "configure"
#include "confdefs.h"

#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# if HAVE_ALLOCA_H
#  include <alloca.h>
# else
#  ifdef _AIX
 #pragma alloca
#  else
#   ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
#   endif
#  endif
# endif
#endif

int main() {
char *p = (char *) alloca(1);
; return 0; }
EOF
if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  ac_cv_func_alloca_works=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_alloca_works=no
fi
rm -f conftest*
fi

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

fi

if test $ac_cv_func_alloca_works = no; then
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  # that cause trouble.  Some versions do not even contain alloca or
  # contain a buggy version.  If you still want to use their alloca,
  # use ar to extract alloca.o from them instead of compiling alloca.c.
  ALLOCA=alloca.o
  cat >> confdefs.h <<\EOF
#define C_ALLOCA 1
EOF


echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
echo "configure:1374: checking whether alloca needs Cray hooks" >&5
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1379 "configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
#else
wenotbecray
#endif

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

fi

echo "$ac_t""$ac_cv_os_cray" 1>&6
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:1404: checking for $ac_func" >&5
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 1409 "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() {

/* 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:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  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
  cat >> confdefs.h <<EOF
#define CRAY_STACKSEG_END $ac_func
EOF

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

done
fi

echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
echo "configure:1459: checking stack direction for C alloca" >&5
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_c_stack_direction=0
else
  cat > conftest.$ac_ext <<EOF
#line 1467 "configure"
#include "confdefs.h"
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}
main ()
{
  exit (find_stack_direction() < 0);
}
EOF
if { (eval echo configure:1486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_c_stack_direction=1
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_c_stack_direction=-1
fi
rm -fr conftest*
fi

fi

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

fi
              
d1279 1
a1279 1
echo "configure:1508: checking if signed to unsigned casting is broken" >&5
d1287 1
a1287 1
#line 1516 "configure"
d1291 1
a1291 1
if { (eval echo configure:1520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d1314 1
a1314 1
echo "configure:1543: checking if the compiler supports variable-lenth arrays" >&5
d1319 1
a1319 1
#line 1548 "configure"
d1326 1
a1326 1
if { (eval echo configure:1555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1347 1
a1347 1
echo "configure:1576: checking whether ${MAKE-make} sets \${MAKE}" >&5
d1383 1
a1383 1
echo "configure:1612: checking for a BSD compatible install" >&5
d1436 1
a1436 1
echo "configure:1665: checking for $ac_word" >&5
d1469 1
a1469 1
echo "configure:1698: checking for $ac_hdr that defines DIR" >&5
d1474 1
a1474 1
#line 1703 "configure"
d1482 1
a1482 1
if { (eval echo configure:1711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1507 1
a1507 1
echo "configure:1736: checking for opendir in -ldir" >&5
d1515 1
a1515 1
#line 1744 "configure"
d1526 1
a1526 1
if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d1548 1
a1548 1
echo "configure:1777: checking for opendir in -lx" >&5
d1556 1
a1556 1
#line 1785 "configure"
d1567 1
a1567 1
if { (eval echo configure:1796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d1590 1
a1590 1
echo "configure:1819: checking for ANSI C header files" >&5
d1595 1
a1595 1
#line 1824 "configure"
d1603 1
a1603 1
{ (eval echo configure:1832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1620 1
a1620 1
#line 1849 "configure"
d1638 1
a1638 1
#line 1867 "configure"
d1659 1
a1659 1
#line 1888 "configure"
d1670 1
a1670 1
if { (eval echo configure:1899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d1694 1
a1694 1
echo "configure:1923: checking whether time.h and sys/time.h may both be included" >&5
d1699 1
a1699 1
#line 1928 "configure"
d1708 1
a1708 1
if { (eval echo configure:1937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1729 1
a1729 1
echo "configure:1958: checking whether stat file-mode macros are broken" >&5
d1734 1
a1734 1
#line 1963 "configure"
d1785 1
a1785 1
echo "configure:2014: checking for sys/wait.h that is POSIX.1 compatible" >&5
d1790 1
a1790 1
#line 2019 "configure"
d1806 1
a1806 1
if { (eval echo configure:2035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1833 1
a1833 1
echo "configure:2062: checking for $ac_hdr" >&5
d1838 1
a1838 1
#line 2067 "configure"
d1843 1
a1843 1
{ (eval echo configure:2072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1874 1
a1874 1
echo "configure:2103: checking for $ac_hdr" >&5
d1879 1
a1879 1
#line 2108 "configure"
d1884 1
a1884 1
{ (eval echo configure:2113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1914 1
a1914 1
echo "configure:2143: checking for conflicts in sys/time.h and sys/select.h" >&5
d1919 1
a1919 1
#line 2148 "configure"
d1927 1
a1927 1
if { (eval echo configure:2156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1949 1
a1949 1
echo "configure:2178: checking ut_host in struct utmp" >&5
d1954 1
a1954 1
#line 2183 "configure"
d1962 1
a1962 1
if { (eval echo configure:2191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1985 1
a1985 1
echo "configure:2214: checking ut_host in struct utmpx" >&5
d1990 1
a1990 1
#line 2219 "configure"
d1998 1
a1998 1
if { (eval echo configure:2227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2024 1
a2024 1
echo "configure:2253: checking POSIX termios" >&5
d2029 1
a2029 1
#line 2258 "configure"
d2039 1
a2039 1
if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2055 1
a2055 1
echo "configure:2284: checking TIOCGWINSZ in termios.h" >&5
d2060 1
a2060 1
#line 2289 "configure"
d2068 1
a2068 1
if { (eval echo configure:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2087 1
a2087 1
echo "configure:2316: checking TIOCGWINSZ in sys/ioctl.h" >&5
d2092 1
a2092 1
#line 2321 "configure"
d2100 1
a2100 1
if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2123 1
a2123 1
echo "configure:2352: checking for sys/ptem.h" >&5
d2128 1
a2128 1
#line 2357 "configure"
d2133 1
a2133 1
{ (eval echo configure:2362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2166 1
a2166 1
echo "configure:2395: checking for tgetent in -l${lib}" >&5
d2174 1
a2174 1
#line 2403 "configure"
d2185 1
a2185 1
if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2210 1
a2210 1
echo "configure:2439: checking for $ac_func" >&5
d2215 1
a2215 1
#line 2444 "configure"
d2238 1
a2238 1
if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2264 1
a2264 1
echo "configure:2493: checking for getdomainname in -lnsl" >&5
d2272 1
a2272 1
#line 2501 "configure"
d2283 1
a2283 1
if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2318 1
a2318 1
echo "configure:2547: checking for dlopen in -ldl" >&5
d2326 1
a2326 1
#line 2555 "configure"
d2337 1
a2337 1
if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2367 1
a2367 1
echo "configure:2596: checking if an include file defines ospeed" >&5
d2372 1
a2372 1
#line 2601 "configure"
d2385 1
a2385 1
if { (eval echo configure:2614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2401 1
a2401 1
echo "configure:2630: checking if you must define ospeed" >&5
d2406 1
a2406 1
#line 2635 "configure"
d2413 1
a2413 1
if { (eval echo configure:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2445 1
a2445 1
echo "configure:2674: checking if tgetent accepts NULL" >&5
d2453 1
a2453 1
#line 2682 "configure"
d2457 1
a2457 1
if { (eval echo configure:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2480 1
a2480 1
echo "configure:2709: checking return type of signal handlers" >&5
d2485 1
a2485 1
#line 2714 "configure"
d2502 1
a2502 1
if { (eval echo configure:2731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2521 1
a2521 1
echo "configure:2750: checking for pid_t" >&5
d2526 1
a2526 1
#line 2755 "configure"
d2554 1
a2554 1
echo "configure:2783: checking for off_t" >&5
d2559 1
a2559 1
#line 2788 "configure"
d2587 1
a2587 1
echo "configure:2816: checking for mode_t" >&5
d2592 1
a2592 1
#line 2821 "configure"
d2620 1
a2620 1
echo "configure:2849: checking for uid_t in sys/types.h" >&5
d2625 1
a2625 1
#line 2854 "configure"
d2654 1
a2654 1
echo "configure:2883: checking for size_t" >&5
d2659 1
a2659 1
#line 2888 "configure"
d2688 1
a2688 1
echo "configure:2917: checking for sigset_t" >&5
d2693 1
a2693 1
#line 2922 "configure"
d2701 1
a2701 1
if { (eval echo configure:2930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2722 1
a2722 1
echo "configure:2951: checking for struct timezone" >&5
d2727 1
a2727 1
#line 2956 "configure"
d2734 1
a2734 1
if { (eval echo configure:2963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2755 1
a2755 1
echo "configure:2984: checking whether getpgrp takes no argument" >&5
d2763 1
a2763 1
#line 2992 "configure"
d2818 1
a2818 1
if { (eval echo configure:3047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2850 1
a2850 1
echo "configure:3079: checking for $ac_func" >&5
d2855 1
a2855 1
#line 3084 "configure"
d2878 1
a2878 1
if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2906 1
a2906 1
echo "configure:3135: checking for $ac_func" >&5
d2911 1
a2911 1
#line 3140 "configure"
d2934 1
a2934 1
if { (eval echo configure:3163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2961 1
a2961 1
echo "configure:3190: checking for working strcoll" >&5
d2969 1
a2969 1
#line 3198 "configure"
d2974 1
a2974 1
if { (eval echo configure:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2998 1
a2998 1
echo "configure:3227: checking what style of signals to use" >&5
d3031 1
a3031 1
echo "configure:3260: checking where signal.h is located" >&5
d3048 1
a3048 1
echo "configure:3277: checking where the RLIMIT macros are located" >&5
d3073 1
a3073 1
echo "configure:3302: checking if rlim_t is quad_t" >&5
d3081 1
a3081 1
#line 3310 "configure"
d3090 1
a3090 1
if { (eval echo configure:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3112 1
a3112 1
echo "configure:3341: checking if the rlim_t is unsigned" >&5
d3120 1
a3120 1
#line 3349 "configure"
d3129 1
a3129 1
if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3153 1
a3153 1
echo "configure:3382: checking for /dev/fd filesystem" >&5
d3171 1
a3171 1
echo "configure:3400: checking for RFS superroot directory" >&5
d3187 1
a3187 1
echo "configure:3416: checking for NIS" >&5
d3204 1
a3204 1
echo "configure:3433: checking for NIS+" >&5
d3222 1
a3222 1
echo "configure:3451: checking where utmp is located" >&5
d3240 1
a3240 1
echo "configure:3469: checking where wtmp is located" >&5
d3258 1
a3258 1
echo "configure:3487: checking if typeahead needs FIONREAD" >&5
d3279 1
a3279 1
echo "configure:3508: checking for brk() prototype in <unistd.h>" >&5
d3284 1
a3284 1
#line 3513 "configure"
d3292 1
a3292 1
if { (eval echo configure:3521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3313 1
a3313 1
echo "configure:3542: checking for sbrk() prototype in <unistd.h>" >&5
d3318 1
a3318 1
#line 3547 "configure"
d3326 1
a3326 1
if { (eval echo configure:3555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3349 1
a3349 1
echo "configure:3578: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3354 1
a3354 1
#line 3583 "configure"
d3362 1
a3362 1
if { (eval echo configure:3591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3384 1
a3384 1
echo "configure:3613: checking if named FIFOs work" >&5
d3392 1
a3392 1
#line 3621 "configure"
d3423 1
a3423 1
if { (eval echo configure:3652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3445 1
a3445 1
echo "configure:3674: checking if echo in /bin/sh interprets escape sequences" >&5
d3474 1
a3474 1
echo "configure:3703: checking if your system use ELF binaries" >&5
d3482 1
a3482 1
#line 3711 "configure"
d3501 1
a3501 1
if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3543 1
a3543 1
echo "configure:3772: checking if your dlsym() needs a leading underscore" >&5
d3556 1
a3556 1
#line 3785 "configure"
d3599 1
a3599 1
if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
a3785 1
s%@@ALLOCA@@%$ALLOCA%g
@


3.1.1.8
log
@use the AC_FUNC_STRCOLL builtin autoconf test
@
text
@a3068 41
echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
echo "configure:3071: checking for working strcoll" >&5
if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_strcoll_works=no
else
  cat > conftest.$ac_ext <<EOF
#line 3079 "configure"
#include "confdefs.h"
#include <string.h>
main ()
{
  exit (strcoll ("abc", "def") >= 0 ||
	strcoll ("ABC", "DEF") >= 0 ||
	strcoll ("123", "456") >= 0);
}
EOF
if { (eval echo configure:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_strcoll_works=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_strcoll_works=no
fi
rm -fr conftest*
fi

fi

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

fi

d3078 1
a3078 1
echo "configure:3120: checking for $ac_func" >&5
d3083 1
a3083 1
#line 3125 "configure"
d3106 1
a3106 1
if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3134 1
a3134 1
echo "configure:3176: checking for $ac_func" >&5
d3139 1
a3139 1
#line 3181 "configure"
d3162 1
a3162 1
if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3188 36
d3226 1
a3226 1
echo "configure:3232: checking what style of signals to use" >&5
d3259 1
a3259 1
echo "configure:3265: checking where signal.h is located" >&5
d3276 1
a3276 1
echo "configure:3282: checking where the RLIMIT macros are located" >&5
d3301 1
a3301 1
echo "configure:3307: checking if rlim_t is quad_t" >&5
d3309 1
a3309 1
#line 3315 "configure"
d3318 1
a3318 1
if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3340 1
a3340 1
echo "configure:3346: checking if the rlim_t is unsigned" >&5
d3348 1
a3348 1
#line 3354 "configure"
d3357 1
a3357 1
if { (eval echo configure:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3381 1
a3381 1
echo "configure:3387: checking for /dev/fd filesystem" >&5
d3399 1
a3399 1
echo "configure:3405: checking for RFS superroot directory" >&5
d3415 1
a3415 1
echo "configure:3421: checking for NIS" >&5
d3432 1
a3432 1
echo "configure:3438: checking for NIS+" >&5
d3450 1
a3450 1
echo "configure:3456: checking where utmp is located" >&5
d3468 1
a3468 1
echo "configure:3474: checking where wtmp is located" >&5
d3486 1
a3486 1
echo "configure:3492: checking if typeahead needs FIONREAD" >&5
d3507 1
a3507 1
echo "configure:3513: checking for brk() prototype in <unistd.h>" >&5
d3512 1
a3512 1
#line 3518 "configure"
d3520 1
a3520 1
if { (eval echo configure:3526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3541 1
a3541 1
echo "configure:3547: checking for sbrk() prototype in <unistd.h>" >&5
d3546 1
a3546 1
#line 3552 "configure"
d3554 1
a3554 1
if { (eval echo configure:3560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3577 1
a3577 1
echo "configure:3583: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3582 1
a3582 1
#line 3588 "configure"
d3590 1
a3590 1
if { (eval echo configure:3596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3612 1
a3612 1
echo "configure:3618: checking if named FIFOs work" >&5
d3620 1
a3620 1
#line 3626 "configure"
d3651 1
a3651 1
if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3673 1
a3673 1
echo "configure:3679: checking if echo in /bin/sh interprets escape sequences" >&5
d3702 1
a3702 1
echo "configure:3708: checking if your system use ELF binaries" >&5
d3710 1
a3710 1
#line 3716 "configure"
d3729 1
a3729 1
if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3771 1
a3771 1
echo "configure:3777: checking if your dlsym() needs a leading underscore" >&5
d3784 1
a3784 1
#line 3790 "configure"
d3827 1
a3827 1
if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
@


3.1.1.9
log
@some old compilers cannot initialise a union
@
text
@a1505 33
echo $ac_n "checking if the compiler supports union initialisation""... $ac_c" 1>&6
echo "configure:1508: checking if the compiler supports union initialisation" >&5
if eval "test \"`echo '$''{'zsh_cv_c_have_union_init'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1513 "configure"
#include "confdefs.h"
union{void *p;long l;}u={0};
int main() {
u.l=1;
; return 0; }
EOF
if { (eval echo configure:1520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_c_have_union_init=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  zsh_cv_c_have_union_init=no
fi
rm -f conftest*
fi

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

fi

d1507 1
a1507 1
echo "configure:1541: checking if signed to unsigned casting is broken" >&5
d1515 1
a1515 1
#line 1549 "configure"
d1519 1
a1519 1
if { (eval echo configure:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d1542 1
a1542 1
echo "configure:1576: checking if the compiler supports variable-lenth arrays" >&5
d1547 1
a1547 1
#line 1581 "configure"
d1554 1
a1554 1
if { (eval echo configure:1588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1575 1
a1575 1
echo "configure:1609: checking whether ${MAKE-make} sets \${MAKE}" >&5
d1611 1
a1611 1
echo "configure:1645: checking for a BSD compatible install" >&5
d1664 1
a1664 1
echo "configure:1698: checking for $ac_word" >&5
d1697 1
a1697 1
echo "configure:1731: checking for $ac_hdr that defines DIR" >&5
d1702 1
a1702 1
#line 1736 "configure"
d1710 1
a1710 1
if { (eval echo configure:1744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1735 1
a1735 1
echo "configure:1769: checking for opendir in -ldir" >&5
d1743 1
a1743 1
#line 1777 "configure"
d1754 1
a1754 1
if { (eval echo configure:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d1776 1
a1776 1
echo "configure:1810: checking for opendir in -lx" >&5
d1784 1
a1784 1
#line 1818 "configure"
d1795 1
a1795 1
if { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d1818 1
a1818 1
echo "configure:1852: checking for ANSI C header files" >&5
d1823 1
a1823 1
#line 1857 "configure"
d1831 1
a1831 1
{ (eval echo configure:1865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1848 1
a1848 1
#line 1882 "configure"
d1866 1
a1866 1
#line 1900 "configure"
d1887 1
a1887 1
#line 1921 "configure"
d1898 1
a1898 1
if { (eval echo configure:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d1922 1
a1922 1
echo "configure:1956: checking whether time.h and sys/time.h may both be included" >&5
d1927 1
a1927 1
#line 1961 "configure"
d1936 1
a1936 1
if { (eval echo configure:1970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1957 1
a1957 1
echo "configure:1991: checking whether stat file-mode macros are broken" >&5
d1962 1
a1962 1
#line 1996 "configure"
d2013 1
a2013 1
echo "configure:2047: checking for sys/wait.h that is POSIX.1 compatible" >&5
d2018 1
a2018 1
#line 2052 "configure"
d2034 1
a2034 1
if { (eval echo configure:2068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2061 1
a2061 1
echo "configure:2095: checking for $ac_hdr" >&5
d2066 1
a2066 1
#line 2100 "configure"
d2071 1
a2071 1
{ (eval echo configure:2105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2102 1
a2102 1
echo "configure:2136: checking for $ac_hdr" >&5
d2107 1
a2107 1
#line 2141 "configure"
d2112 1
a2112 1
{ (eval echo configure:2146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2142 1
a2142 1
echo "configure:2176: checking for conflicts in sys/time.h and sys/select.h" >&5
d2147 1
a2147 1
#line 2181 "configure"
d2155 1
a2155 1
if { (eval echo configure:2189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2177 1
a2177 1
echo "configure:2211: checking ut_host in struct utmp" >&5
d2182 1
a2182 1
#line 2216 "configure"
d2190 1
a2190 1
if { (eval echo configure:2224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2213 1
a2213 1
echo "configure:2247: checking ut_host in struct utmpx" >&5
d2218 1
a2218 1
#line 2252 "configure"
d2226 1
a2226 1
if { (eval echo configure:2260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2252 1
a2252 1
echo "configure:2286: checking POSIX termios" >&5
d2257 1
a2257 1
#line 2291 "configure"
d2267 1
a2267 1
if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2283 1
a2283 1
echo "configure:2317: checking TIOCGWINSZ in termios.h" >&5
d2288 1
a2288 1
#line 2322 "configure"
d2296 1
a2296 1
if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2315 1
a2315 1
echo "configure:2349: checking TIOCGWINSZ in sys/ioctl.h" >&5
d2320 1
a2320 1
#line 2354 "configure"
d2328 1
a2328 1
if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2351 1
a2351 1
echo "configure:2385: checking for sys/ptem.h" >&5
d2356 1
a2356 1
#line 2390 "configure"
d2361 1
a2361 1
{ (eval echo configure:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2394 1
a2394 1
echo "configure:2428: checking for tgetent in -l${lib}" >&5
d2402 1
a2402 1
#line 2436 "configure"
d2413 1
a2413 1
if { (eval echo configure:2447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2438 1
a2438 1
echo "configure:2472: checking for $ac_func" >&5
d2443 1
a2443 1
#line 2477 "configure"
d2466 1
a2466 1
if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2492 1
a2492 1
echo "configure:2526: checking for getdomainname in -lnsl" >&5
d2500 1
a2500 1
#line 2534 "configure"
d2511 1
a2511 1
if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2546 1
a2546 1
echo "configure:2580: checking for dlopen in -ldl" >&5
d2554 1
a2554 1
#line 2588 "configure"
d2565 1
a2565 1
if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2595 1
a2595 1
echo "configure:2629: checking if an include file defines ospeed" >&5
d2600 1
a2600 1
#line 2634 "configure"
d2613 1
a2613 1
if { (eval echo configure:2647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2629 1
a2629 1
echo "configure:2663: checking if you must define ospeed" >&5
d2634 1
a2634 1
#line 2668 "configure"
d2641 1
a2641 1
if { (eval echo configure:2675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2673 1
a2673 1
echo "configure:2707: checking if tgetent accepts NULL" >&5
d2681 1
a2681 1
#line 2715 "configure"
d2685 1
a2685 1
if { (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2708 1
a2708 1
echo "configure:2742: checking return type of signal handlers" >&5
d2713 1
a2713 1
#line 2747 "configure"
d2730 1
a2730 1
if { (eval echo configure:2764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2749 1
a2749 1
echo "configure:2783: checking for pid_t" >&5
d2754 1
a2754 1
#line 2788 "configure"
d2782 1
a2782 1
echo "configure:2816: checking for off_t" >&5
d2787 1
a2787 1
#line 2821 "configure"
d2815 1
a2815 1
echo "configure:2849: checking for mode_t" >&5
d2820 1
a2820 1
#line 2854 "configure"
d2848 1
a2848 1
echo "configure:2882: checking for uid_t in sys/types.h" >&5
d2853 1
a2853 1
#line 2887 "configure"
d2882 1
a2882 1
echo "configure:2916: checking for size_t" >&5
d2887 1
a2887 1
#line 2921 "configure"
d2916 1
a2916 1
echo "configure:2950: checking for sigset_t" >&5
d2921 1
a2921 1
#line 2955 "configure"
d2929 1
a2929 1
if { (eval echo configure:2963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2950 1
a2950 1
echo "configure:2984: checking for struct timezone" >&5
d2955 1
a2955 1
#line 2989 "configure"
d2962 1
a2962 1
if { (eval echo configure:2996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2983 1
a2983 1
echo "configure:3017: checking whether getpgrp takes no argument" >&5
d2991 1
a2991 1
#line 3025 "configure"
d3046 1
a3046 1
if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3070 1
a3070 1
echo "configure:3104: checking for working strcoll" >&5
d3078 1
a3078 1
#line 3112 "configure"
d3088 1
a3088 1
if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3119 1
a3119 1
echo "configure:3153: checking for $ac_func" >&5
d3124 1
a3124 1
#line 3158 "configure"
d3147 1
a3147 1
if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3175 1
a3175 1
echo "configure:3209: checking for $ac_func" >&5
d3180 1
a3180 1
#line 3214 "configure"
d3203 1
a3203 1
if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d3231 1
a3231 1
echo "configure:3265: checking what style of signals to use" >&5
d3264 1
a3264 1
echo "configure:3298: checking where signal.h is located" >&5
d3281 1
a3281 1
echo "configure:3315: checking where the RLIMIT macros are located" >&5
d3306 1
a3306 1
echo "configure:3340: checking if rlim_t is quad_t" >&5
d3314 1
a3314 1
#line 3348 "configure"
d3323 1
a3323 1
if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3345 1
a3345 1
echo "configure:3379: checking if the rlim_t is unsigned" >&5
d3353 1
a3353 1
#line 3387 "configure"
d3362 1
a3362 1
if { (eval echo configure:3396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3386 1
a3386 1
echo "configure:3420: checking for /dev/fd filesystem" >&5
d3404 1
a3404 1
echo "configure:3438: checking for RFS superroot directory" >&5
d3420 1
a3420 1
echo "configure:3454: checking for NIS" >&5
d3437 1
a3437 1
echo "configure:3471: checking for NIS+" >&5
d3455 1
a3455 1
echo "configure:3489: checking where utmp is located" >&5
d3473 1
a3473 1
echo "configure:3507: checking where wtmp is located" >&5
d3491 1
a3491 1
echo "configure:3525: checking if typeahead needs FIONREAD" >&5
d3512 1
a3512 1
echo "configure:3546: checking for brk() prototype in <unistd.h>" >&5
d3517 1
a3517 1
#line 3551 "configure"
d3525 1
a3525 1
if { (eval echo configure:3559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3546 1
a3546 1
echo "configure:3580: checking for sbrk() prototype in <unistd.h>" >&5
d3551 1
a3551 1
#line 3585 "configure"
d3559 1
a3559 1
if { (eval echo configure:3593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3582 1
a3582 1
echo "configure:3616: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3587 1
a3587 1
#line 3621 "configure"
d3595 1
a3595 1
if { (eval echo configure:3629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3617 1
a3617 1
echo "configure:3651: checking if named FIFOs work" >&5
d3625 1
a3625 1
#line 3659 "configure"
d3656 1
a3656 1
if { (eval echo configure:3690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3678 1
a3678 1
echo "configure:3712: checking if echo in /bin/sh interprets escape sequences" >&5
d3707 1
a3707 1
echo "configure:3741: checking if your system use ELF binaries" >&5
d3715 1
a3715 1
#line 3749 "configure"
d3734 1
a3734 1
if { (eval echo configure:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3776 1
a3776 1
echo "configure:3810: checking if your dlsym() needs a leading underscore" >&5
d3789 1
a3789 1
#line 3823 "configure"
d3832 1
a3832 1
if { (eval echo configure:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
@


3.1.1.10
log
@check for setsid()
@
text
@d3148 2
a3149 2
              sigprocmask setuid seteuid setreuid setresuid setsid strerror \
              nis_list initgroups
@


3.1.0.0
log
@# create 3.1.0 branch
@
text
@@


3.1.0.1
log
@support dynamically loaded binary modules
@
text
@a37 2
ac_help="$ac_help
  --enable-dynamic           allow dynamically loaded binary modules"
a773 9
# Check whether --enable-dynamic or --disable-dynamic was given.
if test "${enable_dynamic+set}" = set; then
  enableval="$enable_dynamic"
  dynamic="$enableval"
else
  dynamic=no
fi


d865 1
a865 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d939 1
a939 1
#line 951 "configure"
d945 1
a945 1
{ (eval echo configure:957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d954 1
a954 1
#line 966 "configure"
d960 1
a960 1
{ (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d986 1
a986 1
#line 998 "configure"
d1004 1
a1004 1
#line 1016 "configure"
d1029 1
a1029 1
#line 1041 "configure"
d1079 1
a1079 1
if { (eval echo configure:1091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1106 1
a1106 1
#line 1118 "configure"
d1110 1
a1110 1
{ (eval echo configure:1122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1138 1
a1138 1
#line 1150 "configure"
d1151 1
a1151 1
if { (eval echo configure:1163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1189 1
a1189 1
#line 1201 "configure"
d1200 1
a1200 1
{ (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1223 1
a1223 1
#line 1235 "configure"
d1227 1
a1227 1
{ (eval echo configure:1239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1369 1
a1369 1
#line 1381 "configure"
d1378 1
a1378 1
if { (eval echo configure:1390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1409 1
a1409 1
#line 1421 "configure"
d1421 1
a1421 1
if { (eval echo configure:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1448 1
a1448 1
#line 1460 "configure"
d1460 1
a1460 1
if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1485 1
a1485 1
#line 1497 "configure"
d1493 1
a1493 1
{ (eval echo configure:1505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1508 1
a1508 1
#line 1520 "configure"
d1526 1
a1526 1
#line 1538 "configure"
d1547 1
a1547 1
#line 1559 "configure"
d1558 1
a1558 1
{ (eval echo configure:1570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1582 1
a1582 1
#line 1594 "configure"
d1592 1
a1592 1
if { (eval echo configure:1604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1616 1
a1616 1
#line 1628 "configure"
d1671 1
a1671 1
#line 1683 "configure"
d1688 1
a1688 1
if { (eval echo configure:1700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1710 1
a1710 1
		 locale.h errno.h stdlib.h unistd.h dlfcn.h
d1718 1
a1718 1
#line 1730 "configure"
d1723 1
a1723 1
{ (eval echo configure:1735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1754 1
a1754 1
#line 1766 "configure"
d1763 1
a1763 1
if { (eval echo configure:1775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1788 1
a1788 1
#line 1800 "configure"
d1797 1
a1797 1
if { (eval echo configure:1809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1823 1
a1823 1
#line 1835 "configure"
d1832 1
a1832 1
if { (eval echo configure:1844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1861 1
a1861 1
#line 1873 "configure"
d1872 1
a1872 1
if { (eval echo configure:1884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1891 1
a1891 1
#line 1903 "configure"
d1900 1
a1900 1
if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1922 1
a1922 1
#line 1934 "configure"
d1931 1
a1931 1
if { (eval echo configure:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1957 1
a1957 1
#line 1969 "configure"
d1962 1
a1962 1
{ (eval echo configure:1974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2000 1
a2000 1
#line 2012 "configure"
d2012 1
a2012 1
if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2039 1
a2039 1
#line 2051 "configure"
d2063 1
a2063 1
if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2094 1
a2094 1
#line 2106 "configure"
d2106 1
a2106 1
if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
a2135 47
if test "x$dynamic" = xyes; then
  echo $ac_n "checking for -ldl""... $ac_c" 1>&6
ac_lib_var=`echo dl'_'dlopen | 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="-ldl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2157 "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 dlopen();

int main() { return 0; }
int t() {
dlopen()
; return 0; }
EOF
if { (eval echo configure:2169: \"$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 dl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-ldl $LIBS"

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

fi

d2141 1
a2141 1
#line 2200 "configure"
d2155 1
a2155 1
if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2174 1
a2174 1
#line 2233 "configure"
d2182 1
a2182 1
if { (eval echo configure:2241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2220 1
a2220 1
#line 2279 "configure"
d2224 1
a2224 1
{ (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2247 1
a2247 1
#line 2306 "configure"
d2265 1
a2265 1
if { (eval echo configure:2324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2287 1
a2287 1
#line 2346 "configure"
d2318 1
a2318 1
#line 2377 "configure"
d2349 1
a2349 1
#line 2408 "configure"
d2380 1
a2380 1
#line 2439 "configure"
d2413 1
a2413 1
#line 2472 "configure"
d2445 1
a2445 1
#line 2504 "configure"
d2454 1
a2454 1
if { (eval echo configure:2513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2478 1
a2478 1
#line 2537 "configure"
d2486 1
a2486 1
if { (eval echo configure:2545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2513 1
a2513 1
#line 2572 "configure"
d2568 1
a2568 1
{ (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2593 1
a2593 1
              initgroups dlopen dlerror dlsym dlclose
d2600 1
a2600 1
#line 2659 "configure"
d2624 1
a2624 1
if { (eval echo configure:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2655 1
a2655 1
#line 2714 "configure"
d2660 1
a2660 1
{ (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2845 1
a2845 1
#line 2904 "configure"
d2854 1
a2854 1
if { (eval echo configure:2913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2878 1
a2878 1
#line 2937 "configure"
d2887 1
a2887 1
if { (eval echo configure:2946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2913 1
a2913 1
#line 2972 "configure"
d2922 1
a2922 1
if { (eval echo configure:2981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2952 161
if test $ac_cv_func_dlopen != yes; then
  dynamic=no
elif test $ac_cv_func_dlsym != yes; then
  dynamic=no
elif test $ac_cv_func_dlerror != yes; then
  dynamic=no
fi
if test "x$dynamic" = xyes; then
  echo $ac_n "checking if your system use ELF binaries""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_sys_elf'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  zsh_cv_sys_elf=yes
else
cat > conftest.$ac_ext <<EOF
#line 3028 "configure"
#include "confdefs.h"
/* Test for whether ELF binaries are produced */
#include <fcntl.h>
#include <stdlib.h>
main(argc, argv)
int argc;
char *argv[];
{
	char b[4];
	int i = open(argv[0],O_RDONLY);
	if(i == -1) 
		exit(1); /* fail */
	if(read(i,b,4)==4 && b[0]==127 && b[1]=='E' && b[2]=='L' && b[3]=='F')
		exit(0); /* succeed (yes, it's ELF) */
	else
		exit(1); /* fail */
}
EOF
{ (eval echo configure:3047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  zsh_cv_sys_elf=yes
else
  zsh_cv_sys_elf=no
fi
fi
rm -fr conftest*
fi

echo "$ac_t""$zsh_cv_sys_elf" 1>&6
  DL_EXT="${DL_EXT=so}"
  if test $zsh_cv_sys_elf = yes; then
    DLLD="${DLLD=$CC}"
  else
    DLLD="${DLLD=ld}"
  fi
  if test -n "GCC"; then
    DLCFLAGS="${DLCFLAGS=-fpic}"
  else
    case "$host_os" in
      hpux*)                DLCFLAGS="${DLCFLAGS=+z}" ;;
      sunos*)               DLCFLAGS="${DLCFLAGS=-pic}" ;;
      solaris*|svr4*|esix*) DLCFLAGS="${DLCFLAGS=-Kpic}" ;;
    esac
  fi
  case "$host_os" in
    hpux*)       DLLDFLAGS="${DLLDFLAGS=-b}" ;;
    linux*)      DLLDFLAGS="${DLLDFLAGS=-shared}" ;;
    solaris*)    DLLDFLAGS="${DLLDFLAGS=-G}" ;;
    sunos*)      DLLDFLAGS="${DLLDFLAGS=-assert nodefinitions}" ;;
    svr4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G $ldflags}" ;;
  esac
  case "$host_os" in
    hpux*)  EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-Wl,-E}" ;;
    linux*) EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-rdynamic}" ;;
  esac
  echo $ac_n "checking if your dlsym() needs a leading underscore""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_func_dlsym_needs_underscore'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat >conftest.c <<EOM
fred () { }
EOM
    $CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest.c 1>&5 2>&5 &&
    $DLLD -o conftest.$DL_EXT $LDFLAGS $DLLDFLAGS conftest.o 1>&5 2>&5 &&
    if test "$cross_compiling" = yes; then
  zsh_cv_func_dlsym_needs_underscore=no
else
cat > conftest.$ac_ext <<EOF
#line 3097 "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#else
#include <sys/types.h>
#include <nlist.h>
#include <link.h>
#endif
#ifndef RTLD_LAZY
#define RTLD_LAZY 1
#endif

extern int fred() ;

main()
{
    void * handle ;
    void * symbol ;
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    handle = dlopen("./conftest.$DL_EXT", RTLD_LAZY) ;
    if (handle == NULL) {
        fprintf (f, "dlopen failed") ;
            exit(1);
    }
    symbol = dlsym(handle, "fred") ;
    if (symbol == NULL) {
                /* try putting a leading underscore */
        symbol = dlsym(handle, "_fred") ;
        if (symbol == NULL) {
            fprintf (f, "dlsym failed") ;
                exit(1);
                }
        fprintf (f, "yes") ;
    }
    else
        fprintf (f, "no") ;
    exit(0);
}
EOF
{ (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  zsh_cv_func_dlsym_needs_underscore=`cat conftestval`
else
  zsh_cv_func_dlsym_needs_underscore=failed
    dynamic=no
fi
fi
rm -fr conftest*
fi

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

  fi
fi

if test "x$dynamic" = xyes; then
  DYNAMIC=yes
  cat >> confdefs.h <<\EOF
#define DYNAMIC 1
EOF
else
  DYNAMIC=
fi

cat >> confdefs.h <<EOF
#define DL_EXT "$DL_EXT"
EOF

a3089 6
s%@@DYNAMIC@@%$DYNAMIC%g
s%@@DL_EXT@@%$DL_EXT%g
s%@@DLLD@@%$DLLD%g
s%@@DLCFLAGS@@%$DLCFLAGS%g
s%@@DLLDFLAGS@@%$DLLDFLAGS%g
s%@@EXTRA_LDFLAGS@@%$EXTRA_LDFLAGS%g
@


3.1.0.2
log
@a $ was missing.  IRIX gcc needs -shared for modules.
@
text
@d3063 1
a3063 1
  if test -n "$GCC"; then
d3073 5
a3077 5
    hpux*)        DLLDFLAGS="${DLLDFLAGS=-b}" ;;
    linux*|irix*) DLLDFLAGS="${DLLDFLAGS=-shared}" ;;
    solaris*)     DLLDFLAGS="${DLLDFLAGS=-G}" ;;
    sunos*)       DLLDFLAGS="${DLLDFLAGS=-assert nodefinitions}" ;;
    svr4*|esix*)  DLLDFLAGS="${DLLDFLAGS=-G $ldflags}" ;;
@


3.1.0.3
log
@various module changes from Zefram (2338)
@
text
@d1721 1
a1721 1
		 locale.h errno.h stdlib.h unistd.h
a1757 39
if test $dynamic = yes; then
  for ac_hdr in dlfcn.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 1768 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1773: \"$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

fi
d1765 1
a1765 1
#line 1805 "configure"
d1774 1
a1774 1
if { (eval echo configure:1814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1799 1
a1799 1
#line 1839 "configure"
d1808 1
a1808 1
if { (eval echo configure:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1834 1
a1834 1
#line 1874 "configure"
d1843 1
a1843 1
if { (eval echo configure:1883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1872 1
a1872 1
#line 1912 "configure"
d1883 1
a1883 1
if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1902 1
a1902 1
#line 1942 "configure"
d1911 1
a1911 1
if { (eval echo configure:1951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1933 1
a1933 1
#line 1973 "configure"
d1942 1
a1942 1
if { (eval echo configure:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1968 1
a1968 1
#line 2008 "configure"
d1973 1
a1973 1
{ (eval echo configure:2013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2011 1
a2011 1
#line 2051 "configure"
d2023 1
a2023 1
if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2050 1
a2050 1
#line 2090 "configure"
d2074 1
a2074 1
if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2105 1
a2105 1
#line 2145 "configure"
d2117 1
a2117 1
if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2156 1
a2156 1
#line 2196 "configure"
d2168 1
a2168 1
if { (eval echo configure:2208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2199 1
a2199 1
#line 2239 "configure"
d2213 1
a2213 1
if { (eval echo configure:2253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2232 1
a2232 1
#line 2272 "configure"
d2240 1
a2240 1
if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2278 1
a2278 1
#line 2318 "configure"
d2282 1
a2282 1
{ (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2305 1
a2305 1
#line 2345 "configure"
d2323 1
a2323 1
if { (eval echo configure:2363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2345 1
a2345 1
#line 2385 "configure"
d2376 1
a2376 1
#line 2416 "configure"
d2407 1
a2407 1
#line 2447 "configure"
d2438 1
a2438 1
#line 2478 "configure"
d2471 1
a2471 1
#line 2511 "configure"
d2503 1
a2503 1
#line 2543 "configure"
d2512 1
a2512 1
if { (eval echo configure:2552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2536 1
a2536 1
#line 2576 "configure"
d2544 1
a2544 1
if { (eval echo configure:2584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2571 1
a2571 1
#line 2611 "configure"
d2626 1
a2626 1
{ (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2651 1
a2651 55
              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 2698 "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:2722: \"$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 $dynamic = yes; then
  for ac_func in dlopen dlerror dlsym dlclose
d2658 1
a2658 1
#line 2752 "configure"
d2682 1
a2682 1
if { (eval echo configure:2776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
a2703 1
fi
d2713 1
a2713 1
#line 2808 "configure"
d2718 1
a2718 1
{ (eval echo configure:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2903 1
a2903 1
#line 2998 "configure"
d2912 1
a2912 1
if { (eval echo configure:3007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2936 1
a2936 1
#line 3031 "configure"
d2945 1
a2945 1
if { (eval echo configure:3040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2971 1
a2971 1
#line 3066 "configure"
d2980 1
a2980 1
if { (eval echo configure:3075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3027 1
a3027 1
#line 3122 "configure"
d3046 1
a3046 1
{ (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3096 1
a3096 1
#line 3191 "configure"
d3139 1
a3139 1
{ (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
a3159 1
  D=D
a3164 1
  D=N
a3308 1
s%@@D@@%$D%g
@


3.1.0.4
log
@move modules into Src/Modules
@
text
@a3578 1
 test -d Src/Modules || mkdir Src/Modules
@


3.1.0.5
log
@Makefile and configure fixes from Zefram (2416)
@
text
@d607 1
a607 6
  if test x$enableval = xyes; then
  cat >> confdefs.h <<\EOF
#define DEBUG 1
EOF

fi
d876 1
a876 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d917 1
a917 1
      CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -g"
d919 1
a919 1
      CFLAGS="$CFLAGS -g"
d950 1
a950 1
#line 956 "configure"
d956 1
a956 1
{ (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d965 1
a965 1
#line 971 "configure"
d971 1
a971 1
{ (eval echo configure:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d997 1
a997 1
#line 1003 "configure"
d1015 1
a1015 1
#line 1021 "configure"
d1040 1
a1040 1
#line 1046 "configure"
d1090 1
a1090 1
if { (eval echo configure:1096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1117 1
a1117 1
#line 1123 "configure"
d1121 1
a1121 1
{ (eval echo configure:1127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1149 1
a1149 1
#line 1155 "configure"
d1162 1
a1162 1
if { (eval echo configure:1168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1200 1
a1200 1
#line 1206 "configure"
d1211 1
a1211 1
{ (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1234 1
a1234 1
#line 1240 "configure"
d1238 1
a1238 1
{ (eval echo configure:1244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1380 1
a1380 1
#line 1386 "configure"
d1389 1
a1389 1
if { (eval echo configure:1395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1420 1
a1420 1
#line 1426 "configure"
d1432 1
a1432 1
if { (eval echo configure:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1459 1
a1459 1
#line 1465 "configure"
d1471 1
a1471 1
if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1496 1
a1496 1
#line 1502 "configure"
d1504 1
a1504 1
{ (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1519 1
a1519 1
#line 1525 "configure"
d1537 1
a1537 1
#line 1543 "configure"
d1558 1
a1558 1
#line 1564 "configure"
d1569 1
a1569 1
{ (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1593 1
a1593 1
#line 1599 "configure"
d1603 1
a1603 1
if { (eval echo configure:1609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1627 1
a1627 1
#line 1633 "configure"
d1682 1
a1682 1
#line 1688 "configure"
d1699 1
a1699 1
if { (eval echo configure:1705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1729 1
a1729 1
#line 1735 "configure"
d1734 1
a1734 1
{ (eval echo configure:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1767 1
a1767 1
#line 1773 "configure"
d1772 1
a1772 1
{ (eval echo configure:1778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1804 1
a1804 1
#line 1810 "configure"
d1813 1
a1813 1
if { (eval echo configure:1819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1838 1
a1838 1
#line 1844 "configure"
d1847 1
a1847 1
if { (eval echo configure:1853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1873 1
a1873 1
#line 1879 "configure"
d1882 1
a1882 1
if { (eval echo configure:1888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1911 1
a1911 1
#line 1917 "configure"
d1922 1
a1922 1
if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1941 1
a1941 1
#line 1947 "configure"
d1950 1
a1950 1
if { (eval echo configure:1956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1972 1
a1972 1
#line 1978 "configure"
d1981 1
a1981 1
if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2007 1
a2007 1
#line 2013 "configure"
d2012 1
a2012 1
{ (eval echo configure:2018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2050 1
a2050 1
#line 2056 "configure"
d2062 1
a2062 1
if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2089 1
a2089 1
#line 2095 "configure"
d2113 1
a2113 1
if { (eval echo configure:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2144 1
a2144 1
#line 2150 "configure"
d2156 1
a2156 1
if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2195 1
a2195 1
#line 2201 "configure"
d2207 1
a2207 1
if { (eval echo configure:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2238 1
a2238 1
#line 2244 "configure"
d2252 1
a2252 1
if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2271 1
a2271 1
#line 2277 "configure"
d2279 1
a2279 1
if { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2317 1
a2317 1
#line 2323 "configure"
d2321 1
a2321 1
{ (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2344 1
a2344 1
#line 2350 "configure"
d2362 1
a2362 1
if { (eval echo configure:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2384 1
a2384 1
#line 2390 "configure"
d2415 1
a2415 1
#line 2421 "configure"
d2446 1
a2446 1
#line 2452 "configure"
d2477 1
a2477 1
#line 2483 "configure"
d2510 1
a2510 1
#line 2516 "configure"
d2542 1
a2542 1
#line 2548 "configure"
d2551 1
a2551 1
if { (eval echo configure:2557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2575 1
a2575 1
#line 2581 "configure"
d2583 1
a2583 1
if { (eval echo configure:2589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2610 1
a2610 1
#line 2616 "configure"
d2665 1
a2665 1
{ (eval echo configure:2671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2697 1
a2697 1
#line 2703 "configure"
d2721 1
a2721 1
if { (eval echo configure:2727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2751 1
a2751 1
#line 2757 "configure"
d2775 1
a2775 1
if { (eval echo configure:2781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2807 1
a2807 1
#line 2813 "configure"
d2812 1
a2812 1
{ (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2997 1
a2997 1
#line 3003 "configure"
d3006 1
a3006 1
if { (eval echo configure:3012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3030 1
a3030 1
#line 3036 "configure"
d3039 1
a3039 1
if { (eval echo configure:3045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3065 1
a3065 1
#line 3071 "configure"
d3074 1
a3074 1
if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a3093 56
echo $ac_n "checking if named FIFOs work""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_sys_fifo'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  zsh_cv_sys_fifo=yes
else
cat > conftest.$ac_ext <<EOF
#line 3108 "configure"
#include "confdefs.h"

#include <fcntl.h>
#include <signal.h>
main()
{
    char c;
    int fd;
    int pid;
    unlink("conftestfifo");
#ifdef HAVE_MKFIFO
    if(mkfifo("conftestfifo", 0600) < 0)
#else
    if(mknod("conftestfifo", 0010600, 0) < 0)
#endif
	exit(1);
    pid = fork();
    if(pid < 0)
	exit(1);
    if(pid) {
	fd = open("conftestfifo", O_RDONLY);
	exit(fd < 0 || read(fd, &c, 1) != 1 || c != 'x');
    }
    fd = open("conftestfifo", O_WRONLY);
    if(fd < 0 || write(fd, "x", 1) < 1)
	kill(getppid(), SIGTERM);
    exit(0);
}

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

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

fi
d3095 1
a3095 12
if eval "test \"`echo '$''{'zsh_cv_prog_sh_echo_escape'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "`/bin/sh -c \"echo '\\n'\"`" = "\\n"; then
  zsh_cv_prog_sh_echo_escape=no
else
  zsh_cv_prog_sh_echo_escape=yes
fi
fi

echo "$ac_t""$zsh_cv_prog_sh_echo_escape" 1>&6
if test $zsh_cv_prog_sh_echo_escape = no; then
d3100 3
d3121 1
a3121 1
#line 3191 "configure"
d3140 1
a3140 1
{ (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3190 1
a3190 1
#line 3260 "configure"
d3233 1
a3233 1
{ (eval echo configure:3303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
@


3.1.0.6
log
@fix a problem introduced by patch 2338.  From Zefram (2416)
@
text
@d3174 1
a3174 1
if test "$ac_cv_func_dlopen" != yes; then
d3176 1
a3176 1
elif test "$ac_cv_func_dlsym" != yes; then
d3178 1
a3178 1
elif test "$ac_cv_func_dlerror" != yes; then
@


3.1.0.7
log
@try to support dynamic loading on SVR4 systems
@
text
@a3173 1
L=N
d3190 1
a3190 1
#line 3192 "configure"
d3209 1
a3209 1
{ (eval echo configure:3211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3230 3
a3232 3
      hpux*)                 DLCFLAGS="${DLCFLAGS=+z}" ;;
      sunos*)                DLCFLAGS="${DLCFLAGS=-pic}" ;;
      solaris*|sysv4*|esix*) DLCFLAGS="${DLCFLAGS=-Kpic}" ;;
d3240 1
a3240 1
    sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G $ldflags}" ;;
d3259 1
a3259 1
#line 3261 "configure"
d3302 1
a3302 1
{ (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
a3319 3
  case "$host_os" in
    sysv4*|esix*)  L=L LIBS="$LIBS -L. -lzsh";;
  esac
a3480 1
s%@@L@@%$L%g
@


3.1.0.8
log
@added configure check for variable-length automatic arrays
@
text
@a1260 32
echo $ac_n "checking if the compiler supports variable-lenth arrays""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_c_variable_length_arrays'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1267 "configure"
#include "confdefs.h"
int foo();
int main() { return 0; }
int t() {
int i[foo()];
; return 0; }
EOF
if { (eval echo configure:1275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_c_variable_length_arrays=yes
else
  rm -rf conftest*
  zsh_cv_c_variable_length_arrays=no
fi
rm -f conftest*

fi

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

fi

d1385 1
a1385 1
#line 1418 "configure"
d1394 1
a1394 1
if { (eval echo configure:1427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1425 1
a1425 1
#line 1458 "configure"
d1437 1
a1437 1
if { (eval echo configure:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1464 1
a1464 1
#line 1497 "configure"
d1476 1
a1476 1
if { (eval echo configure:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1501 1
a1501 1
#line 1534 "configure"
d1509 1
a1509 1
{ (eval echo configure:1542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1524 1
a1524 1
#line 1557 "configure"
d1542 1
a1542 1
#line 1575 "configure"
d1563 1
a1563 1
#line 1596 "configure"
d1574 1
a1574 1
{ (eval echo configure:1607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1598 1
a1598 1
#line 1631 "configure"
d1608 1
a1608 1
if { (eval echo configure:1641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1632 1
a1632 1
#line 1665 "configure"
d1687 1
a1687 1
#line 1720 "configure"
d1704 1
a1704 1
if { (eval echo configure:1737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1734 1
a1734 1
#line 1767 "configure"
d1739 1
a1739 1
{ (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1772 1
a1772 1
#line 1805 "configure"
d1777 1
a1777 1
{ (eval echo configure:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1809 1
a1809 1
#line 1842 "configure"
d1818 1
a1818 1
if { (eval echo configure:1851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1843 1
a1843 1
#line 1876 "configure"
d1852 1
a1852 1
if { (eval echo configure:1885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1878 1
a1878 1
#line 1911 "configure"
d1887 1
a1887 1
if { (eval echo configure:1920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1916 1
a1916 1
#line 1949 "configure"
d1927 1
a1927 1
if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1946 1
a1946 1
#line 1979 "configure"
d1955 1
a1955 1
if { (eval echo configure:1988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1977 1
a1977 1
#line 2010 "configure"
d1986 1
a1986 1
if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2012 1
a2012 1
#line 2045 "configure"
d2017 1
a2017 1
{ (eval echo configure:2050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2055 1
a2055 1
#line 2088 "configure"
d2067 1
a2067 1
if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2094 1
a2094 1
#line 2127 "configure"
d2118 1
a2118 1
if { (eval echo configure:2151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2149 1
a2149 1
#line 2182 "configure"
d2161 1
a2161 1
if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2200 1
a2200 1
#line 2233 "configure"
d2212 1
a2212 1
if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2243 1
a2243 1
#line 2276 "configure"
d2257 1
a2257 1
if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2276 1
a2276 1
#line 2309 "configure"
d2284 1
a2284 1
if { (eval echo configure:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2322 1
a2322 1
#line 2355 "configure"
d2326 1
a2326 1
{ (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2349 1
a2349 1
#line 2382 "configure"
d2367 1
a2367 1
if { (eval echo configure:2400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2389 1
a2389 1
#line 2422 "configure"
d2420 1
a2420 1
#line 2453 "configure"
d2451 1
a2451 1
#line 2484 "configure"
d2482 1
a2482 1
#line 2515 "configure"
d2515 1
a2515 1
#line 2548 "configure"
d2547 1
a2547 1
#line 2580 "configure"
d2556 1
a2556 1
if { (eval echo configure:2589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2580 1
a2580 1
#line 2613 "configure"
d2588 1
a2588 1
if { (eval echo configure:2621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2615 1
a2615 1
#line 2648 "configure"
d2670 1
a2670 1
{ (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2702 1
a2702 1
#line 2735 "configure"
d2726 1
a2726 1
if { (eval echo configure:2759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2756 1
a2756 1
#line 2789 "configure"
d2780 1
a2780 1
if { (eval echo configure:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2812 1
a2812 1
#line 2845 "configure"
d2817 1
a2817 1
{ (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3002 1
a3002 1
#line 3035 "configure"
d3011 1
a3011 1
if { (eval echo configure:3044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3035 1
a3035 1
#line 3068 "configure"
d3044 1
a3044 1
if { (eval echo configure:3077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3070 1
a3070 1
#line 3103 "configure"
d3079 1
a3079 1
if { (eval echo configure:3112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3107 1
a3107 1
#line 3140 "configure"
d3138 1
a3138 1
{ (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3191 1
a3191 1
#line 3224 "configure"
d3210 1
a3210 1
{ (eval echo configure:3243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3260 1
a3260 1
#line 3293 "configure"
d3303 1
a3303 1
{ (eval echo configure:3336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
@


3.1.0.9
log
@-pedantic is used with --enable-zsh-debug.  Link production zsh with -s.
@
text
@d790 4
a793 2
test -z "$CFLAGS"  && CFLAGS=  auto_cflags=1
test -z "$LDFLAGS" && LDFLAGS= auto_ldflags=1
d881 1
a881 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d922 1
a922 1
      CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -pedantic -ggdb"
a933 7
if test -n "$auto_ldflags"; then
  if test "${enable_zsh_debug}" = yes; then
    LDFLAGS=-g
  else
    LDFLAGS=-s
  fi
fi
d955 1
a955 1
#line 961 "configure"
d961 1
a961 1
{ (eval echo configure:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d970 1
a970 1
#line 976 "configure"
d976 1
a976 1
{ (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1002 1
a1002 1
#line 1008 "configure"
d1020 1
a1020 1
#line 1026 "configure"
d1045 1
a1045 1
#line 1051 "configure"
d1095 1
a1095 1
if { (eval echo configure:1101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1122 1
a1122 1
#line 1128 "configure"
d1126 1
a1126 1
{ (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1154 1
a1154 1
#line 1160 "configure"
d1167 1
a1167 1
if { (eval echo configure:1173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1205 1
a1205 1
#line 1211 "configure"
d1216 1
a1216 1
{ (eval echo configure:1222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1239 1
a1239 1
#line 1245 "configure"
d1243 1
a1243 1
{ (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1266 1
a1266 1
#line 1272 "configure"
d1274 1
a1274 1
if { (eval echo configure:1280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1417 1
a1417 1
#line 1423 "configure"
d1426 1
a1426 1
if { (eval echo configure:1432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1457 1
a1457 1
#line 1463 "configure"
d1469 1
a1469 1
if { (eval echo configure:1475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1496 1
a1496 1
#line 1502 "configure"
d1508 1
a1508 1
if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1533 1
a1533 1
#line 1539 "configure"
d1541 1
a1541 1
{ (eval echo configure:1547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1556 1
a1556 1
#line 1562 "configure"
d1574 1
a1574 1
#line 1580 "configure"
d1595 1
a1595 1
#line 1601 "configure"
d1606 1
a1606 1
{ (eval echo configure:1612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1630 1
a1630 1
#line 1636 "configure"
d1640 1
a1640 1
if { (eval echo configure:1646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1664 1
a1664 1
#line 1670 "configure"
d1719 1
a1719 1
#line 1725 "configure"
d1736 1
a1736 1
if { (eval echo configure:1742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1766 1
a1766 1
#line 1772 "configure"
d1771 1
a1771 1
{ (eval echo configure:1777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1804 1
a1804 1
#line 1810 "configure"
d1809 1
a1809 1
{ (eval echo configure:1815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1841 1
a1841 1
#line 1847 "configure"
d1850 1
a1850 1
if { (eval echo configure:1856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1875 1
a1875 1
#line 1881 "configure"
d1884 1
a1884 1
if { (eval echo configure:1890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1910 1
a1910 1
#line 1916 "configure"
d1919 1
a1919 1
if { (eval echo configure:1925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1948 1
a1948 1
#line 1954 "configure"
d1959 1
a1959 1
if { (eval echo configure:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1978 1
a1978 1
#line 1984 "configure"
d1987 1
a1987 1
if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2009 1
a2009 1
#line 2015 "configure"
d2018 1
a2018 1
if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2044 1
a2044 1
#line 2050 "configure"
d2049 1
a2049 1
{ (eval echo configure:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2087 1
a2087 1
#line 2093 "configure"
d2099 1
a2099 1
if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2126 1
a2126 1
#line 2132 "configure"
d2150 1
a2150 1
if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2181 1
a2181 1
#line 2187 "configure"
d2193 1
a2193 1
if { (eval echo configure:2199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2232 1
a2232 1
#line 2238 "configure"
d2244 1
a2244 1
if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2275 1
a2275 1
#line 2281 "configure"
d2289 1
a2289 1
if { (eval echo configure:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2308 1
a2308 1
#line 2314 "configure"
d2316 1
a2316 1
if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2354 1
a2354 1
#line 2360 "configure"
d2358 1
a2358 1
{ (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2381 1
a2381 1
#line 2387 "configure"
d2399 1
a2399 1
if { (eval echo configure:2405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2421 1
a2421 1
#line 2427 "configure"
d2452 1
a2452 1
#line 2458 "configure"
d2483 1
a2483 1
#line 2489 "configure"
d2514 1
a2514 1
#line 2520 "configure"
d2547 1
a2547 1
#line 2553 "configure"
d2579 1
a2579 1
#line 2585 "configure"
d2588 1
a2588 1
if { (eval echo configure:2594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2612 1
a2612 1
#line 2618 "configure"
d2620 1
a2620 1
if { (eval echo configure:2626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2647 1
a2647 1
#line 2653 "configure"
d2702 1
a2702 1
{ (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2734 1
a2734 1
#line 2740 "configure"
d2758 1
a2758 1
if { (eval echo configure:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2788 1
a2788 1
#line 2794 "configure"
d2812 1
a2812 1
if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2844 1
a2844 1
#line 2850 "configure"
d2849 1
a2849 1
{ (eval echo configure:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3034 1
a3034 1
#line 3040 "configure"
d3043 1
a3043 1
if { (eval echo configure:3049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3067 1
a3067 1
#line 3073 "configure"
d3076 1
a3076 1
if { (eval echo configure:3082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3102 1
a3102 1
#line 3108 "configure"
d3111 1
a3111 1
if { (eval echo configure:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3139 1
a3139 1
#line 3145 "configure"
d3170 1
a3170 1
{ (eval echo configure:3176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3223 1
a3223 1
#line 3229 "configure"
d3242 1
a3242 1
{ (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3292 1
a3292 1
#line 3298 "configure"
d3335 1
a3335 1
{ (eval echo configure:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
@


3.1.0.10
log
@Move zle into a separate directory and convert it to an optional
auto-loadable module.  Create Modules subdirectory.  Many Makefile
changes.  boot_modname and cleanup_modname is back since on elf each
module must have a separate name space.  Lots of other changes.
@
text
@a3272 1
  DLCFLAGS="-DMODULE $DLCFLAGS"
d3297 1
a3297 1
#line 3299 "configure"
d3340 1
a3340 1
{ (eval echo configure:3342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d3365 1
d3371 1
d3465 2
a3466 3
trap 'rm -fr `echo "Makefile Src/Makefile Src/Zle/Makefile Src/Modules/Makefile \
Doc/Makefile Etc/Makefile Misc/Makefile Util/Makefile Functions/Makefile \
StartupFiles/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
d3516 1
d3528 2
a3529 3
CONFIG_FILES=\${CONFIG_FILES-"Makefile Src/Makefile Src/Zle/Makefile Src/Modules/Makefile \
Doc/Makefile Etc/Makefile Misc/Makefile Util/Makefile Functions/Makefile \
StartupFiles/Makefile"}
d3690 1
@


3.1.0.11
log
@working fifos should be tested in /tmp
@
text
@d3153 2
a3154 2
    int pid, ret;
    unlink("/tmp/fifo$$");
d3156 1
a3156 1
    if(mkfifo("/tmp/fifo$$", 0600) < 0)
d3158 1
a3158 1
    if(mknod("/tmp/fifo$$", 0010600, 0) < 0)
d3165 1
a3165 1
	fd = open("/tmp/fifo$$", O_RDONLY);
d3168 4
a3171 4
    fd = open("/tmp/fifo$$", O_WRONLY);
    ret = (fd < 0 || write(fd, "x", 1) < 1);
    unlink("/tmp/fifo$$");
    exit(ret);
@


3.1.0.12
log
@upgrade to autoconf-2.12.  Linux machines are still recognized
without the -gnu suffix
@
text
@d4 1
a4 1
# Generated automatically using autoconf version 2.12 
a77 2
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
d359 1
a359 1
    echo "configure generated by autoconf version 2.12"
d461 4
a464 4
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
a465 3
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
a526 1
cross_compiling=$ac_cv_prog_cc_cross
a571 1
echo "configure:579: checking host system type" >&5
d586 3
a588 3
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a795 1
echo "configure:804: checking for $ac_word" >&5
a823 1
echo "configure:833: checking for $ac_word" >&5
a869 39
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:881: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5

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'
cross_compiling=$ac_cv_prog_cc_cross

cat > conftest.$ac_ext <<EOF
#line 891 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
fi
rm -fr conftest*

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:915: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

a870 1
echo "configure:920: checking whether we are using GNU C" >&5
d879 1
a879 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a886 1

d889 3
a891 6
  ac_test_CFLAGS="${CFLAGS+set}"
  ac_save_CFLAGS="$CFLAGS"
  CFLAGS=
  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:944: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
d896 1
a896 1
  ac_cv_prog_cc_g=yes
d898 1
a898 1
  ac_cv_prog_cc_g=no
d904 6
a909 7
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  if test "$ac_test_CFLAGS" = set; then
    CFLAGS="$ac_save_CFLAGS"
  elif test $ac_cv_prog_cc_g = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-O2"
a945 1
echo "configure:1001: checking how to run the C preprocessor" >&5
d960 1
a960 1
#line 1016 "configure"
d966 1
a966 1
{ (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a971 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d975 1
a975 1
#line 1033 "configure"
d981 1
a981 1
{ (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a986 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a1001 1
echo "configure:1062: checking whether ${CC-cc} needs -traditional" >&5
d1007 1
a1007 1
#line 1068 "configure"
d1025 1
a1025 1
#line 1086 "configure"
a1045 1
echo "configure:1107: checking for working const" >&5
d1050 1
a1050 1
#line 1112 "configure"
d1053 2
a1054 1
int main() {
d1100 1
a1100 1
if { (eval echo configure:1161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1103 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1108 1
d1118 25
a1143 1
echo "configure:1181: checking for ${CC-cc} option to accept ANSI C" >&5
d1159 1
a1159 1
#line 1197 "configure"
d1165 2
a1166 1
int main() {
d1172 1
a1172 1
if { (eval echo configure:1209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1174 3
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1177 1
a1190 1
echo "configure:1230: checking for function prototypes" >&5
a1202 1
echo "configure:1243: checking size of long" >&5
d1209 2
a1210 2
  cat > conftest.$ac_ext <<EOF
#line 1251 "configure"
d1221 2
a1222 2
if { (eval echo configure:1262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a1224 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d1227 1
a1229 2

fi
a1236 1
echo "configure:1282: checking if signed to unsigned casting is broken" >&5
d1243 2
a1244 2
  cat > conftest.$ac_ext <<EOF
#line 1290 "configure"
d1248 2
a1249 2
if { (eval echo configure:1294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a1251 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d1254 1
a1257 2
fi

a1266 1
echo "configure:1317: checking if the compiler supports variable-lenth arrays" >&5
d1271 1
a1271 1
#line 1322 "configure"
d1274 2
a1275 1
int main() {
d1279 1
a1279 1
if { (eval echo configure:1329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1282 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1287 1
d1299 1
a1299 2
echo "configure:1350: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
a1333 1
echo "configure:1386: checking for a BSD compatible install" >&5
d1338 1
a1338 1
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
d1361 1
a1361 1
  IFS="$ac_save_IFS"
a1385 1
echo "configure:1439: checking for $ac_word" >&5
d1416 1
a1416 1
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
a1417 1
echo "configure:1472: checking for $ac_hdr that defines DIR" >&5
d1422 1
a1422 1
#line 1477 "configure"
d1426 2
a1427 1
int main() {
d1431 1
a1431 1
if { (eval echo configure:1485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1434 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1439 1
d1443 1
a1443 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d1454 2
a1455 3
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
echo "configure:1510: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
d1462 1
a1462 1
#line 1518 "configure"
d1469 2
a1470 1
int main() {
d1474 1
a1474 1
if { (eval echo configure:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1477 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1493 2
a1494 3
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
echo "configure:1551: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
d1501 1
a1501 1
#line 1559 "configure"
d1508 2
a1509 1
int main() {
d1513 1
a1513 1
if { (eval echo configure:1570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1516 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a1533 1
echo "configure:1593: checking for ANSI C header files" >&5
d1538 1
a1538 1
#line 1598 "configure"
d1546 1
a1546 1
{ (eval echo configure:1606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1552 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1561 1
a1561 1
#line 1623 "configure"
d1579 1
a1579 1
#line 1641 "configure"
d1599 2
a1600 2
  cat > conftest.$ac_ext <<EOF
#line 1662 "configure"
d1611 2
a1612 2
if { (eval echo configure:1673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a1614 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d1617 1
a1619 2

fi
a1630 1
echo "configure:1697: checking whether time.h and sys/time.h may both be included" >&5
d1635 1
a1635 1
#line 1702 "configure"
d1640 2
a1641 1
int main() {
d1645 1
a1645 1
if { (eval echo configure:1711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1648 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1653 1
a1664 1
echo "configure:1732: checking whether stat file-mode macros are broken" >&5
d1669 1
a1669 1
#line 1737 "configure"
a1719 1
echo "configure:1788: checking for sys/wait.h that is POSIX.1 compatible" >&5
d1724 1
a1724 1
#line 1793 "configure"
d1734 2
a1735 1
int main() {
d1741 1
a1741 1
if { (eval echo configure:1809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1744 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1749 1
d1765 1
a1765 1
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
a1766 1
echo "configure:1836: checking for $ac_hdr" >&5
d1771 1
a1771 1
#line 1841 "configure"
d1776 1
a1776 1
{ (eval echo configure:1846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1782 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1790 1
a1790 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d1803 1
a1803 1
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
a1804 1
echo "configure:1877: checking for $ac_hdr" >&5
d1809 1
a1809 1
#line 1882 "configure"
d1814 1
a1814 1
{ (eval echo configure:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1820 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1828 1
a1828 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
a1841 1
echo "configure:1917: checking for conflicts in sys/time.h and sys/select.h" >&5
d1846 1
a1846 1
#line 1922 "configure"
d1850 2
a1851 1
int main() {
d1855 1
a1855 1
if { (eval echo configure:1930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1858 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1863 1
a1875 1
echo "configure:1952: checking ut_host in struct utmp" >&5
d1880 1
a1880 1
#line 1957 "configure"
d1884 2
a1885 1
int main() {
d1889 1
a1889 1
if { (eval echo configure:1965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1892 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1897 1
a1910 1
echo "configure:1988: checking ut_host in struct utmpx" >&5
d1915 1
a1915 1
#line 1993 "configure"
d1919 2
a1920 1
int main() {
d1924 1
a1924 1
if { (eval echo configure:2001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1927 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1932 1
a1948 1
echo "configure:2027: checking POSIX termios" >&5
d1953 1
a1953 1
#line 2032 "configure"
d1958 2
a1959 1
int main() {
d1964 1
a1964 1
if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1967 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1972 1
a1978 1
echo "configure:2058: checking TIOCGWINSZ in termios.h" >&5
d1983 1
a1983 1
#line 2063 "configure"
d1987 2
a1988 1
int main() {
d1992 1
a1992 1
if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1995 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2000 1
a2009 1
echo "configure:2090: checking TIOCGWINSZ in sys/ioctl.h" >&5
d2014 1
a2014 1
#line 2095 "configure"
d2018 2
a2019 1
int main() {
d2023 1
a2023 1
if { (eval echo configure:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2026 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2031 1
d2043 1
a2043 1
ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
a2044 1
echo "configure:2126: checking for sys/ptem.h" >&5
d2049 1
a2049 1
#line 2131 "configure"
d2054 1
a2054 1
{ (eval echo configure:2136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a2060 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2084 2
a2085 3
  echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
echo "configure:2169: checking for tgetent in -l${lib}" >&5
ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
d2092 1
a2092 1
#line 2177 "configure"
d2099 2
a2100 1
int main() {
d2104 1
a2104 1
if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2107 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a2126 1
echo "configure:2213: checking for $ac_func" >&5
d2131 1
a2131 1
#line 2218 "configure"
d2141 2
a2142 1
int main() {
d2155 1
a2155 1
if { (eval echo configure:2241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2158 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2163 1
a2164 1

d2178 2
a2179 3
  echo $ac_n "checking for getdomainname in -lnsl""... $ac_c" 1>&6
echo "configure:2267: checking for getdomainname in -lnsl" >&5
ac_lib_var=`echo nsl'_'getdomainname | sed 'y%./+-%__p_%'`
d2186 1
a2186 1
#line 2275 "configure"
d2193 2
a2194 1
int main() {
d2198 1
a2198 1
if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2201 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2211 1
a2211 2
    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
d2229 2
a2230 3
  echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
echo "configure:2321: checking for dlopen in -ldl" >&5
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
d2237 1
a2237 1
#line 2329 "configure"
d2244 2
a2245 1
int main() {
d2249 1
a2249 1
if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2252 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2262 1
a2262 2
    ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a2275 1
echo "configure:2370: checking if an include file defines ospeed" >&5
d2280 1
a2280 1
#line 2375 "configure"
d2289 2
a2290 1
int main() {
d2294 1
a2294 1
if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2297 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2302 1
a2308 1
echo "configure:2404: checking if you must define ospeed" >&5
d2313 1
a2313 1
#line 2409 "configure"
d2316 2
a2317 1
int main() {
d2321 1
a2321 1
if { (eval echo configure:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2324 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2329 1
a2351 1
echo "configure:2448: checking if tgetent accepts NULL" >&5
d2358 2
a2359 2
  cat > conftest.$ac_ext <<EOF
#line 2456 "configure"
d2363 2
a2364 2
if { (eval echo configure:2460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a2366 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d2369 1
a2372 2
fi

a2381 1
echo "configure:2483: checking return type of signal handlers" >&5
d2386 1
a2386 1
#line 2488 "configure"
d2399 2
a2400 1
int main() {
d2404 1
a2404 1
if { (eval echo configure:2505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2407 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2412 1
a2421 1
echo "configure:2524: checking for pid_t" >&5
d2426 1
a2426 1
#line 2529 "configure"
a2430 1
#include <stddef.h>
d2434 1
a2434 1
  egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2452 1
echo "configure:2557: checking for off_t" >&5
d2457 1
a2457 1
#line 2562 "configure"
a2461 1
#include <stddef.h>
d2465 1
a2465 1
  egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2483 1
echo "configure:2590: checking for mode_t" >&5
d2488 1
a2488 1
#line 2595 "configure"
a2492 1
#include <stddef.h>
d2496 1
a2496 1
  egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2514 1
echo "configure:2623: checking for uid_t in sys/types.h" >&5
d2519 1
a2519 1
#line 2628 "configure"
a2547 1
echo "configure:2657: checking for size_t" >&5
d2552 1
a2552 1
#line 2662 "configure"
a2556 1
#include <stddef.h>
d2560 1
a2560 1
  egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2579 1
echo "configure:2691: checking for sigset_t" >&5
d2584 1
a2584 1
#line 2696 "configure"
d2588 2
a2589 1
int main() {
d2593 1
a2593 1
if { (eval echo configure:2704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2596 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2601 1
a2612 1
echo "configure:2725: checking for struct timezone" >&5
d2617 1
a2617 1
#line 2730 "configure"
d2620 2
a2621 1
int main() {
d2625 1
a2625 1
if { (eval echo configure:2737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2628 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2633 1
a2644 1
echo "configure:2758: checking whether getpgrp takes no argument" >&5
d2651 2
a2652 2
  cat > conftest.$ac_ext <<EOF
#line 2766 "configure"
d2707 2
a2708 2
if { (eval echo configure:2821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a2710 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d2713 1
a2714 2
fi

a2734 1
echo "configure:2853: checking for $ac_func" >&5
d2739 1
a2739 1
#line 2858 "configure"
d2749 2
a2750 1
int main() {
d2763 1
a2763 1
if { (eval echo configure:2881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2766 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2771 1
a2772 1

a2788 1
echo "configure:2909: checking for $ac_func" >&5
d2793 1
a2793 1
#line 2914 "configure"
d2803 2
a2804 1
int main() {
d2817 1
a2817 1
if { (eval echo configure:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2820 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2825 1
a2826 1

a2841 1
echo "configure:2964: checking for working strcoll" >&5
d2848 2
a2849 2
  cat > conftest.$ac_ext <<EOF
#line 2972 "configure"
d2854 2
a2855 2
if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a2857 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d2860 1
a2863 2
fi

a2873 1
echo "configure:3001: checking what style of signals to use" >&5
a2905 1
echo "configure:3034: checking where signal.h is located" >&5
a2921 1
echo "configure:3051: checking for /dev/fd filesystem" >&5
a2936 1
echo "configure:3067: checking for RFS superroot directory" >&5
a2951 1
echo "configure:3083: checking for NIS" >&5
a2967 1
echo "configure:3100: checking for NIS+" >&5
a2984 1
echo "configure:3118: checking where utmp is located" >&5
a3001 1
echo "configure:3136: checking where wtmp is located" >&5
a3018 1
echo "configure:3154: checking if typeahead needs FIONREAD" >&5
a3034 1
echo "configure:3171: checking for brk() prototype in <unistd.h>" >&5
d3039 1
a3039 1
#line 3176 "configure"
d3043 2
a3044 1
int main() {
d3048 1
a3048 1
if { (eval echo configure:3184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a3051 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3056 1
a3067 1
echo "configure:3205: checking for sbrk() prototype in <unistd.h>" >&5
d3072 1
a3072 1
#line 3210 "configure"
d3076 2
a3077 1
int main() {
d3081 1
a3081 1
if { (eval echo configure:3218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a3084 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3089 1
a3102 1
echo "configure:3241: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3107 1
a3107 1
#line 3246 "configure"
d3111 2
a3112 1
int main() {
d3116 1
a3116 1
if { (eval echo configure:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a3119 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d3124 1
a3136 1
echo "configure:3276: checking if named FIFOs work" >&5
d3143 2
a3144 2
  cat > conftest.$ac_ext <<EOF
#line 3284 "configure"
d3175 2
a3176 2
if { (eval echo configure:3315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a3178 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d3181 1
a3184 2
fi

a3192 1
echo "configure:3337: checking if echo in /bin/sh interprets escape sequences" >&5
a3220 1
echo "configure:3366: checking if your system use ELF binaries" >&5
d3227 2
a3228 2
  cat > conftest.$ac_ext <<EOF
#line 3374 "configure"
d3247 2
a3248 2
if { (eval echo configure:3393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a3250 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d3253 1
a3256 2
fi

a3285 1
echo "configure:3436: checking if your dlsym() needs a leading underscore" >&5
d3297 2
a3298 2
  cat > conftest.$ac_ext <<EOF
#line 3449 "configure"
d3341 2
a3342 2
if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a3344 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d3348 1
a3351 2
fi

a3393 3
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
d3397 2
a3398 13
  case `(ac_space=' '; set) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
d3453 1
a3453 1
    echo "$CONFIG_STATUS generated by autoconf version 2.12"
a3524 36

cat >> $CONFIG_STATUS <<\EOF

# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
    else
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    fi
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
  fi
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF

d3533 1
a3533 1
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
d3535 1
a3535 1
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
d3540 1
a3540 1
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
a3567 1

a3575 2

  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
d3581 1
a3581 1
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
d3583 1
a3583 1
rm -f conftest.s*
d3604 1
a3604 7
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
d3606 1
a3606 1
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
d3608 1
a3608 1
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
d3616 1
a3616 2
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in
d3644 2
a3686 2
EOF
cat >> $CONFIG_STATUS <<EOF
a3687 2
EOF
cat >> $CONFIG_STATUS <<\EOF
@


3.1.0.13
log
@awk generated rlimits from Peter (2573)
@
text
@a3048 25
echo $ac_n "checking where the RLIMIT macros are located""... $ac_c" 1>&6
echo "configure:3051: checking where the RLIMIT macros are located" >&5
if eval "test \"`echo '$''{'zsh_cv_path_rlimit_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  for RESOURCE_H in /usr/include/bsd/sys/resource.h                      /usr/include/asm/resource.h	                        /usr/include/linux/resource.h                        /usr/include/sys/resource.h                          /dev/null;
do
  test -f $RESOURCE_H && \
  grep '#[ 	]*define[ 	][ 	]*RLIMIT_[A-Z]*[ 	]*[0-9][0-9]*' $RESOURCE_H > /dev/null && \
  break
done
zsh_cv_path_rlimit_h=$RESOURCE_H
if test $RESOURCE_H = "/dev/null" -a $ac_cv_func_getrlimit = yes; then
  echo "RLIMIT MACROS NOT FOUND:  please report to developers"
fi
fi

echo "$ac_t""$zsh_cv_path_rlimit_h" 1>&6
RLIMITS_INC_H=$zsh_cv_path_rlimit_h
if test $zsh_cv_path_rlimit_h = /dev/null -a $ac_cv_func_getrlimit = no; then
  RLIMITS_SRC_H=
else
  RLIMITS_SRC_H=rlimits.h
fi

d3050 1
a3050 1
echo "configure:3076: checking for /dev/fd filesystem" >&5
d3066 1
a3066 1
echo "configure:3092: checking for RFS superroot directory" >&5
d3082 1
a3082 1
echo "configure:3108: checking for NIS" >&5
d3099 1
a3099 1
echo "configure:3125: checking for NIS+" >&5
d3117 1
a3117 1
echo "configure:3143: checking where utmp is located" >&5
d3135 1
a3135 1
echo "configure:3161: checking where wtmp is located" >&5
d3153 1
a3153 1
echo "configure:3179: checking if typeahead needs FIONREAD" >&5
d3170 1
a3170 1
echo "configure:3196: checking for brk() prototype in <unistd.h>" >&5
d3175 1
a3175 1
#line 3201 "configure"
d3183 1
a3183 1
if { (eval echo configure:3209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3204 1
a3204 1
echo "configure:3230: checking for sbrk() prototype in <unistd.h>" >&5
d3209 1
a3209 1
#line 3235 "configure"
d3217 1
a3217 1
if { (eval echo configure:3243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3240 1
a3240 1
echo "configure:3266: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3245 1
a3245 1
#line 3271 "configure"
d3253 1
a3253 1
if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3275 1
a3275 1
echo "configure:3301: checking if named FIFOs work" >&5
d3283 1
a3283 1
#line 3309 "configure"
d3314 1
a3314 1
if { (eval echo configure:3340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3336 1
a3336 1
echo "configure:3362: checking if echo in /bin/sh interprets escape sequences" >&5
d3365 1
a3365 1
echo "configure:3391: checking if your system use ELF binaries" >&5
d3373 1
a3373 1
#line 3399 "configure"
d3392 1
a3392 1
if { (eval echo configure:3418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3435 1
a3435 1
echo "configure:3461: checking if your dlsym() needs a leading underscore" >&5
d3448 1
a3448 1
#line 3474 "configure"
d3491 1
a3491 1
if { (eval echo configure:3517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
a3682 2
s%@@RLIMITS_SRC_H@@%$RLIMITS_SRC_H%g
s%@@RLIMITS_INC_H@@%$RLIMITS_INC_H%g
@


3.1.0.14
log
@SunOS 4 shared libraries do not work when they are stripped
@
text
@d989 2
d1000 1
a1000 1
echo "configure:999: checking how to run the C preprocessor" >&5
d1015 1
a1015 1
#line 1014 "configure"
d1021 1
a1021 1
{ (eval echo configure:1020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1032 1
a1032 1
#line 1031 "configure"
d1038 1
a1038 1
{ (eval echo configure:1037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1061 1
a1061 1
echo "configure:1060: checking whether ${CC-cc} needs -traditional" >&5
d1067 1
a1067 1
#line 1066 "configure"
d1085 1
a1085 1
#line 1084 "configure"
d1106 1
a1106 1
echo "configure:1105: checking for working const" >&5
d1111 1
a1111 1
#line 1110 "configure"
d1160 1
a1160 1
if { (eval echo configure:1159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1180 1
a1180 1
echo "configure:1179: checking for ${CC-cc} option to accept ANSI C" >&5
d1196 1
a1196 1
#line 1195 "configure"
d1208 1
a1208 1
if { (eval echo configure:1207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1229 1
a1229 1
echo "configure:1228: checking for function prototypes" >&5
d1242 1
a1242 1
echo "configure:1241: checking size of long" >&5
d1250 1
a1250 1
#line 1249 "configure"
d1261 1
a1261 1
if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d1281 1
a1281 1
echo "configure:1280: checking if signed to unsigned casting is broken" >&5
d1289 1
a1289 1
#line 1288 "configure"
d1293 1
a1293 1
if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d1316 1
a1316 1
echo "configure:1315: checking if the compiler supports variable-lenth arrays" >&5
d1321 1
a1321 1
#line 1320 "configure"
d1328 1
a1328 1
if { (eval echo configure:1327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1349 1
a1349 1
echo "configure:1348: checking whether ${MAKE-make} sets \${MAKE}" >&5
d1385 1
a1385 1
echo "configure:1384: checking for a BSD compatible install" >&5
d1438 1
a1438 1
echo "configure:1437: checking for $ac_word" >&5
d1471 1
a1471 1
echo "configure:1470: checking for $ac_hdr that defines DIR" >&5
d1476 1
a1476 1
#line 1475 "configure"
d1484 1
a1484 1
if { (eval echo configure:1483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1509 1
a1509 1
echo "configure:1508: checking for opendir in -ldir" >&5
d1517 1
a1517 1
#line 1516 "configure"
d1528 1
a1528 1
if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d1550 1
a1550 1
echo "configure:1549: checking for opendir in -lx" >&5
d1558 1
a1558 1
#line 1557 "configure"
d1569 1
a1569 1
if { (eval echo configure:1568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d1592 1
a1592 1
echo "configure:1591: checking for ANSI C header files" >&5
d1597 1
a1597 1
#line 1596 "configure"
d1605 1
a1605 1
{ (eval echo configure:1604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1622 1
a1622 1
#line 1621 "configure"
d1640 1
a1640 1
#line 1639 "configure"
d1661 1
a1661 1
#line 1660 "configure"
d1672 1
a1672 1
if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d1696 1
a1696 1
echo "configure:1695: checking whether time.h and sys/time.h may both be included" >&5
d1701 1
a1701 1
#line 1700 "configure"
d1710 1
a1710 1
if { (eval echo configure:1709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1731 1
a1731 1
echo "configure:1730: checking whether stat file-mode macros are broken" >&5
d1736 1
a1736 1
#line 1735 "configure"
d1787 1
a1787 1
echo "configure:1786: checking for sys/wait.h that is POSIX.1 compatible" >&5
d1792 1
a1792 1
#line 1791 "configure"
d1808 1
a1808 1
if { (eval echo configure:1807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1835 1
a1835 1
echo "configure:1834: checking for $ac_hdr" >&5
d1840 1
a1840 1
#line 1839 "configure"
d1845 1
a1845 1
{ (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1876 1
a1876 1
echo "configure:1875: checking for $ac_hdr" >&5
d1881 1
a1881 1
#line 1880 "configure"
d1886 1
a1886 1
{ (eval echo configure:1885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1916 1
a1916 1
echo "configure:1915: checking for conflicts in sys/time.h and sys/select.h" >&5
d1921 1
a1921 1
#line 1920 "configure"
d1929 1
a1929 1
if { (eval echo configure:1928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1951 1
a1951 1
echo "configure:1950: checking ut_host in struct utmp" >&5
d1956 1
a1956 1
#line 1955 "configure"
d1964 1
a1964 1
if { (eval echo configure:1963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1987 1
a1987 1
echo "configure:1986: checking ut_host in struct utmpx" >&5
d1992 1
a1992 1
#line 1991 "configure"
d2000 1
a2000 1
if { (eval echo configure:1999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2026 1
a2026 1
echo "configure:2025: checking POSIX termios" >&5
d2031 1
a2031 1
#line 2030 "configure"
d2041 1
a2041 1
if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2057 1
a2057 1
echo "configure:2056: checking TIOCGWINSZ in termios.h" >&5
d2062 1
a2062 1
#line 2061 "configure"
d2070 1
a2070 1
if { (eval echo configure:2069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2089 1
a2089 1
echo "configure:2088: checking TIOCGWINSZ in sys/ioctl.h" >&5
d2094 1
a2094 1
#line 2093 "configure"
d2102 1
a2102 1
if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2125 1
a2125 1
echo "configure:2124: checking for sys/ptem.h" >&5
d2130 1
a2130 1
#line 2129 "configure"
d2135 1
a2135 1
{ (eval echo configure:2134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2168 1
a2168 1
echo "configure:2167: checking for tgetent in -l${lib}" >&5
d2176 1
a2176 1
#line 2175 "configure"
d2187 1
a2187 1
if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2212 1
a2212 1
echo "configure:2211: checking for $ac_func" >&5
d2217 1
a2217 1
#line 2216 "configure"
d2240 1
a2240 1
if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2266 1
a2266 1
echo "configure:2265: checking for getdomainname in -lnsl" >&5
d2274 1
a2274 1
#line 2273 "configure"
d2285 1
a2285 1
if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2320 1
a2320 1
echo "configure:2319: checking for dlopen in -ldl" >&5
d2328 1
a2328 1
#line 2327 "configure"
d2339 1
a2339 1
if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2369 1
a2369 1
echo "configure:2368: checking if an include file defines ospeed" >&5
d2374 1
a2374 1
#line 2373 "configure"
d2387 1
a2387 1
if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2403 1
a2403 1
echo "configure:2402: checking if you must define ospeed" >&5
d2408 1
a2408 1
#line 2407 "configure"
d2415 1
a2415 1
if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2447 1
a2447 1
echo "configure:2446: checking if tgetent accepts NULL" >&5
d2455 1
a2455 1
#line 2454 "configure"
d2459 1
a2459 1
if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2482 1
a2482 1
echo "configure:2481: checking return type of signal handlers" >&5
d2487 1
a2487 1
#line 2486 "configure"
d2504 1
a2504 1
if { (eval echo configure:2503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2523 1
a2523 1
echo "configure:2522: checking for pid_t" >&5
d2528 1
a2528 1
#line 2527 "configure"
d2556 1
a2556 1
echo "configure:2555: checking for off_t" >&5
d2561 1
a2561 1
#line 2560 "configure"
d2589 1
a2589 1
echo "configure:2588: checking for mode_t" >&5
d2594 1
a2594 1
#line 2593 "configure"
d2622 1
a2622 1
echo "configure:2621: checking for uid_t in sys/types.h" >&5
d2627 1
a2627 1
#line 2626 "configure"
d2656 1
a2656 1
echo "configure:2655: checking for size_t" >&5
d2661 1
a2661 1
#line 2660 "configure"
d2690 1
a2690 1
echo "configure:2689: checking for sigset_t" >&5
d2695 1
a2695 1
#line 2694 "configure"
d2703 1
a2703 1
if { (eval echo configure:2702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2724 1
a2724 1
echo "configure:2723: checking for struct timezone" >&5
d2729 1
a2729 1
#line 2728 "configure"
d2736 1
a2736 1
if { (eval echo configure:2735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2757 1
a2757 1
echo "configure:2756: checking whether getpgrp takes no argument" >&5
d2765 1
a2765 1
#line 2764 "configure"
d2820 1
a2820 1
if { (eval echo configure:2819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2852 1
a2852 1
echo "configure:2851: checking for $ac_func" >&5
d2857 1
a2857 1
#line 2856 "configure"
d2880 1
a2880 1
if { (eval echo configure:2879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2908 1
a2908 1
echo "configure:2907: checking for $ac_func" >&5
d2913 1
a2913 1
#line 2912 "configure"
d2936 1
a2936 1
if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2963 1
a2963 1
echo "configure:2962: checking for working strcoll" >&5
d2971 1
a2971 1
#line 2970 "configure"
d2976 1
a2976 1
if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3000 1
a3000 1
echo "configure:2999: checking what style of signals to use" >&5
d3033 1
a3033 1
echo "configure:3032: checking where signal.h is located" >&5
d3050 1
a3050 1
echo "configure:3049: checking where the RLIMIT macros are located" >&5
d3075 1
a3075 1
echo "configure:3074: checking for /dev/fd filesystem" >&5
d3091 1
a3091 1
echo "configure:3090: checking for RFS superroot directory" >&5
d3107 1
a3107 1
echo "configure:3106: checking for NIS" >&5
d3124 1
a3124 1
echo "configure:3123: checking for NIS+" >&5
d3142 1
a3142 1
echo "configure:3141: checking where utmp is located" >&5
d3160 1
a3160 1
echo "configure:3159: checking where wtmp is located" >&5
d3178 1
a3178 1
echo "configure:3177: checking if typeahead needs FIONREAD" >&5
d3195 1
a3195 1
echo "configure:3194: checking for brk() prototype in <unistd.h>" >&5
d3200 1
a3200 1
#line 3199 "configure"
d3208 1
a3208 1
if { (eval echo configure:3207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3229 1
a3229 1
echo "configure:3228: checking for sbrk() prototype in <unistd.h>" >&5
d3234 1
a3234 1
#line 3233 "configure"
d3242 1
a3242 1
if { (eval echo configure:3241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3265 1
a3265 1
echo "configure:3264: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3270 1
a3270 1
#line 3269 "configure"
d3278 1
a3278 1
if { (eval echo configure:3277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3300 1
a3300 1
echo "configure:3299: checking if named FIFOs work" >&5
d3308 1
a3308 1
#line 3307 "configure"
d3339 1
a3339 1
if { (eval echo configure:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3361 1
a3361 1
echo "configure:3360: checking if echo in /bin/sh interprets escape sequences" >&5
d3390 1
a3390 1
echo "configure:3389: checking if your system use ELF binaries" >&5
d3398 1
a3398 1
#line 3397 "configure"
d3417 1
a3417 1
if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3460 1
a3460 1
echo "configure:3459: checking if your dlsym() needs a leading underscore" >&5
d3473 1
a3473 1
#line 3472 "configure"
d3516 1
a3516 1
if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
@


3.0
log
@# bounce the revision numbers to 3.0
@
text
@@


3.0.2.1
log
@dgux CLOBBERS_TYPEAHEAD.  From Roderick Schertler <roderick@@gate.net> (2623)
@
text
@d4 1
a4 1
# Generated automatically using autoconf version 2.12 
a75 2
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
d357 1
a357 1
    echo "configure generated by autoconf version 2.12"
d459 4
a462 4
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
a463 3
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
a524 1
cross_compiling=$ac_cv_prog_cc_cross
a569 1
echo "configure:577: checking host system type" >&5
d584 3
a586 3
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
d605 1
a605 6
  if test x$enableval = xyes; then
  cat >> confdefs.h <<\EOF
#define DEBUG 1
EOF

fi
a781 1
echo "configure:795: checking for $ac_word" >&5
a809 1
echo "configure:824: checking for $ac_word" >&5
a855 39
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:872: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5

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'
cross_compiling=$ac_cv_prog_cc_cross

cat > conftest.$ac_ext <<EOF
#line 882 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
fi
rm -fr conftest*

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:906: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

a856 1
echo "configure:911: checking whether we are using GNU C" >&5
d865 1
a865 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a872 1

d875 3
a877 6
  ac_test_CFLAGS="${CFLAGS+set}"
  ac_save_CFLAGS="$CFLAGS"
  CFLAGS=
  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:935: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
d882 1
a882 1
  ac_cv_prog_cc_g=yes
d884 1
a884 1
  ac_cv_prog_cc_g=no
d890 6
a895 7
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  if test "$ac_test_CFLAGS" = set; then
    CFLAGS="$ac_save_CFLAGS"
  elif test $ac_cv_prog_cc_g = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-O2"
d906 1
a906 1
      CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -g"
d908 1
a908 1
      CFLAGS="$CFLAGS -g"
a924 1
echo "configure:985: checking how to run the C preprocessor" >&5
d939 1
a939 1
#line 1000 "configure"
d945 1
a945 1
{ (eval echo configure:1006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a950 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d954 1
a954 1
#line 1017 "configure"
d960 1
a960 1
{ (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a965 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a980 1
echo "configure:1046: checking whether ${CC-cc} needs -traditional" >&5
d986 1
a986 1
#line 1052 "configure"
d1004 1
a1004 1
#line 1070 "configure"
a1024 1
echo "configure:1091: checking for working const" >&5
d1029 1
a1029 1
#line 1096 "configure"
d1032 2
a1033 1
int main() {
d1079 1
a1079 1
if { (eval echo configure:1145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1082 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1087 1
d1097 25
a1122 1
echo "configure:1165: checking for ${CC-cc} option to accept ANSI C" >&5
d1138 1
a1138 1
#line 1181 "configure"
d1144 2
a1145 1
int main() {
d1151 1
a1151 1
if { (eval echo configure:1193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1153 3
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1156 1
a1169 1
echo "configure:1214: checking for function prototypes" >&5
a1181 1
echo "configure:1227: checking size of long" >&5
d1188 2
a1189 2
  cat > conftest.$ac_ext <<EOF
#line 1235 "configure"
d1200 2
a1201 2
if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a1203 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d1206 1
a1208 2

fi
a1215 1
echo "configure:1266: checking if signed to unsigned casting is broken" >&5
d1222 2
a1223 2
  cat > conftest.$ac_ext <<EOF
#line 1274 "configure"
d1227 2
a1228 2
if { (eval echo configure:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a1230 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d1233 1
a1236 2
fi

d1246 1
a1246 2
echo "configure:1301: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
a1280 1
echo "configure:1337: checking for a BSD compatible install" >&5
d1285 1
a1285 1
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
d1308 1
a1308 1
  IFS="$ac_save_IFS"
a1332 1
echo "configure:1390: checking for $ac_word" >&5
d1363 1
a1363 1
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
a1364 1
echo "configure:1423: checking for $ac_hdr that defines DIR" >&5
d1369 1
a1369 1
#line 1428 "configure"
d1373 2
a1374 1
int main() {
d1378 1
a1378 1
if { (eval echo configure:1436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1381 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1386 1
d1390 1
a1390 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d1401 2
a1402 3
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
echo "configure:1461: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
d1409 1
a1409 1
#line 1469 "configure"
d1416 2
a1417 1
int main() {
d1421 1
a1421 1
if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1424 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1440 2
a1441 3
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
echo "configure:1502: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
d1448 1
a1448 1
#line 1510 "configure"
d1455 2
a1456 1
int main() {
d1460 1
a1460 1
if { (eval echo configure:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1463 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a1480 1
echo "configure:1544: checking for ANSI C header files" >&5
d1485 1
a1485 1
#line 1549 "configure"
d1493 1
a1493 1
{ (eval echo configure:1557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1499 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1508 1
a1508 1
#line 1574 "configure"
d1526 1
a1526 1
#line 1592 "configure"
d1546 2
a1547 2
  cat > conftest.$ac_ext <<EOF
#line 1613 "configure"
d1558 2
a1559 2
if { (eval echo configure:1624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a1561 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d1564 1
a1566 2

fi
a1577 1
echo "configure:1648: checking whether time.h and sys/time.h may both be included" >&5
d1582 1
a1582 1
#line 1653 "configure"
d1587 2
a1588 1
int main() {
d1592 1
a1592 1
if { (eval echo configure:1662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1595 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1600 1
a1611 1
echo "configure:1683: checking whether stat file-mode macros are broken" >&5
d1616 1
a1616 1
#line 1688 "configure"
a1666 1
echo "configure:1739: checking for sys/wait.h that is POSIX.1 compatible" >&5
d1671 1
a1671 1
#line 1744 "configure"
d1681 2
a1682 1
int main() {
d1688 1
a1688 1
if { (eval echo configure:1760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1691 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1696 1
d1712 1
a1712 1
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
a1713 1
echo "configure:1787: checking for $ac_hdr" >&5
d1718 1
a1718 1
#line 1792 "configure"
d1723 1
a1723 1
{ (eval echo configure:1797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1729 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1737 1
a1737 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
a1749 1
echo "configure:1826: checking for conflicts in sys/time.h and sys/select.h" >&5
d1754 1
a1754 1
#line 1831 "configure"
d1758 2
a1759 1
int main() {
d1763 1
a1763 1
if { (eval echo configure:1839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1766 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1771 1
a1783 1
echo "configure:1861: checking ut_host in struct utmp" >&5
d1788 1
a1788 1
#line 1866 "configure"
d1792 2
a1793 1
int main() {
d1797 1
a1797 1
if { (eval echo configure:1874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1800 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1805 1
a1818 1
echo "configure:1897: checking ut_host in struct utmpx" >&5
d1823 1
a1823 1
#line 1902 "configure"
d1827 2
a1828 1
int main() {
d1832 1
a1832 1
if { (eval echo configure:1910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1835 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1840 1
a1856 1
echo "configure:1936: checking POSIX termios" >&5
d1861 1
a1861 1
#line 1941 "configure"
d1866 2
a1867 1
int main() {
d1872 1
a1872 1
if { (eval echo configure:1951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1875 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1880 1
a1886 1
echo "configure:1967: checking TIOCGWINSZ in termios.h" >&5
d1891 1
a1891 1
#line 1972 "configure"
d1895 2
a1896 1
int main() {
d1900 1
a1900 1
if { (eval echo configure:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1903 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1908 1
a1917 1
echo "configure:1999: checking TIOCGWINSZ in sys/ioctl.h" >&5
d1922 1
a1922 1
#line 2004 "configure"
d1926 2
a1927 1
int main() {
d1931 1
a1931 1
if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1934 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1939 1
d1951 1
a1951 1
ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
a1952 1
echo "configure:2035: checking for sys/ptem.h" >&5
d1957 1
a1957 1
#line 2040 "configure"
d1962 1
a1962 1
{ (eval echo configure:2045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1968 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1992 2
a1993 3
  echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
echo "configure:2078: checking for tgetent in -l${lib}" >&5
ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
d2000 1
a2000 1
#line 2086 "configure"
d2007 2
a2008 1
int main() {
d2012 1
a2012 1
if { (eval echo configure:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2015 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a2034 1
echo "configure:2122: checking for $ac_func" >&5
d2039 1
a2039 1
#line 2127 "configure"
d2049 2
a2050 1
int main() {
d2063 1
a2063 1
if { (eval echo configure:2150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2066 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2071 1
a2072 1

d2086 2
a2087 3
  echo $ac_n "checking for getdomainname in -lnsl""... $ac_c" 1>&6
echo "configure:2176: checking for getdomainname in -lnsl" >&5
ac_lib_var=`echo nsl'_'getdomainname | sed 'y%./+-%__p_%'`
d2094 1
a2094 1
#line 2184 "configure"
d2101 2
a2102 1
int main() {
d2106 1
a2106 1
if { (eval echo configure:2195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2109 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2119 1
a2119 2
    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a2136 1
echo "configure:2229: checking if an include file defines ospeed" >&5
d2141 1
a2141 1
#line 2234 "configure"
d2150 2
a2151 1
int main() {
d2155 1
a2155 1
if { (eval echo configure:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2158 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2163 1
a2169 1
echo "configure:2263: checking if you must define ospeed" >&5
d2174 1
a2174 1
#line 2268 "configure"
d2177 2
a2178 1
int main() {
d2182 1
a2182 1
if { (eval echo configure:2275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2185 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2190 1
a2212 1
echo "configure:2307: checking if tgetent accepts NULL" >&5
d2219 2
a2220 2
  cat > conftest.$ac_ext <<EOF
#line 2315 "configure"
d2224 2
a2225 2
if { (eval echo configure:2319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a2227 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d2230 1
a2233 2
fi

a2242 1
echo "configure:2342: checking return type of signal handlers" >&5
d2247 1
a2247 1
#line 2347 "configure"
d2260 2
a2261 1
int main() {
d2265 1
a2265 1
if { (eval echo configure:2364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2268 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2273 1
a2282 1
echo "configure:2383: checking for pid_t" >&5
d2287 1
a2287 1
#line 2388 "configure"
a2291 1
#include <stddef.h>
d2295 1
a2295 1
  egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2313 1
echo "configure:2416: checking for off_t" >&5
d2318 1
a2318 1
#line 2421 "configure"
a2322 1
#include <stddef.h>
d2326 1
a2326 1
  egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2344 1
echo "configure:2449: checking for mode_t" >&5
d2349 1
a2349 1
#line 2454 "configure"
a2353 1
#include <stddef.h>
d2357 1
a2357 1
  egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2375 1
echo "configure:2482: checking for uid_t in sys/types.h" >&5
d2380 1
a2380 1
#line 2487 "configure"
a2408 1
echo "configure:2516: checking for size_t" >&5
d2413 1
a2413 1
#line 2521 "configure"
a2417 1
#include <stddef.h>
d2421 1
a2421 1
  egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2440 1
echo "configure:2550: checking for sigset_t" >&5
d2445 1
a2445 1
#line 2555 "configure"
d2449 2
a2450 1
int main() {
d2454 1
a2454 1
if { (eval echo configure:2563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2457 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2462 1
a2473 1
echo "configure:2584: checking for struct timezone" >&5
d2478 1
a2478 1
#line 2589 "configure"
d2481 2
a2482 1
int main() {
d2486 1
a2486 1
if { (eval echo configure:2596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2489 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2494 1
a2505 1
echo "configure:2617: checking whether getpgrp takes no argument" >&5
d2512 2
a2513 2
  cat > conftest.$ac_ext <<EOF
#line 2625 "configure"
d2568 2
a2569 2
if { (eval echo configure:2680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a2571 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d2574 1
a2575 2
fi

a2595 1
echo "configure:2712: checking for $ac_func" >&5
d2600 1
a2600 1
#line 2717 "configure"
d2610 2
a2611 1
int main() {
d2624 1
a2624 1
if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2627 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2632 1
a2633 1

a2647 1
echo "configure:2766: checking for working strcoll" >&5
d2654 2
a2655 2
  cat > conftest.$ac_ext <<EOF
#line 2774 "configure"
d2660 2
a2661 2
if { (eval echo configure:2779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a2663 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d2666 1
a2669 2
fi

a2679 1
echo "configure:2803: checking what style of signals to use" >&5
a2711 1
echo "configure:2836: checking where signal.h is located" >&5
a2726 25
echo $ac_n "checking where the RLIMIT macros are located""... $ac_c" 1>&6
echo "configure:2853: checking where the RLIMIT macros are located" >&5
if eval "test \"`echo '$''{'zsh_cv_path_rlimit_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  for RESOURCE_H in /usr/include/bsd/sys/resource.h                      /usr/include/asm/resource.h	                        /usr/include/linux/resource.h                        /usr/include/sys/resource.h                          /dev/null;
do
  test -f $RESOURCE_H && \
  grep '#[ 	]*define[ 	][ 	]*RLIMIT_[A-Z]*[ 	]*[0-9][0-9]*' $RESOURCE_H > /dev/null && \
  break
done
zsh_cv_path_rlimit_h=$RESOURCE_H
if test $RESOURCE_H = "/dev/null" -a $ac_cv_func_getrlimit = yes; then
  echo "RLIMIT MACROS NOT FOUND:  please report to developers"
fi
fi

echo "$ac_t""$zsh_cv_path_rlimit_h" 1>&6
RLIMITS_INC_H=$zsh_cv_path_rlimit_h
if test $zsh_cv_path_rlimit_h = /dev/null -a $ac_cv_func_getrlimit = no; then
  RLIMITS_SRC_H=
else
  RLIMITS_SRC_H=rlimits.h
fi

a2727 1
echo "configure:2878: checking for /dev/fd filesystem" >&5
a2742 1
echo "configure:2894: checking for RFS superroot directory" >&5
a2757 1
echo "configure:2910: checking for NIS" >&5
a2773 1
echo "configure:2927: checking for NIS+" >&5
a2790 1
echo "configure:2945: checking where utmp is located" >&5
a2807 1
echo "configure:2963: checking where wtmp is located" >&5
a2824 1
echo "configure:2981: checking if typeahead needs FIONREAD" >&5
d2828 2
a2829 6
  case x-$host_os in
    x-ultrix* | x-dgux*)
	zsh_cv_sys_clobbers_typeahead=yes;;
    *)
	zsh_cv_sys_clobbers_typeahead=no;;
esac
a2840 1
echo "configure:3002: checking for brk() prototype in <unistd.h>" >&5
d2845 1
a2845 1
#line 3007 "configure"
d2849 2
a2850 1
int main() {
d2854 1
a2854 1
if { (eval echo configure:3015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2857 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2862 1
a2873 1
echo "configure:3036: checking for sbrk() prototype in <unistd.h>" >&5
d2878 1
a2878 1
#line 3041 "configure"
d2882 2
a2883 1
int main() {
d2887 1
a2887 1
if { (eval echo configure:3049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2890 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2895 1
a2908 1
echo "configure:3072: checking for ioctl prototype in <sys/ioctl.h>" >&5
d2913 1
a2913 1
#line 3077 "configure"
d2917 2
a2918 1
int main() {
d2922 1
a2922 1
if { (eval echo configure:3085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2925 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2930 1
a2941 61
echo $ac_n "checking if named FIFOs work""... $ac_c" 1>&6
echo "configure:3107: checking if named FIFOs work" >&5
if eval "test \"`echo '$''{'zsh_cv_sys_fifo'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  zsh_cv_sys_fifo=yes
else
  cat > conftest.$ac_ext <<EOF
#line 3115 "configure"
#include "confdefs.h"

#include <fcntl.h>
#include <signal.h>
main()
{
    char c;
    int fd;
    int pid, ret;
    unlink("/tmp/fifo$$");
#ifdef HAVE_MKFIFO
    if(mkfifo("/tmp/fifo$$", 0600) < 0)
#else
    if(mknod("/tmp/fifo$$", 0010600, 0) < 0)
#endif
	exit(1);
    pid = fork();
    if(pid < 0)
	exit(1);
    if(pid) {
	fd = open("/tmp/fifo$$", O_RDONLY);
	exit(fd < 0 || read(fd, &c, 1) != 1 || c != 'x');
    }
    fd = open("/tmp/fifo$$", O_WRONLY);
    ret = (fd < 0 || write(fd, "x", 1) < 1);
    unlink("/tmp/fifo$$");
    exit(ret);
}

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

fi

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

fi
d2943 1
a2943 13
echo "configure:3168: checking if echo in /bin/sh interprets escape sequences" >&5
if eval "test \"`echo '$''{'zsh_cv_prog_sh_echo_escape'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "`/bin/sh -c \"echo '\\n'\"`" = "\\n"; then
  zsh_cv_prog_sh_echo_escape=no
else
  zsh_cv_prog_sh_echo_escape=yes
fi
fi

echo "$ac_t""$zsh_cv_prog_sh_echo_escape" 1>&6
if test $zsh_cv_prog_sh_echo_escape = no; then
d2948 3
a2969 3
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
d2973 2
a2974 13
  case `(ac_space=' '; set) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
d3029 1
a3029 1
    echo "$CONFIG_STATUS generated by autoconf version 2.12"
a3089 2
s%@@RLIMITS_SRC_H@@%$RLIMITS_SRC_H%g
s%@@RLIMITS_INC_H@@%$RLIMITS_INC_H%g
a3092 36

cat >> $CONFIG_STATUS <<\EOF

# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
    else
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    fi
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
  fi
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF

d3100 1
a3100 1
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
d3102 1
a3102 1
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
d3107 1
a3107 1
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
a3134 1

a3142 2

  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
d3148 1
a3148 1
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
d3150 1
a3150 1
rm -f conftest.s*
d3171 1
a3171 7
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
d3173 1
a3173 1
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
d3175 1
a3175 1
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
d3183 1
a3183 2
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in
d3211 2
a3253 2
EOF
cat >> $CONFIG_STATUS <<EOF
a3254 2
EOF
cat >> $CONFIG_STATUS <<\EOF
@


3.0.2.2
log
@alpha-linux defines signals in <asm/signum.h>.
From David Krinsky <krinsky@@hcs.harvard.edu> (2706)
@
text
@d2839 1
a2839 1
  for SIGNAL_H in /usr/include/bsd/sys/signal.h                   /usr/include/asm/signum.h                       /usr/include/asm/signal.h                       /usr/include/linux/signal.h                     /usr/include/sys/signal.h                       /dev/null;                     do
@


3.0.2.3
log
@checks for quad_t and unsigned resource types
@
text
@a2875 73
echo $ac_n "checking if rlim_t is quad_t""... $ac_c" 1>&6
echo "configure:2878: checking if rlim_t is quad_t" >&5
if eval "test \"`echo '$''{'zsh_cv_rlim_t_is_quad_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  zsh_cv_rlim_t_is_quad_t=yes
else
  cat > conftest.$ac_ext <<EOF
#line 2886 "configure"
#include "confdefs.h"

#include <sys/resource.h>
main(){struct rlimit r;exit(sizeof(r.rlim_cur) <= sizeof(long));}
EOF
if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  zsh_cv_rlim_t_is_quad_t=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  zsh_cv_rlim_t_is_quad_t=no
fi
rm -fr conftest*
fi

fi

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

else
  echo $ac_n "checking if the rlim_t is unsigned""... $ac_c" 1>&6
echo "configure:2914: checking if the rlim_t is unsigned" >&5
if eval "test \"`echo '$''{'zsh_cv_type_rlim_t_is_unsigned'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  zsh_cv_type_rlim_t_is_unsigned=no
else
  cat > conftest.$ac_ext <<EOF
#line 2922 "configure"
#include "confdefs.h"
#include <sys/resource.h>
  main(){struct rlimit r;r.rlim_cur=-1;exit(r.rlim_cur<0);}
EOF
if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  zsh_cv_type_rlim_t_is_unsigned=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  zsh_cv_type_rlim_t_is_unsigned=no
fi
rm -fr conftest*
fi

fi

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

  fi
fi

d2877 1
a2877 1
echo "configure:2951: checking for /dev/fd filesystem" >&5
d2893 1
a2893 1
echo "configure:2967: checking for RFS superroot directory" >&5
d2909 1
a2909 1
echo "configure:2983: checking for NIS" >&5
d2926 1
a2926 1
echo "configure:3000: checking for NIS+" >&5
d2944 1
a2944 1
echo "configure:3018: checking where utmp is located" >&5
d2962 1
a2962 1
echo "configure:3036: checking where wtmp is located" >&5
d2980 1
a2980 1
echo "configure:3054: checking if typeahead needs FIONREAD" >&5
d3001 1
a3001 1
echo "configure:3075: checking for brk() prototype in <unistd.h>" >&5
d3006 1
a3006 1
#line 3080 "configure"
d3014 1
a3014 1
if { (eval echo configure:3088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3035 1
a3035 1
echo "configure:3109: checking for sbrk() prototype in <unistd.h>" >&5
d3040 1
a3040 1
#line 3114 "configure"
d3048 1
a3048 1
if { (eval echo configure:3122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3071 1
a3071 1
echo "configure:3145: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3076 1
a3076 1
#line 3150 "configure"
d3084 1
a3084 1
if { (eval echo configure:3158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3106 1
a3106 1
echo "configure:3180: checking if named FIFOs work" >&5
d3114 1
a3114 1
#line 3188 "configure"
d3145 1
a3145 1
if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3167 1
a3167 1
echo "configure:3241: checking if echo in /bin/sh interprets escape sequences" >&5
@


3.0.2.4
log
@better /dev/fd filesystem check
@
text
@d2951 1
a2951 1
if eval "test \"`echo '$''{'zsh_cv_sys_path_dev_fd'+set}'`\" = set"; then
d2954 1
a2954 3
  for zsh_cv_sys_path_dev_fd in /proc/self/fd /dev/fd no; do
   test x`echo ok|cat $zsh_cv_sys_path_dev_fd/0 2>/dev/null` = xok && break
 done
d2957 4
a2960 4
echo "$ac_t""$zsh_cv_sys_path_dev_fd" 1>&6
if test $zsh_cv_sys_path_dev_fd != no; then
  cat >> confdefs.h <<EOF
#define PATH_DEV_FD "$zsh_cv_sys_path_dev_fd"
d2966 1
a2966 1
echo "configure:2969: checking for RFS superroot directory" >&5
d2982 1
a2982 1
echo "configure:2985: checking for NIS" >&5
d2999 1
a2999 1
echo "configure:3002: checking for NIS+" >&5
d3017 1
a3017 1
echo "configure:3020: checking where utmp is located" >&5
d3035 1
a3035 1
echo "configure:3038: checking where wtmp is located" >&5
d3053 1
a3053 1
echo "configure:3056: checking if typeahead needs FIONREAD" >&5
d3074 1
a3074 1
echo "configure:3077: checking for brk() prototype in <unistd.h>" >&5
d3079 1
a3079 1
#line 3082 "configure"
d3087 1
a3087 1
if { (eval echo configure:3090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3108 1
a3108 1
echo "configure:3111: checking for sbrk() prototype in <unistd.h>" >&5
d3113 1
a3113 1
#line 3116 "configure"
d3121 1
a3121 1
if { (eval echo configure:3124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3144 1
a3144 1
echo "configure:3147: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3149 1
a3149 1
#line 3152 "configure"
d3157 1
a3157 1
if { (eval echo configure:3160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3179 1
a3179 1
echo "configure:3182: checking if named FIFOs work" >&5
d3187 1
a3187 1
#line 3190 "configure"
d3218 1
a3218 1
if { (eval echo configure:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3240 1
a3240 1
echo "configure:3243: checking if echo in /bin/sh interprets escape sequences" >&5
@


3.0.2.5
log
@use the AC_FUNC_STRCOLL builtin autoconf test
@
text
@a2701 41
echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
echo "configure:2704: checking for working strcoll" >&5
if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_strcoll_works=no
else
  cat > conftest.$ac_ext <<EOF
#line 2712 "configure"
#include "confdefs.h"
#include <string.h>
main ()
{
  exit (strcoll ("abc", "def") >= 0 ||
	strcoll ("ABC", "DEF") >= 0 ||
	strcoll ("123", "456") >= 0);
}
EOF
if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_strcoll_works=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_strcoll_works=no
fi
rm -fr conftest*
fi

fi

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

fi

d2711 1
a2711 1
echo "configure:2753: checking for $ac_func" >&5
d2716 1
a2716 1
#line 2758 "configure"
d2739 1
a2739 1
if { (eval echo configure:2781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2764 36
d2802 1
a2802 1
echo "configure:2808: checking what style of signals to use" >&5
d2835 1
a2835 1
echo "configure:2841: checking where signal.h is located" >&5
d2852 1
a2852 1
echo "configure:2858: checking where the RLIMIT macros are located" >&5
d2877 1
a2877 1
echo "configure:2883: checking if rlim_t is quad_t" >&5
d2885 1
a2885 1
#line 2891 "configure"
d2891 1
a2891 1
if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2913 1
a2913 1
echo "configure:2919: checking if the rlim_t is unsigned" >&5
d2921 1
a2921 1
#line 2927 "configure"
d2926 1
a2926 1
if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2950 1
a2950 1
echo "configure:2956: checking for /dev/fd filesystem" >&5
d2968 1
a2968 1
echo "configure:2974: checking for RFS superroot directory" >&5
d2984 1
a2984 1
echo "configure:2990: checking for NIS" >&5
d3001 1
a3001 1
echo "configure:3007: checking for NIS+" >&5
d3019 1
a3019 1
echo "configure:3025: checking where utmp is located" >&5
d3037 1
a3037 1
echo "configure:3043: checking where wtmp is located" >&5
d3055 1
a3055 1
echo "configure:3061: checking if typeahead needs FIONREAD" >&5
d3076 1
a3076 1
echo "configure:3082: checking for brk() prototype in <unistd.h>" >&5
d3081 1
a3081 1
#line 3087 "configure"
d3089 1
a3089 1
if { (eval echo configure:3095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3110 1
a3110 1
echo "configure:3116: checking for sbrk() prototype in <unistd.h>" >&5
d3115 1
a3115 1
#line 3121 "configure"
d3123 1
a3123 1
if { (eval echo configure:3129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3146 1
a3146 1
echo "configure:3152: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3151 1
a3151 1
#line 3157 "configure"
d3159 1
a3159 1
if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3181 1
a3181 1
echo "configure:3187: checking if named FIFOs work" >&5
d3189 1
a3189 1
#line 3195 "configure"
d3220 1
a3220 1
if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3242 1
a3242 1
echo "configure:3248: checking if echo in /bin/sh interprets escape sequences" >&5
@


3.0.2.6
log
@some old compilers cannot initialise a union
@
text
@a1263 33
echo $ac_n "checking if the compiler supports union initialisation""... $ac_c" 1>&6
echo "configure:1266: checking if the compiler supports union initialisation" >&5
if eval "test \"`echo '$''{'zsh_cv_c_have_union_init'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1271 "configure"
#include "confdefs.h"
union{void *p;long l;}u={0};
int main() {
u.l=1;
; return 0; }
EOF
if { (eval echo configure:1278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  zsh_cv_c_have_union_init=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  zsh_cv_c_have_union_init=no
fi
rm -f conftest*
fi

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

fi

d1265 1
a1265 1
echo "configure:1299: checking if signed to unsigned casting is broken" >&5
d1273 1
a1273 1
#line 1307 "configure"
d1277 1
a1277 1
if { (eval echo configure:1311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d1300 1
a1300 1
echo "configure:1334: checking whether ${MAKE-make} sets \${MAKE}" >&5
d1336 1
a1336 1
echo "configure:1370: checking for a BSD compatible install" >&5
d1389 1
a1389 1
echo "configure:1423: checking for $ac_word" >&5
d1422 1
a1422 1
echo "configure:1456: checking for $ac_hdr that defines DIR" >&5
d1427 1
a1427 1
#line 1461 "configure"
d1435 1
a1435 1
if { (eval echo configure:1469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1460 1
a1460 1
echo "configure:1494: checking for opendir in -ldir" >&5
d1468 1
a1468 1
#line 1502 "configure"
d1479 1
a1479 1
if { (eval echo configure:1513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d1501 1
a1501 1
echo "configure:1535: checking for opendir in -lx" >&5
d1509 1
a1509 1
#line 1543 "configure"
d1520 1
a1520 1
if { (eval echo configure:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d1543 1
a1543 1
echo "configure:1577: checking for ANSI C header files" >&5
d1548 1
a1548 1
#line 1582 "configure"
d1556 1
a1556 1
{ (eval echo configure:1590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1573 1
a1573 1
#line 1607 "configure"
d1591 1
a1591 1
#line 1625 "configure"
d1612 1
a1612 1
#line 1646 "configure"
d1623 1
a1623 1
if { (eval echo configure:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d1647 1
a1647 1
echo "configure:1681: checking whether time.h and sys/time.h may both be included" >&5
d1652 1
a1652 1
#line 1686 "configure"
d1661 1
a1661 1
if { (eval echo configure:1695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1682 1
a1682 1
echo "configure:1716: checking whether stat file-mode macros are broken" >&5
d1687 1
a1687 1
#line 1721 "configure"
d1738 1
a1738 1
echo "configure:1772: checking for sys/wait.h that is POSIX.1 compatible" >&5
d1743 1
a1743 1
#line 1777 "configure"
d1759 1
a1759 1
if { (eval echo configure:1793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1786 1
a1786 1
echo "configure:1820: checking for $ac_hdr" >&5
d1791 1
a1791 1
#line 1825 "configure"
d1796 1
a1796 1
{ (eval echo configure:1830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1825 1
a1825 1
echo "configure:1859: checking for conflicts in sys/time.h and sys/select.h" >&5
d1830 1
a1830 1
#line 1864 "configure"
d1838 1
a1838 1
if { (eval echo configure:1872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1860 1
a1860 1
echo "configure:1894: checking ut_host in struct utmp" >&5
d1865 1
a1865 1
#line 1899 "configure"
d1873 1
a1873 1
if { (eval echo configure:1907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1896 1
a1896 1
echo "configure:1930: checking ut_host in struct utmpx" >&5
d1901 1
a1901 1
#line 1935 "configure"
d1909 1
a1909 1
if { (eval echo configure:1943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1935 1
a1935 1
echo "configure:1969: checking POSIX termios" >&5
d1940 1
a1940 1
#line 1974 "configure"
d1950 1
a1950 1
if { (eval echo configure:1984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d1966 1
a1966 1
echo "configure:2000: checking TIOCGWINSZ in termios.h" >&5
d1971 1
a1971 1
#line 2005 "configure"
d1979 1
a1979 1
if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d1998 1
a1998 1
echo "configure:2032: checking TIOCGWINSZ in sys/ioctl.h" >&5
d2003 1
a2003 1
#line 2037 "configure"
d2011 1
a2011 1
if { (eval echo configure:2045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2034 1
a2034 1
echo "configure:2068: checking for sys/ptem.h" >&5
d2039 1
a2039 1
#line 2073 "configure"
d2044 1
a2044 1
{ (eval echo configure:2078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2077 1
a2077 1
echo "configure:2111: checking for tgetent in -l${lib}" >&5
d2085 1
a2085 1
#line 2119 "configure"
d2096 1
a2096 1
if { (eval echo configure:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2121 1
a2121 1
echo "configure:2155: checking for $ac_func" >&5
d2126 1
a2126 1
#line 2160 "configure"
d2149 1
a2149 1
if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2175 1
a2175 1
echo "configure:2209: checking for getdomainname in -lnsl" >&5
d2183 1
a2183 1
#line 2217 "configure"
d2194 1
a2194 1
if { (eval echo configure:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2228 1
a2228 1
echo "configure:2262: checking if an include file defines ospeed" >&5
d2233 1
a2233 1
#line 2267 "configure"
d2246 1
a2246 1
if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2262 1
a2262 1
echo "configure:2296: checking if you must define ospeed" >&5
d2267 1
a2267 1
#line 2301 "configure"
d2274 1
a2274 1
if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2306 1
a2306 1
echo "configure:2340: checking if tgetent accepts NULL" >&5
d2314 1
a2314 1
#line 2348 "configure"
d2318 1
a2318 1
if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2341 1
a2341 1
echo "configure:2375: checking return type of signal handlers" >&5
d2346 1
a2346 1
#line 2380 "configure"
d2363 1
a2363 1
if { (eval echo configure:2397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2382 1
a2382 1
echo "configure:2416: checking for pid_t" >&5
d2387 1
a2387 1
#line 2421 "configure"
d2415 1
a2415 1
echo "configure:2449: checking for off_t" >&5
d2420 1
a2420 1
#line 2454 "configure"
d2448 1
a2448 1
echo "configure:2482: checking for mode_t" >&5
d2453 1
a2453 1
#line 2487 "configure"
d2481 1
a2481 1
echo "configure:2515: checking for uid_t in sys/types.h" >&5
d2486 1
a2486 1
#line 2520 "configure"
d2515 1
a2515 1
echo "configure:2549: checking for size_t" >&5
d2520 1
a2520 1
#line 2554 "configure"
d2549 1
a2549 1
echo "configure:2583: checking for sigset_t" >&5
d2554 1
a2554 1
#line 2588 "configure"
d2562 1
a2562 1
if { (eval echo configure:2596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2583 1
a2583 1
echo "configure:2617: checking for struct timezone" >&5
d2588 1
a2588 1
#line 2622 "configure"
d2595 1
a2595 1
if { (eval echo configure:2629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2616 1
a2616 1
echo "configure:2650: checking whether getpgrp takes no argument" >&5
d2624 1
a2624 1
#line 2658 "configure"
d2679 1
a2679 1
if { (eval echo configure:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2703 1
a2703 1
echo "configure:2737: checking for working strcoll" >&5
d2711 1
a2711 1
#line 2745 "configure"
d2721 1
a2721 1
if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2752 1
a2752 1
echo "configure:2786: checking for $ac_func" >&5
d2757 1
a2757 1
#line 2791 "configure"
d2780 1
a2780 1
if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
d2807 1
a2807 1
echo "configure:2841: checking what style of signals to use" >&5
d2840 1
a2840 1
echo "configure:2874: checking where signal.h is located" >&5
d2857 1
a2857 1
echo "configure:2891: checking where the RLIMIT macros are located" >&5
d2882 1
a2882 1
echo "configure:2916: checking if rlim_t is quad_t" >&5
d2890 1
a2890 1
#line 2924 "configure"
d2896 1
a2896 1
if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2918 1
a2918 1
echo "configure:2952: checking if the rlim_t is unsigned" >&5
d2926 1
a2926 1
#line 2960 "configure"
d2931 1
a2931 1
if { (eval echo configure:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d2955 1
a2955 1
echo "configure:2989: checking for /dev/fd filesystem" >&5
d2973 1
a2973 1
echo "configure:3007: checking for RFS superroot directory" >&5
d2989 1
a2989 1
echo "configure:3023: checking for NIS" >&5
d3006 1
a3006 1
echo "configure:3040: checking for NIS+" >&5
d3024 1
a3024 1
echo "configure:3058: checking where utmp is located" >&5
d3042 1
a3042 1
echo "configure:3076: checking where wtmp is located" >&5
d3060 1
a3060 1
echo "configure:3094: checking if typeahead needs FIONREAD" >&5
d3081 1
a3081 1
echo "configure:3115: checking for brk() prototype in <unistd.h>" >&5
d3086 1
a3086 1
#line 3120 "configure"
d3094 1
a3094 1
if { (eval echo configure:3128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3115 1
a3115 1
echo "configure:3149: checking for sbrk() prototype in <unistd.h>" >&5
d3120 1
a3120 1
#line 3154 "configure"
d3128 1
a3128 1
if { (eval echo configure:3162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3151 1
a3151 1
echo "configure:3185: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3156 1
a3156 1
#line 3190 "configure"
d3164 1
a3164 1
if { (eval echo configure:3198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3186 1
a3186 1
echo "configure:3220: checking if named FIFOs work" >&5
d3194 1
a3194 1
#line 3228 "configure"
d3225 1
a3225 1
if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3247 1
a3247 1
echo "configure:3281: checking if echo in /bin/sh interprets escape sequences" >&5
@


3.0.1.0
log
@# create 3.0.1 branch
@
text
@@


3.0.1.1
log
@Makefile and configure fixes from Zefram (2416)
@
text
@d605 1
a605 6
  if test x$enableval = xyes; then
  cat >> confdefs.h <<\EOF
#define DEBUG 1
EOF

fi
d865 1
a865 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d906 1
a906 1
      CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes -g"
d908 1
a908 1
      CFLAGS="$CFLAGS -g"
d939 1
a939 1
#line 945 "configure"
d945 1
a945 1
{ (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d954 1
a954 1
#line 960 "configure"
d960 1
a960 1
{ (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d986 1
a986 1
#line 992 "configure"
d1004 1
a1004 1
#line 1010 "configure"
d1029 1
a1029 1
#line 1035 "configure"
d1079 1
a1079 1
if { (eval echo configure:1085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1106 1
a1106 1
#line 1112 "configure"
d1110 1
a1110 1
{ (eval echo configure:1116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1138 1
a1138 1
#line 1144 "configure"
d1151 1
a1151 1
if { (eval echo configure:1157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1189 1
a1189 1
#line 1195 "configure"
d1200 1
a1200 1
{ (eval echo configure:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1223 1
a1223 1
#line 1229 "configure"
d1227 1
a1227 1
{ (eval echo configure:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1369 1
a1369 1
#line 1375 "configure"
d1378 1
a1378 1
if { (eval echo configure:1384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1409 1
a1409 1
#line 1415 "configure"
d1421 1
a1421 1
if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1448 1
a1448 1
#line 1454 "configure"
d1460 1
a1460 1
if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1485 1
a1485 1
#line 1491 "configure"
d1493 1
a1493 1
{ (eval echo configure:1499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1508 1
a1508 1
#line 1514 "configure"
d1526 1
a1526 1
#line 1532 "configure"
d1547 1
a1547 1
#line 1553 "configure"
d1558 1
a1558 1
{ (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d1582 1
a1582 1
#line 1588 "configure"
d1592 1
a1592 1
if { (eval echo configure:1598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1616 1
a1616 1
#line 1622 "configure"
d1671 1
a1671 1
#line 1677 "configure"
d1688 1
a1688 1
if { (eval echo configure:1694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1718 1
a1718 1
#line 1724 "configure"
d1723 1
a1723 1
{ (eval echo configure:1729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1754 1
a1754 1
#line 1760 "configure"
d1763 1
a1763 1
if { (eval echo configure:1769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1788 1
a1788 1
#line 1794 "configure"
d1797 1
a1797 1
if { (eval echo configure:1803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1823 1
a1823 1
#line 1829 "configure"
d1832 1
a1832 1
if { (eval echo configure:1838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1861 1
a1861 1
#line 1867 "configure"
d1872 1
a1872 1
if { (eval echo configure:1878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1891 1
a1891 1
#line 1897 "configure"
d1900 1
a1900 1
if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1922 1
a1922 1
#line 1928 "configure"
d1931 1
a1931 1
if { (eval echo configure:1937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d1957 1
a1957 1
#line 1963 "configure"
d1962 1
a1962 1
{ (eval echo configure:1968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2000 1
a2000 1
#line 2006 "configure"
d2012 1
a2012 1
if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2039 1
a2039 1
#line 2045 "configure"
d2063 1
a2063 1
if { (eval echo configure:2069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2094 1
a2094 1
#line 2100 "configure"
d2106 1
a2106 1
if { (eval echo configure:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2141 1
a2141 1
#line 2147 "configure"
d2155 1
a2155 1
if { (eval echo configure:2161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2174 1
a2174 1
#line 2180 "configure"
d2182 1
a2182 1
if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2220 1
a2220 1
#line 2226 "configure"
d2224 1
a2224 1
{ (eval echo configure:2230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2247 1
a2247 1
#line 2253 "configure"
d2265 1
a2265 1
if { (eval echo configure:2271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2287 1
a2287 1
#line 2293 "configure"
d2318 1
a2318 1
#line 2324 "configure"
d2349 1
a2349 1
#line 2355 "configure"
d2380 1
a2380 1
#line 2386 "configure"
d2413 1
a2413 1
#line 2419 "configure"
d2445 1
a2445 1
#line 2451 "configure"
d2454 1
a2454 1
if { (eval echo configure:2460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2478 1
a2478 1
#line 2484 "configure"
d2486 1
a2486 1
if { (eval echo configure:2492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2513 1
a2513 1
#line 2519 "configure"
d2568 1
a2568 1
{ (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2600 1
a2600 1
#line 2606 "configure"
d2624 1
a2624 1
if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
d2655 1
a2655 1
#line 2661 "configure"
d2660 1
a2660 1
{ (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
d2845 1
a2845 1
#line 2851 "configure"
d2854 1
a2854 1
if { (eval echo configure:2860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2878 1
a2878 1
#line 2884 "configure"
d2887 1
a2887 1
if { (eval echo configure:2893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2913 1
a2913 1
#line 2919 "configure"
d2922 1
a2922 1
if { (eval echo configure:2928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2941 56
echo $ac_n "checking if named FIFOs work""... $ac_c" 1>&6
if eval "test \"`echo '$''{'zsh_cv_sys_fifo'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  zsh_cv_sys_fifo=yes
else
cat > conftest.$ac_ext <<EOF
#line 2956 "configure"
#include "confdefs.h"

#include <fcntl.h>
#include <signal.h>
main()
{
    char c;
    int fd;
    int pid;
    unlink("conftestfifo");
#ifdef HAVE_MKFIFO
    if(mkfifo("conftestfifo", 0600) < 0)
#else
    if(mknod("conftestfifo", 0010600, 0) < 0)
#endif
	exit(1);
    pid = fork();
    if(pid < 0)
	exit(1);
    if(pid) {
	fd = open("conftestfifo", O_RDONLY);
	exit(fd < 0 || read(fd, &c, 1) != 1 || c != 'x');
    }
    fd = open("conftestfifo", O_WRONLY);
    if(fd < 0 || write(fd, "x", 1) < 1)
	kill(getppid(), SIGTERM);
    exit(0);
}

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

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

fi
d2943 1
a2943 12
if eval "test \"`echo '$''{'zsh_cv_prog_sh_echo_escape'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "`/bin/sh -c \"echo '\\n'\"`" = "\\n"; then
  zsh_cv_prog_sh_echo_escape=no
else
  zsh_cv_prog_sh_echo_escape=yes
fi
fi

echo "$ac_t""$zsh_cv_prog_sh_echo_escape" 1>&6
if test $zsh_cv_prog_sh_echo_escape = no; then
d2948 3
@


3.0.1.2
log
@working fifos should be tested in /tmp
@
text
@d2964 2
a2965 2
    int pid, ret;
    unlink("/tmp/fifo$$");
d2967 1
a2967 1
    if(mkfifo("/tmp/fifo$$", 0600) < 0)
d2969 1
a2969 1
    if(mknod("/tmp/fifo$$", 0010600, 0) < 0)
d2976 1
a2976 1
	fd = open("/tmp/fifo$$", O_RDONLY);
d2979 4
a2982 4
    fd = open("/tmp/fifo$$", O_WRONLY);
    ret = (fd < 0 || write(fd, "x", 1) < 1);
    unlink("/tmp/fifo$$");
    exit(ret);
@


3.0.1.3
log
@upgrade to autoconf-2.12.  Linux machines are still recognized
without the -gnu suffix
@
text
@d4 1
a4 1
# Generated automatically using autoconf version 2.12 
a75 2
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
d357 1
a357 1
    echo "configure generated by autoconf version 2.12"
d459 4
a462 4
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
a463 3
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
a524 1
cross_compiling=$ac_cv_prog_cc_cross
a569 1
echo "configure:577: checking host system type" >&5
d584 3
a586 3
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a786 1
echo "configure:795: checking for $ac_word" >&5
a814 1
echo "configure:824: checking for $ac_word" >&5
a860 39
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:872: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5

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'
cross_compiling=$ac_cv_prog_cc_cross

cat > conftest.$ac_ext <<EOF
#line 882 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
fi
rm -fr conftest*

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:906: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

a861 1
echo "configure:911: checking whether we are using GNU C" >&5
d870 1
a870 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a877 1

d880 3
a882 6
  ac_test_CFLAGS="${CFLAGS+set}"
  ac_save_CFLAGS="$CFLAGS"
  CFLAGS=
  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:935: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
d887 1
a887 1
  ac_cv_prog_cc_g=yes
d889 1
a889 1
  ac_cv_prog_cc_g=no
d895 6
a900 7
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  if test "$ac_test_CFLAGS" = set; then
    CFLAGS="$ac_save_CFLAGS"
  elif test $ac_cv_prog_cc_g = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-O2"
a929 1
echo "configure:985: checking how to run the C preprocessor" >&5
d944 1
a944 1
#line 1000 "configure"
d950 1
a950 1
{ (eval echo configure:1006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a955 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d959 1
a959 1
#line 1017 "configure"
d965 1
a965 1
{ (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a970 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a985 1
echo "configure:1046: checking whether ${CC-cc} needs -traditional" >&5
d991 1
a991 1
#line 1052 "configure"
d1009 1
a1009 1
#line 1070 "configure"
a1029 1
echo "configure:1091: checking for working const" >&5
d1034 1
a1034 1
#line 1096 "configure"
d1037 2
a1038 1
int main() {
d1084 1
a1084 1
if { (eval echo configure:1145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1087 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1092 1
d1102 25
a1127 1
echo "configure:1165: checking for ${CC-cc} option to accept ANSI C" >&5
d1143 1
a1143 1
#line 1181 "configure"
d1149 2
a1150 1
int main() {
d1156 1
a1156 1
if { (eval echo configure:1193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1158 3
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1161 1
a1174 1
echo "configure:1214: checking for function prototypes" >&5
a1186 1
echo "configure:1227: checking size of long" >&5
d1193 2
a1194 2
  cat > conftest.$ac_ext <<EOF
#line 1235 "configure"
d1205 2
a1206 2
if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a1208 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d1211 1
a1213 2

fi
a1220 1
echo "configure:1266: checking if signed to unsigned casting is broken" >&5
d1227 2
a1228 2
  cat > conftest.$ac_ext <<EOF
#line 1274 "configure"
d1232 2
a1233 2
if { (eval echo configure:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a1235 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d1238 1
a1241 2
fi

d1251 1
a1251 2
echo "configure:1301: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
a1285 1
echo "configure:1337: checking for a BSD compatible install" >&5
d1290 1
a1290 1
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
d1313 1
a1313 1
  IFS="$ac_save_IFS"
a1337 1
echo "configure:1390: checking for $ac_word" >&5
d1368 1
a1368 1
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
a1369 1
echo "configure:1423: checking for $ac_hdr that defines DIR" >&5
d1374 1
a1374 1
#line 1428 "configure"
d1378 2
a1379 1
int main() {
d1383 1
a1383 1
if { (eval echo configure:1436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1386 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1391 1
d1395 1
a1395 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d1406 2
a1407 3
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
echo "configure:1461: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
d1414 1
a1414 1
#line 1469 "configure"
d1421 2
a1422 1
int main() {
d1426 1
a1426 1
if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1429 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1445 2
a1446 3
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
echo "configure:1502: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
d1453 1
a1453 1
#line 1510 "configure"
d1460 2
a1461 1
int main() {
d1465 1
a1465 1
if { (eval echo configure:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1468 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a1485 1
echo "configure:1544: checking for ANSI C header files" >&5
d1490 1
a1490 1
#line 1549 "configure"
d1498 1
a1498 1
{ (eval echo configure:1557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1504 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1513 1
a1513 1
#line 1574 "configure"
d1531 1
a1531 1
#line 1592 "configure"
d1551 2
a1552 2
  cat > conftest.$ac_ext <<EOF
#line 1613 "configure"
d1563 2
a1564 2
if { (eval echo configure:1624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a1566 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d1569 1
a1571 2

fi
a1582 1
echo "configure:1648: checking whether time.h and sys/time.h may both be included" >&5
d1587 1
a1587 1
#line 1653 "configure"
d1592 2
a1593 1
int main() {
d1597 1
a1597 1
if { (eval echo configure:1662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1600 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1605 1
a1616 1
echo "configure:1683: checking whether stat file-mode macros are broken" >&5
d1621 1
a1621 1
#line 1688 "configure"
a1671 1
echo "configure:1739: checking for sys/wait.h that is POSIX.1 compatible" >&5
d1676 1
a1676 1
#line 1744 "configure"
d1686 2
a1687 1
int main() {
d1693 1
a1693 1
if { (eval echo configure:1760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1696 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1701 1
d1717 1
a1717 1
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
a1718 1
echo "configure:1787: checking for $ac_hdr" >&5
d1723 1
a1723 1
#line 1792 "configure"
d1728 1
a1728 1
{ (eval echo configure:1797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1734 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1742 1
a1742 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
a1754 1
echo "configure:1826: checking for conflicts in sys/time.h and sys/select.h" >&5
d1759 1
a1759 1
#line 1831 "configure"
d1763 2
a1764 1
int main() {
d1768 1
a1768 1
if { (eval echo configure:1839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1771 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1776 1
a1788 1
echo "configure:1861: checking ut_host in struct utmp" >&5
d1793 1
a1793 1
#line 1866 "configure"
d1797 2
a1798 1
int main() {
d1802 1
a1802 1
if { (eval echo configure:1874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1805 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1810 1
a1823 1
echo "configure:1897: checking ut_host in struct utmpx" >&5
d1828 1
a1828 1
#line 1902 "configure"
d1832 2
a1833 1
int main() {
d1837 1
a1837 1
if { (eval echo configure:1910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1840 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1845 1
a1861 1
echo "configure:1936: checking POSIX termios" >&5
d1866 1
a1866 1
#line 1941 "configure"
d1871 2
a1872 1
int main() {
d1877 1
a1877 1
if { (eval echo configure:1951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1880 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1885 1
a1891 1
echo "configure:1967: checking TIOCGWINSZ in termios.h" >&5
d1896 1
a1896 1
#line 1972 "configure"
d1900 2
a1901 1
int main() {
d1905 1
a1905 1
if { (eval echo configure:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1908 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1913 1
a1922 1
echo "configure:1999: checking TIOCGWINSZ in sys/ioctl.h" >&5
d1927 1
a1927 1
#line 2004 "configure"
d1931 2
a1932 1
int main() {
d1936 1
a1936 1
if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a1939 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1944 1
d1956 1
a1956 1
ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
a1957 1
echo "configure:2035: checking for sys/ptem.h" >&5
d1962 1
a1962 1
#line 2040 "configure"
d1967 1
a1967 1
{ (eval echo configure:2045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a1973 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1997 2
a1998 3
  echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
echo "configure:2078: checking for tgetent in -l${lib}" >&5
ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
d2005 1
a2005 1
#line 2086 "configure"
d2012 2
a2013 1
int main() {
d2017 1
a2017 1
if { (eval echo configure:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2020 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
a2039 1
echo "configure:2122: checking for $ac_func" >&5
d2044 1
a2044 1
#line 2127 "configure"
d2054 2
a2055 1
int main() {
d2068 1
a2068 1
if { (eval echo configure:2150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2071 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2076 1
a2077 1

d2091 2
a2092 3
  echo $ac_n "checking for getdomainname in -lnsl""... $ac_c" 1>&6
echo "configure:2176: checking for getdomainname in -lnsl" >&5
ac_lib_var=`echo nsl'_'getdomainname | sed 'y%./+-%__p_%'`
d2099 1
a2099 1
#line 2184 "configure"
d2106 2
a2107 1
int main() {
d2111 1
a2111 1
if { (eval echo configure:2195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2114 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2124 1
a2124 2
    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a2141 1
echo "configure:2229: checking if an include file defines ospeed" >&5
d2146 1
a2146 1
#line 2234 "configure"
d2155 2
a2156 1
int main() {
d2160 1
a2160 1
if { (eval echo configure:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2163 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2168 1
a2174 1
echo "configure:2263: checking if you must define ospeed" >&5
d2179 1
a2179 1
#line 2268 "configure"
d2182 2
a2183 1
int main() {
d2187 1
a2187 1
if { (eval echo configure:2275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2190 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2195 1
a2217 1
echo "configure:2307: checking if tgetent accepts NULL" >&5
d2224 2
a2225 2
  cat > conftest.$ac_ext <<EOF
#line 2315 "configure"
d2229 2
a2230 2
if { (eval echo configure:2319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a2232 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d2235 1
a2238 2
fi

a2247 1
echo "configure:2342: checking return type of signal handlers" >&5
d2252 1
a2252 1
#line 2347 "configure"
d2265 2
a2266 1
int main() {
d2270 1
a2270 1
if { (eval echo configure:2364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2273 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2278 1
a2287 1
echo "configure:2383: checking for pid_t" >&5
d2292 1
a2292 1
#line 2388 "configure"
a2296 1
#include <stddef.h>
d2300 1
a2300 1
  egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2318 1
echo "configure:2416: checking for off_t" >&5
d2323 1
a2323 1
#line 2421 "configure"
a2327 1
#include <stddef.h>
d2331 1
a2331 1
  egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2349 1
echo "configure:2449: checking for mode_t" >&5
d2354 1
a2354 1
#line 2454 "configure"
a2358 1
#include <stddef.h>
d2362 1
a2362 1
  egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2380 1
echo "configure:2482: checking for uid_t in sys/types.h" >&5
d2385 1
a2385 1
#line 2487 "configure"
a2413 1
echo "configure:2516: checking for size_t" >&5
d2418 1
a2418 1
#line 2521 "configure"
a2422 1
#include <stddef.h>
d2426 1
a2426 1
  egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a2445 1
echo "configure:2550: checking for sigset_t" >&5
d2450 1
a2450 1
#line 2555 "configure"
d2454 2
a2455 1
int main() {
d2459 1
a2459 1
if { (eval echo configure:2563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2462 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2467 1
a2478 1
echo "configure:2584: checking for struct timezone" >&5
d2483 1
a2483 1
#line 2589 "configure"
d2486 2
a2487 1
int main() {
d2491 1
a2491 1
if { (eval echo configure:2596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2494 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2499 1
a2510 1
echo "configure:2617: checking whether getpgrp takes no argument" >&5
d2517 2
a2518 2
  cat > conftest.$ac_ext <<EOF
#line 2625 "configure"
d2573 2
a2574 2
if { (eval echo configure:2680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a2576 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d2579 1
a2580 2
fi

a2600 1
echo "configure:2712: checking for $ac_func" >&5
d2605 1
a2605 1
#line 2717 "configure"
d2615 2
a2616 1
int main() {
d2629 1
a2629 1
if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
a2632 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2637 1
a2638 1

a2652 1
echo "configure:2766: checking for working strcoll" >&5
d2659 2
a2660 2
  cat > conftest.$ac_ext <<EOF
#line 2774 "configure"
d2665 2
a2666 2
if { (eval echo configure:2779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a2668 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d2671 1
a2674 2
fi

a2684 1
echo "configure:2803: checking what style of signals to use" >&5
a2716 1
echo "configure:2836: checking where signal.h is located" >&5
a2732 1
echo "configure:2853: checking for /dev/fd filesystem" >&5
a2747 1
echo "configure:2869: checking for RFS superroot directory" >&5
a2762 1
echo "configure:2885: checking for NIS" >&5
a2778 1
echo "configure:2902: checking for NIS+" >&5
a2795 1
echo "configure:2920: checking where utmp is located" >&5
a2812 1
echo "configure:2938: checking where wtmp is located" >&5
a2829 1
echo "configure:2956: checking if typeahead needs FIONREAD" >&5
a2845 1
echo "configure:2973: checking for brk() prototype in <unistd.h>" >&5
d2850 1
a2850 1
#line 2978 "configure"
d2854 2
a2855 1
int main() {
d2859 1
a2859 1
if { (eval echo configure:2986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2862 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2867 1
a2878 1
echo "configure:3007: checking for sbrk() prototype in <unistd.h>" >&5
d2883 1
a2883 1
#line 3012 "configure"
d2887 2
a2888 1
int main() {
d2892 1
a2892 1
if { (eval echo configure:3020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2895 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2900 1
a2913 1
echo "configure:3043: checking for ioctl prototype in <sys/ioctl.h>" >&5
d2918 1
a2918 1
#line 3048 "configure"
d2922 2
a2923 1
int main() {
d2927 1
a2927 1
if { (eval echo configure:3056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a2930 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d2935 1
a2947 1
echo "configure:3078: checking if named FIFOs work" >&5
d2954 2
a2955 2
  cat > conftest.$ac_ext <<EOF
#line 3086 "configure"
d2986 2
a2987 2
if { (eval echo configure:3117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
a2989 3
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
d2992 1
a2995 2
fi

a3003 1
echo "configure:3139: checking if echo in /bin/sh interprets escape sequences" >&5
a3038 3
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
d3042 2
a3043 13
  case `(ac_space=' '; set) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
d3098 1
a3098 1
    echo "$CONFIG_STATUS generated by autoconf version 2.12"
a3161 36

cat >> $CONFIG_STATUS <<\EOF

# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
    else
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    fi
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
  fi
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF

d3169 1
a3169 1
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
d3171 1
a3171 1
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
d3176 1
a3176 1
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
a3203 1

a3211 2

  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
d3217 1
a3217 1
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
d3219 1
a3219 1
rm -f conftest.s*
d3240 1
a3240 7
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
d3242 1
a3242 1
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
d3244 1
a3244 1
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
d3252 1
a3252 2
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in
d3280 2
a3322 2
EOF
cat >> $CONFIG_STATUS <<EOF
a3323 2
EOF
cat >> $CONFIG_STATUS <<\EOF
@


3.0.1.4
log
@awk generated rlimits from Peter (2573)
@
text
@a2850 25
echo $ac_n "checking where the RLIMIT macros are located""... $ac_c" 1>&6
echo "configure:2853: checking where the RLIMIT macros are located" >&5
if eval "test \"`echo '$''{'zsh_cv_path_rlimit_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  for RESOURCE_H in /usr/include/bsd/sys/resource.h                      /usr/include/asm/resource.h	                        /usr/include/linux/resource.h                        /usr/include/sys/resource.h                          /dev/null;
do
  test -f $RESOURCE_H && \
  grep '#[ 	]*define[ 	][ 	]*RLIMIT_[A-Z]*[ 	]*[0-9][0-9]*' $RESOURCE_H > /dev/null && \
  break
done
zsh_cv_path_rlimit_h=$RESOURCE_H
if test $RESOURCE_H = "/dev/null" -a $ac_cv_func_getrlimit = yes; then
  echo "RLIMIT MACROS NOT FOUND:  please report to developers"
fi
fi

echo "$ac_t""$zsh_cv_path_rlimit_h" 1>&6
RLIMITS_INC_H=$zsh_cv_path_rlimit_h
if test $zsh_cv_path_rlimit_h = /dev/null -a $ac_cv_func_getrlimit = no; then
  RLIMITS_SRC_H=
else
  RLIMITS_SRC_H=rlimits.h
fi

d2852 1
a2852 1
echo "configure:2878: checking for /dev/fd filesystem" >&5
d2868 1
a2868 1
echo "configure:2894: checking for RFS superroot directory" >&5
d2884 1
a2884 1
echo "configure:2910: checking for NIS" >&5
d2901 1
a2901 1
echo "configure:2927: checking for NIS+" >&5
d2919 1
a2919 1
echo "configure:2945: checking where utmp is located" >&5
d2937 1
a2937 1
echo "configure:2963: checking where wtmp is located" >&5
d2955 1
a2955 1
echo "configure:2981: checking if typeahead needs FIONREAD" >&5
d2972 1
a2972 1
echo "configure:2998: checking for brk() prototype in <unistd.h>" >&5
d2977 1
a2977 1
#line 3003 "configure"
d2985 1
a2985 1
if { (eval echo configure:3011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3006 1
a3006 1
echo "configure:3032: checking for sbrk() prototype in <unistd.h>" >&5
d3011 1
a3011 1
#line 3037 "configure"
d3019 1
a3019 1
if { (eval echo configure:3045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3042 1
a3042 1
echo "configure:3068: checking for ioctl prototype in <sys/ioctl.h>" >&5
d3047 1
a3047 1
#line 3073 "configure"
d3055 1
a3055 1
if { (eval echo configure:3081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3077 1
a3077 1
echo "configure:3103: checking if named FIFOs work" >&5
d3085 1
a3085 1
#line 3111 "configure"
d3116 1
a3116 1
if { (eval echo configure:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
d3138 1
a3138 1
echo "configure:3164: checking if echo in /bin/sh interprets escape sequences" >&5
a3307 2
s%@@RLIMITS_SRC_H@@%$RLIMITS_SRC_H%g
s%@@RLIMITS_INC_H@@%$RLIMITS_INC_H%g
@
