#! /bin/sh

# From configure.in Revision: 1.257 





































































#
# Test for kerberos include files
#





#
# Test for kerberos lib files
#



























#
# test for GNU libc
#













# from automake:
# Define a conditional.


# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.12 
# 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_default_prefix=/usr/arla
ac_help="$ac_help
  --with-x                use the X Window System"
ac_help="$ac_help
  --enable-smp            compile for SMP (currently only on Linux)"
ac_help="$ac_help
  --enable-kld            build kld modules (only FreeBSD 3.0)"
ac_help="$ac_help
  --with-sys=dir          use dir as your kernel source code directory
                          default /sys"
ac_help="$ac_help
  --with-arlacachedir=dir use dir as cachedir instead of \$prefix/cache"
ac_help="$ac_help
  --with-arlaconffile=file use file for configuration instead of \$prefix/etc/arla.conf"
ac_help="$ac_help
  --enable-knfs           make afs nfs-mountable"
ac_help="$ac_help
  --with-pthreads=dir       compile liblwp as pthreads wrapper using pthreads in dir"
ac_help="$ac_help
  --with-krbafs=dir       use libkrbafs (from cmu, extracted from kth-krb) in dir"
ac_help="$ac_help
  --with-krb4=dir         use kerberos 4 in dir"
ac_help="$ac_help
  --with-krb4-lib=dir     use kerberos 4 libraries in dir"
ac_help="$ac_help
  --with-krb4-include=dir use kerberos 4 headers in dir"
ac_help="$ac_help
  --with-krb5=dir         use kerberos 4 compat from kerberos 5 in dir"
ac_help="$ac_help
  --with-krb5-include=dir use kerberos 5 headers in dir"
ac_help="$ac_help
  --with-krb5-lib=dir     use kerberos 5 libraries in dir"
ac_help="$ac_help
  --disable-mmap          don't use mmap"
ac_help="$ac_help
  --enable-mmaptime       use mmaptime time, read the README before use (disable by default)"
ac_help="$ac_help
  --disable-dynamic-afs   don't use loaded AFS library with AIX"

# 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=
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12

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.12"
    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 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.
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
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

# 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=arlad/arla.c

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

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





PACKAGE=arla
VERSION=0.23
cat >> confdefs.h <<EOF
#define PACKAGE "$PACKAGE"
EOF
cat >> confdefs.h <<EOF
#define VERSION "$VERSION"
EOF

# This may be overridden using --prefix=/usr to configure


CFLAGS="-g ${CFLAGS}"

# 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
echo "configure:708: checking for $ac_word" >&5
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
echo "configure:737: checking for $ac_word" >&5
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 the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:785: 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 795 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:799: \"$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:819: 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

echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:824: checking whether we are using GNU C" >&5
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:833: \"$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
  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:848: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_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_cc_g=yes
else
  ac_cv_prog_cc_g=no
fi
rm -f conftest*

fi

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"
  fi
else
  GCC=
  test "${CFLAGS+set}" = set || CFLAGS="-g"
fi

echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:876: checking how to run the C preprocessor" >&5
# 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 891 "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:897: \"$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
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
#line 908 "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:914: \"$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
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&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

echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:937: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
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

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.

# 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
echo "configure:993: checking for a BSD compatible install" >&5
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'

# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1045: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo "configure:1072: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
else
  ac_cv_prog_LN_S=ln
fi
fi
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "flex", so it can be a program name with args.
set dummy flex; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1095: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # 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_LEX="flex"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
fi
fi
LEX="$ac_cv_prog_LEX"
if test -n "$LEX"; then
  echo "$ac_t""$LEX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test -z "$LEXLIB"
then
  case "$LEX" in
  flex*) ac_lib=fl ;;
  *) ac_lib=l ;;
  esac
  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
echo "configure:1128: checking for yywrap in -l$ac_lib" >&5
ac_lib_var=`echo $ac_lib'_'yywrap | 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="-l$ac_lib  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1136 "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 yywrap();

int main() {
yywrap()
; return 0; }
EOF
if { (eval echo configure:1147: \"$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
  LEXLIB="-l$ac_lib"
else
  echo "$ac_t""no" 1>&6
fi

fi

for ac_prog in 'bison -y' byacc
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
echo "configure:1174: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$YACC"; then
  ac_cv_prog_YACC="$YACC" # 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_YACC="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
YACC="$ac_cv_prog_YACC"
if test -n "$YACC"; then
  echo "$ac_t""$YACC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"


# 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
echo "configure:1210: checking host system type" >&5

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

CANONICAL_HOST=$host

for ac_prog in symorder
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
echo "configure:1237: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_SYMORDER'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$SYMORDER"; then
  ac_cv_prog_SYMORDER="$SYMORDER" # 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_SYMORDER="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
SYMORDER="$ac_cv_prog_SYMORDER"
if test -n "$SYMORDER"; then
  echo "$ac_t""$SYMORDER" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$SYMORDER" && break
done
test -n "$SYMORDER" || SYMORDER=":"

for ac_prog in makeinfo
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
echo "configure:1271: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$MAKEINFO"; then
  ac_cv_prog_MAKEINFO="$MAKEINFO" # 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_MAKEINFO="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
MAKEINFO="$ac_cv_prog_MAKEINFO"
if test -n "$MAKEINFO"; then
  echo "$ac_t""$MAKEINFO" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$MAKEINFO" && break
done
test -n "$MAKEINFO" || MAKEINFO=":"

for ac_prog in dvi2ps
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
echo "configure:1305: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_DVI2PS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$DVI2PS"; then
  ac_cv_prog_DVI2PS="$DVI2PS" # 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_DVI2PS="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
DVI2PS="$ac_cv_prog_DVI2PS"
if test -n "$DVI2PS"; then
  echo "$ac_t""$DVI2PS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$DVI2PS" && break
done
test -n "$DVI2PS" || DVI2PS=":"

for ac_prog in texi2dvi
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
echo "configure:1339: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$TEXI2DVI"; then
  ac_cv_prog_TEXI2DVI="$TEXI2DVI" # 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_TEXI2DVI="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
TEXI2DVI="$ac_cv_prog_TEXI2DVI"
if test -n "$TEXI2DVI"; then
  echo "$ac_t""$TEXI2DVI" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$TEXI2DVI" && break
done
test -n "$TEXI2DVI" || TEXI2DVI=":"

for ac_prog in dvips
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
echo "configure:1373: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_DVIPS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$DVIPS"; then
  ac_cv_prog_DVIPS="$DVIPS" # 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_DVIPS="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
DVIPS="$ac_cv_prog_DVIPS"
if test -n "$DVIPS"; then
  echo "$ac_t""$DVIPS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$DVIPS" && break
done
test -n "$DVIPS" || DVIPS=":"


echo $ac_n "checking for warning options""... $ac_c" 1>&6
echo "configure:1404: checking for warning options" >&5
if test "$GCC" = "yes"; then
  CFLAGS="$CFLAGS -Wall"
  echo "$ac_t""-Wall" 1>&6
else
  echo "$ac_t""none" 1>&6
fi

# If we find X, set shell vars x_includes and x_libraries to the
# paths, otherwise set no_x=yes.
# Uses ac_ vars as temps to allow command line to override cache and checks.
# --without-x overrides everything else, but does not touch the cache.
echo $ac_n "checking for X""... $ac_c" 1>&6
echo "configure:1417: checking for X" >&5

# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
  withval="$with_x"
  :
fi

# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  have_x=disabled
else
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    # Both variables are already set.
    have_x=yes
  else
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  # One or both of the vars are not set, and there is no cached value.
ac_x_includes=NO ac_x_libraries=NO
rm -fr conftestdir
if mkdir conftestdir; then
  cd conftestdir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat > Imakefile <<'EOF'
acfindx:
	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
EOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    for ac_extension in a so sl; do
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
        test -f $ac_im_libdir/libX11.$ac_extension; then
        ac_im_usrlibdir=$ac_im_libdir; break
      fi
    done
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
    case "$ac_im_incroot" in
	/usr/include) ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
    esac
    case "$ac_im_usrlibdir" in
	/usr/lib | /lib) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
    esac
  fi
  cd ..
  rm -fr conftestdir
fi

if test "$ac_x_includes" = NO; then
  # Guess where to find include files, by looking for this one X11 .h file.
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h

  # First, try using that file with no special directory specified.
cat > conftest.$ac_ext <<EOF
#line 1479 "configure"
#include "confdefs.h"
#include <$x_direct_test_include>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  # We can compile using X headers with no special include directory.
ac_x_includes=
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  # Look for the header file in a standard set of common directories.
# Check X11 before X11Rn because it is often a symlink to the current release.
  for ac_dir in               \
    /usr/X11/include          \
    /usr/X11R6/include        \
    /usr/X11R5/include        \
    /usr/X11R4/include        \
                              \
    /usr/include/X11          \
    /usr/include/X11R6        \
    /usr/include/X11R5        \
    /usr/include/X11R4        \
                              \
    /usr/local/X11/include    \
    /usr/local/X11R6/include  \
    /usr/local/X11R5/include  \
    /usr/local/X11R4/include  \
                              \
    /usr/local/include/X11    \
    /usr/local/include/X11R6  \
    /usr/local/include/X11R5  \
    /usr/local/include/X11R4  \
                              \
    /usr/X386/include         \
    /usr/x386/include         \
    /usr/XFree86/include/X11  \
                              \
    /usr/include              \
    /usr/local/include        \
    /usr/unsupported/include  \
    /usr/athena/include       \
    /usr/local/x11r5/include  \
    /usr/lpp/Xamples/include  \
                              \
    /usr/openwin/include      \
    /usr/openwin/share/include \
    ; \
  do
    if test -r "$ac_dir/$x_direct_test_include"; then
      ac_x_includes=$ac_dir
      break
    fi
  done
fi
rm -f conftest*
fi # $ac_x_includes = NO

if test "$ac_x_libraries" = NO; then
  # Check for the libraries.

  test -z "$x_direct_test_library" && x_direct_test_library=Xt
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc

  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS="$LIBS"
  LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1553 "configure"
#include "confdefs.h"

int main() {
${x_direct_test_function}()
; return 0; }
EOF
if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
ac_x_libraries=
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# First see if replacing the include by lib works.
# Check X11 before X11Rn because it is often a symlink to the current release.
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
    /usr/X11/lib          \
    /usr/X11R6/lib        \
    /usr/X11R5/lib        \
    /usr/X11R4/lib        \
                          \
    /usr/lib/X11          \
    /usr/lib/X11R6        \
    /usr/lib/X11R5        \
    /usr/lib/X11R4        \
                          \
    /usr/local/X11/lib    \
    /usr/local/X11R6/lib  \
    /usr/local/X11R5/lib  \
    /usr/local/X11R4/lib  \
                          \
    /usr/local/lib/X11    \
    /usr/local/lib/X11R6  \
    /usr/local/lib/X11R5  \
    /usr/local/lib/X11R4  \
                          \
    /usr/X386/lib         \
    /usr/x386/lib         \
    /usr/XFree86/lib/X11  \
                          \
    /usr/lib              \
    /usr/local/lib        \
    /usr/unsupported/lib  \
    /usr/athena/lib       \
    /usr/local/x11r5/lib  \
    /usr/lpp/Xamples/lib  \
    /lib/usr/lib/X11	  \
                          \
    /usr/openwin/lib      \
    /usr/openwin/share/lib \
    ; \
do
  for ac_extension in a so sl; do
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi
rm -f conftest*
fi # $ac_x_libraries = NO

if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  # Didn't find X anywhere.  Cache the known absence of X.
  ac_cv_have_x="have_x=no"
else
  # Record where we found X for the cache.
  ac_cv_have_x="have_x=yes \
	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi
fi
  fi
  eval "$ac_cv_have_x"
fi # $with_x != no

if test "$have_x" != yes; then
  echo "$ac_t""$have_x" 1>&6
  no_x=yes
else
  # If each of the values was on the command line, it overrides each guess.
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes \
		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
fi

if test "$no_x" = yes; then
  # Not all programs may use this symbol, but it does not hurt to define it.
  cat >> confdefs.h <<\EOF
#define X_DISPLAY_MISSING 1
EOF

  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
else
  if test -n "$x_includes"; then
    X_CFLAGS="$X_CFLAGS -I$x_includes"
  fi

  # It would also be nice to do this for all -L options, not just this one.
  if test -n "$x_libraries"; then
    X_LIBS="$X_LIBS -L$x_libraries"
    # For Solaris; some versions of Sun CC require a space after -R and
    # others require no space.  Words are not sufficient . . . .
    case "`(uname -sr) 2>/dev/null`" in
    "SunOS 5"*)
      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
echo "configure:1666: checking whether -R must be followed by a space" >&5
      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
      cat > conftest.$ac_ext <<EOF
#line 1669 "configure"
#include "confdefs.h"

int main() {

; return 0; }
EOF
if { (eval echo configure:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  ac_R_nospace=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_R_nospace=no
fi
rm -f conftest*
      if test $ac_R_nospace = yes; then
	echo "$ac_t""no" 1>&6
	X_LIBS="$X_LIBS -R$x_libraries"
      else
	LIBS="$ac_xsave_LIBS -R $x_libraries"
	cat > conftest.$ac_ext <<EOF
#line 1692 "configure"
#include "confdefs.h"

int main() {

; return 0; }
EOF
if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  ac_R_space=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_R_space=no
fi
rm -f conftest*
	if test $ac_R_space = yes; then
	  echo "$ac_t""yes" 1>&6
	  X_LIBS="$X_LIBS -R $x_libraries"
	else
	  echo "$ac_t""neither works" 1>&6
	fi
      fi
      LIBS="$ac_xsave_LIBS"
    esac
  fi

  # Check for system-dependent libraries X programs must link with.
  # Do this before checking for the system-independent R6 libraries
  # (-lICE), since we may need -lsocket or whatever for X linking.

  if test "$ISC" = yes; then
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  else
    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And karl@cs.umb.edu says
    # the Alpha needs dnet_stub (dnet does not exist).
    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
echo "configure:1731: checking for dnet_ntoa in -ldnet" >&5
ac_lib_var=`echo dnet'_'dnet_ntoa | 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="-ldnet  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1739 "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 dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }
EOF
if { (eval echo configure:1750: \"$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
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
echo "configure:1772: checking for dnet_ntoa in -ldnet_stub" >&5
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | 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="-ldnet_stub  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1780 "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 dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }
EOF
if { (eval echo configure:1791: \"$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
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
else
  echo "$ac_t""no" 1>&6
fi

    fi

    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
    # to get the SysV transport functions.
    # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
    # needs -lnsl.
    # The nsl library prevents programs from opening the X display
    # on Irix 5.2, according to dickey@clark.net.
    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
echo "configure:1820: checking for gethostbyname" >&5
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1825 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostbyname(); 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 gethostbyname();

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_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
gethostbyname();
#endif

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

if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_gethostbyname = no; then
      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
echo "configure:1869: checking for gethostbyname in -lnsl" >&5
ac_lib_var=`echo nsl'_'gethostbyname | 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="-lnsl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1877 "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 gethostbyname();

int main() {
gethostbyname()
; return 0; }
EOF
if { (eval echo configure:1888: \"$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
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
else
  echo "$ac_t""no" 1>&6
fi

    fi

    # lieder@skyler.mavd.honeywell.com says without -lsocket,
    # socket/setsockopt and other routines are undefined under SCO ODT
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
    # on later versions), says simon@lia.di.epfl.ch: it contains
    # gethostby* variants that don't use the nameserver (or something).
    # -lsocket must be given before -lnsl if both are needed.
    # We assume that if connect needs -lnsl, so does gethostbyname.
    echo $ac_n "checking for connect""... $ac_c" 1>&6
echo "configure:1918: checking for connect" >&5
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1923 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char connect(); 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 connect();

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_connect) || defined (__stub___connect)
choke me
#else
connect();
#endif

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

if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_connect = no; then
      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
echo "configure:1967: checking for connect in -lsocket" >&5
ac_lib_var=`echo socket'_'connect | 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="-lsocket $X_EXTRA_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1975 "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 connect();

int main() {
connect()
; return 0; }
EOF
if { (eval echo configure:1986: \"$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
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
else
  echo "$ac_t""no" 1>&6
fi

    fi

    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
    echo $ac_n "checking for remove""... $ac_c" 1>&6
echo "configure:2010: checking for remove" >&5
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2015 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char remove(); 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 remove();

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_remove) || defined (__stub___remove)
choke me
#else
remove();
#endif

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

if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_remove = no; then
      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
echo "configure:2059: checking for remove in -lposix" >&5
ac_lib_var=`echo posix'_'remove | 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="-lposix  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2067 "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 remove();

int main() {
remove()
; return 0; }
EOF
if { (eval echo configure:2078: \"$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
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
else
  echo "$ac_t""no" 1>&6
fi

    fi

    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    echo $ac_n "checking for shmat""... $ac_c" 1>&6
echo "configure:2102: checking for shmat" >&5
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2107 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shmat(); 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 shmat();

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_shmat) || defined (__stub___shmat)
choke me
#else
shmat();
#endif

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

if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_shmat = no; then
      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
echo "configure:2151: checking for shmat in -lipc" >&5
ac_lib_var=`echo ipc'_'shmat | 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="-lipc  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2159 "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 shmat();

int main() {
shmat()
; return 0; }
EOF
if { (eval echo configure:2170: \"$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
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
else
  echo "$ac_t""no" 1>&6
fi

    fi
  fi

  # Check for libraries that X11R6 Xt/Xaw programs need.
  ac_save_LDFLAGS="$LDFLAGS"
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  # check for ICE first), but we must link in the order -lSM -lICE or
  # we get undefined symbols.  So assume we have SM if we have ICE.
  # These have to be linked with before -lX11, unlike the other
  # libraries we check for below, so use a different variable.
  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
echo "configure:2203: checking for IceConnectionNumber in -lICE" >&5
ac_lib_var=`echo ICE'_'IceConnectionNumber | 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="-lICE  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2211 "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 IceConnectionNumber();

int main() {
IceConnectionNumber()
; return 0; }
EOF
if { (eval echo configure:2222: \"$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
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
else
  echo "$ac_t""no" 1>&6
fi

  LDFLAGS="$ac_save_LDFLAGS"

fi

if test "$no_x" = "yes" ; then
	MAKE_X_PROGS_BIN=""
else
	MAKE_X_PROGS_BIN='$(X_PROGS_BIN)'
fi


echo $ac_n "checking target system type""... $ac_c" 1>&6
echo "configure:2254: checking target system type" >&5

target_alias=$target
case "$target_alias" in
NONE)
  case $nonopt in
  NONE) target_alias=$host_alias ;;
  *) target_alias=$nonopt ;;
  esac ;;
esac

target=`$ac_config_sub $target_alias`
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$target" 1>&6



echo $ac_n "checking for efficient ntohl""... $ac_c" 1>&6
echo "configure:2274: checking for efficient ntohl" >&5
if eval "test \"`echo '$''{'ac_cv_func_ntohl'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
case "$target_cpu" in
i[3-9]86) if test "$cross_compiling" = yes; then
  ac_cv_func_ntohl="ntohl"
else
  cat > conftest.$ac_ext <<EOF
#line 2284 "configure"
#include "confdefs.h"

#if defined(__GNUC__) && defined(i386)
unsigned long foo(unsigned long x)
{
  asm("bswap %0" : "=r" (x) : "0" (x));
  return x;
}
#endif

int main(void)
{
  return foo(0x12345678) != 0x78563412;
}

EOF
if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_ntohl="bswap"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_ntohl="ntohl"
fi
rm -fr conftest*
fi
 ;;
alpha) ac_cv_func_ntohl="bswap32" ;;
*) ac_cv_func_ntohl="ntohl" ;;
esac

fi

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



# Check whether --enable-smp or --disable-smp was given.
if test "${enable_smp+set}" = set; then
  enableval="$enable_smp"
  if test "$enableval" = "yes"; then
  smp="-D__SMP__"
else
  smp="no"
fi

fi


# Check whether --enable-kld or --disable-kld was given.
if test "${enable_kld+set}" = set; then
  enableval="$enable_kld"
  if test "$enableval" = "yes"; then
  kld="yes"
else
  kld="no"
fi

fi


# where the source tree is located

# Check whether --with-sys or --without-sys was given.
if test "${with_sys+set}" = set; then
  withval="$with_sys"
  SYS=$withval
else
  SYS=/sys
fi



echo $ac_n "checking for kernel stuff""... $ac_c" 1>&6
echo "configure:2363: checking for kernel stuff" >&5
case "$target_os" in
sunos4.1*) 
  KERNEL_INCLUDE=-I`(cd $srcdir; pwd)`/xfs/sunos
  KERNEL_SRCS='sunos-subr.c'
  KERNEL_HDRS=''
  XFS_SUBDIR=sunos
  KERNEL=/vmunix
  echo "$ac_t""SunOS 4.1.x" 1>&6
  ;;
solaris*)
  KERNEL_INCLUDE=-I`(cd $srcdir; pwd)`/xfs/solaris
  KERNEL_SRCS='solaris-subr.c'
  KERNEL_HDRS=''
  XFS_SUBDIR=solaris
  KERNEL=/dev/ksyms
  echo "$ac_t""Solaris" 1>&6
  ;;
irix*)
  KERNEL_INCLUDE=-I`(cd $srcdir; pwd)`/xfs/irix
  KERNEL_SRCS='irix-subr.c'
  KERNEL_HDRS=''
  ip=`hinv -c processor | head -1 | awk '{print $4}'`
  cpu=`hinv -t cpu | awk '{print $3}'`
  KERNEL_CFLAGS="-D$ip -D$cpu -DR4000"
  XFS_SUBDIR=irix
  KERNEL=/unix
  case "$target_os" in
  irix6.[4-9])
    cat >> confdefs.h <<\EOF
#define IRIX_64 1
EOF
 ;;
  esac
  echo "$ac_t""Irix" 1>&6
  ;;
hpux*)
  KERNEL_SRCS='hpux-subr.c'
  echo "$ac_t""hp-ux" 1>&6
  KERNEL=/hp-ux
  echo "configure: warning: No kernel support for $target_os" 1>&2
  ;;
aix*)
  KERNEL_INCLUDE=-I`(cd $srcdir; pwd)`/xfs/aix
  KERNEL_SRCS='aix-subr.c'
  KERNEL_HDRS=''
  XFS_SUBDIR=aix
  echo "$ac_t""AIX" 1>&6
  ;;  
openbsd*)
  KERNEL_INCLUDE=-I`(cd $srcdir; pwd)`/xfs/bsd
  KERNEL_SRCS='bsd-subr.c'
  KERNEL_HDRS=''
  KERNEL_LD='ld'
  KERNEL_CFLAGS="-DKERNEL -D_KERNEL -DLKM -D_LKM -DACTUALLY_LKM_NOT_KERNEL -I$SYS/arch -I$SYS"
  test_KERNEL_CFLAGS=$KERNEL_CFLAGS
  XFS_SRCS='xfs_wrap-bsd.c xfs_common-bsd.c xfs_dev-common.c xfs_dev-bsd.c xfs_syscalls-common.c xfs_syscalls-wrap-bsd.c xfs_node-bsd.c xfs_vfsops-common.c xfs_vfsops-bsd.c xfs_vfsops-openbsd.c xfs_vnodeops-common.c xfs_vnodeops-bsd.c'
  XFS_SUBDIR=bsd
  KERNEL=/bsd
  MODULE=xfs_mod.o
  echo "$ac_t""OpenBSD" 1>&6
  ;;
netbsd*)
  KERNEL_INCLUDE=-I`(cd $srcdir; pwd)`/xfs/bsd
  KERNEL_SRCS='bsd-subr.c'
  KERNEL_HDRS=''
  MODULE=xfs_mod.o
  cat > conftest.mk << END
.include <bsd.kmod.mk>
.if UVM
CFLAGS+=-DUVM
.endif
echo:
	@echo \$(CFLAGS)
END
  ac_out=`/usr/bin/make S=$SYS -f conftest.mk echo 2> /dev/null`
  incl= defs= flags=
  for i in $ac_out; do
	case "$i" in
		-I*)	if test "$i" != -I. -a "$i" != "-I`pwd`"; then
				incl="$incl${incl:+ }$i"
			fi
			;;
		-D*)	defs="$defs${defs:+ }$i" ;;
		-m*)	flags="$flags${flags:+ }$i" ;;
		*) 	;;
	esac
  done
## -DKERNEL -DLKM -DACTUALLY_LKM_NOT_KERNEL ??
  if test `uname -m` = alpha && test ! expr "$flags" : ".*-mno-fp-regs" > /dev/null
  then
	flags="$flags${flags:+ }-mno-fp-regs"
  fi
  KERNEL_CFLAGS="$defs${defs:+ }$flags${flags:+ }$incl"
  test_KERNEL_CFLAGS=$KERNEL_CFLAGS
  KERNEL_LD='ld'
  XFS_SRCS='xfs_wrap-bsd.c xfs_common-bsd.c xfs_dev-common.c xfs_dev-bsd.c xfs_syscalls-common.c xfs_syscalls-wrap-bsd.c xfs_node-bsd.c xfs_vfsops-common.c xfs_vfsops-bsd.c xfs_vfsops-netbsd.c xfs_vnodeops-common.c xfs_vnodeops-bsd.c'
  XFS_SUBDIR=bsd
  KERNEL=/netbsd
  echo "$ac_t""NetBSD" 1>&6
  ;;
freebsd[34]*)
  echo "$ac_t""FreeBSD [34].x" 1>&6
  KERNEL_INCLUDE=-I`(cd $srcdir; pwd)`/xfs/bsd
  KERNEL_SRCS='bsd-subr.c'
  KERNEL_HDRS=''
  KERNEL=`sysctl -n kern.bootfile`
  echo $ac_n "checking for kernel object format""... $ac_c" 1>&6
echo "configure:2471: checking for kernel object format" >&5
  kernobjformat=aout
  case `file $KERNEL 2>/dev/null` in
  *ELF*)  kernobjformat=elf ;;
  esac
  echo "$ac_t""$kernobjformat" 1>&6

  echo $ac_n "checking for kld""... $ac_c" 1>&6
echo "configure:2479: checking for kld" >&5
    case "$target_os" in
  	freebsd4*)
	if test "X$kld" = "X"; then
		kld="yes";
	fi
	;;
  esac
    case "$kernobjformat" in
	elf*)
	if test "X$kld" = "X"; then
		kld=yes;
	fi
	;;
  esac
  if test "$kld" = "yes"; then
    KERNEL_CFLAGS="-DKERNEL -D_KERNEL -DVFS_KLD -DKLD_MODULE -I$SYS/arch -I$SYS -I."
    test_KERNEL_CFLAGS="-$kernobjformat $KERNEL_CFLAGS"
    KERNEL_LD='ld'
    case "$kernobjformat" in
    aout) extra_LDFLAGS="-A" ;;
    elf)  extra_LDFLAGS="-R" ;;
    *) { echo "configure: error: Unknown object format $kernobjformat" 1>&2; exit 1; }
    esac
    ac_kernel_ld='${LD-ld} -$kernobjformat -o conftest $LDFLAGS $extra_LDFLAGS $KERNEL conftest.o -e _foo 1>&5'
    MODULE=xfs.ko
    echo "$ac_t""yes" 1>&6
  else
    if test "$kernobjformat" != "aout"; then
      echo "configure: warning: You cannot build LKMs against $kernobjformat kernels" 1>&2
    fi
    KERNEL_CFLAGS="-aout -DKERNEL -D_KERNEL -DLKM -D_LKM -DVFS_LKM -DACTUALLY_LKM_NOT_KERNEL -I$SYS/arch -I$SYS -I."
    test_KERNEL_CFLAGS=$KERNEL_CFLAGS
    KERNEL_LD='ld -aout'
    ac_kernel_ld='${LD-ld} -aout -o conftest $LDFLAGS -A $KERNEL conftest.o -e _foo 1>&5'
    MODULE=xfs_mod.o
    echo "$ac_t""no" 1>&6
  fi

  XFS_SUBDIR=bsd
  XFS_SRCS='xfs_wrap-bsd.c xfs_common-bsd.c xfs_dev-common.c xfs_dev-bsd.c xfs_syscalls-common.c xfs_syscalls-wrap-freebsd.c xfs_node-bsd.c xfs_vfsops-common.c xfs_vfsops-bsd.c xfs_vfsops-freebsd.c xfs_vnodeops-common.c xfs_vnodeops-bsd.c'
  /bin/sh $SYS/kern/vnode_if.sh $SYS/kern/vnode_if.src

  ;;
freebsd*)
  KERNEL_INCLUDE=-I`(cd $srcdir; pwd)`/xfs/bsd
  KERNEL_SRCS='bsd-subr.c'
  KERNEL_HDRS=''
  KERNEL_LD='ld'
  MODULE=xfs_mod.o
  KERNEL_CFLAGS="-DKERNEL -D_KERNEL -DLKM -D_LKM -DACTUALLY_LKM_NOT_KERNEL -I$SYS/arch -I$SYS -I."
  test_KERNEL_CFLAGS=$KERNEL_CFLAGS
  XFS_SUBDIR=bsd
  XFS_SRCS='xfs_wrap-bsd.c xfs_common-bsd.c xfs_dev-common.c xfs_dev-bsd.c xfs_syscalls-common.c xfs_syscalls-wrap-freebsd.c xfs_node-bsd.c xfs_vfsops-common.c xfs_vfsops-bsd.c xfs_vfsops-freebsd.c xfs_vnodeops-common.c xfs_vnodeops-bsd.c'
  /bin/sh $SYS/kern/vnode_if.sh $SYS/kern/vnode_if.src
  KERNEL=`sysctl -n kern.bootfile`
  echo "$ac_t""FreeBSD 2.x" 1>&6
  ;;
rhapsody*)
  KERNEL_INCLUDE=-I`(cd $srcdir; pwd)`/xfs/rhapsody
  KERNEL_SRCS='bsd-subr.c'
  XFS_SUBDIR=rhapsody
  KERNEL=/mach
  KERNEL_HDRS=''
  echo "$ac_t""Rhapsody" 1>&6
  ;;
linux*)
  echo "$ac_t""Linux" 1>&6
  KERNEL_INCLUDE=-I`(cd $srcdir; pwd)`/xfs/linux
  KERNEL_SRCS='bsd-subr.c'
  KERNEL_HDRS=''
  echo $ac_n "checking for smp""... $ac_c" 1>&6
echo "configure:2551: checking for smp" >&5
if test "X$smp" = "Xno"; then
  smp=
elif test "X$smp" = "X"; then
  cat > conftest.$ac_ext <<EOF
#line 2556 "configure"
#include "confdefs.h"
#include <linux/modules/ksyms.ver>
__ver_get_module_symbol
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "smp_[0-9a-z]*" >/dev/null 2>&1; then
  rm -rf conftest*
  smp='-D__SMP__'
else
  rm -rf conftest*
  
if grep 'smp_0-9a-z*\>' /proc/ksyms >/dev/null || test `grep -c '^processor' /proc/cpuinfo` -gt 1; then
  smp='-D__SMP__'
fi
fi

fi
rm -f conftest*

  if test "X$smp" = "X"; then
     echo "$ac_t""no" 1>&6
  else
     echo "$ac_t""yes" 1>&6
  fi
  KERNEL_CFLAGS="-DMODULE -D__KERNEL__ $smp"
  test_KERNEL_CFLAGS=$KERNEL_CFLAGS
  XFS_SUBDIR=linux
  KERNEL=/dev/null
  ;;
osf*)
  KERNEL_INCLUDE=-I`(cd $srcdir; pwd)`/xfs/bsd
  KERNEL_SRCS=bsd-subr.c
  KERNEL_HDRS=
  KERNEL_CFLAGS='-DKERNEL -D_KERNEL -DMACH'
  test_KERNEL_CFLAGS=$KERNEL_CFLAGS
  XFS_SRCS='xfs_wrap-osf.c xfs_common-osf.c xfs_dev-common.c xfs_dev-osf.c xfs_syscalls-common.c xfs_syscalls-wrap-osf.c xfs_node-osf.c xfs_vfsops-common.c xfs_vfsops-osf.c xfs_vnodeops-common.c xfs_vnodeops-osf.c'
  # XXX find kernel include dir
  nodename=`hostname | sed 's/\..*//' | tr 'a-z' 'A-Z'`
  foo=`ls $SYS/GENERIC/cpus.h $SYS/$nodename/cpus.h $SYS/*/cpus.h 2> /dev/null | head -1 | sed -e 's,/cpus.h,,'`
  KERNEL_CFLAGS="$KERNEL_CFLAGS -I/usr/sys/include -I$foo"
  KERNEL_LD='ld'
  XFS_SUBDIR=bsd
  echo "$ac_t""osf/1" 1>&6
  KERNEL=/vmunix
  case "$CC" in
  cc)
	CC="$CC -std1"
	;;
  esac
  ;;
*)
  echo "$ac_t""none" 1>&6
  echo "configure: warning: No kernel support for $target_os, compiling only user-level stuff" 1>&2
  KERNEL_INCLUDE=-I`(cd $srcdir; pwd)`/xfs/unknown
  KERNEL_SRCS=unknown-subr.c
  KERNEL_HDRS=
  KERNEL=/dev/null
  XFS_SUBDIR=
  ;;
esac
if test "$XFS_SUBDIR" != ""; then
  XFS_SUBDIR_Makefile=xfs/$XFS_SUBDIR/Makefile
  XFS_SUBDIR_BIN_Makefile=xfs/$XFS_SUBDIR/bin/Makefile
fi



if test `uname` = OSF1; then
  OSF1_TRUE=
  OSF1_FALSE='#'
else
  OSF1_TRUE='#'
  OSF1_FALSE=
fi
# Check where to put the cache

# Check whether --with-arlacachedir or --without-arlacachedir was given.
if test "${with_arlacachedir+set}" = set; then
  withval="$with_arlacachedir"
  ARLACACHEDIR=$withval
else
  ARLACACHEDIR='${prefix}/cache'
fi


# Check where to find the configuration

# Check whether --with-arlaconffile or --without-arlaconffile was given.
if test "${with_arlaconffile+set}" = set; then
  withval="$with_arlaconffile"
  ARLACONFFILE=$withval
else
  ARLACONFFILE='${sysconfdir}/arla.conf'
fi


# Do we want knfs ?

ARLA_KNFS=""
# Check whether --enable-knfs or --disable-knfs was given.
if test "${enable_knfs+set}" = set; then
  enableval="$enable_knfs"
  ARLA_KNFS="-DARLA_KNFS"
fi




LWP_PROCESS="process.o"
LWP_C="lwp.c"
LWP_O="lwp.o"
LWP_H="lwp.h"
PLWP_LIB_FLAGS=""
PLWP_INC_FLAGS=""
# Check whether --with-pthreads or --without-pthreads was given.
if test "${with_pthreads+set}" = set; then
  withval="$with_pthreads"
  if test "$with_pthreads" != "no"; then
  LWP_PROCESS=""
  LWP_C="plwp.c"
  LWP_O="plwp.o"
  LWP_H="plwp.h"
  PLWP_INC_FLAGS="-DPTHREADS_LWP"
  if test "$with_pthreads" != "yes"; then
    PLWP_LIB_FLAGS="-L${with_pthreads}/lib -lpthread"
    PLWP_INC_FLAGS="-I${with_pthreads}/include -DPTHREADS_LWP"
  else
    PLWP_LIB_FLAGS="-lpthread"
    PLWP_INC_FLAGS="-DPTHREADS_LWP"
  fi
fi
else
  with_pthreads=no
fi









# Check whether --with-krbafs or --without-krbafs was given.
if test "${with_krbafs+set}" = set; then
  withval="$with_krbafs"
  if test "$with_krbafs" = "yes"; then
  { echo "configure: error: You have to give the path to krbafs lib" 1>&2; exit 1; }
fi
else
  with_krbafs=no
fi



# Check whether --with-krb4 or --without-krb4 was given.
if test "${with_krb4+set}" = set; then
  withval="$with_krb4"
  if test "X$with_krb4" = "X"; then
  with_krb4=yes
fi
fi


# Check whether --with-krb4-lib or --without-krb4-lib was given.
if test "${with_krb4_lib+set}" = set; then
  withval="$with_krb4_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { echo "configure: error: No argument for --with-krb4-lib" 1>&2; exit 1; }
fi
fi


# Check whether --with-krb4-include or --without-krb4-include was given.
if test "${with_krb4_include+set}" = set; then
  withval="$with_krb4_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { echo "configure: error: No argument for --with-krb4-include" 1>&2; exit 1; }
fi
fi


# Check whether --with-krb5 or --without-krb5 was given.
if test "${with_krb5+set}" = set; then
  withval="$with_krb5"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { echo "configure: error: No argument for --with-krb5" 1>&2; exit 1; }
fi
if test "X$with_krb4" != "X"; then
  { echo "configure: error: Already specified kerberos 4 with --with-krb4" 1>&2; exit 1; }
fi
fi


# Check whether --with-krb5-include or --without-krb5-include was given.
if test "${with_krb5_include+set}" = set; then
  withval="$with_krb5_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { echo "configure: error: No argument for --with-krb5-include" 1>&2; exit 1; }
fi
if test "X$with_krb4_include" != "X"; then
  { echo "configure: error: Already specified kerberos 4 headers with --with-krb4-include" 1>&2; exit 1; }
fi
fi


# Check whether --with-krb5-lib or --without-krb5-lib was given.
if test "${with_krb5_lib+set}" = set; then
  withval="$with_krb5_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { echo "configure: error: No argument for --with-krb5-lib" 1>&2; exit 1; }
fi
if test "X$with_krb4_lib" != "X"; then
  { echo "configure: error: Already specified kerberos 4 libraries with --with-krb4-lib" 1>&2; exit 1; }
fi
fi


if test "X$with_krb4" != "X"; then
  ac_cv_krb_where_lib=$with_krb4/lib
  ac_cv_krb_where_inc=$with_krb4/include
  ac_cv_is_krb5=no
elif test "X$with_krb5" != "X"; then
  ac_cv_krb_where_lib=$with_krb5/lib
  ac_cv_krb_where_inc=$with_krb5/include
  ac_cv_is_krb5=yes
fi

if test "X$with_krb4_lib" != "X"; then
  ac_cv_krb_where_lib=$with_krb4_lib
  ac_cv_is_krb5=no
elif test "X$with_krb5_lib" != "X" -a "X$with_krb4" = "X"; then
  ac_cv_krb_where_lib=$with_krb5_lib
  ac_cv_is_krb5=yes
fi
if test "X$ac_cv_krb_where_lib" = "X"; then
  
   for i in /usr/athena/lib /usr/lib /usr/local/lib; do
      echo $ac_n "checking for kerberos libraries in $i""... $ac_c" 1>&6
echo "configure:2796: checking for kerberos libraries in $i" >&5
      
saved_LIBS=$LIBS
LIBS="$saved_LIBS -L$i -lkrb -ldes"
cat > conftest.$ac_ext <<EOF
#line 2801 "configure"
#include "confdefs.h"

int main() {
dest_tkt();
; return 0; }
EOF
if { (eval echo configure:2808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  ac_cv_found_krb_lib=yes
 ac_cv_is_krb5=no
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_found_krb_lib=no
fi
rm -f conftest*
if test "$ac_cv_found_krb_lib" = "no"; then
  LIBS="$saved_LIBS -L$i -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
  cat > conftest.$ac_ext <<EOF
#line 2822 "configure"
#include "confdefs.h"

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

      if test "$ac_cv_found_krb_lib" = "yes" ; then
        ac_cv_krb_where_lib=$i
	echo "$ac_t""found" 1>&6
	break
      else
	echo "$ac_t""no found" 1>&6
      fi
    done

fi

if test "X$with_krb4_include" != "X"; then
  ac_cv_krb_where_inc=$with_krb4_include
  ac_cv_is_krb5=no
elif test "X$with_krb5_include" != "X" -a "X$with_krb4" = "X"; then
  ac_cv_krb_where_inc=$with_krb5_include
  ac_cv_is_krb5=yes
fi
if test "X$ac_cv_krb_where_inc" = "X"; then
  
   for i in /usr/athena/include /usr/include/kerberosIV /usr/include/kerberos /usr/local/include; do
      echo $ac_n "checking for kerberos headers in $i""... $ac_c" 1>&6
echo "configure:2865: checking for kerberos headers in $i" >&5
      
saved_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$saved_CPPFLAGS -I$i"
cat > conftest.$ac_ext <<EOF
#line 2870 "configure"
#include "confdefs.h"
#include <krb.h>
int main() {
struct ktext foo;
; return 0; }
EOF
if { (eval echo configure:2877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_found_krb_inc=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_found_krb_inc=no
fi
rm -f conftest*
if test "$ac_cv_found_krb_inc" = "no"; then
  CPPFLAGS="$saved_CPPFLAGS -I$i -I$i/kerberosIV"
  cat > conftest.$ac_ext <<EOF
#line 2890 "configure"
#include "confdefs.h"
#include <krb.h>
int main() {
struct ktext foo;
; return 0; }
EOF
if { (eval echo configure:2897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_found_krb_inc=yes
   ac_cv_is_krb5=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_found_krb_inc=no
fi
rm -f conftest*
fi
CPPFLAGS=$saved_CPPFLAGS

      if test "$ac_cv_found_krb_inc" = "yes"; then
        ac_cv_krb_where_inc=$i
	echo "$ac_t""found" 1>&6
	break
      else
	echo "$ac_t""no found" 1>&6
      fi
    done

fi

echo $ac_n "checking whether to include kerberos 4""... $ac_c" 1>&6
echo "configure:2923: checking whether to include kerberos 4" >&5
if test "X$ac_cv_krb_where_lib" = "X" -a "X$ac_cv_krb_where_inc" = "X"; then
  ac_cv_found_krb=no
  echo "$ac_t""no" 1>&6
else
  ac_cv_found_krb=yes
  echo "$ac_t""yes" 1>&6
  KRB_INC_DIR=$ac_cv_krb_where_inc
  KRB_LIB_DIR=$ac_cv_krb_where_lib
  if test "$ac_cv_is_krb5" = "yes"; then
    KRB_INC_FLAGS="-I${KRB_INC_DIR} -I${KRB_INC_DIR}/kerberosIV"
    KRB_LIB_FLAGS="-L${KRB_LIB_DIR} -lkrb4 -ldes425 -lkrb5 -lcom_err"
    LIBS_save="$LIBS"
    LIBS="$LIBS -L${KRB_LIB_DIR}"
    echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
echo "configure:2938: checking for krb5_encrypt_data in -lk5crypto" >&5
ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | 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="-lk5crypto  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2946 "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 krb5_encrypt_data();

int main() {
krb5_encrypt_data()
; return 0; }
EOF
if { (eval echo configure:2957: \"$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
  KRB_LIB_FLAGS="$KRB_LIB_FLAGS -lk5crypto"
else
  echo "$ac_t""no" 1>&6
KRB_LIB_FLAGS="$KRB_LIB_FLAGS -lcrypto"
fi

    LIBS="$LIBS_save"
  else
    KRB_INC_FLAGS="-I${KRB_INC_DIR}"
    KRB_LIB_FLAGS="-L${KRB_LIB_DIR} -lkrb -ldes"
  fi
  RXKAD="rxkad"
  RXKAD_LIBS="-L../rxkad -lrxkad $KRB_LIB_FLAGS"
  if test "$with_krbafs" != "no"; then
    KAFS_LIBS="-L${with_krbafs} -lkrbafs"
  else
    KAFS_LIBS="-L${KRB_LIB_DIR} -lkafs"
  fi
  RXKAD_MAKEFILE="rxkad/Makefile"
  cat >> confdefs.h <<\EOF
#define KERBEROS 1
EOF

fi


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


fi

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

fi


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


fi

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

fi


echo $ac_n "checking for krb_principal""... $ac_c" 1>&6
echo "configure:3065: checking for krb_principal" >&5
if eval "test \"`echo '$''{'ac_cv_struct_krb_principal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if test "$ac_cv_found_krb" = "yes"; then
save_CPPFLAGS="${CPPFLAGS}"
CPPFLAGS="-I${KRB_INC_DIR} $CPPFLAGS"
cat > conftest.$ac_ext <<EOF
#line 3074 "configure"
#include "confdefs.h"
#include <krb.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "krb_principal" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_struct_krb_principal=yes
fi
rm -f conftest*

CPPFLAGS="${save_CPPFLAGS}"
eval "ac_cv_struct_krb_principal=${ac_cv_struct_krb_principal-no}"
else
eval "ac_cv_struct_krb_principal=no"
fi

fi

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

fi


echo $ac_n "checking for krb_get_err_text""... $ac_c" 1>&6
echo "configure:3103: checking for krb_get_err_text" >&5
if eval "test \"`echo '$''{'ac_cv_func_krb_get_err_text'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if test "$ac_cv_found_krb" = "yes"; then
save_CPPFLAGS="${CPPFLAGS}"
save_LIBS="${LIBS}"
CPPFLAGS="${KRB_INC_FLAGS} ${CPPFLAGS}"
LIBS="${KRB_LIB_FLAGS} ${LIBS}"
cat > conftest.$ac_ext <<EOF
#line 3114 "configure"
#include "confdefs.h"
#include <krb.h>
int main() {
krb_get_err_text(0);
; return 0; }
EOF
if { (eval echo configure:3121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  ac_cv_func_krb_get_err_text=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_krb_get_err_text=no
fi
rm -f conftest*
CPPFLAGS="${save_CPPFLAGS}"
LIBS="${save_LIBS}"
fi

fi

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

fi




echo $ac_n "checking for tgetent""... $ac_c" 1>&6
echo "configure:3149: checking for tgetent" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_tgetent'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" termcap curses; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 3162 "configure"
#include "confdefs.h"

int main() {
tgetent()
; return 0; }
EOF
if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_tgetent"

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs tgetent"@@@
@@@libs="$libs termcap curses"@@@
END

# tgetent
eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_tgetent=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_tgetent=yes"
	eval "LIB_tgetent="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_tgetent=no"
	eval "LIB_tgetent="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_tgetent=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac




echo $ac_n "checking for el_init""... $ac_c" 1>&6
echo "configure:3232: checking for el_init" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_el_init'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" edit; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 3245 "configure"
#include "confdefs.h"

int main() {
el_init()
; return 0; }
EOF
if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_el_init"

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs el_init"@@@
@@@libs="$libs edit"@@@
END

# el_init
eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_el_init=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_el_init=yes"
	eval "LIB_el_init="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_el_init=no"
	eval "LIB_el_init="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_el_init=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac




echo $ac_n "checking for readline""... $ac_c" 1>&6
echo "configure:3315: checking for readline" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_readline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_readline\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" readline; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 3328 "configure"
#include "confdefs.h"

int main() {
readline()
; return 0; }
EOF
if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_readline=$ac_lib; else ac_cv_funclib_readline=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_readline=\${ac_cv_funclib_readline-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_readline"

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs readline"@@@
@@@libs="$libs readline"@@@
END

# readline
eval "ac_tr_func=HAVE_`echo readline | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_readline=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_readline=yes"
	eval "LIB_readline="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_readline=no"
	eval "LIB_readline="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_readline=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac



if test "$with_readline"; then
	cat >> confdefs.h <<\EOF
#define HAVE_READLINE 1
EOF

	editline_OBJS=
	LIB_readline="$READLINELIB "'$(LIB_tgetent)'
	INCLUDE_readline="$READLINEINCLUDE"
elif test "$ac_cv_func_el_init" = yes; then
	cat >> confdefs.h <<\EOF
#define HAVE_READLINE 1
EOF


	editline_OBJS=edit_compat.o
	LIB_readline='-L'`pwd`'/lib/editline -leditline '"$LIB_el_init"' $(LIB_tgetent)'

	INCLUDE_readline='-I'`pwd`'/lib/editline -I$(top_srcdir)/lib/editline'
elif test "$ac_cv_func_readline" = yes; then
	cat >> confdefs.h <<\EOF
#define HAVE_READLINE 1
EOF

	editline_OBJS=
	LIB_readline='-lreadline $(LIB_tgetent)'
	INCLUDE_readline=
else
	cat >> confdefs.h <<\EOF
#define HAVE_READLINE 1
EOF

	editline_OBJS="editline.o complete.o sysunix.o"
	LIB_readline='-L'`pwd`'/lib/editline -leditline $(LIB_tgetent)'
	INCLUDE_readline='-I'`pwd`'/lib/editline -I$(top_srcdir)/lib/editline'
fi

# Check whether --enable-mmap or --disable-mmap was given.
if test "${enable_mmap+set}" = set; then
  enableval="$enable_mmap"
  if test "$enableval" = "no"; then
  ac_cv_func_mmap_fixed_mapped=no
 fi
fi


# Check whether --enable-mmaptime or --disable-mmaptime was given.
if test "${enable_mmaptime+set}" = set; then
  enableval="$enable_mmaptime"
  if test "$enableval" = "yes" -o "X$enableval" = "X"; then
  cat >> confdefs.h <<\EOF
#define USE_MMAPTIME 1
EOF

fi
fi


aix_dynamic_afs=yes
# Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
if test "${enable_dynamic_afs+set}" = set; then
  enableval="$enable_dynamic_afs"
  
if test "$enableval" = "no"; then
	aix_dynamic_afs=no
fi

fi



if test "${ac_cv_prog_getconf-set}" = set ;then

# Extract the first word of "getconf", so it can be a program name with args.
set dummy getconf; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3471: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ac_cv_prog_getconf'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$ac_cv_prog_getconf"; then
  ac_cv_prog_ac_cv_prog_getconf="$ac_cv_prog_getconf" # 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_ac_cv_prog_getconf="yes"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
ac_cv_prog_getconf="$ac_cv_prog_ac_cv_prog_getconf"
if test -n "$ac_cv_prog_getconf"; then
  echo "$ac_t""$ac_cv_prog_getconf" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


fi

if test "$ac_cv_prog_getconf" = "yes";then
echo $ac_n "checking if we have LFS_CFLAGS""... $ac_c" 1>&6
echo "configure:3501: checking if we have LFS_CFLAGS" >&5
FOO="`getconf LFS_CFLAGS 2>/dev/null >/dev/null`"
if test $? = 0 ;then
CFLAGS="$CFLAGS $FOO"
echo "$ac_t""yes $FOO" 1>&6
else
echo "$ac_t""no" 1>&6
fi
fi



if test "$ac_cv_prog_getconf" = "yes";then
echo $ac_n "checking if we have LFS_LDFLAGS""... $ac_c" 1>&6
echo "configure:3515: checking if we have LFS_LDFLAGS" >&5
FOO="`getconf LFS_LDFLAGS 2>/dev/null >/dev/null`"
if test $? = 0 ;then
LDFLAGS="$LDFLAGS $FOO"
echo "$ac_t""yes $FOO" 1>&6
else
echo "$ac_t""no" 1>&6
fi
fi




echo $ac_n "checking for glibc""... $ac_c" 1>&6
echo "configure:3529: checking for glibc" >&5
if eval "test \"`echo '$''{'ac_cv_libc_glibc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 3535 "configure"
#include "confdefs.h"
#include <features.h>
#ifdef __GLIBC__
yes
#endif

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

fi

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

fi
























for ac_hdr in unistd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:3590: 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 3595 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3600: \"$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

for ac_func in getpagesize
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3629: 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 3634 "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:3657: \"$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
    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 mmap""... $ac_c" 1>&6
echo "configure:3682: checking for working mmap" >&5
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
else
  cat > conftest.$ac_ext <<EOF
#line 3690 "configure"
#include "confdefs.h"

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the filesystem buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propogated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */
#include <sys/types.h>
#include <fcntl.h>
#include <sys/mman.h>

/* This mess was copied from the GNU getpagesize.h.  */
#ifndef HAVE_GETPAGESIZE
# ifdef HAVE_UNISTD_H
#  include <unistd.h>
# endif

/* Assume that all systems that can run configure have sys/param.h.  */
# ifndef HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  ifdef HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

#ifdef __cplusplus
extern "C" { void *malloc(unsigned); }
#else
char *malloc();
#endif

int
main()
{
	char *data, *data2, *data3;
	int i, pagesize;
	int fd;

	pagesize = getpagesize();

	/*
	 * First, make a file with some known garbage in it.
	 */
	data = malloc(pagesize);
	if (!data)
		exit(1);
	for (i = 0; i < pagesize; ++i)
		*(data + i) = rand();
	umask(0);
	fd = creat("conftestmmap", 0600);
	if (fd < 0)
		exit(1);
	if (write(fd, data, pagesize) != pagesize)
		exit(1);
	close(fd);

	/*
	 * Next, try to mmap the file at a fixed address which
	 * already has something else allocated at it.  If we can,
	 * also make sure that we see the same garbage.
	 */
	fd = open("conftestmmap", O_RDWR);
	if (fd < 0)
		exit(1);
	data2 = malloc(2 * pagesize);
	if (!data2)
		exit(1);
	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
		exit(1);
	for (i = 0; i < pagesize; ++i)
		if (*(data + i) != *(data2 + i))
			exit(1);

	/*
	 * Finally, make sure that changes to the mapped area
	 * do not percolate back to the file as seen by read().
	 * (This is a bug on some variants of i386 svr4.0.)
	 */
	for (i = 0; i < pagesize; ++i)
		*(data2 + i) = *(data2 + i) + 1;
	data3 = malloc(pagesize);
	if (!data3)
		exit(1);
	if (read(fd, data3, pagesize) != pagesize)
		exit(1);
	for (i = 0; i < pagesize; ++i)
		if (*(data + i) != *(data3 + i))
			exit(1);
	close(fd);
	unlink("conftestmmap");
	exit(0);
}

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

fi

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

fi



echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:3855: checking for ANSI C header files" >&5
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 3860 "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:3868: \"$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
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&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 3885 "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 3903 "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 3924 "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
if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_header_stdc=no
fi
rm -fr conftest*
fi

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
echo "configure:3959: checking whether time.h and sys/time.h may both be included" >&5
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 3964 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
EOF
if { (eval echo configure:3973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_header_time=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  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



for ac_hdr in arpa/inet.h arpa/nameser.h crypt.h dbm.h ndbm.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:3999: 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 4004 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4009: \"$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

for ac_hdr in dirent.h errno.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4039: 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 4044 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4049: \"$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

for ac_hdr in fcntl.h grp.h inttypes.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4079: 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 4084 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4089: \"$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

for ac_hdr in machine/alpha/asm.h machine/asm.h machine/regdef.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4119: 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 4124 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4129: \"$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

for ac_hdr in miscfs/genfs/genfs.h netdb.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4159: 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 4164 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4169: \"$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

for ac_hdr in netinet6/in6.h netinet/in6.h netinet/in6_machtypes.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4199: 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 4204 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4209: \"$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

for ac_hdr in netinet/in.h paths.h pwd.h regdef.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4239: 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 4244 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4249: \"$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

for ac_hdr in rpcsvc/dbm.h shadow.h syslog.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4279: 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 4284 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4289: \"$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

for ac_hdr in sys/bitypes.h sys/cdefs.h sys/filedesc.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4319: 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 4324 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4329: \"$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

for ac_hdr in sys/ioccom.h sys/ioctl.h sys/lkm.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4359: 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 4364 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4369: \"$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

for ac_hdr in sys/mman.h sys/module.h sys/mount.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4399: 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 4404 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4409: \"$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

for ac_hdr in sys/param.h sys/poll.h sys/queue.h sys/proc.h sys/resource.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4439: 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 4444 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4449: \"$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

for ac_hdr in sys/select.h sys/socket.h sys/sockio.h sys/stat.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4479: 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 4484 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4489: \"$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

for ac_hdr in sys/sysconfig.h sys/syscallargs.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4519: 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 4524 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4529: \"$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

for ac_hdr in sys/sysctl.h sys/sysent.h sys/sysproto.h sys/time.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4559: 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 4564 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4569: \"$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

for ac_hdr in sys/tty.h sys/types.h sys/uio.h sys/user.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4599: 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 4604 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4609: \"$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

for ac_hdr in sys/utsname.h sys/vfs.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4639: 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 4644 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4649: \"$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

for ac_hdr in vm/vm.h vm/vm_extern.h vm/vm_object.h vm/vm_pager.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4679: 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 4684 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4689: \"$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

for ac_hdr in vm/vm_zone.h vm/vnode_pager.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4719: 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 4724 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4729: \"$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

for ac_hdr in termios.h unistd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4759: 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 4764 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4769: \"$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

for ac_hdr in nlist.h libelf/nlist.h resolv.h kvm.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4799: 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 4804 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4809: \"$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


for ac_hdr in linux/types.h linux/modversions.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4840: 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 4845 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4850: \"$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

for ac_hdr in asm/smplock.h asm/smp_lock.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4880: 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 4885 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4890: \"$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


for ac_hdr in linux/devfs_fs.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4921: 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 4926 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4931: \"$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


if test "$KRB_INC_DIR"; then
  save_CPPFLAGS="${CPPFLAGS}"
  CPPFLAGS="-I${KRB_INC_DIR} $CPPFLAGS"
  for ac_hdr in ktypes.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4965: 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 4970 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4975: \"$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

  CPPFLAGS="${save_CPPFLAGS}"
fi


echo $ac_n "checking for inline""... $ac_c" 1>&6
echo "configure:5006: checking for inline" >&5
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat > conftest.$ac_ext <<EOF
#line 5013 "configure"
#include "confdefs.h"

int main() {
} $ac_kw foo() {
; return 0; }
EOF
if { (eval echo configure:5020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_inline=$ac_kw; break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
done

fi

echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
  inline | yes) ;;
  no) cat >> confdefs.h <<\EOF
#define inline 
EOF
 ;;
  *)  cat >> confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
 ;;
esac




echo $ac_n "checking for __FUNCTION__""... $ac_c" 1>&6
echo "configure:5049: checking for __FUNCTION__" >&5
if eval "test \"`echo '$''{'ac_cv___function__'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if test "$cross_compiling" = yes; then
  ac_cv___function__=no
else
  cat > conftest.$ac_ext <<EOF
#line 5058 "configure"
#include "confdefs.h"

#include <string.h>

static char *foo()
{
  return __FUNCTION__;
}

int main()
{
  return strcmp(foo(), "foo") != 0;
}

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

fi

if test "$ac_cv___function__" = "yes"; then
  cat >> confdefs.h <<\EOF
#define HAVE___FUNCTION__ 1
EOF

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



save_LIBS="$LIBS"


echo $ac_n "checking for dbm_firstkey""... $ac_c" 1>&6
echo "configure:5102: checking for dbm_firstkey" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_dbm_firstkey'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" db gdbm ndbm; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 5115 "configure"
#include "confdefs.h"

int main() {
dbm_firstkey()
; return 0; }
EOF
if { (eval echo configure:5122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbm_firstkey"

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs dbm_firstkey"@@@
@@@libs="$libs db gdbm ndbm"@@@
END

# dbm_firstkey
eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbm_firstkey=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "LIB_dbm_firstkey="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_dbm_firstkey=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


LIB_DBM="$LIB_dbm_firstkey"
LIBS="$save_LIBS"



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

#include <stdlib.h>

int main() {

static void foo(void) __attribute__ ((noreturn));

static void __attribute__ ((noreturn))
foo(void)
{
  exit(1);
}

; return 0; }
EOF
if { (eval echo configure:5211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv___attribute__=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv___attribute__=no
fi
rm -f conftest*
fi

if test "$ac_cv___attribute__" = "yes"; then
  cat >> confdefs.h <<\EOF
#define HAVE___ATTRIBUTE__ 1
EOF

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




echo $ac_n "checking for struct winsize""... $ac_c" 1>&6
echo "configure:5235: checking for struct winsize" >&5
if eval "test \"`echo '$''{'ac_cv_struct_winsize'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
ac_cv_struct_winsize=no
for i in sys/termios.h sys/ioctl.h; do
cat > conftest.$ac_ext <<EOF
#line 5243 "configure"
#include "confdefs.h"
#include <$i>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "struct[ 	]*winsize" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_struct_winsize=yes; break
fi
rm -f conftest*
done

fi

if test "$ac_cv_struct_winsize" = "yes"; then
  cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_WINSIZE 1
EOF
fi
echo "$ac_t""$ac_cv_struct_winsize" 1>&6
cat > conftest.$ac_ext <<EOF
#line 5264 "configure"
#include "confdefs.h"
#include <termios.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_xpixel" >/dev/null 2>&1; then
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define HAVE_WS_XPIXEL 1
EOF

fi
rm -f conftest*

cat > conftest.$ac_ext <<EOF
#line 5279 "configure"
#include "confdefs.h"
#include <termios.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ws_ypixel" >/dev/null 2>&1; then
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define HAVE_WS_YPIXEL 1
EOF

fi
rm -f conftest*


 




echo $ac_n "checking for syslog""... $ac_c" 1>&6
echo "configure:5300: checking for syslog" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_syslog'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" syslog; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 5313 "configure"
#include "confdefs.h"

int main() {
syslog()
; return 0; }
EOF
if { (eval echo configure:5320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_syslog"

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs syslog"@@@
@@@libs="$libs syslog"@@@
END

# syslog
eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_syslog=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_syslog=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
fi






echo $ac_n "checking for socket""... $ac_c" 1>&6
echo "configure:5390: checking for socket" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_socket'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_socket\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" socket; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 5403 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int main() {
socket(0,0,0)
; return 0; }
EOF
if { (eval echo configure:5415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_socket"

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs socket"@@@
@@@libs="$libs socket"@@@
END

# socket
eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_socket=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_socket=yes"
	eval "LIB_socket="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_socket=no"
	eval "LIB_socket="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_socket=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
fi




echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
echo "configure:5483: checking for gethostbyname" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_gethostbyname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" nsl; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 5496 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int main() {
gethostbyname("foo")
; return 0; }
EOF
if { (eval echo configure:5508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_gethostbyname"

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs gethostbyname"@@@
@@@libs="$libs nsl"@@@
END

# gethostbyname
eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_gethostbyname=yes"
	eval "LIB_gethostbyname="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_gethostbyname=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
fi





echo $ac_n "checking for res_search""... $ac_c" 1>&6
echo "configure:5577: checking for res_search" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_res_search'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 5590 "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int main() {
res_search(0,0,0,0,0)
; return 0; }
EOF
if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_res_search"

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs res_search"@@@
@@@libs="$libs resolv"@@@
END

# res_search
eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_res_search=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_res_search=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
fi





echo $ac_n "checking for dn_expand""... $ac_c" 1>&6
echo "configure:5680: checking for dn_expand" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_dn_expand'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 5693 "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
#ifdef HAVE_RESOLV_H
#include <resolv.h>
#endif

int main() {
dn_expand(0,0,0,0,0)
; return 0; }
EOF
if { (eval echo configure:5714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dn_expand"

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs dn_expand"@@@
@@@libs="$libs resolv"@@@
END

# dn_expand
eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dn_expand=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_dn_expand=yes"
	eval "LIB_dn_expand="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_dn_expand=no"
	eval "LIB_dn_expand="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_dn_expand=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
fi


#
# Check if we can include both dirent.h and sys/dir.h
#

echo $ac_n "checking if we can include both dirent.h and sys/dir.h""... $ac_c" 1>&6
echo "configure:5784: checking if we can include both dirent.h and sys/dir.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_dirent_and_sys_dir'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 5789 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <dirent.h>
#include <sys/dir.h>

int main() {

; return 0; }
EOF
if { (eval echo configure:5800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_header_dirent_and_sys_dir=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_dirent_and_sys_dir=no
fi
rm -f conftest*
fi

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

fi


#
# Check for working snprint
#    libroken
#

echo $ac_n "checking for working snprintf""... $ac_c" 1>&6
echo "configure:5827: checking for working snprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_snprintf_working'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat > conftest.$ac_ext <<EOF
#line 5836 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
int main()
{
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
}
EOF
if { (eval echo configure:5848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_snprintf_working=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_func_snprintf_working" 1>&6
: << END
@@@funcs="$funcs snprintf"@@@
END
if test "$ac_cv_func_snprintf_working" = yes; then
	ac_foo=HAVE_SNPRINTF
	cat >> confdefs.h <<EOF
#define $ac_foo 1
EOF

fi

for ac_func in asnprintf asprintf vasprintf vasnprintf vsnprintf
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5877: 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 5882 "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:5905: \"$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
    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


for ac_func in thr_yield
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5933: 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 5938 "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:5961: \"$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
    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


cat > conftest.$ac_ext <<EOF
#line 5987 "configure"
#include "confdefs.h"
#include <signal.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "sigaction" >/dev/null 2>&1; then
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define HAVE_POSIX_SIGNALS 1
EOF

fi
rm -f conftest*

save_CPPFLAGS="${CPPFLAGS}"
if test "$KRB_INC_DIR"; then
  CPPFLAGS="-I${KRB_INC_DIR} $CPPFLAGS"
fi

for i in int8_t int16_t int32_t int64_t; do
        echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:6008: checking for $i" >&5
        
if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6014 "configure"
#include "confdefs.h"

#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_KTYPES_H
#include <ktypes.h>
#endif

int main() {
$i x;

; return 0; }
EOF
if { (eval echo configure:6042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval ac_cv_type_$i=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval ac_cv_type_$i=no
fi
rm -f conftest*
fi

        eval ac_res=\$ac_cv_type_$i
        if test "$ac_res" = yes; then
                type=HAVE_`echo $i | tr 'a-z' 'A-Z'`
                cat >> confdefs.h <<EOF
#define $type 1
EOF

        fi
        echo "$ac_t""$ac_res" 1>&6
done


for i in u_int8_t u_int16_t u_int32_t u_int64_t; do
        echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:6068: checking for $i" >&5
        
if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6074 "configure"
#include "confdefs.h"

#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_KTYPES_H
#include <ktypes.h>
#endif

int main() {
$i x;

; return 0; }
EOF
if { (eval echo configure:6102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval ac_cv_type_$i=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval ac_cv_type_$i=no
fi
rm -f conftest*
fi

        eval ac_res=\$ac_cv_type_$i
        if test "$ac_res" = yes; then
                type=HAVE_`echo $i | tr 'a-z' 'A-Z'`
                cat >> confdefs.h <<EOF
#define $type 1
EOF

        fi
        echo "$ac_t""$ac_res" 1>&6
done


for i in bool ssize_t; do
        echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:6128: checking for $i" >&5
        
if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6134 "configure"
#include "confdefs.h"

#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_KTYPES_H
#include <ktypes.h>
#endif

int main() {
$i x;

; return 0; }
EOF
if { (eval echo configure:6162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval ac_cv_type_$i=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval ac_cv_type_$i=no
fi
rm -f conftest*
fi

        eval ac_res=\$ac_cv_type_$i
        if test "$ac_res" = yes; then
                type=HAVE_`echo $i | tr 'a-z' 'A-Z'`
                cat >> confdefs.h <<EOF
#define $type 1
EOF

        fi
        echo "$ac_t""$ac_res" 1>&6
done


for i in int32 u_int32; do
        echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:6188: checking for $i" >&5
        
if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6194 "configure"
#include "confdefs.h"

#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_KTYPES_H
#include <ktypes.h>
#endif

int main() {
$i x;

; return 0; }
EOF
if { (eval echo configure:6222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval ac_cv_type_$i=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval ac_cv_type_$i=no
fi
rm -f conftest*
fi

        eval ac_res=\$ac_cv_type_$i
        if test "$ac_res" = yes; then
                type=HAVE_`echo $i | tr 'a-z' 'A-Z'`
                cat >> confdefs.h <<EOF
#define $type 1
EOF

        fi
        echo "$ac_t""$ac_res" 1>&6
done


for i in register_t; do
        echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:6248: checking for $i" >&5
        
if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6254 "configure"
#include "confdefs.h"

#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_KTYPES_H
#include <ktypes.h>
#endif

int main() {
$i x;

; return 0; }
EOF
if { (eval echo configure:6282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval ac_cv_type_$i=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval ac_cv_type_$i=no
fi
rm -f conftest*
fi

        eval ac_res=\$ac_cv_type_$i
        if test "$ac_res" = yes; then
                type=HAVE_`echo $i | tr 'a-z' 'A-Z'`
                cat >> confdefs.h <<EOF
#define $type 1
EOF

        fi
        echo "$ac_t""$ac_res" 1>&6
done


for i in int32 u_int32; do
        echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:6308: checking for $i" >&5
        
if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6314 "configure"
#include "confdefs.h"

#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_KTYPES_H
#include <ktypes.h>
#endif

int main() {
$i x;

; return 0; }
EOF
if { (eval echo configure:6342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval ac_cv_type_$i=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval ac_cv_type_$i=no
fi
rm -f conftest*
fi

        eval ac_res=\$ac_cv_type_$i
        if test "$ac_res" = yes; then
                type=HAVE_`echo $i | tr 'a-z' 'A-Z'`
                cat >> confdefs.h <<EOF
#define $type 1
EOF

        fi
        echo "$ac_t""$ac_res" 1>&6
done


for i in intptr_t; do
        echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:6368: checking for $i" >&5
        
if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6374 "configure"
#include "confdefs.h"

#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_BIND_BITYPES_H
#include <bind/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_KTYPES_H
#include <ktypes.h>
#endif

int main() {
$i x;

; return 0; }
EOF
if { (eval echo configure:6402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval ac_cv_type_$i=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval ac_cv_type_$i=no
fi
rm -f conftest*
fi

        eval ac_res=\$ac_cv_type_$i
        if test "$ac_res" = yes; then
                type=HAVE_`echo $i | tr 'a-z' 'A-Z'`
                cat >> confdefs.h <<EOF
#define $type 1
EOF

        fi
        echo "$ac_t""$ac_res" 1>&6
done

CPPFLAGS="${save_CPPFLAGS}"

echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo "configure:6428: checking return type of signal handlers" >&5
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 6433 "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() {
int i;
; return 0; }
EOF
if { (eval echo configure:6450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_signal=void
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  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



#
# Check if we have _res
#


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

int main() {
u_long oldres = _res.options
; return 0; }
EOF
if { (eval echo configure:6488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  cat >> confdefs.h <<EOF
#define HAVE__RES 1
EOF
 
       ac_cv_have__res=yes 
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_have__res=no
fi
rm -f conftest*
fi

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

#
# libroken
#


echo $ac_n "checking if hstrerror needs a prototype""... $ac_c" 1>&6
echo "configure:6512: checking if hstrerror needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_hstrerror_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6517 "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int main() {
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
hstrerror(&xx);

; return 0; }
EOF
if { (eval echo configure:6529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_hstrerror_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_hstrerror_noproto=no"
fi
rm -f conftest*
fi

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

if test "$ac_cv_func_hstrerror_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_HSTRERROR_PROTO 1
EOF

fi
: << END
@@@syms="$syms NEED_HSTRERROR_PROTO"@@@
END





echo $ac_n "checking for hstrerror""... $ac_c" 1>&6
echo "configure:6558: checking for hstrerror" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_hstrerror'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" resolv; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 6571 "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int main() {
hstrerror(17)
; return 0; }
EOF
if { (eval echo configure:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_hstrerror"

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs hstrerror"@@@
@@@libs="$libs resolv"@@@
END

# hstrerror
eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_hstrerror=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_hstrerror=yes"
	eval "LIB_hstrerror="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_hstrerror=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_hstrerror"; then
	LIBS="$LIB_hstrerror $LIBS"
fi

if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
LIBOBJS="$LIBOBJS hstrerror.o"
fi


for ac_func in chown daemon err errx fchown flock getcwd getdtablesize getopt
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6652: 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 6657 "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:6680: \"$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
  
ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs chown daemon err errx fchown flock getcwd getdtablesize getopt"@@@
END
done

for ac_func in getusershell inet_aton initgroups lstat memmove mkstemp
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6714: 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 6719 "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:6742: \"$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
  
ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs getusershell inet_aton initgroups lstat memmove mkstemp"@@@
END
done

for ac_func in putenv rcmd readv recvmsg sendmsg setegid setenv seteuid
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6776: 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 6781 "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:6804: \"$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
  
ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs putenv rcmd readv recvmsg sendmsg setegid setenv seteuid"@@@
END
done

for ac_func in strcasecmp strdup strerror strftime strlwr strnlen strsep
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6838: 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 6843 "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:6866: \"$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
  
ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs strcasecmp strdup strerror strftime strlwr strnlen strsep"@@@
END
done

for ac_func in strtok_r strupr unsetenv
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6900: 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 6905 "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:6928: \"$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
  
ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs strtok_r strupr unsetenv"@@@
END
done

for ac_func in verr verrx vsyslog vwarn vwarnx warn warnx writev
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6962: 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 6967 "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:6990: \"$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
  
ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs verr verrx vsyslog vwarn vwarnx warn warnx writev"@@@
END
done


if test "$ac_cv_func_inet_aton" = "yes"; then

echo $ac_n "checking if inet_aton needs a prototype""... $ac_c" 1>&6
echo "configure:7025: checking if inet_aton needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_aton_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7030 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
int main() {
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
inet_aton(&xx);

; return 0; }
EOF
if { (eval echo configure:7052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_inet_aton_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_inet_aton_noproto=no"
fi
rm -f conftest*
fi

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

if test "$ac_cv_func_inet_aton_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_INET_ATON_PROTO 1
EOF

fi
: << END
@@@syms="$syms NEED_INET_ATON_PROTO"@@@
END


fi

for ac_func in fcntl getrlimit getspnam getspuid mktime setregid
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7082: 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 7087 "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:7110: \"$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
    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

for ac_func in setresuid setreuid setsid setsockopt sysconf sysctl
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7137: 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 7142 "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:7165: \"$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
    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


for ac_func in getvfsbyname vfsisloadable vfsload
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7193: 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 7198 "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:7221: \"$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
    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_getvfsbyname" = "yes"; then
echo $ac_n "checking for two argument getvfsbyname""... $ac_c" 1>&6
echo "configure:7248: checking for two argument getvfsbyname" >&5
if eval "test \"`echo '$''{'ac_cv_func_getvfsbyname_two_arguments'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7253 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
#include <sys/mount.h>
int main() {
struct vfsconf vfc;
int foo = getvfsbyname("arla", &vfc);

; return 0; }
EOF
if { (eval echo configure:7264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_getvfsbyname_two_arguments=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_getvfsbyname_two_arguments=no
fi
rm -f conftest*
fi

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

fi

fi


echo $ac_n "checking for optreset""... $ac_c" 1>&6
echo "configure:7288: checking for optreset" >&5
if eval "test \"`echo '$''{'ac_cv_var_optreset'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 7294 "configure"
#include "confdefs.h"
extern int optreset;
int foo() { return optreset; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:7302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  ac_cv_var_optreset=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_var_optreset=no
fi
rm -f conftest*

fi

eval "ac_tr_var=HAVE_OPTRESET"


: << END
@@@syms="$syms HAVE_OPTRESET"@@@
END


echo "$ac_t""`eval echo \\$ac_cv_var_optreset`" 1>&6
if test `eval echo \\$ac_cv_var_optreset` = yes; then
	cat >> confdefs.h <<EOF
#define $ac_tr_var 1
EOF

	
echo $ac_n "checking if optreset is properly declared""... $ac_c" 1>&6
echo "configure:7331: checking if optreset is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_optreset_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 7337 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern struct { int foo; } optreset;
int main() {
optreset.foo = 1;
; return 0; }
EOF
if { (eval echo configure:7345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_optreset_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_optreset_declaration=yes"
fi
rm -f conftest*

fi


ac_tr_var=HAVE_OPTRESET_DECLARATION


: << END
@@@syms="$syms HAVE_OPTRESET_DECLARATION"@@@
END


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

fi

fi
if test "$ac_cv_var_optreset" = yes; then
	
echo $ac_n "checking if optreset is properly declared""... $ac_c" 1>&6
echo "configure:7379: checking if optreset is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_optreset_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 7385 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern struct { int foo; } optreset;
int main() {
optreset.foo = 1;
; return 0; }
EOF
if { (eval echo configure:7393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_optreset_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_optreset_declaration=yes"
fi
rm -f conftest*

fi


ac_tr_var=HAVE_OPTRESET_DECLARATION


: << END
@@@syms="$syms HAVE_OPTRESET_DECLARATION"@@@
END


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

fi
fi



echo $ac_n "checking if hstrerror needs const""... $ac_c" 1>&6
echo "configure:7427: checking if hstrerror needs const" >&5
if eval "test \"`echo '$''{'ac_cv_func_hstrerror_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7432 "configure"
#include "confdefs.h"
netdb.h
int main() {
const char *hstrerror(int);
; return 0; }
EOF
if { (eval echo configure:7439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_hstrerror_const=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_hstrerror_const=yes"
fi
rm -f conftest*
fi

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

if test "$ac_cv_func_hstrerror_const" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_HSTRERROR_CONST 1
EOF

fi
: << END
@@@syms="$syms NEED_HSTRERROR_CONST"@@@
END







echo $ac_n "checking for kvm_open""... $ac_c" 1>&6
echo "configure:7470: checking for kvm_open" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_kvm_open'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_kvm_open\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" kvm; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 7483 "configure"
#include "confdefs.h"

int main() {
kvm_open()
; return 0; }
EOF
if { (eval echo configure:7490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_kvm_open=$ac_lib; else ac_cv_funclib_kvm_open=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_kvm_open=\${ac_cv_funclib_kvm_open-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_kvm_open"

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs kvm_open"@@@
@@@libs="$libs kvm"@@@
END

# kvm_open
eval "ac_tr_func=HAVE_`echo kvm_open | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_kvm_open=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_kvm_open=yes"
	eval "LIB_kvm_open="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_kvm_open=no"
	eval "LIB_kvm_open="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_kvm_open=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_kvm_open"; then
	LIBS="$LIB_kvm_open $LIBS"
fi




echo $ac_n "checking for kvm_nlist""... $ac_c" 1>&6
echo "configure:7558: checking for kvm_nlist" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_kvm_nlist'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_kvm_nlist\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" kvm; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 7571 "configure"
#include "confdefs.h"

int main() {
kvm_nlist()
; return 0; }
EOF
if { (eval echo configure:7578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_kvm_nlist=$ac_lib; else ac_cv_funclib_kvm_nlist=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_kvm_nlist=\${ac_cv_funclib_kvm_nlist-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_kvm_nlist"

# autoheader tricks *sigh*
: << END
@@@funcs="$funcs kvm_nlist"@@@
@@@libs="$libs kvm"@@@
END

# kvm_nlist
eval "ac_tr_func=HAVE_`echo kvm_nlist | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_kvm_nlist=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_kvm_nlist=yes"
	eval "LIB_kvm_nlist="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_kvm_nlist=no"
	eval "LIB_kvm_nlist="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_kvm_nlist=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_kvm_nlist"; then
	LIBS="$LIB_kvm_nlist $LIBS"
fi

#AC_MMAP_TIME($with_mmap_time)



echo $ac_n "checking if strtok_r needs a prototype""... $ac_c" 1>&6
echo "configure:7647: checking if strtok_r needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_strtok_r_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7652 "configure"
#include "confdefs.h"

#include <string.h>

int main() {
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
strtok_r(&xx);

; return 0; }
EOF
if { (eval echo configure:7664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_strtok_r_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_strtok_r_noproto=no"
fi
rm -f conftest*
fi

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

if test "$ac_cv_func_strtok_r_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_STRTOK_R_PROTO 1
EOF

fi
: << END
@@@syms="$syms NEED_STRTOK_R_PROTO"@@@
END




echo $ac_n "checking if select needs a prototype""... $ac_c" 1>&6
echo "configure:7692: checking if select needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_select_noproto'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 7697 "configure"
#include "confdefs.h"

#include <sys/types.h> 
#include <sys/time.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

int main() {
struct foo { int foo; } xx;
extern int select (struct foo*);
select(&xx);

; return 0; }
EOF
if { (eval echo configure:7713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_select_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_select_noproto=no"
fi
rm -f conftest*
fi

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

if test "$ac_cv_func_select_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_SELECT_PROTO 1
EOF

fi
: << END
@@@syms="$syms NEED_SELECT_PROTO"@@@
END




echo $ac_n "checking if dirent has a field d_type""... $ac_c" 1>&6
echo "configure:7741: checking if dirent has a field d_type" >&5
if eval "test \"`echo '$''{'ac_cv_struct_dirent_d_type'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 7747 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <dirent.h>

int main() {
struct dirent foo; int bar = foo.d_type; 
; return 0; }
EOF
if { (eval echo configure:7759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_dirent_d_type=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_dirent_d_type=no"
fi
rm -f conftest*

fi

eval "ac_tr_var=HAVE_STRUCT_`echo dirent | tr '[a-z]' '[A-Z]'`_`echo d_type | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_DIRENT_D_TYPE"@@@
END


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

fi



echo $ac_n "checking if vfsconf has a field vfc_refcount""... $ac_c" 1>&6
echo "configure:7791: checking if vfsconf has a field vfc_refcount" >&5
if eval "test \"`echo '$''{'ac_cv_struct_vfsconf_vfc_refcount'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 7800 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/param.h>
#include <sys/mount.h>

int main() {
struct vfsconf foo; int bar = foo.vfc_refcount; 
; return 0; }
EOF
if { (eval echo configure:7811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_vfsconf_vfc_refcount=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_vfsconf_vfc_refcount=no"
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"


fi

eval "ac_tr_var=HAVE_STRUCT_`echo vfsconf | tr '[a-z]' '[A-Z]'`_`echo vfc_refcount | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_VFSCONF_VFC_REFCOUNT"@@@
END


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

fi



echo $ac_n "checking if vfsconf has a field vfc_mountroot""... $ac_c" 1>&6
echo "configure:7845: checking if vfsconf has a field vfc_mountroot" >&5
if eval "test \"`echo '$''{'ac_cv_struct_vfsconf_vfc_mountroot'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 7854 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/param.h>
#include <sys/mount.h>

int main() {
struct vfsconf foo; int (*)(void) bar = foo.vfc_mountroot; 
; return 0; }
EOF
if { (eval echo configure:7865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_vfsconf_vfc_mountroot=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_vfsconf_vfc_mountroot=no"
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"


fi

eval "ac_tr_var=HAVE_STRUCT_`echo vfsconf | tr '[a-z]' '[A-Z]'`_`echo vfc_mountroot | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_VFSCONF_VFC_MOUNTROOT"@@@
END


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

fi



echo $ac_n "checking if uio has a field uio_procp""... $ac_c" 1>&6
echo "configure:7899: checking if uio has a field uio_procp" >&5
if eval "test \"`echo '$''{'ac_cv_struct_uio_uio_procp'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 7908 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/cdefs.h>
#include <sys/uio.h>

int main() {
struct uio foo; struct proc * bar = foo.uio_procp; 
; return 0; }
EOF
if { (eval echo configure:7919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_uio_uio_procp=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_uio_uio_procp=no"
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"


fi

eval "ac_tr_var=HAVE_STRUCT_`echo uio | tr '[a-z]' '[A-Z]'`_`echo uio_procp | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_UIO_UIO_PROCP"@@@
END


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

fi



echo $ac_n "checking if vfsops has a field vfs_opv_descs""... $ac_c" 1>&6
echo "configure:7953: checking if vfsops has a field vfs_opv_descs" >&5
if eval "test \"`echo '$''{'ac_cv_struct_vfsops_vfs_opv_descs'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 7962 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/param.h>
#include <sys/mount.h>

int main() {
struct vfsops foo; struct vnodeopv_desc ** bar = foo.vfs_opv_descs; 
; return 0; }
EOF
if { (eval echo configure:7973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_vfsops_vfs_opv_descs=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_vfsops_vfs_opv_descs=no"
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"


fi

eval "ac_tr_var=HAVE_STRUCT_`echo vfsops | tr '[a-z]' '[A-Z]'`_`echo vfs_opv_descs | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_VFSOPS_VFS_OPV_DESCS"@@@
END


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

fi



echo $ac_n "checking if vfsops has a field vfs_name""... $ac_c" 1>&6
echo "configure:8007: checking if vfsops has a field vfs_name" >&5
if eval "test \"`echo '$''{'ac_cv_struct_vfsops_vfs_name'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 8016 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/param.h>
#include <sys/mount.h>

int main() {
struct vfsops foo; char * bar = foo.vfs_name; 
; return 0; }
EOF
if { (eval echo configure:8027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_vfsops_vfs_name=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_vfsops_vfs_name=no"
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"


fi

eval "ac_tr_var=HAVE_STRUCT_`echo vfsops | tr '[a-z]' '[A-Z]'`_`echo vfs_name | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_VFSOPS_VFS_NAME"@@@
END


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

fi



echo $ac_n "checking if vfsops has a field vfs_uninit""... $ac_c" 1>&6
echo "configure:8061: checking if vfsops has a field vfs_uninit" >&5
if eval "test \"`echo '$''{'ac_cv_struct_vfsops_vfs_uninit'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 8070 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/param.h>
#include <sys/mount.h>

int main() {
struct vfsops foo; void * bar = foo.vfs_uninit; 
; return 0; }
EOF
if { (eval echo configure:8081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_vfsops_vfs_uninit=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_vfsops_vfs_uninit=no"
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"


fi

eval "ac_tr_var=HAVE_STRUCT_`echo vfsops | tr '[a-z]' '[A-Z]'`_`echo vfs_uninit | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_VFSOPS_VFS_UNINIT"@@@
END


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

fi



echo $ac_n "checking if vfsops has a field vfs_oid""... $ac_c" 1>&6
echo "configure:8115: checking if vfsops has a field vfs_oid" >&5
if eval "test \"`echo '$''{'ac_cv_struct_vfsops_vfs_oid'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 8124 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/param.h>
#include <sys/mount.h>

int main() {
struct vfsops foo; struct sysctl_oid * bar = foo.vfs_oid; 
; return 0; }
EOF
if { (eval echo configure:8135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_vfsops_vfs_oid=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_vfsops_vfs_oid=no"
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"


fi

eval "ac_tr_var=HAVE_STRUCT_`echo vfsops | tr '[a-z]' '[A-Z]'`_`echo vfs_oid | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_VFSOPS_VFS_OID"@@@
END


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

fi



echo $ac_n "checking if vfsops has a field vfs_checkexp""... $ac_c" 1>&6
echo "configure:8169: checking if vfsops has a field vfs_checkexp" >&5
if eval "test \"`echo '$''{'ac_cv_struct_vfsops_vfs_checkexp'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 8178 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/param.h>
#include <sys/mount.h>

int main() {
struct vfsops foo; void * bar = foo.vfs_checkexp; 
; return 0; }
EOF
if { (eval echo configure:8189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_vfsops_vfs_checkexp=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_vfsops_vfs_checkexp=no"
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"


fi

eval "ac_tr_var=HAVE_STRUCT_`echo vfsops | tr '[a-z]' '[A-Z]'`_`echo vfs_checkexp | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_VFSOPS_VFS_CHECKEXP"@@@
END


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

fi



echo $ac_n "checking if vop_fsync_args has a field a_flags""... $ac_c" 1>&6
echo "configure:8223: checking if vop_fsync_args has a field a_flags" >&5
if eval "test \"`echo '$''{'ac_cv_struct_vop_fsync_args_a_flags'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 8232 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/param.h>
#include <sys/vnode.h>
#include <sys/vnode_if.h>

int main() {
struct vop_fsync_args foo; int bar = foo.a_flags; 
; return 0; }
EOF
if { (eval echo configure:8244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_vop_fsync_args_a_flags=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_vop_fsync_args_a_flags=no"
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"


fi

eval "ac_tr_var=HAVE_STRUCT_`echo vop_fsync_args | tr '[a-z]' '[A-Z]'`_`echo a_flags | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_VOP_FSYNC_ARGS_A_FLAGS"@@@
END


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

fi



echo $ac_n "checking if file_operations has a field flush""... $ac_c" 1>&6
echo "configure:8278: checking if file_operations has a field flush" >&5
if eval "test \"`echo '$''{'ac_cv_struct_file_operations_flush'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 8287 "configure"
#include "confdefs.h"

#include <linux/fs.h>
typedef int (*flush_type)(struct file *);

int main() {
struct file_operations foo; flush_type bar = foo.flush; 
; return 0; }
EOF
if { (eval echo configure:8297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_file_operations_flush=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_file_operations_flush=no"
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"


fi

eval "ac_tr_var=HAVE_STRUCT_`echo file_operations | tr '[a-z]' '[A-Z]'`_`echo flush | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_FILE_OPERATIONS_FLUSH"@@@
END


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

fi



echo $ac_n "checking if mount has a field mnt_syncer""... $ac_c" 1>&6
echo "configure:8331: checking if mount has a field mnt_syncer" >&5
if eval "test \"`echo '$''{'ac_cv_struct_mount_mnt_syncer'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 8340 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_PROC_H
#include <sys/proc.h>
#endif
#ifdef HAVE_SYS_VNODE_H
#include <sys/vnode.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif

int main() {
struct mount foo; struct vnode * bar = foo.mnt_syncer; 
; return 0; }
EOF
if { (eval echo configure:8363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_mount_mnt_syncer=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_mount_mnt_syncer=no"
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"


fi

eval "ac_tr_var=HAVE_STRUCT_`echo mount | tr '[a-z]' '[A-Z]'`_`echo mnt_syncer | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_MOUNT_MNT_SYNCER"@@@
END


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

fi




echo $ac_n "checking if proc has a field p_retval""... $ac_c" 1>&6
echo "configure:8398: checking if proc has a field p_retval" >&5
if eval "test \"`echo '$''{'ac_cv_struct_proc_p_retval'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 8407 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_PROC_H
#include <sys/proc.h>
#endif

int main() {
struct proc foo; register_t * bar = foo.p_retval; 
; return 0; }
EOF
if { (eval echo configure:8424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_proc_p_retval=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_proc_p_retval=no"
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"


fi

eval "ac_tr_var=HAVE_STRUCT_`echo proc | tr '[a-z]' '[A-Z]'`_`echo p_retval | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_PROC_P_RETVAL"@@@
END


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

fi



echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
echo "configure:8458: checking for sa_len in struct sockaddr" >&5
if eval "test \"`echo '$''{'krb_cv_struct_sockaddr_sa_len'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 8464 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int main() {
struct sockaddr sa;
int foo = sa.sa_len;
; return 0; }
EOF
if { (eval echo configure:8473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  krb_cv_struct_sockaddr_sa_len=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  krb_cv_struct_sockaddr_sa_len=no
fi
rm -f conftest*

fi

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

fi




echo $ac_n "checking for h_errno""... $ac_c" 1>&6
echo "configure:8498: checking for h_errno" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 8504 "configure"
#include "confdefs.h"
extern int h_errno;
int foo() { return h_errno; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:8512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  ac_cv_var_h_errno=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_var_h_errno=no
fi
rm -f conftest*

fi

eval "ac_tr_var=HAVE_H_ERRNO"


: << END
@@@syms="$syms HAVE_H_ERRNO"@@@
END


echo "$ac_t""`eval echo \\$ac_cv_var_h_errno`" 1>&6
if test `eval echo \\$ac_cv_var_h_errno` = yes; then
	cat >> confdefs.h <<EOF
#define $ac_tr_var 1
EOF

	
echo $ac_n "checking if h_errno is properly declared""... $ac_c" 1>&6
echo "configure:8541: checking if h_errno is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_errno_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 8547 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errno;
int main() {
h_errno.foo = 1;
; return 0; }
EOF
if { (eval echo configure:8560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_h_errno_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_h_errno_declaration=yes"
fi
rm -f conftest*

fi


ac_tr_var=HAVE_H_ERRNO_DECLARATION


: << END
@@@syms="$syms HAVE_H_ERRNO_DECLARATION"@@@
END


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

fi

fi



echo $ac_n "checking for h_errlist""... $ac_c" 1>&6
echo "configure:8595: checking for h_errlist" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_errlist'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 8601 "configure"
#include "confdefs.h"
extern int h_errlist;
int foo() { return h_errlist; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:8609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  ac_cv_var_h_errlist=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_var_h_errlist=no
fi
rm -f conftest*

fi

eval "ac_tr_var=HAVE_H_ERRLIST"


: << END
@@@syms="$syms HAVE_H_ERRLIST"@@@
END


echo "$ac_t""`eval echo \\$ac_cv_var_h_errlist`" 1>&6
if test `eval echo \\$ac_cv_var_h_errlist` = yes; then
	cat >> confdefs.h <<EOF
#define $ac_tr_var 1
EOF

	
echo $ac_n "checking if h_errlist is properly declared""... $ac_c" 1>&6
echo "configure:8638: checking if h_errlist is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_errlist_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 8644 "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errlist;
int main() {
h_errlist.foo = 1;
; return 0; }
EOF
if { (eval echo configure:8654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_h_errlist_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_h_errlist_declaration=yes"
fi
rm -f conftest*

fi


ac_tr_var=HAVE_H_ERRLIST_DECLARATION


: << END
@@@syms="$syms HAVE_H_ERRLIST_DECLARATION"@@@
END


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

fi

fi



echo $ac_n "checking for h_nerr""... $ac_c" 1>&6
echo "configure:8689: checking for h_nerr" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_nerr'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 8695 "configure"
#include "confdefs.h"
extern int h_nerr;
int foo() { return h_nerr; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:8703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  ac_cv_var_h_nerr=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_var_h_nerr=no
fi
rm -f conftest*

fi

eval "ac_tr_var=HAVE_H_NERR"


: << END
@@@syms="$syms HAVE_H_NERR"@@@
END


echo "$ac_t""`eval echo \\$ac_cv_var_h_nerr`" 1>&6
if test `eval echo \\$ac_cv_var_h_nerr` = yes; then
	cat >> confdefs.h <<EOF
#define $ac_tr_var 1
EOF

	
echo $ac_n "checking if h_nerr is properly declared""... $ac_c" 1>&6
echo "configure:8732: checking if h_nerr is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_nerr_declaration'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 8738 "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_nerr;
int main() {
h_nerr.foo = 1;
; return 0; }
EOF
if { (eval echo configure:8748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_h_nerr_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_h_nerr_declaration=yes"
fi
rm -f conftest*

fi


ac_tr_var=HAVE_H_NERR_DECLARATION


: << END
@@@syms="$syms HAVE_H_NERR_DECLARATION"@@@
END


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

fi

fi




echo $ac_n "checking for AIX""... $ac_c" 1>&6
echo "configure:8784: checking for AIX" >&5
if eval "test \"`echo '$''{'krb_cv_sys_aix'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8789 "configure"
#include "confdefs.h"
#ifdef _AIX
	yes
#endif 

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

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


if test "$krb_cv_sys_aix" = yes ;then
	if test "$aix_dynamic_afs" = yes; then
		AFS_EXTRA_OBJS='$(srcdir)/afsl.exp dlfcn.o'
		AFS_EXTRA_LIBS=afslib.so
		# this works differently in AIX <=3 and 4
		if test `uname -v` = 4 ; then
			AFS_EXTRA_LD="-bnoentry"
		else
			AFS_EXTRA_LD="-e _nostart"
		fi
		AFS_EXTRA_DEFS=
		AIX_EXTRA_KAFS="-lld"
	else
		AFS_EXTRA_OBJS='$(srcdir)/afsl.exp afslib.o'
		AFS_EXTRA_LIBS=
		AFS_EXTRA_DEFS='-DSTATIC_AFS_SYSCALLS'
		AIX_EXTRA_KAFS=
	fi
					fi



echo $ac_n "checking for ELF object format""... $ac_c" 1>&6
echo "configure:8834: checking for ELF object format" >&5
if eval "test \"`echo '$''{'ac_cv_sys_elf_object_format'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
ac_cv_sys_elf_object_format=no
echo 'int foo;' > conftest.$ac_ext
if { (eval echo configure:8841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
	case `file conftest.o 2> /dev/null` in
	*ELF*)	ac_cv_sys_elf_object_format=yes ;;
	esac
fi
rm -f conftest*
fi

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

if test "$ac_kernel_ld" = ""; then
if test "$ac_cv_sys_elf_object_format" = yes; then
ac_kernel_ld='${LD-ld} -o conftest $LDFLAGS -R $KERNEL conftest.o -e _foo 1>&5'
else
ac_kernel_ld='${LD-ld} -o conftest $LDFLAGS -A $KERNEL conftest.o -e _foo 1>&5'
fi
fi

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

int _foo() {
return foo();
}
int foo() {
lockmgr();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:8877: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_lockmgr=yes"
else
  eval "ac_cv_kernel_func_lockmgr=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo lockmgr | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
vop_revoke();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:8922: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_vop_revoke=yes"
else
  eval "ac_cv_kernel_func_vop_revoke=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo vop_revoke | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
genfs_revoke();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:8967: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_genfs_revoke=yes"
else
  eval "ac_cv_kernel_func_genfs_revoke=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo genfs_revoke | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
vfs_opv_init();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9012: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_vfs_opv_init=yes"
else
  eval "ac_cv_kernel_func_vfs_opv_init=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo vfs_opv_init | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
vfs_opv_init_default();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9057: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_vfs_opv_init_default=yes"
else
  eval "ac_cv_kernel_func_vfs_opv_init_default=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo vfs_opv_init_default | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
vfs_opv_init_explicit();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9102: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_vfs_opv_init_explicit=yes"
else
  eval "ac_cv_kernel_func_vfs_opv_init_explicit=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo vfs_opv_init_explicit | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
vfs_add_vnodeops();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9147: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_vfs_add_vnodeops=yes"
else
  eval "ac_cv_kernel_func_vfs_add_vnodeops=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo vfs_add_vnodeops | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
vfs_attach();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9192: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_vfs_attach=yes"
else
  eval "ac_cv_kernel_func_vfs_attach=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo vfs_attach | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
vfs_register();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9237: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_vfs_register=yes"
else
  eval "ac_cv_kernel_func_vfs_register=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo vfs_register | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
vfs_getnewfsid();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9282: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_vfs_getnewfsid=yes"
else
  eval "ac_cv_kernel_func_vfs_getnewfsid=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo vfs_getnewfsid | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
vfs_getvfs();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9327: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_vfs_getvfs=yes"
else
  eval "ac_cv_kernel_func_vfs_getvfs=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo vfs_getvfs | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
vfs_object_create();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9372: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_vfs_object_create=yes"
else
  eval "ac_cv_kernel_func_vfs_object_create=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo vfs_object_create | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
zfreei();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9417: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_zfreei=yes"
else
  eval "ac_cv_kernel_func_zfreei=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo zfreei | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
vfs_cache_lookup();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9462: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_vfs_cache_lookup=yes"
else
  eval "ac_cv_kernel_func_vfs_cache_lookup=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo vfs_cache_lookup | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
vnode_pager_generic_putpages();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9507: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_vnode_pager_generic_putpages=yes"
else
  eval "ac_cv_kernel_func_vnode_pager_generic_putpages=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo vnode_pager_generic_putpages | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
vnode_pager_generic_getpages();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9552: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_vnode_pager_generic_getpages=yes"
else
  eval "ac_cv_kernel_func_vnode_pager_generic_getpages=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo vnode_pager_generic_getpages | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi

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

int _foo() {
return foo();
}
int foo() {
vnode_pager_setsize();
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9597: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_func_vnode_pager_setsize=yes"
else
  eval "ac_cv_kernel_func_vnode_pager_setsize=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo vnode_pager_setsize | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi


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

int _foo() {
return foo();
}
int foo() {
extern int doforce; int foo = doforce;
return 0; }
EOF
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && { (eval echo configure:9643: \"$ac_kernel_ld\") 1>&5; (eval $ac_kernel_ld) 2>&5; } && test -s conftest; then
  eval "ac_cv_kernel_var_doforce=yes"
else
  eval "ac_cv_kernel_var_doforce=no"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
CFLAGS="$save_CFLAGS"
rm -f conftest*
fi

eval "ac_tr_var=HAVE_KERNEL_`echo doforce | tr 'a-z' 'A-Z'`"


: << END
@@@syms="$syms HAVE_KERNEL_"@@@
END


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

fi



echo $ac_n "checking for vfssw""... $ac_c" 1>&6
echo "configure:9673: checking for vfssw" >&5
if eval "test \"`echo '$''{'ac_cv_var_vfssw'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  saved_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -D_KERNEL -D_LKM"
cat > conftest.$ac_ext <<EOF
#line 9680 "configure"
#include "confdefs.h"
#include <sys/vnode.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "vfssw" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_var_vfssw=yes
else
  rm -rf conftest*
  ac_cv_var_vfssw=no
fi
rm -f conftest*

if test "$ac_cv_var_vfssw" = "no"; then
   cat > conftest.$ac_ext <<EOF
#line 9696 "configure"
#include "confdefs.h"
#include <sys/mount.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "vfssw" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_var_vfssw=yes
else
  rm -rf conftest*
  ac_cv_var_vfssw=no
fi
rm -f conftest*

fi
CPPFLAGS=$saved_CPPFLAGS

fi

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

fi


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

fi

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

if test "$ac_cv_type_vop_t" = "yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE_VOP_T 1
EOF

fi



if test "$ac_cv_kernel_func_vfs_object_create" = "yes"; then
echo $ac_n "checking if vfs_object_create takes four arguments""... $ac_c" 1>&6
echo "configure:9759: checking if vfs_object_create takes four arguments" >&5
if eval "test \"`echo '$''{'ac_cv_func_vfs_object_create_four_args'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 9767 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/param.h>
#include <sys/vnode.h>

int main() {
vfs_object_create(0, 0, 0, 0);
; return 0; }
EOF
if { (eval echo configure:9778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_vfs_object_create_four_args=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_vfs_object_create_four_args=no
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"

fi

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

if false; then
	for ac_func in FOUR_ARGUMENT_VFS_OBJECT_CREATE
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:9798: 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 9803 "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:9826: \"$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
    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

fi
if test "$ac_cv_func_vfs_object_create_four_args" = "yes"; then
	ac_foo=HAVE_FOUR_ARGUMENT_VFS_OBJECT_CREATE
	cat >> confdefs.h <<EOF
#define $ac_foo 1
EOF

fi
fi


save_CFLAGS="${CFLAGS}"

CFLAGS="${CFLAGS} -I."

echo $ac_n "checking if VOP_LOCK takes one argument""... $ac_c" 1>&6
echo "configure:9866: checking if VOP_LOCK takes one argument" >&5
if eval "test \"`echo '$''{'ac_cv_func_vop_lock_one_arg'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 9874 "configure"
#include "confdefs.h"
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/uio.h>
#include <sys/vnode.h>

int main() {
VOP_LOCK(0)
; return 0; }
EOF
if { (eval echo configure:9887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_vop_lock_one_arg=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_vop_lock_one_arg=no
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"

fi

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

if false; then
	for ac_func in ONE_ARGUMENT_VOP_LOCK
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:9907: 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 9912 "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:9935: \"$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
    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

fi
if test "$ac_cv_func_vop_lock_one_arg" = yes; then
	ac_foo=HAVE_ONE_ARGUMENT_VOP_LOCK
	cat >> confdefs.h <<EOF
#define $ac_foo 1
EOF

fi

echo $ac_n "checking if VOP_LOCK takes two arguments""... $ac_c" 1>&6
echo "configure:9969: checking if VOP_LOCK takes two arguments" >&5
if eval "test \"`echo '$''{'ac_cv_func_vop_lock_two_args'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 9977 "configure"
#include "confdefs.h"
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/uio.h>
#include <sys/vnode.h>

int main() {
VOP_LOCK(0, 0)
; return 0; }
EOF
if { (eval echo configure:9990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_vop_lock_two_args=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_vop_lock_two_args=no
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"

fi

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

if false; then
	for ac_func in TWO_ARGUMENT_VOP_LOCK
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:10010: 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 10015 "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:10038: \"$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
    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

fi
if test "$ac_cv_func_vop_lock_two_args" = yes; then
	ac_foo=HAVE_TWO_ARGUMENT_VOP_LOCK
	cat >> confdefs.h <<EOF
#define $ac_foo 1
EOF

fi

echo $ac_n "checking if VOP_LOCK takes three arguments""... $ac_c" 1>&6
echo "configure:10072: checking if VOP_LOCK takes three arguments" >&5
if eval "test \"`echo '$''{'ac_cv_func_vop_lock_three_args'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 10080 "configure"
#include "confdefs.h"
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/uio.h>
#include <sys/vnode.h>

int main() {
VOP_LOCK(0, 0, 0)
; return 0; }
EOF
if { (eval echo configure:10093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_vop_lock_three_args=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_vop_lock_three_args=no
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"

fi

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

if false; then
	for ac_func in THREE_ARGUMENT_VOP_LOCK
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:10113: 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 10118 "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:10141: \"$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
    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

fi
if test "$ac_cv_func_vop_lock_three_args" = yes; then
	ac_foo=HAVE_THREE_ARGUMENT_VOP_LOCK
	cat >> confdefs.h <<EOF
#define $ac_foo 1
EOF

fi


echo $ac_n "checking if vfs_busy takes three arguments""... $ac_c" 1>&6
echo "configure:10176: checking if vfs_busy takes three arguments" >&5
if eval "test \"`echo '$''{'ac_cv_func_vfs_busy_three_args'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 10184 "configure"
#include "confdefs.h"
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/ucred.h>
#ifdef HAVE_SYS_MODULE_H
#include <sys/module.h>
#endif
#include <sys/mount.h>
int main() {
vfs_busy(0, 0, 0)
; return 0; }
EOF
if { (eval echo configure:10198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_vfs_busy_three_args=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_vfs_busy_three_args=no
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"

fi

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

if false; then
	for ac_func in THREE_ARGUMENT_VFS_BUSY
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:10218: 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 10223 "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:10246: \"$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
    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

fi
if test "$ac_cv_func_vfs_busy_three_args" = yes; then
	ac_foo=HAVE_THREE_ARGUMENT_VFS_BUSY
	cat >> confdefs.h <<EOF
#define $ac_foo 1
EOF

fi

echo $ac_n "checking if vfs_busy takes four arguments""... $ac_c" 1>&6
echo "configure:10280: checking if vfs_busy takes four arguments" >&5
if eval "test \"`echo '$''{'ac_cv_func_vfs_busy_four_args'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 10288 "configure"
#include "confdefs.h"
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/ucred.h>
#ifdef HAVE_SYS_MODULE_H
#include <sys/module.h>
#endif
#include <sys/mount.h>
int main() {
vfs_busy(0, 0, 0, 0)
; return 0; }
EOF
if { (eval echo configure:10302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_vfs_busy_four_args=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_vfs_busy_four_args=no
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"

fi

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

if false; then
	for ac_func in FOUR_ARGUMENT_VFS_BUSY
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:10322: 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 10327 "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:10350: \"$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
    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

fi
if test "$ac_cv_func_vfs_busy_four_args" = yes; then
	ac_foo=HAVE_FOUR_ARGUMENT_VFS_BUSY
	cat >> confdefs.h <<EOF
#define $ac_foo 1
EOF

fi

echo $ac_n "checking if vget takes two arguments""... $ac_c" 1>&6
echo "configure:10384: checking if vget takes two arguments" >&5
if eval "test \"`echo '$''{'ac_cv_func_vget_two_args'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 10392 "configure"
#include "confdefs.h"

#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/uio.h>
#include <sys/vnode.h>

int main() {
vget(0, 0)
; return 0; }
EOF
if { (eval echo configure:10406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_vget_two_args=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_vget_two_args=no
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"

fi

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

if false; then
	for ac_func in TWO_ARGUMENT_VGET
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:10426: 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 10431 "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:10454: \"$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
    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

fi
if test "$ac_cv_func_vget_two_args" = yes; then
	ac_foo=HAVE_TWO_ARGUMENT_VGET
	cat >> confdefs.h <<EOF
#define $ac_foo 1
EOF

fi

echo $ac_n "checking if vget takes three arguments""... $ac_c" 1>&6
echo "configure:10488: checking if vget takes three arguments" >&5
if eval "test \"`echo '$''{'ac_cv_func_vget_three_args'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 10496 "configure"
#include "confdefs.h"

#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/uio.h>
#include <sys/vnode.h>

int main() {
vget(0, 0, 0)
; return 0; }
EOF
if { (eval echo configure:10510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_vget_three_args=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_vget_three_args=no
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"

fi

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

if false; then
	for ac_func in THREE_ARGUMENT_VGET
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:10530: 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 10535 "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:10558: \"$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
    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

fi
if test "$ac_cv_func_vget_three_args" = yes; then
	ac_foo=HAVE_THREE_ARGUMENT_VGET
	cat >> confdefs.h <<EOF
#define $ac_foo 1
EOF

fi

CFLAGS="${save_CFLAGS}"

if test "$ac_cv_kernel_func_vfs_getnewfsid" = "yes"; then
echo $ac_n "checking if vfs_getnewfsid takes two arguments""... $ac_c" 1>&6
echo "configure:10595: checking if vfs_getnewfsid takes two arguments" >&5
if eval "test \"`echo '$''{'ac_cv_func_vfs_getnewfsid_two_args'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 10603 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/param.h>
#ifdef HAVE_SYS_MODULE_H
#include <sys/module.h>
#endif
#include <sys/mount.h>

int main() {
vfs_getnewfsid(NULL, 0);
; return 0; }
EOF
if { (eval echo configure:10617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_vfs_getnewfsid_two_args=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_vfs_getnewfsid_two_args=no
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"

fi

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

if false; then
	for ac_func in TWO_ARGUMENT_VFS_GETNEWFSID
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:10637: 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 10642 "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:10665: \"$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
    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

fi
if test "$ac_cv_func_vfs_getnewfsid_two_args" = yes; then
	ac_foo=HAVE_TWO_ARGUMENT_VFS_GETNEWFSID
	cat >> confdefs.h <<EOF
#define $ac_foo 1
EOF

fi
fi

echo $ac_n "checking for working htonl""... $ac_c" 1>&6
echo "configure:10700: checking for working htonl" >&5
if eval "test \"`echo '$''{'ac_cv_htonl_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10706 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

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

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

if test "$ac_cv_htonl_works" = "no"; then
echo $ac_n "checking if htonl is repairable""... $ac_c" 1>&6
echo "configure:10738: checking if htonl is repairable" >&5
if eval "test \"`echo '$''{'ac_cv_htonl_hack_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10744 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#define htonl(x) __cpu_to_be32(x)

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

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

if test "$ac_cv_htonl_hack_works" = "no"; then
{ echo "configure: error: Cannot repair htonl" 1>&2; exit 1; }
else
cat >> confdefs.h <<\EOF
#define HAVE_REPAIRABLE_HTONL 1
EOF

fi

fi

#
# Check where DIRSIZ lives
#

echo $ac_n "checking if DIRSIZ lives in dirent.h""... $ac_c" 1>&6
echo "configure:10791: checking if DIRSIZ lives in dirent.h" >&5
if eval "test \"`echo '$''{'ac_cv_dirsiz_in_dirent'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 10796 "configure"
#include "confdefs.h"
#include <dirent.h>
#ifdef DIRSIZE
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  eval "ac_cv_dirsiz_in_dirent=yes"
else
  rm -rf conftest*
  eval "ac_cv_dirsiz_in_dirent=no"
fi
rm -f conftest*

fi

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

fi

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

fi

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

fi

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

fi

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

fi

#
# Check for getcwd syscall (linux)
#

echo $ac_n "checking for getcwd system call""... $ac_c" 1>&6
echo "configure:10894: checking for getcwd system call" >&5
if eval "test \"`echo '$''{'ac_cv_sys_getcwd'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10900 "configure"
#include "confdefs.h"
#include <linux/unistd.h>
#ifdef __NR_getcwd
yes
#endif

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

fi

echo "$ac_t""$ac_cv_sys_getcwd" 1>&6
if test "$ac_cv_sys_getcwd" = "yes";then
XFS_SHARED_LIBS="$XFS_SHARED_LIBS libgetcwd.so"
fi


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

fi

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

fi


echo $ac_n "checking if ViceIoctl has a field in""... $ac_c" 1>&6
echo "configure:10959: checking if ViceIoctl has a field in" >&5
if eval "test \"`echo '$''{'ac_cv_struct_ViceIoctl_in'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 10968 "configure"
#include "confdefs.h"

#define __KERNEL__
#include <linux/fs.h>

int main() {
struct ViceIoctl foo; caddr_t bar = foo.in; 
; return 0; }
EOF
if { (eval echo configure:10978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_ViceIoctl_in=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_ViceIoctl_in=no"
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"


fi

eval "ac_tr_var=HAVE_STRUCT_`echo ViceIoctl | tr '[a-z]' '[A-Z]'`_`echo in | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_VICEIOCTL_IN"@@@
END


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

fi


echo $ac_n "checking if read_super takes the dir_d argument""... $ac_c" 1>&6
echo "configure:11011: checking if read_super takes the dir_d argument" >&5
if eval "test \"`echo '$''{'ac_cv_func_read_super_four_args'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 11019 "configure"
#include "confdefs.h"
#include <linux/fs.h>

int main() {
struct file_system_type xfs_fs_type;
xfs_fs_type.read_super(0,0,0,0);

; return 0; }
EOF
if { (eval echo configure:11029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_read_super_four_args=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_read_super_four_args=no
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"

fi

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

if test "$ac_cv_func_read_super_four_args" = "yes"; then
  cat >> confdefs.h <<\EOF
#define HAVE_READ_SUPER_FOUR_ARGS 1
EOF

fi

echo $ac_n "checking if follow_link takes the follow argument""... $ac_c" 1>&6
echo "configure:11053: checking if follow_link takes the follow argument" >&5
if eval "test \"`echo '$''{'ac_cv_func_follow_link_three_args'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $test_KERNEL_CFLAGS"
cat > conftest.$ac_ext <<EOF
#line 11061 "configure"
#include "confdefs.h"
#include <linux/fs.h>
int main() {
struct inode_operations xfs_operations;
xfs_operations.follow_link(NULL, NULL, 0);

; return 0; }
EOF
if { (eval echo configure:11070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_func_follow_link_three_args=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_follow_link_three_args=no
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"

fi

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

if test "$ac_cv_func_follow_link_three_args" = "yes"; then
  cat >> confdefs.h <<\EOF
#define HAVE_FOLLOW_LINK_THREE_ARGS 1
EOF

fi


echo $ac_n "checking if full_name_hash works with 8bit characters""... $ac_c" 1>&6
echo "configure:11095: checking if full_name_hash works with 8bit characters" >&5
if eval "test \"`echo '$''{'ac_cv_func_full_name_hash_work_8bit'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_full_name_hash_work_8bit=no
else
  cat > conftest.$ac_ext <<EOF
#line 11103 "configure"
#include "confdefs.h"
#define __KERNEL__
#include <linux/list.h>
#include <linux/dcache.h>
unsigned my_full_name_hash(const unsigned char *name, unsigned len)
{
  unsigned long hash = init_name_hash();
  while(len--)
    hash = partial_name_hash(*name++, hash);
  return end_name_hash(hash);
}

int main()
{
  return full_name_hash ("", 1) != my_full_name_hash ("", 1);
}
EOF
if { (eval echo configure:11121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_full_name_hash_work_8bit=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_full_name_hash_work_8bit=no
fi
rm -fr conftest*
fi

fi

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

if test "$ac_cv_func_full_name_hash_work_8bit" = "yes"; then
  cat >> confdefs.h <<\EOF
#define HAVE_FULL_NAME_HASH_8BIT 1
EOF

fi



echo $ac_n "checking if proc has a field p_sigmask""... $ac_c" 1>&6
echo "configure:11147: checking if proc has a field p_sigmask" >&5
if eval "test \"`echo '$''{'ac_cv_struct_proc_p_sigmask'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 11153 "configure"
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_SYS_PROC_H
#include <sys/proc.h>
#endif
int main() {
struct proc foo; sigset_t bar = foo.p_sigmask; 
; return 0; }
EOF
if { (eval echo configure:11172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_struct_proc_p_sigmask=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_struct_proc_p_sigmask=no"
fi
rm -f conftest*

fi

eval "ac_tr_var=HAVE_STRUCT_`echo proc | tr '[a-z]' '[A-Z]'`_`echo p_sigmask | tr '[a-z]' '[A-Z]'`"


: << END
@@@syms="$syms HAVE_STRUCT_PROC_P_SIGMASK"@@@
END


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

fi




for i in int8_t int16_t int32_t int64_t; do
        echo $ac_n "checking for $i in the linux kernel""... $ac_c" 1>&6
echo "configure:11206: checking for $i in the linux kernel" >&5
        
if eval "test \"`echo '$''{'ac_cv_linux_kernel_type_$i'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 11212 "configure"
#include "confdefs.h"

#define __KERNEL__
#include <linux/types.h>

int main() {
$i x;

; return 0; }
EOF
if { (eval echo configure:11223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval ac_cv_linux_kernel_type_$i=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval ac_cv_linux_kernel_type_$i=no
fi
rm -f conftest*
fi

        eval ac_res=\$ac_cv_linux_kernel_type_$i
        if test "$ac_res" = yes; then
                type=HAVE_LINUX_KERNEL_`echo $i | tr 'a-z' 'A-Z'`
                cat >> confdefs.h <<EOF
#define $type 1
EOF

        fi
        echo "$ac_t""$ac_res" 1>&6
done


for i in u_int8_t u_int16_t u_int32_t u_int64_t; do
        echo $ac_n "checking for $i in the linux kernel""... $ac_c" 1>&6
echo "configure:11249: checking for $i in the linux kernel" >&5
        
if eval "test \"`echo '$''{'ac_cv_linux_kernel_type_$i'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 11255 "configure"
#include "confdefs.h"

#define __KERNEL__
#include <linux/types.h>

int main() {
$i x;

; return 0; }
EOF
if { (eval echo configure:11266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval ac_cv_linux_kernel_type_$i=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval ac_cv_linux_kernel_type_$i=no
fi
rm -f conftest*
fi

        eval ac_res=\$ac_cv_linux_kernel_type_$i
        if test "$ac_res" = yes; then
                type=HAVE_LINUX_KERNEL_`echo $i | tr 'a-z' 'A-Z'`
                cat >> confdefs.h <<EOF
#define $type 1
EOF

        fi
        echo "$ac_t""$ac_res" 1>&6
done


# Almost done....

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
# 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.
# 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 |
  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
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.12"
    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 \
	include/Makefile \
	arlad/Makefile \
	lwp/Makefile \
	xfs/Makefile \
	$XFS_SUBDIR_Makefile \
	$XFS_SUBDIR_BIN_Makefile \
	rx/Makefile \
	$RXKAD_MAKEFILE \
	rxdef/Makefile \
	appl/Makefile \
	doc/Makefile \
	lib/Makefile \
	lib/roken/Makefile \
	lib/sl/Makefile \
	lib/editline/Makefile \
	lib/ko/Makefile \
	lib/acl/Makefile \
	util/Makefile \
	ydr/Makefile \
	conf/Makefile \
	tests/Makefile include/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%@PACKAGE@%$PACKAGE%g
s%@VERSION@%$VERSION%g
s%@CC@%$CC%g
s%@CPP@%$CPP%g
s%@SET_MAKE@%$SET_MAKE%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@RANLIB@%$RANLIB%g
s%@LN_S@%$LN_S%g
s%@LEX@%$LEX%g
s%@LEXLIB@%$LEXLIB%g
s%@YACC@%$YACC%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%@CANONICAL_HOST@%$CANONICAL_HOST%g
s%@SYMORDER@%$SYMORDER%g
s%@MAKEINFO@%$MAKEINFO%g
s%@DVI2PS@%$DVI2PS%g
s%@TEXI2DVI@%$TEXI2DVI%g
s%@DVIPS@%$DVIPS%g
s%@X_CFLAGS@%$X_CFLAGS%g
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
s%@X_LIBS@%$X_LIBS%g
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
s%@MAKE_X_PROGS_BIN@%$MAKE_X_PROGS_BIN%g
s%@target@%$target%g
s%@target_alias@%$target_alias%g
s%@target_cpu@%$target_cpu%g
s%@target_vendor@%$target_vendor%g
s%@target_os@%$target_os%g
s%@SYS@%$SYS%g
s%@OSF1_TRUE@%$OSF1_TRUE%g
s%@OSF1_FALSE@%$OSF1_FALSE%g
s%@ARLA_KNFS@%$ARLA_KNFS%g
s%@LWP_PROCESS@%$LWP_PROCESS%g
s%@PLWP_LIB_FLAGS@%$PLWP_LIB_FLAGS%g
s%@PLWP_INC_FLAGS@%$PLWP_INC_FLAGS%g
s%@LWP_C@%$LWP_C%g
s%@LWP_O@%$LWP_O%g
s%@LWP_H@%$LWP_H%g
s%@LIB_tgetent@%$LIB_tgetent%g
s%@LIB_el_init@%$LIB_el_init%g
s%@LIB_readline@%$LIB_readline%g
s%@ac_cv_prog_getconf@%$ac_cv_prog_getconf%g
s%@INCLUDE_readline@%$INCLUDE_readline%g
s%@editline_OBJS@%$editline_OBJS%g
s%@GCC@%$GCC%g
s%@KERNEL_INCLUDE@%$KERNEL_INCLUDE%g
s%@KERNEL_SRCS@%$KERNEL_SRCS%g
s%@KERNEL_HDRS@%$KERNEL_HDRS%g
s%@KERNEL_CFLAGS@%$KERNEL_CFLAGS%g
s%@KERNEL_LD@%$KERNEL_LD%g
s%@MODULE@%$MODULE%g
s%@XFS_SUBDIR@%$XFS_SUBDIR%g
s%@XFS_SRCS@%$XFS_SRCS%g
s%@KRB_LIB_DIR@%$KRB_LIB_DIR%g
s%@KRB_INC_DIR@%$KRB_INC_DIR%g
s%@KRB_INC_FLAGS@%$KRB_INC_FLAGS%g
s%@RXKAD@%$RXKAD%g
s%@RXKAD_LIBS@%$RXKAD_LIBS%g
s%@KAFS_LIBS@%$KAFS_LIBS%g
s%@ARLACACHEDIR@%$ARLACACHEDIR%g
s%@ARLACONFFILE@%$ARLACONFFILE%g
s%@LIB_dbm_firstkey@%$LIB_dbm_firstkey%g
s%@LIB_DBM@%$LIB_DBM%g
s%@LIB_syslog@%$LIB_syslog%g
s%@LIB_socket@%$LIB_socket%g
s%@LIB_gethostbyname@%$LIB_gethostbyname%g
s%@LIB_res_search@%$LIB_res_search%g
s%@LIB_dn_expand@%$LIB_dn_expand%g
s%@LIB_hstrerror@%$LIB_hstrerror%g
s%@LIBOBJS@%$LIBOBJS%g
s%@LIB_kvm_open@%$LIB_kvm_open%g
s%@LIB_kvm_nlist@%$LIB_kvm_nlist%g
s%@AFS_EXTRA_OBJS@%$AFS_EXTRA_OBJS%g
s%@AFS_EXTRA_LIBS@%$AFS_EXTRA_LIBS%g
s%@AFS_EXTRA_LD@%$AFS_EXTRA_LD%g
s%@AFS_EXTRA_DEFS@%$AFS_EXTRA_DEFS%g
s%@AIX_EXTRA_KAFS@%$AIX_EXTRA_KAFS%g
s%@XFS_SHARED_LIBS@%$XFS_SHARED_LIBS%g

CEOF
EOF

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

cat >> $CONFIG_STATUS <<EOF

CONFIG_FILES=\${CONFIG_FILES-"Makefile \
	include/Makefile \
	arlad/Makefile \
	lwp/Makefile \
	xfs/Makefile \
	$XFS_SUBDIR_Makefile \
	$XFS_SUBDIR_BIN_Makefile \
	rx/Makefile \
	$RXKAD_MAKEFILE \
	rxdef/Makefile \
	appl/Makefile \
	doc/Makefile \
	lib/Makefile \
	lib/roken/Makefile \
	lib/sl/Makefile \
	lib/editline/Makefile \
	lib/ko/Makefile \
	lib/acl/Makefile \
	util/Makefile \
	ydr/Makefile \
	conf/Makefile \
	tests/Makefile"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[: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 a relative srcdir, top_srcdir, and INSTALL 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

  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*

# 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'

if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="include/config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[: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
  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

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.

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

EOF
cat >> $CONFIG_STATUS <<EOF

EOF
cat >> $CONFIG_STATUS <<\EOF

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



cat > include/newversion.h.in <<FOOBAR
char *${PACKAGE}_long_version = "@(#)\$Version: $PACKAGE-$VERSION by @USER@ on @HOST@ ($host) @DATE@ \$";
char *${PACKAGE}_version = "$PACKAGE-$VERSION";
FOOBAR

if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
	echo "include/version.h is unchanged"
	rm -f include/newversion.h.in
else
 	echo "creating include/version.h"
 	User=${USER-${LOGNAME}}
 	Host=`(hostname || uname -n) 2>/dev/null | sed 1q`
 	Date=`date`
	mv -f include/newversion.h.in include/version.h.in
	sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
fi

